Documentation
¶
Overview ¶
Package lemmy provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- func NewAddAdminRequest(server string, body AddAdminJSONRequestBody) (*http.Request, error)
- func NewAddAdminRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddModToCommunityRequest(server string, body AddModToCommunityJSONRequestBody) (*http.Request, error)
- func NewAddModToCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAdminAllowInstanceRequest(server string, body AdminAllowInstanceJSONRequestBody) (*http.Request, error)
- func NewAdminAllowInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAdminBlockInstanceRequest(server string, body AdminBlockInstanceJSONRequestBody) (*http.Request, error)
- func NewAdminBlockInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewApproveCommunityPendingFollowRequest(server string, body ApproveCommunityPendingFollowJSONRequestBody) (*http.Request, error)
- func NewApproveCommunityPendingFollowRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewApproveRegistrationApplicationRequest(server string, body ApproveRegistrationApplicationJSONRequestBody) (*http.Request, error)
- func NewApproveRegistrationApplicationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAuthenticateWithOAuthRequest(server string, body AuthenticateWithOAuthJSONRequestBody) (*http.Request, error)
- func NewAuthenticateWithOAuthRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewBanFromCommunityRequest(server string, body BanFromCommunityJSONRequestBody) (*http.Request, error)
- func NewBanFromCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewBanPersonRequest(server string, body BanPersonJSONRequestBody) (*http.Request, error)
- func NewBanPersonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewBlockCommunityRequest(server string, body BlockCommunityJSONRequestBody) (*http.Request, error)
- func NewBlockCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewBlockPersonRequest(server string, body BlockPersonJSONRequestBody) (*http.Request, error)
- func NewBlockPersonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewChangePasswordRequest(server string, body ChangePasswordJSONRequestBody) (*http.Request, error)
- func NewChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCommentReportRequest(server string, body CreateCommentReportJSONRequestBody) (*http.Request, error)
- func NewCreateCommentReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCommentRequest(server string, body CreateCommentJSONRequestBody) (*http.Request, error)
- func NewCreateCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCommunityRequest(server string, body CreateCommunityJSONRequestBody) (*http.Request, error)
- func NewCreateCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCustomEmojiRequest(server string, body CreateCustomEmojiJSONRequestBody) (*http.Request, error)
- func NewCreateCustomEmojiRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateOAuthProviderRequest(server string, body CreateOAuthProviderJSONRequestBody) (*http.Request, error)
- func NewCreateOAuthProviderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePostReportRequest(server string, body CreatePostReportJSONRequestBody) (*http.Request, error)
- func NewCreatePostReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePostRequest(server string, body CreatePostJSONRequestBody) (*http.Request, error)
- func NewCreatePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePrivateMessageReportRequest(server string, body CreatePrivateMessageReportJSONRequestBody) (*http.Request, error)
- func NewCreatePrivateMessageReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreatePrivateMessageRequest(server string, body CreatePrivateMessageJSONRequestBody) (*http.Request, error)
- func NewCreatePrivateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSiteRequest(server string, body CreateSiteJSONRequestBody) (*http.Request, error)
- func NewCreateSiteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTaglineRequest(server string, body CreateTaglineJSONRequestBody) (*http.Request, error)
- func NewCreateTaglineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAccountRequest(server string, body DeleteAccountJSONRequestBody) (*http.Request, error)
- func NewDeleteAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteCommentRequest(server string, body DeleteCommentJSONRequestBody) (*http.Request, error)
- func NewDeleteCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteCommunityBannerRequest(server string) (*http.Request, error)
- func NewDeleteCommunityIconRequest(server string) (*http.Request, error)
- func NewDeleteCommunityRequest(server string, body DeleteCommunityJSONRequestBody) (*http.Request, error)
- func NewDeleteCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteCustomEmojiRequest(server string, body DeleteCustomEmojiJSONRequestBody) (*http.Request, error)
- func NewDeleteCustomEmojiRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteImageRequest(server string, params *DeleteImageParams) (*http.Request, error)
- func NewDeleteOAuthProviderRequest(server string, body DeleteOAuthProviderJSONRequestBody) (*http.Request, error)
- func NewDeleteOAuthProviderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeletePostRequest(server string, body DeletePostJSONRequestBody) (*http.Request, error)
- func NewDeletePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeletePrivateMessageRequest(server string, body DeletePrivateMessageJSONRequestBody) (*http.Request, error)
- func NewDeletePrivateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteSiteBannerRequest(server string) (*http.Request, error)
- func NewDeleteSiteIconRequest(server string) (*http.Request, error)
- func NewDeleteTaglineRequest(server string, body DeleteTaglineJSONRequestBody) (*http.Request, error)
- func NewDeleteTaglineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteUserAvatarRequest(server string) (*http.Request, error)
- func NewDeleteUserBannerRequest(server string) (*http.Request, error)
- func NewDistinguishCommentRequest(server string, body DistinguishCommentJSONRequestBody) (*http.Request, error)
- func NewDistinguishCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditCommentRequest(server string, body EditCommentJSONRequestBody) (*http.Request, error)
- func NewEditCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditCommunityRequest(server string, body EditCommunityJSONRequestBody) (*http.Request, error)
- func NewEditCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditCustomEmojiRequest(server string, body EditCustomEmojiJSONRequestBody) (*http.Request, error)
- func NewEditCustomEmojiRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditOAuthProviderRequest(server string, body EditOAuthProviderJSONRequestBody) (*http.Request, error)
- func NewEditOAuthProviderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditPostRequest(server string, body EditPostJSONRequestBody) (*http.Request, error)
- func NewEditPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditPrivateMessageRequest(server string, body EditPrivateMessageJSONRequestBody) (*http.Request, error)
- func NewEditPrivateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditSiteRequest(server string, body EditSiteJSONRequestBody) (*http.Request, error)
- func NewEditSiteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewEditTaglineRequest(server string, body EditTaglineJSONRequestBody) (*http.Request, error)
- func NewEditTaglineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewExportSettingsRequest(server string) (*http.Request, error)
- func NewFeaturePostRequest(server string, body FeaturePostJSONRequestBody) (*http.Request, error)
- func NewFeaturePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewFollowCommunityRequest(server string, body FollowCommunityJSONRequestBody) (*http.Request, error)
- func NewFollowCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGenerateTotpSecretRequest(server string) (*http.Request, error)
- func NewGetBannedPersonsRequest(server string) (*http.Request, error)
- func NewGetCaptchaRequest(server string) (*http.Request, error)
- func NewGetCommentRequest(server string, params *GetCommentParams) (*http.Request, error)
- func NewGetCommentsRequest(server string, params *GetCommentsParams) (*http.Request, error)
- func NewGetCommentsSlimRequest(server string, params *GetCommentsSlimParams) (*http.Request, error)
- func NewGetCommunityPendingFollowsCountRequest(server string, params *GetCommunityPendingFollowsCountParams) (*http.Request, error)
- func NewGetCommunityRequest(server string, params *GetCommunityParams) (*http.Request, error)
- func NewGetFederatedInstancesRequest(server string) (*http.Request, error)
- func NewGetModlogRequest(server string, params *GetModlogParams) (*http.Request, error)
- func NewGetMyUserRequest(server string) (*http.Request, error)
- func NewGetPersonDetailsRequest(server string, params *GetPersonDetailsParams) (*http.Request, error)
- func NewGetPostRequest(server string, params *GetPostParams) (*http.Request, error)
- func NewGetPostsRequest(server string, params *GetPostsParams) (*http.Request, error)
- func NewGetRandomCommunityRequest(server string, params *GetRandomCommunityParams) (*http.Request, error)
- func NewGetRegistrationApplicationRequest(server string, params *GetRegistrationApplicationParams) (*http.Request, error)
- func NewGetReportCountRequest(server string, params *GetReportCountParams) (*http.Request, error)
- func NewGetSiteMetadataRequest(server string, params *GetSiteMetadataParams) (*http.Request, error)
- func NewGetSiteRequest(server string) (*http.Request, error)
- func NewGetUnreadCountRequest(server string) (*http.Request, error)
- func NewGetUnreadRegistrationApplicationCountRequest(server string) (*http.Request, error)
- func NewHideCommunityRequest(server string, body HideCommunityJSONRequestBody) (*http.Request, error)
- func NewHideCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewHidePostRequest(server string, body HidePostJSONRequestBody) (*http.Request, error)
- func NewHidePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewImageHealthRequest(server string) (*http.Request, error)
- func NewImportSettingsRequest(server string, body ImportSettingsJSONRequestBody) (*http.Request, error)
- func NewImportSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLeaveAdminRequest(server string) (*http.Request, error)
- func NewLikeCommentRequest(server string, body LikeCommentJSONRequestBody) (*http.Request, error)
- func NewLikeCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLikePostRequest(server string, body LikePostJSONRequestBody) (*http.Request, error)
- func NewLikePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListAllMediaRequest(server string, params *ListAllMediaParams) (*http.Request, error)
- func NewListCommentLikesRequest(server string, params *ListCommentLikesParams) (*http.Request, error)
- func NewListCommunitiesRequest(server string, params *ListCommunitiesParams) (*http.Request, error)
- func NewListCommunityPendingFollowsRequest(server string, params *ListCommunityPendingFollowsParams) (*http.Request, error)
- func NewListCustomEmojisRequest(server string, params *ListCustomEmojisParams) (*http.Request, error)
- func NewListInboxRequest(server string, params *ListInboxParams) (*http.Request, error)
- func NewListLoginsRequest(server string) (*http.Request, error)
- func NewListMediaRequest(server string, params *ListMediaParams) (*http.Request, error)
- func NewListPersonContentRequest(server string, params *ListPersonContentParams) (*http.Request, error)
- func NewListPersonSavedRequest(server string, params *ListPersonSavedParams) (*http.Request, error)
- func NewListPostLikesRequest(server string, params *ListPostLikesParams) (*http.Request, error)
- func NewListRegistrationApplicationsRequest(server string, params *ListRegistrationApplicationsParams) (*http.Request, error)
- func NewListReportsRequest(server string, params *ListReportsParams) (*http.Request, error)
- func NewListTaglinesRequest(server string, params *ListTaglinesParams) (*http.Request, error)
- func NewLockPostRequest(server string, body LockPostJSONRequestBody) (*http.Request, error)
- func NewLockPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
- func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLogoutRequest(server string) (*http.Request, error)
- func NewMarkAllNotificationsAsReadRequest(server string) (*http.Request, error)
- func NewMarkCommentMentionAsReadRequest(server string, body MarkCommentMentionAsReadJSONRequestBody) (*http.Request, error)
- func NewMarkCommentMentionAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMarkCommentReplyAsReadRequest(server string, body MarkCommentReplyAsReadJSONRequestBody) (*http.Request, error)
- func NewMarkCommentReplyAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMarkManyPostAsReadRequest(server string, body MarkManyPostAsReadJSONRequestBody) (*http.Request, error)
- func NewMarkManyPostAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMarkPostAsReadRequest(server string, body MarkPostAsReadJSONRequestBody) (*http.Request, error)
- func NewMarkPostAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMarkPostMentionAsReadRequest(server string, body MarkPostMentionAsReadJSONRequestBody) (*http.Request, error)
- func NewMarkPostMentionAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewMarkPrivateMessageAsReadRequest(server string, body MarkPrivateMessageAsReadJSONRequestBody) (*http.Request, error)
- func NewMarkPrivateMessageAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPasswordChangeAfterResetRequest(server string, body PasswordChangeAfterResetJSONRequestBody) (*http.Request, error)
- func NewPasswordChangeAfterResetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPasswordResetRequest(server string, body PasswordResetJSONRequestBody) (*http.Request, error)
- func NewPasswordResetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPurgeCommentRequest(server string, body PurgeCommentJSONRequestBody) (*http.Request, error)
- func NewPurgeCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPurgeCommunityRequest(server string, body PurgeCommunityJSONRequestBody) (*http.Request, error)
- func NewPurgeCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPurgePersonRequest(server string, body PurgePersonJSONRequestBody) (*http.Request, error)
- func NewPurgePersonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPurgePostRequest(server string, body PurgePostJSONRequestBody) (*http.Request, error)
- func NewPurgePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRegisterRequest(server string, body RegisterJSONRequestBody) (*http.Request, error)
- func NewRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveCommentRequest(server string, body RemoveCommentJSONRequestBody) (*http.Request, error)
- func NewRemoveCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemoveCommunityRequest(server string, body RemoveCommunityJSONRequestBody) (*http.Request, error)
- func NewRemoveCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRemovePostRequest(server string, body RemovePostJSONRequestBody) (*http.Request, error)
- func NewRemovePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResendVerificationEmailRequest(server string, body ResendVerificationEmailJSONRequestBody) (*http.Request, error)
- func NewResendVerificationEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResolveCommentReportRequest(server string, body ResolveCommentReportJSONRequestBody) (*http.Request, error)
- func NewResolveCommentReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResolveObjectRequest(server string, params *ResolveObjectParams) (*http.Request, error)
- func NewResolvePostReportRequest(server string, body ResolvePostReportJSONRequestBody) (*http.Request, error)
- func NewResolvePostReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewResolvePrivateMessageReportRequest(server string, body ResolvePrivateMessageReportJSONRequestBody) (*http.Request, error)
- func NewResolvePrivateMessageReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSaveCommentRequest(server string, body SaveCommentJSONRequestBody) (*http.Request, error)
- func NewSaveCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSavePostRequest(server string, body SavePostJSONRequestBody) (*http.Request, error)
- func NewSavePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSaveUserSettingsRequest(server string, body SaveUserSettingsJSONRequestBody) (*http.Request, error)
- func NewSaveUserSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSearchRequest(server string, params *SearchParams) (*http.Request, error)
- func NewTransferCommunityRequest(server string, body TransferCommunityJSONRequestBody) (*http.Request, error)
- func NewTransferCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTotpRequest(server string, body UpdateTotpJSONRequestBody) (*http.Request, error)
- func NewUpdateTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadCommunityBannerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadCommunityIconRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadImageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadSiteBannerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadSiteIconRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadUserAvatarRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadUserBannerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUserBlockInstanceRequest(server string, body UserBlockInstanceJSONRequestBody) (*http.Request, error)
- func NewUserBlockInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewValidateAuthRequest(server string) (*http.Request, error)
- func NewVerifyEmailRequest(server string, body VerifyEmailJSONRequestBody) (*http.Request, error)
- func NewVerifyEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type ActivityId
- type AddAdmin
- type AddAdminJSONRequestBody
- type AddAdminResp
- type AddAdminResponse
- type AddModToCommunity
- type AddModToCommunityJSONRequestBody
- type AddModToCommunityResp
- type AddModToCommunityResponse
- type AdminAllowInstance
- type AdminAllowInstanceId
- type AdminAllowInstanceJSONRequestBody
- type AdminAllowInstanceParams
- type AdminAllowInstanceResp
- type AdminAllowInstanceView
- type AdminBlockInstance
- type AdminBlockInstanceId
- type AdminBlockInstanceJSONRequestBody
- type AdminBlockInstanceParams
- type AdminBlockInstanceResp
- type AdminBlockInstanceView
- type AdminPurgeComment
- type AdminPurgeCommentId
- type AdminPurgeCommentView
- type AdminPurgeCommunity
- type AdminPurgeCommunityId
- type AdminPurgeCommunityView
- type AdminPurgePerson
- type AdminPurgePersonId
- type AdminPurgePersonView
- type AdminPurgePost
- type AdminPurgePostId
- type AdminPurgePostView
- type ApproveCommunityPendingFollowJSONRequestBody
- type ApproveCommunityPendingFollowResp
- type ApproveCommunityPendingFollower
- type ApproveRegistrationApplication
- type ApproveRegistrationApplicationJSONRequestBody
- type ApproveRegistrationApplicationResp
- type AuthenticateWithOAuthJSONRequestBody
- type AuthenticateWithOAuthResp
- type AuthenticateWithOauth
- type BanFromCommunity
- type BanFromCommunityJSONRequestBody
- type BanFromCommunityResp
- type BanFromCommunityResponse
- type BanPerson
- type BanPersonJSONRequestBody
- type BanPersonResp
- type BanPersonResponse
- type BannedPersonsResponse
- type BlockCommunity
- type BlockCommunityJSONRequestBody
- type BlockCommunityResp
- type BlockCommunityResponse
- type BlockPerson
- type BlockPersonJSONRequestBody
- type BlockPersonResp
- type BlockPersonResponse
- type CaptchaResponse
- type ChangePassword
- type ChangePasswordJSONRequestBody
- type ChangePasswordResp
- type Client
- func (c *Client) AddAdmin(ctx context.Context, body AddAdminJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddAdminWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddModToCommunity(ctx context.Context, body AddModToCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddModToCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AdminAllowInstance(ctx context.Context, body AdminAllowInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AdminAllowInstanceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AdminBlockInstance(ctx context.Context, body AdminBlockInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AdminBlockInstanceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ApproveCommunityPendingFollow(ctx context.Context, body ApproveCommunityPendingFollowJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ApproveCommunityPendingFollowWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ApproveRegistrationApplication(ctx context.Context, body ApproveRegistrationApplicationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ApproveRegistrationApplicationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AuthenticateWithOAuth(ctx context.Context, body AuthenticateWithOAuthJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthenticateWithOAuthWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BanFromCommunity(ctx context.Context, body BanFromCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BanFromCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BanPerson(ctx context.Context, body BanPersonJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BanPersonWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BlockCommunity(ctx context.Context, body BlockCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BlockCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) BlockPerson(ctx context.Context, body BlockPersonJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) BlockPersonWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateComment(ctx context.Context, body CreateCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCommentReport(ctx context.Context, body CreateCommentReportJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCommentReportWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateCommunity(ctx context.Context, body CreateCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateCustomEmoji(ctx context.Context, body CreateCustomEmojiJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCustomEmojiWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateOAuthProvider(ctx context.Context, body CreateOAuthProviderJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateOAuthProviderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePost(ctx context.Context, body CreatePostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePostReport(ctx context.Context, body CreatePostReportJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePostReportWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePrivateMessage(ctx context.Context, body CreatePrivateMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePrivateMessageReport(ctx context.Context, body CreatePrivateMessageReportJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreatePrivateMessageReportWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreatePrivateMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSite(ctx context.Context, body CreateSiteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSiteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateTagline(ctx context.Context, body CreateTaglineJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateTaglineWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteAccount(ctx context.Context, body DeleteAccountJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteAccountWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteComment(ctx context.Context, body DeleteCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteCommunity(ctx context.Context, body DeleteCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteCommunityBanner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteCommunityIcon(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteCustomEmoji(ctx context.Context, body DeleteCustomEmojiJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteCustomEmojiWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteImage(ctx context.Context, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteOAuthProvider(ctx context.Context, body DeleteOAuthProviderJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteOAuthProviderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeletePost(ctx context.Context, body DeletePostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeletePostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeletePrivateMessage(ctx context.Context, body DeletePrivateMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeletePrivateMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteSiteBanner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSiteIcon(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteTagline(ctx context.Context, body DeleteTaglineJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DeleteTaglineWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteUserAvatar(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteUserBanner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DistinguishComment(ctx context.Context, body DistinguishCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) DistinguishCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditComment(ctx context.Context, body EditCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditCommunity(ctx context.Context, body EditCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditCustomEmoji(ctx context.Context, body EditCustomEmojiJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditCustomEmojiWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditOAuthProvider(ctx context.Context, body EditOAuthProviderJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditOAuthProviderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditPost(ctx context.Context, body EditPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditPrivateMessage(ctx context.Context, body EditPrivateMessageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditPrivateMessageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditSite(ctx context.Context, body EditSiteJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditSiteWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EditTagline(ctx context.Context, body EditTaglineJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditTaglineWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExportSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) FeaturePost(ctx context.Context, body FeaturePostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FeaturePostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) FollowCommunity(ctx context.Context, body FollowCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FollowCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GenerateTotpSecret(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBannedPersons(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCaptcha(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetComment(ctx context.Context, params *GetCommentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetComments(ctx context.Context, params *GetCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCommentsSlim(ctx context.Context, params *GetCommentsSlimParams, ...) (*http.Response, error)
- func (c *Client) GetCommunity(ctx context.Context, params *GetCommunityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCommunityPendingFollowsCount(ctx context.Context, params *GetCommunityPendingFollowsCountParams, ...) (*http.Response, error)
- func (c *Client) GetFederatedInstances(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetModlog(ctx context.Context, params *GetModlogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMyUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPersonDetails(ctx context.Context, params *GetPersonDetailsParams, ...) (*http.Response, error)
- func (c *Client) GetPost(ctx context.Context, params *GetPostParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPosts(ctx context.Context, params *GetPostsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRandomCommunity(ctx context.Context, params *GetRandomCommunityParams, ...) (*http.Response, error)
- func (c *Client) GetRegistrationApplication(ctx context.Context, params *GetRegistrationApplicationParams, ...) (*http.Response, error)
- func (c *Client) GetReportCount(ctx context.Context, params *GetReportCountParams, ...) (*http.Response, error)
- func (c *Client) GetSite(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSiteMetadata(ctx context.Context, params *GetSiteMetadataParams, ...) (*http.Response, error)
- func (c *Client) GetUnreadCount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUnreadRegistrationApplicationCount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) HideCommunity(ctx context.Context, body HideCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) HideCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) HidePost(ctx context.Context, body HidePostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) HidePostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ImageHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ImportSettings(ctx context.Context, body ImportSettingsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ImportSettingsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LeaveAdmin(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LikeComment(ctx context.Context, body LikeCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LikeCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LikePost(ctx context.Context, body LikePostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LikePostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListAllMedia(ctx context.Context, params *ListAllMediaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListCommentLikes(ctx context.Context, params *ListCommentLikesParams, ...) (*http.Response, error)
- func (c *Client) ListCommunities(ctx context.Context, params *ListCommunitiesParams, ...) (*http.Response, error)
- func (c *Client) ListCommunityPendingFollows(ctx context.Context, params *ListCommunityPendingFollowsParams, ...) (*http.Response, error)
- func (c *Client) ListCustomEmojis(ctx context.Context, params *ListCustomEmojisParams, ...) (*http.Response, error)
- func (c *Client) ListInbox(ctx context.Context, params *ListInboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListLogins(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListMedia(ctx context.Context, params *ListMediaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListPersonContent(ctx context.Context, params *ListPersonContentParams, ...) (*http.Response, error)
- func (c *Client) ListPersonSaved(ctx context.Context, params *ListPersonSavedParams, ...) (*http.Response, error)
- func (c *Client) ListPostLikes(ctx context.Context, params *ListPostLikesParams, ...) (*http.Response, error)
- func (c *Client) ListRegistrationApplications(ctx context.Context, params *ListRegistrationApplicationsParams, ...) (*http.Response, error)
- func (c *Client) ListReports(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListTaglines(ctx context.Context, params *ListTaglinesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LockPost(ctx context.Context, body LockPostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LockPostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LoginWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MarkAllNotificationsAsRead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) MarkCommentMentionAsRead(ctx context.Context, body MarkCommentMentionAsReadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkCommentMentionAsReadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MarkCommentReplyAsRead(ctx context.Context, body MarkCommentReplyAsReadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkCommentReplyAsReadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MarkManyPostAsRead(ctx context.Context, body MarkManyPostAsReadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkManyPostAsReadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MarkPostAsRead(ctx context.Context, body MarkPostAsReadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkPostAsReadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MarkPostMentionAsRead(ctx context.Context, body MarkPostMentionAsReadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkPostMentionAsReadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) MarkPrivateMessageAsRead(ctx context.Context, body MarkPrivateMessageAsReadJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) MarkPrivateMessageAsReadWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PasswordChangeAfterReset(ctx context.Context, body PasswordChangeAfterResetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PasswordChangeAfterResetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PasswordReset(ctx context.Context, body PasswordResetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PasswordResetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PurgeComment(ctx context.Context, body PurgeCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PurgeCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PurgeCommunity(ctx context.Context, body PurgeCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PurgeCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PurgePerson(ctx context.Context, body PurgePersonJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PurgePersonWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PurgePost(ctx context.Context, body PurgePostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PurgePostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Register(ctx context.Context, body RegisterJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RegisterWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveComment(ctx context.Context, body RemoveCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemoveCommunity(ctx context.Context, body RemoveCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemoveCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RemovePost(ctx context.Context, body RemovePostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RemovePostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResendVerificationEmail(ctx context.Context, body ResendVerificationEmailJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResendVerificationEmailWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResolveCommentReport(ctx context.Context, body ResolveCommentReportJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResolveCommentReportWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResolveObject(ctx context.Context, params *ResolveObjectParams, ...) (*http.Response, error)
- func (c *Client) ResolvePostReport(ctx context.Context, body ResolvePostReportJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResolvePostReportWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ResolvePrivateMessageReport(ctx context.Context, body ResolvePrivateMessageReportJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ResolvePrivateMessageReportWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SaveComment(ctx context.Context, body SaveCommentJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SaveCommentWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SavePost(ctx context.Context, body SavePostJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SavePostWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SaveUserSettings(ctx context.Context, body SaveUserSettingsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SaveUserSettingsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Search(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TransferCommunity(ctx context.Context, body TransferCommunityJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) TransferCommunityWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateTotp(ctx context.Context, body UpdateTotpJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateTotpWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadCommunityBannerWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadCommunityIconWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadImageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadSiteBannerWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadSiteIconWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadUserAvatarWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadUserBannerWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UserBlockInstance(ctx context.Context, body UserBlockInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UserBlockInstanceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ValidateAuth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) VerifyEmail(ctx context.Context, body VerifyEmailJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) VerifyEmailWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddAdminResp, error)
- func (c *ClientWithResponses) AddAdminWithResponse(ctx context.Context, body AddAdminJSONRequestBody, ...) (*AddAdminResp, error)
- func (c *ClientWithResponses) AddModToCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddModToCommunityResp, error)
- func (c *ClientWithResponses) AddModToCommunityWithResponse(ctx context.Context, body AddModToCommunityJSONRequestBody, ...) (*AddModToCommunityResp, error)
- func (c *ClientWithResponses) AdminAllowInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AdminAllowInstanceResp, error)
- func (c *ClientWithResponses) AdminAllowInstanceWithResponse(ctx context.Context, body AdminAllowInstanceJSONRequestBody, ...) (*AdminAllowInstanceResp, error)
- func (c *ClientWithResponses) AdminBlockInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AdminBlockInstanceResp, error)
- func (c *ClientWithResponses) AdminBlockInstanceWithResponse(ctx context.Context, body AdminBlockInstanceJSONRequestBody, ...) (*AdminBlockInstanceResp, error)
- func (c *ClientWithResponses) ApproveCommunityPendingFollowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ApproveCommunityPendingFollowResp, error)
- func (c *ClientWithResponses) ApproveCommunityPendingFollowWithResponse(ctx context.Context, body ApproveCommunityPendingFollowJSONRequestBody, ...) (*ApproveCommunityPendingFollowResp, error)
- func (c *ClientWithResponses) ApproveRegistrationApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ApproveRegistrationApplicationResp, error)
- func (c *ClientWithResponses) ApproveRegistrationApplicationWithResponse(ctx context.Context, body ApproveRegistrationApplicationJSONRequestBody, ...) (*ApproveRegistrationApplicationResp, error)
- func (c *ClientWithResponses) AuthenticateWithOAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthenticateWithOAuthResp, error)
- func (c *ClientWithResponses) AuthenticateWithOAuthWithResponse(ctx context.Context, body AuthenticateWithOAuthJSONRequestBody, ...) (*AuthenticateWithOAuthResp, error)
- func (c *ClientWithResponses) BanFromCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BanFromCommunityResp, error)
- func (c *ClientWithResponses) BanFromCommunityWithResponse(ctx context.Context, body BanFromCommunityJSONRequestBody, ...) (*BanFromCommunityResp, error)
- func (c *ClientWithResponses) BanPersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BanPersonResp, error)
- func (c *ClientWithResponses) BanPersonWithResponse(ctx context.Context, body BanPersonJSONRequestBody, ...) (*BanPersonResp, error)
- func (c *ClientWithResponses) BlockCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BlockCommunityResp, error)
- func (c *ClientWithResponses) BlockCommunityWithResponse(ctx context.Context, body BlockCommunityJSONRequestBody, ...) (*BlockCommunityResp, error)
- func (c *ClientWithResponses) BlockPersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*BlockPersonResp, error)
- func (c *ClientWithResponses) BlockPersonWithResponse(ctx context.Context, body BlockPersonJSONRequestBody, ...) (*BlockPersonResp, error)
- func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ChangePasswordResp, error)
- func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, ...) (*ChangePasswordResp, error)
- func (c *ClientWithResponses) CreateCommentReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateCommentReportResp, error)
- func (c *ClientWithResponses) CreateCommentReportWithResponse(ctx context.Context, body CreateCommentReportJSONRequestBody, ...) (*CreateCommentReportResp, error)
- func (c *ClientWithResponses) CreateCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateCommentResp, error)
- func (c *ClientWithResponses) CreateCommentWithResponse(ctx context.Context, body CreateCommentJSONRequestBody, ...) (*CreateCommentResp, error)
- func (c *ClientWithResponses) CreateCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateCommunityResp, error)
- func (c *ClientWithResponses) CreateCommunityWithResponse(ctx context.Context, body CreateCommunityJSONRequestBody, ...) (*CreateCommunityResp, error)
- func (c *ClientWithResponses) CreateCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateCustomEmojiResp, error)
- func (c *ClientWithResponses) CreateCustomEmojiWithResponse(ctx context.Context, body CreateCustomEmojiJSONRequestBody, ...) (*CreateCustomEmojiResp, error)
- func (c *ClientWithResponses) CreateOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateOAuthProviderResp, error)
- func (c *ClientWithResponses) CreateOAuthProviderWithResponse(ctx context.Context, body CreateOAuthProviderJSONRequestBody, ...) (*CreateOAuthProviderResp, error)
- func (c *ClientWithResponses) CreatePostReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePostReportResp, error)
- func (c *ClientWithResponses) CreatePostReportWithResponse(ctx context.Context, body CreatePostReportJSONRequestBody, ...) (*CreatePostReportResp, error)
- func (c *ClientWithResponses) CreatePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePostResp, error)
- func (c *ClientWithResponses) CreatePostWithResponse(ctx context.Context, body CreatePostJSONRequestBody, ...) (*CreatePostResp, error)
- func (c *ClientWithResponses) CreatePrivateMessageReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePrivateMessageReportResp, error)
- func (c *ClientWithResponses) CreatePrivateMessageReportWithResponse(ctx context.Context, body CreatePrivateMessageReportJSONRequestBody, ...) (*CreatePrivateMessageReportResp, error)
- func (c *ClientWithResponses) CreatePrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreatePrivateMessageResp, error)
- func (c *ClientWithResponses) CreatePrivateMessageWithResponse(ctx context.Context, body CreatePrivateMessageJSONRequestBody, ...) (*CreatePrivateMessageResp, error)
- func (c *ClientWithResponses) CreateSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSiteResp, error)
- func (c *ClientWithResponses) CreateSiteWithResponse(ctx context.Context, body CreateSiteJSONRequestBody, ...) (*CreateSiteResp, error)
- func (c *ClientWithResponses) CreateTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTaglineResp, error)
- func (c *ClientWithResponses) CreateTaglineWithResponse(ctx context.Context, body CreateTaglineJSONRequestBody, ...) (*CreateTaglineResp, error)
- func (c *ClientWithResponses) DeleteAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteAccountResp, error)
- func (c *ClientWithResponses) DeleteAccountWithResponse(ctx context.Context, body DeleteAccountJSONRequestBody, ...) (*DeleteAccountResp, error)
- func (c *ClientWithResponses) DeleteCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteCommentResp, error)
- func (c *ClientWithResponses) DeleteCommentWithResponse(ctx context.Context, body DeleteCommentJSONRequestBody, ...) (*DeleteCommentResp, error)
- func (c *ClientWithResponses) DeleteCommunityBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCommunityBannerResp, error)
- func (c *ClientWithResponses) DeleteCommunityIconWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCommunityIconResp, error)
- func (c *ClientWithResponses) DeleteCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteCommunityResp, error)
- func (c *ClientWithResponses) DeleteCommunityWithResponse(ctx context.Context, body DeleteCommunityJSONRequestBody, ...) (*DeleteCommunityResp, error)
- func (c *ClientWithResponses) DeleteCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteCustomEmojiResp, error)
- func (c *ClientWithResponses) DeleteCustomEmojiWithResponse(ctx context.Context, body DeleteCustomEmojiJSONRequestBody, ...) (*DeleteCustomEmojiResp, error)
- func (c *ClientWithResponses) DeleteImageWithResponse(ctx context.Context, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*DeleteImageResp, error)
- func (c *ClientWithResponses) DeleteOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteOAuthProviderResp, error)
- func (c *ClientWithResponses) DeleteOAuthProviderWithResponse(ctx context.Context, body DeleteOAuthProviderJSONRequestBody, ...) (*DeleteOAuthProviderResp, error)
- func (c *ClientWithResponses) DeletePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeletePostResp, error)
- func (c *ClientWithResponses) DeletePostWithResponse(ctx context.Context, body DeletePostJSONRequestBody, ...) (*DeletePostResp, error)
- func (c *ClientWithResponses) DeletePrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeletePrivateMessageResp, error)
- func (c *ClientWithResponses) DeletePrivateMessageWithResponse(ctx context.Context, body DeletePrivateMessageJSONRequestBody, ...) (*DeletePrivateMessageResp, error)
- func (c *ClientWithResponses) DeleteSiteBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSiteBannerResp, error)
- func (c *ClientWithResponses) DeleteSiteIconWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSiteIconResp, error)
- func (c *ClientWithResponses) DeleteTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DeleteTaglineResp, error)
- func (c *ClientWithResponses) DeleteTaglineWithResponse(ctx context.Context, body DeleteTaglineJSONRequestBody, ...) (*DeleteTaglineResp, error)
- func (c *ClientWithResponses) DeleteUserAvatarWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUserAvatarResp, error)
- func (c *ClientWithResponses) DeleteUserBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUserBannerResp, error)
- func (c *ClientWithResponses) DistinguishCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*DistinguishCommentResp, error)
- func (c *ClientWithResponses) DistinguishCommentWithResponse(ctx context.Context, body DistinguishCommentJSONRequestBody, ...) (*DistinguishCommentResp, error)
- func (c *ClientWithResponses) EditCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditCommentResp, error)
- func (c *ClientWithResponses) EditCommentWithResponse(ctx context.Context, body EditCommentJSONRequestBody, ...) (*EditCommentResp, error)
- func (c *ClientWithResponses) EditCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditCommunityResp, error)
- func (c *ClientWithResponses) EditCommunityWithResponse(ctx context.Context, body EditCommunityJSONRequestBody, ...) (*EditCommunityResp, error)
- func (c *ClientWithResponses) EditCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditCustomEmojiResp, error)
- func (c *ClientWithResponses) EditCustomEmojiWithResponse(ctx context.Context, body EditCustomEmojiJSONRequestBody, ...) (*EditCustomEmojiResp, error)
- func (c *ClientWithResponses) EditOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditOAuthProviderResp, error)
- func (c *ClientWithResponses) EditOAuthProviderWithResponse(ctx context.Context, body EditOAuthProviderJSONRequestBody, ...) (*EditOAuthProviderResp, error)
- func (c *ClientWithResponses) EditPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditPostResp, error)
- func (c *ClientWithResponses) EditPostWithResponse(ctx context.Context, body EditPostJSONRequestBody, ...) (*EditPostResp, error)
- func (c *ClientWithResponses) EditPrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditPrivateMessageResp, error)
- func (c *ClientWithResponses) EditPrivateMessageWithResponse(ctx context.Context, body EditPrivateMessageJSONRequestBody, ...) (*EditPrivateMessageResp, error)
- func (c *ClientWithResponses) EditSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditSiteResp, error)
- func (c *ClientWithResponses) EditSiteWithResponse(ctx context.Context, body EditSiteJSONRequestBody, ...) (*EditSiteResp, error)
- func (c *ClientWithResponses) EditTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*EditTaglineResp, error)
- func (c *ClientWithResponses) EditTaglineWithResponse(ctx context.Context, body EditTaglineJSONRequestBody, ...) (*EditTaglineResp, error)
- func (c *ClientWithResponses) ExportSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExportSettingsResp, error)
- func (c *ClientWithResponses) FeaturePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FeaturePostResp, error)
- func (c *ClientWithResponses) FeaturePostWithResponse(ctx context.Context, body FeaturePostJSONRequestBody, ...) (*FeaturePostResp, error)
- func (c *ClientWithResponses) FollowCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FollowCommunityResp, error)
- func (c *ClientWithResponses) FollowCommunityWithResponse(ctx context.Context, body FollowCommunityJSONRequestBody, ...) (*FollowCommunityResp, error)
- func (c *ClientWithResponses) GenerateTotpSecretWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GenerateTotpSecretResp, error)
- func (c *ClientWithResponses) GetBannedPersonsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBannedPersonsResp, error)
- func (c *ClientWithResponses) GetCaptchaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaptchaResp, error)
- func (c *ClientWithResponses) GetCommentWithResponse(ctx context.Context, params *GetCommentParams, reqEditors ...RequestEditorFn) (*GetCommentResp, error)
- func (c *ClientWithResponses) GetCommentsSlimWithResponse(ctx context.Context, params *GetCommentsSlimParams, ...) (*GetCommentsSlimResp, error)
- func (c *ClientWithResponses) GetCommentsWithResponse(ctx context.Context, params *GetCommentsParams, reqEditors ...RequestEditorFn) (*GetCommentsResp, error)
- func (c *ClientWithResponses) GetCommunityPendingFollowsCountWithResponse(ctx context.Context, params *GetCommunityPendingFollowsCountParams, ...) (*GetCommunityPendingFollowsCountResp, error)
- func (c *ClientWithResponses) GetCommunityWithResponse(ctx context.Context, params *GetCommunityParams, reqEditors ...RequestEditorFn) (*GetCommunityResp, error)
- func (c *ClientWithResponses) GetFederatedInstancesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFederatedInstancesResp, error)
- func (c *ClientWithResponses) GetModlogWithResponse(ctx context.Context, params *GetModlogParams, reqEditors ...RequestEditorFn) (*GetModlogResp, error)
- func (c *ClientWithResponses) GetMyUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyUserResp, error)
- func (c *ClientWithResponses) GetPersonDetailsWithResponse(ctx context.Context, params *GetPersonDetailsParams, ...) (*GetPersonDetailsResp, error)
- func (c *ClientWithResponses) GetPostWithResponse(ctx context.Context, params *GetPostParams, reqEditors ...RequestEditorFn) (*GetPostResp, error)
- func (c *ClientWithResponses) GetPostsWithResponse(ctx context.Context, params *GetPostsParams, reqEditors ...RequestEditorFn) (*GetPostsResp, error)
- func (c *ClientWithResponses) GetRandomCommunityWithResponse(ctx context.Context, params *GetRandomCommunityParams, ...) (*GetRandomCommunityResp, error)
- func (c *ClientWithResponses) GetRegistrationApplicationWithResponse(ctx context.Context, params *GetRegistrationApplicationParams, ...) (*GetRegistrationApplicationResp, error)
- func (c *ClientWithResponses) GetReportCountWithResponse(ctx context.Context, params *GetReportCountParams, ...) (*GetReportCountResp, error)
- func (c *ClientWithResponses) GetSiteMetadataWithResponse(ctx context.Context, params *GetSiteMetadataParams, ...) (*GetSiteMetadataResp, error)
- func (c *ClientWithResponses) GetSiteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSiteResp, error)
- func (c *ClientWithResponses) GetUnreadCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadCountResp, error)
- func (c *ClientWithResponses) GetUnreadRegistrationApplicationCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadRegistrationApplicationCountResp, error)
- func (c *ClientWithResponses) HideCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*HideCommunityResp, error)
- func (c *ClientWithResponses) HideCommunityWithResponse(ctx context.Context, body HideCommunityJSONRequestBody, ...) (*HideCommunityResp, error)
- func (c *ClientWithResponses) HidePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*HidePostResp, error)
- func (c *ClientWithResponses) HidePostWithResponse(ctx context.Context, body HidePostJSONRequestBody, ...) (*HidePostResp, error)
- func (c *ClientWithResponses) ImageHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ImageHealthResp, error)
- func (c *ClientWithResponses) ImportSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ImportSettingsResp, error)
- func (c *ClientWithResponses) ImportSettingsWithResponse(ctx context.Context, body ImportSettingsJSONRequestBody, ...) (*ImportSettingsResp, error)
- func (c *ClientWithResponses) LeaveAdminWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LeaveAdminResp, error)
- func (c *ClientWithResponses) LikeCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LikeCommentResp, error)
- func (c *ClientWithResponses) LikeCommentWithResponse(ctx context.Context, body LikeCommentJSONRequestBody, ...) (*LikeCommentResp, error)
- func (c *ClientWithResponses) LikePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LikePostResp, error)
- func (c *ClientWithResponses) LikePostWithResponse(ctx context.Context, body LikePostJSONRequestBody, ...) (*LikePostResp, error)
- func (c *ClientWithResponses) ListAllMediaWithResponse(ctx context.Context, params *ListAllMediaParams, reqEditors ...RequestEditorFn) (*ListAllMediaResp, error)
- func (c *ClientWithResponses) ListCommentLikesWithResponse(ctx context.Context, params *ListCommentLikesParams, ...) (*ListCommentLikesResp, error)
- func (c *ClientWithResponses) ListCommunitiesWithResponse(ctx context.Context, params *ListCommunitiesParams, ...) (*ListCommunitiesResp, error)
- func (c *ClientWithResponses) ListCommunityPendingFollowsWithResponse(ctx context.Context, params *ListCommunityPendingFollowsParams, ...) (*ListCommunityPendingFollowsResp, error)
- func (c *ClientWithResponses) ListCustomEmojisWithResponse(ctx context.Context, params *ListCustomEmojisParams, ...) (*ListCustomEmojisResp, error)
- func (c *ClientWithResponses) ListInboxWithResponse(ctx context.Context, params *ListInboxParams, reqEditors ...RequestEditorFn) (*ListInboxResp, error)
- func (c *ClientWithResponses) ListLoginsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLoginsResp, error)
- func (c *ClientWithResponses) ListMediaWithResponse(ctx context.Context, params *ListMediaParams, reqEditors ...RequestEditorFn) (*ListMediaResp, error)
- func (c *ClientWithResponses) ListPersonContentWithResponse(ctx context.Context, params *ListPersonContentParams, ...) (*ListPersonContentResp, error)
- func (c *ClientWithResponses) ListPersonSavedWithResponse(ctx context.Context, params *ListPersonSavedParams, ...) (*ListPersonSavedResp, error)
- func (c *ClientWithResponses) ListPostLikesWithResponse(ctx context.Context, params *ListPostLikesParams, ...) (*ListPostLikesResp, error)
- func (c *ClientWithResponses) ListRegistrationApplicationsWithResponse(ctx context.Context, params *ListRegistrationApplicationsParams, ...) (*ListRegistrationApplicationsResp, error)
- func (c *ClientWithResponses) ListReportsWithResponse(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResp, error)
- func (c *ClientWithResponses) ListTaglinesWithResponse(ctx context.Context, params *ListTaglinesParams, reqEditors ...RequestEditorFn) (*ListTaglinesResp, error)
- func (c *ClientWithResponses) LockPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LockPostResp, error)
- func (c *ClientWithResponses) LockPostWithResponse(ctx context.Context, body LockPostJSONRequestBody, ...) (*LockPostResp, error)
- func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LoginResp, error)
- func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResp, error)
- func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResp, error)
- func (c *ClientWithResponses) MarkAllNotificationsAsReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkAllNotificationsAsReadResp, error)
- func (c *ClientWithResponses) MarkCommentMentionAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MarkCommentMentionAsReadResp, error)
- func (c *ClientWithResponses) MarkCommentMentionAsReadWithResponse(ctx context.Context, body MarkCommentMentionAsReadJSONRequestBody, ...) (*MarkCommentMentionAsReadResp, error)
- func (c *ClientWithResponses) MarkCommentReplyAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MarkCommentReplyAsReadResp, error)
- func (c *ClientWithResponses) MarkCommentReplyAsReadWithResponse(ctx context.Context, body MarkCommentReplyAsReadJSONRequestBody, ...) (*MarkCommentReplyAsReadResp, error)
- func (c *ClientWithResponses) MarkManyPostAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MarkManyPostAsReadResp, error)
- func (c *ClientWithResponses) MarkManyPostAsReadWithResponse(ctx context.Context, body MarkManyPostAsReadJSONRequestBody, ...) (*MarkManyPostAsReadResp, error)
- func (c *ClientWithResponses) MarkPostAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MarkPostAsReadResp, error)
- func (c *ClientWithResponses) MarkPostAsReadWithResponse(ctx context.Context, body MarkPostAsReadJSONRequestBody, ...) (*MarkPostAsReadResp, error)
- func (c *ClientWithResponses) MarkPostMentionAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MarkPostMentionAsReadResp, error)
- func (c *ClientWithResponses) MarkPostMentionAsReadWithResponse(ctx context.Context, body MarkPostMentionAsReadJSONRequestBody, ...) (*MarkPostMentionAsReadResp, error)
- func (c *ClientWithResponses) MarkPrivateMessageAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*MarkPrivateMessageAsReadResp, error)
- func (c *ClientWithResponses) MarkPrivateMessageAsReadWithResponse(ctx context.Context, body MarkPrivateMessageAsReadJSONRequestBody, ...) (*MarkPrivateMessageAsReadResp, error)
- func (c *ClientWithResponses) PasswordChangeAfterResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PasswordChangeAfterResetResp, error)
- func (c *ClientWithResponses) PasswordChangeAfterResetWithResponse(ctx context.Context, body PasswordChangeAfterResetJSONRequestBody, ...) (*PasswordChangeAfterResetResp, error)
- func (c *ClientWithResponses) PasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PasswordResetResp, error)
- func (c *ClientWithResponses) PasswordResetWithResponse(ctx context.Context, body PasswordResetJSONRequestBody, ...) (*PasswordResetResp, error)
- func (c *ClientWithResponses) PurgeCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PurgeCommentResp, error)
- func (c *ClientWithResponses) PurgeCommentWithResponse(ctx context.Context, body PurgeCommentJSONRequestBody, ...) (*PurgeCommentResp, error)
- func (c *ClientWithResponses) PurgeCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PurgeCommunityResp, error)
- func (c *ClientWithResponses) PurgeCommunityWithResponse(ctx context.Context, body PurgeCommunityJSONRequestBody, ...) (*PurgeCommunityResp, error)
- func (c *ClientWithResponses) PurgePersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PurgePersonResp, error)
- func (c *ClientWithResponses) PurgePersonWithResponse(ctx context.Context, body PurgePersonJSONRequestBody, ...) (*PurgePersonResp, error)
- func (c *ClientWithResponses) PurgePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PurgePostResp, error)
- func (c *ClientWithResponses) PurgePostWithResponse(ctx context.Context, body PurgePostJSONRequestBody, ...) (*PurgePostResp, error)
- func (c *ClientWithResponses) RegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RegisterResp, error)
- func (c *ClientWithResponses) RegisterWithResponse(ctx context.Context, body RegisterJSONRequestBody, ...) (*RegisterResp, error)
- func (c *ClientWithResponses) RemoveCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveCommentResp, error)
- func (c *ClientWithResponses) RemoveCommentWithResponse(ctx context.Context, body RemoveCommentJSONRequestBody, ...) (*RemoveCommentResp, error)
- func (c *ClientWithResponses) RemoveCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemoveCommunityResp, error)
- func (c *ClientWithResponses) RemoveCommunityWithResponse(ctx context.Context, body RemoveCommunityJSONRequestBody, ...) (*RemoveCommunityResp, error)
- func (c *ClientWithResponses) RemovePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RemovePostResp, error)
- func (c *ClientWithResponses) RemovePostWithResponse(ctx context.Context, body RemovePostJSONRequestBody, ...) (*RemovePostResp, error)
- func (c *ClientWithResponses) ResendVerificationEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResendVerificationEmailResp, error)
- func (c *ClientWithResponses) ResendVerificationEmailWithResponse(ctx context.Context, body ResendVerificationEmailJSONRequestBody, ...) (*ResendVerificationEmailResp, error)
- func (c *ClientWithResponses) ResolveCommentReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResolveCommentReportResp, error)
- func (c *ClientWithResponses) ResolveCommentReportWithResponse(ctx context.Context, body ResolveCommentReportJSONRequestBody, ...) (*ResolveCommentReportResp, error)
- func (c *ClientWithResponses) ResolveObjectWithResponse(ctx context.Context, params *ResolveObjectParams, ...) (*ResolveObjectResp, error)
- func (c *ClientWithResponses) ResolvePostReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResolvePostReportResp, error)
- func (c *ClientWithResponses) ResolvePostReportWithResponse(ctx context.Context, body ResolvePostReportJSONRequestBody, ...) (*ResolvePostReportResp, error)
- func (c *ClientWithResponses) ResolvePrivateMessageReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ResolvePrivateMessageReportResp, error)
- func (c *ClientWithResponses) ResolvePrivateMessageReportWithResponse(ctx context.Context, body ResolvePrivateMessageReportJSONRequestBody, ...) (*ResolvePrivateMessageReportResp, error)
- func (c *ClientWithResponses) SaveCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SaveCommentResp, error)
- func (c *ClientWithResponses) SaveCommentWithResponse(ctx context.Context, body SaveCommentJSONRequestBody, ...) (*SaveCommentResp, error)
- func (c *ClientWithResponses) SavePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SavePostResp, error)
- func (c *ClientWithResponses) SavePostWithResponse(ctx context.Context, body SavePostJSONRequestBody, ...) (*SavePostResp, error)
- func (c *ClientWithResponses) SaveUserSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SaveUserSettingsResp, error)
- func (c *ClientWithResponses) SaveUserSettingsWithResponse(ctx context.Context, body SaveUserSettingsJSONRequestBody, ...) (*SaveUserSettingsResp, error)
- func (c *ClientWithResponses) SearchWithResponse(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*SearchResp, error)
- func (c *ClientWithResponses) TransferCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*TransferCommunityResp, error)
- func (c *ClientWithResponses) TransferCommunityWithResponse(ctx context.Context, body TransferCommunityJSONRequestBody, ...) (*TransferCommunityResp, error)
- func (c *ClientWithResponses) UpdateTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateTotpResp, error)
- func (c *ClientWithResponses) UpdateTotpWithResponse(ctx context.Context, body UpdateTotpJSONRequestBody, ...) (*UpdateTotpResp, error)
- func (c *ClientWithResponses) UploadCommunityBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadCommunityBannerResp, error)
- func (c *ClientWithResponses) UploadCommunityIconWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadCommunityIconResp, error)
- func (c *ClientWithResponses) UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadImageResp, error)
- func (c *ClientWithResponses) UploadSiteBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadSiteBannerResp, error)
- func (c *ClientWithResponses) UploadSiteIconWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadSiteIconResp, error)
- func (c *ClientWithResponses) UploadUserAvatarWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadUserAvatarResp, error)
- func (c *ClientWithResponses) UploadUserBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UploadUserBannerResp, error)
- func (c *ClientWithResponses) UserBlockInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UserBlockInstanceResp, error)
- func (c *ClientWithResponses) UserBlockInstanceWithResponse(ctx context.Context, body UserBlockInstanceJSONRequestBody, ...) (*UserBlockInstanceResp, error)
- func (c *ClientWithResponses) ValidateAuthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ValidateAuthResp, error)
- func (c *ClientWithResponses) VerifyEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*VerifyEmailResp, error)
- func (c *ClientWithResponses) VerifyEmailWithResponse(ctx context.Context, body VerifyEmailJSONRequestBody, ...) (*VerifyEmailResp, error)
- type ClientWithResponsesInterface
- type Comment
- type CommentId
- type CommentReply
- type CommentReplyId
- type CommentReplyView
- type CommentReport
- type CommentReportId
- type CommentReportResponse
- type CommentReportView
- type CommentResponse
- type CommentSlimView
- type CommentSortType
- type CommentView
- type Community
- type CommunityFollowerView
- type CommunityId
- type CommunityModeratorView
- type CommunityReport
- type CommunityReportId
- type CommunityReportView
- type CommunityResponse
- type CommunitySortType
- type CommunityView
- type CommunityVisibility
- type CreateComment
- type CreateCommentJSONRequestBody
- type CreateCommentLike
- type CreateCommentReport
- type CreateCommentReportJSONRequestBody
- type CreateCommentReportResp
- type CreateCommentResp
- type CreateCommunity
- type CreateCommunityJSONRequestBody
- type CreateCommunityResp
- type CreateCustomEmoji
- type CreateCustomEmojiJSONRequestBody
- type CreateCustomEmojiResp
- type CreateOAuthProvider
- type CreateOAuthProviderJSONRequestBody
- type CreateOAuthProviderResp
- type CreatePost
- type CreatePostJSONRequestBody
- type CreatePostLike
- type CreatePostReport
- type CreatePostReportJSONRequestBody
- type CreatePostReportResp
- type CreatePostResp
- type CreatePrivateMessage
- type CreatePrivateMessageJSONRequestBody
- type CreatePrivateMessageReport
- type CreatePrivateMessageReportJSONRequestBody
- type CreatePrivateMessageReportResp
- type CreatePrivateMessageResp
- type CreateSite
- type CreateSiteJSONRequestBody
- type CreateSiteResp
- type CreateTagline
- type CreateTaglineJSONRequestBody
- type CreateTaglineResp
- type CustomEmoji
- type CustomEmojiId
- type CustomEmojiKeyword
- type CustomEmojiResponse
- type CustomEmojiView
- type DbUrl
- type DeleteAccount
- type DeleteAccountJSONRequestBody
- type DeleteAccountResp
- type DeleteComment
- type DeleteCommentJSONRequestBody
- type DeleteCommentResp
- type DeleteCommunity
- type DeleteCommunityBannerResp
- type DeleteCommunityIconResp
- type DeleteCommunityJSONRequestBody
- type DeleteCommunityResp
- type DeleteCustomEmoji
- type DeleteCustomEmojiJSONRequestBody
- type DeleteCustomEmojiResp
- type DeleteImageParams
- type DeleteImageResp
- type DeleteOAuthProvider
- type DeleteOAuthProviderJSONRequestBody
- type DeleteOAuthProviderResp
- type DeletePost
- type DeletePostJSONRequestBody
- type DeletePostResp
- type DeletePrivateMessage
- type DeletePrivateMessageJSONRequestBody
- type DeletePrivateMessageResp
- type DeleteSiteBannerResp
- type DeleteSiteIconResp
- type DeleteTagline
- type DeleteTaglineJSONRequestBody
- type DeleteTaglineResp
- type DeleteUserAvatarResp
- type DeleteUserBannerResp
- type DistinguishComment
- type DistinguishCommentJSONRequestBody
- type DistinguishCommentResp
- type EditComment
- type EditCommentJSONRequestBody
- type EditCommentResp
- type EditCommunity
- type EditCommunityJSONRequestBody
- type EditCommunityResp
- type EditCustomEmoji
- type EditCustomEmojiJSONRequestBody
- type EditCustomEmojiResp
- type EditOAuthProvider
- type EditOAuthProviderJSONRequestBody
- type EditOAuthProviderResp
- type EditPost
- type EditPostJSONRequestBody
- type EditPostResp
- type EditPrivateMessage
- type EditPrivateMessageJSONRequestBody
- type EditPrivateMessageResp
- type EditSite
- type EditSiteJSONRequestBody
- type EditSiteResp
- type EditTaglineJSONRequestBody
- type EditTaglineResp
- type ExportSettingsResp
- type FeaturePost
- type FeaturePostJSONRequestBody
- type FeaturePostResp
- type FederatedInstances
- type FederationMode
- type FollowCommunity
- type FollowCommunityJSONRequestBody
- type FollowCommunityResp
- type GenerateTotpSecretResp
- type GenerateTotpSecretResponse
- type GetBannedPersonsResp
- type GetCaptchaResp
- type GetCaptchaResponse
- type GetCommentParams
- type GetCommentResp
- type GetCommentsParams
- type GetCommentsResp
- type GetCommentsResponse
- type GetCommentsSlimParams
- type GetCommentsSlimResp
- type GetCommentsSlimResponse
- type GetCommunityParams
- type GetCommunityPendingFollowsCountParams
- type GetCommunityPendingFollowsCountResp
- type GetCommunityPendingFollowsCountResponse
- type GetCommunityResp
- type GetCommunityResponse
- type GetFederatedInstancesResp
- type GetFederatedInstancesResponse
- type GetModlogParams
- type GetModlogResp
- type GetModlogResponse
- type GetMyUserResp
- type GetPersonDetailsParams
- type GetPersonDetailsResp
- type GetPersonDetailsResponse
- type GetPostParams
- type GetPostResp
- type GetPostResponse
- type GetPostsParams
- type GetPostsResp
- type GetPostsResponse
- type GetRandomCommunityParams
- type GetRandomCommunityResp
- type GetRegistrationApplicationParams
- type GetRegistrationApplicationResp
- type GetReportCountParams
- type GetReportCountResp
- type GetReportCountResponse
- type GetSiteMetadataParams
- type GetSiteMetadataResp
- type GetSiteMetadataResponse
- type GetSiteResp
- type GetSiteResponse
- type GetUnreadCountResp
- type GetUnreadCountResponse
- type GetUnreadRegistrationApplicationCountResp
- type GetUnreadRegistrationApplicationCountResponse
- type HideCommunity
- type HideCommunityJSONRequestBody
- type HideCommunityResp
- type HidePost
- type HidePostJSONRequestBody
- type HidePostResp
- type HttpRequestDoer
- type ImageDetails
- type ImageHealthResp
- type ImportSettingsJSONBody
- type ImportSettingsJSONRequestBody
- type ImportSettingsResp
- type InboxCombinedPaginationCursor
- type InboxCombinedView
- func (t InboxCombinedView) AsInboxCombinedView0() (InboxCombinedView0, error)
- func (t InboxCombinedView) AsInboxCombinedView1() (InboxCombinedView1, error)
- func (t InboxCombinedView) AsInboxCombinedView2() (InboxCombinedView2, error)
- func (t InboxCombinedView) AsInboxCombinedView3() (InboxCombinedView3, error)
- func (t *InboxCombinedView) FromInboxCombinedView0(v InboxCombinedView0) error
- func (t *InboxCombinedView) FromInboxCombinedView1(v InboxCombinedView1) error
- func (t *InboxCombinedView) FromInboxCombinedView2(v InboxCombinedView2) error
- func (t *InboxCombinedView) FromInboxCombinedView3(v InboxCombinedView3) error
- func (t InboxCombinedView) MarshalJSON() ([]byte, error)
- func (t *InboxCombinedView) MergeInboxCombinedView0(v InboxCombinedView0) error
- func (t *InboxCombinedView) MergeInboxCombinedView1(v InboxCombinedView1) error
- func (t *InboxCombinedView) MergeInboxCombinedView2(v InboxCombinedView2) error
- func (t *InboxCombinedView) MergeInboxCombinedView3(v InboxCombinedView3) error
- func (t *InboxCombinedView) UnmarshalJSON(b []byte) error
- type InboxCombinedView0
- type InboxCombinedView0Type
- type InboxCombinedView1
- type InboxCombinedView1Type
- type InboxCombinedView2
- type InboxCombinedView2Type
- type InboxCombinedView3
- type InboxCombinedView3Type
- type InboxDataType
- type Instance
- type InstanceId
- type InstanceWithFederationState
- type Language
- type LanguageId
- type LeaveAdminResp
- type LikeCommentJSONRequestBody
- type LikeCommentResp
- type LikePostJSONRequestBody
- type LikePostResp
- type LinkMetadata
- type ListAllMediaParams
- type ListAllMediaResp
- type ListCommentLikesParams
- type ListCommentLikesResp
- type ListCommentLikesResponse
- type ListCommunitiesParams
- type ListCommunitiesResp
- type ListCommunitiesResponse
- type ListCommunityPendingFollowsParams
- type ListCommunityPendingFollowsResp
- type ListCommunityPendingFollowsResponse
- type ListCustomEmojisParams
- type ListCustomEmojisResp
- type ListCustomEmojisResponse
- type ListInboxParams
- type ListInboxResp
- type ListInboxResponse
- type ListLoginsResp
- type ListMediaParams
- type ListMediaResp
- type ListMediaResponse
- type ListPersonContentParams
- type ListPersonContentResp
- type ListPersonContentResponse
- type ListPersonSavedParams
- type ListPersonSavedResp
- type ListPersonSavedResponse
- type ListPostLikesParams
- type ListPostLikesResp
- type ListPostLikesResponse
- type ListRegistrationApplicationsParams
- type ListRegistrationApplicationsResp
- type ListRegistrationApplicationsResponse
- type ListReportsParams
- type ListReportsResp
- type ListReportsResponse
- type ListTaglinesParams
- type ListTaglinesResp
- type ListTaglinesResponse
- type ListingType
- type LocalImage
- type LocalImageView
- type LocalSite
- type LocalSiteId
- type LocalSiteRateLimit
- type LocalSiteUrlBlocklist
- type LocalUser
- type LocalUserId
- type LocalUserView
- type LockPost
- type LockPostJSONRequestBody
- type LockPostResp
- type Login
- type LoginJSONRequestBody
- type LoginResp
- type LoginResponse
- type LoginToken
- type LogoutResp
- type MarkAllNotificationsAsReadResp
- type MarkCommentMentionAsReadJSONRequestBody
- type MarkCommentMentionAsReadResp
- type MarkCommentReplyAsRead
- type MarkCommentReplyAsReadJSONRequestBody
- type MarkCommentReplyAsReadResp
- type MarkManyPostAsReadJSONRequestBody
- type MarkManyPostAsReadResp
- type MarkManyPostsAsRead
- type MarkPersonCommentMentionAsRead
- type MarkPersonPostMentionAsRead
- type MarkPostAsRead
- type MarkPostAsReadJSONRequestBody
- type MarkPostAsReadResp
- type MarkPostMentionAsReadJSONRequestBody
- type MarkPostMentionAsReadResp
- type MarkPrivateMessageAsRead
- type MarkPrivateMessageAsReadJSONRequestBody
- type MarkPrivateMessageAsReadResp
- type ModAdd
- type ModAddCommunity
- type ModAddCommunityId
- type ModAddCommunityView
- type ModAddId
- type ModAddView
- type ModBan
- type ModBanFromCommunity
- type ModBanFromCommunityId
- type ModBanFromCommunityView
- type ModBanId
- type ModBanView
- type ModFeaturePost
- type ModFeaturePostId
- type ModFeaturePostView
- type ModHideCommunity
- type ModHideCommunityId
- type ModHideCommunityView
- type ModLockPost
- type ModLockPostId
- type ModLockPostView
- type ModRemoveComment
- type ModRemoveCommentId
- type ModRemoveCommentView
- type ModRemoveCommunity
- type ModRemoveCommunityId
- type ModRemoveCommunityView
- type ModRemovePost
- type ModRemovePostId
- type ModRemovePostView
- type ModTransferCommunity
- type ModTransferCommunityId
- type ModTransferCommunityView
- type ModlogActionType
- type ModlogCombinedPaginationCursor
- type ModlogCombinedView
- func (t ModlogCombinedView) AsModlogCombinedView0() (ModlogCombinedView0, error)
- func (t ModlogCombinedView) AsModlogCombinedView1() (ModlogCombinedView1, error)
- func (t ModlogCombinedView) AsModlogCombinedView10() (ModlogCombinedView10, error)
- func (t ModlogCombinedView) AsModlogCombinedView11() (ModlogCombinedView11, error)
- func (t ModlogCombinedView) AsModlogCombinedView12() (ModlogCombinedView12, error)
- func (t ModlogCombinedView) AsModlogCombinedView13() (ModlogCombinedView13, error)
- func (t ModlogCombinedView) AsModlogCombinedView14() (ModlogCombinedView14, error)
- func (t ModlogCombinedView) AsModlogCombinedView15() (ModlogCombinedView15, error)
- func (t ModlogCombinedView) AsModlogCombinedView16() (ModlogCombinedView16, error)
- func (t ModlogCombinedView) AsModlogCombinedView2() (ModlogCombinedView2, error)
- func (t ModlogCombinedView) AsModlogCombinedView3() (ModlogCombinedView3, error)
- func (t ModlogCombinedView) AsModlogCombinedView4() (ModlogCombinedView4, error)
- func (t ModlogCombinedView) AsModlogCombinedView5() (ModlogCombinedView5, error)
- func (t ModlogCombinedView) AsModlogCombinedView6() (ModlogCombinedView6, error)
- func (t ModlogCombinedView) AsModlogCombinedView7() (ModlogCombinedView7, error)
- func (t ModlogCombinedView) AsModlogCombinedView8() (ModlogCombinedView8, error)
- func (t ModlogCombinedView) AsModlogCombinedView9() (ModlogCombinedView9, error)
- func (t *ModlogCombinedView) FromModlogCombinedView0(v ModlogCombinedView0) error
- func (t *ModlogCombinedView) FromModlogCombinedView1(v ModlogCombinedView1) error
- func (t *ModlogCombinedView) FromModlogCombinedView10(v ModlogCombinedView10) error
- func (t *ModlogCombinedView) FromModlogCombinedView11(v ModlogCombinedView11) error
- func (t *ModlogCombinedView) FromModlogCombinedView12(v ModlogCombinedView12) error
- func (t *ModlogCombinedView) FromModlogCombinedView13(v ModlogCombinedView13) error
- func (t *ModlogCombinedView) FromModlogCombinedView14(v ModlogCombinedView14) error
- func (t *ModlogCombinedView) FromModlogCombinedView15(v ModlogCombinedView15) error
- func (t *ModlogCombinedView) FromModlogCombinedView16(v ModlogCombinedView16) error
- func (t *ModlogCombinedView) FromModlogCombinedView2(v ModlogCombinedView2) error
- func (t *ModlogCombinedView) FromModlogCombinedView3(v ModlogCombinedView3) error
- func (t *ModlogCombinedView) FromModlogCombinedView4(v ModlogCombinedView4) error
- func (t *ModlogCombinedView) FromModlogCombinedView5(v ModlogCombinedView5) error
- func (t *ModlogCombinedView) FromModlogCombinedView6(v ModlogCombinedView6) error
- func (t *ModlogCombinedView) FromModlogCombinedView7(v ModlogCombinedView7) error
- func (t *ModlogCombinedView) FromModlogCombinedView8(v ModlogCombinedView8) error
- func (t *ModlogCombinedView) FromModlogCombinedView9(v ModlogCombinedView9) error
- func (t ModlogCombinedView) MarshalJSON() ([]byte, error)
- func (t *ModlogCombinedView) MergeModlogCombinedView0(v ModlogCombinedView0) error
- func (t *ModlogCombinedView) MergeModlogCombinedView1(v ModlogCombinedView1) error
- func (t *ModlogCombinedView) MergeModlogCombinedView10(v ModlogCombinedView10) error
- func (t *ModlogCombinedView) MergeModlogCombinedView11(v ModlogCombinedView11) error
- func (t *ModlogCombinedView) MergeModlogCombinedView12(v ModlogCombinedView12) error
- func (t *ModlogCombinedView) MergeModlogCombinedView13(v ModlogCombinedView13) error
- func (t *ModlogCombinedView) MergeModlogCombinedView14(v ModlogCombinedView14) error
- func (t *ModlogCombinedView) MergeModlogCombinedView15(v ModlogCombinedView15) error
- func (t *ModlogCombinedView) MergeModlogCombinedView16(v ModlogCombinedView16) error
- func (t *ModlogCombinedView) MergeModlogCombinedView2(v ModlogCombinedView2) error
- func (t *ModlogCombinedView) MergeModlogCombinedView3(v ModlogCombinedView3) error
- func (t *ModlogCombinedView) MergeModlogCombinedView4(v ModlogCombinedView4) error
- func (t *ModlogCombinedView) MergeModlogCombinedView5(v ModlogCombinedView5) error
- func (t *ModlogCombinedView) MergeModlogCombinedView6(v ModlogCombinedView6) error
- func (t *ModlogCombinedView) MergeModlogCombinedView7(v ModlogCombinedView7) error
- func (t *ModlogCombinedView) MergeModlogCombinedView8(v ModlogCombinedView8) error
- func (t *ModlogCombinedView) MergeModlogCombinedView9(v ModlogCombinedView9) error
- func (t *ModlogCombinedView) UnmarshalJSON(b []byte) error
- type ModlogCombinedView0
- type ModlogCombinedView0Type
- type ModlogCombinedView1
- type ModlogCombinedView10
- type ModlogCombinedView10Type
- type ModlogCombinedView11
- type ModlogCombinedView11Type
- type ModlogCombinedView12
- type ModlogCombinedView12Type
- type ModlogCombinedView13
- type ModlogCombinedView13Type
- type ModlogCombinedView14
- type ModlogCombinedView14Type
- type ModlogCombinedView15
- type ModlogCombinedView15Type
- type ModlogCombinedView16
- type ModlogCombinedView16Type
- type ModlogCombinedView1Type
- type ModlogCombinedView2
- type ModlogCombinedView2Type
- type ModlogCombinedView3
- type ModlogCombinedView3Type
- type ModlogCombinedView4
- type ModlogCombinedView4Type
- type ModlogCombinedView5
- type ModlogCombinedView5Type
- type ModlogCombinedView6
- type ModlogCombinedView6Type
- type ModlogCombinedView7
- type ModlogCombinedView7Type
- type ModlogCombinedView8
- type ModlogCombinedView8Type
- type ModlogCombinedView9
- type ModlogCombinedView9Type
- type MyUserInfo
- type OAuthProvider
- type OAuthProviderId
- type PaginationCursor
- type PasswordChangeAfterReset
- type PasswordChangeAfterResetJSONRequestBody
- type PasswordChangeAfterResetResp
- type PasswordReset
- type PasswordResetJSONRequestBody
- type PasswordResetResp
- type PendingFollow
- type Person
- type PersonCommentMention
- type PersonCommentMentionId
- type PersonCommentMentionView
- type PersonContentCombinedPaginationCursor
- type PersonContentCombinedView
- func (t PersonContentCombinedView) AsPersonContentCombinedView0() (PersonContentCombinedView0, error)
- func (t PersonContentCombinedView) AsPersonContentCombinedView1() (PersonContentCombinedView1, error)
- func (t *PersonContentCombinedView) FromPersonContentCombinedView0(v PersonContentCombinedView0) error
- func (t *PersonContentCombinedView) FromPersonContentCombinedView1(v PersonContentCombinedView1) error
- func (t PersonContentCombinedView) MarshalJSON() ([]byte, error)
- func (t *PersonContentCombinedView) MergePersonContentCombinedView0(v PersonContentCombinedView0) error
- func (t *PersonContentCombinedView) MergePersonContentCombinedView1(v PersonContentCombinedView1) error
- func (t *PersonContentCombinedView) UnmarshalJSON(b []byte) error
- type PersonContentCombinedView0
- type PersonContentCombinedView0Type
- type PersonContentCombinedView1
- type PersonContentCombinedView1Type
- type PersonContentType
- type PersonId
- type PersonPostMention
- type PersonPostMentionId
- type PersonPostMentionView
- type PersonSavedCombinedPaginationCursor
- type PersonView
- type Post
- type PostFeatureType
- type PostId
- type PostListingMode
- type PostReport
- type PostReportId
- type PostReportResponse
- type PostReportView
- type PostResponse
- type PostSortType
- type PostTags
- type PostView
- type PrivateMessage
- type PrivateMessageId
- type PrivateMessageReport
- type PrivateMessageReportId
- type PrivateMessageReportResponse
- type PrivateMessageReportView
- type PrivateMessageResponse
- type PrivateMessageView
- type PublicOAuthProvider
- type PurgeComment
- type PurgeCommentJSONRequestBody
- type PurgeCommentResp
- type PurgeCommunity
- type PurgeCommunityJSONRequestBody
- type PurgeCommunityResp
- type PurgePerson
- type PurgePersonJSONRequestBody
- type PurgePersonResp
- type PurgePost
- type PurgePostJSONRequestBody
- type PurgePostResp
- type ReadableFederationState
- type Register
- type RegisterJSONRequestBody
- type RegisterResp
- type RegistrationApplication
- type RegistrationApplicationId
- type RegistrationApplicationResponse
- type RegistrationApplicationView
- type RegistrationMode
- type RemoveComment
- type RemoveCommentJSONRequestBody
- type RemoveCommentResp
- type RemoveCommunity
- type RemoveCommunityJSONRequestBody
- type RemoveCommunityResp
- type RemovePost
- type RemovePostJSONRequestBody
- type RemovePostResp
- type ReportCombinedPaginationCursor
- type ReportCombinedView
- func (t ReportCombinedView) AsReportCombinedView0() (ReportCombinedView0, error)
- func (t ReportCombinedView) AsReportCombinedView1() (ReportCombinedView1, error)
- func (t ReportCombinedView) AsReportCombinedView2() (ReportCombinedView2, error)
- func (t ReportCombinedView) AsReportCombinedView3() (ReportCombinedView3, error)
- func (t *ReportCombinedView) FromReportCombinedView0(v ReportCombinedView0) error
- func (t *ReportCombinedView) FromReportCombinedView1(v ReportCombinedView1) error
- func (t *ReportCombinedView) FromReportCombinedView2(v ReportCombinedView2) error
- func (t *ReportCombinedView) FromReportCombinedView3(v ReportCombinedView3) error
- func (t ReportCombinedView) MarshalJSON() ([]byte, error)
- func (t *ReportCombinedView) MergeReportCombinedView0(v ReportCombinedView0) error
- func (t *ReportCombinedView) MergeReportCombinedView1(v ReportCombinedView1) error
- func (t *ReportCombinedView) MergeReportCombinedView2(v ReportCombinedView2) error
- func (t *ReportCombinedView) MergeReportCombinedView3(v ReportCombinedView3) error
- func (t *ReportCombinedView) UnmarshalJSON(b []byte) error
- type ReportCombinedView0
- type ReportCombinedView0Type
- type ReportCombinedView1
- type ReportCombinedView1Type
- type ReportCombinedView2
- type ReportCombinedView2Type
- type ReportCombinedView3
- type ReportCombinedView3Type
- type ReportType
- type RequestEditorFn
- type ResendVerificationEmail
- type ResendVerificationEmailJSONRequestBody
- type ResendVerificationEmailResp
- type ResolveCommentReport
- type ResolveCommentReportJSONRequestBody
- type ResolveCommentReportResp
- type ResolveObjectParams
- type ResolveObjectResp
- type ResolveObjectResponse
- type ResolvePostReport
- type ResolvePostReportJSONRequestBody
- type ResolvePostReportResp
- type ResolvePrivateMessageReport
- type ResolvePrivateMessageReportJSONRequestBody
- type ResolvePrivateMessageReportResp
- type SaveComment
- type SaveCommentJSONRequestBody
- type SaveCommentResp
- type SavePost
- type SavePostJSONRequestBody
- type SavePostResp
- type SaveUserSettings
- type SaveUserSettingsJSONRequestBody
- type SaveUserSettingsResp
- type SearchCombinedPaginationCursor
- type SearchCombinedView
- func (t SearchCombinedView) AsSearchCombinedView0() (SearchCombinedView0, error)
- func (t SearchCombinedView) AsSearchCombinedView1() (SearchCombinedView1, error)
- func (t SearchCombinedView) AsSearchCombinedView2() (SearchCombinedView2, error)
- func (t SearchCombinedView) AsSearchCombinedView3() (SearchCombinedView3, error)
- func (t *SearchCombinedView) FromSearchCombinedView0(v SearchCombinedView0) error
- func (t *SearchCombinedView) FromSearchCombinedView1(v SearchCombinedView1) error
- func (t *SearchCombinedView) FromSearchCombinedView2(v SearchCombinedView2) error
- func (t *SearchCombinedView) FromSearchCombinedView3(v SearchCombinedView3) error
- func (t SearchCombinedView) MarshalJSON() ([]byte, error)
- func (t *SearchCombinedView) MergeSearchCombinedView0(v SearchCombinedView0) error
- func (t *SearchCombinedView) MergeSearchCombinedView1(v SearchCombinedView1) error
- func (t *SearchCombinedView) MergeSearchCombinedView2(v SearchCombinedView2) error
- func (t *SearchCombinedView) MergeSearchCombinedView3(v SearchCombinedView3) error
- func (t *SearchCombinedView) UnmarshalJSON(b []byte) error
- type SearchCombinedView0
- type SearchCombinedView0Type
- type SearchCombinedView1
- type SearchCombinedView1Type
- type SearchCombinedView2
- type SearchCombinedView2Type
- type SearchCombinedView3
- type SearchCombinedView3Type
- type SearchParams
- type SearchResp
- type SearchResponse
- type SearchSortType
- type SearchType
- type SensitiveString
- type Site
- type SiteId
- type SiteResponse
- type SiteView
- type SubscribedType
- type SuccessResponse
- type Tag
- type TagId
- type Tagline
- type TaglineId
- type TaglineResponse
- type TransferCommunity
- type TransferCommunityJSONRequestBody
- type TransferCommunityResp
- type UpdateTagline
- type UpdateTotp
- type UpdateTotpJSONRequestBody
- type UpdateTotpResp
- type UpdateTotpResponse
- type UploadCommunityBannerMultipartBody
- type UploadCommunityBannerMultipartRequestBody
- type UploadCommunityBannerResp
- type UploadCommunityIconMultipartBody
- type UploadCommunityIconMultipartRequestBody
- type UploadCommunityIconResp
- type UploadImageMultipartBody
- type UploadImageMultipartRequestBody
- type UploadImageResp
- type UploadImageResponse
- type UploadSiteBannerMultipartBody
- type UploadSiteBannerMultipartRequestBody
- type UploadSiteBannerResp
- type UploadSiteIconMultipartBody
- type UploadSiteIconMultipartRequestBody
- type UploadSiteIconResp
- type UploadUserAvatarMultipartBody
- type UploadUserAvatarMultipartRequestBody
- type UploadUserAvatarResp
- type UploadUserBannerMultipartBody
- type UploadUserBannerMultipartRequestBody
- type UploadUserBannerResp
- type UserBlockInstanceJSONRequestBody
- type UserBlockInstanceParams
- type UserBlockInstanceResp
- type ValidateAuthResp
- type VerifyEmail
- type VerifyEmailJSONRequestBody
- type VerifyEmailResp
- type VoteView
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewAddAdminRequest ¶
func NewAddAdminRequest(server string, body AddAdminJSONRequestBody) (*http.Request, error)
NewAddAdminRequest calls the generic AddAdmin builder with application/json body
func NewAddAdminRequestWithBody ¶
func NewAddAdminRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddAdminRequestWithBody generates requests for AddAdmin with any type of body
func NewAddModToCommunityRequest ¶
func NewAddModToCommunityRequest(server string, body AddModToCommunityJSONRequestBody) (*http.Request, error)
NewAddModToCommunityRequest calls the generic AddModToCommunity builder with application/json body
func NewAddModToCommunityRequestWithBody ¶
func NewAddModToCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddModToCommunityRequestWithBody generates requests for AddModToCommunity with any type of body
func NewAdminAllowInstanceRequest ¶
func NewAdminAllowInstanceRequest(server string, body AdminAllowInstanceJSONRequestBody) (*http.Request, error)
NewAdminAllowInstanceRequest calls the generic AdminAllowInstance builder with application/json body
func NewAdminAllowInstanceRequestWithBody ¶
func NewAdminAllowInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAdminAllowInstanceRequestWithBody generates requests for AdminAllowInstance with any type of body
func NewAdminBlockInstanceRequest ¶
func NewAdminBlockInstanceRequest(server string, body AdminBlockInstanceJSONRequestBody) (*http.Request, error)
NewAdminBlockInstanceRequest calls the generic AdminBlockInstance builder with application/json body
func NewAdminBlockInstanceRequestWithBody ¶
func NewAdminBlockInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAdminBlockInstanceRequestWithBody generates requests for AdminBlockInstance with any type of body
func NewApproveCommunityPendingFollowRequest ¶
func NewApproveCommunityPendingFollowRequest(server string, body ApproveCommunityPendingFollowJSONRequestBody) (*http.Request, error)
NewApproveCommunityPendingFollowRequest calls the generic ApproveCommunityPendingFollow builder with application/json body
func NewApproveCommunityPendingFollowRequestWithBody ¶
func NewApproveCommunityPendingFollowRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewApproveCommunityPendingFollowRequestWithBody generates requests for ApproveCommunityPendingFollow with any type of body
func NewApproveRegistrationApplicationRequest ¶
func NewApproveRegistrationApplicationRequest(server string, body ApproveRegistrationApplicationJSONRequestBody) (*http.Request, error)
NewApproveRegistrationApplicationRequest calls the generic ApproveRegistrationApplication builder with application/json body
func NewApproveRegistrationApplicationRequestWithBody ¶
func NewApproveRegistrationApplicationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewApproveRegistrationApplicationRequestWithBody generates requests for ApproveRegistrationApplication with any type of body
func NewAuthenticateWithOAuthRequest ¶
func NewAuthenticateWithOAuthRequest(server string, body AuthenticateWithOAuthJSONRequestBody) (*http.Request, error)
NewAuthenticateWithOAuthRequest calls the generic AuthenticateWithOAuth builder with application/json body
func NewAuthenticateWithOAuthRequestWithBody ¶
func NewAuthenticateWithOAuthRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthenticateWithOAuthRequestWithBody generates requests for AuthenticateWithOAuth with any type of body
func NewBanFromCommunityRequest ¶
func NewBanFromCommunityRequest(server string, body BanFromCommunityJSONRequestBody) (*http.Request, error)
NewBanFromCommunityRequest calls the generic BanFromCommunity builder with application/json body
func NewBanFromCommunityRequestWithBody ¶
func NewBanFromCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBanFromCommunityRequestWithBody generates requests for BanFromCommunity with any type of body
func NewBanPersonRequest ¶
func NewBanPersonRequest(server string, body BanPersonJSONRequestBody) (*http.Request, error)
NewBanPersonRequest calls the generic BanPerson builder with application/json body
func NewBanPersonRequestWithBody ¶
func NewBanPersonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBanPersonRequestWithBody generates requests for BanPerson with any type of body
func NewBlockCommunityRequest ¶
func NewBlockCommunityRequest(server string, body BlockCommunityJSONRequestBody) (*http.Request, error)
NewBlockCommunityRequest calls the generic BlockCommunity builder with application/json body
func NewBlockCommunityRequestWithBody ¶
func NewBlockCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBlockCommunityRequestWithBody generates requests for BlockCommunity with any type of body
func NewBlockPersonRequest ¶
func NewBlockPersonRequest(server string, body BlockPersonJSONRequestBody) (*http.Request, error)
NewBlockPersonRequest calls the generic BlockPerson builder with application/json body
func NewBlockPersonRequestWithBody ¶
func NewBlockPersonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewBlockPersonRequestWithBody generates requests for BlockPerson with any type of body
func NewChangePasswordRequest ¶
func NewChangePasswordRequest(server string, body ChangePasswordJSONRequestBody) (*http.Request, error)
NewChangePasswordRequest calls the generic ChangePassword builder with application/json body
func NewChangePasswordRequestWithBody ¶
func NewChangePasswordRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewChangePasswordRequestWithBody generates requests for ChangePassword with any type of body
func NewCreateCommentReportRequest ¶
func NewCreateCommentReportRequest(server string, body CreateCommentReportJSONRequestBody) (*http.Request, error)
NewCreateCommentReportRequest calls the generic CreateCommentReport builder with application/json body
func NewCreateCommentReportRequestWithBody ¶
func NewCreateCommentReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCommentReportRequestWithBody generates requests for CreateCommentReport with any type of body
func NewCreateCommentRequest ¶
func NewCreateCommentRequest(server string, body CreateCommentJSONRequestBody) (*http.Request, error)
NewCreateCommentRequest calls the generic CreateComment builder with application/json body
func NewCreateCommentRequestWithBody ¶
func NewCreateCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCommentRequestWithBody generates requests for CreateComment with any type of body
func NewCreateCommunityRequest ¶
func NewCreateCommunityRequest(server string, body CreateCommunityJSONRequestBody) (*http.Request, error)
NewCreateCommunityRequest calls the generic CreateCommunity builder with application/json body
func NewCreateCommunityRequestWithBody ¶
func NewCreateCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCommunityRequestWithBody generates requests for CreateCommunity with any type of body
func NewCreateCustomEmojiRequest ¶
func NewCreateCustomEmojiRequest(server string, body CreateCustomEmojiJSONRequestBody) (*http.Request, error)
NewCreateCustomEmojiRequest calls the generic CreateCustomEmoji builder with application/json body
func NewCreateCustomEmojiRequestWithBody ¶
func NewCreateCustomEmojiRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCustomEmojiRequestWithBody generates requests for CreateCustomEmoji with any type of body
func NewCreateOAuthProviderRequest ¶
func NewCreateOAuthProviderRequest(server string, body CreateOAuthProviderJSONRequestBody) (*http.Request, error)
NewCreateOAuthProviderRequest calls the generic CreateOAuthProvider builder with application/json body
func NewCreateOAuthProviderRequestWithBody ¶
func NewCreateOAuthProviderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateOAuthProviderRequestWithBody generates requests for CreateOAuthProvider with any type of body
func NewCreatePostReportRequest ¶
func NewCreatePostReportRequest(server string, body CreatePostReportJSONRequestBody) (*http.Request, error)
NewCreatePostReportRequest calls the generic CreatePostReport builder with application/json body
func NewCreatePostReportRequestWithBody ¶
func NewCreatePostReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePostReportRequestWithBody generates requests for CreatePostReport with any type of body
func NewCreatePostRequest ¶
func NewCreatePostRequest(server string, body CreatePostJSONRequestBody) (*http.Request, error)
NewCreatePostRequest calls the generic CreatePost builder with application/json body
func NewCreatePostRequestWithBody ¶
func NewCreatePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePostRequestWithBody generates requests for CreatePost with any type of body
func NewCreatePrivateMessageReportRequest ¶
func NewCreatePrivateMessageReportRequest(server string, body CreatePrivateMessageReportJSONRequestBody) (*http.Request, error)
NewCreatePrivateMessageReportRequest calls the generic CreatePrivateMessageReport builder with application/json body
func NewCreatePrivateMessageReportRequestWithBody ¶
func NewCreatePrivateMessageReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePrivateMessageReportRequestWithBody generates requests for CreatePrivateMessageReport with any type of body
func NewCreatePrivateMessageRequest ¶
func NewCreatePrivateMessageRequest(server string, body CreatePrivateMessageJSONRequestBody) (*http.Request, error)
NewCreatePrivateMessageRequest calls the generic CreatePrivateMessage builder with application/json body
func NewCreatePrivateMessageRequestWithBody ¶
func NewCreatePrivateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreatePrivateMessageRequestWithBody generates requests for CreatePrivateMessage with any type of body
func NewCreateSiteRequest ¶
func NewCreateSiteRequest(server string, body CreateSiteJSONRequestBody) (*http.Request, error)
NewCreateSiteRequest calls the generic CreateSite builder with application/json body
func NewCreateSiteRequestWithBody ¶
func NewCreateSiteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSiteRequestWithBody generates requests for CreateSite with any type of body
func NewCreateTaglineRequest ¶
func NewCreateTaglineRequest(server string, body CreateTaglineJSONRequestBody) (*http.Request, error)
NewCreateTaglineRequest calls the generic CreateTagline builder with application/json body
func NewCreateTaglineRequestWithBody ¶
func NewCreateTaglineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTaglineRequestWithBody generates requests for CreateTagline with any type of body
func NewDeleteAccountRequest ¶
func NewDeleteAccountRequest(server string, body DeleteAccountJSONRequestBody) (*http.Request, error)
NewDeleteAccountRequest calls the generic DeleteAccount builder with application/json body
func NewDeleteAccountRequestWithBody ¶
func NewDeleteAccountRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteAccountRequestWithBody generates requests for DeleteAccount with any type of body
func NewDeleteCommentRequest ¶
func NewDeleteCommentRequest(server string, body DeleteCommentJSONRequestBody) (*http.Request, error)
NewDeleteCommentRequest calls the generic DeleteComment builder with application/json body
func NewDeleteCommentRequestWithBody ¶
func NewDeleteCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteCommentRequestWithBody generates requests for DeleteComment with any type of body
func NewDeleteCommunityBannerRequest ¶
NewDeleteCommunityBannerRequest generates requests for DeleteCommunityBanner
func NewDeleteCommunityIconRequest ¶
NewDeleteCommunityIconRequest generates requests for DeleteCommunityIcon
func NewDeleteCommunityRequest ¶
func NewDeleteCommunityRequest(server string, body DeleteCommunityJSONRequestBody) (*http.Request, error)
NewDeleteCommunityRequest calls the generic DeleteCommunity builder with application/json body
func NewDeleteCommunityRequestWithBody ¶
func NewDeleteCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteCommunityRequestWithBody generates requests for DeleteCommunity with any type of body
func NewDeleteCustomEmojiRequest ¶
func NewDeleteCustomEmojiRequest(server string, body DeleteCustomEmojiJSONRequestBody) (*http.Request, error)
NewDeleteCustomEmojiRequest calls the generic DeleteCustomEmoji builder with application/json body
func NewDeleteCustomEmojiRequestWithBody ¶
func NewDeleteCustomEmojiRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteCustomEmojiRequestWithBody generates requests for DeleteCustomEmoji with any type of body
func NewDeleteImageRequest ¶
func NewDeleteImageRequest(server string, params *DeleteImageParams) (*http.Request, error)
NewDeleteImageRequest generates requests for DeleteImage
func NewDeleteOAuthProviderRequest ¶
func NewDeleteOAuthProviderRequest(server string, body DeleteOAuthProviderJSONRequestBody) (*http.Request, error)
NewDeleteOAuthProviderRequest calls the generic DeleteOAuthProvider builder with application/json body
func NewDeleteOAuthProviderRequestWithBody ¶
func NewDeleteOAuthProviderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteOAuthProviderRequestWithBody generates requests for DeleteOAuthProvider with any type of body
func NewDeletePostRequest ¶
func NewDeletePostRequest(server string, body DeletePostJSONRequestBody) (*http.Request, error)
NewDeletePostRequest calls the generic DeletePost builder with application/json body
func NewDeletePostRequestWithBody ¶
func NewDeletePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeletePostRequestWithBody generates requests for DeletePost with any type of body
func NewDeletePrivateMessageRequest ¶
func NewDeletePrivateMessageRequest(server string, body DeletePrivateMessageJSONRequestBody) (*http.Request, error)
NewDeletePrivateMessageRequest calls the generic DeletePrivateMessage builder with application/json body
func NewDeletePrivateMessageRequestWithBody ¶
func NewDeletePrivateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeletePrivateMessageRequestWithBody generates requests for DeletePrivateMessage with any type of body
func NewDeleteSiteBannerRequest ¶
NewDeleteSiteBannerRequest generates requests for DeleteSiteBanner
func NewDeleteSiteIconRequest ¶
NewDeleteSiteIconRequest generates requests for DeleteSiteIcon
func NewDeleteTaglineRequest ¶
func NewDeleteTaglineRequest(server string, body DeleteTaglineJSONRequestBody) (*http.Request, error)
NewDeleteTaglineRequest calls the generic DeleteTagline builder with application/json body
func NewDeleteTaglineRequestWithBody ¶
func NewDeleteTaglineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteTaglineRequestWithBody generates requests for DeleteTagline with any type of body
func NewDeleteUserAvatarRequest ¶
NewDeleteUserAvatarRequest generates requests for DeleteUserAvatar
func NewDeleteUserBannerRequest ¶
NewDeleteUserBannerRequest generates requests for DeleteUserBanner
func NewDistinguishCommentRequest ¶
func NewDistinguishCommentRequest(server string, body DistinguishCommentJSONRequestBody) (*http.Request, error)
NewDistinguishCommentRequest calls the generic DistinguishComment builder with application/json body
func NewDistinguishCommentRequestWithBody ¶
func NewDistinguishCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewDistinguishCommentRequestWithBody generates requests for DistinguishComment with any type of body
func NewEditCommentRequest ¶
func NewEditCommentRequest(server string, body EditCommentJSONRequestBody) (*http.Request, error)
NewEditCommentRequest calls the generic EditComment builder with application/json body
func NewEditCommentRequestWithBody ¶
func NewEditCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditCommentRequestWithBody generates requests for EditComment with any type of body
func NewEditCommunityRequest ¶
func NewEditCommunityRequest(server string, body EditCommunityJSONRequestBody) (*http.Request, error)
NewEditCommunityRequest calls the generic EditCommunity builder with application/json body
func NewEditCommunityRequestWithBody ¶
func NewEditCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditCommunityRequestWithBody generates requests for EditCommunity with any type of body
func NewEditCustomEmojiRequest ¶
func NewEditCustomEmojiRequest(server string, body EditCustomEmojiJSONRequestBody) (*http.Request, error)
NewEditCustomEmojiRequest calls the generic EditCustomEmoji builder with application/json body
func NewEditCustomEmojiRequestWithBody ¶
func NewEditCustomEmojiRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditCustomEmojiRequestWithBody generates requests for EditCustomEmoji with any type of body
func NewEditOAuthProviderRequest ¶
func NewEditOAuthProviderRequest(server string, body EditOAuthProviderJSONRequestBody) (*http.Request, error)
NewEditOAuthProviderRequest calls the generic EditOAuthProvider builder with application/json body
func NewEditOAuthProviderRequestWithBody ¶
func NewEditOAuthProviderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditOAuthProviderRequestWithBody generates requests for EditOAuthProvider with any type of body
func NewEditPostRequest ¶
func NewEditPostRequest(server string, body EditPostJSONRequestBody) (*http.Request, error)
NewEditPostRequest calls the generic EditPost builder with application/json body
func NewEditPostRequestWithBody ¶
func NewEditPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditPostRequestWithBody generates requests for EditPost with any type of body
func NewEditPrivateMessageRequest ¶
func NewEditPrivateMessageRequest(server string, body EditPrivateMessageJSONRequestBody) (*http.Request, error)
NewEditPrivateMessageRequest calls the generic EditPrivateMessage builder with application/json body
func NewEditPrivateMessageRequestWithBody ¶
func NewEditPrivateMessageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditPrivateMessageRequestWithBody generates requests for EditPrivateMessage with any type of body
func NewEditSiteRequest ¶
func NewEditSiteRequest(server string, body EditSiteJSONRequestBody) (*http.Request, error)
NewEditSiteRequest calls the generic EditSite builder with application/json body
func NewEditSiteRequestWithBody ¶
func NewEditSiteRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditSiteRequestWithBody generates requests for EditSite with any type of body
func NewEditTaglineRequest ¶
func NewEditTaglineRequest(server string, body EditTaglineJSONRequestBody) (*http.Request, error)
NewEditTaglineRequest calls the generic EditTagline builder with application/json body
func NewEditTaglineRequestWithBody ¶
func NewEditTaglineRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewEditTaglineRequestWithBody generates requests for EditTagline with any type of body
func NewExportSettingsRequest ¶
NewExportSettingsRequest generates requests for ExportSettings
func NewFeaturePostRequest ¶
func NewFeaturePostRequest(server string, body FeaturePostJSONRequestBody) (*http.Request, error)
NewFeaturePostRequest calls the generic FeaturePost builder with application/json body
func NewFeaturePostRequestWithBody ¶
func NewFeaturePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFeaturePostRequestWithBody generates requests for FeaturePost with any type of body
func NewFollowCommunityRequest ¶
func NewFollowCommunityRequest(server string, body FollowCommunityJSONRequestBody) (*http.Request, error)
NewFollowCommunityRequest calls the generic FollowCommunity builder with application/json body
func NewFollowCommunityRequestWithBody ¶
func NewFollowCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFollowCommunityRequestWithBody generates requests for FollowCommunity with any type of body
func NewGenerateTotpSecretRequest ¶
NewGenerateTotpSecretRequest generates requests for GenerateTotpSecret
func NewGetBannedPersonsRequest ¶
NewGetBannedPersonsRequest generates requests for GetBannedPersons
func NewGetCaptchaRequest ¶
NewGetCaptchaRequest generates requests for GetCaptcha
func NewGetCommentRequest ¶
func NewGetCommentRequest(server string, params *GetCommentParams) (*http.Request, error)
NewGetCommentRequest generates requests for GetComment
func NewGetCommentsRequest ¶
func NewGetCommentsRequest(server string, params *GetCommentsParams) (*http.Request, error)
NewGetCommentsRequest generates requests for GetComments
func NewGetCommentsSlimRequest ¶
func NewGetCommentsSlimRequest(server string, params *GetCommentsSlimParams) (*http.Request, error)
NewGetCommentsSlimRequest generates requests for GetCommentsSlim
func NewGetCommunityPendingFollowsCountRequest ¶
func NewGetCommunityPendingFollowsCountRequest(server string, params *GetCommunityPendingFollowsCountParams) (*http.Request, error)
NewGetCommunityPendingFollowsCountRequest generates requests for GetCommunityPendingFollowsCount
func NewGetCommunityRequest ¶
func NewGetCommunityRequest(server string, params *GetCommunityParams) (*http.Request, error)
NewGetCommunityRequest generates requests for GetCommunity
func NewGetFederatedInstancesRequest ¶
NewGetFederatedInstancesRequest generates requests for GetFederatedInstances
func NewGetModlogRequest ¶
func NewGetModlogRequest(server string, params *GetModlogParams) (*http.Request, error)
NewGetModlogRequest generates requests for GetModlog
func NewGetMyUserRequest ¶
NewGetMyUserRequest generates requests for GetMyUser
func NewGetPersonDetailsRequest ¶
func NewGetPersonDetailsRequest(server string, params *GetPersonDetailsParams) (*http.Request, error)
NewGetPersonDetailsRequest generates requests for GetPersonDetails
func NewGetPostRequest ¶
func NewGetPostRequest(server string, params *GetPostParams) (*http.Request, error)
NewGetPostRequest generates requests for GetPost
func NewGetPostsRequest ¶
func NewGetPostsRequest(server string, params *GetPostsParams) (*http.Request, error)
NewGetPostsRequest generates requests for GetPosts
func NewGetRandomCommunityRequest ¶
func NewGetRandomCommunityRequest(server string, params *GetRandomCommunityParams) (*http.Request, error)
NewGetRandomCommunityRequest generates requests for GetRandomCommunity
func NewGetRegistrationApplicationRequest ¶
func NewGetRegistrationApplicationRequest(server string, params *GetRegistrationApplicationParams) (*http.Request, error)
NewGetRegistrationApplicationRequest generates requests for GetRegistrationApplication
func NewGetReportCountRequest ¶
func NewGetReportCountRequest(server string, params *GetReportCountParams) (*http.Request, error)
NewGetReportCountRequest generates requests for GetReportCount
func NewGetSiteMetadataRequest ¶
func NewGetSiteMetadataRequest(server string, params *GetSiteMetadataParams) (*http.Request, error)
NewGetSiteMetadataRequest generates requests for GetSiteMetadata
func NewGetSiteRequest ¶
NewGetSiteRequest generates requests for GetSite
func NewGetUnreadCountRequest ¶
NewGetUnreadCountRequest generates requests for GetUnreadCount
func NewGetUnreadRegistrationApplicationCountRequest ¶
NewGetUnreadRegistrationApplicationCountRequest generates requests for GetUnreadRegistrationApplicationCount
func NewHideCommunityRequest ¶
func NewHideCommunityRequest(server string, body HideCommunityJSONRequestBody) (*http.Request, error)
NewHideCommunityRequest calls the generic HideCommunity builder with application/json body
func NewHideCommunityRequestWithBody ¶
func NewHideCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewHideCommunityRequestWithBody generates requests for HideCommunity with any type of body
func NewHidePostRequest ¶
func NewHidePostRequest(server string, body HidePostJSONRequestBody) (*http.Request, error)
NewHidePostRequest calls the generic HidePost builder with application/json body
func NewHidePostRequestWithBody ¶
func NewHidePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewHidePostRequestWithBody generates requests for HidePost with any type of body
func NewImageHealthRequest ¶
NewImageHealthRequest generates requests for ImageHealth
func NewImportSettingsRequest ¶
func NewImportSettingsRequest(server string, body ImportSettingsJSONRequestBody) (*http.Request, error)
NewImportSettingsRequest calls the generic ImportSettings builder with application/json body
func NewImportSettingsRequestWithBody ¶
func NewImportSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewImportSettingsRequestWithBody generates requests for ImportSettings with any type of body
func NewLeaveAdminRequest ¶
NewLeaveAdminRequest generates requests for LeaveAdmin
func NewLikeCommentRequest ¶
func NewLikeCommentRequest(server string, body LikeCommentJSONRequestBody) (*http.Request, error)
NewLikeCommentRequest calls the generic LikeComment builder with application/json body
func NewLikeCommentRequestWithBody ¶
func NewLikeCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLikeCommentRequestWithBody generates requests for LikeComment with any type of body
func NewLikePostRequest ¶
func NewLikePostRequest(server string, body LikePostJSONRequestBody) (*http.Request, error)
NewLikePostRequest calls the generic LikePost builder with application/json body
func NewLikePostRequestWithBody ¶
func NewLikePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLikePostRequestWithBody generates requests for LikePost with any type of body
func NewListAllMediaRequest ¶
func NewListAllMediaRequest(server string, params *ListAllMediaParams) (*http.Request, error)
NewListAllMediaRequest generates requests for ListAllMedia
func NewListCommentLikesRequest ¶
func NewListCommentLikesRequest(server string, params *ListCommentLikesParams) (*http.Request, error)
NewListCommentLikesRequest generates requests for ListCommentLikes
func NewListCommunitiesRequest ¶
func NewListCommunitiesRequest(server string, params *ListCommunitiesParams) (*http.Request, error)
NewListCommunitiesRequest generates requests for ListCommunities
func NewListCommunityPendingFollowsRequest ¶
func NewListCommunityPendingFollowsRequest(server string, params *ListCommunityPendingFollowsParams) (*http.Request, error)
NewListCommunityPendingFollowsRequest generates requests for ListCommunityPendingFollows
func NewListCustomEmojisRequest ¶
func NewListCustomEmojisRequest(server string, params *ListCustomEmojisParams) (*http.Request, error)
NewListCustomEmojisRequest generates requests for ListCustomEmojis
func NewListInboxRequest ¶
func NewListInboxRequest(server string, params *ListInboxParams) (*http.Request, error)
NewListInboxRequest generates requests for ListInbox
func NewListLoginsRequest ¶
NewListLoginsRequest generates requests for ListLogins
func NewListMediaRequest ¶
func NewListMediaRequest(server string, params *ListMediaParams) (*http.Request, error)
NewListMediaRequest generates requests for ListMedia
func NewListPersonContentRequest ¶
func NewListPersonContentRequest(server string, params *ListPersonContentParams) (*http.Request, error)
NewListPersonContentRequest generates requests for ListPersonContent
func NewListPersonSavedRequest ¶
func NewListPersonSavedRequest(server string, params *ListPersonSavedParams) (*http.Request, error)
NewListPersonSavedRequest generates requests for ListPersonSaved
func NewListPostLikesRequest ¶
func NewListPostLikesRequest(server string, params *ListPostLikesParams) (*http.Request, error)
NewListPostLikesRequest generates requests for ListPostLikes
func NewListRegistrationApplicationsRequest ¶
func NewListRegistrationApplicationsRequest(server string, params *ListRegistrationApplicationsParams) (*http.Request, error)
NewListRegistrationApplicationsRequest generates requests for ListRegistrationApplications
func NewListReportsRequest ¶
func NewListReportsRequest(server string, params *ListReportsParams) (*http.Request, error)
NewListReportsRequest generates requests for ListReports
func NewListTaglinesRequest ¶
func NewListTaglinesRequest(server string, params *ListTaglinesParams) (*http.Request, error)
NewListTaglinesRequest generates requests for ListTaglines
func NewLockPostRequest ¶
func NewLockPostRequest(server string, body LockPostJSONRequestBody) (*http.Request, error)
NewLockPostRequest calls the generic LockPost builder with application/json body
func NewLockPostRequestWithBody ¶
func NewLockPostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLockPostRequestWithBody generates requests for LockPost with any type of body
func NewLoginRequest ¶
func NewLoginRequest(server string, body LoginJSONRequestBody) (*http.Request, error)
NewLoginRequest calls the generic Login builder with application/json body
func NewLoginRequestWithBody ¶
func NewLoginRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLoginRequestWithBody generates requests for Login with any type of body
func NewLogoutRequest ¶
NewLogoutRequest generates requests for Logout
func NewMarkAllNotificationsAsReadRequest ¶
NewMarkAllNotificationsAsReadRequest generates requests for MarkAllNotificationsAsRead
func NewMarkCommentMentionAsReadRequest ¶
func NewMarkCommentMentionAsReadRequest(server string, body MarkCommentMentionAsReadJSONRequestBody) (*http.Request, error)
NewMarkCommentMentionAsReadRequest calls the generic MarkCommentMentionAsRead builder with application/json body
func NewMarkCommentMentionAsReadRequestWithBody ¶
func NewMarkCommentMentionAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMarkCommentMentionAsReadRequestWithBody generates requests for MarkCommentMentionAsRead with any type of body
func NewMarkCommentReplyAsReadRequest ¶
func NewMarkCommentReplyAsReadRequest(server string, body MarkCommentReplyAsReadJSONRequestBody) (*http.Request, error)
NewMarkCommentReplyAsReadRequest calls the generic MarkCommentReplyAsRead builder with application/json body
func NewMarkCommentReplyAsReadRequestWithBody ¶
func NewMarkCommentReplyAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMarkCommentReplyAsReadRequestWithBody generates requests for MarkCommentReplyAsRead with any type of body
func NewMarkManyPostAsReadRequest ¶
func NewMarkManyPostAsReadRequest(server string, body MarkManyPostAsReadJSONRequestBody) (*http.Request, error)
NewMarkManyPostAsReadRequest calls the generic MarkManyPostAsRead builder with application/json body
func NewMarkManyPostAsReadRequestWithBody ¶
func NewMarkManyPostAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMarkManyPostAsReadRequestWithBody generates requests for MarkManyPostAsRead with any type of body
func NewMarkPostAsReadRequest ¶
func NewMarkPostAsReadRequest(server string, body MarkPostAsReadJSONRequestBody) (*http.Request, error)
NewMarkPostAsReadRequest calls the generic MarkPostAsRead builder with application/json body
func NewMarkPostAsReadRequestWithBody ¶
func NewMarkPostAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMarkPostAsReadRequestWithBody generates requests for MarkPostAsRead with any type of body
func NewMarkPostMentionAsReadRequest ¶
func NewMarkPostMentionAsReadRequest(server string, body MarkPostMentionAsReadJSONRequestBody) (*http.Request, error)
NewMarkPostMentionAsReadRequest calls the generic MarkPostMentionAsRead builder with application/json body
func NewMarkPostMentionAsReadRequestWithBody ¶
func NewMarkPostMentionAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMarkPostMentionAsReadRequestWithBody generates requests for MarkPostMentionAsRead with any type of body
func NewMarkPrivateMessageAsReadRequest ¶
func NewMarkPrivateMessageAsReadRequest(server string, body MarkPrivateMessageAsReadJSONRequestBody) (*http.Request, error)
NewMarkPrivateMessageAsReadRequest calls the generic MarkPrivateMessageAsRead builder with application/json body
func NewMarkPrivateMessageAsReadRequestWithBody ¶
func NewMarkPrivateMessageAsReadRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewMarkPrivateMessageAsReadRequestWithBody generates requests for MarkPrivateMessageAsRead with any type of body
func NewPasswordChangeAfterResetRequest ¶
func NewPasswordChangeAfterResetRequest(server string, body PasswordChangeAfterResetJSONRequestBody) (*http.Request, error)
NewPasswordChangeAfterResetRequest calls the generic PasswordChangeAfterReset builder with application/json body
func NewPasswordChangeAfterResetRequestWithBody ¶
func NewPasswordChangeAfterResetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPasswordChangeAfterResetRequestWithBody generates requests for PasswordChangeAfterReset with any type of body
func NewPasswordResetRequest ¶
func NewPasswordResetRequest(server string, body PasswordResetJSONRequestBody) (*http.Request, error)
NewPasswordResetRequest calls the generic PasswordReset builder with application/json body
func NewPasswordResetRequestWithBody ¶
func NewPasswordResetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPasswordResetRequestWithBody generates requests for PasswordReset with any type of body
func NewPurgeCommentRequest ¶
func NewPurgeCommentRequest(server string, body PurgeCommentJSONRequestBody) (*http.Request, error)
NewPurgeCommentRequest calls the generic PurgeComment builder with application/json body
func NewPurgeCommentRequestWithBody ¶
func NewPurgeCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPurgeCommentRequestWithBody generates requests for PurgeComment with any type of body
func NewPurgeCommunityRequest ¶
func NewPurgeCommunityRequest(server string, body PurgeCommunityJSONRequestBody) (*http.Request, error)
NewPurgeCommunityRequest calls the generic PurgeCommunity builder with application/json body
func NewPurgeCommunityRequestWithBody ¶
func NewPurgeCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPurgeCommunityRequestWithBody generates requests for PurgeCommunity with any type of body
func NewPurgePersonRequest ¶
func NewPurgePersonRequest(server string, body PurgePersonJSONRequestBody) (*http.Request, error)
NewPurgePersonRequest calls the generic PurgePerson builder with application/json body
func NewPurgePersonRequestWithBody ¶
func NewPurgePersonRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPurgePersonRequestWithBody generates requests for PurgePerson with any type of body
func NewPurgePostRequest ¶
func NewPurgePostRequest(server string, body PurgePostJSONRequestBody) (*http.Request, error)
NewPurgePostRequest calls the generic PurgePost builder with application/json body
func NewPurgePostRequestWithBody ¶
func NewPurgePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewPurgePostRequestWithBody generates requests for PurgePost with any type of body
func NewRegisterRequest ¶
func NewRegisterRequest(server string, body RegisterJSONRequestBody) (*http.Request, error)
NewRegisterRequest calls the generic Register builder with application/json body
func NewRegisterRequestWithBody ¶
func NewRegisterRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRegisterRequestWithBody generates requests for Register with any type of body
func NewRemoveCommentRequest ¶
func NewRemoveCommentRequest(server string, body RemoveCommentJSONRequestBody) (*http.Request, error)
NewRemoveCommentRequest calls the generic RemoveComment builder with application/json body
func NewRemoveCommentRequestWithBody ¶
func NewRemoveCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveCommentRequestWithBody generates requests for RemoveComment with any type of body
func NewRemoveCommunityRequest ¶
func NewRemoveCommunityRequest(server string, body RemoveCommunityJSONRequestBody) (*http.Request, error)
NewRemoveCommunityRequest calls the generic RemoveCommunity builder with application/json body
func NewRemoveCommunityRequestWithBody ¶
func NewRemoveCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemoveCommunityRequestWithBody generates requests for RemoveCommunity with any type of body
func NewRemovePostRequest ¶
func NewRemovePostRequest(server string, body RemovePostJSONRequestBody) (*http.Request, error)
NewRemovePostRequest calls the generic RemovePost builder with application/json body
func NewRemovePostRequestWithBody ¶
func NewRemovePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRemovePostRequestWithBody generates requests for RemovePost with any type of body
func NewResendVerificationEmailRequest ¶
func NewResendVerificationEmailRequest(server string, body ResendVerificationEmailJSONRequestBody) (*http.Request, error)
NewResendVerificationEmailRequest calls the generic ResendVerificationEmail builder with application/json body
func NewResendVerificationEmailRequestWithBody ¶
func NewResendVerificationEmailRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResendVerificationEmailRequestWithBody generates requests for ResendVerificationEmail with any type of body
func NewResolveCommentReportRequest ¶
func NewResolveCommentReportRequest(server string, body ResolveCommentReportJSONRequestBody) (*http.Request, error)
NewResolveCommentReportRequest calls the generic ResolveCommentReport builder with application/json body
func NewResolveCommentReportRequestWithBody ¶
func NewResolveCommentReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResolveCommentReportRequestWithBody generates requests for ResolveCommentReport with any type of body
func NewResolveObjectRequest ¶
func NewResolveObjectRequest(server string, params *ResolveObjectParams) (*http.Request, error)
NewResolveObjectRequest generates requests for ResolveObject
func NewResolvePostReportRequest ¶
func NewResolvePostReportRequest(server string, body ResolvePostReportJSONRequestBody) (*http.Request, error)
NewResolvePostReportRequest calls the generic ResolvePostReport builder with application/json body
func NewResolvePostReportRequestWithBody ¶
func NewResolvePostReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResolvePostReportRequestWithBody generates requests for ResolvePostReport with any type of body
func NewResolvePrivateMessageReportRequest ¶
func NewResolvePrivateMessageReportRequest(server string, body ResolvePrivateMessageReportJSONRequestBody) (*http.Request, error)
NewResolvePrivateMessageReportRequest calls the generic ResolvePrivateMessageReport builder with application/json body
func NewResolvePrivateMessageReportRequestWithBody ¶
func NewResolvePrivateMessageReportRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewResolvePrivateMessageReportRequestWithBody generates requests for ResolvePrivateMessageReport with any type of body
func NewSaveCommentRequest ¶
func NewSaveCommentRequest(server string, body SaveCommentJSONRequestBody) (*http.Request, error)
NewSaveCommentRequest calls the generic SaveComment builder with application/json body
func NewSaveCommentRequestWithBody ¶
func NewSaveCommentRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSaveCommentRequestWithBody generates requests for SaveComment with any type of body
func NewSavePostRequest ¶
func NewSavePostRequest(server string, body SavePostJSONRequestBody) (*http.Request, error)
NewSavePostRequest calls the generic SavePost builder with application/json body
func NewSavePostRequestWithBody ¶
func NewSavePostRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSavePostRequestWithBody generates requests for SavePost with any type of body
func NewSaveUserSettingsRequest ¶
func NewSaveUserSettingsRequest(server string, body SaveUserSettingsJSONRequestBody) (*http.Request, error)
NewSaveUserSettingsRequest calls the generic SaveUserSettings builder with application/json body
func NewSaveUserSettingsRequestWithBody ¶
func NewSaveUserSettingsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSaveUserSettingsRequestWithBody generates requests for SaveUserSettings with any type of body
func NewSearchRequest ¶
func NewSearchRequest(server string, params *SearchParams) (*http.Request, error)
NewSearchRequest generates requests for Search
func NewTransferCommunityRequest ¶
func NewTransferCommunityRequest(server string, body TransferCommunityJSONRequestBody) (*http.Request, error)
NewTransferCommunityRequest calls the generic TransferCommunity builder with application/json body
func NewTransferCommunityRequestWithBody ¶
func NewTransferCommunityRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewTransferCommunityRequestWithBody generates requests for TransferCommunity with any type of body
func NewUpdateTotpRequest ¶
func NewUpdateTotpRequest(server string, body UpdateTotpJSONRequestBody) (*http.Request, error)
NewUpdateTotpRequest calls the generic UpdateTotp builder with application/json body
func NewUpdateTotpRequestWithBody ¶
func NewUpdateTotpRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTotpRequestWithBody generates requests for UpdateTotp with any type of body
func NewUploadCommunityBannerRequestWithBody ¶
func NewUploadCommunityBannerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadCommunityBannerRequestWithBody generates requests for UploadCommunityBanner with any type of body
func NewUploadCommunityIconRequestWithBody ¶
func NewUploadCommunityIconRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadCommunityIconRequestWithBody generates requests for UploadCommunityIcon with any type of body
func NewUploadImageRequestWithBody ¶
func NewUploadImageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadImageRequestWithBody generates requests for UploadImage with any type of body
func NewUploadSiteBannerRequestWithBody ¶
func NewUploadSiteBannerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadSiteBannerRequestWithBody generates requests for UploadSiteBanner with any type of body
func NewUploadSiteIconRequestWithBody ¶
func NewUploadSiteIconRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadSiteIconRequestWithBody generates requests for UploadSiteIcon with any type of body
func NewUploadUserAvatarRequestWithBody ¶
func NewUploadUserAvatarRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadUserAvatarRequestWithBody generates requests for UploadUserAvatar with any type of body
func NewUploadUserBannerRequestWithBody ¶
func NewUploadUserBannerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUploadUserBannerRequestWithBody generates requests for UploadUserBanner with any type of body
func NewUserBlockInstanceRequest ¶
func NewUserBlockInstanceRequest(server string, body UserBlockInstanceJSONRequestBody) (*http.Request, error)
NewUserBlockInstanceRequest calls the generic UserBlockInstance builder with application/json body
func NewUserBlockInstanceRequestWithBody ¶
func NewUserBlockInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewUserBlockInstanceRequestWithBody generates requests for UserBlockInstance with any type of body
func NewValidateAuthRequest ¶
NewValidateAuthRequest generates requests for ValidateAuth
func NewVerifyEmailRequest ¶
func NewVerifyEmailRequest(server string, body VerifyEmailJSONRequestBody) (*http.Request, error)
NewVerifyEmailRequest calls the generic VerifyEmail builder with application/json body
Types ¶
type AddAdmin ¶
type AddAdmin struct {
Added bool `json:"added"`
// PersonId The person id.
PersonId PersonId `json:"person_id"`
}
AddAdmin Adds an admin to a site.
type AddAdminJSONRequestBody ¶
type AddAdminJSONRequestBody = AddAdmin
AddAdminJSONRequestBody defines body for AddAdmin for application/json ContentType.
type AddAdminResp ¶
type AddAdminResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AddAdminResponse
}
func ParseAddAdminResp ¶
func ParseAddAdminResp(rsp *http.Response) (*AddAdminResp, error)
ParseAddAdminResp parses an HTTP response from a AddAdminWithResponse call
func (AddAdminResp) Status ¶
func (r AddAdminResp) Status() string
Status returns HTTPResponse.Status
func (AddAdminResp) StatusCode ¶
func (r AddAdminResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddAdminResponse ¶
type AddAdminResponse struct {
Admins []PersonView `json:"admins"`
}
AddAdminResponse The response of current admins.
type AddModToCommunity ¶
type AddModToCommunity struct {
Added bool `json:"added"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
// PersonId The person id.
PersonId PersonId `json:"person_id"`
}
AddModToCommunity Add a moderator to a community.
type AddModToCommunityJSONRequestBody ¶
type AddModToCommunityJSONRequestBody = AddModToCommunity
AddModToCommunityJSONRequestBody defines body for AddModToCommunity for application/json ContentType.
type AddModToCommunityResp ¶
type AddModToCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AddModToCommunityResponse
}
func ParseAddModToCommunityResp ¶
func ParseAddModToCommunityResp(rsp *http.Response) (*AddModToCommunityResp, error)
ParseAddModToCommunityResp parses an HTTP response from a AddModToCommunityWithResponse call
func (AddModToCommunityResp) Status ¶
func (r AddModToCommunityResp) Status() string
Status returns HTTPResponse.Status
func (AddModToCommunityResp) StatusCode ¶
func (r AddModToCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddModToCommunityResponse ¶
type AddModToCommunityResponse struct {
Moderators []CommunityModeratorView `json:"moderators"`
}
AddModToCommunityResponse The response of adding a moderator to a community.
type AdminAllowInstance ¶
type AdminAllowInstance struct {
// AdminPersonId The person id.
AdminPersonId PersonId `json:"admin_person_id"`
Allowed bool `json:"allowed"`
Id AdminAllowInstanceId `json:"id"`
// InstanceId The instance id.
InstanceId InstanceId `json:"instance_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
AdminAllowInstance defines model for AdminAllowInstance.
type AdminAllowInstanceId ¶
type AdminAllowInstanceId = float64
AdminAllowInstanceId defines model for AdminAllowInstanceId.
type AdminAllowInstanceJSONRequestBody ¶
type AdminAllowInstanceJSONRequestBody = AdminAllowInstanceParams
AdminAllowInstanceJSONRequestBody defines body for AdminAllowInstance for application/json ContentType.
type AdminAllowInstanceParams ¶
type AdminAllowInstanceParams struct {
Allow bool `json:"allow"`
Instance string `json:"instance"`
Reason *string `json:"reason,omitempty"`
}
AdminAllowInstanceParams defines model for AdminAllowInstanceParams.
type AdminAllowInstanceResp ¶
type AdminAllowInstanceResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseAdminAllowInstanceResp ¶
func ParseAdminAllowInstanceResp(rsp *http.Response) (*AdminAllowInstanceResp, error)
ParseAdminAllowInstanceResp parses an HTTP response from a AdminAllowInstanceWithResponse call
func (AdminAllowInstanceResp) Status ¶
func (r AdminAllowInstanceResp) Status() string
Status returns HTTPResponse.Status
func (AdminAllowInstanceResp) StatusCode ¶
func (r AdminAllowInstanceResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminAllowInstanceView ¶
type AdminAllowInstanceView struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
AdminAllowInstance AdminAllowInstance `json:"admin_allow_instance"`
// Instance A federated instance / site.
Instance Instance `json:"instance"`
}
AdminAllowInstanceView When an admin purges a post.
type AdminBlockInstance ¶
type AdminBlockInstance struct {
// AdminPersonId The person id.
AdminPersonId PersonId `json:"admin_person_id"`
Blocked bool `json:"blocked"`
Expires *string `json:"expires,omitempty"`
Id AdminBlockInstanceId `json:"id"`
// InstanceId The instance id.
InstanceId InstanceId `json:"instance_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
AdminBlockInstance defines model for AdminBlockInstance.
type AdminBlockInstanceId ¶
type AdminBlockInstanceId = float64
AdminBlockInstanceId defines model for AdminBlockInstanceId.
type AdminBlockInstanceJSONRequestBody ¶
type AdminBlockInstanceJSONRequestBody = AdminBlockInstanceParams
AdminBlockInstanceJSONRequestBody defines body for AdminBlockInstance for application/json ContentType.
type AdminBlockInstanceParams ¶
type AdminBlockInstanceParams struct {
Block bool `json:"block"`
Expires *string `json:"expires,omitempty"`
Instance string `json:"instance"`
Reason *string `json:"reason,omitempty"`
}
AdminBlockInstanceParams defines model for AdminBlockInstanceParams.
type AdminBlockInstanceResp ¶
type AdminBlockInstanceResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseAdminBlockInstanceResp ¶
func ParseAdminBlockInstanceResp(rsp *http.Response) (*AdminBlockInstanceResp, error)
ParseAdminBlockInstanceResp parses an HTTP response from a AdminBlockInstanceWithResponse call
func (AdminBlockInstanceResp) Status ¶
func (r AdminBlockInstanceResp) Status() string
Status returns HTTPResponse.Status
func (AdminBlockInstanceResp) StatusCode ¶
func (r AdminBlockInstanceResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminBlockInstanceView ¶
type AdminBlockInstanceView struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
AdminBlockInstance AdminBlockInstance `json:"admin_block_instance"`
// Instance A federated instance / site.
Instance Instance `json:"instance"`
}
AdminBlockInstanceView When an admin purges a post.
type AdminPurgeComment ¶
type AdminPurgeComment struct {
// AdminPersonId The person id.
AdminPersonId PersonId `json:"admin_person_id"`
Id AdminPurgeCommentId `json:"id"`
// PostId The post id.
PostId PostId `json:"post_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
AdminPurgeComment When an admin purges a comment.
type AdminPurgeCommentId ¶
type AdminPurgeCommentId = float64
AdminPurgeCommentId defines model for AdminPurgeCommentId.
type AdminPurgeCommentView ¶
type AdminPurgeCommentView struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// AdminPurgeComment When an admin purges a comment.
AdminPurgeComment AdminPurgeComment `json:"admin_purge_comment"`
// Post A post.
Post Post `json:"post"`
}
AdminPurgeCommentView When an admin purges a comment.
type AdminPurgeCommunity ¶
type AdminPurgeCommunity struct {
// AdminPersonId The person id.
AdminPersonId PersonId `json:"admin_person_id"`
Id AdminPurgeCommunityId `json:"id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
AdminPurgeCommunity When an admin purges a community.
type AdminPurgeCommunityId ¶
type AdminPurgeCommunityId = float64
AdminPurgeCommunityId defines model for AdminPurgeCommunityId.
type AdminPurgeCommunityView ¶
type AdminPurgeCommunityView struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// AdminPurgeCommunity When an admin purges a community.
AdminPurgeCommunity AdminPurgeCommunity `json:"admin_purge_community"`
}
AdminPurgeCommunityView When an admin purges a community.
type AdminPurgePerson ¶
type AdminPurgePerson struct {
// AdminPersonId The person id.
AdminPersonId PersonId `json:"admin_person_id"`
Id AdminPurgePersonId `json:"id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
AdminPurgePerson When an admin purges a person.
type AdminPurgePersonId ¶
type AdminPurgePersonId = float64
AdminPurgePersonId defines model for AdminPurgePersonId.
type AdminPurgePersonView ¶
type AdminPurgePersonView struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// AdminPurgePerson When an admin purges a person.
AdminPurgePerson AdminPurgePerson `json:"admin_purge_person"`
}
AdminPurgePersonView When an admin purges a person.
type AdminPurgePost ¶
type AdminPurgePost struct {
// AdminPersonId The person id.
AdminPersonId PersonId `json:"admin_person_id"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Id AdminPurgePostId `json:"id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
AdminPurgePost When an admin purges a post.
type AdminPurgePostId ¶
type AdminPurgePostId = float64
AdminPurgePostId defines model for AdminPurgePostId.
type AdminPurgePostView ¶
type AdminPurgePostView struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// AdminPurgePost When an admin purges a post.
AdminPurgePost AdminPurgePost `json:"admin_purge_post"`
// Community A community.
Community Community `json:"community"`
}
AdminPurgePostView When an admin purges a post.
type ApproveCommunityPendingFollowJSONRequestBody ¶
type ApproveCommunityPendingFollowJSONRequestBody = ApproveCommunityPendingFollower
ApproveCommunityPendingFollowJSONRequestBody defines body for ApproveCommunityPendingFollow for application/json ContentType.
type ApproveCommunityPendingFollowResp ¶
type ApproveCommunityPendingFollowResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseApproveCommunityPendingFollowResp ¶
func ParseApproveCommunityPendingFollowResp(rsp *http.Response) (*ApproveCommunityPendingFollowResp, error)
ParseApproveCommunityPendingFollowResp parses an HTTP response from a ApproveCommunityPendingFollowWithResponse call
func (ApproveCommunityPendingFollowResp) Status ¶
func (r ApproveCommunityPendingFollowResp) Status() string
Status returns HTTPResponse.Status
func (ApproveCommunityPendingFollowResp) StatusCode ¶
func (r ApproveCommunityPendingFollowResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ApproveCommunityPendingFollower ¶
type ApproveCommunityPendingFollower struct {
Approve bool `json:"approve"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
// FollowerId The person id.
FollowerId PersonId `json:"follower_id"`
}
ApproveCommunityPendingFollower defines model for ApproveCommunityPendingFollower.
type ApproveRegistrationApplication ¶
type ApproveRegistrationApplication struct {
Approve bool `json:"approve"`
DenyReason *string `json:"deny_reason,omitempty"`
// Id The registration application id.
Id RegistrationApplicationId `json:"id"`
}
ApproveRegistrationApplication Approves a registration application.
type ApproveRegistrationApplicationJSONRequestBody ¶
type ApproveRegistrationApplicationJSONRequestBody = ApproveRegistrationApplication
ApproveRegistrationApplicationJSONRequestBody defines body for ApproveRegistrationApplication for application/json ContentType.
type ApproveRegistrationApplicationResp ¶
type ApproveRegistrationApplicationResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RegistrationApplicationResponse
}
func ParseApproveRegistrationApplicationResp ¶
func ParseApproveRegistrationApplicationResp(rsp *http.Response) (*ApproveRegistrationApplicationResp, error)
ParseApproveRegistrationApplicationResp parses an HTTP response from a ApproveRegistrationApplicationWithResponse call
func (ApproveRegistrationApplicationResp) Status ¶
func (r ApproveRegistrationApplicationResp) Status() string
Status returns HTTPResponse.Status
func (ApproveRegistrationApplicationResp) StatusCode ¶
func (r ApproveRegistrationApplicationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthenticateWithOAuthJSONRequestBody ¶
type AuthenticateWithOAuthJSONRequestBody = AuthenticateWithOauth
AuthenticateWithOAuthJSONRequestBody defines body for AuthenticateWithOAuth for application/json ContentType.
type AuthenticateWithOAuthResp ¶
type AuthenticateWithOAuthResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LoginResponse
}
func ParseAuthenticateWithOAuthResp ¶
func ParseAuthenticateWithOAuthResp(rsp *http.Response) (*AuthenticateWithOAuthResp, error)
ParseAuthenticateWithOAuthResp parses an HTTP response from a AuthenticateWithOAuthWithResponse call
func (AuthenticateWithOAuthResp) Status ¶
func (r AuthenticateWithOAuthResp) Status() string
Status returns HTTPResponse.Status
func (AuthenticateWithOAuthResp) StatusCode ¶
func (r AuthenticateWithOAuthResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthenticateWithOauth ¶
type AuthenticateWithOauth struct {
// Answer An answer is mandatory if require application is enabled on the server
Answer *string `json:"answer,omitempty"`
Code string `json:"code"`
// OauthProviderId The oauth provider id.
OauthProviderId OAuthProviderId `json:"oauth_provider_id"`
PkceCodeVerifier *string `json:"pkce_code_verifier,omitempty"`
RedirectUri string `json:"redirect_uri"`
ShowNsfw *bool `json:"show_nsfw,omitempty"`
// Username Username is mandatory at registration time
Username *string `json:"username,omitempty"`
}
AuthenticateWithOauth Logging in with an OAuth 2.0 authorization
type BanFromCommunity ¶
type BanFromCommunity struct {
Ban bool `json:"ban"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
// Expires A time that the ban will expire, in unix epoch seconds.
//
// An i64 unix timestamp is used for a simpler API client implementation.
Expires *float64 `json:"expires,omitempty"`
// PersonId The person id.
PersonId PersonId `json:"person_id"`
Reason *string `json:"reason,omitempty"`
// RemoveOrRestoreData Optionally remove or restore all their data. Useful for new troll accounts.
// If ban is true, then this means remove. If ban is false, it means restore.
RemoveOrRestoreData *bool `json:"remove_or_restore_data,omitempty"`
}
BanFromCommunity Ban a user from a community.
type BanFromCommunityJSONRequestBody ¶
type BanFromCommunityJSONRequestBody = BanFromCommunity
BanFromCommunityJSONRequestBody defines body for BanFromCommunity for application/json ContentType.
type BanFromCommunityResp ¶
type BanFromCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BanFromCommunityResponse
}
func ParseBanFromCommunityResp ¶
func ParseBanFromCommunityResp(rsp *http.Response) (*BanFromCommunityResp, error)
ParseBanFromCommunityResp parses an HTTP response from a BanFromCommunityWithResponse call
func (BanFromCommunityResp) Status ¶
func (r BanFromCommunityResp) Status() string
Status returns HTTPResponse.Status
func (BanFromCommunityResp) StatusCode ¶
func (r BanFromCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BanFromCommunityResponse ¶
type BanFromCommunityResponse struct {
Banned bool `json:"banned"`
// PersonView A person view.
PersonView PersonView `json:"person_view"`
}
BanFromCommunityResponse The response for banning a user from a community.
type BanPerson ¶
type BanPerson struct {
Ban bool `json:"ban"`
// Expires A time that the ban will expire, in unix epoch seconds.
//
// An i64 unix timestamp is used for a simpler API client implementation.
Expires *float64 `json:"expires,omitempty"`
// PersonId The person id.
PersonId PersonId `json:"person_id"`
Reason *string `json:"reason,omitempty"`
// RemoveOrRestoreData Optionally remove or restore all their data. Useful for new troll accounts.
// If ban is true, then this means remove. If ban is false, it means restore.
RemoveOrRestoreData *bool `json:"remove_or_restore_data,omitempty"`
}
BanPerson Ban a person from the site.
type BanPersonJSONRequestBody ¶
type BanPersonJSONRequestBody = BanPerson
BanPersonJSONRequestBody defines body for BanPerson for application/json ContentType.
type BanPersonResp ¶
type BanPersonResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BanPersonResponse
}
func ParseBanPersonResp ¶
func ParseBanPersonResp(rsp *http.Response) (*BanPersonResp, error)
ParseBanPersonResp parses an HTTP response from a BanPersonWithResponse call
func (BanPersonResp) Status ¶
func (r BanPersonResp) Status() string
Status returns HTTPResponse.Status
func (BanPersonResp) StatusCode ¶
func (r BanPersonResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BanPersonResponse ¶
type BanPersonResponse struct {
Banned bool `json:"banned"`
// PersonView A person view.
PersonView PersonView `json:"person_view"`
}
BanPersonResponse A response for a banned person.
type BannedPersonsResponse ¶
type BannedPersonsResponse struct {
Banned []PersonView `json:"banned"`
}
BannedPersonsResponse The list of banned persons.
type BlockCommunity ¶
type BlockCommunity struct {
Block bool `json:"block"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
}
BlockCommunity Block a community.
type BlockCommunityJSONRequestBody ¶
type BlockCommunityJSONRequestBody = BlockCommunity
BlockCommunityJSONRequestBody defines body for BlockCommunity for application/json ContentType.
type BlockCommunityResp ¶
type BlockCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BlockCommunityResponse
}
func ParseBlockCommunityResp ¶
func ParseBlockCommunityResp(rsp *http.Response) (*BlockCommunityResp, error)
ParseBlockCommunityResp parses an HTTP response from a BlockCommunityWithResponse call
func (BlockCommunityResp) Status ¶
func (r BlockCommunityResp) Status() string
Status returns HTTPResponse.Status
func (BlockCommunityResp) StatusCode ¶
func (r BlockCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BlockCommunityResponse ¶
type BlockCommunityResponse struct {
Blocked bool `json:"blocked"`
// CommunityView A community view.
CommunityView CommunityView `json:"community_view"`
}
BlockCommunityResponse The block community response.
type BlockPerson ¶
type BlockPerson struct {
Block bool `json:"block"`
// PersonId The person id.
PersonId PersonId `json:"person_id"`
}
BlockPerson Block a person.
type BlockPersonJSONRequestBody ¶
type BlockPersonJSONRequestBody = BlockPerson
BlockPersonJSONRequestBody defines body for BlockPerson for application/json ContentType.
type BlockPersonResp ¶
type BlockPersonResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BlockPersonResponse
}
func ParseBlockPersonResp ¶
func ParseBlockPersonResp(rsp *http.Response) (*BlockPersonResp, error)
ParseBlockPersonResp parses an HTTP response from a BlockPersonWithResponse call
func (BlockPersonResp) Status ¶
func (r BlockPersonResp) Status() string
Status returns HTTPResponse.Status
func (BlockPersonResp) StatusCode ¶
func (r BlockPersonResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type BlockPersonResponse ¶
type BlockPersonResponse struct {
Blocked bool `json:"blocked"`
// PersonView A person view.
PersonView PersonView `json:"person_view"`
}
BlockPersonResponse The response for a person block.
type CaptchaResponse ¶
type CaptchaResponse struct {
// Png A Base64 encoded png
Png string `json:"png"`
// Uuid The UUID for the captcha item.
Uuid string `json:"uuid"`
// Wav A Base64 encoded wav audio
Wav string `json:"wav"`
}
CaptchaResponse A captcha response.
type ChangePassword ¶
type ChangePassword struct {
NewPassword SensitiveString `json:"new_password"`
NewPasswordVerify SensitiveString `json:"new_password_verify"`
OldPassword SensitiveString `json:"old_password"`
}
ChangePassword Changes your account password.
type ChangePasswordJSONRequestBody ¶
type ChangePasswordJSONRequestBody = ChangePassword
ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.
type ChangePasswordResp ¶
type ChangePasswordResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LoginResponse
}
func ParseChangePasswordResp ¶
func ParseChangePasswordResp(rsp *http.Response) (*ChangePasswordResp, error)
ParseChangePasswordResp parses an HTTP response from a ChangePasswordWithResponse call
func (ChangePasswordResp) Status ¶
func (r ChangePasswordResp) Status() string
Status returns HTTPResponse.Status
func (ChangePasswordResp) StatusCode ¶
func (r ChangePasswordResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddAdmin ¶
func (c *Client) AddAdmin(ctx context.Context, body AddAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddAdminWithBody ¶
func (*Client) AddModToCommunity ¶
func (c *Client) AddModToCommunity(ctx context.Context, body AddModToCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddModToCommunityWithBody ¶
func (*Client) AdminAllowInstance ¶
func (c *Client) AdminAllowInstance(ctx context.Context, body AdminAllowInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminAllowInstanceWithBody ¶
func (*Client) AdminBlockInstance ¶
func (c *Client) AdminBlockInstance(ctx context.Context, body AdminBlockInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminBlockInstanceWithBody ¶
func (*Client) ApproveCommunityPendingFollow ¶
func (c *Client) ApproveCommunityPendingFollow(ctx context.Context, body ApproveCommunityPendingFollowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ApproveCommunityPendingFollowWithBody ¶
func (*Client) ApproveRegistrationApplication ¶
func (c *Client) ApproveRegistrationApplication(ctx context.Context, body ApproveRegistrationApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ApproveRegistrationApplicationWithBody ¶
func (*Client) AuthenticateWithOAuth ¶
func (c *Client) AuthenticateWithOAuth(ctx context.Context, body AuthenticateWithOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthenticateWithOAuthWithBody ¶
func (*Client) BanFromCommunity ¶
func (c *Client) BanFromCommunity(ctx context.Context, body BanFromCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BanFromCommunityWithBody ¶
func (*Client) BanPerson ¶
func (c *Client) BanPerson(ctx context.Context, body BanPersonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BanPersonWithBody ¶
func (*Client) BlockCommunity ¶
func (c *Client) BlockCommunity(ctx context.Context, body BlockCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BlockCommunityWithBody ¶
func (*Client) BlockPerson ¶
func (c *Client) BlockPerson(ctx context.Context, body BlockPersonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) BlockPersonWithBody ¶
func (*Client) ChangePassword ¶
func (c *Client) ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ChangePasswordWithBody ¶
func (*Client) CreateComment ¶
func (c *Client) CreateComment(ctx context.Context, body CreateCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCommentReport ¶
func (c *Client) CreateCommentReport(ctx context.Context, body CreateCommentReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCommentReportWithBody ¶
func (*Client) CreateCommentWithBody ¶
func (*Client) CreateCommunity ¶
func (c *Client) CreateCommunity(ctx context.Context, body CreateCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCommunityWithBody ¶
func (*Client) CreateCustomEmoji ¶
func (c *Client) CreateCustomEmoji(ctx context.Context, body CreateCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCustomEmojiWithBody ¶
func (*Client) CreateOAuthProvider ¶
func (c *Client) CreateOAuthProvider(ctx context.Context, body CreateOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateOAuthProviderWithBody ¶
func (*Client) CreatePost ¶
func (c *Client) CreatePost(ctx context.Context, body CreatePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePostReport ¶
func (c *Client) CreatePostReport(ctx context.Context, body CreatePostReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePostReportWithBody ¶
func (*Client) CreatePostWithBody ¶
func (*Client) CreatePrivateMessage ¶
func (c *Client) CreatePrivateMessage(ctx context.Context, body CreatePrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePrivateMessageReport ¶
func (c *Client) CreatePrivateMessageReport(ctx context.Context, body CreatePrivateMessageReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePrivateMessageReportWithBody ¶
func (*Client) CreatePrivateMessageWithBody ¶
func (*Client) CreateSite ¶
func (c *Client) CreateSite(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSiteWithBody ¶
func (*Client) CreateTagline ¶
func (c *Client) CreateTagline(ctx context.Context, body CreateTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTaglineWithBody ¶
func (*Client) DeleteAccount ¶
func (c *Client) DeleteAccount(ctx context.Context, body DeleteAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteAccountWithBody ¶
func (*Client) DeleteComment ¶
func (c *Client) DeleteComment(ctx context.Context, body DeleteCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteCommentWithBody ¶
func (*Client) DeleteCommunity ¶
func (c *Client) DeleteCommunity(ctx context.Context, body DeleteCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteCommunityBanner ¶
func (*Client) DeleteCommunityIcon ¶
func (*Client) DeleteCommunityWithBody ¶
func (*Client) DeleteCustomEmoji ¶
func (c *Client) DeleteCustomEmoji(ctx context.Context, body DeleteCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteCustomEmojiWithBody ¶
func (*Client) DeleteImage ¶
func (c *Client) DeleteImage(ctx context.Context, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteOAuthProvider ¶
func (c *Client) DeleteOAuthProvider(ctx context.Context, body DeleteOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteOAuthProviderWithBody ¶
func (*Client) DeletePost ¶
func (c *Client) DeletePost(ctx context.Context, body DeletePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeletePostWithBody ¶
func (*Client) DeletePrivateMessage ¶
func (c *Client) DeletePrivateMessage(ctx context.Context, body DeletePrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeletePrivateMessageWithBody ¶
func (*Client) DeleteSiteBanner ¶
func (*Client) DeleteSiteIcon ¶
func (*Client) DeleteTagline ¶
func (c *Client) DeleteTagline(ctx context.Context, body DeleteTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteTaglineWithBody ¶
func (*Client) DeleteUserAvatar ¶
func (*Client) DeleteUserBanner ¶
func (*Client) DistinguishComment ¶
func (c *Client) DistinguishComment(ctx context.Context, body DistinguishCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DistinguishCommentWithBody ¶
func (*Client) EditComment ¶
func (c *Client) EditComment(ctx context.Context, body EditCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditCommentWithBody ¶
func (*Client) EditCommunity ¶
func (c *Client) EditCommunity(ctx context.Context, body EditCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditCommunityWithBody ¶
func (*Client) EditCustomEmoji ¶
func (c *Client) EditCustomEmoji(ctx context.Context, body EditCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditCustomEmojiWithBody ¶
func (*Client) EditOAuthProvider ¶
func (c *Client) EditOAuthProvider(ctx context.Context, body EditOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditOAuthProviderWithBody ¶
func (*Client) EditPost ¶
func (c *Client) EditPost(ctx context.Context, body EditPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditPostWithBody ¶
func (*Client) EditPrivateMessage ¶
func (c *Client) EditPrivateMessage(ctx context.Context, body EditPrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditPrivateMessageWithBody ¶
func (*Client) EditSite ¶
func (c *Client) EditSite(ctx context.Context, body EditSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditSiteWithBody ¶
func (*Client) EditTagline ¶
func (c *Client) EditTagline(ctx context.Context, body EditTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditTaglineWithBody ¶
func (*Client) ExportSettings ¶
func (*Client) FeaturePost ¶
func (c *Client) FeaturePost(ctx context.Context, body FeaturePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FeaturePostWithBody ¶
func (*Client) FollowCommunity ¶
func (c *Client) FollowCommunity(ctx context.Context, body FollowCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FollowCommunityWithBody ¶
func (*Client) GenerateTotpSecret ¶
func (*Client) GetBannedPersons ¶
func (*Client) GetCaptcha ¶
func (*Client) GetComment ¶
func (c *Client) GetComment(ctx context.Context, params *GetCommentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetComments ¶
func (c *Client) GetComments(ctx context.Context, params *GetCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCommentsSlim ¶
func (c *Client) GetCommentsSlim(ctx context.Context, params *GetCommentsSlimParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCommunity ¶
func (c *Client) GetCommunity(ctx context.Context, params *GetCommunityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCommunityPendingFollowsCount ¶
func (c *Client) GetCommunityPendingFollowsCount(ctx context.Context, params *GetCommunityPendingFollowsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetFederatedInstances ¶
func (*Client) GetModlog ¶
func (c *Client) GetModlog(ctx context.Context, params *GetModlogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPersonDetails ¶
func (c *Client) GetPersonDetails(ctx context.Context, params *GetPersonDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPost ¶
func (c *Client) GetPost(ctx context.Context, params *GetPostParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPosts ¶
func (c *Client) GetPosts(ctx context.Context, params *GetPostsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRandomCommunity ¶
func (c *Client) GetRandomCommunity(ctx context.Context, params *GetRandomCommunityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetRegistrationApplication ¶
func (c *Client) GetRegistrationApplication(ctx context.Context, params *GetRegistrationApplicationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetReportCount ¶
func (c *Client) GetReportCount(ctx context.Context, params *GetReportCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSiteMetadata ¶
func (c *Client) GetSiteMetadata(ctx context.Context, params *GetSiteMetadataParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUnreadCount ¶
func (*Client) GetUnreadRegistrationApplicationCount ¶
func (*Client) HideCommunity ¶
func (c *Client) HideCommunity(ctx context.Context, body HideCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HideCommunityWithBody ¶
func (*Client) HidePost ¶
func (c *Client) HidePost(ctx context.Context, body HidePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) HidePostWithBody ¶
func (*Client) ImageHealth ¶
func (*Client) ImportSettings ¶
func (c *Client) ImportSettings(ctx context.Context, body ImportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ImportSettingsWithBody ¶
func (*Client) LeaveAdmin ¶
func (*Client) LikeComment ¶
func (c *Client) LikeComment(ctx context.Context, body LikeCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LikeCommentWithBody ¶
func (*Client) LikePost ¶
func (c *Client) LikePost(ctx context.Context, body LikePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LikePostWithBody ¶
func (*Client) ListAllMedia ¶
func (c *Client) ListAllMedia(ctx context.Context, params *ListAllMediaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCommentLikes ¶
func (c *Client) ListCommentLikes(ctx context.Context, params *ListCommentLikesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCommunities ¶
func (c *Client) ListCommunities(ctx context.Context, params *ListCommunitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCommunityPendingFollows ¶
func (c *Client) ListCommunityPendingFollows(ctx context.Context, params *ListCommunityPendingFollowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCustomEmojis ¶
func (c *Client) ListCustomEmojis(ctx context.Context, params *ListCustomEmojisParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInbox ¶
func (c *Client) ListInbox(ctx context.Context, params *ListInboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListLogins ¶
func (*Client) ListMedia ¶
func (c *Client) ListMedia(ctx context.Context, params *ListMediaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPersonContent ¶
func (c *Client) ListPersonContent(ctx context.Context, params *ListPersonContentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPersonSaved ¶
func (c *Client) ListPersonSaved(ctx context.Context, params *ListPersonSavedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPostLikes ¶
func (c *Client) ListPostLikes(ctx context.Context, params *ListPostLikesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListRegistrationApplications ¶
func (c *Client) ListRegistrationApplications(ctx context.Context, params *ListRegistrationApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListReports ¶
func (c *Client) ListReports(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListTaglines ¶
func (c *Client) ListTaglines(ctx context.Context, params *ListTaglinesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LockPost ¶
func (c *Client) LockPost(ctx context.Context, body LockPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LockPostWithBody ¶
func (*Client) Login ¶
func (c *Client) Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LoginWithBody ¶
func (*Client) MarkAllNotificationsAsRead ¶
func (*Client) MarkCommentMentionAsRead ¶
func (c *Client) MarkCommentMentionAsRead(ctx context.Context, body MarkCommentMentionAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkCommentMentionAsReadWithBody ¶
func (*Client) MarkCommentReplyAsRead ¶
func (c *Client) MarkCommentReplyAsRead(ctx context.Context, body MarkCommentReplyAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkCommentReplyAsReadWithBody ¶
func (*Client) MarkManyPostAsRead ¶
func (c *Client) MarkManyPostAsRead(ctx context.Context, body MarkManyPostAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkManyPostAsReadWithBody ¶
func (*Client) MarkPostAsRead ¶
func (c *Client) MarkPostAsRead(ctx context.Context, body MarkPostAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkPostAsReadWithBody ¶
func (*Client) MarkPostMentionAsRead ¶
func (c *Client) MarkPostMentionAsRead(ctx context.Context, body MarkPostMentionAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkPostMentionAsReadWithBody ¶
func (*Client) MarkPrivateMessageAsRead ¶
func (c *Client) MarkPrivateMessageAsRead(ctx context.Context, body MarkPrivateMessageAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MarkPrivateMessageAsReadWithBody ¶
func (*Client) PasswordChangeAfterReset ¶
func (c *Client) PasswordChangeAfterReset(ctx context.Context, body PasswordChangeAfterResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PasswordChangeAfterResetWithBody ¶
func (*Client) PasswordReset ¶
func (c *Client) PasswordReset(ctx context.Context, body PasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PasswordResetWithBody ¶
func (*Client) PurgeComment ¶
func (c *Client) PurgeComment(ctx context.Context, body PurgeCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PurgeCommentWithBody ¶
func (*Client) PurgeCommunity ¶
func (c *Client) PurgeCommunity(ctx context.Context, body PurgeCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PurgeCommunityWithBody ¶
func (*Client) PurgePerson ¶
func (c *Client) PurgePerson(ctx context.Context, body PurgePersonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PurgePersonWithBody ¶
func (*Client) PurgePost ¶
func (c *Client) PurgePost(ctx context.Context, body PurgePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PurgePostWithBody ¶
func (*Client) Register ¶
func (c *Client) Register(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RegisterWithBody ¶
func (*Client) RemoveComment ¶
func (c *Client) RemoveComment(ctx context.Context, body RemoveCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveCommentWithBody ¶
func (*Client) RemoveCommunity ¶
func (c *Client) RemoveCommunity(ctx context.Context, body RemoveCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemoveCommunityWithBody ¶
func (*Client) RemovePost ¶
func (c *Client) RemovePost(ctx context.Context, body RemovePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RemovePostWithBody ¶
func (*Client) ResendVerificationEmail ¶
func (c *Client) ResendVerificationEmail(ctx context.Context, body ResendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResendVerificationEmailWithBody ¶
func (*Client) ResolveCommentReport ¶
func (c *Client) ResolveCommentReport(ctx context.Context, body ResolveCommentReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResolveCommentReportWithBody ¶
func (*Client) ResolveObject ¶
func (c *Client) ResolveObject(ctx context.Context, params *ResolveObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResolvePostReport ¶
func (c *Client) ResolvePostReport(ctx context.Context, body ResolvePostReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResolvePostReportWithBody ¶
func (*Client) ResolvePrivateMessageReport ¶
func (c *Client) ResolvePrivateMessageReport(ctx context.Context, body ResolvePrivateMessageReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ResolvePrivateMessageReportWithBody ¶
func (*Client) SaveComment ¶
func (c *Client) SaveComment(ctx context.Context, body SaveCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SaveCommentWithBody ¶
func (*Client) SavePost ¶
func (c *Client) SavePost(ctx context.Context, body SavePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SavePostWithBody ¶
func (*Client) SaveUserSettings ¶
func (c *Client) SaveUserSettings(ctx context.Context, body SaveUserSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SaveUserSettingsWithBody ¶
func (*Client) Search ¶
func (c *Client) Search(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TransferCommunity ¶
func (c *Client) TransferCommunity(ctx context.Context, body TransferCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TransferCommunityWithBody ¶
func (*Client) UpdateTotp ¶
func (c *Client) UpdateTotp(ctx context.Context, body UpdateTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTotpWithBody ¶
func (*Client) UploadCommunityBannerWithBody ¶
func (*Client) UploadCommunityIconWithBody ¶
func (*Client) UploadImageWithBody ¶
func (*Client) UploadSiteBannerWithBody ¶
func (*Client) UploadSiteIconWithBody ¶
func (*Client) UploadUserAvatarWithBody ¶
func (*Client) UploadUserBannerWithBody ¶
func (*Client) UserBlockInstance ¶
func (c *Client) UserBlockInstance(ctx context.Context, body UserBlockInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UserBlockInstanceWithBody ¶
func (*Client) ValidateAuth ¶
func (*Client) VerifyEmail ¶
func (c *Client) VerifyEmail(ctx context.Context, body VerifyEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// GetMyUser request
GetMyUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ChangePasswordWithBody request with any body
ChangePasswordWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ChangePassword(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCaptcha request
GetCaptcha(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// LoginWithBody request with any body
LoginWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
Login(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// Logout request
Logout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// PasswordChangeAfterResetWithBody request with any body
PasswordChangeAfterResetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PasswordChangeAfterReset(ctx context.Context, body PasswordChangeAfterResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PasswordResetWithBody request with any body
PasswordResetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PasswordReset(ctx context.Context, body PasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegisterWithBody request with any body
RegisterWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
Register(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResendVerificationEmailWithBody request with any body
ResendVerificationEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResendVerificationEmail(ctx context.Context, body ResendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPersonSaved request
ListPersonSaved(ctx context.Context, params *ListPersonSavedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GenerateTotpSecret request
GenerateTotpSecret(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTotpWithBody request with any body
UpdateTotpWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTotp(ctx context.Context, body UpdateTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VerifyEmailWithBody request with any body
VerifyEmailWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
VerifyEmail(ctx context.Context, body VerifyEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUserAvatar request
DeleteUserAvatar(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadUserAvatarWithBody request with any body
UploadUserAvatarWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUserBanner request
DeleteUserBanner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadUserBannerWithBody request with any body
UploadUserBannerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// BlockCommunityWithBody request with any body
BlockCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BlockCommunity(ctx context.Context, body BlockCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UserBlockInstanceWithBody request with any body
UserBlockInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UserBlockInstance(ctx context.Context, body UserBlockInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BlockPersonWithBody request with any body
BlockPersonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BlockPerson(ctx context.Context, body BlockPersonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAccountWithBody request with any body
DeleteAccountWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteAccount(ctx context.Context, body DeleteAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInbox request
ListInbox(ctx context.Context, params *ListInboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLogins request
ListLogins(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMedia request
ListMedia(ctx context.Context, params *ListMediaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkAllNotificationsAsRead request
MarkAllNotificationsAsRead(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkCommentMentionAsReadWithBody request with any body
MarkCommentMentionAsReadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkCommentMentionAsRead(ctx context.Context, body MarkCommentMentionAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkPostMentionAsReadWithBody request with any body
MarkPostMentionAsReadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkPostMentionAsRead(ctx context.Context, body MarkPostMentionAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetReportCount request
GetReportCount(ctx context.Context, params *GetReportCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExportSettings request
ExportSettings(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ImportSettingsWithBody request with any body
ImportSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ImportSettings(ctx context.Context, body ImportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SaveUserSettingsWithBody request with any body
SaveUserSettingsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SaveUserSettings(ctx context.Context, body SaveUserSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUnreadCount request
GetUnreadCount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ValidateAuth request
ValidateAuth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddAdminWithBody request with any body
AddAdminWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddAdmin(ctx context.Context, body AddAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BanPersonWithBody request with any body
BanPersonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BanPerson(ctx context.Context, body BanPersonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBannedPersons request
GetBannedPersons(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminAllowInstanceWithBody request with any body
AdminAllowInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AdminAllowInstance(ctx context.Context, body AdminAllowInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminBlockInstanceWithBody request with any body
AdminBlockInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AdminBlockInstance(ctx context.Context, body AdminBlockInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LeaveAdmin request
LeaveAdmin(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAllMedia request
ListAllMedia(ctx context.Context, params *ListAllMediaParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// PurgeCommentWithBody request with any body
PurgeCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PurgeComment(ctx context.Context, body PurgeCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PurgeCommunityWithBody request with any body
PurgeCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PurgeCommunity(ctx context.Context, body PurgeCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PurgePersonWithBody request with any body
PurgePersonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PurgePerson(ctx context.Context, body PurgePersonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PurgePostWithBody request with any body
PurgePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PurgePost(ctx context.Context, body PurgePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRegistrationApplication request
GetRegistrationApplication(ctx context.Context, params *GetRegistrationApplicationParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApproveRegistrationApplicationWithBody request with any body
ApproveRegistrationApplicationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApproveRegistrationApplication(ctx context.Context, body ApproveRegistrationApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUnreadRegistrationApplicationCount request
GetUnreadRegistrationApplicationCount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRegistrationApplications request
ListRegistrationApplications(ctx context.Context, params *ListRegistrationApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateTaglineWithBody request with any body
CreateTaglineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateTagline(ctx context.Context, body CreateTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditTaglineWithBody request with any body
EditTaglineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditTagline(ctx context.Context, body EditTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteTaglineWithBody request with any body
DeleteTaglineWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteTagline(ctx context.Context, body DeleteTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTaglines request
ListTaglines(ctx context.Context, params *ListTaglinesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComment request
GetComment(ctx context.Context, params *GetCommentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCommentWithBody request with any body
CreateCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateComment(ctx context.Context, body CreateCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditCommentWithBody request with any body
EditCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditComment(ctx context.Context, body EditCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCommentWithBody request with any body
DeleteCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteComment(ctx context.Context, body DeleteCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DistinguishCommentWithBody request with any body
DistinguishCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DistinguishComment(ctx context.Context, body DistinguishCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LikeCommentWithBody request with any body
LikeCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LikeComment(ctx context.Context, body LikeCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCommentLikes request
ListCommentLikes(ctx context.Context, params *ListCommentLikesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComments request
GetComments(ctx context.Context, params *GetCommentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCommentsSlim request
GetCommentsSlim(ctx context.Context, params *GetCommentsSlimParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkCommentReplyAsReadWithBody request with any body
MarkCommentReplyAsReadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkCommentReplyAsRead(ctx context.Context, body MarkCommentReplyAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveCommentWithBody request with any body
RemoveCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveComment(ctx context.Context, body RemoveCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCommentReportWithBody request with any body
CreateCommentReportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCommentReport(ctx context.Context, body CreateCommentReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResolveCommentReportWithBody request with any body
ResolveCommentReportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResolveCommentReport(ctx context.Context, body ResolveCommentReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SaveCommentWithBody request with any body
SaveCommentWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SaveComment(ctx context.Context, body SaveCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCommunity request
GetCommunity(ctx context.Context, params *GetCommunityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCommunityWithBody request with any body
CreateCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCommunity(ctx context.Context, body CreateCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditCommunityWithBody request with any body
EditCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditCommunity(ctx context.Context, body EditCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// BanFromCommunityWithBody request with any body
BanFromCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
BanFromCommunity(ctx context.Context, body BanFromCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCommunityBanner request
DeleteCommunityBanner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadCommunityBannerWithBody request with any body
UploadCommunityBannerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCommunityWithBody request with any body
DeleteCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteCommunity(ctx context.Context, body DeleteCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FollowCommunityWithBody request with any body
FollowCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FollowCommunity(ctx context.Context, body FollowCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HideCommunityWithBody request with any body
HideCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
HideCommunity(ctx context.Context, body HideCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCommunityIcon request
DeleteCommunityIcon(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadCommunityIconWithBody request with any body
UploadCommunityIconWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCommunities request
ListCommunities(ctx context.Context, params *ListCommunitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddModToCommunityWithBody request with any body
AddModToCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddModToCommunity(ctx context.Context, body AddModToCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApproveCommunityPendingFollowWithBody request with any body
ApproveCommunityPendingFollowWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApproveCommunityPendingFollow(ctx context.Context, body ApproveCommunityPendingFollowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCommunityPendingFollowsCount request
GetCommunityPendingFollowsCount(ctx context.Context, params *GetCommunityPendingFollowsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCommunityPendingFollows request
ListCommunityPendingFollows(ctx context.Context, params *ListCommunityPendingFollowsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRandomCommunity request
GetRandomCommunity(ctx context.Context, params *GetRandomCommunityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemoveCommunityWithBody request with any body
RemoveCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemoveCommunity(ctx context.Context, body RemoveCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TransferCommunityWithBody request with any body
TransferCommunityWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TransferCommunity(ctx context.Context, body TransferCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCustomEmojiWithBody request with any body
CreateCustomEmojiWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCustomEmoji(ctx context.Context, body CreateCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditCustomEmojiWithBody request with any body
EditCustomEmojiWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditCustomEmoji(ctx context.Context, body EditCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCustomEmojiWithBody request with any body
DeleteCustomEmojiWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteCustomEmoji(ctx context.Context, body DeleteCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCustomEmojis request
ListCustomEmojis(ctx context.Context, params *ListCustomEmojisParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFederatedInstances request
GetFederatedInstances(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteImage request
DeleteImage(ctx context.Context, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadImageWithBody request with any body
UploadImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// ImageHealth request
ImageHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetModlog request
GetModlog(ctx context.Context, params *GetModlogParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthenticateWithOAuthWithBody request with any body
AuthenticateWithOAuthWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthenticateWithOAuth(ctx context.Context, body AuthenticateWithOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateOAuthProviderWithBody request with any body
CreateOAuthProviderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateOAuthProvider(ctx context.Context, body CreateOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditOAuthProviderWithBody request with any body
EditOAuthProviderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditOAuthProvider(ctx context.Context, body EditOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteOAuthProviderWithBody request with any body
DeleteOAuthProviderWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteOAuthProvider(ctx context.Context, body DeleteOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPersonDetails request
GetPersonDetails(ctx context.Context, params *GetPersonDetailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPersonContent request
ListPersonContent(ctx context.Context, params *ListPersonContentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPost request
GetPost(ctx context.Context, params *GetPostParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePostWithBody request with any body
CreatePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePost(ctx context.Context, body CreatePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditPostWithBody request with any body
EditPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditPost(ctx context.Context, body EditPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeletePostWithBody request with any body
DeletePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeletePost(ctx context.Context, body DeletePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FeaturePostWithBody request with any body
FeaturePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FeaturePost(ctx context.Context, body FeaturePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// HidePostWithBody request with any body
HidePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
HidePost(ctx context.Context, body HidePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LikePostWithBody request with any body
LikePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LikePost(ctx context.Context, body LikePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPostLikes request
ListPostLikes(ctx context.Context, params *ListPostLikesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPosts request
GetPosts(ctx context.Context, params *GetPostsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// LockPostWithBody request with any body
LockPostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LockPost(ctx context.Context, body LockPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkPostAsReadWithBody request with any body
MarkPostAsReadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkPostAsRead(ctx context.Context, body MarkPostAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkManyPostAsReadWithBody request with any body
MarkManyPostAsReadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkManyPostAsRead(ctx context.Context, body MarkManyPostAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RemovePostWithBody request with any body
RemovePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RemovePost(ctx context.Context, body RemovePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePostReportWithBody request with any body
CreatePostReportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePostReport(ctx context.Context, body CreatePostReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResolvePostReportWithBody request with any body
ResolvePostReportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResolvePostReport(ctx context.Context, body ResolvePostReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SavePostWithBody request with any body
SavePostWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SavePost(ctx context.Context, body SavePostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSiteMetadata request
GetSiteMetadata(ctx context.Context, params *GetSiteMetadataParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePrivateMessageWithBody request with any body
CreatePrivateMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePrivateMessage(ctx context.Context, body CreatePrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditPrivateMessageWithBody request with any body
EditPrivateMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditPrivateMessage(ctx context.Context, body EditPrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeletePrivateMessageWithBody request with any body
DeletePrivateMessageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeletePrivateMessage(ctx context.Context, body DeletePrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MarkPrivateMessageAsReadWithBody request with any body
MarkPrivateMessageAsReadWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MarkPrivateMessageAsRead(ctx context.Context, body MarkPrivateMessageAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePrivateMessageReportWithBody request with any body
CreatePrivateMessageReportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePrivateMessageReport(ctx context.Context, body CreatePrivateMessageReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResolvePrivateMessageReportWithBody request with any body
ResolvePrivateMessageReportWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ResolvePrivateMessageReport(ctx context.Context, body ResolvePrivateMessageReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListReports request
ListReports(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResolveObject request
ResolveObject(ctx context.Context, params *ResolveObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// Search request
Search(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSite request
GetSite(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSiteWithBody request with any body
CreateSiteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSite(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditSiteWithBody request with any body
EditSiteWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditSite(ctx context.Context, body EditSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSiteBanner request
DeleteSiteBanner(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadSiteBannerWithBody request with any body
UploadSiteBannerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSiteIcon request
DeleteSiteIcon(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadSiteIconWithBody request with any body
UploadSiteIconWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddAdminWithBodyWithResponse ¶
func (c *ClientWithResponses) AddAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddAdminResp, error)
AddAdminWithBodyWithResponse request with arbitrary body returning *AddAdminResp
func (*ClientWithResponses) AddAdminWithResponse ¶
func (c *ClientWithResponses) AddAdminWithResponse(ctx context.Context, body AddAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*AddAdminResp, error)
func (*ClientWithResponses) AddModToCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) AddModToCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddModToCommunityResp, error)
AddModToCommunityWithBodyWithResponse request with arbitrary body returning *AddModToCommunityResp
func (*ClientWithResponses) AddModToCommunityWithResponse ¶
func (c *ClientWithResponses) AddModToCommunityWithResponse(ctx context.Context, body AddModToCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*AddModToCommunityResp, error)
func (*ClientWithResponses) AdminAllowInstanceWithBodyWithResponse ¶
func (c *ClientWithResponses) AdminAllowInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminAllowInstanceResp, error)
AdminAllowInstanceWithBodyWithResponse request with arbitrary body returning *AdminAllowInstanceResp
func (*ClientWithResponses) AdminAllowInstanceWithResponse ¶
func (c *ClientWithResponses) AdminAllowInstanceWithResponse(ctx context.Context, body AdminAllowInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminAllowInstanceResp, error)
func (*ClientWithResponses) AdminBlockInstanceWithBodyWithResponse ¶
func (c *ClientWithResponses) AdminBlockInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBlockInstanceResp, error)
AdminBlockInstanceWithBodyWithResponse request with arbitrary body returning *AdminBlockInstanceResp
func (*ClientWithResponses) AdminBlockInstanceWithResponse ¶
func (c *ClientWithResponses) AdminBlockInstanceWithResponse(ctx context.Context, body AdminBlockInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBlockInstanceResp, error)
func (*ClientWithResponses) ApproveCommunityPendingFollowWithBodyWithResponse ¶
func (c *ClientWithResponses) ApproveCommunityPendingFollowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveCommunityPendingFollowResp, error)
ApproveCommunityPendingFollowWithBodyWithResponse request with arbitrary body returning *ApproveCommunityPendingFollowResp
func (*ClientWithResponses) ApproveCommunityPendingFollowWithResponse ¶
func (c *ClientWithResponses) ApproveCommunityPendingFollowWithResponse(ctx context.Context, body ApproveCommunityPendingFollowJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveCommunityPendingFollowResp, error)
func (*ClientWithResponses) ApproveRegistrationApplicationWithBodyWithResponse ¶
func (c *ClientWithResponses) ApproveRegistrationApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveRegistrationApplicationResp, error)
ApproveRegistrationApplicationWithBodyWithResponse request with arbitrary body returning *ApproveRegistrationApplicationResp
func (*ClientWithResponses) ApproveRegistrationApplicationWithResponse ¶
func (c *ClientWithResponses) ApproveRegistrationApplicationWithResponse(ctx context.Context, body ApproveRegistrationApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveRegistrationApplicationResp, error)
func (*ClientWithResponses) AuthenticateWithOAuthWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthenticateWithOAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateWithOAuthResp, error)
AuthenticateWithOAuthWithBodyWithResponse request with arbitrary body returning *AuthenticateWithOAuthResp
func (*ClientWithResponses) AuthenticateWithOAuthWithResponse ¶
func (c *ClientWithResponses) AuthenticateWithOAuthWithResponse(ctx context.Context, body AuthenticateWithOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateWithOAuthResp, error)
func (*ClientWithResponses) BanFromCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) BanFromCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanFromCommunityResp, error)
BanFromCommunityWithBodyWithResponse request with arbitrary body returning *BanFromCommunityResp
func (*ClientWithResponses) BanFromCommunityWithResponse ¶
func (c *ClientWithResponses) BanFromCommunityWithResponse(ctx context.Context, body BanFromCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*BanFromCommunityResp, error)
func (*ClientWithResponses) BanPersonWithBodyWithResponse ¶
func (c *ClientWithResponses) BanPersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanPersonResp, error)
BanPersonWithBodyWithResponse request with arbitrary body returning *BanPersonResp
func (*ClientWithResponses) BanPersonWithResponse ¶
func (c *ClientWithResponses) BanPersonWithResponse(ctx context.Context, body BanPersonJSONRequestBody, reqEditors ...RequestEditorFn) (*BanPersonResp, error)
func (*ClientWithResponses) BlockCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) BlockCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlockCommunityResp, error)
BlockCommunityWithBodyWithResponse request with arbitrary body returning *BlockCommunityResp
func (*ClientWithResponses) BlockCommunityWithResponse ¶
func (c *ClientWithResponses) BlockCommunityWithResponse(ctx context.Context, body BlockCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*BlockCommunityResp, error)
func (*ClientWithResponses) BlockPersonWithBodyWithResponse ¶
func (c *ClientWithResponses) BlockPersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlockPersonResp, error)
BlockPersonWithBodyWithResponse request with arbitrary body returning *BlockPersonResp
func (*ClientWithResponses) BlockPersonWithResponse ¶
func (c *ClientWithResponses) BlockPersonWithResponse(ctx context.Context, body BlockPersonJSONRequestBody, reqEditors ...RequestEditorFn) (*BlockPersonResp, error)
func (*ClientWithResponses) ChangePasswordWithBodyWithResponse ¶
func (c *ClientWithResponses) ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResp, error)
ChangePasswordWithBodyWithResponse request with arbitrary body returning *ChangePasswordResp
func (*ClientWithResponses) ChangePasswordWithResponse ¶
func (c *ClientWithResponses) ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResp, error)
func (*ClientWithResponses) CreateCommentReportWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCommentReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCommentReportResp, error)
CreateCommentReportWithBodyWithResponse request with arbitrary body returning *CreateCommentReportResp
func (*ClientWithResponses) CreateCommentReportWithResponse ¶
func (c *ClientWithResponses) CreateCommentReportWithResponse(ctx context.Context, body CreateCommentReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCommentReportResp, error)
func (*ClientWithResponses) CreateCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCommentResp, error)
CreateCommentWithBodyWithResponse request with arbitrary body returning *CreateCommentResp
func (*ClientWithResponses) CreateCommentWithResponse ¶
func (c *ClientWithResponses) CreateCommentWithResponse(ctx context.Context, body CreateCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCommentResp, error)
func (*ClientWithResponses) CreateCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCommunityResp, error)
CreateCommunityWithBodyWithResponse request with arbitrary body returning *CreateCommunityResp
func (*ClientWithResponses) CreateCommunityWithResponse ¶
func (c *ClientWithResponses) CreateCommunityWithResponse(ctx context.Context, body CreateCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCommunityResp, error)
func (*ClientWithResponses) CreateCustomEmojiWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomEmojiResp, error)
CreateCustomEmojiWithBodyWithResponse request with arbitrary body returning *CreateCustomEmojiResp
func (*ClientWithResponses) CreateCustomEmojiWithResponse ¶
func (c *ClientWithResponses) CreateCustomEmojiWithResponse(ctx context.Context, body CreateCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomEmojiResp, error)
func (*ClientWithResponses) CreateOAuthProviderWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthProviderResp, error)
CreateOAuthProviderWithBodyWithResponse request with arbitrary body returning *CreateOAuthProviderResp
func (*ClientWithResponses) CreateOAuthProviderWithResponse ¶
func (c *ClientWithResponses) CreateOAuthProviderWithResponse(ctx context.Context, body CreateOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthProviderResp, error)
func (*ClientWithResponses) CreatePostReportWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePostReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePostReportResp, error)
CreatePostReportWithBodyWithResponse request with arbitrary body returning *CreatePostReportResp
func (*ClientWithResponses) CreatePostReportWithResponse ¶
func (c *ClientWithResponses) CreatePostReportWithResponse(ctx context.Context, body CreatePostReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePostReportResp, error)
func (*ClientWithResponses) CreatePostWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePostResp, error)
CreatePostWithBodyWithResponse request with arbitrary body returning *CreatePostResp
func (*ClientWithResponses) CreatePostWithResponse ¶
func (c *ClientWithResponses) CreatePostWithResponse(ctx context.Context, body CreatePostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePostResp, error)
func (*ClientWithResponses) CreatePrivateMessageReportWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePrivateMessageReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePrivateMessageReportResp, error)
CreatePrivateMessageReportWithBodyWithResponse request with arbitrary body returning *CreatePrivateMessageReportResp
func (*ClientWithResponses) CreatePrivateMessageReportWithResponse ¶
func (c *ClientWithResponses) CreatePrivateMessageReportWithResponse(ctx context.Context, body CreatePrivateMessageReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePrivateMessageReportResp, error)
func (*ClientWithResponses) CreatePrivateMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePrivateMessageResp, error)
CreatePrivateMessageWithBodyWithResponse request with arbitrary body returning *CreatePrivateMessageResp
func (*ClientWithResponses) CreatePrivateMessageWithResponse ¶
func (c *ClientWithResponses) CreatePrivateMessageWithResponse(ctx context.Context, body CreatePrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePrivateMessageResp, error)
func (*ClientWithResponses) CreateSiteWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSiteResp, error)
CreateSiteWithBodyWithResponse request with arbitrary body returning *CreateSiteResp
func (*ClientWithResponses) CreateSiteWithResponse ¶
func (c *ClientWithResponses) CreateSiteWithResponse(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSiteResp, error)
func (*ClientWithResponses) CreateTaglineWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTaglineResp, error)
CreateTaglineWithBodyWithResponse request with arbitrary body returning *CreateTaglineResp
func (*ClientWithResponses) CreateTaglineWithResponse ¶
func (c *ClientWithResponses) CreateTaglineWithResponse(ctx context.Context, body CreateTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTaglineResp, error)
func (*ClientWithResponses) DeleteAccountWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteAccountResp, error)
DeleteAccountWithBodyWithResponse request with arbitrary body returning *DeleteAccountResp
func (*ClientWithResponses) DeleteAccountWithResponse ¶
func (c *ClientWithResponses) DeleteAccountWithResponse(ctx context.Context, body DeleteAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteAccountResp, error)
func (*ClientWithResponses) DeleteCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteCommentResp, error)
DeleteCommentWithBodyWithResponse request with arbitrary body returning *DeleteCommentResp
func (*ClientWithResponses) DeleteCommentWithResponse ¶
func (c *ClientWithResponses) DeleteCommentWithResponse(ctx context.Context, body DeleteCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteCommentResp, error)
func (*ClientWithResponses) DeleteCommunityBannerWithResponse ¶
func (c *ClientWithResponses) DeleteCommunityBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCommunityBannerResp, error)
DeleteCommunityBannerWithResponse request returning *DeleteCommunityBannerResp
func (*ClientWithResponses) DeleteCommunityIconWithResponse ¶
func (c *ClientWithResponses) DeleteCommunityIconWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCommunityIconResp, error)
DeleteCommunityIconWithResponse request returning *DeleteCommunityIconResp
func (*ClientWithResponses) DeleteCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteCommunityResp, error)
DeleteCommunityWithBodyWithResponse request with arbitrary body returning *DeleteCommunityResp
func (*ClientWithResponses) DeleteCommunityWithResponse ¶
func (c *ClientWithResponses) DeleteCommunityWithResponse(ctx context.Context, body DeleteCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteCommunityResp, error)
func (*ClientWithResponses) DeleteCustomEmojiWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteCustomEmojiResp, error)
DeleteCustomEmojiWithBodyWithResponse request with arbitrary body returning *DeleteCustomEmojiResp
func (*ClientWithResponses) DeleteCustomEmojiWithResponse ¶
func (c *ClientWithResponses) DeleteCustomEmojiWithResponse(ctx context.Context, body DeleteCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteCustomEmojiResp, error)
func (*ClientWithResponses) DeleteImageWithResponse ¶
func (c *ClientWithResponses) DeleteImageWithResponse(ctx context.Context, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*DeleteImageResp, error)
DeleteImageWithResponse request returning *DeleteImageResp
func (*ClientWithResponses) DeleteOAuthProviderWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteOAuthProviderResp, error)
DeleteOAuthProviderWithBodyWithResponse request with arbitrary body returning *DeleteOAuthProviderResp
func (*ClientWithResponses) DeleteOAuthProviderWithResponse ¶
func (c *ClientWithResponses) DeleteOAuthProviderWithResponse(ctx context.Context, body DeleteOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteOAuthProviderResp, error)
func (*ClientWithResponses) DeletePostWithBodyWithResponse ¶
func (c *ClientWithResponses) DeletePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePostResp, error)
DeletePostWithBodyWithResponse request with arbitrary body returning *DeletePostResp
func (*ClientWithResponses) DeletePostWithResponse ¶
func (c *ClientWithResponses) DeletePostWithResponse(ctx context.Context, body DeletePostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePostResp, error)
func (*ClientWithResponses) DeletePrivateMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) DeletePrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePrivateMessageResp, error)
DeletePrivateMessageWithBodyWithResponse request with arbitrary body returning *DeletePrivateMessageResp
func (*ClientWithResponses) DeletePrivateMessageWithResponse ¶
func (c *ClientWithResponses) DeletePrivateMessageWithResponse(ctx context.Context, body DeletePrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePrivateMessageResp, error)
func (*ClientWithResponses) DeleteSiteBannerWithResponse ¶
func (c *ClientWithResponses) DeleteSiteBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSiteBannerResp, error)
DeleteSiteBannerWithResponse request returning *DeleteSiteBannerResp
func (*ClientWithResponses) DeleteSiteIconWithResponse ¶
func (c *ClientWithResponses) DeleteSiteIconWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSiteIconResp, error)
DeleteSiteIconWithResponse request returning *DeleteSiteIconResp
func (*ClientWithResponses) DeleteTaglineWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTaglineResp, error)
DeleteTaglineWithBodyWithResponse request with arbitrary body returning *DeleteTaglineResp
func (*ClientWithResponses) DeleteTaglineWithResponse ¶
func (c *ClientWithResponses) DeleteTaglineWithResponse(ctx context.Context, body DeleteTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTaglineResp, error)
func (*ClientWithResponses) DeleteUserAvatarWithResponse ¶
func (c *ClientWithResponses) DeleteUserAvatarWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUserAvatarResp, error)
DeleteUserAvatarWithResponse request returning *DeleteUserAvatarResp
func (*ClientWithResponses) DeleteUserBannerWithResponse ¶
func (c *ClientWithResponses) DeleteUserBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUserBannerResp, error)
DeleteUserBannerWithResponse request returning *DeleteUserBannerResp
func (*ClientWithResponses) DistinguishCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) DistinguishCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DistinguishCommentResp, error)
DistinguishCommentWithBodyWithResponse request with arbitrary body returning *DistinguishCommentResp
func (*ClientWithResponses) DistinguishCommentWithResponse ¶
func (c *ClientWithResponses) DistinguishCommentWithResponse(ctx context.Context, body DistinguishCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*DistinguishCommentResp, error)
func (*ClientWithResponses) EditCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) EditCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditCommentResp, error)
EditCommentWithBodyWithResponse request with arbitrary body returning *EditCommentResp
func (*ClientWithResponses) EditCommentWithResponse ¶
func (c *ClientWithResponses) EditCommentWithResponse(ctx context.Context, body EditCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*EditCommentResp, error)
func (*ClientWithResponses) EditCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) EditCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditCommunityResp, error)
EditCommunityWithBodyWithResponse request with arbitrary body returning *EditCommunityResp
func (*ClientWithResponses) EditCommunityWithResponse ¶
func (c *ClientWithResponses) EditCommunityWithResponse(ctx context.Context, body EditCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*EditCommunityResp, error)
func (*ClientWithResponses) EditCustomEmojiWithBodyWithResponse ¶
func (c *ClientWithResponses) EditCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditCustomEmojiResp, error)
EditCustomEmojiWithBodyWithResponse request with arbitrary body returning *EditCustomEmojiResp
func (*ClientWithResponses) EditCustomEmojiWithResponse ¶
func (c *ClientWithResponses) EditCustomEmojiWithResponse(ctx context.Context, body EditCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*EditCustomEmojiResp, error)
func (*ClientWithResponses) EditOAuthProviderWithBodyWithResponse ¶
func (c *ClientWithResponses) EditOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditOAuthProviderResp, error)
EditOAuthProviderWithBodyWithResponse request with arbitrary body returning *EditOAuthProviderResp
func (*ClientWithResponses) EditOAuthProviderWithResponse ¶
func (c *ClientWithResponses) EditOAuthProviderWithResponse(ctx context.Context, body EditOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*EditOAuthProviderResp, error)
func (*ClientWithResponses) EditPostWithBodyWithResponse ¶
func (c *ClientWithResponses) EditPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPostResp, error)
EditPostWithBodyWithResponse request with arbitrary body returning *EditPostResp
func (*ClientWithResponses) EditPostWithResponse ¶
func (c *ClientWithResponses) EditPostWithResponse(ctx context.Context, body EditPostJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPostResp, error)
func (*ClientWithResponses) EditPrivateMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) EditPrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPrivateMessageResp, error)
EditPrivateMessageWithBodyWithResponse request with arbitrary body returning *EditPrivateMessageResp
func (*ClientWithResponses) EditPrivateMessageWithResponse ¶
func (c *ClientWithResponses) EditPrivateMessageWithResponse(ctx context.Context, body EditPrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPrivateMessageResp, error)
func (*ClientWithResponses) EditSiteWithBodyWithResponse ¶
func (c *ClientWithResponses) EditSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSiteResp, error)
EditSiteWithBodyWithResponse request with arbitrary body returning *EditSiteResp
func (*ClientWithResponses) EditSiteWithResponse ¶
func (c *ClientWithResponses) EditSiteWithResponse(ctx context.Context, body EditSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSiteResp, error)
func (*ClientWithResponses) EditTaglineWithBodyWithResponse ¶
func (c *ClientWithResponses) EditTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditTaglineResp, error)
EditTaglineWithBodyWithResponse request with arbitrary body returning *EditTaglineResp
func (*ClientWithResponses) EditTaglineWithResponse ¶
func (c *ClientWithResponses) EditTaglineWithResponse(ctx context.Context, body EditTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*EditTaglineResp, error)
func (*ClientWithResponses) ExportSettingsWithResponse ¶
func (c *ClientWithResponses) ExportSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExportSettingsResp, error)
ExportSettingsWithResponse request returning *ExportSettingsResp
func (*ClientWithResponses) FeaturePostWithBodyWithResponse ¶
func (c *ClientWithResponses) FeaturePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FeaturePostResp, error)
FeaturePostWithBodyWithResponse request with arbitrary body returning *FeaturePostResp
func (*ClientWithResponses) FeaturePostWithResponse ¶
func (c *ClientWithResponses) FeaturePostWithResponse(ctx context.Context, body FeaturePostJSONRequestBody, reqEditors ...RequestEditorFn) (*FeaturePostResp, error)
func (*ClientWithResponses) FollowCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) FollowCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FollowCommunityResp, error)
FollowCommunityWithBodyWithResponse request with arbitrary body returning *FollowCommunityResp
func (*ClientWithResponses) FollowCommunityWithResponse ¶
func (c *ClientWithResponses) FollowCommunityWithResponse(ctx context.Context, body FollowCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*FollowCommunityResp, error)
func (*ClientWithResponses) GenerateTotpSecretWithResponse ¶
func (c *ClientWithResponses) GenerateTotpSecretWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GenerateTotpSecretResp, error)
GenerateTotpSecretWithResponse request returning *GenerateTotpSecretResp
func (*ClientWithResponses) GetBannedPersonsWithResponse ¶
func (c *ClientWithResponses) GetBannedPersonsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBannedPersonsResp, error)
GetBannedPersonsWithResponse request returning *GetBannedPersonsResp
func (*ClientWithResponses) GetCaptchaWithResponse ¶
func (c *ClientWithResponses) GetCaptchaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaptchaResp, error)
GetCaptchaWithResponse request returning *GetCaptchaResp
func (*ClientWithResponses) GetCommentWithResponse ¶
func (c *ClientWithResponses) GetCommentWithResponse(ctx context.Context, params *GetCommentParams, reqEditors ...RequestEditorFn) (*GetCommentResp, error)
GetCommentWithResponse request returning *GetCommentResp
func (*ClientWithResponses) GetCommentsSlimWithResponse ¶
func (c *ClientWithResponses) GetCommentsSlimWithResponse(ctx context.Context, params *GetCommentsSlimParams, reqEditors ...RequestEditorFn) (*GetCommentsSlimResp, error)
GetCommentsSlimWithResponse request returning *GetCommentsSlimResp
func (*ClientWithResponses) GetCommentsWithResponse ¶
func (c *ClientWithResponses) GetCommentsWithResponse(ctx context.Context, params *GetCommentsParams, reqEditors ...RequestEditorFn) (*GetCommentsResp, error)
GetCommentsWithResponse request returning *GetCommentsResp
func (*ClientWithResponses) GetCommunityPendingFollowsCountWithResponse ¶
func (c *ClientWithResponses) GetCommunityPendingFollowsCountWithResponse(ctx context.Context, params *GetCommunityPendingFollowsCountParams, reqEditors ...RequestEditorFn) (*GetCommunityPendingFollowsCountResp, error)
GetCommunityPendingFollowsCountWithResponse request returning *GetCommunityPendingFollowsCountResp
func (*ClientWithResponses) GetCommunityWithResponse ¶
func (c *ClientWithResponses) GetCommunityWithResponse(ctx context.Context, params *GetCommunityParams, reqEditors ...RequestEditorFn) (*GetCommunityResp, error)
GetCommunityWithResponse request returning *GetCommunityResp
func (*ClientWithResponses) GetFederatedInstancesWithResponse ¶
func (c *ClientWithResponses) GetFederatedInstancesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFederatedInstancesResp, error)
GetFederatedInstancesWithResponse request returning *GetFederatedInstancesResp
func (*ClientWithResponses) GetModlogWithResponse ¶
func (c *ClientWithResponses) GetModlogWithResponse(ctx context.Context, params *GetModlogParams, reqEditors ...RequestEditorFn) (*GetModlogResp, error)
GetModlogWithResponse request returning *GetModlogResp
func (*ClientWithResponses) GetMyUserWithResponse ¶
func (c *ClientWithResponses) GetMyUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyUserResp, error)
GetMyUserWithResponse request returning *GetMyUserResp
func (*ClientWithResponses) GetPersonDetailsWithResponse ¶
func (c *ClientWithResponses) GetPersonDetailsWithResponse(ctx context.Context, params *GetPersonDetailsParams, reqEditors ...RequestEditorFn) (*GetPersonDetailsResp, error)
GetPersonDetailsWithResponse request returning *GetPersonDetailsResp
func (*ClientWithResponses) GetPostWithResponse ¶
func (c *ClientWithResponses) GetPostWithResponse(ctx context.Context, params *GetPostParams, reqEditors ...RequestEditorFn) (*GetPostResp, error)
GetPostWithResponse request returning *GetPostResp
func (*ClientWithResponses) GetPostsWithResponse ¶
func (c *ClientWithResponses) GetPostsWithResponse(ctx context.Context, params *GetPostsParams, reqEditors ...RequestEditorFn) (*GetPostsResp, error)
GetPostsWithResponse request returning *GetPostsResp
func (*ClientWithResponses) GetRandomCommunityWithResponse ¶
func (c *ClientWithResponses) GetRandomCommunityWithResponse(ctx context.Context, params *GetRandomCommunityParams, reqEditors ...RequestEditorFn) (*GetRandomCommunityResp, error)
GetRandomCommunityWithResponse request returning *GetRandomCommunityResp
func (*ClientWithResponses) GetRegistrationApplicationWithResponse ¶
func (c *ClientWithResponses) GetRegistrationApplicationWithResponse(ctx context.Context, params *GetRegistrationApplicationParams, reqEditors ...RequestEditorFn) (*GetRegistrationApplicationResp, error)
GetRegistrationApplicationWithResponse request returning *GetRegistrationApplicationResp
func (*ClientWithResponses) GetReportCountWithResponse ¶
func (c *ClientWithResponses) GetReportCountWithResponse(ctx context.Context, params *GetReportCountParams, reqEditors ...RequestEditorFn) (*GetReportCountResp, error)
GetReportCountWithResponse request returning *GetReportCountResp
func (*ClientWithResponses) GetSiteMetadataWithResponse ¶
func (c *ClientWithResponses) GetSiteMetadataWithResponse(ctx context.Context, params *GetSiteMetadataParams, reqEditors ...RequestEditorFn) (*GetSiteMetadataResp, error)
GetSiteMetadataWithResponse request returning *GetSiteMetadataResp
func (*ClientWithResponses) GetSiteWithResponse ¶
func (c *ClientWithResponses) GetSiteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSiteResp, error)
GetSiteWithResponse request returning *GetSiteResp
func (*ClientWithResponses) GetUnreadCountWithResponse ¶
func (c *ClientWithResponses) GetUnreadCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadCountResp, error)
GetUnreadCountWithResponse request returning *GetUnreadCountResp
func (*ClientWithResponses) GetUnreadRegistrationApplicationCountWithResponse ¶
func (c *ClientWithResponses) GetUnreadRegistrationApplicationCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadRegistrationApplicationCountResp, error)
GetUnreadRegistrationApplicationCountWithResponse request returning *GetUnreadRegistrationApplicationCountResp
func (*ClientWithResponses) HideCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) HideCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HideCommunityResp, error)
HideCommunityWithBodyWithResponse request with arbitrary body returning *HideCommunityResp
func (*ClientWithResponses) HideCommunityWithResponse ¶
func (c *ClientWithResponses) HideCommunityWithResponse(ctx context.Context, body HideCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*HideCommunityResp, error)
func (*ClientWithResponses) HidePostWithBodyWithResponse ¶
func (c *ClientWithResponses) HidePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HidePostResp, error)
HidePostWithBodyWithResponse request with arbitrary body returning *HidePostResp
func (*ClientWithResponses) HidePostWithResponse ¶
func (c *ClientWithResponses) HidePostWithResponse(ctx context.Context, body HidePostJSONRequestBody, reqEditors ...RequestEditorFn) (*HidePostResp, error)
func (*ClientWithResponses) ImageHealthWithResponse ¶
func (c *ClientWithResponses) ImageHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ImageHealthResp, error)
ImageHealthWithResponse request returning *ImageHealthResp
func (*ClientWithResponses) ImportSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) ImportSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportSettingsResp, error)
ImportSettingsWithBodyWithResponse request with arbitrary body returning *ImportSettingsResp
func (*ClientWithResponses) ImportSettingsWithResponse ¶
func (c *ClientWithResponses) ImportSettingsWithResponse(ctx context.Context, body ImportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportSettingsResp, error)
func (*ClientWithResponses) LeaveAdminWithResponse ¶
func (c *ClientWithResponses) LeaveAdminWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LeaveAdminResp, error)
LeaveAdminWithResponse request returning *LeaveAdminResp
func (*ClientWithResponses) LikeCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) LikeCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LikeCommentResp, error)
LikeCommentWithBodyWithResponse request with arbitrary body returning *LikeCommentResp
func (*ClientWithResponses) LikeCommentWithResponse ¶
func (c *ClientWithResponses) LikeCommentWithResponse(ctx context.Context, body LikeCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*LikeCommentResp, error)
func (*ClientWithResponses) LikePostWithBodyWithResponse ¶
func (c *ClientWithResponses) LikePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LikePostResp, error)
LikePostWithBodyWithResponse request with arbitrary body returning *LikePostResp
func (*ClientWithResponses) LikePostWithResponse ¶
func (c *ClientWithResponses) LikePostWithResponse(ctx context.Context, body LikePostJSONRequestBody, reqEditors ...RequestEditorFn) (*LikePostResp, error)
func (*ClientWithResponses) ListAllMediaWithResponse ¶
func (c *ClientWithResponses) ListAllMediaWithResponse(ctx context.Context, params *ListAllMediaParams, reqEditors ...RequestEditorFn) (*ListAllMediaResp, error)
ListAllMediaWithResponse request returning *ListAllMediaResp
func (*ClientWithResponses) ListCommentLikesWithResponse ¶
func (c *ClientWithResponses) ListCommentLikesWithResponse(ctx context.Context, params *ListCommentLikesParams, reqEditors ...RequestEditorFn) (*ListCommentLikesResp, error)
ListCommentLikesWithResponse request returning *ListCommentLikesResp
func (*ClientWithResponses) ListCommunitiesWithResponse ¶
func (c *ClientWithResponses) ListCommunitiesWithResponse(ctx context.Context, params *ListCommunitiesParams, reqEditors ...RequestEditorFn) (*ListCommunitiesResp, error)
ListCommunitiesWithResponse request returning *ListCommunitiesResp
func (*ClientWithResponses) ListCommunityPendingFollowsWithResponse ¶
func (c *ClientWithResponses) ListCommunityPendingFollowsWithResponse(ctx context.Context, params *ListCommunityPendingFollowsParams, reqEditors ...RequestEditorFn) (*ListCommunityPendingFollowsResp, error)
ListCommunityPendingFollowsWithResponse request returning *ListCommunityPendingFollowsResp
func (*ClientWithResponses) ListCustomEmojisWithResponse ¶
func (c *ClientWithResponses) ListCustomEmojisWithResponse(ctx context.Context, params *ListCustomEmojisParams, reqEditors ...RequestEditorFn) (*ListCustomEmojisResp, error)
ListCustomEmojisWithResponse request returning *ListCustomEmojisResp
func (*ClientWithResponses) ListInboxWithResponse ¶
func (c *ClientWithResponses) ListInboxWithResponse(ctx context.Context, params *ListInboxParams, reqEditors ...RequestEditorFn) (*ListInboxResp, error)
ListInboxWithResponse request returning *ListInboxResp
func (*ClientWithResponses) ListLoginsWithResponse ¶
func (c *ClientWithResponses) ListLoginsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLoginsResp, error)
ListLoginsWithResponse request returning *ListLoginsResp
func (*ClientWithResponses) ListMediaWithResponse ¶
func (c *ClientWithResponses) ListMediaWithResponse(ctx context.Context, params *ListMediaParams, reqEditors ...RequestEditorFn) (*ListMediaResp, error)
ListMediaWithResponse request returning *ListMediaResp
func (*ClientWithResponses) ListPersonContentWithResponse ¶
func (c *ClientWithResponses) ListPersonContentWithResponse(ctx context.Context, params *ListPersonContentParams, reqEditors ...RequestEditorFn) (*ListPersonContentResp, error)
ListPersonContentWithResponse request returning *ListPersonContentResp
func (*ClientWithResponses) ListPersonSavedWithResponse ¶
func (c *ClientWithResponses) ListPersonSavedWithResponse(ctx context.Context, params *ListPersonSavedParams, reqEditors ...RequestEditorFn) (*ListPersonSavedResp, error)
ListPersonSavedWithResponse request returning *ListPersonSavedResp
func (*ClientWithResponses) ListPostLikesWithResponse ¶
func (c *ClientWithResponses) ListPostLikesWithResponse(ctx context.Context, params *ListPostLikesParams, reqEditors ...RequestEditorFn) (*ListPostLikesResp, error)
ListPostLikesWithResponse request returning *ListPostLikesResp
func (*ClientWithResponses) ListRegistrationApplicationsWithResponse ¶
func (c *ClientWithResponses) ListRegistrationApplicationsWithResponse(ctx context.Context, params *ListRegistrationApplicationsParams, reqEditors ...RequestEditorFn) (*ListRegistrationApplicationsResp, error)
ListRegistrationApplicationsWithResponse request returning *ListRegistrationApplicationsResp
func (*ClientWithResponses) ListReportsWithResponse ¶
func (c *ClientWithResponses) ListReportsWithResponse(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResp, error)
ListReportsWithResponse request returning *ListReportsResp
func (*ClientWithResponses) ListTaglinesWithResponse ¶
func (c *ClientWithResponses) ListTaglinesWithResponse(ctx context.Context, params *ListTaglinesParams, reqEditors ...RequestEditorFn) (*ListTaglinesResp, error)
ListTaglinesWithResponse request returning *ListTaglinesResp
func (*ClientWithResponses) LockPostWithBodyWithResponse ¶
func (c *ClientWithResponses) LockPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockPostResp, error)
LockPostWithBodyWithResponse request with arbitrary body returning *LockPostResp
func (*ClientWithResponses) LockPostWithResponse ¶
func (c *ClientWithResponses) LockPostWithResponse(ctx context.Context, body LockPostJSONRequestBody, reqEditors ...RequestEditorFn) (*LockPostResp, error)
func (*ClientWithResponses) LoginWithBodyWithResponse ¶
func (c *ClientWithResponses) LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResp, error)
LoginWithBodyWithResponse request with arbitrary body returning *LoginResp
func (*ClientWithResponses) LoginWithResponse ¶
func (c *ClientWithResponses) LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResp, error)
func (*ClientWithResponses) LogoutWithResponse ¶
func (c *ClientWithResponses) LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResp, error)
LogoutWithResponse request returning *LogoutResp
func (*ClientWithResponses) MarkAllNotificationsAsReadWithResponse ¶
func (c *ClientWithResponses) MarkAllNotificationsAsReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkAllNotificationsAsReadResp, error)
MarkAllNotificationsAsReadWithResponse request returning *MarkAllNotificationsAsReadResp
func (*ClientWithResponses) MarkCommentMentionAsReadWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkCommentMentionAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkCommentMentionAsReadResp, error)
MarkCommentMentionAsReadWithBodyWithResponse request with arbitrary body returning *MarkCommentMentionAsReadResp
func (*ClientWithResponses) MarkCommentMentionAsReadWithResponse ¶
func (c *ClientWithResponses) MarkCommentMentionAsReadWithResponse(ctx context.Context, body MarkCommentMentionAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkCommentMentionAsReadResp, error)
func (*ClientWithResponses) MarkCommentReplyAsReadWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkCommentReplyAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkCommentReplyAsReadResp, error)
MarkCommentReplyAsReadWithBodyWithResponse request with arbitrary body returning *MarkCommentReplyAsReadResp
func (*ClientWithResponses) MarkCommentReplyAsReadWithResponse ¶
func (c *ClientWithResponses) MarkCommentReplyAsReadWithResponse(ctx context.Context, body MarkCommentReplyAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkCommentReplyAsReadResp, error)
func (*ClientWithResponses) MarkManyPostAsReadWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkManyPostAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkManyPostAsReadResp, error)
MarkManyPostAsReadWithBodyWithResponse request with arbitrary body returning *MarkManyPostAsReadResp
func (*ClientWithResponses) MarkManyPostAsReadWithResponse ¶
func (c *ClientWithResponses) MarkManyPostAsReadWithResponse(ctx context.Context, body MarkManyPostAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkManyPostAsReadResp, error)
func (*ClientWithResponses) MarkPostAsReadWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkPostAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPostAsReadResp, error)
MarkPostAsReadWithBodyWithResponse request with arbitrary body returning *MarkPostAsReadResp
func (*ClientWithResponses) MarkPostAsReadWithResponse ¶
func (c *ClientWithResponses) MarkPostAsReadWithResponse(ctx context.Context, body MarkPostAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPostAsReadResp, error)
func (*ClientWithResponses) MarkPostMentionAsReadWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkPostMentionAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPostMentionAsReadResp, error)
MarkPostMentionAsReadWithBodyWithResponse request with arbitrary body returning *MarkPostMentionAsReadResp
func (*ClientWithResponses) MarkPostMentionAsReadWithResponse ¶
func (c *ClientWithResponses) MarkPostMentionAsReadWithResponse(ctx context.Context, body MarkPostMentionAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPostMentionAsReadResp, error)
func (*ClientWithResponses) MarkPrivateMessageAsReadWithBodyWithResponse ¶
func (c *ClientWithResponses) MarkPrivateMessageAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPrivateMessageAsReadResp, error)
MarkPrivateMessageAsReadWithBodyWithResponse request with arbitrary body returning *MarkPrivateMessageAsReadResp
func (*ClientWithResponses) MarkPrivateMessageAsReadWithResponse ¶
func (c *ClientWithResponses) MarkPrivateMessageAsReadWithResponse(ctx context.Context, body MarkPrivateMessageAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPrivateMessageAsReadResp, error)
func (*ClientWithResponses) PasswordChangeAfterResetWithBodyWithResponse ¶
func (c *ClientWithResponses) PasswordChangeAfterResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PasswordChangeAfterResetResp, error)
PasswordChangeAfterResetWithBodyWithResponse request with arbitrary body returning *PasswordChangeAfterResetResp
func (*ClientWithResponses) PasswordChangeAfterResetWithResponse ¶
func (c *ClientWithResponses) PasswordChangeAfterResetWithResponse(ctx context.Context, body PasswordChangeAfterResetJSONRequestBody, reqEditors ...RequestEditorFn) (*PasswordChangeAfterResetResp, error)
func (*ClientWithResponses) PasswordResetWithBodyWithResponse ¶
func (c *ClientWithResponses) PasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PasswordResetResp, error)
PasswordResetWithBodyWithResponse request with arbitrary body returning *PasswordResetResp
func (*ClientWithResponses) PasswordResetWithResponse ¶
func (c *ClientWithResponses) PasswordResetWithResponse(ctx context.Context, body PasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*PasswordResetResp, error)
func (*ClientWithResponses) PurgeCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) PurgeCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PurgeCommentResp, error)
PurgeCommentWithBodyWithResponse request with arbitrary body returning *PurgeCommentResp
func (*ClientWithResponses) PurgeCommentWithResponse ¶
func (c *ClientWithResponses) PurgeCommentWithResponse(ctx context.Context, body PurgeCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*PurgeCommentResp, error)
func (*ClientWithResponses) PurgeCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) PurgeCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PurgeCommunityResp, error)
PurgeCommunityWithBodyWithResponse request with arbitrary body returning *PurgeCommunityResp
func (*ClientWithResponses) PurgeCommunityWithResponse ¶
func (c *ClientWithResponses) PurgeCommunityWithResponse(ctx context.Context, body PurgeCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*PurgeCommunityResp, error)
func (*ClientWithResponses) PurgePersonWithBodyWithResponse ¶
func (c *ClientWithResponses) PurgePersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PurgePersonResp, error)
PurgePersonWithBodyWithResponse request with arbitrary body returning *PurgePersonResp
func (*ClientWithResponses) PurgePersonWithResponse ¶
func (c *ClientWithResponses) PurgePersonWithResponse(ctx context.Context, body PurgePersonJSONRequestBody, reqEditors ...RequestEditorFn) (*PurgePersonResp, error)
func (*ClientWithResponses) PurgePostWithBodyWithResponse ¶
func (c *ClientWithResponses) PurgePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PurgePostResp, error)
PurgePostWithBodyWithResponse request with arbitrary body returning *PurgePostResp
func (*ClientWithResponses) PurgePostWithResponse ¶
func (c *ClientWithResponses) PurgePostWithResponse(ctx context.Context, body PurgePostJSONRequestBody, reqEditors ...RequestEditorFn) (*PurgePostResp, error)
func (*ClientWithResponses) RegisterWithBodyWithResponse ¶
func (c *ClientWithResponses) RegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterResp, error)
RegisterWithBodyWithResponse request with arbitrary body returning *RegisterResp
func (*ClientWithResponses) RegisterWithResponse ¶
func (c *ClientWithResponses) RegisterWithResponse(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterResp, error)
func (*ClientWithResponses) RemoveCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveCommentResp, error)
RemoveCommentWithBodyWithResponse request with arbitrary body returning *RemoveCommentResp
func (*ClientWithResponses) RemoveCommentWithResponse ¶
func (c *ClientWithResponses) RemoveCommentWithResponse(ctx context.Context, body RemoveCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveCommentResp, error)
func (*ClientWithResponses) RemoveCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) RemoveCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveCommunityResp, error)
RemoveCommunityWithBodyWithResponse request with arbitrary body returning *RemoveCommunityResp
func (*ClientWithResponses) RemoveCommunityWithResponse ¶
func (c *ClientWithResponses) RemoveCommunityWithResponse(ctx context.Context, body RemoveCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveCommunityResp, error)
func (*ClientWithResponses) RemovePostWithBodyWithResponse ¶
func (c *ClientWithResponses) RemovePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePostResp, error)
RemovePostWithBodyWithResponse request with arbitrary body returning *RemovePostResp
func (*ClientWithResponses) RemovePostWithResponse ¶
func (c *ClientWithResponses) RemovePostWithResponse(ctx context.Context, body RemovePostJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePostResp, error)
func (*ClientWithResponses) ResendVerificationEmailWithBodyWithResponse ¶
func (c *ClientWithResponses) ResendVerificationEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResendVerificationEmailResp, error)
ResendVerificationEmailWithBodyWithResponse request with arbitrary body returning *ResendVerificationEmailResp
func (*ClientWithResponses) ResendVerificationEmailWithResponse ¶
func (c *ClientWithResponses) ResendVerificationEmailWithResponse(ctx context.Context, body ResendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*ResendVerificationEmailResp, error)
func (*ClientWithResponses) ResolveCommentReportWithBodyWithResponse ¶
func (c *ClientWithResponses) ResolveCommentReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveCommentReportResp, error)
ResolveCommentReportWithBodyWithResponse request with arbitrary body returning *ResolveCommentReportResp
func (*ClientWithResponses) ResolveCommentReportWithResponse ¶
func (c *ClientWithResponses) ResolveCommentReportWithResponse(ctx context.Context, body ResolveCommentReportJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveCommentReportResp, error)
func (*ClientWithResponses) ResolveObjectWithResponse ¶
func (c *ClientWithResponses) ResolveObjectWithResponse(ctx context.Context, params *ResolveObjectParams, reqEditors ...RequestEditorFn) (*ResolveObjectResp, error)
ResolveObjectWithResponse request returning *ResolveObjectResp
func (*ClientWithResponses) ResolvePostReportWithBodyWithResponse ¶
func (c *ClientWithResponses) ResolvePostReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolvePostReportResp, error)
ResolvePostReportWithBodyWithResponse request with arbitrary body returning *ResolvePostReportResp
func (*ClientWithResponses) ResolvePostReportWithResponse ¶
func (c *ClientWithResponses) ResolvePostReportWithResponse(ctx context.Context, body ResolvePostReportJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolvePostReportResp, error)
func (*ClientWithResponses) ResolvePrivateMessageReportWithBodyWithResponse ¶
func (c *ClientWithResponses) ResolvePrivateMessageReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolvePrivateMessageReportResp, error)
ResolvePrivateMessageReportWithBodyWithResponse request with arbitrary body returning *ResolvePrivateMessageReportResp
func (*ClientWithResponses) ResolvePrivateMessageReportWithResponse ¶
func (c *ClientWithResponses) ResolvePrivateMessageReportWithResponse(ctx context.Context, body ResolvePrivateMessageReportJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolvePrivateMessageReportResp, error)
func (*ClientWithResponses) SaveCommentWithBodyWithResponse ¶
func (c *ClientWithResponses) SaveCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveCommentResp, error)
SaveCommentWithBodyWithResponse request with arbitrary body returning *SaveCommentResp
func (*ClientWithResponses) SaveCommentWithResponse ¶
func (c *ClientWithResponses) SaveCommentWithResponse(ctx context.Context, body SaveCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveCommentResp, error)
func (*ClientWithResponses) SavePostWithBodyWithResponse ¶
func (c *ClientWithResponses) SavePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SavePostResp, error)
SavePostWithBodyWithResponse request with arbitrary body returning *SavePostResp
func (*ClientWithResponses) SavePostWithResponse ¶
func (c *ClientWithResponses) SavePostWithResponse(ctx context.Context, body SavePostJSONRequestBody, reqEditors ...RequestEditorFn) (*SavePostResp, error)
func (*ClientWithResponses) SaveUserSettingsWithBodyWithResponse ¶
func (c *ClientWithResponses) SaveUserSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveUserSettingsResp, error)
SaveUserSettingsWithBodyWithResponse request with arbitrary body returning *SaveUserSettingsResp
func (*ClientWithResponses) SaveUserSettingsWithResponse ¶
func (c *ClientWithResponses) SaveUserSettingsWithResponse(ctx context.Context, body SaveUserSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveUserSettingsResp, error)
func (*ClientWithResponses) SearchWithResponse ¶
func (c *ClientWithResponses) SearchWithResponse(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*SearchResp, error)
SearchWithResponse request returning *SearchResp
func (*ClientWithResponses) TransferCommunityWithBodyWithResponse ¶
func (c *ClientWithResponses) TransferCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferCommunityResp, error)
TransferCommunityWithBodyWithResponse request with arbitrary body returning *TransferCommunityResp
func (*ClientWithResponses) TransferCommunityWithResponse ¶
func (c *ClientWithResponses) TransferCommunityWithResponse(ctx context.Context, body TransferCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferCommunityResp, error)
func (*ClientWithResponses) UpdateTotpWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTotpResp, error)
UpdateTotpWithBodyWithResponse request with arbitrary body returning *UpdateTotpResp
func (*ClientWithResponses) UpdateTotpWithResponse ¶
func (c *ClientWithResponses) UpdateTotpWithResponse(ctx context.Context, body UpdateTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTotpResp, error)
func (*ClientWithResponses) UploadCommunityBannerWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadCommunityBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCommunityBannerResp, error)
UploadCommunityBannerWithBodyWithResponse request with arbitrary body returning *UploadCommunityBannerResp
func (*ClientWithResponses) UploadCommunityIconWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadCommunityIconWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCommunityIconResp, error)
UploadCommunityIconWithBodyWithResponse request with arbitrary body returning *UploadCommunityIconResp
func (*ClientWithResponses) UploadImageWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResp, error)
UploadImageWithBodyWithResponse request with arbitrary body returning *UploadImageResp
func (*ClientWithResponses) UploadSiteBannerWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadSiteBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadSiteBannerResp, error)
UploadSiteBannerWithBodyWithResponse request with arbitrary body returning *UploadSiteBannerResp
func (*ClientWithResponses) UploadSiteIconWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadSiteIconWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadSiteIconResp, error)
UploadSiteIconWithBodyWithResponse request with arbitrary body returning *UploadSiteIconResp
func (*ClientWithResponses) UploadUserAvatarWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadUserAvatarWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadUserAvatarResp, error)
UploadUserAvatarWithBodyWithResponse request with arbitrary body returning *UploadUserAvatarResp
func (*ClientWithResponses) UploadUserBannerWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadUserBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadUserBannerResp, error)
UploadUserBannerWithBodyWithResponse request with arbitrary body returning *UploadUserBannerResp
func (*ClientWithResponses) UserBlockInstanceWithBodyWithResponse ¶
func (c *ClientWithResponses) UserBlockInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserBlockInstanceResp, error)
UserBlockInstanceWithBodyWithResponse request with arbitrary body returning *UserBlockInstanceResp
func (*ClientWithResponses) UserBlockInstanceWithResponse ¶
func (c *ClientWithResponses) UserBlockInstanceWithResponse(ctx context.Context, body UserBlockInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UserBlockInstanceResp, error)
func (*ClientWithResponses) ValidateAuthWithResponse ¶
func (c *ClientWithResponses) ValidateAuthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ValidateAuthResp, error)
ValidateAuthWithResponse request returning *ValidateAuthResp
func (*ClientWithResponses) VerifyEmailWithBodyWithResponse ¶
func (c *ClientWithResponses) VerifyEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailResp, error)
VerifyEmailWithBodyWithResponse request with arbitrary body returning *VerifyEmailResp
func (*ClientWithResponses) VerifyEmailWithResponse ¶
func (c *ClientWithResponses) VerifyEmailWithResponse(ctx context.Context, body VerifyEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailResp, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetMyUserWithResponse request
GetMyUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMyUserResp, error)
// ChangePasswordWithBodyWithResponse request with any body
ChangePasswordWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangePasswordResp, error)
ChangePasswordWithResponse(ctx context.Context, body ChangePasswordJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangePasswordResp, error)
// GetCaptchaWithResponse request
GetCaptchaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCaptchaResp, error)
// LoginWithBodyWithResponse request with any body
LoginWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LoginResp, error)
LoginWithResponse(ctx context.Context, body LoginJSONRequestBody, reqEditors ...RequestEditorFn) (*LoginResp, error)
// LogoutWithResponse request
LogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutResp, error)
// PasswordChangeAfterResetWithBodyWithResponse request with any body
PasswordChangeAfterResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PasswordChangeAfterResetResp, error)
PasswordChangeAfterResetWithResponse(ctx context.Context, body PasswordChangeAfterResetJSONRequestBody, reqEditors ...RequestEditorFn) (*PasswordChangeAfterResetResp, error)
// PasswordResetWithBodyWithResponse request with any body
PasswordResetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PasswordResetResp, error)
PasswordResetWithResponse(ctx context.Context, body PasswordResetJSONRequestBody, reqEditors ...RequestEditorFn) (*PasswordResetResp, error)
// RegisterWithBodyWithResponse request with any body
RegisterWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RegisterResp, error)
RegisterWithResponse(ctx context.Context, body RegisterJSONRequestBody, reqEditors ...RequestEditorFn) (*RegisterResp, error)
// ResendVerificationEmailWithBodyWithResponse request with any body
ResendVerificationEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResendVerificationEmailResp, error)
ResendVerificationEmailWithResponse(ctx context.Context, body ResendVerificationEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*ResendVerificationEmailResp, error)
// ListPersonSavedWithResponse request
ListPersonSavedWithResponse(ctx context.Context, params *ListPersonSavedParams, reqEditors ...RequestEditorFn) (*ListPersonSavedResp, error)
// GenerateTotpSecretWithResponse request
GenerateTotpSecretWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GenerateTotpSecretResp, error)
// UpdateTotpWithBodyWithResponse request with any body
UpdateTotpWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTotpResp, error)
UpdateTotpWithResponse(ctx context.Context, body UpdateTotpJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTotpResp, error)
// VerifyEmailWithBodyWithResponse request with any body
VerifyEmailWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VerifyEmailResp, error)
VerifyEmailWithResponse(ctx context.Context, body VerifyEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*VerifyEmailResp, error)
// DeleteUserAvatarWithResponse request
DeleteUserAvatarWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUserAvatarResp, error)
// UploadUserAvatarWithBodyWithResponse request with any body
UploadUserAvatarWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadUserAvatarResp, error)
// DeleteUserBannerWithResponse request
DeleteUserBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteUserBannerResp, error)
// UploadUserBannerWithBodyWithResponse request with any body
UploadUserBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadUserBannerResp, error)
// BlockCommunityWithBodyWithResponse request with any body
BlockCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlockCommunityResp, error)
BlockCommunityWithResponse(ctx context.Context, body BlockCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*BlockCommunityResp, error)
// UserBlockInstanceWithBodyWithResponse request with any body
UserBlockInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UserBlockInstanceResp, error)
UserBlockInstanceWithResponse(ctx context.Context, body UserBlockInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UserBlockInstanceResp, error)
// BlockPersonWithBodyWithResponse request with any body
BlockPersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BlockPersonResp, error)
BlockPersonWithResponse(ctx context.Context, body BlockPersonJSONRequestBody, reqEditors ...RequestEditorFn) (*BlockPersonResp, error)
// DeleteAccountWithBodyWithResponse request with any body
DeleteAccountWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteAccountResp, error)
DeleteAccountWithResponse(ctx context.Context, body DeleteAccountJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteAccountResp, error)
// ListInboxWithResponse request
ListInboxWithResponse(ctx context.Context, params *ListInboxParams, reqEditors ...RequestEditorFn) (*ListInboxResp, error)
// ListLoginsWithResponse request
ListLoginsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListLoginsResp, error)
// ListMediaWithResponse request
ListMediaWithResponse(ctx context.Context, params *ListMediaParams, reqEditors ...RequestEditorFn) (*ListMediaResp, error)
// MarkAllNotificationsAsReadWithResponse request
MarkAllNotificationsAsReadWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MarkAllNotificationsAsReadResp, error)
// MarkCommentMentionAsReadWithBodyWithResponse request with any body
MarkCommentMentionAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkCommentMentionAsReadResp, error)
MarkCommentMentionAsReadWithResponse(ctx context.Context, body MarkCommentMentionAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkCommentMentionAsReadResp, error)
// MarkPostMentionAsReadWithBodyWithResponse request with any body
MarkPostMentionAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPostMentionAsReadResp, error)
MarkPostMentionAsReadWithResponse(ctx context.Context, body MarkPostMentionAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPostMentionAsReadResp, error)
// GetReportCountWithResponse request
GetReportCountWithResponse(ctx context.Context, params *GetReportCountParams, reqEditors ...RequestEditorFn) (*GetReportCountResp, error)
// ExportSettingsWithResponse request
ExportSettingsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExportSettingsResp, error)
// ImportSettingsWithBodyWithResponse request with any body
ImportSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportSettingsResp, error)
ImportSettingsWithResponse(ctx context.Context, body ImportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportSettingsResp, error)
// SaveUserSettingsWithBodyWithResponse request with any body
SaveUserSettingsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveUserSettingsResp, error)
SaveUserSettingsWithResponse(ctx context.Context, body SaveUserSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveUserSettingsResp, error)
// GetUnreadCountWithResponse request
GetUnreadCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadCountResp, error)
// ValidateAuthWithResponse request
ValidateAuthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ValidateAuthResp, error)
// AddAdminWithBodyWithResponse request with any body
AddAdminWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddAdminResp, error)
AddAdminWithResponse(ctx context.Context, body AddAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*AddAdminResp, error)
// BanPersonWithBodyWithResponse request with any body
BanPersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanPersonResp, error)
BanPersonWithResponse(ctx context.Context, body BanPersonJSONRequestBody, reqEditors ...RequestEditorFn) (*BanPersonResp, error)
// GetBannedPersonsWithResponse request
GetBannedPersonsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBannedPersonsResp, error)
// AdminAllowInstanceWithBodyWithResponse request with any body
AdminAllowInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminAllowInstanceResp, error)
AdminAllowInstanceWithResponse(ctx context.Context, body AdminAllowInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminAllowInstanceResp, error)
// AdminBlockInstanceWithBodyWithResponse request with any body
AdminBlockInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminBlockInstanceResp, error)
AdminBlockInstanceWithResponse(ctx context.Context, body AdminBlockInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminBlockInstanceResp, error)
// LeaveAdminWithResponse request
LeaveAdminWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LeaveAdminResp, error)
// ListAllMediaWithResponse request
ListAllMediaWithResponse(ctx context.Context, params *ListAllMediaParams, reqEditors ...RequestEditorFn) (*ListAllMediaResp, error)
// PurgeCommentWithBodyWithResponse request with any body
PurgeCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PurgeCommentResp, error)
PurgeCommentWithResponse(ctx context.Context, body PurgeCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*PurgeCommentResp, error)
// PurgeCommunityWithBodyWithResponse request with any body
PurgeCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PurgeCommunityResp, error)
PurgeCommunityWithResponse(ctx context.Context, body PurgeCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*PurgeCommunityResp, error)
// PurgePersonWithBodyWithResponse request with any body
PurgePersonWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PurgePersonResp, error)
PurgePersonWithResponse(ctx context.Context, body PurgePersonJSONRequestBody, reqEditors ...RequestEditorFn) (*PurgePersonResp, error)
// PurgePostWithBodyWithResponse request with any body
PurgePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PurgePostResp, error)
PurgePostWithResponse(ctx context.Context, body PurgePostJSONRequestBody, reqEditors ...RequestEditorFn) (*PurgePostResp, error)
// GetRegistrationApplicationWithResponse request
GetRegistrationApplicationWithResponse(ctx context.Context, params *GetRegistrationApplicationParams, reqEditors ...RequestEditorFn) (*GetRegistrationApplicationResp, error)
// ApproveRegistrationApplicationWithBodyWithResponse request with any body
ApproveRegistrationApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveRegistrationApplicationResp, error)
ApproveRegistrationApplicationWithResponse(ctx context.Context, body ApproveRegistrationApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveRegistrationApplicationResp, error)
// GetUnreadRegistrationApplicationCountWithResponse request
GetUnreadRegistrationApplicationCountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetUnreadRegistrationApplicationCountResp, error)
// ListRegistrationApplicationsWithResponse request
ListRegistrationApplicationsWithResponse(ctx context.Context, params *ListRegistrationApplicationsParams, reqEditors ...RequestEditorFn) (*ListRegistrationApplicationsResp, error)
// CreateTaglineWithBodyWithResponse request with any body
CreateTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTaglineResp, error)
CreateTaglineWithResponse(ctx context.Context, body CreateTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTaglineResp, error)
// EditTaglineWithBodyWithResponse request with any body
EditTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditTaglineResp, error)
EditTaglineWithResponse(ctx context.Context, body EditTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*EditTaglineResp, error)
// DeleteTaglineWithBodyWithResponse request with any body
DeleteTaglineWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTaglineResp, error)
DeleteTaglineWithResponse(ctx context.Context, body DeleteTaglineJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTaglineResp, error)
// ListTaglinesWithResponse request
ListTaglinesWithResponse(ctx context.Context, params *ListTaglinesParams, reqEditors ...RequestEditorFn) (*ListTaglinesResp, error)
// GetCommentWithResponse request
GetCommentWithResponse(ctx context.Context, params *GetCommentParams, reqEditors ...RequestEditorFn) (*GetCommentResp, error)
// CreateCommentWithBodyWithResponse request with any body
CreateCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCommentResp, error)
CreateCommentWithResponse(ctx context.Context, body CreateCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCommentResp, error)
// EditCommentWithBodyWithResponse request with any body
EditCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditCommentResp, error)
EditCommentWithResponse(ctx context.Context, body EditCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*EditCommentResp, error)
// DeleteCommentWithBodyWithResponse request with any body
DeleteCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteCommentResp, error)
DeleteCommentWithResponse(ctx context.Context, body DeleteCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteCommentResp, error)
// DistinguishCommentWithBodyWithResponse request with any body
DistinguishCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DistinguishCommentResp, error)
DistinguishCommentWithResponse(ctx context.Context, body DistinguishCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*DistinguishCommentResp, error)
// LikeCommentWithBodyWithResponse request with any body
LikeCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LikeCommentResp, error)
LikeCommentWithResponse(ctx context.Context, body LikeCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*LikeCommentResp, error)
// ListCommentLikesWithResponse request
ListCommentLikesWithResponse(ctx context.Context, params *ListCommentLikesParams, reqEditors ...RequestEditorFn) (*ListCommentLikesResp, error)
// GetCommentsWithResponse request
GetCommentsWithResponse(ctx context.Context, params *GetCommentsParams, reqEditors ...RequestEditorFn) (*GetCommentsResp, error)
// GetCommentsSlimWithResponse request
GetCommentsSlimWithResponse(ctx context.Context, params *GetCommentsSlimParams, reqEditors ...RequestEditorFn) (*GetCommentsSlimResp, error)
// MarkCommentReplyAsReadWithBodyWithResponse request with any body
MarkCommentReplyAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkCommentReplyAsReadResp, error)
MarkCommentReplyAsReadWithResponse(ctx context.Context, body MarkCommentReplyAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkCommentReplyAsReadResp, error)
// RemoveCommentWithBodyWithResponse request with any body
RemoveCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveCommentResp, error)
RemoveCommentWithResponse(ctx context.Context, body RemoveCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveCommentResp, error)
// CreateCommentReportWithBodyWithResponse request with any body
CreateCommentReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCommentReportResp, error)
CreateCommentReportWithResponse(ctx context.Context, body CreateCommentReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCommentReportResp, error)
// ResolveCommentReportWithBodyWithResponse request with any body
ResolveCommentReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolveCommentReportResp, error)
ResolveCommentReportWithResponse(ctx context.Context, body ResolveCommentReportJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolveCommentReportResp, error)
// SaveCommentWithBodyWithResponse request with any body
SaveCommentWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SaveCommentResp, error)
SaveCommentWithResponse(ctx context.Context, body SaveCommentJSONRequestBody, reqEditors ...RequestEditorFn) (*SaveCommentResp, error)
// GetCommunityWithResponse request
GetCommunityWithResponse(ctx context.Context, params *GetCommunityParams, reqEditors ...RequestEditorFn) (*GetCommunityResp, error)
// CreateCommunityWithBodyWithResponse request with any body
CreateCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCommunityResp, error)
CreateCommunityWithResponse(ctx context.Context, body CreateCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCommunityResp, error)
// EditCommunityWithBodyWithResponse request with any body
EditCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditCommunityResp, error)
EditCommunityWithResponse(ctx context.Context, body EditCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*EditCommunityResp, error)
// BanFromCommunityWithBodyWithResponse request with any body
BanFromCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BanFromCommunityResp, error)
BanFromCommunityWithResponse(ctx context.Context, body BanFromCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*BanFromCommunityResp, error)
// DeleteCommunityBannerWithResponse request
DeleteCommunityBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCommunityBannerResp, error)
// UploadCommunityBannerWithBodyWithResponse request with any body
UploadCommunityBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCommunityBannerResp, error)
// DeleteCommunityWithBodyWithResponse request with any body
DeleteCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteCommunityResp, error)
DeleteCommunityWithResponse(ctx context.Context, body DeleteCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteCommunityResp, error)
// FollowCommunityWithBodyWithResponse request with any body
FollowCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FollowCommunityResp, error)
FollowCommunityWithResponse(ctx context.Context, body FollowCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*FollowCommunityResp, error)
// HideCommunityWithBodyWithResponse request with any body
HideCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HideCommunityResp, error)
HideCommunityWithResponse(ctx context.Context, body HideCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*HideCommunityResp, error)
// DeleteCommunityIconWithResponse request
DeleteCommunityIconWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCommunityIconResp, error)
// UploadCommunityIconWithBodyWithResponse request with any body
UploadCommunityIconWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCommunityIconResp, error)
// ListCommunitiesWithResponse request
ListCommunitiesWithResponse(ctx context.Context, params *ListCommunitiesParams, reqEditors ...RequestEditorFn) (*ListCommunitiesResp, error)
// AddModToCommunityWithBodyWithResponse request with any body
AddModToCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddModToCommunityResp, error)
AddModToCommunityWithResponse(ctx context.Context, body AddModToCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*AddModToCommunityResp, error)
// ApproveCommunityPendingFollowWithBodyWithResponse request with any body
ApproveCommunityPendingFollowWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveCommunityPendingFollowResp, error)
ApproveCommunityPendingFollowWithResponse(ctx context.Context, body ApproveCommunityPendingFollowJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveCommunityPendingFollowResp, error)
// GetCommunityPendingFollowsCountWithResponse request
GetCommunityPendingFollowsCountWithResponse(ctx context.Context, params *GetCommunityPendingFollowsCountParams, reqEditors ...RequestEditorFn) (*GetCommunityPendingFollowsCountResp, error)
// ListCommunityPendingFollowsWithResponse request
ListCommunityPendingFollowsWithResponse(ctx context.Context, params *ListCommunityPendingFollowsParams, reqEditors ...RequestEditorFn) (*ListCommunityPendingFollowsResp, error)
// GetRandomCommunityWithResponse request
GetRandomCommunityWithResponse(ctx context.Context, params *GetRandomCommunityParams, reqEditors ...RequestEditorFn) (*GetRandomCommunityResp, error)
// RemoveCommunityWithBodyWithResponse request with any body
RemoveCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveCommunityResp, error)
RemoveCommunityWithResponse(ctx context.Context, body RemoveCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveCommunityResp, error)
// TransferCommunityWithBodyWithResponse request with any body
TransferCommunityWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferCommunityResp, error)
TransferCommunityWithResponse(ctx context.Context, body TransferCommunityJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferCommunityResp, error)
// CreateCustomEmojiWithBodyWithResponse request with any body
CreateCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomEmojiResp, error)
CreateCustomEmojiWithResponse(ctx context.Context, body CreateCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomEmojiResp, error)
// EditCustomEmojiWithBodyWithResponse request with any body
EditCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditCustomEmojiResp, error)
EditCustomEmojiWithResponse(ctx context.Context, body EditCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*EditCustomEmojiResp, error)
// DeleteCustomEmojiWithBodyWithResponse request with any body
DeleteCustomEmojiWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteCustomEmojiResp, error)
DeleteCustomEmojiWithResponse(ctx context.Context, body DeleteCustomEmojiJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteCustomEmojiResp, error)
// ListCustomEmojisWithResponse request
ListCustomEmojisWithResponse(ctx context.Context, params *ListCustomEmojisParams, reqEditors ...RequestEditorFn) (*ListCustomEmojisResp, error)
// GetFederatedInstancesWithResponse request
GetFederatedInstancesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetFederatedInstancesResp, error)
// DeleteImageWithResponse request
DeleteImageWithResponse(ctx context.Context, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*DeleteImageResp, error)
// UploadImageWithBodyWithResponse request with any body
UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResp, error)
// ImageHealthWithResponse request
ImageHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ImageHealthResp, error)
// GetModlogWithResponse request
GetModlogWithResponse(ctx context.Context, params *GetModlogParams, reqEditors ...RequestEditorFn) (*GetModlogResp, error)
// AuthenticateWithOAuthWithBodyWithResponse request with any body
AuthenticateWithOAuthWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateWithOAuthResp, error)
AuthenticateWithOAuthWithResponse(ctx context.Context, body AuthenticateWithOAuthJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateWithOAuthResp, error)
// CreateOAuthProviderWithBodyWithResponse request with any body
CreateOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOAuthProviderResp, error)
CreateOAuthProviderWithResponse(ctx context.Context, body CreateOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOAuthProviderResp, error)
// EditOAuthProviderWithBodyWithResponse request with any body
EditOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditOAuthProviderResp, error)
EditOAuthProviderWithResponse(ctx context.Context, body EditOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*EditOAuthProviderResp, error)
// DeleteOAuthProviderWithBodyWithResponse request with any body
DeleteOAuthProviderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteOAuthProviderResp, error)
DeleteOAuthProviderWithResponse(ctx context.Context, body DeleteOAuthProviderJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteOAuthProviderResp, error)
// GetPersonDetailsWithResponse request
GetPersonDetailsWithResponse(ctx context.Context, params *GetPersonDetailsParams, reqEditors ...RequestEditorFn) (*GetPersonDetailsResp, error)
// ListPersonContentWithResponse request
ListPersonContentWithResponse(ctx context.Context, params *ListPersonContentParams, reqEditors ...RequestEditorFn) (*ListPersonContentResp, error)
// GetPostWithResponse request
GetPostWithResponse(ctx context.Context, params *GetPostParams, reqEditors ...RequestEditorFn) (*GetPostResp, error)
// CreatePostWithBodyWithResponse request with any body
CreatePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePostResp, error)
CreatePostWithResponse(ctx context.Context, body CreatePostJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePostResp, error)
// EditPostWithBodyWithResponse request with any body
EditPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPostResp, error)
EditPostWithResponse(ctx context.Context, body EditPostJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPostResp, error)
// DeletePostWithBodyWithResponse request with any body
DeletePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePostResp, error)
DeletePostWithResponse(ctx context.Context, body DeletePostJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePostResp, error)
// FeaturePostWithBodyWithResponse request with any body
FeaturePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FeaturePostResp, error)
FeaturePostWithResponse(ctx context.Context, body FeaturePostJSONRequestBody, reqEditors ...RequestEditorFn) (*FeaturePostResp, error)
// HidePostWithBodyWithResponse request with any body
HidePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HidePostResp, error)
HidePostWithResponse(ctx context.Context, body HidePostJSONRequestBody, reqEditors ...RequestEditorFn) (*HidePostResp, error)
// LikePostWithBodyWithResponse request with any body
LikePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LikePostResp, error)
LikePostWithResponse(ctx context.Context, body LikePostJSONRequestBody, reqEditors ...RequestEditorFn) (*LikePostResp, error)
// ListPostLikesWithResponse request
ListPostLikesWithResponse(ctx context.Context, params *ListPostLikesParams, reqEditors ...RequestEditorFn) (*ListPostLikesResp, error)
// GetPostsWithResponse request
GetPostsWithResponse(ctx context.Context, params *GetPostsParams, reqEditors ...RequestEditorFn) (*GetPostsResp, error)
// LockPostWithBodyWithResponse request with any body
LockPostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockPostResp, error)
LockPostWithResponse(ctx context.Context, body LockPostJSONRequestBody, reqEditors ...RequestEditorFn) (*LockPostResp, error)
// MarkPostAsReadWithBodyWithResponse request with any body
MarkPostAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPostAsReadResp, error)
MarkPostAsReadWithResponse(ctx context.Context, body MarkPostAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPostAsReadResp, error)
// MarkManyPostAsReadWithBodyWithResponse request with any body
MarkManyPostAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkManyPostAsReadResp, error)
MarkManyPostAsReadWithResponse(ctx context.Context, body MarkManyPostAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkManyPostAsReadResp, error)
// RemovePostWithBodyWithResponse request with any body
RemovePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePostResp, error)
RemovePostWithResponse(ctx context.Context, body RemovePostJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePostResp, error)
// CreatePostReportWithBodyWithResponse request with any body
CreatePostReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePostReportResp, error)
CreatePostReportWithResponse(ctx context.Context, body CreatePostReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePostReportResp, error)
// ResolvePostReportWithBodyWithResponse request with any body
ResolvePostReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolvePostReportResp, error)
ResolvePostReportWithResponse(ctx context.Context, body ResolvePostReportJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolvePostReportResp, error)
// SavePostWithBodyWithResponse request with any body
SavePostWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SavePostResp, error)
SavePostWithResponse(ctx context.Context, body SavePostJSONRequestBody, reqEditors ...RequestEditorFn) (*SavePostResp, error)
// GetSiteMetadataWithResponse request
GetSiteMetadataWithResponse(ctx context.Context, params *GetSiteMetadataParams, reqEditors ...RequestEditorFn) (*GetSiteMetadataResp, error)
// CreatePrivateMessageWithBodyWithResponse request with any body
CreatePrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePrivateMessageResp, error)
CreatePrivateMessageWithResponse(ctx context.Context, body CreatePrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePrivateMessageResp, error)
// EditPrivateMessageWithBodyWithResponse request with any body
EditPrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPrivateMessageResp, error)
EditPrivateMessageWithResponse(ctx context.Context, body EditPrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPrivateMessageResp, error)
// DeletePrivateMessageWithBodyWithResponse request with any body
DeletePrivateMessageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeletePrivateMessageResp, error)
DeletePrivateMessageWithResponse(ctx context.Context, body DeletePrivateMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*DeletePrivateMessageResp, error)
// MarkPrivateMessageAsReadWithBodyWithResponse request with any body
MarkPrivateMessageAsReadWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkPrivateMessageAsReadResp, error)
MarkPrivateMessageAsReadWithResponse(ctx context.Context, body MarkPrivateMessageAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkPrivateMessageAsReadResp, error)
// CreatePrivateMessageReportWithBodyWithResponse request with any body
CreatePrivateMessageReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePrivateMessageReportResp, error)
CreatePrivateMessageReportWithResponse(ctx context.Context, body CreatePrivateMessageReportJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePrivateMessageReportResp, error)
// ResolvePrivateMessageReportWithBodyWithResponse request with any body
ResolvePrivateMessageReportWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResolvePrivateMessageReportResp, error)
ResolvePrivateMessageReportWithResponse(ctx context.Context, body ResolvePrivateMessageReportJSONRequestBody, reqEditors ...RequestEditorFn) (*ResolvePrivateMessageReportResp, error)
// ListReportsWithResponse request
ListReportsWithResponse(ctx context.Context, params *ListReportsParams, reqEditors ...RequestEditorFn) (*ListReportsResp, error)
// ResolveObjectWithResponse request
ResolveObjectWithResponse(ctx context.Context, params *ResolveObjectParams, reqEditors ...RequestEditorFn) (*ResolveObjectResp, error)
// SearchWithResponse request
SearchWithResponse(ctx context.Context, params *SearchParams, reqEditors ...RequestEditorFn) (*SearchResp, error)
// GetSiteWithResponse request
GetSiteWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSiteResp, error)
// CreateSiteWithBodyWithResponse request with any body
CreateSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSiteResp, error)
CreateSiteWithResponse(ctx context.Context, body CreateSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSiteResp, error)
// EditSiteWithBodyWithResponse request with any body
EditSiteWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSiteResp, error)
EditSiteWithResponse(ctx context.Context, body EditSiteJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSiteResp, error)
// DeleteSiteBannerWithResponse request
DeleteSiteBannerWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSiteBannerResp, error)
// UploadSiteBannerWithBodyWithResponse request with any body
UploadSiteBannerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadSiteBannerResp, error)
// DeleteSiteIconWithResponse request
DeleteSiteIconWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteSiteIconResp, error)
// UploadSiteIconWithBodyWithResponse request with any body
UploadSiteIconWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadSiteIconResp, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Comment ¶
type Comment struct {
ApId DbUrl `json:"ap_id"`
// ChildCount The total number of children in this comment branch.
ChildCount float64 `json:"child_count"`
Content string `json:"content"`
// CreatorId The person id.
CreatorId PersonId `json:"creator_id"`
// Deleted Whether the comment has been deleted by its creator.
Deleted bool `json:"deleted"`
// Distinguished Whether the comment has been distinguished(speaking officially) by a mod.
Distinguished bool `json:"distinguished"`
Downvotes float64 `json:"downvotes"`
// Id The comment id.
Id CommentId `json:"id"`
// LanguageId The language id.
LanguageId LanguageId `json:"language_id"`
// Local Whether the comment is local.
Local bool `json:"local"`
// Path The path / tree location of a comment, separated by dots, ending with the comment's id. Ex:
// 0.24.27
Path string `json:"path"`
// PostId The post id.
PostId PostId `json:"post_id"`
Published string `json:"published"`
// Removed Whether the comment has been removed.
Removed bool `json:"removed"`
ReportCount float64 `json:"report_count"`
Score float64 `json:"score"`
UnresolvedReportCount float64 `json:"unresolved_report_count"`
Updated *string `json:"updated,omitempty"`
Upvotes float64 `json:"upvotes"`
}
Comment A comment.
type CommentReply ¶
type CommentReply struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
// Id The comment reply id.
Id CommentReplyId `json:"id"`
Published string `json:"published"`
Read bool `json:"read"`
// RecipientId The person id.
RecipientId PersonId `json:"recipient_id"`
}
CommentReply A comment reply.
type CommentReplyView ¶
type CommentReplyView struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Comment A comment.
Comment Comment `json:"comment"`
// CommentReply A comment reply.
CommentReply CommentReply `json:"comment_reply"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// Recipient A person.
Recipient Person `json:"recipient"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
}
CommentReplyView A comment reply view.
type CommentReport ¶
type CommentReport struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
// CreatorId The person id.
CreatorId PersonId `json:"creator_id"`
// Id The comment report id.
Id CommentReportId `json:"id"`
OriginalCommentText string `json:"original_comment_text"`
Published string `json:"published"`
Reason string `json:"reason"`
Resolved bool `json:"resolved"`
// ResolverId The person id.
ResolverId *PersonId `json:"resolver_id,omitempty"`
Updated *string `json:"updated,omitempty"`
ViolatesInstanceRules bool `json:"violates_instance_rules"`
}
CommentReport A comment report.
type CommentReportResponse ¶
type CommentReportResponse struct {
// CommentReportView A comment report view.
CommentReportView CommentReportView `json:"comment_report_view"`
}
CommentReportResponse The comment report response.
type CommentReportView ¶
type CommentReportView struct {
// Comment A comment.
Comment Comment `json:"comment"`
// CommentCreator A person.
CommentCreator Person `json:"comment_creator"`
// CommentReport A comment report.
CommentReport CommentReport `json:"comment_report"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// Resolver A person.
Resolver *Person `json:"resolver,omitempty"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
}
CommentReportView A comment report view.
type CommentResponse ¶
type CommentResponse struct {
// CommentView A comment view.
CommentView CommentView `json:"comment_view"`
RecipientIds []LocalUserId `json:"recipient_ids"`
}
CommentResponse A comment response.
type CommentSlimView ¶
type CommentSlimView struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Comment A comment.
Comment Comment `json:"comment"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
}
CommentSlimView A slimmer comment view, without the post, or community.
type CommentSortType ¶
type CommentSortType string
CommentSortType The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
const ( CommentSortTypeControversial CommentSortType = "Controversial" CommentSortTypeHot CommentSortType = "Hot" CommentSortTypeNew CommentSortType = "New" CommentSortTypeOld CommentSortType = "Old" CommentSortTypeTop CommentSortType = "Top" )
Defines values for CommentSortType.
type CommentView ¶
type CommentView struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Comment A comment.
Comment Comment `json:"comment"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
}
CommentView A comment view.
type Community ¶
type Community struct {
ApId DbUrl `json:"ap_id"`
Banner *DbUrl `json:"banner,omitempty"`
Comments float64 `json:"comments"`
// Deleted Whether the community has been deleted by its creator.
Deleted bool `json:"deleted"`
// Description A shorter, one-line description of the site.
Description *string `json:"description,omitempty"`
// Hidden Whether the community is hidden.
Hidden bool `json:"hidden"`
Icon *DbUrl `json:"icon,omitempty"`
// Id The community id.
Id CommunityId `json:"id"`
// InstanceId The instance id.
InstanceId InstanceId `json:"instance_id"`
// Local Whether the community is local.
Local bool `json:"local"`
Name string `json:"name"`
// Nsfw Whether its an NSFW community.
Nsfw bool `json:"nsfw"`
// PostingRestrictedToMods Whether posting is restricted to mods only.
PostingRestrictedToMods bool `json:"posting_restricted_to_mods"`
Posts float64 `json:"posts"`
Published string `json:"published"`
// Removed Whether the community is removed by a mod.
Removed bool `json:"removed"`
ReportCount float64 `json:"report_count"`
// Sidebar A sidebar for the community in markdown.
Sidebar *string `json:"sidebar,omitempty"`
Subscribers float64 `json:"subscribers"`
SubscribersLocal float64 `json:"subscribers_local"`
// Title A longer title, that can contain other characters, and doesn't have to be unique.
Title string `json:"title"`
UnresolvedReportCount float64 `json:"unresolved_report_count"`
Updated *string `json:"updated,omitempty"`
// UsersActiveDay The number of users with any activity in the last day.
UsersActiveDay float64 `json:"users_active_day"`
// UsersActiveHalfYear The number of users with any activity in the last year.
UsersActiveHalfYear float64 `json:"users_active_half_year"`
// UsersActiveMonth The number of users with any activity in the last month.
UsersActiveMonth float64 `json:"users_active_month"`
// UsersActiveWeek The number of users with any activity in the last week.
UsersActiveWeek float64 `json:"users_active_week"`
// Visibility Defines who can browse and interact with content in a community.
Visibility CommunityVisibility `json:"visibility"`
}
Community A community.
type CommunityFollowerView ¶
type CommunityFollowerView struct {
// Community A community.
Community Community `json:"community"`
// Follower A person.
Follower Person `json:"follower"`
}
CommunityFollowerView A community follower.
type CommunityModeratorView ¶
type CommunityModeratorView struct {
// Community A community.
Community Community `json:"community"`
// Moderator A person.
Moderator Person `json:"moderator"`
}
CommunityModeratorView A community moderator.
type CommunityReport ¶
type CommunityReport struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
// CreatorId The person id.
CreatorId PersonId `json:"creator_id"`
// Id The community report id.
Id CommunityReportId `json:"id"`
OriginalCommunityBanner *string `json:"original_community_banner,omitempty"`
OriginalCommunityDescription *string `json:"original_community_description,omitempty"`
OriginalCommunityIcon *string `json:"original_community_icon,omitempty"`
OriginalCommunityName string `json:"original_community_name"`
OriginalCommunitySidebar *string `json:"original_community_sidebar,omitempty"`
OriginalCommunityTitle string `json:"original_community_title"`
Published string `json:"published"`
Reason string `json:"reason"`
Resolved bool `json:"resolved"`
// ResolverId The person id.
ResolverId *PersonId `json:"resolver_id,omitempty"`
Updated *string `json:"updated,omitempty"`
}
CommunityReport A comment report.
type CommunityReportId ¶
type CommunityReportId = float64
CommunityReportId The community report id.
type CommunityReportView ¶
type CommunityReportView struct {
// Community A community.
Community Community `json:"community"`
// CommunityReport A comment report.
CommunityReport CommunityReport `json:"community_report"`
// Creator A person.
Creator Person `json:"creator"`
// Resolver A person.
Resolver *Person `json:"resolver,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
}
CommunityReportView A community report view.
type CommunityResponse ¶
type CommunityResponse struct {
// CommunityView A community view.
CommunityView CommunityView `json:"community_view"`
DiscussionLanguages []LanguageId `json:"discussion_languages"`
}
CommunityResponse A simple community response.
type CommunitySortType ¶
type CommunitySortType string
CommunitySortType The community sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
const ( CommunitySortTypeActiveDaily CommunitySortType = "ActiveDaily" CommunitySortTypeActiveMonthly CommunitySortType = "ActiveMonthly" CommunitySortTypeActiveSixMonths CommunitySortType = "ActiveSixMonths" CommunitySortTypeActiveWeekly CommunitySortType = "ActiveWeekly" CommunitySortTypeComments CommunitySortType = "Comments" CommunitySortTypeHot CommunitySortType = "Hot" CommunitySortTypeNameAsc CommunitySortType = "NameAsc" CommunitySortTypeNameDesc CommunitySortType = "NameDesc" CommunitySortTypeNew CommunitySortType = "New" CommunitySortTypeOld CommunitySortType = "Old" CommunitySortTypePosts CommunitySortType = "Posts" CommunitySortTypeSubscribers CommunitySortType = "Subscribers" CommunitySortTypeSubscribersLocal CommunitySortType = "SubscribersLocal" )
Defines values for CommunitySortType.
type CommunityView ¶
type CommunityView struct {
BannedFromCommunity bool `json:"banned_from_community"`
Blocked bool `json:"blocked"`
CanMod bool `json:"can_mod"`
// Community A community.
Community Community `json:"community"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
}
CommunityView A community view.
type CommunityVisibility ¶
type CommunityVisibility string
CommunityVisibility Defines who can browse and interact with content in a community.
const ( LocalOnly CommunityVisibility = "LocalOnly" Private CommunityVisibility = "Private" Public CommunityVisibility = "Public" )
Defines values for CommunityVisibility.
type CreateComment ¶
type CreateComment struct {
Content string `json:"content"`
// LanguageId The language id.
LanguageId *LanguageId `json:"language_id,omitempty"`
// ParentId The comment id.
ParentId *CommentId `json:"parent_id,omitempty"`
// PostId The post id.
PostId PostId `json:"post_id"`
}
CreateComment Create a comment.
type CreateCommentJSONRequestBody ¶
type CreateCommentJSONRequestBody = CreateComment
CreateCommentJSONRequestBody defines body for CreateComment for application/json ContentType.
type CreateCommentLike ¶
type CreateCommentLike struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
// Score Must be -1, 0, or 1 .
Score float64 `json:"score"`
}
CreateCommentLike Like a comment.
type CreateCommentReport ¶
type CreateCommentReport struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
Reason string `json:"reason"`
ViolatesInstanceRules *bool `json:"violates_instance_rules,omitempty"`
}
CreateCommentReport Report a comment.
type CreateCommentReportJSONRequestBody ¶
type CreateCommentReportJSONRequestBody = CreateCommentReport
CreateCommentReportJSONRequestBody defines body for CreateCommentReport for application/json ContentType.
type CreateCommentReportResp ¶
type CreateCommentReportResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentReportResponse
}
func ParseCreateCommentReportResp ¶
func ParseCreateCommentReportResp(rsp *http.Response) (*CreateCommentReportResp, error)
ParseCreateCommentReportResp parses an HTTP response from a CreateCommentReportWithResponse call
func (CreateCommentReportResp) Status ¶
func (r CreateCommentReportResp) Status() string
Status returns HTTPResponse.Status
func (CreateCommentReportResp) StatusCode ¶
func (r CreateCommentReportResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCommentResp ¶
type CreateCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentResponse
}
func ParseCreateCommentResp ¶
func ParseCreateCommentResp(rsp *http.Response) (*CreateCommentResp, error)
ParseCreateCommentResp parses an HTTP response from a CreateCommentWithResponse call
func (CreateCommentResp) Status ¶
func (r CreateCommentResp) Status() string
Status returns HTTPResponse.Status
func (CreateCommentResp) StatusCode ¶
func (r CreateCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCommunity ¶
type CreateCommunity struct {
// Banner A banner URL.
Banner *string `json:"banner,omitempty"`
// Description A shorter, one line description of your community.
Description *string `json:"description,omitempty"`
DiscussionLanguages *[]LanguageId `json:"discussion_languages,omitempty"`
// Icon An icon URL.
Icon *string `json:"icon,omitempty"`
// Name The unique name.
Name string `json:"name"`
// Nsfw Whether its an NSFW community.
Nsfw *bool `json:"nsfw,omitempty"`
// PostingRestrictedToMods Whether to restrict posting only to moderators.
PostingRestrictedToMods *bool `json:"posting_restricted_to_mods,omitempty"`
// Sidebar A sidebar for the community in markdown.
Sidebar *string `json:"sidebar,omitempty"`
// Title A longer title.
Title string `json:"title"`
// Visibility Defines who can browse and interact with content in a community.
Visibility *CommunityVisibility `json:"visibility,omitempty"`
}
CreateCommunity Create a community.
type CreateCommunityJSONRequestBody ¶
type CreateCommunityJSONRequestBody = CreateCommunity
CreateCommunityJSONRequestBody defines body for CreateCommunity for application/json ContentType.
type CreateCommunityResp ¶
type CreateCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommunityResponse
}
func ParseCreateCommunityResp ¶
func ParseCreateCommunityResp(rsp *http.Response) (*CreateCommunityResp, error)
ParseCreateCommunityResp parses an HTTP response from a CreateCommunityWithResponse call
func (CreateCommunityResp) Status ¶
func (r CreateCommunityResp) Status() string
Status returns HTTPResponse.Status
func (CreateCommunityResp) StatusCode ¶
func (r CreateCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCustomEmoji ¶
type CreateCustomEmoji struct {
AltText string `json:"alt_text"`
Category string `json:"category"`
ImageUrl string `json:"image_url"`
Keywords []string `json:"keywords"`
Shortcode string `json:"shortcode"`
}
CreateCustomEmoji Create a custom emoji.
type CreateCustomEmojiJSONRequestBody ¶
type CreateCustomEmojiJSONRequestBody = CreateCustomEmoji
CreateCustomEmojiJSONRequestBody defines body for CreateCustomEmoji for application/json ContentType.
type CreateCustomEmojiResp ¶
type CreateCustomEmojiResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CustomEmojiResponse
}
func ParseCreateCustomEmojiResp ¶
func ParseCreateCustomEmojiResp(rsp *http.Response) (*CreateCustomEmojiResp, error)
ParseCreateCustomEmojiResp parses an HTTP response from a CreateCustomEmojiWithResponse call
func (CreateCustomEmojiResp) Status ¶
func (r CreateCustomEmojiResp) Status() string
Status returns HTTPResponse.Status
func (CreateCustomEmojiResp) StatusCode ¶
func (r CreateCustomEmojiResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateOAuthProvider ¶
type CreateOAuthProvider struct {
AccountLinkingEnabled *bool `json:"account_linking_enabled,omitempty"`
AuthorizationEndpoint string `json:"authorization_endpoint"`
AutoVerifyEmail *bool `json:"auto_verify_email,omitempty"`
ClientId string `json:"client_id"`
ClientSecret string `json:"client_secret"`
DisplayName string `json:"display_name"`
Enabled *bool `json:"enabled,omitempty"`
IdClaim string `json:"id_claim"`
Issuer string `json:"issuer"`
Scopes string `json:"scopes"`
TokenEndpoint string `json:"token_endpoint"`
UsePkce *bool `json:"use_pkce,omitempty"`
UserinfoEndpoint string `json:"userinfo_endpoint"`
}
CreateOAuthProvider Create an external auth method.
type CreateOAuthProviderJSONRequestBody ¶
type CreateOAuthProviderJSONRequestBody = CreateOAuthProvider
CreateOAuthProviderJSONRequestBody defines body for CreateOAuthProvider for application/json ContentType.
type CreateOAuthProviderResp ¶
type CreateOAuthProviderResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OAuthProvider
}
func ParseCreateOAuthProviderResp ¶
func ParseCreateOAuthProviderResp(rsp *http.Response) (*CreateOAuthProviderResp, error)
ParseCreateOAuthProviderResp parses an HTTP response from a CreateOAuthProviderWithResponse call
func (CreateOAuthProviderResp) Status ¶
func (r CreateOAuthProviderResp) Status() string
Status returns HTTPResponse.Status
func (CreateOAuthProviderResp) StatusCode ¶
func (r CreateOAuthProviderResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePost ¶
type CreatePost struct {
// AltText An optional alt_text, usable for image posts.
AltText *string `json:"alt_text,omitempty"`
// Body An optional body for the post in markdown.
Body *string `json:"body,omitempty"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
// CustomThumbnail Instead of fetching a thumbnail, use a custom one.
CustomThumbnail *string `json:"custom_thumbnail,omitempty"`
// Honeypot A honeypot to catch bots. Should be None.
Honeypot *string `json:"honeypot,omitempty"`
// LanguageId The language id.
LanguageId *LanguageId `json:"language_id,omitempty"`
Name string `json:"name"`
Nsfw *bool `json:"nsfw,omitempty"`
// ScheduledPublishTime Time when this post should be scheduled. Null means publish immediately.
ScheduledPublishTime *float64 `json:"scheduled_publish_time,omitempty"`
Tags *[]TagId `json:"tags,omitempty"`
Url *string `json:"url,omitempty"`
}
CreatePost Create a post.
type CreatePostJSONRequestBody ¶
type CreatePostJSONRequestBody = CreatePost
CreatePostJSONRequestBody defines body for CreatePost for application/json ContentType.
type CreatePostLike ¶
type CreatePostLike struct {
// PostId The post id.
PostId PostId `json:"post_id"`
// Score Score must be -1, 0, or 1.
Score float64 `json:"score"`
}
CreatePostLike Like a post.
type CreatePostReport ¶
type CreatePostReport struct {
// PostId The post id.
PostId PostId `json:"post_id"`
Reason string `json:"reason"`
ViolatesInstanceRules *bool `json:"violates_instance_rules,omitempty"`
}
CreatePostReport Create a post report.
type CreatePostReportJSONRequestBody ¶
type CreatePostReportJSONRequestBody = CreatePostReport
CreatePostReportJSONRequestBody defines body for CreatePostReport for application/json ContentType.
type CreatePostReportResp ¶
type CreatePostReportResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostReportResponse
}
func ParseCreatePostReportResp ¶
func ParseCreatePostReportResp(rsp *http.Response) (*CreatePostReportResp, error)
ParseCreatePostReportResp parses an HTTP response from a CreatePostReportWithResponse call
func (CreatePostReportResp) Status ¶
func (r CreatePostReportResp) Status() string
Status returns HTTPResponse.Status
func (CreatePostReportResp) StatusCode ¶
func (r CreatePostReportResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePostResp ¶
type CreatePostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostResponse
}
func ParseCreatePostResp ¶
func ParseCreatePostResp(rsp *http.Response) (*CreatePostResp, error)
ParseCreatePostResp parses an HTTP response from a CreatePostWithResponse call
func (CreatePostResp) Status ¶
func (r CreatePostResp) Status() string
Status returns HTTPResponse.Status
func (CreatePostResp) StatusCode ¶
func (r CreatePostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePrivateMessage ¶
type CreatePrivateMessage struct {
Content string `json:"content"`
// RecipientId The person id.
RecipientId PersonId `json:"recipient_id"`
}
CreatePrivateMessage Create a private message.
type CreatePrivateMessageJSONRequestBody ¶
type CreatePrivateMessageJSONRequestBody = CreatePrivateMessage
CreatePrivateMessageJSONRequestBody defines body for CreatePrivateMessage for application/json ContentType.
type CreatePrivateMessageReport ¶
type CreatePrivateMessageReport struct {
// PrivateMessageId The private message id.
PrivateMessageId PrivateMessageId `json:"private_message_id"`
Reason string `json:"reason"`
}
CreatePrivateMessageReport Create a report for a private message.
type CreatePrivateMessageReportJSONRequestBody ¶
type CreatePrivateMessageReportJSONRequestBody = CreatePrivateMessageReport
CreatePrivateMessageReportJSONRequestBody defines body for CreatePrivateMessageReport for application/json ContentType.
type CreatePrivateMessageReportResp ¶
type CreatePrivateMessageReportResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PrivateMessageReportResponse
}
func ParseCreatePrivateMessageReportResp ¶
func ParseCreatePrivateMessageReportResp(rsp *http.Response) (*CreatePrivateMessageReportResp, error)
ParseCreatePrivateMessageReportResp parses an HTTP response from a CreatePrivateMessageReportWithResponse call
func (CreatePrivateMessageReportResp) Status ¶
func (r CreatePrivateMessageReportResp) Status() string
Status returns HTTPResponse.Status
func (CreatePrivateMessageReportResp) StatusCode ¶
func (r CreatePrivateMessageReportResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePrivateMessageResp ¶
type CreatePrivateMessageResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PrivateMessageResponse
}
func ParseCreatePrivateMessageResp ¶
func ParseCreatePrivateMessageResp(rsp *http.Response) (*CreatePrivateMessageResp, error)
ParseCreatePrivateMessageResp parses an HTTP response from a CreatePrivateMessageWithResponse call
func (CreatePrivateMessageResp) Status ¶
func (r CreatePrivateMessageResp) Status() string
Status returns HTTPResponse.Status
func (CreatePrivateMessageResp) StatusCode ¶
func (r CreatePrivateMessageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSite ¶
type CreateSite struct {
ActorNameMaxLength *float64 `json:"actor_name_max_length,omitempty"`
ApplicationEmailAdmins *bool `json:"application_email_admins,omitempty"`
ApplicationQuestion *string `json:"application_question,omitempty"`
CaptchaDifficulty *string `json:"captcha_difficulty,omitempty"`
CaptchaEnabled *bool `json:"captcha_enabled,omitempty"`
// CommentDownvotes The federation mode for an item
CommentDownvotes *FederationMode `json:"comment_downvotes,omitempty"`
// CommentUpvotes The federation mode for an item
CommentUpvotes *FederationMode `json:"comment_upvotes,omitempty"`
CommunityCreationAdminOnly *bool `json:"community_creation_admin_only,omitempty"`
ContentWarning *string `json:"content_warning,omitempty"`
// DefaultCommentSortType The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultCommentSortType *CommentSortType `json:"default_comment_sort_type,omitempty"`
// DefaultPostListingMode A post-view mode that changes how multiple post listings look.
DefaultPostListingMode *PostListingMode `json:"default_post_listing_mode,omitempty"`
// DefaultPostListingType A listing type for post and comment list fetches.
DefaultPostListingType *ListingType `json:"default_post_listing_type,omitempty"`
// DefaultPostSortType The post sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultPostSortType *PostSortType `json:"default_post_sort_type,omitempty"`
DefaultPostTimeRangeSeconds *float64 `json:"default_post_time_range_seconds,omitempty"`
DefaultTheme *string `json:"default_theme,omitempty"`
Description *string `json:"description,omitempty"`
DisableDonationDialog *bool `json:"disable_donation_dialog,omitempty"`
DiscussionLanguages *[]LanguageId `json:"discussion_languages,omitempty"`
FederationEnabled *bool `json:"federation_enabled,omitempty"`
HideModlogModNames *bool `json:"hide_modlog_mod_names,omitempty"`
LegalInformation *string `json:"legal_information,omitempty"`
Name string `json:"name"`
OauthRegistration *bool `json:"oauth_registration,omitempty"`
// PostDownvotes The federation mode for an item
PostDownvotes *FederationMode `json:"post_downvotes,omitempty"`
// PostUpvotes The federation mode for an item
PostUpvotes *FederationMode `json:"post_upvotes,omitempty"`
PrivateInstance *bool `json:"private_instance,omitempty"`
RateLimitComment *float64 `json:"rate_limit_comment,omitempty"`
RateLimitCommentPerSecond *float64 `json:"rate_limit_comment_per_second,omitempty"`
RateLimitImage *float64 `json:"rate_limit_image,omitempty"`
RateLimitImagePerSecond *float64 `json:"rate_limit_image_per_second,omitempty"`
RateLimitMessage *float64 `json:"rate_limit_message,omitempty"`
RateLimitMessagePerSecond *float64 `json:"rate_limit_message_per_second,omitempty"`
RateLimitPost *float64 `json:"rate_limit_post,omitempty"`
RateLimitPostPerSecond *float64 `json:"rate_limit_post_per_second,omitempty"`
RateLimitRegister *float64 `json:"rate_limit_register,omitempty"`
RateLimitRegisterPerSecond *float64 `json:"rate_limit_register_per_second,omitempty"`
RateLimitSearch *float64 `json:"rate_limit_search,omitempty"`
RateLimitSearchPerSecond *float64 `json:"rate_limit_search_per_second,omitempty"`
// RegistrationMode The registration mode for your site. Determines what happens after a user signs up.
RegistrationMode *RegistrationMode `json:"registration_mode,omitempty"`
RequireEmailVerification *bool `json:"require_email_verification,omitempty"`
Sidebar *string `json:"sidebar,omitempty"`
SlurFilterRegex *string `json:"slur_filter_regex,omitempty"`
}
CreateSite Creates a site. Should be done after first running lemmy.
type CreateSiteJSONRequestBody ¶
type CreateSiteJSONRequestBody = CreateSite
CreateSiteJSONRequestBody defines body for CreateSite for application/json ContentType.
type CreateSiteResp ¶
type CreateSiteResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SiteResponse
}
func ParseCreateSiteResp ¶
func ParseCreateSiteResp(rsp *http.Response) (*CreateSiteResp, error)
ParseCreateSiteResp parses an HTTP response from a CreateSiteWithResponse call
func (CreateSiteResp) Status ¶
func (r CreateSiteResp) Status() string
Status returns HTTPResponse.Status
func (CreateSiteResp) StatusCode ¶
func (r CreateSiteResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTagline ¶
type CreateTagline struct {
Content string `json:"content"`
}
CreateTagline Create a tagline
type CreateTaglineJSONRequestBody ¶
type CreateTaglineJSONRequestBody = CreateTagline
CreateTaglineJSONRequestBody defines body for CreateTagline for application/json ContentType.
type CreateTaglineResp ¶
type CreateTaglineResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TaglineResponse
}
func ParseCreateTaglineResp ¶
func ParseCreateTaglineResp(rsp *http.Response) (*CreateTaglineResp, error)
ParseCreateTaglineResp parses an HTTP response from a CreateTaglineWithResponse call
func (CreateTaglineResp) Status ¶
func (r CreateTaglineResp) Status() string
Status returns HTTPResponse.Status
func (CreateTaglineResp) StatusCode ¶
func (r CreateTaglineResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CustomEmoji ¶
type CustomEmoji struct {
AltText string `json:"alt_text"`
Category string `json:"category"`
// Id The custom emoji id.
Id CustomEmojiId `json:"id"`
ImageUrl DbUrl `json:"image_url"`
Published string `json:"published"`
Shortcode string `json:"shortcode"`
Updated *string `json:"updated,omitempty"`
}
CustomEmoji A custom emoji.
type CustomEmojiKeyword ¶
type CustomEmojiKeyword struct {
// CustomEmojiId The custom emoji id.
CustomEmojiId CustomEmojiId `json:"custom_emoji_id"`
Keyword string `json:"keyword"`
}
CustomEmojiKeyword A custom keyword for an emoji.
type CustomEmojiResponse ¶
type CustomEmojiResponse struct {
// CustomEmoji A custom emoji view.
CustomEmoji CustomEmojiView `json:"custom_emoji"`
}
CustomEmojiResponse A response for a custom emoji.
type CustomEmojiView ¶
type CustomEmojiView struct {
// CustomEmoji A custom emoji.
CustomEmoji CustomEmoji `json:"custom_emoji"`
Keywords []CustomEmojiKeyword `json:"keywords"`
}
CustomEmojiView A custom emoji view.
type DeleteAccount ¶
type DeleteAccount struct {
DeleteContent bool `json:"delete_content"`
Password SensitiveString `json:"password"`
}
DeleteAccount Delete your account.
type DeleteAccountJSONRequestBody ¶
type DeleteAccountJSONRequestBody = DeleteAccount
DeleteAccountJSONRequestBody defines body for DeleteAccount for application/json ContentType.
type DeleteAccountResp ¶
type DeleteAccountResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteAccountResp ¶
func ParseDeleteAccountResp(rsp *http.Response) (*DeleteAccountResp, error)
ParseDeleteAccountResp parses an HTTP response from a DeleteAccountWithResponse call
func (DeleteAccountResp) Status ¶
func (r DeleteAccountResp) Status() string
Status returns HTTPResponse.Status
func (DeleteAccountResp) StatusCode ¶
func (r DeleteAccountResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteComment ¶
type DeleteComment struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
Deleted bool `json:"deleted"`
}
DeleteComment Delete your own comment.
type DeleteCommentJSONRequestBody ¶
type DeleteCommentJSONRequestBody = DeleteComment
DeleteCommentJSONRequestBody defines body for DeleteComment for application/json ContentType.
type DeleteCommentResp ¶
type DeleteCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentResponse
}
func ParseDeleteCommentResp ¶
func ParseDeleteCommentResp(rsp *http.Response) (*DeleteCommentResp, error)
ParseDeleteCommentResp parses an HTTP response from a DeleteCommentWithResponse call
func (DeleteCommentResp) Status ¶
func (r DeleteCommentResp) Status() string
Status returns HTTPResponse.Status
func (DeleteCommentResp) StatusCode ¶
func (r DeleteCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCommunity ¶
type DeleteCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Deleted bool `json:"deleted"`
}
DeleteCommunity Delete your own community.
type DeleteCommunityBannerResp ¶
type DeleteCommunityBannerResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteCommunityBannerResp ¶
func ParseDeleteCommunityBannerResp(rsp *http.Response) (*DeleteCommunityBannerResp, error)
ParseDeleteCommunityBannerResp parses an HTTP response from a DeleteCommunityBannerWithResponse call
func (DeleteCommunityBannerResp) Status ¶
func (r DeleteCommunityBannerResp) Status() string
Status returns HTTPResponse.Status
func (DeleteCommunityBannerResp) StatusCode ¶
func (r DeleteCommunityBannerResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCommunityIconResp ¶
type DeleteCommunityIconResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteCommunityIconResp ¶
func ParseDeleteCommunityIconResp(rsp *http.Response) (*DeleteCommunityIconResp, error)
ParseDeleteCommunityIconResp parses an HTTP response from a DeleteCommunityIconWithResponse call
func (DeleteCommunityIconResp) Status ¶
func (r DeleteCommunityIconResp) Status() string
Status returns HTTPResponse.Status
func (DeleteCommunityIconResp) StatusCode ¶
func (r DeleteCommunityIconResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCommunityJSONRequestBody ¶
type DeleteCommunityJSONRequestBody = DeleteCommunity
DeleteCommunityJSONRequestBody defines body for DeleteCommunity for application/json ContentType.
type DeleteCommunityResp ¶
type DeleteCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommunityResponse
}
func ParseDeleteCommunityResp ¶
func ParseDeleteCommunityResp(rsp *http.Response) (*DeleteCommunityResp, error)
ParseDeleteCommunityResp parses an HTTP response from a DeleteCommunityWithResponse call
func (DeleteCommunityResp) Status ¶
func (r DeleteCommunityResp) Status() string
Status returns HTTPResponse.Status
func (DeleteCommunityResp) StatusCode ¶
func (r DeleteCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCustomEmoji ¶
type DeleteCustomEmoji struct {
// Id The custom emoji id.
Id CustomEmojiId `json:"id"`
}
DeleteCustomEmoji Delete a custom emoji.
type DeleteCustomEmojiJSONRequestBody ¶
type DeleteCustomEmojiJSONRequestBody = DeleteCustomEmoji
DeleteCustomEmojiJSONRequestBody defines body for DeleteCustomEmoji for application/json ContentType.
type DeleteCustomEmojiResp ¶
type DeleteCustomEmojiResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteCustomEmojiResp ¶
func ParseDeleteCustomEmojiResp(rsp *http.Response) (*DeleteCustomEmojiResp, error)
ParseDeleteCustomEmojiResp parses an HTTP response from a DeleteCustomEmojiWithResponse call
func (DeleteCustomEmojiResp) Status ¶
func (r DeleteCustomEmojiResp) Status() string
Status returns HTTPResponse.Status
func (DeleteCustomEmojiResp) StatusCode ¶
func (r DeleteCustomEmojiResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteImageParams ¶
type DeleteImageParams struct {
Filename string `form:"filename" json:"filename"`
}
DeleteImageParams defines parameters for DeleteImage.
type DeleteImageResp ¶
type DeleteImageResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteImageResp ¶
func ParseDeleteImageResp(rsp *http.Response) (*DeleteImageResp, error)
ParseDeleteImageResp parses an HTTP response from a DeleteImageWithResponse call
func (DeleteImageResp) Status ¶
func (r DeleteImageResp) Status() string
Status returns HTTPResponse.Status
func (DeleteImageResp) StatusCode ¶
func (r DeleteImageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteOAuthProvider ¶
type DeleteOAuthProvider struct {
// Id The oauth provider id.
Id OAuthProviderId `json:"id"`
}
DeleteOAuthProvider Delete an external auth method.
type DeleteOAuthProviderJSONRequestBody ¶
type DeleteOAuthProviderJSONRequestBody = DeleteOAuthProvider
DeleteOAuthProviderJSONRequestBody defines body for DeleteOAuthProvider for application/json ContentType.
type DeleteOAuthProviderResp ¶
type DeleteOAuthProviderResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteOAuthProviderResp ¶
func ParseDeleteOAuthProviderResp(rsp *http.Response) (*DeleteOAuthProviderResp, error)
ParseDeleteOAuthProviderResp parses an HTTP response from a DeleteOAuthProviderWithResponse call
func (DeleteOAuthProviderResp) Status ¶
func (r DeleteOAuthProviderResp) Status() string
Status returns HTTPResponse.Status
func (DeleteOAuthProviderResp) StatusCode ¶
func (r DeleteOAuthProviderResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeletePost ¶
type DeletePost struct {
Deleted bool `json:"deleted"`
// PostId The post id.
PostId PostId `json:"post_id"`
}
DeletePost Delete a post.
type DeletePostJSONRequestBody ¶
type DeletePostJSONRequestBody = DeletePost
DeletePostJSONRequestBody defines body for DeletePost for application/json ContentType.
type DeletePostResp ¶
type DeletePostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostResponse
}
func ParseDeletePostResp ¶
func ParseDeletePostResp(rsp *http.Response) (*DeletePostResp, error)
ParseDeletePostResp parses an HTTP response from a DeletePostWithResponse call
func (DeletePostResp) Status ¶
func (r DeletePostResp) Status() string
Status returns HTTPResponse.Status
func (DeletePostResp) StatusCode ¶
func (r DeletePostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeletePrivateMessage ¶
type DeletePrivateMessage struct {
Deleted bool `json:"deleted"`
// PrivateMessageId The private message id.
PrivateMessageId PrivateMessageId `json:"private_message_id"`
}
DeletePrivateMessage Delete a private message.
type DeletePrivateMessageJSONRequestBody ¶
type DeletePrivateMessageJSONRequestBody = DeletePrivateMessage
DeletePrivateMessageJSONRequestBody defines body for DeletePrivateMessage for application/json ContentType.
type DeletePrivateMessageResp ¶
type DeletePrivateMessageResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PrivateMessageResponse
}
func ParseDeletePrivateMessageResp ¶
func ParseDeletePrivateMessageResp(rsp *http.Response) (*DeletePrivateMessageResp, error)
ParseDeletePrivateMessageResp parses an HTTP response from a DeletePrivateMessageWithResponse call
func (DeletePrivateMessageResp) Status ¶
func (r DeletePrivateMessageResp) Status() string
Status returns HTTPResponse.Status
func (DeletePrivateMessageResp) StatusCode ¶
func (r DeletePrivateMessageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSiteBannerResp ¶
type DeleteSiteBannerResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteSiteBannerResp ¶
func ParseDeleteSiteBannerResp(rsp *http.Response) (*DeleteSiteBannerResp, error)
ParseDeleteSiteBannerResp parses an HTTP response from a DeleteSiteBannerWithResponse call
func (DeleteSiteBannerResp) Status ¶
func (r DeleteSiteBannerResp) Status() string
Status returns HTTPResponse.Status
func (DeleteSiteBannerResp) StatusCode ¶
func (r DeleteSiteBannerResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSiteIconResp ¶
type DeleteSiteIconResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteSiteIconResp ¶
func ParseDeleteSiteIconResp(rsp *http.Response) (*DeleteSiteIconResp, error)
ParseDeleteSiteIconResp parses an HTTP response from a DeleteSiteIconWithResponse call
func (DeleteSiteIconResp) Status ¶
func (r DeleteSiteIconResp) Status() string
Status returns HTTPResponse.Status
func (DeleteSiteIconResp) StatusCode ¶
func (r DeleteSiteIconResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteTagline ¶
type DeleteTagline struct {
// Id The tagline id.
Id TaglineId `json:"id"`
}
DeleteTagline Delete a tagline
type DeleteTaglineJSONRequestBody ¶
type DeleteTaglineJSONRequestBody = DeleteTagline
DeleteTaglineJSONRequestBody defines body for DeleteTagline for application/json ContentType.
type DeleteTaglineResp ¶
type DeleteTaglineResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteTaglineResp ¶
func ParseDeleteTaglineResp(rsp *http.Response) (*DeleteTaglineResp, error)
ParseDeleteTaglineResp parses an HTTP response from a DeleteTaglineWithResponse call
func (DeleteTaglineResp) Status ¶
func (r DeleteTaglineResp) Status() string
Status returns HTTPResponse.Status
func (DeleteTaglineResp) StatusCode ¶
func (r DeleteTaglineResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUserAvatarResp ¶
type DeleteUserAvatarResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteUserAvatarResp ¶
func ParseDeleteUserAvatarResp(rsp *http.Response) (*DeleteUserAvatarResp, error)
ParseDeleteUserAvatarResp parses an HTTP response from a DeleteUserAvatarWithResponse call
func (DeleteUserAvatarResp) Status ¶
func (r DeleteUserAvatarResp) Status() string
Status returns HTTPResponse.Status
func (DeleteUserAvatarResp) StatusCode ¶
func (r DeleteUserAvatarResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUserBannerResp ¶
type DeleteUserBannerResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseDeleteUserBannerResp ¶
func ParseDeleteUserBannerResp(rsp *http.Response) (*DeleteUserBannerResp, error)
ParseDeleteUserBannerResp parses an HTTP response from a DeleteUserBannerWithResponse call
func (DeleteUserBannerResp) Status ¶
func (r DeleteUserBannerResp) Status() string
Status returns HTTPResponse.Status
func (DeleteUserBannerResp) StatusCode ¶
func (r DeleteUserBannerResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DistinguishComment ¶
type DistinguishComment struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
Distinguished bool `json:"distinguished"`
}
DistinguishComment Distinguish a comment (IE speak as moderator).
type DistinguishCommentJSONRequestBody ¶
type DistinguishCommentJSONRequestBody = DistinguishComment
DistinguishCommentJSONRequestBody defines body for DistinguishComment for application/json ContentType.
type DistinguishCommentResp ¶
type DistinguishCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentResponse
}
func ParseDistinguishCommentResp ¶
func ParseDistinguishCommentResp(rsp *http.Response) (*DistinguishCommentResp, error)
ParseDistinguishCommentResp parses an HTTP response from a DistinguishCommentWithResponse call
func (DistinguishCommentResp) Status ¶
func (r DistinguishCommentResp) Status() string
Status returns HTTPResponse.Status
func (DistinguishCommentResp) StatusCode ¶
func (r DistinguishCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditComment ¶
type EditComment struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
Content *string `json:"content,omitempty"`
// LanguageId The language id.
LanguageId *LanguageId `json:"language_id,omitempty"`
}
EditComment Edit a comment.
type EditCommentJSONRequestBody ¶
type EditCommentJSONRequestBody = EditComment
EditCommentJSONRequestBody defines body for EditComment for application/json ContentType.
type EditCommentResp ¶
type EditCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentResponse
}
func ParseEditCommentResp ¶
func ParseEditCommentResp(rsp *http.Response) (*EditCommentResp, error)
ParseEditCommentResp parses an HTTP response from a EditCommentWithResponse call
func (EditCommentResp) Status ¶
func (r EditCommentResp) Status() string
Status returns HTTPResponse.Status
func (EditCommentResp) StatusCode ¶
func (r EditCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditCommunity ¶
type EditCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
// Description A shorter, one line description of your community.
Description *string `json:"description,omitempty"`
DiscussionLanguages *[]LanguageId `json:"discussion_languages,omitempty"`
// Nsfw Whether its an NSFW community.
Nsfw *bool `json:"nsfw,omitempty"`
// PostingRestrictedToMods Whether to restrict posting only to moderators.
PostingRestrictedToMods *bool `json:"posting_restricted_to_mods,omitempty"`
// Sidebar A sidebar for the community in markdown.
Sidebar *string `json:"sidebar,omitempty"`
// Title A longer title.
Title *string `json:"title,omitempty"`
// Visibility Defines who can browse and interact with content in a community.
Visibility *CommunityVisibility `json:"visibility,omitempty"`
}
EditCommunity Edit a community.
type EditCommunityJSONRequestBody ¶
type EditCommunityJSONRequestBody = EditCommunity
EditCommunityJSONRequestBody defines body for EditCommunity for application/json ContentType.
type EditCommunityResp ¶
type EditCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommunityResponse
}
func ParseEditCommunityResp ¶
func ParseEditCommunityResp(rsp *http.Response) (*EditCommunityResp, error)
ParseEditCommunityResp parses an HTTP response from a EditCommunityWithResponse call
func (EditCommunityResp) Status ¶
func (r EditCommunityResp) Status() string
Status returns HTTPResponse.Status
func (EditCommunityResp) StatusCode ¶
func (r EditCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditCustomEmoji ¶
type EditCustomEmoji struct {
AltText string `json:"alt_text"`
Category string `json:"category"`
// Id The custom emoji id.
Id CustomEmojiId `json:"id"`
ImageUrl string `json:"image_url"`
Keywords []string `json:"keywords"`
}
EditCustomEmoji Edit a custom emoji.
type EditCustomEmojiJSONRequestBody ¶
type EditCustomEmojiJSONRequestBody = EditCustomEmoji
EditCustomEmojiJSONRequestBody defines body for EditCustomEmoji for application/json ContentType.
type EditCustomEmojiResp ¶
type EditCustomEmojiResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CustomEmojiResponse
}
func ParseEditCustomEmojiResp ¶
func ParseEditCustomEmojiResp(rsp *http.Response) (*EditCustomEmojiResp, error)
ParseEditCustomEmojiResp parses an HTTP response from a EditCustomEmojiWithResponse call
func (EditCustomEmojiResp) Status ¶
func (r EditCustomEmojiResp) Status() string
Status returns HTTPResponse.Status
func (EditCustomEmojiResp) StatusCode ¶
func (r EditCustomEmojiResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditOAuthProvider ¶
type EditOAuthProvider struct {
AccountLinkingEnabled *bool `json:"account_linking_enabled,omitempty"`
AuthorizationEndpoint *string `json:"authorization_endpoint,omitempty"`
AutoVerifyEmail *bool `json:"auto_verify_email,omitempty"`
ClientSecret *string `json:"client_secret,omitempty"`
DisplayName *string `json:"display_name,omitempty"`
Enabled *bool `json:"enabled,omitempty"`
// Id The oauth provider id.
Id OAuthProviderId `json:"id"`
IdClaim *string `json:"id_claim,omitempty"`
Scopes *string `json:"scopes,omitempty"`
TokenEndpoint *string `json:"token_endpoint,omitempty"`
UsePkce *bool `json:"use_pkce,omitempty"`
UserinfoEndpoint *string `json:"userinfo_endpoint,omitempty"`
}
EditOAuthProvider Edit an external auth method.
type EditOAuthProviderJSONRequestBody ¶
type EditOAuthProviderJSONRequestBody = EditOAuthProvider
EditOAuthProviderJSONRequestBody defines body for EditOAuthProvider for application/json ContentType.
type EditOAuthProviderResp ¶
type EditOAuthProviderResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OAuthProvider
}
func ParseEditOAuthProviderResp ¶
func ParseEditOAuthProviderResp(rsp *http.Response) (*EditOAuthProviderResp, error)
ParseEditOAuthProviderResp parses an HTTP response from a EditOAuthProviderWithResponse call
func (EditOAuthProviderResp) Status ¶
func (r EditOAuthProviderResp) Status() string
Status returns HTTPResponse.Status
func (EditOAuthProviderResp) StatusCode ¶
func (r EditOAuthProviderResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditPost ¶
type EditPost struct {
// AltText An optional alt_text, usable for image posts.
AltText *string `json:"alt_text,omitempty"`
// Body An optional body for the post in markdown.
Body *string `json:"body,omitempty"`
// CustomThumbnail Instead of fetching a thumbnail, use a custom one.
CustomThumbnail *string `json:"custom_thumbnail,omitempty"`
// LanguageId The language id.
LanguageId *LanguageId `json:"language_id,omitempty"`
Name *string `json:"name,omitempty"`
Nsfw *bool `json:"nsfw,omitempty"`
// PostId The post id.
PostId PostId `json:"post_id"`
// ScheduledPublishTime Time when this post should be scheduled. Null means publish immediately.
ScheduledPublishTime *float64 `json:"scheduled_publish_time,omitempty"`
Tags *[]TagId `json:"tags,omitempty"`
Url *string `json:"url,omitempty"`
}
EditPost Edit a post.
type EditPostJSONRequestBody ¶
type EditPostJSONRequestBody = EditPost
EditPostJSONRequestBody defines body for EditPost for application/json ContentType.
type EditPostResp ¶
type EditPostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostResponse
}
func ParseEditPostResp ¶
func ParseEditPostResp(rsp *http.Response) (*EditPostResp, error)
ParseEditPostResp parses an HTTP response from a EditPostWithResponse call
func (EditPostResp) Status ¶
func (r EditPostResp) Status() string
Status returns HTTPResponse.Status
func (EditPostResp) StatusCode ¶
func (r EditPostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditPrivateMessage ¶
type EditPrivateMessage struct {
Content string `json:"content"`
// PrivateMessageId The private message id.
PrivateMessageId PrivateMessageId `json:"private_message_id"`
}
EditPrivateMessage Edit a private message.
type EditPrivateMessageJSONRequestBody ¶
type EditPrivateMessageJSONRequestBody = EditPrivateMessage
EditPrivateMessageJSONRequestBody defines body for EditPrivateMessage for application/json ContentType.
type EditPrivateMessageResp ¶
type EditPrivateMessageResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PrivateMessageResponse
}
func ParseEditPrivateMessageResp ¶
func ParseEditPrivateMessageResp(rsp *http.Response) (*EditPrivateMessageResp, error)
ParseEditPrivateMessageResp parses an HTTP response from a EditPrivateMessageWithResponse call
func (EditPrivateMessageResp) Status ¶
func (r EditPrivateMessageResp) Status() string
Status returns HTTPResponse.Status
func (EditPrivateMessageResp) StatusCode ¶
func (r EditPrivateMessageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditSite ¶
type EditSite struct {
// ActorNameMaxLength The max length of actor names.
ActorNameMaxLength *float64 `json:"actor_name_max_length,omitempty"`
// ApplicationEmailAdmins Whether to email admins when receiving a new application.
ApplicationEmailAdmins *bool `json:"application_email_admins,omitempty"`
// ApplicationQuestion Your application question form. This is in markdown, and can be many questions.
ApplicationQuestion *string `json:"application_question,omitempty"`
// BlockedUrls A list of blocked URLs
BlockedUrls *[]string `json:"blocked_urls,omitempty"`
// CaptchaDifficulty The captcha difficulty. Can be easy, medium, or hard
CaptchaDifficulty *string `json:"captcha_difficulty,omitempty"`
// CaptchaEnabled Whether to enable captchas for signups.
CaptchaEnabled *bool `json:"captcha_enabled,omitempty"`
// CommentDownvotes The federation mode for an item
CommentDownvotes *FederationMode `json:"comment_downvotes,omitempty"`
// CommentUpvotes The federation mode for an item
CommentUpvotes *FederationMode `json:"comment_upvotes,omitempty"`
// CommunityCreationAdminOnly Limits community creation to admins only.
CommunityCreationAdminOnly *bool `json:"community_creation_admin_only,omitempty"`
// ContentWarning If present, nsfw content is visible by default. Should be displayed by frontends/clients
// when the site is first opened by a user.
ContentWarning *string `json:"content_warning,omitempty"`
// DefaultCommentSortType The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultCommentSortType *CommentSortType `json:"default_comment_sort_type,omitempty"`
// DefaultPostListingMode A post-view mode that changes how multiple post listings look.
DefaultPostListingMode *PostListingMode `json:"default_post_listing_mode,omitempty"`
// DefaultPostListingType A listing type for post and comment list fetches.
DefaultPostListingType *ListingType `json:"default_post_listing_type,omitempty"`
// DefaultPostSortType The post sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultPostSortType *PostSortType `json:"default_post_sort_type,omitempty"`
// DefaultPostTimeRangeSeconds A default time range limit to apply to post sorts, in seconds. 0 means none.
DefaultPostTimeRangeSeconds *float64 `json:"default_post_time_range_seconds,omitempty"`
// DefaultTheme The default theme. Usually "browser"
DefaultTheme *string `json:"default_theme,omitempty"`
// Description A shorter, one line description of your site.
Description *string `json:"description,omitempty"`
// DisableDonationDialog If this is true, users will never see the dialog asking to support Lemmy development with
// donations.
DisableDonationDialog *bool `json:"disable_donation_dialog,omitempty"`
// DisallowNsfwContent Block NSFW content being created
DisallowNsfwContent *bool `json:"disallow_nsfw_content,omitempty"`
// DiscussionLanguages A list of allowed discussion languages.
DiscussionLanguages *[]LanguageId `json:"discussion_languages,omitempty"`
// FederationEnabled Whether to enable federation.
FederationEnabled *bool `json:"federation_enabled,omitempty"`
// HideModlogModNames Whether to hide moderator names from the modlog.
HideModlogModNames *bool `json:"hide_modlog_mod_names,omitempty"`
// LegalInformation An optional page of legal information
LegalInformation *string `json:"legal_information,omitempty"`
Name *string `json:"name,omitempty"`
// OauthRegistration Whether or not external auth methods can auto-register users.
OauthRegistration *bool `json:"oauth_registration,omitempty"`
// PostDownvotes The federation mode for an item
PostDownvotes *FederationMode `json:"post_downvotes,omitempty"`
// PostUpvotes The federation mode for an item
PostUpvotes *FederationMode `json:"post_upvotes,omitempty"`
// PrivateInstance Whether your instance is public, or private.
PrivateInstance *bool `json:"private_instance,omitempty"`
// RateLimitComment The number of comments allowed in a given time frame.
RateLimitComment *float64 `json:"rate_limit_comment,omitempty"`
RateLimitCommentPerSecond *float64 `json:"rate_limit_comment_per_second,omitempty"`
// RateLimitImage The number of image uploads allowed in a given time frame.
RateLimitImage *float64 `json:"rate_limit_image,omitempty"`
RateLimitImagePerSecond *float64 `json:"rate_limit_image_per_second,omitempty"`
// RateLimitMessage The number of messages allowed in a given time frame.
RateLimitMessage *float64 `json:"rate_limit_message,omitempty"`
RateLimitMessagePerSecond *float64 `json:"rate_limit_message_per_second,omitempty"`
// RateLimitPost The number of posts allowed in a given time frame.
RateLimitPost *float64 `json:"rate_limit_post,omitempty"`
RateLimitPostPerSecond *float64 `json:"rate_limit_post_per_second,omitempty"`
// RateLimitRegister The number of registrations allowed in a given time frame.
RateLimitRegister *float64 `json:"rate_limit_register,omitempty"`
RateLimitRegisterPerSecond *float64 `json:"rate_limit_register_per_second,omitempty"`
// RateLimitSearch The number of searches allowed in a given time frame.
RateLimitSearch *float64 `json:"rate_limit_search,omitempty"`
RateLimitSearchPerSecond *float64 `json:"rate_limit_search_per_second,omitempty"`
// RegistrationMode The registration mode for your site. Determines what happens after a user signs up.
RegistrationMode *RegistrationMode `json:"registration_mode,omitempty"`
// ReportsEmailAdmins Whether to email admins for new reports.
ReportsEmailAdmins *bool `json:"reports_email_admins,omitempty"`
// RequireEmailVerification Whether to require email verification.
RequireEmailVerification *bool `json:"require_email_verification,omitempty"`
// Sidebar A sidebar for the site, in markdown.
Sidebar *string `json:"sidebar,omitempty"`
// SlurFilterRegex A regex string of items to filter.
SlurFilterRegex *string `json:"slur_filter_regex,omitempty"`
}
EditSite Edits a site.
type EditSiteJSONRequestBody ¶
type EditSiteJSONRequestBody = EditSite
EditSiteJSONRequestBody defines body for EditSite for application/json ContentType.
type EditSiteResp ¶
type EditSiteResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SiteResponse
}
func ParseEditSiteResp ¶
func ParseEditSiteResp(rsp *http.Response) (*EditSiteResp, error)
ParseEditSiteResp parses an HTTP response from a EditSiteWithResponse call
func (EditSiteResp) Status ¶
func (r EditSiteResp) Status() string
Status returns HTTPResponse.Status
func (EditSiteResp) StatusCode ¶
func (r EditSiteResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EditTaglineJSONRequestBody ¶
type EditTaglineJSONRequestBody = UpdateTagline
EditTaglineJSONRequestBody defines body for EditTagline for application/json ContentType.
type EditTaglineResp ¶
type EditTaglineResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TaglineResponse
}
func ParseEditTaglineResp ¶
func ParseEditTaglineResp(rsp *http.Response) (*EditTaglineResp, error)
ParseEditTaglineResp parses an HTTP response from a EditTaglineWithResponse call
func (EditTaglineResp) Status ¶
func (r EditTaglineResp) Status() string
Status returns HTTPResponse.Status
func (EditTaglineResp) StatusCode ¶
func (r EditTaglineResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExportSettingsResp ¶
func ParseExportSettingsResp ¶
func ParseExportSettingsResp(rsp *http.Response) (*ExportSettingsResp, error)
ParseExportSettingsResp parses an HTTP response from a ExportSettingsWithResponse call
func (ExportSettingsResp) Status ¶
func (r ExportSettingsResp) Status() string
Status returns HTTPResponse.Status
func (ExportSettingsResp) StatusCode ¶
func (r ExportSettingsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FeaturePost ¶
type FeaturePost struct {
// FeatureType The feature type for a post.
FeatureType PostFeatureType `json:"feature_type"`
Featured bool `json:"featured"`
// PostId The post id.
PostId PostId `json:"post_id"`
}
FeaturePost Feature a post (stickies / pins to the top).
type FeaturePostJSONRequestBody ¶
type FeaturePostJSONRequestBody = FeaturePost
FeaturePostJSONRequestBody defines body for FeaturePost for application/json ContentType.
type FeaturePostResp ¶
type FeaturePostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostResponse
}
func ParseFeaturePostResp ¶
func ParseFeaturePostResp(rsp *http.Response) (*FeaturePostResp, error)
ParseFeaturePostResp parses an HTTP response from a FeaturePostWithResponse call
func (FeaturePostResp) Status ¶
func (r FeaturePostResp) Status() string
Status returns HTTPResponse.Status
func (FeaturePostResp) StatusCode ¶
func (r FeaturePostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FederatedInstances ¶
type FederatedInstances struct {
Allowed []InstanceWithFederationState `json:"allowed"`
Blocked []InstanceWithFederationState `json:"blocked"`
Linked []InstanceWithFederationState `json:"linked"`
}
FederatedInstances A list of federated instances.
type FederationMode ¶
type FederationMode string
FederationMode The federation mode for an item
const ( FederationModeAll FederationMode = "All" FederationModeDisable FederationMode = "Disable" FederationModeLocal FederationMode = "Local" )
Defines values for FederationMode.
type FollowCommunity ¶
type FollowCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Follow bool `json:"follow"`
}
FollowCommunity Follow / subscribe to a community.
type FollowCommunityJSONRequestBody ¶
type FollowCommunityJSONRequestBody = FollowCommunity
FollowCommunityJSONRequestBody defines body for FollowCommunity for application/json ContentType.
type FollowCommunityResp ¶
type FollowCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommunityResponse
}
func ParseFollowCommunityResp ¶
func ParseFollowCommunityResp(rsp *http.Response) (*FollowCommunityResp, error)
ParseFollowCommunityResp parses an HTTP response from a FollowCommunityWithResponse call
func (FollowCommunityResp) Status ¶
func (r FollowCommunityResp) Status() string
Status returns HTTPResponse.Status
func (FollowCommunityResp) StatusCode ¶
func (r FollowCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GenerateTotpSecretResp ¶
type GenerateTotpSecretResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GenerateTotpSecretResponse
}
func ParseGenerateTotpSecretResp ¶
func ParseGenerateTotpSecretResp(rsp *http.Response) (*GenerateTotpSecretResp, error)
ParseGenerateTotpSecretResp parses an HTTP response from a GenerateTotpSecretWithResponse call
func (GenerateTotpSecretResp) Status ¶
func (r GenerateTotpSecretResp) Status() string
Status returns HTTPResponse.Status
func (GenerateTotpSecretResp) StatusCode ¶
func (r GenerateTotpSecretResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GenerateTotpSecretResponse ¶
type GenerateTotpSecretResponse struct {
TotpSecretUrl SensitiveString `json:"totp_secret_url"`
}
GenerateTotpSecretResponse defines model for GenerateTotpSecretResponse.
type GetBannedPersonsResp ¶
type GetBannedPersonsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BannedPersonsResponse
}
func ParseGetBannedPersonsResp ¶
func ParseGetBannedPersonsResp(rsp *http.Response) (*GetBannedPersonsResp, error)
ParseGetBannedPersonsResp parses an HTTP response from a GetBannedPersonsWithResponse call
func (GetBannedPersonsResp) Status ¶
func (r GetBannedPersonsResp) Status() string
Status returns HTTPResponse.Status
func (GetBannedPersonsResp) StatusCode ¶
func (r GetBannedPersonsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCaptchaResp ¶
type GetCaptchaResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetCaptchaResponse
}
func ParseGetCaptchaResp ¶
func ParseGetCaptchaResp(rsp *http.Response) (*GetCaptchaResp, error)
ParseGetCaptchaResp parses an HTTP response from a GetCaptchaWithResponse call
func (GetCaptchaResp) Status ¶
func (r GetCaptchaResp) Status() string
Status returns HTTPResponse.Status
func (GetCaptchaResp) StatusCode ¶
func (r GetCaptchaResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCaptchaResponse ¶
type GetCaptchaResponse struct {
// Ok A captcha response.
Ok *CaptchaResponse `json:"ok,omitempty"`
}
GetCaptchaResponse A wrapper for the captcha response.
type GetCommentParams ¶
type GetCommentParams struct {
Id CommentId `form:"id" json:"id"`
}
GetCommentParams defines parameters for GetComment.
type GetCommentResp ¶
type GetCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentResponse
}
func ParseGetCommentResp ¶
func ParseGetCommentResp(rsp *http.Response) (*GetCommentResp, error)
ParseGetCommentResp parses an HTTP response from a GetCommentWithResponse call
func (GetCommentResp) Status ¶
func (r GetCommentResp) Status() string
Status returns HTTPResponse.Status
func (GetCommentResp) StatusCode ¶
func (r GetCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommentsParams ¶
type GetCommentsParams struct {
DislikedOnly *bool `form:"disliked_only,omitempty" json:"disliked_only,omitempty"`
LikedOnly *bool `form:"liked_only,omitempty" json:"liked_only,omitempty"`
ParentId *CommentId `form:"parent_id,omitempty" json:"parent_id,omitempty"`
PostId *PostId `form:"post_id,omitempty" json:"post_id,omitempty"`
CommunityName *string `form:"community_name,omitempty" json:"community_name,omitempty"`
CommunityId *CommunityId `form:"community_id,omitempty" json:"community_id,omitempty"`
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
MaxDepth *float64 `form:"max_depth,omitempty" json:"max_depth,omitempty"`
// TimeRangeSeconds Filter to within a given time range, in seconds.
// IE 60 would give results for the past minute.
TimeRangeSeconds *float64 `form:"time_range_seconds,omitempty" json:"time_range_seconds,omitempty"`
Sort *CommentSortType `form:"sort,omitempty" json:"sort,omitempty"`
Type *ListingType `form:"type_,omitempty" json:"type_,omitempty"`
}
GetCommentsParams defines parameters for GetComments.
type GetCommentsResp ¶
type GetCommentsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetCommentsResponse
}
func ParseGetCommentsResp ¶
func ParseGetCommentsResp(rsp *http.Response) (*GetCommentsResp, error)
ParseGetCommentsResp parses an HTTP response from a GetCommentsWithResponse call
func (GetCommentsResp) Status ¶
func (r GetCommentsResp) Status() string
Status returns HTTPResponse.Status
func (GetCommentsResp) StatusCode ¶
func (r GetCommentsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommentsResponse ¶
type GetCommentsResponse struct {
Comments []CommentView `json:"comments"`
}
GetCommentsResponse The comment list response.
type GetCommentsSlimParams ¶
type GetCommentsSlimParams struct {
DislikedOnly *bool `form:"disliked_only,omitempty" json:"disliked_only,omitempty"`
LikedOnly *bool `form:"liked_only,omitempty" json:"liked_only,omitempty"`
ParentId *CommentId `form:"parent_id,omitempty" json:"parent_id,omitempty"`
PostId *PostId `form:"post_id,omitempty" json:"post_id,omitempty"`
CommunityName *string `form:"community_name,omitempty" json:"community_name,omitempty"`
CommunityId *CommunityId `form:"community_id,omitempty" json:"community_id,omitempty"`
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
MaxDepth *float64 `form:"max_depth,omitempty" json:"max_depth,omitempty"`
// TimeRangeSeconds Filter to within a given time range, in seconds.
// IE 60 would give results for the past minute.
TimeRangeSeconds *float64 `form:"time_range_seconds,omitempty" json:"time_range_seconds,omitempty"`
Sort *CommentSortType `form:"sort,omitempty" json:"sort,omitempty"`
Type *ListingType `form:"type_,omitempty" json:"type_,omitempty"`
}
GetCommentsSlimParams defines parameters for GetCommentsSlim.
type GetCommentsSlimResp ¶
type GetCommentsSlimResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetCommentsSlimResponse
}
func ParseGetCommentsSlimResp ¶
func ParseGetCommentsSlimResp(rsp *http.Response) (*GetCommentsSlimResp, error)
ParseGetCommentsSlimResp parses an HTTP response from a GetCommentsSlimWithResponse call
func (GetCommentsSlimResp) Status ¶
func (r GetCommentsSlimResp) Status() string
Status returns HTTPResponse.Status
func (GetCommentsSlimResp) StatusCode ¶
func (r GetCommentsSlimResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommentsSlimResponse ¶
type GetCommentsSlimResponse struct {
Comments []CommentSlimView `json:"comments"`
}
GetCommentsSlimResponse A slimmer comment list response, without the post or community.
type GetCommunityParams ¶
type GetCommunityParams struct {
// Name Example: star_trek , or star_trek@xyz.tld
Name *string `form:"name,omitempty" json:"name,omitempty"`
Id *CommunityId `form:"id,omitempty" json:"id,omitempty"`
}
GetCommunityParams defines parameters for GetCommunity.
type GetCommunityPendingFollowsCountParams ¶
type GetCommunityPendingFollowsCountParams struct {
CommunityId CommunityId `form:"community_id" json:"community_id"`
}
GetCommunityPendingFollowsCountParams defines parameters for GetCommunityPendingFollowsCount.
type GetCommunityPendingFollowsCountResp ¶
type GetCommunityPendingFollowsCountResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetCommunityPendingFollowsCountResponse
}
func ParseGetCommunityPendingFollowsCountResp ¶
func ParseGetCommunityPendingFollowsCountResp(rsp *http.Response) (*GetCommunityPendingFollowsCountResp, error)
ParseGetCommunityPendingFollowsCountResp parses an HTTP response from a GetCommunityPendingFollowsCountWithResponse call
func (GetCommunityPendingFollowsCountResp) Status ¶
func (r GetCommunityPendingFollowsCountResp) Status() string
Status returns HTTPResponse.Status
func (GetCommunityPendingFollowsCountResp) StatusCode ¶
func (r GetCommunityPendingFollowsCountResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommunityPendingFollowsCountResponse ¶
type GetCommunityPendingFollowsCountResponse struct {
Count float64 `json:"count"`
}
GetCommunityPendingFollowsCountResponse defines model for GetCommunityPendingFollowsCountResponse.
type GetCommunityResp ¶
type GetCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetCommunityResponse
}
func ParseGetCommunityResp ¶
func ParseGetCommunityResp(rsp *http.Response) (*GetCommunityResp, error)
ParseGetCommunityResp parses an HTTP response from a GetCommunityWithResponse call
func (GetCommunityResp) Status ¶
func (r GetCommunityResp) Status() string
Status returns HTTPResponse.Status
func (GetCommunityResp) StatusCode ¶
func (r GetCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCommunityResponse ¶
type GetCommunityResponse struct {
// CommunityView A community view.
CommunityView CommunityView `json:"community_view"`
DiscussionLanguages []LanguageId `json:"discussion_languages"`
Moderators []CommunityModeratorView `json:"moderators"`
// Site The site.
Site *Site `json:"site,omitempty"`
}
GetCommunityResponse The community response.
type GetFederatedInstancesResp ¶
type GetFederatedInstancesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetFederatedInstancesResponse
}
func ParseGetFederatedInstancesResp ¶
func ParseGetFederatedInstancesResp(rsp *http.Response) (*GetFederatedInstancesResp, error)
ParseGetFederatedInstancesResp parses an HTTP response from a GetFederatedInstancesWithResponse call
func (GetFederatedInstancesResp) Status ¶
func (r GetFederatedInstancesResp) Status() string
Status returns HTTPResponse.Status
func (GetFederatedInstancesResp) StatusCode ¶
func (r GetFederatedInstancesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetFederatedInstancesResponse ¶
type GetFederatedInstancesResponse struct {
// FederatedInstances A list of federated instances.
FederatedInstances *FederatedInstances `json:"federated_instances,omitempty"`
}
GetFederatedInstancesResponse A response of federated instances.
type GetModlogParams ¶
type GetModlogParams struct {
PageBack *bool `form:"page_back,omitempty" json:"page_back,omitempty"`
PageCursor *ModlogCombinedPaginationCursor `form:"page_cursor,omitempty" json:"page_cursor,omitempty"`
// CommentId Filter by comment.
CommentId *CommentId `form:"comment_id,omitempty" json:"comment_id,omitempty"`
// PostId Filter by post. Will include comments of that post.
PostId *PostId `form:"post_id,omitempty" json:"post_id,omitempty"`
// OtherPersonId Filter by the other / modded person.
OtherPersonId *PersonId `form:"other_person_id,omitempty" json:"other_person_id,omitempty"`
// ListingType Filter by listing type. When not using All, it will remove the non-community modlog entries,
// such as site bans, instance blocks, adding an admin, etc.
ListingType *ListingType `form:"listing_type,omitempty" json:"listing_type,omitempty"`
// Type Filter by the modlog action type.
Type *ModlogActionType `form:"type_,omitempty" json:"type_,omitempty"`
// CommunityId Filter by the community.
CommunityId *CommunityId `form:"community_id,omitempty" json:"community_id,omitempty"`
// ModPersonId Filter by the moderator.
ModPersonId *PersonId `form:"mod_person_id,omitempty" json:"mod_person_id,omitempty"`
}
GetModlogParams defines parameters for GetModlog.
type GetModlogResp ¶
type GetModlogResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetModlogResponse
}
func ParseGetModlogResp ¶
func ParseGetModlogResp(rsp *http.Response) (*GetModlogResp, error)
ParseGetModlogResp parses an HTTP response from a GetModlogWithResponse call
func (GetModlogResp) Status ¶
func (r GetModlogResp) Status() string
Status returns HTTPResponse.Status
func (GetModlogResp) StatusCode ¶
func (r GetModlogResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetModlogResponse ¶
type GetModlogResponse struct {
Modlog []ModlogCombinedView `json:"modlog"`
}
GetModlogResponse The modlog fetch response.
type GetMyUserResp ¶
type GetMyUserResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MyUserInfo
}
func ParseGetMyUserResp ¶
func ParseGetMyUserResp(rsp *http.Response) (*GetMyUserResp, error)
ParseGetMyUserResp parses an HTTP response from a GetMyUserWithResponse call
func (GetMyUserResp) Status ¶
func (r GetMyUserResp) Status() string
Status returns HTTPResponse.Status
func (GetMyUserResp) StatusCode ¶
func (r GetMyUserResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPersonDetailsParams ¶
type GetPersonDetailsParams struct {
// Username Example: dessalines , or dessalines@xyz.tld
Username *string `form:"username,omitempty" json:"username,omitempty"`
PersonId *PersonId `form:"person_id,omitempty" json:"person_id,omitempty"`
}
GetPersonDetailsParams defines parameters for GetPersonDetails.
type GetPersonDetailsResp ¶
type GetPersonDetailsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetPersonDetailsResponse
}
func ParseGetPersonDetailsResp ¶
func ParseGetPersonDetailsResp(rsp *http.Response) (*GetPersonDetailsResp, error)
ParseGetPersonDetailsResp parses an HTTP response from a GetPersonDetailsWithResponse call
func (GetPersonDetailsResp) Status ¶
func (r GetPersonDetailsResp) Status() string
Status returns HTTPResponse.Status
func (GetPersonDetailsResp) StatusCode ¶
func (r GetPersonDetailsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPersonDetailsResponse ¶
type GetPersonDetailsResponse struct {
Moderates []CommunityModeratorView `json:"moderates"`
// PersonView A person view.
PersonView PersonView `json:"person_view"`
// Site The site.
Site *Site `json:"site,omitempty"`
}
GetPersonDetailsResponse A person's details response.
type GetPostParams ¶
type GetPostParams struct {
CommentId *CommentId `form:"comment_id,omitempty" json:"comment_id,omitempty"`
Id *PostId `form:"id,omitempty" json:"id,omitempty"`
}
GetPostParams defines parameters for GetPost.
type GetPostResp ¶
type GetPostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetPostResponse
}
func ParseGetPostResp ¶
func ParseGetPostResp(rsp *http.Response) (*GetPostResp, error)
ParseGetPostResp parses an HTTP response from a GetPostWithResponse call
func (GetPostResp) StatusCode ¶
func (r GetPostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPostResponse ¶
type GetPostResponse struct {
// CommunityView A community view.
CommunityView CommunityView `json:"community_view"`
// CrossPosts A list of cross-posts, or other times / communities this link has been posted to.
CrossPosts []PostView `json:"cross_posts"`
// PostView A post view.
PostView PostView `json:"post_view"`
}
GetPostResponse The post response.
type GetPostsParams ¶
type GetPostsParams struct {
PageBack *bool `form:"page_back,omitempty" json:"page_back,omitempty"`
PageCursor *PaginationCursor `form:"page_cursor,omitempty" json:"page_cursor,omitempty"`
// NoCommentsOnly If true, then only show posts with no comments
NoCommentsOnly *bool `form:"no_comments_only,omitempty" json:"no_comments_only,omitempty"`
// MarkAsRead Whether to automatically mark fetched posts as read.
MarkAsRead *bool `form:"mark_as_read,omitempty" json:"mark_as_read,omitempty"`
// HideMedia If false, then show posts with media attached (even if your user setting is to hide them)
HideMedia *bool `form:"hide_media,omitempty" json:"hide_media,omitempty"`
// ShowNsfw If true, then show the nsfw posts (even if your user setting is to hide them)
ShowNsfw *bool `form:"show_nsfw,omitempty" json:"show_nsfw,omitempty"`
// ShowRead If true, then show the read posts (even if your user setting is to hide them)
ShowRead *bool `form:"show_read,omitempty" json:"show_read,omitempty"`
ShowHidden *bool `form:"show_hidden,omitempty" json:"show_hidden,omitempty"`
DislikedOnly *bool `form:"disliked_only,omitempty" json:"disliked_only,omitempty"`
LikedOnly *bool `form:"liked_only,omitempty" json:"liked_only,omitempty"`
ReadOnly *bool `form:"read_only,omitempty" json:"read_only,omitempty"`
SavedOnly *bool `form:"saved_only,omitempty" json:"saved_only,omitempty"`
CommunityName *string `form:"community_name,omitempty" json:"community_name,omitempty"`
CommunityId *CommunityId `form:"community_id,omitempty" json:"community_id,omitempty"`
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
// Page DEPRECATED, use page_cursor
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
// TimeRangeSeconds Filter to within a given time range, in seconds.
// IE 60 would give results for the past minute.
// Use Zero to override the local_site and local_user time_range.
TimeRangeSeconds *float64 `form:"time_range_seconds,omitempty" json:"time_range_seconds,omitempty"`
Sort *PostSortType `form:"sort,omitempty" json:"sort,omitempty"`
Type *ListingType `form:"type_,omitempty" json:"type_,omitempty"`
}
GetPostsParams defines parameters for GetPosts.
type GetPostsResp ¶
type GetPostsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetPostsResponse
}
func ParseGetPostsResp ¶
func ParseGetPostsResp(rsp *http.Response) (*GetPostsResp, error)
ParseGetPostsResp parses an HTTP response from a GetPostsWithResponse call
func (GetPostsResp) Status ¶
func (r GetPostsResp) Status() string
Status returns HTTPResponse.Status
func (GetPostsResp) StatusCode ¶
func (r GetPostsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPostsResponse ¶
type GetPostsResponse struct {
// NextPage currently this is just a wrapper around post id, but should be seen as opaque from the client's
// perspective. stringified since we might want to use arbitrary info later, with a P prepended to
// prevent ossification (api users love to make assumptions (e.g. parse stuff that looks like
// numbers as numbers) about apis that aren't part of the spec
NextPage *PaginationCursor `json:"next_page,omitempty"`
Posts []PostView `json:"posts"`
}
GetPostsResponse The post list response.
type GetRandomCommunityParams ¶
type GetRandomCommunityParams struct {
ShowNsfw *bool `form:"show_nsfw,omitempty" json:"show_nsfw,omitempty"`
Type *ListingType `form:"type_,omitempty" json:"type_,omitempty"`
}
GetRandomCommunityParams defines parameters for GetRandomCommunity.
type GetRandomCommunityResp ¶
type GetRandomCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommunityResponse
}
func ParseGetRandomCommunityResp ¶
func ParseGetRandomCommunityResp(rsp *http.Response) (*GetRandomCommunityResp, error)
ParseGetRandomCommunityResp parses an HTTP response from a GetRandomCommunityWithResponse call
func (GetRandomCommunityResp) Status ¶
func (r GetRandomCommunityResp) Status() string
Status returns HTTPResponse.Status
func (GetRandomCommunityResp) StatusCode ¶
func (r GetRandomCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRegistrationApplicationParams ¶
type GetRegistrationApplicationParams struct {
PersonId PersonId `form:"person_id" json:"person_id"`
}
GetRegistrationApplicationParams defines parameters for GetRegistrationApplication.
type GetRegistrationApplicationResp ¶
type GetRegistrationApplicationResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RegistrationApplicationResponse
}
func ParseGetRegistrationApplicationResp ¶
func ParseGetRegistrationApplicationResp(rsp *http.Response) (*GetRegistrationApplicationResp, error)
ParseGetRegistrationApplicationResp parses an HTTP response from a GetRegistrationApplicationWithResponse call
func (GetRegistrationApplicationResp) Status ¶
func (r GetRegistrationApplicationResp) Status() string
Status returns HTTPResponse.Status
func (GetRegistrationApplicationResp) StatusCode ¶
func (r GetRegistrationApplicationResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReportCountParams ¶
type GetReportCountParams struct {
CommunityId *CommunityId `form:"community_id,omitempty" json:"community_id,omitempty"`
}
GetReportCountParams defines parameters for GetReportCount.
type GetReportCountResp ¶
type GetReportCountResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetReportCountResponse
}
func ParseGetReportCountResp ¶
func ParseGetReportCountResp(rsp *http.Response) (*GetReportCountResp, error)
ParseGetReportCountResp parses an HTTP response from a GetReportCountWithResponse call
func (GetReportCountResp) Status ¶
func (r GetReportCountResp) Status() string
Status returns HTTPResponse.Status
func (GetReportCountResp) StatusCode ¶
func (r GetReportCountResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReportCountResponse ¶
type GetReportCountResponse struct {
Count float64 `json:"count"`
}
GetReportCountResponse A response for the number of reports.
type GetSiteMetadataParams ¶
type GetSiteMetadataParams struct {
Url string `form:"url" json:"url"`
}
GetSiteMetadataParams defines parameters for GetSiteMetadata.
type GetSiteMetadataResp ¶
type GetSiteMetadataResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetSiteMetadataResponse
}
func ParseGetSiteMetadataResp ¶
func ParseGetSiteMetadataResp(rsp *http.Response) (*GetSiteMetadataResp, error)
ParseGetSiteMetadataResp parses an HTTP response from a GetSiteMetadataWithResponse call
func (GetSiteMetadataResp) Status ¶
func (r GetSiteMetadataResp) Status() string
Status returns HTTPResponse.Status
func (GetSiteMetadataResp) StatusCode ¶
func (r GetSiteMetadataResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSiteMetadataResponse ¶
type GetSiteMetadataResponse struct {
// Metadata Site metadata, from its opengraph tags.
Metadata LinkMetadata `json:"metadata"`
}
GetSiteMetadataResponse The site metadata response.
type GetSiteResp ¶
type GetSiteResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetSiteResponse
}
func ParseGetSiteResp ¶
func ParseGetSiteResp(rsp *http.Response) (*GetSiteResp, error)
ParseGetSiteResp parses an HTTP response from a GetSiteWithResponse call
func (GetSiteResp) StatusCode ¶
func (r GetSiteResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSiteResponse ¶
type GetSiteResponse struct {
AdminOauthProviders []OAuthProvider `json:"admin_oauth_providers"`
Admins []PersonView `json:"admins"`
AllLanguages []Language `json:"all_languages"`
BlockedUrls []LocalSiteUrlBlocklist `json:"blocked_urls"`
DiscussionLanguages []LanguageId `json:"discussion_languages"`
ImageUploadDisabled bool `json:"image_upload_disabled"`
// OauthProviders A list of external auth methods your site supports.
OauthProviders []PublicOAuthProvider `json:"oauth_providers"`
// SiteView A site view.
SiteView SiteView `json:"site_view"`
// Tagline A tagline, shown at the top of your site.
Tagline *Tagline `json:"tagline,omitempty"`
Version string `json:"version"`
}
GetSiteResponse An expanded response for a site.
type GetUnreadCountResp ¶
type GetUnreadCountResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetUnreadCountResponse
}
func ParseGetUnreadCountResp ¶
func ParseGetUnreadCountResp(rsp *http.Response) (*GetUnreadCountResp, error)
ParseGetUnreadCountResp parses an HTTP response from a GetUnreadCountWithResponse call
func (GetUnreadCountResp) Status ¶
func (r GetUnreadCountResp) Status() string
Status returns HTTPResponse.Status
func (GetUnreadCountResp) StatusCode ¶
func (r GetUnreadCountResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUnreadCountResponse ¶
type GetUnreadCountResponse struct {
Count float64 `json:"count"`
}
GetUnreadCountResponse A response containing a count of unread notifications.
type GetUnreadRegistrationApplicationCountResp ¶
type GetUnreadRegistrationApplicationCountResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetUnreadRegistrationApplicationCountResponse
}
func ParseGetUnreadRegistrationApplicationCountResp ¶
func ParseGetUnreadRegistrationApplicationCountResp(rsp *http.Response) (*GetUnreadRegistrationApplicationCountResp, error)
ParseGetUnreadRegistrationApplicationCountResp parses an HTTP response from a GetUnreadRegistrationApplicationCountWithResponse call
func (GetUnreadRegistrationApplicationCountResp) Status ¶
func (r GetUnreadRegistrationApplicationCountResp) Status() string
Status returns HTTPResponse.Status
func (GetUnreadRegistrationApplicationCountResp) StatusCode ¶
func (r GetUnreadRegistrationApplicationCountResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUnreadRegistrationApplicationCountResponse ¶
type GetUnreadRegistrationApplicationCountResponse struct {
RegistrationApplications float64 `json:"registration_applications"`
}
GetUnreadRegistrationApplicationCountResponse The count of unread registration applications.
type HideCommunity ¶
type HideCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Hidden bool `json:"hidden"`
Reason *string `json:"reason,omitempty"`
}
HideCommunity Hide a community from the main view.
type HideCommunityJSONRequestBody ¶
type HideCommunityJSONRequestBody = HideCommunity
HideCommunityJSONRequestBody defines body for HideCommunity for application/json ContentType.
type HideCommunityResp ¶
type HideCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseHideCommunityResp ¶
func ParseHideCommunityResp(rsp *http.Response) (*HideCommunityResp, error)
ParseHideCommunityResp parses an HTTP response from a HideCommunityWithResponse call
func (HideCommunityResp) Status ¶
func (r HideCommunityResp) Status() string
Status returns HTTPResponse.Status
func (HideCommunityResp) StatusCode ¶
func (r HideCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HidePost ¶
type HidePost struct {
Hide bool `json:"hide"`
// PostId The post id.
PostId PostId `json:"post_id"`
}
HidePost Hide a post from list views
type HidePostJSONRequestBody ¶
type HidePostJSONRequestBody = HidePost
HidePostJSONRequestBody defines body for HidePost for application/json ContentType.
type HidePostResp ¶
type HidePostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseHidePostResp ¶
func ParseHidePostResp(rsp *http.Response) (*HidePostResp, error)
ParseHidePostResp parses an HTTP response from a HidePostWithResponse call
func (HidePostResp) Status ¶
func (r HidePostResp) Status() string
Status returns HTTPResponse.Status
func (HidePostResp) StatusCode ¶
func (r HidePostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImageDetails ¶
type ImageDetails struct {
Blurhash *string `json:"blurhash,omitempty"`
ContentType string `json:"content_type"`
Height float64 `json:"height"`
Link DbUrl `json:"link"`
Width float64 `json:"width"`
}
ImageDetails defines model for ImageDetails.
type ImageHealthResp ¶
type ImageHealthResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseImageHealthResp ¶
func ParseImageHealthResp(rsp *http.Response) (*ImageHealthResp, error)
ParseImageHealthResp parses an HTTP response from a ImageHealthWithResponse call
func (ImageHealthResp) Status ¶
func (r ImageHealthResp) Status() string
Status returns HTTPResponse.Status
func (ImageHealthResp) StatusCode ¶
func (r ImageHealthResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ImportSettingsJSONBody ¶
type ImportSettingsJSONBody = interface{}
ImportSettingsJSONBody defines parameters for ImportSettings.
type ImportSettingsJSONRequestBody ¶
type ImportSettingsJSONRequestBody = ImportSettingsJSONBody
ImportSettingsJSONRequestBody defines body for ImportSettings for application/json ContentType.
type ImportSettingsResp ¶
type ImportSettingsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseImportSettingsResp ¶
func ParseImportSettingsResp(rsp *http.Response) (*ImportSettingsResp, error)
ParseImportSettingsResp parses an HTTP response from a ImportSettingsWithResponse call
func (ImportSettingsResp) Status ¶
func (r ImportSettingsResp) Status() string
Status returns HTTPResponse.Status
func (ImportSettingsResp) StatusCode ¶
func (r ImportSettingsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InboxCombinedPaginationCursor ¶
type InboxCombinedPaginationCursor = string
InboxCombinedPaginationCursor like PaginationCursor but for the report_combined table
type InboxCombinedView ¶
type InboxCombinedView struct {
// contains filtered or unexported fields
}
InboxCombinedView defines model for InboxCombinedView.
func (InboxCombinedView) AsInboxCombinedView0 ¶
func (t InboxCombinedView) AsInboxCombinedView0() (InboxCombinedView0, error)
AsInboxCombinedView0 returns the union data inside the InboxCombinedView as a InboxCombinedView0
func (InboxCombinedView) AsInboxCombinedView1 ¶
func (t InboxCombinedView) AsInboxCombinedView1() (InboxCombinedView1, error)
AsInboxCombinedView1 returns the union data inside the InboxCombinedView as a InboxCombinedView1
func (InboxCombinedView) AsInboxCombinedView2 ¶
func (t InboxCombinedView) AsInboxCombinedView2() (InboxCombinedView2, error)
AsInboxCombinedView2 returns the union data inside the InboxCombinedView as a InboxCombinedView2
func (InboxCombinedView) AsInboxCombinedView3 ¶
func (t InboxCombinedView) AsInboxCombinedView3() (InboxCombinedView3, error)
AsInboxCombinedView3 returns the union data inside the InboxCombinedView as a InboxCombinedView3
func (*InboxCombinedView) FromInboxCombinedView0 ¶
func (t *InboxCombinedView) FromInboxCombinedView0(v InboxCombinedView0) error
FromInboxCombinedView0 overwrites any union data inside the InboxCombinedView as the provided InboxCombinedView0
func (*InboxCombinedView) FromInboxCombinedView1 ¶
func (t *InboxCombinedView) FromInboxCombinedView1(v InboxCombinedView1) error
FromInboxCombinedView1 overwrites any union data inside the InboxCombinedView as the provided InboxCombinedView1
func (*InboxCombinedView) FromInboxCombinedView2 ¶
func (t *InboxCombinedView) FromInboxCombinedView2(v InboxCombinedView2) error
FromInboxCombinedView2 overwrites any union data inside the InboxCombinedView as the provided InboxCombinedView2
func (*InboxCombinedView) FromInboxCombinedView3 ¶
func (t *InboxCombinedView) FromInboxCombinedView3(v InboxCombinedView3) error
FromInboxCombinedView3 overwrites any union data inside the InboxCombinedView as the provided InboxCombinedView3
func (InboxCombinedView) MarshalJSON ¶
func (t InboxCombinedView) MarshalJSON() ([]byte, error)
func (*InboxCombinedView) MergeInboxCombinedView0 ¶
func (t *InboxCombinedView) MergeInboxCombinedView0(v InboxCombinedView0) error
MergeInboxCombinedView0 performs a merge with any union data inside the InboxCombinedView, using the provided InboxCombinedView0
func (*InboxCombinedView) MergeInboxCombinedView1 ¶
func (t *InboxCombinedView) MergeInboxCombinedView1(v InboxCombinedView1) error
MergeInboxCombinedView1 performs a merge with any union data inside the InboxCombinedView, using the provided InboxCombinedView1
func (*InboxCombinedView) MergeInboxCombinedView2 ¶
func (t *InboxCombinedView) MergeInboxCombinedView2(v InboxCombinedView2) error
MergeInboxCombinedView2 performs a merge with any union data inside the InboxCombinedView, using the provided InboxCombinedView2
func (*InboxCombinedView) MergeInboxCombinedView3 ¶
func (t *InboxCombinedView) MergeInboxCombinedView3(v InboxCombinedView3) error
MergeInboxCombinedView3 performs a merge with any union data inside the InboxCombinedView, using the provided InboxCombinedView3
func (*InboxCombinedView) UnmarshalJSON ¶
func (t *InboxCombinedView) UnmarshalJSON(b []byte) error
type InboxCombinedView0 ¶
type InboxCombinedView0 struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Comment A comment.
Comment Comment `json:"comment"`
// CommentReply A comment reply.
CommentReply CommentReply `json:"comment_reply"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// Recipient A person.
Recipient Person `json:"recipient"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type InboxCombinedView0Type `json:"type_"`
}
InboxCombinedView0 defines model for .
type InboxCombinedView0Type ¶
type InboxCombinedView0Type string
InboxCombinedView0Type defines model for InboxCombinedView.0.Type.
const (
InboxCombinedView0TypeCommentReply InboxCombinedView0Type = "CommentReply"
)
Defines values for InboxCombinedView0Type.
type InboxCombinedView1 ¶
type InboxCombinedView1 struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Comment A comment.
Comment Comment `json:"comment"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// PersonCommentMention A person mention.
PersonCommentMention PersonCommentMention `json:"person_comment_mention"`
// Post A post.
Post Post `json:"post"`
// Recipient A person.
Recipient Person `json:"recipient"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type InboxCombinedView1Type `json:"type_"`
}
InboxCombinedView1 defines model for .
type InboxCombinedView1Type ¶
type InboxCombinedView1Type string
InboxCombinedView1Type defines model for InboxCombinedView.1.Type.
const (
CommentMention InboxCombinedView1Type = "CommentMention"
)
Defines values for InboxCombinedView1Type.
type InboxCombinedView2 ¶
type InboxCombinedView2 struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
Hidden bool `json:"hidden"`
ImageDetails *ImageDetails `json:"image_details,omitempty"`
MyVote *float64 `json:"my_vote,omitempty"`
// PersonPostMention A person mention.
PersonPostMention PersonPostMention `json:"person_post_mention"`
// Post A post.
Post Post `json:"post"`
// PostTags we wrap this in a struct so we can implement FromSqlRow<Json> for it
PostTags PostTags `json:"post_tags"`
Read bool `json:"read"`
// Recipient A person.
Recipient Person `json:"recipient"`
// Saved The time when the post was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type InboxCombinedView2Type `json:"type_"`
UnreadComments float64 `json:"unread_comments"`
}
InboxCombinedView2 defines model for .
type InboxCombinedView2Type ¶
type InboxCombinedView2Type string
InboxCombinedView2Type defines model for InboxCombinedView.2.Type.
const (
PostMention InboxCombinedView2Type = "PostMention"
)
Defines values for InboxCombinedView2Type.
type InboxCombinedView3 ¶
type InboxCombinedView3 struct {
// Creator A person.
Creator Person `json:"creator"`
// PrivateMessage A private message.
PrivateMessage PrivateMessage `json:"private_message"`
// Recipient A person.
Recipient Person `json:"recipient"`
Type InboxCombinedView3Type `json:"type_"`
}
InboxCombinedView3 defines model for .
type InboxCombinedView3Type ¶
type InboxCombinedView3Type string
InboxCombinedView3Type defines model for InboxCombinedView.3.Type.
const (
InboxCombinedView3TypePrivateMessage InboxCombinedView3Type = "PrivateMessage"
)
Defines values for InboxCombinedView3Type.
type InboxDataType ¶
type InboxDataType string
InboxDataType A list of possible types for the inbox.
const ( InboxDataTypeAll InboxDataType = "All" InboxDataTypeCommentMention InboxDataType = "CommentMention" InboxDataTypeCommentReply InboxDataType = "CommentReply" InboxDataTypePostMention InboxDataType = "PostMention" InboxDataTypePrivateMessage InboxDataType = "PrivateMessage" )
Defines values for InboxDataType.
type Instance ¶
type Instance struct {
Domain string `json:"domain"`
// Id The instance id.
Id InstanceId `json:"id"`
Published string `json:"published"`
Software *string `json:"software,omitempty"`
Updated *string `json:"updated,omitempty"`
Version *string `json:"version,omitempty"`
}
Instance A federated instance / site.
type InstanceWithFederationState ¶
type InstanceWithFederationState struct {
Domain string `json:"domain"`
FederationState *ReadableFederationState `json:"federation_state,omitempty"`
// Id The instance id.
Id InstanceId `json:"id"`
Published string `json:"published"`
Software *string `json:"software,omitempty"`
Updated *string `json:"updated,omitempty"`
Version *string `json:"version,omitempty"`
}
InstanceWithFederationState defines model for InstanceWithFederationState.
type Language ¶
type Language struct {
Code string `json:"code"`
// Id The language id.
Id LanguageId `json:"id"`
Name string `json:"name"`
}
Language A language.
type LeaveAdminResp ¶
type LeaveAdminResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetSiteResponse
}
func ParseLeaveAdminResp ¶
func ParseLeaveAdminResp(rsp *http.Response) (*LeaveAdminResp, error)
ParseLeaveAdminResp parses an HTTP response from a LeaveAdminWithResponse call
func (LeaveAdminResp) Status ¶
func (r LeaveAdminResp) Status() string
Status returns HTTPResponse.Status
func (LeaveAdminResp) StatusCode ¶
func (r LeaveAdminResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LikeCommentJSONRequestBody ¶
type LikeCommentJSONRequestBody = CreateCommentLike
LikeCommentJSONRequestBody defines body for LikeComment for application/json ContentType.
type LikeCommentResp ¶
type LikeCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentResponse
}
func ParseLikeCommentResp ¶
func ParseLikeCommentResp(rsp *http.Response) (*LikeCommentResp, error)
ParseLikeCommentResp parses an HTTP response from a LikeCommentWithResponse call
func (LikeCommentResp) Status ¶
func (r LikeCommentResp) Status() string
Status returns HTTPResponse.Status
func (LikeCommentResp) StatusCode ¶
func (r LikeCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LikePostJSONRequestBody ¶
type LikePostJSONRequestBody = CreatePostLike
LikePostJSONRequestBody defines body for LikePost for application/json ContentType.
type LikePostResp ¶
type LikePostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostResponse
}
func ParseLikePostResp ¶
func ParseLikePostResp(rsp *http.Response) (*LikePostResp, error)
ParseLikePostResp parses an HTTP response from a LikePostWithResponse call
func (LikePostResp) Status ¶
func (r LikePostResp) Status() string
Status returns HTTPResponse.Status
func (LikePostResp) StatusCode ¶
func (r LikePostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LinkMetadata ¶
type LinkMetadata struct {
ContentType *string `json:"content_type,omitempty"`
Description *string `json:"description,omitempty"`
EmbedVideoUrl *DbUrl `json:"embed_video_url,omitempty"`
Image *DbUrl `json:"image,omitempty"`
Title *string `json:"title,omitempty"`
}
LinkMetadata Site metadata, from its opengraph tags.
type ListAllMediaParams ¶
type ListAllMediaParams struct {
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
}
ListAllMediaParams defines parameters for ListAllMedia.
type ListAllMediaResp ¶
type ListAllMediaResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListMediaResponse
}
func ParseListAllMediaResp ¶
func ParseListAllMediaResp(rsp *http.Response) (*ListAllMediaResp, error)
ParseListAllMediaResp parses an HTTP response from a ListAllMediaWithResponse call
func (ListAllMediaResp) Status ¶
func (r ListAllMediaResp) Status() string
Status returns HTTPResponse.Status
func (ListAllMediaResp) StatusCode ¶
func (r ListAllMediaResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCommentLikesParams ¶
type ListCommentLikesParams struct {
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
CommentId CommentId `form:"comment_id" json:"comment_id"`
}
ListCommentLikesParams defines parameters for ListCommentLikes.
type ListCommentLikesResp ¶
type ListCommentLikesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListCommentLikesResponse
}
func ParseListCommentLikesResp ¶
func ParseListCommentLikesResp(rsp *http.Response) (*ListCommentLikesResp, error)
ParseListCommentLikesResp parses an HTTP response from a ListCommentLikesWithResponse call
func (ListCommentLikesResp) Status ¶
func (r ListCommentLikesResp) Status() string
Status returns HTTPResponse.Status
func (ListCommentLikesResp) StatusCode ¶
func (r ListCommentLikesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCommentLikesResponse ¶
type ListCommentLikesResponse struct {
CommentLikes []VoteView `json:"comment_likes"`
}
ListCommentLikesResponse The comment likes response
type ListCommunitiesParams ¶
type ListCommunitiesParams struct {
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
ShowNsfw *bool `form:"show_nsfw,omitempty" json:"show_nsfw,omitempty"`
// TimeRangeSeconds Filter to within a given time range, in seconds.
// IE 60 would give results for the past minute.
TimeRangeSeconds *float64 `form:"time_range_seconds,omitempty" json:"time_range_seconds,omitempty"`
Sort *CommunitySortType `form:"sort,omitempty" json:"sort,omitempty"`
Type *ListingType `form:"type_,omitempty" json:"type_,omitempty"`
}
ListCommunitiesParams defines parameters for ListCommunities.
type ListCommunitiesResp ¶
type ListCommunitiesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListCommunitiesResponse
}
func ParseListCommunitiesResp ¶
func ParseListCommunitiesResp(rsp *http.Response) (*ListCommunitiesResp, error)
ParseListCommunitiesResp parses an HTTP response from a ListCommunitiesWithResponse call
func (ListCommunitiesResp) Status ¶
func (r ListCommunitiesResp) Status() string
Status returns HTTPResponse.Status
func (ListCommunitiesResp) StatusCode ¶
func (r ListCommunitiesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCommunitiesResponse ¶
type ListCommunitiesResponse struct {
Communities []CommunityView `json:"communities"`
}
ListCommunitiesResponse The response for listing communities.
type ListCommunityPendingFollowsParams ¶
type ListCommunityPendingFollowsParams struct {
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
AllCommunities *bool `form:"all_communities,omitempty" json:"all_communities,omitempty"`
// PendingOnly Only shows the unapproved applications
PendingOnly *bool `form:"pending_only,omitempty" json:"pending_only,omitempty"`
}
ListCommunityPendingFollowsParams defines parameters for ListCommunityPendingFollows.
type ListCommunityPendingFollowsResp ¶
type ListCommunityPendingFollowsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListCommunityPendingFollowsResponse
}
func ParseListCommunityPendingFollowsResp ¶
func ParseListCommunityPendingFollowsResp(rsp *http.Response) (*ListCommunityPendingFollowsResp, error)
ParseListCommunityPendingFollowsResp parses an HTTP response from a ListCommunityPendingFollowsWithResponse call
func (ListCommunityPendingFollowsResp) Status ¶
func (r ListCommunityPendingFollowsResp) Status() string
Status returns HTTPResponse.Status
func (ListCommunityPendingFollowsResp) StatusCode ¶
func (r ListCommunityPendingFollowsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCommunityPendingFollowsResponse ¶
type ListCommunityPendingFollowsResponse struct {
Items []PendingFollow `json:"items"`
}
ListCommunityPendingFollowsResponse defines model for ListCommunityPendingFollowsResponse.
type ListCustomEmojisParams ¶
type ListCustomEmojisParams struct {
IgnorePageLimits *bool `form:"ignore_page_limits,omitempty" json:"ignore_page_limits,omitempty"`
Category *string `form:"category,omitempty" json:"category,omitempty"`
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
}
ListCustomEmojisParams defines parameters for ListCustomEmojis.
type ListCustomEmojisResp ¶
type ListCustomEmojisResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListCustomEmojisResponse
}
func ParseListCustomEmojisResp ¶
func ParseListCustomEmojisResp(rsp *http.Response) (*ListCustomEmojisResp, error)
ParseListCustomEmojisResp parses an HTTP response from a ListCustomEmojisWithResponse call
func (ListCustomEmojisResp) Status ¶
func (r ListCustomEmojisResp) Status() string
Status returns HTTPResponse.Status
func (ListCustomEmojisResp) StatusCode ¶
func (r ListCustomEmojisResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCustomEmojisResponse ¶
type ListCustomEmojisResponse struct {
CustomEmojis []CustomEmojiView `json:"custom_emojis"`
}
ListCustomEmojisResponse A response for custom emojis.
type ListInboxParams ¶
type ListInboxParams struct {
PageBack *bool `form:"page_back,omitempty" json:"page_back,omitempty"`
PageCursor *InboxCombinedPaginationCursor `form:"page_cursor,omitempty" json:"page_cursor,omitempty"`
UnreadOnly *bool `form:"unread_only,omitempty" json:"unread_only,omitempty"`
Type *InboxDataType `form:"type_,omitempty" json:"type_,omitempty"`
}
ListInboxParams defines parameters for ListInbox.
type ListInboxResp ¶
type ListInboxResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListInboxResponse
}
func ParseListInboxResp ¶
func ParseListInboxResp(rsp *http.Response) (*ListInboxResp, error)
ParseListInboxResp parses an HTTP response from a ListInboxWithResponse call
func (ListInboxResp) Status ¶
func (r ListInboxResp) Status() string
Status returns HTTPResponse.Status
func (ListInboxResp) StatusCode ¶
func (r ListInboxResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInboxResponse ¶
type ListInboxResponse struct {
Inbox []InboxCombinedView `json:"inbox"`
}
ListInboxResponse Get your inbox (replies, comment mentions, post mentions, and messages)
type ListLoginsResp ¶
type ListLoginsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]LoginToken
}
func ParseListLoginsResp ¶
func ParseListLoginsResp(rsp *http.Response) (*ListLoginsResp, error)
ParseListLoginsResp parses an HTTP response from a ListLoginsWithResponse call
func (ListLoginsResp) Status ¶
func (r ListLoginsResp) Status() string
Status returns HTTPResponse.Status
func (ListLoginsResp) StatusCode ¶
func (r ListLoginsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMediaParams ¶
type ListMediaParams struct {
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
}
ListMediaParams defines parameters for ListMedia.
type ListMediaResp ¶
type ListMediaResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListMediaResponse
}
func ParseListMediaResp ¶
func ParseListMediaResp(rsp *http.Response) (*ListMediaResp, error)
ParseListMediaResp parses an HTTP response from a ListMediaWithResponse call
func (ListMediaResp) Status ¶
func (r ListMediaResp) Status() string
Status returns HTTPResponse.Status
func (ListMediaResp) StatusCode ¶
func (r ListMediaResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMediaResponse ¶
type ListMediaResponse struct {
Images []LocalImageView `json:"images"`
}
ListMediaResponse defines model for ListMediaResponse.
type ListPersonContentParams ¶
type ListPersonContentParams struct {
PageBack *bool `form:"page_back,omitempty" json:"page_back,omitempty"`
PageCursor *PersonContentCombinedPaginationCursor `form:"page_cursor,omitempty" json:"page_cursor,omitempty"`
// Username Example: dessalines , or dessalines@xyz.tld
Username *string `form:"username,omitempty" json:"username,omitempty"`
PersonId *PersonId `form:"person_id,omitempty" json:"person_id,omitempty"`
Type *PersonContentType `form:"type_,omitempty" json:"type_,omitempty"`
}
ListPersonContentParams defines parameters for ListPersonContent.
type ListPersonContentResp ¶
type ListPersonContentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListPersonContentResponse
}
func ParseListPersonContentResp ¶
func ParseListPersonContentResp(rsp *http.Response) (*ListPersonContentResp, error)
ParseListPersonContentResp parses an HTTP response from a ListPersonContentWithResponse call
func (ListPersonContentResp) Status ¶
func (r ListPersonContentResp) Status() string
Status returns HTTPResponse.Status
func (ListPersonContentResp) StatusCode ¶
func (r ListPersonContentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPersonContentResponse ¶
type ListPersonContentResponse struct {
Content []PersonContentCombinedView `json:"content"`
}
ListPersonContentResponse A person's content response.
type ListPersonSavedParams ¶
type ListPersonSavedParams struct {
PageBack *bool `form:"page_back,omitempty" json:"page_back,omitempty"`
PageCursor *PersonSavedCombinedPaginationCursor `form:"page_cursor,omitempty" json:"page_cursor,omitempty"`
Type *PersonContentType `form:"type_,omitempty" json:"type_,omitempty"`
}
ListPersonSavedParams defines parameters for ListPersonSaved.
type ListPersonSavedResp ¶
type ListPersonSavedResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListPersonSavedResponse
}
func ParseListPersonSavedResp ¶
func ParseListPersonSavedResp(rsp *http.Response) (*ListPersonSavedResp, error)
ParseListPersonSavedResp parses an HTTP response from a ListPersonSavedWithResponse call
func (ListPersonSavedResp) Status ¶
func (r ListPersonSavedResp) Status() string
Status returns HTTPResponse.Status
func (ListPersonSavedResp) StatusCode ¶
func (r ListPersonSavedResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPersonSavedResponse ¶
type ListPersonSavedResponse struct {
Saved []PersonContentCombinedView `json:"saved"`
}
ListPersonSavedResponse A person's saved content response.
type ListPostLikesParams ¶
type ListPostLikesParams struct {
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
PostId PostId `form:"post_id" json:"post_id"`
}
ListPostLikesParams defines parameters for ListPostLikes.
type ListPostLikesResp ¶
type ListPostLikesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListPostLikesResponse
}
func ParseListPostLikesResp ¶
func ParseListPostLikesResp(rsp *http.Response) (*ListPostLikesResp, error)
ParseListPostLikesResp parses an HTTP response from a ListPostLikesWithResponse call
func (ListPostLikesResp) Status ¶
func (r ListPostLikesResp) Status() string
Status returns HTTPResponse.Status
func (ListPostLikesResp) StatusCode ¶
func (r ListPostLikesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPostLikesResponse ¶
type ListPostLikesResponse struct {
PostLikes []VoteView `json:"post_likes"`
}
ListPostLikesResponse The post likes response
type ListRegistrationApplicationsParams ¶
type ListRegistrationApplicationsParams struct {
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
// UnreadOnly Only shows the unread applications (IE those without an admin actor)
UnreadOnly *bool `form:"unread_only,omitempty" json:"unread_only,omitempty"`
}
ListRegistrationApplicationsParams defines parameters for ListRegistrationApplications.
type ListRegistrationApplicationsResp ¶
type ListRegistrationApplicationsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListRegistrationApplicationsResponse
}
func ParseListRegistrationApplicationsResp ¶
func ParseListRegistrationApplicationsResp(rsp *http.Response) (*ListRegistrationApplicationsResp, error)
ParseListRegistrationApplicationsResp parses an HTTP response from a ListRegistrationApplicationsWithResponse call
func (ListRegistrationApplicationsResp) Status ¶
func (r ListRegistrationApplicationsResp) Status() string
Status returns HTTPResponse.Status
func (ListRegistrationApplicationsResp) StatusCode ¶
func (r ListRegistrationApplicationsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRegistrationApplicationsResponse ¶
type ListRegistrationApplicationsResponse struct {
RegistrationApplications []RegistrationApplicationView `json:"registration_applications"`
}
ListRegistrationApplicationsResponse The list of registration applications.
type ListReportsParams ¶
type ListReportsParams struct {
// MyReportsOnly If true, view all your created reports. Works for non-admins/mods also.
MyReportsOnly *bool `form:"my_reports_only,omitempty" json:"my_reports_only,omitempty"`
// ShowCommunityRuleViolations Only for admins: also show reports with `violates_instance_rules=false`
ShowCommunityRuleViolations *bool `form:"show_community_rule_violations,omitempty" json:"show_community_rule_violations,omitempty"`
PageBack *bool `form:"page_back,omitempty" json:"page_back,omitempty"`
PageCursor *ReportCombinedPaginationCursor `form:"page_cursor,omitempty" json:"page_cursor,omitempty"`
// CommunityId if no community is given, it returns reports for all communities moderated by the auth user
CommunityId *CommunityId `form:"community_id,omitempty" json:"community_id,omitempty"`
// PostId Filter by the post id. Can return either comment or post reports.
PostId *PostId `form:"post_id,omitempty" json:"post_id,omitempty"`
// Type Filter the type of report.
Type *ReportType `form:"type_,omitempty" json:"type_,omitempty"`
// UnresolvedOnly Only shows the unresolved reports
UnresolvedOnly *bool `form:"unresolved_only,omitempty" json:"unresolved_only,omitempty"`
}
ListReportsParams defines parameters for ListReports.
type ListReportsResp ¶
type ListReportsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListReportsResponse
}
func ParseListReportsResp ¶
func ParseListReportsResp(rsp *http.Response) (*ListReportsResp, error)
ParseListReportsResp parses an HTTP response from a ListReportsWithResponse call
func (ListReportsResp) Status ¶
func (r ListReportsResp) Status() string
Status returns HTTPResponse.Status
func (ListReportsResp) StatusCode ¶
func (r ListReportsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListReportsResponse ¶
type ListReportsResponse struct {
Reports []ReportCombinedView `json:"reports"`
}
ListReportsResponse The post reports response.
type ListTaglinesParams ¶
type ListTaglinesParams struct {
Limit *float64 `form:"limit,omitempty" json:"limit,omitempty"`
Page *float64 `form:"page,omitempty" json:"page,omitempty"`
}
ListTaglinesParams defines parameters for ListTaglines.
type ListTaglinesResp ¶
type ListTaglinesResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListTaglinesResponse
}
func ParseListTaglinesResp ¶
func ParseListTaglinesResp(rsp *http.Response) (*ListTaglinesResp, error)
ParseListTaglinesResp parses an HTTP response from a ListTaglinesWithResponse call
func (ListTaglinesResp) Status ¶
func (r ListTaglinesResp) Status() string
Status returns HTTPResponse.Status
func (ListTaglinesResp) StatusCode ¶
func (r ListTaglinesResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTaglinesResponse ¶
type ListTaglinesResponse struct {
Taglines []Tagline `json:"taglines"`
}
ListTaglinesResponse A response for taglines.
type ListingType ¶
type ListingType string
ListingType A listing type for post and comment list fetches.
const ( ListingTypeAll ListingType = "All" ListingTypeLocal ListingType = "Local" ListingTypeModeratorView ListingType = "ModeratorView" ListingTypeSubscribed ListingType = "Subscribed" )
Defines values for ListingType.
type LocalImage ¶
type LocalImage struct {
// LocalUserId The local user id.
LocalUserId *LocalUserId `json:"local_user_id,omitempty"`
PictrsAlias string `json:"pictrs_alias"`
Published string `json:"published"`
}
LocalImage defines model for LocalImage.
type LocalImageView ¶
type LocalImageView struct {
LocalImage LocalImage `json:"local_image"`
// Person A person.
Person Person `json:"person"`
}
LocalImageView A local image view.
type LocalSite ¶
type LocalSite struct {
// ActorNameMaxLength The max actor name length.
ActorNameMaxLength float64 `json:"actor_name_max_length"`
// ApplicationEmailAdmins Whether new applications email admins.
ApplicationEmailAdmins bool `json:"application_email_admins"`
// ApplicationQuestion An optional registration application questionnaire in markdown.
ApplicationQuestion *string `json:"application_question,omitempty"`
// CaptchaDifficulty The captcha difficulty.
CaptchaDifficulty string `json:"captcha_difficulty"`
// CaptchaEnabled Whether captcha is enabled.
CaptchaEnabled bool `json:"captcha_enabled"`
// CommentDownvotes The federation mode for an item
CommentDownvotes FederationMode `json:"comment_downvotes"`
// CommentUpvotes The federation mode for an item
CommentUpvotes FederationMode `json:"comment_upvotes"`
Comments float64 `json:"comments"`
Communities float64 `json:"communities"`
// CommunityCreationAdminOnly Whether only admins can create communities.
CommunityCreationAdminOnly bool `json:"community_creation_admin_only"`
// DefaultCommentSortType The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultCommentSortType CommentSortType `json:"default_comment_sort_type"`
// DefaultPostListingMode A post-view mode that changes how multiple post listings look.
DefaultPostListingMode PostListingMode `json:"default_post_listing_mode"`
// DefaultPostListingType A listing type for post and comment list fetches.
DefaultPostListingType ListingType `json:"default_post_listing_type"`
// DefaultPostSortType The post sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultPostSortType PostSortType `json:"default_post_sort_type"`
// DefaultPostTimeRangeSeconds A default time range limit to apply to post sorts, in seconds.
DefaultPostTimeRangeSeconds *float64 `json:"default_post_time_range_seconds,omitempty"`
// DefaultTheme The default front-end theme.
DefaultTheme string `json:"default_theme"`
// DisableDonationDialog If this is true, users will never see the dialog asking to support Lemmy development with
// donations.
DisableDonationDialog bool `json:"disable_donation_dialog"`
// DisallowNsfwContent Block NSFW content being created
DisallowNsfwContent bool `json:"disallow_nsfw_content"`
// FederationEnabled Whether federation is enabled.
FederationEnabled bool `json:"federation_enabled"`
// FederationSignedFetch Whether to sign outgoing Activitypub fetches with private key of local instance. Some
// Fediverse instances and platforms require this.
FederationSignedFetch bool `json:"federation_signed_fetch"`
// HideModlogModNames Whether to hide mod names on the modlog.
HideModlogModNames bool `json:"hide_modlog_mod_names"`
// Id The local site id.
Id LocalSiteId `json:"id"`
// LegalInformation An optional legal disclaimer page.
LegalInformation *string `json:"legal_information,omitempty"`
// OauthRegistration Whether or not external auth methods can auto-register users.
OauthRegistration bool `json:"oauth_registration"`
// PostDownvotes The federation mode for an item
PostDownvotes FederationMode `json:"post_downvotes"`
// PostUpvotes The federation mode for an item
PostUpvotes FederationMode `json:"post_upvotes"`
Posts float64 `json:"posts"`
// PrivateInstance Whether the instance is private or public.
PrivateInstance bool `json:"private_instance"`
Published string `json:"published"`
// RegistrationMode The registration mode for your site. Determines what happens after a user signs up.
RegistrationMode RegistrationMode `json:"registration_mode"`
// ReportsEmailAdmins Whether to email admins on new reports.
ReportsEmailAdmins bool `json:"reports_email_admins"`
// RequireEmailVerification Whether emails are required.
RequireEmailVerification bool `json:"require_email_verification"`
// SiteId The site id.
SiteId SiteId `json:"site_id"`
// SiteSetup True if the site is set up.
SiteSetup bool `json:"site_setup"`
// SlurFilterRegex An optional regex to filter words.
SlurFilterRegex *string `json:"slur_filter_regex,omitempty"`
Updated *string `json:"updated,omitempty"`
Users float64 `json:"users"`
// UsersActiveDay The number of users with any activity in the last day.
UsersActiveDay float64 `json:"users_active_day"`
// UsersActiveHalfYear The number of users with any activity in the last half year.
UsersActiveHalfYear float64 `json:"users_active_half_year"`
// UsersActiveMonth The number of users with any activity in the last month.
UsersActiveMonth float64 `json:"users_active_month"`
// UsersActiveWeek The number of users with any activity in the last week.
UsersActiveWeek float64 `json:"users_active_week"`
}
LocalSite The local site.
type LocalSiteRateLimit ¶
type LocalSiteRateLimit struct {
Comment float64 `json:"comment"`
CommentPerSecond float64 `json:"comment_per_second"`
Image float64 `json:"image"`
ImagePerSecond float64 `json:"image_per_second"`
ImportUserSettings float64 `json:"import_user_settings"`
ImportUserSettingsPerSecond float64 `json:"import_user_settings_per_second"`
// LocalSiteId The local site id.
LocalSiteId LocalSiteId `json:"local_site_id"`
Message float64 `json:"message"`
MessagePerSecond float64 `json:"message_per_second"`
Post float64 `json:"post"`
PostPerSecond float64 `json:"post_per_second"`
Published string `json:"published"`
Register float64 `json:"register"`
RegisterPerSecond float64 `json:"register_per_second"`
Search float64 `json:"search"`
SearchPerSecond float64 `json:"search_per_second"`
Updated *string `json:"updated,omitempty"`
}
LocalSiteRateLimit Rate limits for your site. Given in count / length of time.
type LocalSiteUrlBlocklist ¶
type LocalSiteUrlBlocklist struct {
Id float64 `json:"id"`
Published string `json:"published"`
Updated *string `json:"updated,omitempty"`
Url string `json:"url"`
}
LocalSiteUrlBlocklist defines model for LocalSiteUrlBlocklist.
type LocalUser ¶
type LocalUser struct {
// AcceptedApplication Whether their registration application has been accepted.
AcceptedApplication bool `json:"accepted_application"`
// Admin Whether the person is an admin.
Admin bool `json:"admin"`
// AutoMarkFetchedPostsAsRead Whether to automatically mark fetched posts as read.
AutoMarkFetchedPostsAsRead bool `json:"auto_mark_fetched_posts_as_read"`
BlurNsfw bool `json:"blur_nsfw"`
// CollapseBotComments Whether to auto-collapse bot comments.
CollapseBotComments bool `json:"collapse_bot_comments"`
// DefaultCommentSortType The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultCommentSortType CommentSortType `json:"default_comment_sort_type"`
// DefaultListingType A listing type for post and comment list fetches.
DefaultListingType ListingType `json:"default_listing_type"`
// DefaultPostSortType The post sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultPostSortType PostSortType `json:"default_post_sort_type"`
// DefaultPostTimeRangeSeconds A default time range limit to apply to post sorts, in seconds.
DefaultPostTimeRangeSeconds *float64 `json:"default_post_time_range_seconds,omitempty"`
Email *SensitiveString `json:"email,omitempty"`
// EmailVerified Whether their email has been verified.
EmailVerified bool `json:"email_verified"`
// EnableAnimatedImages Whether user avatars and inline images in the UI that are gifs should be allowed to play or
// should be paused
EnableAnimatedImages bool `json:"enable_animated_images"`
EnableKeyboardNavigation bool `json:"enable_keyboard_navigation"`
// EnablePrivateMessages Whether a user can send / receive private messages
EnablePrivateMessages bool `json:"enable_private_messages"`
// HideMedia Whether to hide posts containing images/videos
HideMedia bool `json:"hide_media"`
// Id The local user id.
Id LocalUserId `json:"id"`
// InfiniteScrollEnabled Whether infinite scroll is enabled.
InfiniteScrollEnabled bool `json:"infinite_scroll_enabled"`
InterfaceLanguage string `json:"interface_language"`
// LastDonationNotification The last time a donation request was shown to this user. If this is more than a year ago,
// a new notification request should be shown.
LastDonationNotification string `json:"last_donation_notification"`
// OpenLinksInNewTab Open links in a new tab.
OpenLinksInNewTab bool `json:"open_links_in_new_tab"`
// PersonId The person id.
PersonId PersonId `json:"person_id"`
// PostListingMode A post-view mode that changes how multiple post listings look.
PostListingMode PostListingMode `json:"post_listing_mode"`
SendNotificationsToEmail bool `json:"send_notifications_to_email"`
// ShowAvatars Whether to show avatars.
ShowAvatars bool `json:"show_avatars"`
// ShowBotAccounts Whether to show bot accounts.
ShowBotAccounts bool `json:"show_bot_accounts"`
ShowDownvotes bool `json:"show_downvotes"`
// ShowNsfw Whether to show NSFW content.
ShowNsfw bool `json:"show_nsfw"`
// ShowReadPosts Whether to show read posts.
ShowReadPosts bool `json:"show_read_posts"`
ShowScore bool `json:"show_score"`
ShowUpvotePercentage bool `json:"show_upvote_percentage"`
ShowUpvotes bool `json:"show_upvotes"`
Theme string `json:"theme"`
Totp2faEnabled bool `json:"totp_2fa_enabled"`
}
LocalUser A local user.
type LocalUserView ¶
type LocalUserView struct {
// LocalUser A local user.
LocalUser LocalUser `json:"local_user"`
// Person A person.
Person Person `json:"person"`
}
LocalUserView A local user view.
type LockPost ¶
type LockPost struct {
Locked bool `json:"locked"`
// PostId The post id.
PostId PostId `json:"post_id"`
}
LockPost Lock a post (prevent new comments).
type LockPostJSONRequestBody ¶
type LockPostJSONRequestBody = LockPost
LockPostJSONRequestBody defines body for LockPost for application/json ContentType.
type LockPostResp ¶
type LockPostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostResponse
}
func ParseLockPostResp ¶
func ParseLockPostResp(rsp *http.Response) (*LockPostResp, error)
ParseLockPostResp parses an HTTP response from a LockPostWithResponse call
func (LockPostResp) Status ¶
func (r LockPostResp) Status() string
Status returns HTTPResponse.Status
func (LockPostResp) StatusCode ¶
func (r LockPostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Login ¶
type Login struct {
Password SensitiveString `json:"password"`
// Totp2faToken May be required, if totp is enabled for their account.
Totp2faToken *string `json:"totp_2fa_token,omitempty"`
UsernameOrEmail SensitiveString `json:"username_or_email"`
}
Login Logging into lemmy.
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = Login
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginResp ¶
type LoginResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LoginResponse
}
func ParseLoginResp ¶
ParseLoginResp parses an HTTP response from a LoginWithResponse call
func (LoginResp) StatusCode ¶
StatusCode returns HTTPResponse.StatusCode
type LoginResponse ¶
type LoginResponse struct {
Jwt *SensitiveString `json:"jwt,omitempty"`
// RegistrationCreated If registration applications are required, this will return true for a signup response.
RegistrationCreated bool `json:"registration_created"`
// VerifyEmailSent If email verifications are required, this will return true for a signup response.
VerifyEmailSent bool `json:"verify_email_sent"`
}
LoginResponse A response for your login.
type LoginToken ¶
type LoginToken struct {
// Ip IP address where login was made from, allows invalidating logins by IP address.
// Could be stored in truncated format, or store derived information for better privacy.
Ip *string `json:"ip,omitempty"`
// Published Time of login
Published string `json:"published"`
UserAgent *string `json:"user_agent,omitempty"`
// UserId The local user id.
UserId LocalUserId `json:"user_id"`
}
LoginToken Stores data related to a specific user login session.
type LogoutResp ¶
type LogoutResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseLogoutResp ¶
func ParseLogoutResp(rsp *http.Response) (*LogoutResp, error)
ParseLogoutResp parses an HTTP response from a LogoutWithResponse call
func (LogoutResp) StatusCode ¶
func (r LogoutResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkAllNotificationsAsReadResp ¶
type MarkAllNotificationsAsReadResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseMarkAllNotificationsAsReadResp ¶
func ParseMarkAllNotificationsAsReadResp(rsp *http.Response) (*MarkAllNotificationsAsReadResp, error)
ParseMarkAllNotificationsAsReadResp parses an HTTP response from a MarkAllNotificationsAsReadWithResponse call
func (MarkAllNotificationsAsReadResp) Status ¶
func (r MarkAllNotificationsAsReadResp) Status() string
Status returns HTTPResponse.Status
func (MarkAllNotificationsAsReadResp) StatusCode ¶
func (r MarkAllNotificationsAsReadResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkCommentMentionAsReadJSONRequestBody ¶
type MarkCommentMentionAsReadJSONRequestBody = MarkPersonCommentMentionAsRead
MarkCommentMentionAsReadJSONRequestBody defines body for MarkCommentMentionAsRead for application/json ContentType.
type MarkCommentMentionAsReadResp ¶
type MarkCommentMentionAsReadResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseMarkCommentMentionAsReadResp ¶
func ParseMarkCommentMentionAsReadResp(rsp *http.Response) (*MarkCommentMentionAsReadResp, error)
ParseMarkCommentMentionAsReadResp parses an HTTP response from a MarkCommentMentionAsReadWithResponse call
func (MarkCommentMentionAsReadResp) Status ¶
func (r MarkCommentMentionAsReadResp) Status() string
Status returns HTTPResponse.Status
func (MarkCommentMentionAsReadResp) StatusCode ¶
func (r MarkCommentMentionAsReadResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkCommentReplyAsRead ¶
type MarkCommentReplyAsRead struct {
// CommentReplyId The comment reply id.
CommentReplyId CommentReplyId `json:"comment_reply_id"`
Read bool `json:"read"`
}
MarkCommentReplyAsRead Mark a comment reply as read.
type MarkCommentReplyAsReadJSONRequestBody ¶
type MarkCommentReplyAsReadJSONRequestBody = MarkCommentReplyAsRead
MarkCommentReplyAsReadJSONRequestBody defines body for MarkCommentReplyAsRead for application/json ContentType.
type MarkCommentReplyAsReadResp ¶
type MarkCommentReplyAsReadResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseMarkCommentReplyAsReadResp ¶
func ParseMarkCommentReplyAsReadResp(rsp *http.Response) (*MarkCommentReplyAsReadResp, error)
ParseMarkCommentReplyAsReadResp parses an HTTP response from a MarkCommentReplyAsReadWithResponse call
func (MarkCommentReplyAsReadResp) Status ¶
func (r MarkCommentReplyAsReadResp) Status() string
Status returns HTTPResponse.Status
func (MarkCommentReplyAsReadResp) StatusCode ¶
func (r MarkCommentReplyAsReadResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkManyPostAsReadJSONRequestBody ¶
type MarkManyPostAsReadJSONRequestBody = MarkManyPostsAsRead
MarkManyPostAsReadJSONRequestBody defines body for MarkManyPostAsRead for application/json ContentType.
type MarkManyPostAsReadResp ¶
type MarkManyPostAsReadResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseMarkManyPostAsReadResp ¶
func ParseMarkManyPostAsReadResp(rsp *http.Response) (*MarkManyPostAsReadResp, error)
ParseMarkManyPostAsReadResp parses an HTTP response from a MarkManyPostAsReadWithResponse call
func (MarkManyPostAsReadResp) Status ¶
func (r MarkManyPostAsReadResp) Status() string
Status returns HTTPResponse.Status
func (MarkManyPostAsReadResp) StatusCode ¶
func (r MarkManyPostAsReadResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkManyPostsAsRead ¶
type MarkManyPostsAsRead struct {
PostIds []PostId `json:"post_ids"`
}
MarkManyPostsAsRead Mark several posts as read.
type MarkPersonCommentMentionAsRead ¶
type MarkPersonCommentMentionAsRead struct {
// PersonCommentMentionId The person comment mention id.
PersonCommentMentionId PersonCommentMentionId `json:"person_comment_mention_id"`
Read bool `json:"read"`
}
MarkPersonCommentMentionAsRead Mark a person mention as read.
type MarkPersonPostMentionAsRead ¶
type MarkPersonPostMentionAsRead struct {
// PersonPostMentionId The person post mention id.
PersonPostMentionId PersonPostMentionId `json:"person_post_mention_id"`
Read bool `json:"read"`
}
MarkPersonPostMentionAsRead Mark a person mention as read.
type MarkPostAsRead ¶
type MarkPostAsRead struct {
// PostId The post id.
PostId PostId `json:"post_id"`
Read bool `json:"read"`
}
MarkPostAsRead Mark a post as read.
type MarkPostAsReadJSONRequestBody ¶
type MarkPostAsReadJSONRequestBody = MarkPostAsRead
MarkPostAsReadJSONRequestBody defines body for MarkPostAsRead for application/json ContentType.
type MarkPostAsReadResp ¶
type MarkPostAsReadResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseMarkPostAsReadResp ¶
func ParseMarkPostAsReadResp(rsp *http.Response) (*MarkPostAsReadResp, error)
ParseMarkPostAsReadResp parses an HTTP response from a MarkPostAsReadWithResponse call
func (MarkPostAsReadResp) Status ¶
func (r MarkPostAsReadResp) Status() string
Status returns HTTPResponse.Status
func (MarkPostAsReadResp) StatusCode ¶
func (r MarkPostAsReadResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkPostMentionAsReadJSONRequestBody ¶
type MarkPostMentionAsReadJSONRequestBody = MarkPersonPostMentionAsRead
MarkPostMentionAsReadJSONRequestBody defines body for MarkPostMentionAsRead for application/json ContentType.
type MarkPostMentionAsReadResp ¶
type MarkPostMentionAsReadResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseMarkPostMentionAsReadResp ¶
func ParseMarkPostMentionAsReadResp(rsp *http.Response) (*MarkPostMentionAsReadResp, error)
ParseMarkPostMentionAsReadResp parses an HTTP response from a MarkPostMentionAsReadWithResponse call
func (MarkPostMentionAsReadResp) Status ¶
func (r MarkPostMentionAsReadResp) Status() string
Status returns HTTPResponse.Status
func (MarkPostMentionAsReadResp) StatusCode ¶
func (r MarkPostMentionAsReadResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MarkPrivateMessageAsRead ¶
type MarkPrivateMessageAsRead struct {
// PrivateMessageId The private message id.
PrivateMessageId PrivateMessageId `json:"private_message_id"`
Read bool `json:"read"`
}
MarkPrivateMessageAsRead Mark a private message as read.
type MarkPrivateMessageAsReadJSONRequestBody ¶
type MarkPrivateMessageAsReadJSONRequestBody = MarkPrivateMessageAsRead
MarkPrivateMessageAsReadJSONRequestBody defines body for MarkPrivateMessageAsRead for application/json ContentType.
type MarkPrivateMessageAsReadResp ¶
type MarkPrivateMessageAsReadResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PrivateMessageResponse
}
func ParseMarkPrivateMessageAsReadResp ¶
func ParseMarkPrivateMessageAsReadResp(rsp *http.Response) (*MarkPrivateMessageAsReadResp, error)
ParseMarkPrivateMessageAsReadResp parses an HTTP response from a MarkPrivateMessageAsReadWithResponse call
func (MarkPrivateMessageAsReadResp) Status ¶
func (r MarkPrivateMessageAsReadResp) Status() string
Status returns HTTPResponse.Status
func (MarkPrivateMessageAsReadResp) StatusCode ¶
func (r MarkPrivateMessageAsReadResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModAdd ¶
type ModAdd struct {
Id ModAddId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
// OtherPersonId The person id.
OtherPersonId PersonId `json:"other_person_id"`
Published string `json:"published"`
Removed bool `json:"removed"`
}
ModAdd When someone is added as a site moderator.
type ModAddCommunity ¶
type ModAddCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Id ModAddCommunityId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
// OtherPersonId The person id.
OtherPersonId PersonId `json:"other_person_id"`
Published string `json:"published"`
Removed bool `json:"removed"`
}
ModAddCommunity When someone is added as a community moderator.
type ModAddCommunityId ¶
type ModAddCommunityId = float64
ModAddCommunityId defines model for ModAddCommunityId.
type ModAddCommunityView ¶
type ModAddCommunityView struct {
// Community A community.
Community Community `json:"community"`
// ModAddCommunity When someone is added as a community moderator.
ModAddCommunity ModAddCommunity `json:"mod_add_community"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
}
ModAddCommunityView When someone is added as a community moderator.
type ModAddView ¶
type ModAddView struct {
// ModAdd When someone is added as a site moderator.
ModAdd ModAdd `json:"mod_add"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
}
ModAddView When someone is added as a site moderator.
type ModBan ¶
type ModBan struct {
Banned bool `json:"banned"`
Expires *string `json:"expires,omitempty"`
Id ModBanId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
// OtherPersonId The person id.
OtherPersonId PersonId `json:"other_person_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
ModBan When someone is banned from the site.
type ModBanFromCommunity ¶
type ModBanFromCommunity struct {
Banned bool `json:"banned"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Expires *string `json:"expires,omitempty"`
Id ModBanFromCommunityId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
// OtherPersonId The person id.
OtherPersonId PersonId `json:"other_person_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
ModBanFromCommunity When someone is banned from a community.
type ModBanFromCommunityId ¶
type ModBanFromCommunityId = float64
ModBanFromCommunityId defines model for ModBanFromCommunityId.
type ModBanFromCommunityView ¶
type ModBanFromCommunityView struct {
// Community A community.
Community Community `json:"community"`
// ModBanFromCommunity When someone is banned from a community.
ModBanFromCommunity ModBanFromCommunity `json:"mod_ban_from_community"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
}
ModBanFromCommunityView When someone is banned from a community.
type ModBanView ¶
type ModBanView struct {
// ModBan When someone is banned from the site.
ModBan ModBan `json:"mod_ban"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
}
ModBanView When someone is banned from the site.
type ModFeaturePost ¶
type ModFeaturePost struct {
Featured bool `json:"featured"`
Id ModFeaturePostId `json:"id"`
IsFeaturedCommunity bool `json:"is_featured_community"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
// PostId The post id.
PostId PostId `json:"post_id"`
Published string `json:"published"`
}
ModFeaturePost When a moderator features a post on a community (pins it to the top).
type ModFeaturePostId ¶
type ModFeaturePostId = float64
ModFeaturePostId defines model for ModFeaturePostId.
type ModFeaturePostView ¶
type ModFeaturePostView struct {
// Community A community.
Community Community `json:"community"`
// ModFeaturePost When a moderator features a post on a community (pins it to the top).
ModFeaturePost ModFeaturePost `json:"mod_feature_post"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
// Post A post.
Post Post `json:"post"`
}
ModFeaturePostView When a moderator features a post on a community (pins it to the top).
type ModHideCommunity ¶
type ModHideCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Hidden bool `json:"hidden"`
Id ModHideCommunityId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
}
ModHideCommunity When a community is hidden from public view.
type ModHideCommunityId ¶
type ModHideCommunityId = float64
ModHideCommunityId defines model for ModHideCommunityId.
type ModHideCommunityView ¶
type ModHideCommunityView struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// Community A community.
Community Community `json:"community"`
// ModHideCommunity When a community is hidden from public view.
ModHideCommunity ModHideCommunity `json:"mod_hide_community"`
}
ModHideCommunityView When a community is hidden from public view.
type ModLockPost ¶
type ModLockPost struct {
Id ModLockPostId `json:"id"`
Locked bool `json:"locked"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
// PostId The post id.
PostId PostId `json:"post_id"`
Published string `json:"published"`
}
ModLockPost When a moderator locks a post (prevents new comments being made).
type ModLockPostView ¶
type ModLockPostView struct {
// Community A community.
Community Community `json:"community"`
// ModLockPost When a moderator locks a post (prevents new comments being made).
ModLockPost ModLockPost `json:"mod_lock_post"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
// Post A post.
Post Post `json:"post"`
}
ModLockPostView When a moderator locks a post (prevents new comments being made).
type ModRemoveComment ¶
type ModRemoveComment struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
Id ModRemoveCommentId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
Removed bool `json:"removed"`
}
ModRemoveComment When a moderator removes a comment.
type ModRemoveCommentId ¶
type ModRemoveCommentId = float64
ModRemoveCommentId defines model for ModRemoveCommentId.
type ModRemoveCommentView ¶
type ModRemoveCommentView struct {
// Comment A comment.
Comment Comment `json:"comment"`
// Community A community.
Community Community `json:"community"`
// ModRemoveComment When a moderator removes a comment.
ModRemoveComment ModRemoveComment `json:"mod_remove_comment"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
// Post A post.
Post Post `json:"post"`
}
ModRemoveCommentView When a moderator removes a comment.
type ModRemoveCommunity ¶
type ModRemoveCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Id ModRemoveCommunityId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
Removed bool `json:"removed"`
}
ModRemoveCommunity When a moderator removes a community.
type ModRemoveCommunityId ¶
type ModRemoveCommunityId = float64
ModRemoveCommunityId defines model for ModRemoveCommunityId.
type ModRemoveCommunityView ¶
type ModRemoveCommunityView struct {
// Community A community.
Community Community `json:"community"`
// ModRemoveCommunity When a moderator removes a community.
ModRemoveCommunity ModRemoveCommunity `json:"mod_remove_community"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
}
ModRemoveCommunityView When a moderator removes a community.
type ModRemovePost ¶
type ModRemovePost struct {
Id ModRemovePostId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
// PostId The post id.
PostId PostId `json:"post_id"`
Published string `json:"published"`
Reason *string `json:"reason,omitempty"`
Removed bool `json:"removed"`
}
ModRemovePost When a moderator removes a post.
type ModRemovePostId ¶
type ModRemovePostId = float64
ModRemovePostId defines model for ModRemovePostId.
type ModRemovePostView ¶
type ModRemovePostView struct {
// Community A community.
Community Community `json:"community"`
// ModRemovePost When a moderator removes a post.
ModRemovePost ModRemovePost `json:"mod_remove_post"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
// Post A post.
Post Post `json:"post"`
}
ModRemovePostView When a moderator removes a post.
type ModTransferCommunity ¶
type ModTransferCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Id ModTransferCommunityId `json:"id"`
// ModPersonId The person id.
ModPersonId PersonId `json:"mod_person_id"`
// OtherPersonId The person id.
OtherPersonId PersonId `json:"other_person_id"`
Published string `json:"published"`
}
ModTransferCommunity When a moderator transfers a community to a new owner.
type ModTransferCommunityId ¶
type ModTransferCommunityId = float64
ModTransferCommunityId defines model for ModTransferCommunityId.
type ModTransferCommunityView ¶
type ModTransferCommunityView struct {
// Community A community.
Community Community `json:"community"`
// ModTransferCommunity When a moderator transfers a community to a new owner.
ModTransferCommunity ModTransferCommunity `json:"mod_transfer_community"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
}
ModTransferCommunityView When a moderator transfers a community to a new owner.
type ModlogActionType ¶
type ModlogActionType string
ModlogActionType A list of possible types for the various modlog actions.
const ( ModlogActionTypeAdminAllowInstance ModlogActionType = "AdminAllowInstance" ModlogActionTypeAdminBlockInstance ModlogActionType = "AdminBlockInstance" ModlogActionTypeAdminPurgeComment ModlogActionType = "AdminPurgeComment" ModlogActionTypeAdminPurgeCommunity ModlogActionType = "AdminPurgeCommunity" ModlogActionTypeAdminPurgePerson ModlogActionType = "AdminPurgePerson" ModlogActionTypeAdminPurgePost ModlogActionType = "AdminPurgePost" ModlogActionTypeAll ModlogActionType = "All" ModlogActionTypeModAdd ModlogActionType = "ModAdd" ModlogActionTypeModAddCommunity ModlogActionType = "ModAddCommunity" ModlogActionTypeModBan ModlogActionType = "ModBan" ModlogActionTypeModBanFromCommunity ModlogActionType = "ModBanFromCommunity" ModlogActionTypeModFeaturePost ModlogActionType = "ModFeaturePost" ModlogActionTypeModHideCommunity ModlogActionType = "ModHideCommunity" ModlogActionTypeModLockPost ModlogActionType = "ModLockPost" ModlogActionTypeModRemoveComment ModlogActionType = "ModRemoveComment" ModlogActionTypeModRemoveCommunity ModlogActionType = "ModRemoveCommunity" ModlogActionTypeModRemovePost ModlogActionType = "ModRemovePost" ModlogActionTypeModTransferCommunity ModlogActionType = "ModTransferCommunity" )
Defines values for ModlogActionType.
type ModlogCombinedPaginationCursor ¶
type ModlogCombinedPaginationCursor = string
ModlogCombinedPaginationCursor like PaginationCursor but for the modlog_combined
type ModlogCombinedView ¶
type ModlogCombinedView struct {
// contains filtered or unexported fields
}
ModlogCombinedView defines model for ModlogCombinedView.
func (ModlogCombinedView) AsModlogCombinedView0 ¶
func (t ModlogCombinedView) AsModlogCombinedView0() (ModlogCombinedView0, error)
AsModlogCombinedView0 returns the union data inside the ModlogCombinedView as a ModlogCombinedView0
func (ModlogCombinedView) AsModlogCombinedView1 ¶
func (t ModlogCombinedView) AsModlogCombinedView1() (ModlogCombinedView1, error)
AsModlogCombinedView1 returns the union data inside the ModlogCombinedView as a ModlogCombinedView1
func (ModlogCombinedView) AsModlogCombinedView10 ¶
func (t ModlogCombinedView) AsModlogCombinedView10() (ModlogCombinedView10, error)
AsModlogCombinedView10 returns the union data inside the ModlogCombinedView as a ModlogCombinedView10
func (ModlogCombinedView) AsModlogCombinedView11 ¶
func (t ModlogCombinedView) AsModlogCombinedView11() (ModlogCombinedView11, error)
AsModlogCombinedView11 returns the union data inside the ModlogCombinedView as a ModlogCombinedView11
func (ModlogCombinedView) AsModlogCombinedView12 ¶
func (t ModlogCombinedView) AsModlogCombinedView12() (ModlogCombinedView12, error)
AsModlogCombinedView12 returns the union data inside the ModlogCombinedView as a ModlogCombinedView12
func (ModlogCombinedView) AsModlogCombinedView13 ¶
func (t ModlogCombinedView) AsModlogCombinedView13() (ModlogCombinedView13, error)
AsModlogCombinedView13 returns the union data inside the ModlogCombinedView as a ModlogCombinedView13
func (ModlogCombinedView) AsModlogCombinedView14 ¶
func (t ModlogCombinedView) AsModlogCombinedView14() (ModlogCombinedView14, error)
AsModlogCombinedView14 returns the union data inside the ModlogCombinedView as a ModlogCombinedView14
func (ModlogCombinedView) AsModlogCombinedView15 ¶
func (t ModlogCombinedView) AsModlogCombinedView15() (ModlogCombinedView15, error)
AsModlogCombinedView15 returns the union data inside the ModlogCombinedView as a ModlogCombinedView15
func (ModlogCombinedView) AsModlogCombinedView16 ¶
func (t ModlogCombinedView) AsModlogCombinedView16() (ModlogCombinedView16, error)
AsModlogCombinedView16 returns the union data inside the ModlogCombinedView as a ModlogCombinedView16
func (ModlogCombinedView) AsModlogCombinedView2 ¶
func (t ModlogCombinedView) AsModlogCombinedView2() (ModlogCombinedView2, error)
AsModlogCombinedView2 returns the union data inside the ModlogCombinedView as a ModlogCombinedView2
func (ModlogCombinedView) AsModlogCombinedView3 ¶
func (t ModlogCombinedView) AsModlogCombinedView3() (ModlogCombinedView3, error)
AsModlogCombinedView3 returns the union data inside the ModlogCombinedView as a ModlogCombinedView3
func (ModlogCombinedView) AsModlogCombinedView4 ¶
func (t ModlogCombinedView) AsModlogCombinedView4() (ModlogCombinedView4, error)
AsModlogCombinedView4 returns the union data inside the ModlogCombinedView as a ModlogCombinedView4
func (ModlogCombinedView) AsModlogCombinedView5 ¶
func (t ModlogCombinedView) AsModlogCombinedView5() (ModlogCombinedView5, error)
AsModlogCombinedView5 returns the union data inside the ModlogCombinedView as a ModlogCombinedView5
func (ModlogCombinedView) AsModlogCombinedView6 ¶
func (t ModlogCombinedView) AsModlogCombinedView6() (ModlogCombinedView6, error)
AsModlogCombinedView6 returns the union data inside the ModlogCombinedView as a ModlogCombinedView6
func (ModlogCombinedView) AsModlogCombinedView7 ¶
func (t ModlogCombinedView) AsModlogCombinedView7() (ModlogCombinedView7, error)
AsModlogCombinedView7 returns the union data inside the ModlogCombinedView as a ModlogCombinedView7
func (ModlogCombinedView) AsModlogCombinedView8 ¶
func (t ModlogCombinedView) AsModlogCombinedView8() (ModlogCombinedView8, error)
AsModlogCombinedView8 returns the union data inside the ModlogCombinedView as a ModlogCombinedView8
func (ModlogCombinedView) AsModlogCombinedView9 ¶
func (t ModlogCombinedView) AsModlogCombinedView9() (ModlogCombinedView9, error)
AsModlogCombinedView9 returns the union data inside the ModlogCombinedView as a ModlogCombinedView9
func (*ModlogCombinedView) FromModlogCombinedView0 ¶
func (t *ModlogCombinedView) FromModlogCombinedView0(v ModlogCombinedView0) error
FromModlogCombinedView0 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView0
func (*ModlogCombinedView) FromModlogCombinedView1 ¶
func (t *ModlogCombinedView) FromModlogCombinedView1(v ModlogCombinedView1) error
FromModlogCombinedView1 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView1
func (*ModlogCombinedView) FromModlogCombinedView10 ¶
func (t *ModlogCombinedView) FromModlogCombinedView10(v ModlogCombinedView10) error
FromModlogCombinedView10 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView10
func (*ModlogCombinedView) FromModlogCombinedView11 ¶
func (t *ModlogCombinedView) FromModlogCombinedView11(v ModlogCombinedView11) error
FromModlogCombinedView11 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView11
func (*ModlogCombinedView) FromModlogCombinedView12 ¶
func (t *ModlogCombinedView) FromModlogCombinedView12(v ModlogCombinedView12) error
FromModlogCombinedView12 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView12
func (*ModlogCombinedView) FromModlogCombinedView13 ¶
func (t *ModlogCombinedView) FromModlogCombinedView13(v ModlogCombinedView13) error
FromModlogCombinedView13 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView13
func (*ModlogCombinedView) FromModlogCombinedView14 ¶
func (t *ModlogCombinedView) FromModlogCombinedView14(v ModlogCombinedView14) error
FromModlogCombinedView14 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView14
func (*ModlogCombinedView) FromModlogCombinedView15 ¶
func (t *ModlogCombinedView) FromModlogCombinedView15(v ModlogCombinedView15) error
FromModlogCombinedView15 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView15
func (*ModlogCombinedView) FromModlogCombinedView16 ¶
func (t *ModlogCombinedView) FromModlogCombinedView16(v ModlogCombinedView16) error
FromModlogCombinedView16 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView16
func (*ModlogCombinedView) FromModlogCombinedView2 ¶
func (t *ModlogCombinedView) FromModlogCombinedView2(v ModlogCombinedView2) error
FromModlogCombinedView2 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView2
func (*ModlogCombinedView) FromModlogCombinedView3 ¶
func (t *ModlogCombinedView) FromModlogCombinedView3(v ModlogCombinedView3) error
FromModlogCombinedView3 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView3
func (*ModlogCombinedView) FromModlogCombinedView4 ¶
func (t *ModlogCombinedView) FromModlogCombinedView4(v ModlogCombinedView4) error
FromModlogCombinedView4 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView4
func (*ModlogCombinedView) FromModlogCombinedView5 ¶
func (t *ModlogCombinedView) FromModlogCombinedView5(v ModlogCombinedView5) error
FromModlogCombinedView5 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView5
func (*ModlogCombinedView) FromModlogCombinedView6 ¶
func (t *ModlogCombinedView) FromModlogCombinedView6(v ModlogCombinedView6) error
FromModlogCombinedView6 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView6
func (*ModlogCombinedView) FromModlogCombinedView7 ¶
func (t *ModlogCombinedView) FromModlogCombinedView7(v ModlogCombinedView7) error
FromModlogCombinedView7 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView7
func (*ModlogCombinedView) FromModlogCombinedView8 ¶
func (t *ModlogCombinedView) FromModlogCombinedView8(v ModlogCombinedView8) error
FromModlogCombinedView8 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView8
func (*ModlogCombinedView) FromModlogCombinedView9 ¶
func (t *ModlogCombinedView) FromModlogCombinedView9(v ModlogCombinedView9) error
FromModlogCombinedView9 overwrites any union data inside the ModlogCombinedView as the provided ModlogCombinedView9
func (ModlogCombinedView) MarshalJSON ¶
func (t ModlogCombinedView) MarshalJSON() ([]byte, error)
func (*ModlogCombinedView) MergeModlogCombinedView0 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView0(v ModlogCombinedView0) error
MergeModlogCombinedView0 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView0
func (*ModlogCombinedView) MergeModlogCombinedView1 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView1(v ModlogCombinedView1) error
MergeModlogCombinedView1 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView1
func (*ModlogCombinedView) MergeModlogCombinedView10 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView10(v ModlogCombinedView10) error
MergeModlogCombinedView10 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView10
func (*ModlogCombinedView) MergeModlogCombinedView11 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView11(v ModlogCombinedView11) error
MergeModlogCombinedView11 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView11
func (*ModlogCombinedView) MergeModlogCombinedView12 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView12(v ModlogCombinedView12) error
MergeModlogCombinedView12 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView12
func (*ModlogCombinedView) MergeModlogCombinedView13 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView13(v ModlogCombinedView13) error
MergeModlogCombinedView13 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView13
func (*ModlogCombinedView) MergeModlogCombinedView14 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView14(v ModlogCombinedView14) error
MergeModlogCombinedView14 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView14
func (*ModlogCombinedView) MergeModlogCombinedView15 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView15(v ModlogCombinedView15) error
MergeModlogCombinedView15 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView15
func (*ModlogCombinedView) MergeModlogCombinedView16 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView16(v ModlogCombinedView16) error
MergeModlogCombinedView16 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView16
func (*ModlogCombinedView) MergeModlogCombinedView2 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView2(v ModlogCombinedView2) error
MergeModlogCombinedView2 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView2
func (*ModlogCombinedView) MergeModlogCombinedView3 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView3(v ModlogCombinedView3) error
MergeModlogCombinedView3 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView3
func (*ModlogCombinedView) MergeModlogCombinedView4 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView4(v ModlogCombinedView4) error
MergeModlogCombinedView4 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView4
func (*ModlogCombinedView) MergeModlogCombinedView5 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView5(v ModlogCombinedView5) error
MergeModlogCombinedView5 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView5
func (*ModlogCombinedView) MergeModlogCombinedView6 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView6(v ModlogCombinedView6) error
MergeModlogCombinedView6 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView6
func (*ModlogCombinedView) MergeModlogCombinedView7 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView7(v ModlogCombinedView7) error
MergeModlogCombinedView7 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView7
func (*ModlogCombinedView) MergeModlogCombinedView8 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView8(v ModlogCombinedView8) error
MergeModlogCombinedView8 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView8
func (*ModlogCombinedView) MergeModlogCombinedView9 ¶
func (t *ModlogCombinedView) MergeModlogCombinedView9(v ModlogCombinedView9) error
MergeModlogCombinedView9 performs a merge with any union data inside the ModlogCombinedView, using the provided ModlogCombinedView9
func (*ModlogCombinedView) UnmarshalJSON ¶
func (t *ModlogCombinedView) UnmarshalJSON(b []byte) error
type ModlogCombinedView0 ¶
type ModlogCombinedView0 struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
AdminAllowInstance AdminAllowInstance `json:"admin_allow_instance"`
// Instance A federated instance / site.
Instance Instance `json:"instance"`
Type ModlogCombinedView0Type `json:"type_"`
}
ModlogCombinedView0 defines model for .
type ModlogCombinedView0Type ¶
type ModlogCombinedView0Type string
ModlogCombinedView0Type defines model for ModlogCombinedView.0.Type.
const (
ModlogCombinedView0TypeAdminAllowInstance ModlogCombinedView0Type = "AdminAllowInstance"
)
Defines values for ModlogCombinedView0Type.
type ModlogCombinedView1 ¶
type ModlogCombinedView1 struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
AdminBlockInstance AdminBlockInstance `json:"admin_block_instance"`
// Instance A federated instance / site.
Instance Instance `json:"instance"`
Type ModlogCombinedView1Type `json:"type_"`
}
ModlogCombinedView1 defines model for .
type ModlogCombinedView10 ¶
type ModlogCombinedView10 struct {
// Community A community.
Community Community `json:"community"`
// ModFeaturePost When a moderator features a post on a community (pins it to the top).
ModFeaturePost ModFeaturePost `json:"mod_feature_post"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
// Post A post.
Post Post `json:"post"`
Type ModlogCombinedView10Type `json:"type_"`
}
ModlogCombinedView10 defines model for .
type ModlogCombinedView10Type ¶
type ModlogCombinedView10Type string
ModlogCombinedView10Type defines model for ModlogCombinedView.10.Type.
const (
ModlogCombinedView10TypeModFeaturePost ModlogCombinedView10Type = "ModFeaturePost"
)
Defines values for ModlogCombinedView10Type.
type ModlogCombinedView11 ¶
type ModlogCombinedView11 struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// Community A community.
Community Community `json:"community"`
// ModHideCommunity When a community is hidden from public view.
ModHideCommunity ModHideCommunity `json:"mod_hide_community"`
Type ModlogCombinedView11Type `json:"type_"`
}
ModlogCombinedView11 defines model for .
type ModlogCombinedView11Type ¶
type ModlogCombinedView11Type string
ModlogCombinedView11Type defines model for ModlogCombinedView.11.Type.
const (
ModlogCombinedView11TypeModHideCommunity ModlogCombinedView11Type = "ModHideCommunity"
)
Defines values for ModlogCombinedView11Type.
type ModlogCombinedView12 ¶
type ModlogCombinedView12 struct {
// Community A community.
Community Community `json:"community"`
// ModLockPost When a moderator locks a post (prevents new comments being made).
ModLockPost ModLockPost `json:"mod_lock_post"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
// Post A post.
Post Post `json:"post"`
Type ModlogCombinedView12Type `json:"type_"`
}
ModlogCombinedView12 defines model for .
type ModlogCombinedView12Type ¶
type ModlogCombinedView12Type string
ModlogCombinedView12Type defines model for ModlogCombinedView.12.Type.
const (
ModlogCombinedView12TypeModLockPost ModlogCombinedView12Type = "ModLockPost"
)
Defines values for ModlogCombinedView12Type.
type ModlogCombinedView13 ¶
type ModlogCombinedView13 struct {
// Comment A comment.
Comment Comment `json:"comment"`
// Community A community.
Community Community `json:"community"`
// ModRemoveComment When a moderator removes a comment.
ModRemoveComment ModRemoveComment `json:"mod_remove_comment"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
// Post A post.
Post Post `json:"post"`
Type ModlogCombinedView13Type `json:"type_"`
}
ModlogCombinedView13 defines model for .
type ModlogCombinedView13Type ¶
type ModlogCombinedView13Type string
ModlogCombinedView13Type defines model for ModlogCombinedView.13.Type.
const (
ModlogCombinedView13TypeModRemoveComment ModlogCombinedView13Type = "ModRemoveComment"
)
Defines values for ModlogCombinedView13Type.
type ModlogCombinedView14 ¶
type ModlogCombinedView14 struct {
// Community A community.
Community Community `json:"community"`
// ModRemoveCommunity When a moderator removes a community.
ModRemoveCommunity ModRemoveCommunity `json:"mod_remove_community"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
Type ModlogCombinedView14Type `json:"type_"`
}
ModlogCombinedView14 defines model for .
type ModlogCombinedView14Type ¶
type ModlogCombinedView14Type string
ModlogCombinedView14Type defines model for ModlogCombinedView.14.Type.
const (
ModlogCombinedView14TypeModRemoveCommunity ModlogCombinedView14Type = "ModRemoveCommunity"
)
Defines values for ModlogCombinedView14Type.
type ModlogCombinedView15 ¶
type ModlogCombinedView15 struct {
// Community A community.
Community Community `json:"community"`
// ModRemovePost When a moderator removes a post.
ModRemovePost ModRemovePost `json:"mod_remove_post"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
// Post A post.
Post Post `json:"post"`
Type ModlogCombinedView15Type `json:"type_"`
}
ModlogCombinedView15 defines model for .
type ModlogCombinedView15Type ¶
type ModlogCombinedView15Type string
ModlogCombinedView15Type defines model for ModlogCombinedView.15.Type.
const (
ModlogCombinedView15TypeModRemovePost ModlogCombinedView15Type = "ModRemovePost"
)
Defines values for ModlogCombinedView15Type.
type ModlogCombinedView16 ¶
type ModlogCombinedView16 struct {
// Community A community.
Community Community `json:"community"`
// ModTransferCommunity When a moderator transfers a community to a new owner.
ModTransferCommunity ModTransferCommunity `json:"mod_transfer_community"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
Type ModlogCombinedView16Type `json:"type_"`
}
ModlogCombinedView16 defines model for .
type ModlogCombinedView16Type ¶
type ModlogCombinedView16Type string
ModlogCombinedView16Type defines model for ModlogCombinedView.16.Type.
const (
ModlogCombinedView16TypeModTransferCommunity ModlogCombinedView16Type = "ModTransferCommunity"
)
Defines values for ModlogCombinedView16Type.
type ModlogCombinedView1Type ¶
type ModlogCombinedView1Type string
ModlogCombinedView1Type defines model for ModlogCombinedView.1.Type.
const (
ModlogCombinedView1TypeAdminBlockInstance ModlogCombinedView1Type = "AdminBlockInstance"
)
Defines values for ModlogCombinedView1Type.
type ModlogCombinedView2 ¶
type ModlogCombinedView2 struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// AdminPurgeComment When an admin purges a comment.
AdminPurgeComment AdminPurgeComment `json:"admin_purge_comment"`
// Post A post.
Post Post `json:"post"`
Type ModlogCombinedView2Type `json:"type_"`
}
ModlogCombinedView2 defines model for .
type ModlogCombinedView2Type ¶
type ModlogCombinedView2Type string
ModlogCombinedView2Type defines model for ModlogCombinedView.2.Type.
const (
ModlogCombinedView2TypeAdminPurgeComment ModlogCombinedView2Type = "AdminPurgeComment"
)
Defines values for ModlogCombinedView2Type.
type ModlogCombinedView3 ¶
type ModlogCombinedView3 struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// AdminPurgeCommunity When an admin purges a community.
AdminPurgeCommunity AdminPurgeCommunity `json:"admin_purge_community"`
Type ModlogCombinedView3Type `json:"type_"`
}
ModlogCombinedView3 defines model for .
type ModlogCombinedView3Type ¶
type ModlogCombinedView3Type string
ModlogCombinedView3Type defines model for ModlogCombinedView.3.Type.
const (
ModlogCombinedView3TypeAdminPurgeCommunity ModlogCombinedView3Type = "AdminPurgeCommunity"
)
Defines values for ModlogCombinedView3Type.
type ModlogCombinedView4 ¶
type ModlogCombinedView4 struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// AdminPurgePerson When an admin purges a person.
AdminPurgePerson AdminPurgePerson `json:"admin_purge_person"`
Type ModlogCombinedView4Type `json:"type_"`
}
ModlogCombinedView4 defines model for .
type ModlogCombinedView4Type ¶
type ModlogCombinedView4Type string
ModlogCombinedView4Type defines model for ModlogCombinedView.4.Type.
const (
ModlogCombinedView4TypeAdminPurgePerson ModlogCombinedView4Type = "AdminPurgePerson"
)
Defines values for ModlogCombinedView4Type.
type ModlogCombinedView5 ¶
type ModlogCombinedView5 struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// AdminPurgePost When an admin purges a post.
AdminPurgePost AdminPurgePost `json:"admin_purge_post"`
// Community A community.
Community Community `json:"community"`
Type ModlogCombinedView5Type `json:"type_"`
}
ModlogCombinedView5 defines model for .
type ModlogCombinedView5Type ¶
type ModlogCombinedView5Type string
ModlogCombinedView5Type defines model for ModlogCombinedView.5.Type.
const (
ModlogCombinedView5TypeAdminPurgePost ModlogCombinedView5Type = "AdminPurgePost"
)
Defines values for ModlogCombinedView5Type.
type ModlogCombinedView6 ¶
type ModlogCombinedView6 struct {
// ModAdd When someone is added as a site moderator.
ModAdd ModAdd `json:"mod_add"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
Type ModlogCombinedView6Type `json:"type_"`
}
ModlogCombinedView6 defines model for .
type ModlogCombinedView6Type ¶
type ModlogCombinedView6Type string
ModlogCombinedView6Type defines model for ModlogCombinedView.6.Type.
const (
ModlogCombinedView6TypeModAdd ModlogCombinedView6Type = "ModAdd"
)
Defines values for ModlogCombinedView6Type.
type ModlogCombinedView7 ¶
type ModlogCombinedView7 struct {
// Community A community.
Community Community `json:"community"`
// ModAddCommunity When someone is added as a community moderator.
ModAddCommunity ModAddCommunity `json:"mod_add_community"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
Type ModlogCombinedView7Type `json:"type_"`
}
ModlogCombinedView7 defines model for .
type ModlogCombinedView7Type ¶
type ModlogCombinedView7Type string
ModlogCombinedView7Type defines model for ModlogCombinedView.7.Type.
const (
ModlogCombinedView7TypeModAddCommunity ModlogCombinedView7Type = "ModAddCommunity"
)
Defines values for ModlogCombinedView7Type.
type ModlogCombinedView8 ¶
type ModlogCombinedView8 struct {
// ModBan When someone is banned from the site.
ModBan ModBan `json:"mod_ban"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
Type ModlogCombinedView8Type `json:"type_"`
}
ModlogCombinedView8 defines model for .
type ModlogCombinedView8Type ¶
type ModlogCombinedView8Type string
ModlogCombinedView8Type defines model for ModlogCombinedView.8.Type.
const (
ModlogCombinedView8TypeModBan ModlogCombinedView8Type = "ModBan"
)
Defines values for ModlogCombinedView8Type.
type ModlogCombinedView9 ¶
type ModlogCombinedView9 struct {
// Community A community.
Community Community `json:"community"`
// ModBanFromCommunity When someone is banned from a community.
ModBanFromCommunity ModBanFromCommunity `json:"mod_ban_from_community"`
// Moderator A person.
Moderator *Person `json:"moderator,omitempty"`
// OtherPerson A person.
OtherPerson Person `json:"other_person"`
Type ModlogCombinedView9Type `json:"type_"`
}
ModlogCombinedView9 defines model for .
type ModlogCombinedView9Type ¶
type ModlogCombinedView9Type string
ModlogCombinedView9Type defines model for ModlogCombinedView.9.Type.
const (
ModlogCombinedView9TypeModBanFromCommunity ModlogCombinedView9Type = "ModBanFromCommunity"
)
Defines values for ModlogCombinedView9Type.
type MyUserInfo ¶
type MyUserInfo struct {
CommunityBlocks []Community `json:"community_blocks"`
DiscussionLanguages []LanguageId `json:"discussion_languages"`
Follows []CommunityFollowerView `json:"follows"`
InstanceBlocks []Instance `json:"instance_blocks"`
// LocalUserView A local user view.
LocalUserView LocalUserView `json:"local_user_view"`
Moderates []CommunityModeratorView `json:"moderates"`
PersonBlocks []Person `json:"person_blocks"`
}
MyUserInfo Your user info.
type OAuthProvider ¶
type OAuthProvider struct {
// AccountLinkingEnabled Allows linking an OAUTH account to an existing user account by matching emails
AccountLinkingEnabled bool `json:"account_linking_enabled"`
// AuthorizationEndpoint The authorization endpoint is used to interact with the resource owner and obtain an
// authorization grant. This is usually provided by the OAUTH provider.
AuthorizationEndpoint string `json:"authorization_endpoint"`
// AutoVerifyEmail Automatically sets email as verified on registration
AutoVerifyEmail bool `json:"auto_verify_email"`
// ClientId The client_id is provided by the OAuth 2.0 provider and is a unique identifier to this
// service
ClientId string `json:"client_id"`
// DisplayName The OAuth 2.0 provider name displayed to the user on the Login page
DisplayName string `json:"display_name"`
// Enabled switch to enable or disable an oauth provider
Enabled bool `json:"enabled"`
// Id The oauth provider id.
Id OAuthProviderId `json:"id"`
// IdClaim The OAuth 2.0 claim containing the unique user ID returned by the provider. Usually this
// should be set to "sub".
IdClaim string `json:"id_claim"`
// Issuer The issuer url of the OAUTH provider.
Issuer string `json:"issuer"`
Published string `json:"published"`
// Scopes Lists the scopes requested from users. Users will have to grant access to the requested scope
// at sign up.
Scopes string `json:"scopes"`
// TokenEndpoint The token endpoint is used by the client to obtain an access token by presenting its
// authorization grant or refresh token. This is usually provided by the OAUTH provider.
TokenEndpoint string `json:"token_endpoint"`
Updated *string `json:"updated,omitempty"`
// UsePkce switch to enable or disable PKCE
UsePkce bool `json:"use_pkce"`
// UserinfoEndpoint The UserInfo Endpoint is an OAuth 2.0 Protected Resource that returns Claims about the
// authenticated End-User. This is defined in the OIDC specification.
UserinfoEndpoint string `json:"userinfo_endpoint"`
}
OAuthProvider oauth provider with client_secret - should never be sent to the client
type PaginationCursor ¶
type PaginationCursor = string
PaginationCursor currently this is just a wrapper around post id, but should be seen as opaque from the client's perspective. stringified since we might want to use arbitrary info later, with a P prepended to prevent ossification (api users love to make assumptions (e.g. parse stuff that looks like numbers as numbers) about apis that aren't part of the spec
type PasswordChangeAfterReset ¶
type PasswordChangeAfterReset struct {
Password SensitiveString `json:"password"`
PasswordVerify SensitiveString `json:"password_verify"`
Token SensitiveString `json:"token"`
}
PasswordChangeAfterReset Change your password after receiving a reset request.
type PasswordChangeAfterResetJSONRequestBody ¶
type PasswordChangeAfterResetJSONRequestBody = PasswordChangeAfterReset
PasswordChangeAfterResetJSONRequestBody defines body for PasswordChangeAfterReset for application/json ContentType.
type PasswordChangeAfterResetResp ¶
type PasswordChangeAfterResetResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParsePasswordChangeAfterResetResp ¶
func ParsePasswordChangeAfterResetResp(rsp *http.Response) (*PasswordChangeAfterResetResp, error)
ParsePasswordChangeAfterResetResp parses an HTTP response from a PasswordChangeAfterResetWithResponse call
func (PasswordChangeAfterResetResp) Status ¶
func (r PasswordChangeAfterResetResp) Status() string
Status returns HTTPResponse.Status
func (PasswordChangeAfterResetResp) StatusCode ¶
func (r PasswordChangeAfterResetResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PasswordReset ¶
type PasswordReset struct {
Email SensitiveString `json:"email"`
}
PasswordReset Reset your password via email.
type PasswordResetJSONRequestBody ¶
type PasswordResetJSONRequestBody = PasswordReset
PasswordResetJSONRequestBody defines body for PasswordReset for application/json ContentType.
type PasswordResetResp ¶
type PasswordResetResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParsePasswordResetResp ¶
func ParsePasswordResetResp(rsp *http.Response) (*PasswordResetResp, error)
ParsePasswordResetResp parses an HTTP response from a PasswordResetWithResponse call
func (PasswordResetResp) Status ¶
func (r PasswordResetResp) Status() string
Status returns HTTPResponse.Status
func (PasswordResetResp) StatusCode ¶
func (r PasswordResetResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PendingFollow ¶
type PendingFollow struct {
// Community A community.
Community Community `json:"community"`
IsNewInstance bool `json:"is_new_instance"`
// Person A person.
Person Person `json:"person"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
}
PendingFollow defines model for PendingFollow.
type Person ¶
type Person struct {
ApId DbUrl `json:"ap_id"`
Avatar *DbUrl `json:"avatar,omitempty"`
// BanExpires When their ban, if it exists, expires, if at all.
BanExpires *string `json:"ban_expires,omitempty"`
// Banned Whether the person is banned.
Banned bool `json:"banned"`
Banner *DbUrl `json:"banner,omitempty"`
// Bio An optional bio, in markdown.
Bio *string `json:"bio,omitempty"`
// BotAccount Whether the person is a bot account.
BotAccount bool `json:"bot_account"`
CommentCount float64 `json:"comment_count"`
// Deleted Whether the person is deleted.
Deleted bool `json:"deleted"`
// DisplayName A shorter display name.
DisplayName *string `json:"display_name,omitempty"`
// Id The person id.
Id PersonId `json:"id"`
// InstanceId The instance id.
InstanceId InstanceId `json:"instance_id"`
// Local Whether the person is local to our site.
Local bool `json:"local"`
// MatrixUserId A matrix id, usually given an
MatrixUserId *string `json:"matrix_user_id,omitempty"`
Name string `json:"name"`
PostCount float64 `json:"post_count"`
Published string `json:"published"`
Updated *string `json:"updated,omitempty"`
}
Person A person.
type PersonCommentMention ¶
type PersonCommentMention struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
// Id The person comment mention id.
Id PersonCommentMentionId `json:"id"`
Published string `json:"published"`
Read bool `json:"read"`
// RecipientId The person id.
RecipientId PersonId `json:"recipient_id"`
}
PersonCommentMention A person mention.
type PersonCommentMentionId ¶
type PersonCommentMentionId = float64
PersonCommentMentionId The person comment mention id.
type PersonCommentMentionView ¶
type PersonCommentMentionView struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Comment A comment.
Comment Comment `json:"comment"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// PersonCommentMention A person mention.
PersonCommentMention PersonCommentMention `json:"person_comment_mention"`
// Post A post.
Post Post `json:"post"`
// Recipient A person.
Recipient Person `json:"recipient"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
}
PersonCommentMentionView A person comment mention view.
type PersonContentCombinedPaginationCursor ¶
type PersonContentCombinedPaginationCursor = string
PersonContentCombinedPaginationCursor like PaginationCursor but for the person_content_combined table
type PersonContentCombinedView ¶
type PersonContentCombinedView struct {
// contains filtered or unexported fields
}
PersonContentCombinedView defines model for PersonContentCombinedView.
func (PersonContentCombinedView) AsPersonContentCombinedView0 ¶
func (t PersonContentCombinedView) AsPersonContentCombinedView0() (PersonContentCombinedView0, error)
AsPersonContentCombinedView0 returns the union data inside the PersonContentCombinedView as a PersonContentCombinedView0
func (PersonContentCombinedView) AsPersonContentCombinedView1 ¶
func (t PersonContentCombinedView) AsPersonContentCombinedView1() (PersonContentCombinedView1, error)
AsPersonContentCombinedView1 returns the union data inside the PersonContentCombinedView as a PersonContentCombinedView1
func (*PersonContentCombinedView) FromPersonContentCombinedView0 ¶
func (t *PersonContentCombinedView) FromPersonContentCombinedView0(v PersonContentCombinedView0) error
FromPersonContentCombinedView0 overwrites any union data inside the PersonContentCombinedView as the provided PersonContentCombinedView0
func (*PersonContentCombinedView) FromPersonContentCombinedView1 ¶
func (t *PersonContentCombinedView) FromPersonContentCombinedView1(v PersonContentCombinedView1) error
FromPersonContentCombinedView1 overwrites any union data inside the PersonContentCombinedView as the provided PersonContentCombinedView1
func (PersonContentCombinedView) MarshalJSON ¶
func (t PersonContentCombinedView) MarshalJSON() ([]byte, error)
func (*PersonContentCombinedView) MergePersonContentCombinedView0 ¶
func (t *PersonContentCombinedView) MergePersonContentCombinedView0(v PersonContentCombinedView0) error
MergePersonContentCombinedView0 performs a merge with any union data inside the PersonContentCombinedView, using the provided PersonContentCombinedView0
func (*PersonContentCombinedView) MergePersonContentCombinedView1 ¶
func (t *PersonContentCombinedView) MergePersonContentCombinedView1(v PersonContentCombinedView1) error
MergePersonContentCombinedView1 performs a merge with any union data inside the PersonContentCombinedView, using the provided PersonContentCombinedView1
func (*PersonContentCombinedView) UnmarshalJSON ¶
func (t *PersonContentCombinedView) UnmarshalJSON(b []byte) error
type PersonContentCombinedView0 ¶
type PersonContentCombinedView0 struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
Hidden bool `json:"hidden"`
ImageDetails *ImageDetails `json:"image_details,omitempty"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
Read bool `json:"read"`
// Saved The time when the post was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
// Tags we wrap this in a struct so we can implement FromSqlRow<Json> for it
Tags PostTags `json:"tags"`
Type PersonContentCombinedView0Type `json:"type_"`
UnreadComments float64 `json:"unread_comments"`
}
PersonContentCombinedView0 defines model for .
type PersonContentCombinedView0Type ¶
type PersonContentCombinedView0Type string
PersonContentCombinedView0Type defines model for PersonContentCombinedView.0.Type.
const (
PersonContentCombinedView0TypePost PersonContentCombinedView0Type = "Post"
)
Defines values for PersonContentCombinedView0Type.
type PersonContentCombinedView1 ¶
type PersonContentCombinedView1 struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Comment A comment.
Comment Comment `json:"comment"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type PersonContentCombinedView1Type `json:"type_"`
}
PersonContentCombinedView1 defines model for .
type PersonContentCombinedView1Type ¶
type PersonContentCombinedView1Type string
PersonContentCombinedView1Type defines model for PersonContentCombinedView.1.Type.
const (
PersonContentCombinedView1TypeComment PersonContentCombinedView1Type = "Comment"
)
Defines values for PersonContentCombinedView1Type.
type PersonContentType ¶
type PersonContentType string
PersonContentType A list of possible types for a person's content.
const ( PersonContentTypeAll PersonContentType = "All" PersonContentTypeComments PersonContentType = "Comments" PersonContentTypePosts PersonContentType = "Posts" )
Defines values for PersonContentType.
type PersonPostMention ¶
type PersonPostMention struct {
// Id The person post mention id.
Id PersonPostMentionId `json:"id"`
// PostId The post id.
PostId PostId `json:"post_id"`
Published string `json:"published"`
Read bool `json:"read"`
// RecipientId The person id.
RecipientId PersonId `json:"recipient_id"`
}
PersonPostMention A person mention.
type PersonPostMentionId ¶
type PersonPostMentionId = float64
PersonPostMentionId The person post mention id.
type PersonPostMentionView ¶
type PersonPostMentionView struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
Hidden bool `json:"hidden"`
ImageDetails *ImageDetails `json:"image_details,omitempty"`
MyVote *float64 `json:"my_vote,omitempty"`
// PersonPostMention A person mention.
PersonPostMention PersonPostMention `json:"person_post_mention"`
// Post A post.
Post Post `json:"post"`
// PostTags we wrap this in a struct so we can implement FromSqlRow<Json> for it
PostTags PostTags `json:"post_tags"`
Read bool `json:"read"`
// Recipient A person.
Recipient Person `json:"recipient"`
// Saved The time when the post was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
UnreadComments float64 `json:"unread_comments"`
}
PersonPostMentionView A person post mention view.
type PersonSavedCombinedPaginationCursor ¶
type PersonSavedCombinedPaginationCursor = string
PersonSavedCombinedPaginationCursor like PaginationCursor but for the person_saved_combined table
type PersonView ¶
type PersonView struct {
IsAdmin bool `json:"is_admin"`
// Person A person.
Person Person `json:"person"`
}
PersonView A person view.
type Post ¶
type Post struct {
// AltText An optional alt_text, usable for image posts.
AltText *string `json:"alt_text,omitempty"`
ApId DbUrl `json:"ap_id"`
// Body An optional post body, in markdown.
Body *string `json:"body,omitempty"`
Comments float64 `json:"comments"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
// CreatorId The person id.
CreatorId PersonId `json:"creator_id"`
// Deleted Whether the post is deleted.
Deleted bool `json:"deleted"`
Downvotes float64 `json:"downvotes"`
// EmbedDescription A description for the link.
EmbedDescription *string `json:"embed_description,omitempty"`
// EmbedTitle A title for the link.
EmbedTitle *string `json:"embed_title,omitempty"`
EmbedVideoUrl *DbUrl `json:"embed_video_url,omitempty"`
// FeaturedCommunity Whether the post is featured to its community.
FeaturedCommunity bool `json:"featured_community"`
// FeaturedLocal Whether the post is featured to its site.
FeaturedLocal bool `json:"featured_local"`
// Id The post id.
Id PostId `json:"id"`
// LanguageId The language id.
LanguageId LanguageId `json:"language_id"`
// Local Whether the post is local.
Local bool `json:"local"`
// Locked Whether the post is locked.
Locked bool `json:"locked"`
Name string `json:"name"`
// NewestCommentTime The time of the newest comment in the post.
NewestCommentTime string `json:"newest_comment_time"`
// Nsfw Whether the post is NSFW.
Nsfw bool `json:"nsfw"`
Published string `json:"published"`
// Removed Whether the post is removed.
Removed bool `json:"removed"`
ReportCount float64 `json:"report_count"`
// ScheduledPublishTime Time at which the post will be published. None means publish immediately.
ScheduledPublishTime *string `json:"scheduled_publish_time,omitempty"`
Score float64 `json:"score"`
ThumbnailUrl *DbUrl `json:"thumbnail_url,omitempty"`
UnresolvedReportCount float64 `json:"unresolved_report_count"`
Updated *string `json:"updated,omitempty"`
Upvotes float64 `json:"upvotes"`
Url *DbUrl `json:"url,omitempty"`
UrlContentType *string `json:"url_content_type,omitempty"`
}
Post A post.
type PostFeatureType ¶
type PostFeatureType string
PostFeatureType The feature type for a post.
const ( PostFeatureTypeCommunity PostFeatureType = "Community" PostFeatureTypeLocal PostFeatureType = "Local" )
Defines values for PostFeatureType.
type PostListingMode ¶
type PostListingMode string
PostListingMode A post-view mode that changes how multiple post listings look.
const ( Card PostListingMode = "Card" List PostListingMode = "List" SmallCard PostListingMode = "SmallCard" )
Defines values for PostListingMode.
type PostReport ¶
type PostReport struct {
// CreatorId The person id.
CreatorId PersonId `json:"creator_id"`
// Id The post report id.
Id PostReportId `json:"id"`
// OriginalPostBody The original post body.
OriginalPostBody *string `json:"original_post_body,omitempty"`
// OriginalPostName The original post title.
OriginalPostName string `json:"original_post_name"`
OriginalPostUrl *DbUrl `json:"original_post_url,omitempty"`
// PostId The post id.
PostId PostId `json:"post_id"`
Published string `json:"published"`
Reason string `json:"reason"`
Resolved bool `json:"resolved"`
// ResolverId The person id.
ResolverId *PersonId `json:"resolver_id,omitempty"`
Updated *string `json:"updated,omitempty"`
ViolatesInstanceRules bool `json:"violates_instance_rules"`
}
PostReport A post report.
type PostReportResponse ¶
type PostReportResponse struct {
// PostReportView A post report view.
PostReportView PostReportView `json:"post_report_view"`
}
PostReportResponse The post report response.
type PostReportView ¶
type PostReportView struct {
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
Hidden bool `json:"hidden"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// PostCreator A person.
PostCreator Person `json:"post_creator"`
// PostReport A post report.
PostReport PostReport `json:"post_report"`
Read bool `json:"read"`
// Resolver A person.
Resolver *Person `json:"resolver,omitempty"`
// Saved The time when the post was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
UnreadComments float64 `json:"unread_comments"`
}
PostReportView A post report view.
type PostResponse ¶
type PostResponse struct {
// PostView A post view.
PostView PostView `json:"post_view"`
}
PostResponse defines model for PostResponse.
type PostSortType ¶
type PostSortType string
PostSortType The post sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
const ( PostSortTypeActive PostSortType = "Active" PostSortTypeControversial PostSortType = "Controversial" PostSortTypeHot PostSortType = "Hot" PostSortTypeMostComments PostSortType = "MostComments" PostSortTypeNew PostSortType = "New" PostSortTypeNewComments PostSortType = "NewComments" PostSortTypeOld PostSortType = "Old" PostSortTypeScaled PostSortType = "Scaled" PostSortTypeTop PostSortType = "Top" )
Defines values for PostSortType.
type PostTags ¶
type PostTags struct {
Tags []Tag `json:"tags"`
}
PostTags we wrap this in a struct so we can implement FromSqlRow<Json> for it
type PostView ¶
type PostView struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
Hidden bool `json:"hidden"`
ImageDetails *ImageDetails `json:"image_details,omitempty"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
Read bool `json:"read"`
// Saved The time when the post was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
// Tags we wrap this in a struct so we can implement FromSqlRow<Json> for it
Tags PostTags `json:"tags"`
UnreadComments float64 `json:"unread_comments"`
}
PostView A post view.
type PrivateMessage ¶
type PrivateMessage struct {
ApId DbUrl `json:"ap_id"`
Content string `json:"content"`
// CreatorId The person id.
CreatorId PersonId `json:"creator_id"`
Deleted bool `json:"deleted"`
// Id The private message id.
Id PrivateMessageId `json:"id"`
Local bool `json:"local"`
Published string `json:"published"`
Read bool `json:"read"`
// RecipientId The person id.
RecipientId PersonId `json:"recipient_id"`
Removed bool `json:"removed"`
Updated *string `json:"updated,omitempty"`
}
PrivateMessage A private message.
type PrivateMessageReport ¶
type PrivateMessageReport struct {
// CreatorId The person id.
CreatorId PersonId `json:"creator_id"`
// Id The private message report id.
Id PrivateMessageReportId `json:"id"`
// OriginalPmText The original text.
OriginalPmText string `json:"original_pm_text"`
// PrivateMessageId The private message id.
PrivateMessageId PrivateMessageId `json:"private_message_id"`
Published string `json:"published"`
Reason string `json:"reason"`
Resolved bool `json:"resolved"`
// ResolverId The person id.
ResolverId *PersonId `json:"resolver_id,omitempty"`
Updated *string `json:"updated,omitempty"`
}
PrivateMessageReport The private message report.
type PrivateMessageReportId ¶
type PrivateMessageReportId = float64
PrivateMessageReportId The private message report id.
type PrivateMessageReportResponse ¶
type PrivateMessageReportResponse struct {
// PrivateMessageReportView A private message report view.
PrivateMessageReportView PrivateMessageReportView `json:"private_message_report_view"`
}
PrivateMessageReportResponse A private message report response.
type PrivateMessageReportView ¶
type PrivateMessageReportView struct {
// Creator A person.
Creator Person `json:"creator"`
// PrivateMessage A private message.
PrivateMessage PrivateMessage `json:"private_message"`
// PrivateMessageCreator A person.
PrivateMessageCreator Person `json:"private_message_creator"`
// PrivateMessageReport The private message report.
PrivateMessageReport PrivateMessageReport `json:"private_message_report"`
// Resolver A person.
Resolver *Person `json:"resolver,omitempty"`
}
PrivateMessageReportView A private message report view.
type PrivateMessageResponse ¶
type PrivateMessageResponse struct {
// PrivateMessageView A private message view.
PrivateMessageView PrivateMessageView `json:"private_message_view"`
}
PrivateMessageResponse A single private message response.
type PrivateMessageView ¶
type PrivateMessageView struct {
// Creator A person.
Creator Person `json:"creator"`
// PrivateMessage A private message.
PrivateMessage PrivateMessage `json:"private_message"`
// Recipient A person.
Recipient Person `json:"recipient"`
}
PrivateMessageView A private message view.
type PublicOAuthProvider ¶
type PublicOAuthProvider = OAuthProvider
PublicOAuthProvider oauth provider with client_secret - should never be sent to the client
type PurgeComment ¶
type PurgeComment struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
Reason *string `json:"reason,omitempty"`
}
PurgeComment Purges a comment from the database. This will delete all content attached to that comment.
type PurgeCommentJSONRequestBody ¶
type PurgeCommentJSONRequestBody = PurgeComment
PurgeCommentJSONRequestBody defines body for PurgeComment for application/json ContentType.
type PurgeCommentResp ¶
type PurgeCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParsePurgeCommentResp ¶
func ParsePurgeCommentResp(rsp *http.Response) (*PurgeCommentResp, error)
ParsePurgeCommentResp parses an HTTP response from a PurgeCommentWithResponse call
func (PurgeCommentResp) Status ¶
func (r PurgeCommentResp) Status() string
Status returns HTTPResponse.Status
func (PurgeCommentResp) StatusCode ¶
func (r PurgeCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PurgeCommunity ¶
type PurgeCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Reason *string `json:"reason,omitempty"`
}
PurgeCommunity Purges a community from the database. This will delete all content attached to that community.
type PurgeCommunityJSONRequestBody ¶
type PurgeCommunityJSONRequestBody = PurgeCommunity
PurgeCommunityJSONRequestBody defines body for PurgeCommunity for application/json ContentType.
type PurgeCommunityResp ¶
type PurgeCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParsePurgeCommunityResp ¶
func ParsePurgeCommunityResp(rsp *http.Response) (*PurgeCommunityResp, error)
ParsePurgeCommunityResp parses an HTTP response from a PurgeCommunityWithResponse call
func (PurgeCommunityResp) Status ¶
func (r PurgeCommunityResp) Status() string
Status returns HTTPResponse.Status
func (PurgeCommunityResp) StatusCode ¶
func (r PurgeCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PurgePerson ¶
type PurgePerson struct {
// PersonId The person id.
PersonId PersonId `json:"person_id"`
Reason *string `json:"reason,omitempty"`
}
PurgePerson Purges a person from the database. This will delete all content attached to that person.
type PurgePersonJSONRequestBody ¶
type PurgePersonJSONRequestBody = PurgePerson
PurgePersonJSONRequestBody defines body for PurgePerson for application/json ContentType.
type PurgePersonResp ¶
type PurgePersonResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParsePurgePersonResp ¶
func ParsePurgePersonResp(rsp *http.Response) (*PurgePersonResp, error)
ParsePurgePersonResp parses an HTTP response from a PurgePersonWithResponse call
func (PurgePersonResp) Status ¶
func (r PurgePersonResp) Status() string
Status returns HTTPResponse.Status
func (PurgePersonResp) StatusCode ¶
func (r PurgePersonResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PurgePost ¶
type PurgePost struct {
// PostId The post id.
PostId PostId `json:"post_id"`
Reason *string `json:"reason,omitempty"`
}
PurgePost Purges a post from the database. This will delete all content attached to that post.
type PurgePostJSONRequestBody ¶
type PurgePostJSONRequestBody = PurgePost
PurgePostJSONRequestBody defines body for PurgePost for application/json ContentType.
type PurgePostResp ¶
type PurgePostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParsePurgePostResp ¶
func ParsePurgePostResp(rsp *http.Response) (*PurgePostResp, error)
ParsePurgePostResp parses an HTTP response from a PurgePostWithResponse call
func (PurgePostResp) Status ¶
func (r PurgePostResp) Status() string
Status returns HTTPResponse.Status
func (PurgePostResp) StatusCode ¶
func (r PurgePostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReadableFederationState ¶
type ReadableFederationState struct {
// FailCount how many failed attempts have been made to send the next activity
FailCount float64 `json:"fail_count"`
// InstanceId The instance id.
InstanceId InstanceId `json:"instance_id"`
// LastRetry timestamp of the last retry attempt (when the last failing activity was resent)
LastRetry *string `json:"last_retry,omitempty"`
LastSuccessfulId *ActivityId `json:"last_successful_id,omitempty"`
LastSuccessfulPublishedTime *string `json:"last_successful_published_time,omitempty"`
// NextRetry timestamp of the next retry attempt (null if fail count is 0)
NextRetry *string `json:"next_retry,omitempty"`
}
ReadableFederationState defines model for ReadableFederationState.
type Register ¶
type Register struct {
// Answer An answer is mandatory if require application is enabled on the server
Answer *string `json:"answer,omitempty"`
// CaptchaAnswer Your captcha answer.
CaptchaAnswer *string `json:"captcha_answer,omitempty"`
// CaptchaUuid The UUID of the captcha item.
CaptchaUuid *string `json:"captcha_uuid,omitempty"`
Email *SensitiveString `json:"email,omitempty"`
// Honeypot A form field to trick signup bots. Should be None.
Honeypot *string `json:"honeypot,omitempty"`
Password SensitiveString `json:"password"`
PasswordVerify SensitiveString `json:"password_verify"`
ShowNsfw *bool `json:"show_nsfw,omitempty"`
Username string `json:"username"`
}
Register Register / Sign up to lemmy.
type RegisterJSONRequestBody ¶
type RegisterJSONRequestBody = Register
RegisterJSONRequestBody defines body for Register for application/json ContentType.
type RegisterResp ¶
type RegisterResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LoginResponse
}
func ParseRegisterResp ¶
func ParseRegisterResp(rsp *http.Response) (*RegisterResp, error)
ParseRegisterResp parses an HTTP response from a RegisterWithResponse call
func (RegisterResp) Status ¶
func (r RegisterResp) Status() string
Status returns HTTPResponse.Status
func (RegisterResp) StatusCode ¶
func (r RegisterResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegistrationApplication ¶
type RegistrationApplication struct {
// AdminId The person id.
AdminId *PersonId `json:"admin_id,omitempty"`
Answer string `json:"answer"`
DenyReason *string `json:"deny_reason,omitempty"`
// Id The registration application id.
Id RegistrationApplicationId `json:"id"`
// LocalUserId The local user id.
LocalUserId LocalUserId `json:"local_user_id"`
Published string `json:"published"`
}
RegistrationApplication A registration application.
type RegistrationApplicationId ¶
type RegistrationApplicationId = float64
RegistrationApplicationId The registration application id.
type RegistrationApplicationResponse ¶
type RegistrationApplicationResponse struct {
// RegistrationApplication A registration application view.
RegistrationApplication RegistrationApplicationView `json:"registration_application"`
}
RegistrationApplicationResponse The response of an action done to a registration application.
type RegistrationApplicationView ¶
type RegistrationApplicationView struct {
// Admin A person.
Admin *Person `json:"admin,omitempty"`
// Creator A person.
Creator Person `json:"creator"`
// CreatorLocalUser A local user.
CreatorLocalUser LocalUser `json:"creator_local_user"`
// RegistrationApplication A registration application.
RegistrationApplication RegistrationApplication `json:"registration_application"`
}
RegistrationApplicationView A registration application view.
type RegistrationMode ¶
type RegistrationMode string
RegistrationMode The registration mode for your site. Determines what happens after a user signs up.
const ( Closed RegistrationMode = "Closed" Open RegistrationMode = "Open" RequireApplication RegistrationMode = "RequireApplication" )
Defines values for RegistrationMode.
type RemoveComment ¶
type RemoveComment struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
Reason *string `json:"reason,omitempty"`
Removed bool `json:"removed"`
}
RemoveComment Remove a comment (only doable by mods).
type RemoveCommentJSONRequestBody ¶
type RemoveCommentJSONRequestBody = RemoveComment
RemoveCommentJSONRequestBody defines body for RemoveComment for application/json ContentType.
type RemoveCommentResp ¶
type RemoveCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentResponse
}
func ParseRemoveCommentResp ¶
func ParseRemoveCommentResp(rsp *http.Response) (*RemoveCommentResp, error)
ParseRemoveCommentResp parses an HTTP response from a RemoveCommentWithResponse call
func (RemoveCommentResp) Status ¶
func (r RemoveCommentResp) Status() string
Status returns HTTPResponse.Status
func (RemoveCommentResp) StatusCode ¶
func (r RemoveCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemoveCommunity ¶
type RemoveCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Reason *string `json:"reason,omitempty"`
Removed bool `json:"removed"`
}
RemoveCommunity Remove a community (only doable by moderators).
type RemoveCommunityJSONRequestBody ¶
type RemoveCommunityJSONRequestBody = RemoveCommunity
RemoveCommunityJSONRequestBody defines body for RemoveCommunity for application/json ContentType.
type RemoveCommunityResp ¶
type RemoveCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommunityResponse
}
func ParseRemoveCommunityResp ¶
func ParseRemoveCommunityResp(rsp *http.Response) (*RemoveCommunityResp, error)
ParseRemoveCommunityResp parses an HTTP response from a RemoveCommunityWithResponse call
func (RemoveCommunityResp) Status ¶
func (r RemoveCommunityResp) Status() string
Status returns HTTPResponse.Status
func (RemoveCommunityResp) StatusCode ¶
func (r RemoveCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RemovePost ¶
type RemovePost struct {
// PostId The post id.
PostId PostId `json:"post_id"`
Reason *string `json:"reason,omitempty"`
Removed bool `json:"removed"`
}
RemovePost Remove a post (only doable by mods).
type RemovePostJSONRequestBody ¶
type RemovePostJSONRequestBody = RemovePost
RemovePostJSONRequestBody defines body for RemovePost for application/json ContentType.
type RemovePostResp ¶
type RemovePostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostResponse
}
func ParseRemovePostResp ¶
func ParseRemovePostResp(rsp *http.Response) (*RemovePostResp, error)
ParseRemovePostResp parses an HTTP response from a RemovePostWithResponse call
func (RemovePostResp) Status ¶
func (r RemovePostResp) Status() string
Status returns HTTPResponse.Status
func (RemovePostResp) StatusCode ¶
func (r RemovePostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReportCombinedPaginationCursor ¶
type ReportCombinedPaginationCursor = string
ReportCombinedPaginationCursor like PaginationCursor but for the report_combined table
type ReportCombinedView ¶
type ReportCombinedView struct {
// contains filtered or unexported fields
}
ReportCombinedView defines model for ReportCombinedView.
func (ReportCombinedView) AsReportCombinedView0 ¶
func (t ReportCombinedView) AsReportCombinedView0() (ReportCombinedView0, error)
AsReportCombinedView0 returns the union data inside the ReportCombinedView as a ReportCombinedView0
func (ReportCombinedView) AsReportCombinedView1 ¶
func (t ReportCombinedView) AsReportCombinedView1() (ReportCombinedView1, error)
AsReportCombinedView1 returns the union data inside the ReportCombinedView as a ReportCombinedView1
func (ReportCombinedView) AsReportCombinedView2 ¶
func (t ReportCombinedView) AsReportCombinedView2() (ReportCombinedView2, error)
AsReportCombinedView2 returns the union data inside the ReportCombinedView as a ReportCombinedView2
func (ReportCombinedView) AsReportCombinedView3 ¶
func (t ReportCombinedView) AsReportCombinedView3() (ReportCombinedView3, error)
AsReportCombinedView3 returns the union data inside the ReportCombinedView as a ReportCombinedView3
func (*ReportCombinedView) FromReportCombinedView0 ¶
func (t *ReportCombinedView) FromReportCombinedView0(v ReportCombinedView0) error
FromReportCombinedView0 overwrites any union data inside the ReportCombinedView as the provided ReportCombinedView0
func (*ReportCombinedView) FromReportCombinedView1 ¶
func (t *ReportCombinedView) FromReportCombinedView1(v ReportCombinedView1) error
FromReportCombinedView1 overwrites any union data inside the ReportCombinedView as the provided ReportCombinedView1
func (*ReportCombinedView) FromReportCombinedView2 ¶
func (t *ReportCombinedView) FromReportCombinedView2(v ReportCombinedView2) error
FromReportCombinedView2 overwrites any union data inside the ReportCombinedView as the provided ReportCombinedView2
func (*ReportCombinedView) FromReportCombinedView3 ¶
func (t *ReportCombinedView) FromReportCombinedView3(v ReportCombinedView3) error
FromReportCombinedView3 overwrites any union data inside the ReportCombinedView as the provided ReportCombinedView3
func (ReportCombinedView) MarshalJSON ¶
func (t ReportCombinedView) MarshalJSON() ([]byte, error)
func (*ReportCombinedView) MergeReportCombinedView0 ¶
func (t *ReportCombinedView) MergeReportCombinedView0(v ReportCombinedView0) error
MergeReportCombinedView0 performs a merge with any union data inside the ReportCombinedView, using the provided ReportCombinedView0
func (*ReportCombinedView) MergeReportCombinedView1 ¶
func (t *ReportCombinedView) MergeReportCombinedView1(v ReportCombinedView1) error
MergeReportCombinedView1 performs a merge with any union data inside the ReportCombinedView, using the provided ReportCombinedView1
func (*ReportCombinedView) MergeReportCombinedView2 ¶
func (t *ReportCombinedView) MergeReportCombinedView2(v ReportCombinedView2) error
MergeReportCombinedView2 performs a merge with any union data inside the ReportCombinedView, using the provided ReportCombinedView2
func (*ReportCombinedView) MergeReportCombinedView3 ¶
func (t *ReportCombinedView) MergeReportCombinedView3(v ReportCombinedView3) error
MergeReportCombinedView3 performs a merge with any union data inside the ReportCombinedView, using the provided ReportCombinedView3
func (*ReportCombinedView) UnmarshalJSON ¶
func (t *ReportCombinedView) UnmarshalJSON(b []byte) error
type ReportCombinedView0 ¶
type ReportCombinedView0 struct {
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
Hidden bool `json:"hidden"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// PostCreator A person.
PostCreator Person `json:"post_creator"`
// PostReport A post report.
PostReport PostReport `json:"post_report"`
Read bool `json:"read"`
// Resolver A person.
Resolver *Person `json:"resolver,omitempty"`
// Saved The time when the post was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type ReportCombinedView0Type `json:"type_"`
UnreadComments float64 `json:"unread_comments"`
}
ReportCombinedView0 defines model for .
type ReportCombinedView0Type ¶
type ReportCombinedView0Type string
ReportCombinedView0Type defines model for ReportCombinedView.0.Type.
const (
ReportCombinedView0TypePost ReportCombinedView0Type = "Post"
)
Defines values for ReportCombinedView0Type.
type ReportCombinedView1 ¶
type ReportCombinedView1 struct {
// Comment A comment.
Comment Comment `json:"comment"`
// CommentCreator A person.
CommentCreator Person `json:"comment_creator"`
// CommentReport A comment report.
CommentReport CommentReport `json:"comment_report"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// Resolver A person.
Resolver *Person `json:"resolver,omitempty"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type ReportCombinedView1Type `json:"type_"`
}
ReportCombinedView1 defines model for .
type ReportCombinedView1Type ¶
type ReportCombinedView1Type string
ReportCombinedView1Type defines model for ReportCombinedView.1.Type.
const (
ReportCombinedView1TypeComment ReportCombinedView1Type = "Comment"
)
Defines values for ReportCombinedView1Type.
type ReportCombinedView2 ¶
type ReportCombinedView2 struct {
// Creator A person.
Creator Person `json:"creator"`
// PrivateMessage A private message.
PrivateMessage PrivateMessage `json:"private_message"`
// PrivateMessageCreator A person.
PrivateMessageCreator Person `json:"private_message_creator"`
// PrivateMessageReport The private message report.
PrivateMessageReport PrivateMessageReport `json:"private_message_report"`
// Resolver A person.
Resolver *Person `json:"resolver,omitempty"`
Type ReportCombinedView2Type `json:"type_"`
}
ReportCombinedView2 defines model for .
type ReportCombinedView2Type ¶
type ReportCombinedView2Type string
ReportCombinedView2Type defines model for ReportCombinedView.2.Type.
const (
ReportCombinedView2TypePrivateMessage ReportCombinedView2Type = "PrivateMessage"
)
Defines values for ReportCombinedView2Type.
type ReportCombinedView3 ¶
type ReportCombinedView3 struct {
// Community A community.
Community Community `json:"community"`
// CommunityReport A comment report.
CommunityReport CommunityReport `json:"community_report"`
// Creator A person.
Creator Person `json:"creator"`
// Resolver A person.
Resolver *Person `json:"resolver,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type ReportCombinedView3Type `json:"type_"`
}
ReportCombinedView3 defines model for .
type ReportCombinedView3Type ¶
type ReportCombinedView3Type string
ReportCombinedView3Type defines model for ReportCombinedView.3.Type.
const (
ReportCombinedView3TypeCommunity ReportCombinedView3Type = "Community"
)
Defines values for ReportCombinedView3Type.
type ReportType ¶
type ReportType string
ReportType A list of possible types for reports.
const ( ReportTypeAll ReportType = "All" ReportTypeComments ReportType = "Comments" ReportTypeCommunities ReportType = "Communities" ReportTypePosts ReportType = "Posts" ReportTypePrivateMessages ReportType = "PrivateMessages" )
Defines values for ReportType.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ResendVerificationEmail ¶
type ResendVerificationEmail struct {
Email SensitiveString `json:"email"`
}
ResendVerificationEmail Make a request to resend your verification email.
type ResendVerificationEmailJSONRequestBody ¶
type ResendVerificationEmailJSONRequestBody = ResendVerificationEmail
ResendVerificationEmailJSONRequestBody defines body for ResendVerificationEmail for application/json ContentType.
type ResendVerificationEmailResp ¶
type ResendVerificationEmailResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseResendVerificationEmailResp ¶
func ParseResendVerificationEmailResp(rsp *http.Response) (*ResendVerificationEmailResp, error)
ParseResendVerificationEmailResp parses an HTTP response from a ResendVerificationEmailWithResponse call
func (ResendVerificationEmailResp) Status ¶
func (r ResendVerificationEmailResp) Status() string
Status returns HTTPResponse.Status
func (ResendVerificationEmailResp) StatusCode ¶
func (r ResendVerificationEmailResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResolveCommentReport ¶
type ResolveCommentReport struct {
// ReportId The comment report id.
ReportId CommentReportId `json:"report_id"`
Resolved bool `json:"resolved"`
}
ResolveCommentReport Resolve a comment report (only doable by mods).
type ResolveCommentReportJSONRequestBody ¶
type ResolveCommentReportJSONRequestBody = ResolveCommentReport
ResolveCommentReportJSONRequestBody defines body for ResolveCommentReport for application/json ContentType.
type ResolveCommentReportResp ¶
type ResolveCommentReportResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentReportResponse
}
func ParseResolveCommentReportResp ¶
func ParseResolveCommentReportResp(rsp *http.Response) (*ResolveCommentReportResp, error)
ParseResolveCommentReportResp parses an HTTP response from a ResolveCommentReportWithResponse call
func (ResolveCommentReportResp) Status ¶
func (r ResolveCommentReportResp) Status() string
Status returns HTTPResponse.Status
func (ResolveCommentReportResp) StatusCode ¶
func (r ResolveCommentReportResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResolveObjectParams ¶
type ResolveObjectParams struct {
// Q Can be the full url, or a shortened version like: !fediverse@lemmy.ml
Q string `form:"q" json:"q"`
}
ResolveObjectParams defines parameters for ResolveObject.
type ResolveObjectResp ¶
type ResolveObjectResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ResolveObjectResponse
}
func ParseResolveObjectResp ¶
func ParseResolveObjectResp(rsp *http.Response) (*ResolveObjectResp, error)
ParseResolveObjectResp parses an HTTP response from a ResolveObjectWithResponse call
func (ResolveObjectResp) Status ¶
func (r ResolveObjectResp) Status() string
Status returns HTTPResponse.Status
func (ResolveObjectResp) StatusCode ¶
func (r ResolveObjectResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResolveObjectResponse ¶
type ResolveObjectResponse struct {
// Comment A comment view.
Comment *CommentView `json:"comment,omitempty"`
// Community A community view.
Community *CommunityView `json:"community,omitempty"`
// Person A person view.
Person *PersonView `json:"person,omitempty"`
// Post A post view.
Post *PostView `json:"post,omitempty"`
}
ResolveObjectResponse The response of an apub object fetch.
type ResolvePostReport ¶
type ResolvePostReport struct {
// ReportId The post report id.
ReportId PostReportId `json:"report_id"`
Resolved bool `json:"resolved"`
}
ResolvePostReport Resolve a post report (mods only).
type ResolvePostReportJSONRequestBody ¶
type ResolvePostReportJSONRequestBody = ResolvePostReport
ResolvePostReportJSONRequestBody defines body for ResolvePostReport for application/json ContentType.
type ResolvePostReportResp ¶
type ResolvePostReportResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostReportResponse
}
func ParseResolvePostReportResp ¶
func ParseResolvePostReportResp(rsp *http.Response) (*ResolvePostReportResp, error)
ParseResolvePostReportResp parses an HTTP response from a ResolvePostReportWithResponse call
func (ResolvePostReportResp) Status ¶
func (r ResolvePostReportResp) Status() string
Status returns HTTPResponse.Status
func (ResolvePostReportResp) StatusCode ¶
func (r ResolvePostReportResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ResolvePrivateMessageReport ¶
type ResolvePrivateMessageReport struct {
// ReportId The private message report id.
ReportId PrivateMessageReportId `json:"report_id"`
Resolved bool `json:"resolved"`
}
ResolvePrivateMessageReport Resolve a private message report.
type ResolvePrivateMessageReportJSONRequestBody ¶
type ResolvePrivateMessageReportJSONRequestBody = ResolvePrivateMessageReport
ResolvePrivateMessageReportJSONRequestBody defines body for ResolvePrivateMessageReport for application/json ContentType.
type ResolvePrivateMessageReportResp ¶
type ResolvePrivateMessageReportResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PrivateMessageReportResponse
}
func ParseResolvePrivateMessageReportResp ¶
func ParseResolvePrivateMessageReportResp(rsp *http.Response) (*ResolvePrivateMessageReportResp, error)
ParseResolvePrivateMessageReportResp parses an HTTP response from a ResolvePrivateMessageReportWithResponse call
func (ResolvePrivateMessageReportResp) Status ¶
func (r ResolvePrivateMessageReportResp) Status() string
Status returns HTTPResponse.Status
func (ResolvePrivateMessageReportResp) StatusCode ¶
func (r ResolvePrivateMessageReportResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SaveComment ¶
type SaveComment struct {
// CommentId The comment id.
CommentId CommentId `json:"comment_id"`
Save bool `json:"save"`
}
SaveComment Save / bookmark a comment.
type SaveCommentJSONRequestBody ¶
type SaveCommentJSONRequestBody = SaveComment
SaveCommentJSONRequestBody defines body for SaveComment for application/json ContentType.
type SaveCommentResp ¶
type SaveCommentResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CommentResponse
}
func ParseSaveCommentResp ¶
func ParseSaveCommentResp(rsp *http.Response) (*SaveCommentResp, error)
ParseSaveCommentResp parses an HTTP response from a SaveCommentWithResponse call
func (SaveCommentResp) Status ¶
func (r SaveCommentResp) Status() string
Status returns HTTPResponse.Status
func (SaveCommentResp) StatusCode ¶
func (r SaveCommentResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SavePost ¶
type SavePost struct {
// PostId The post id.
PostId PostId `json:"post_id"`
Save bool `json:"save"`
}
SavePost Save / bookmark a post.
type SavePostJSONRequestBody ¶
type SavePostJSONRequestBody = SavePost
SavePostJSONRequestBody defines body for SavePost for application/json ContentType.
type SavePostResp ¶
type SavePostResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PostResponse
}
func ParseSavePostResp ¶
func ParseSavePostResp(rsp *http.Response) (*SavePostResp, error)
ParseSavePostResp parses an HTTP response from a SavePostWithResponse call
func (SavePostResp) Status ¶
func (r SavePostResp) Status() string
Status returns HTTPResponse.Status
func (SavePostResp) StatusCode ¶
func (r SavePostResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SaveUserSettings ¶
type SaveUserSettings struct {
// AutoMarkFetchedPostsAsRead Whether to automatically mark fetched posts as read.
AutoMarkFetchedPostsAsRead *bool `json:"auto_mark_fetched_posts_as_read,omitempty"`
// Bio Your bio / info, in markdown.
Bio *string `json:"bio,omitempty"`
// BlurNsfw Blur nsfw posts.
BlurNsfw *bool `json:"blur_nsfw,omitempty"`
// BotAccount Whether this account is a bot account. Users can hide these accounts easily if they wish.
BotAccount *bool `json:"bot_account,omitempty"`
// CollapseBotComments Whether to auto-collapse bot comments.
CollapseBotComments *bool `json:"collapse_bot_comments,omitempty"`
// DefaultCommentSortType The comment sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultCommentSortType *CommentSortType `json:"default_comment_sort_type,omitempty"`
// DefaultListingType A listing type for post and comment list fetches.
DefaultListingType *ListingType `json:"default_listing_type,omitempty"`
// DefaultPostSortType The post sort types. See here for descriptions: https://join-lemmy.org/docs/en/users/03-votes-and-ranking.html
DefaultPostSortType *PostSortType `json:"default_post_sort_type,omitempty"`
// DefaultPostTimeRangeSeconds A default time range limit to apply to post sorts, in seconds. 0 means none.
DefaultPostTimeRangeSeconds *float64 `json:"default_post_time_range_seconds,omitempty"`
// DiscussionLanguages A list of languages you are able to see discussion in.
DiscussionLanguages *[]LanguageId `json:"discussion_languages,omitempty"`
// DisplayName Your display name, which can contain strange characters, and does not need to be unique.
DisplayName *string `json:"display_name,omitempty"`
Email *SensitiveString `json:"email,omitempty"`
// EnableAnimatedImages Whether user avatars or inline images in the UI that are gifs should be allowed to play or
// should be paused
EnableAnimatedImages *bool `json:"enable_animated_images,omitempty"`
EnableKeyboardNavigation *bool `json:"enable_keyboard_navigation,omitempty"`
// EnablePrivateMessages Whether a user can send / receive private messages
EnablePrivateMessages *bool `json:"enable_private_messages,omitempty"`
// HideMedia Whether to hide posts containing images/videos.
HideMedia *bool `json:"hide_media,omitempty"`
// InfiniteScrollEnabled Enable infinite scroll
InfiniteScrollEnabled *bool `json:"infinite_scroll_enabled,omitempty"`
// InterfaceLanguage The language of the lemmy interface
InterfaceLanguage *string `json:"interface_language,omitempty"`
// MatrixUserId Your matrix user id. Ex:
MatrixUserId *string `json:"matrix_user_id,omitempty"`
// OpenLinksInNewTab Open links in a new tab
OpenLinksInNewTab *bool `json:"open_links_in_new_tab,omitempty"`
// PostListingMode A post-view mode that changes how multiple post listings look.
PostListingMode *PostListingMode `json:"post_listing_mode,omitempty"`
// SendNotificationsToEmail Sends notifications to your email.
SendNotificationsToEmail *bool `json:"send_notifications_to_email,omitempty"`
// ShowAvatars Whether to show or hide avatars.
ShowAvatars *bool `json:"show_avatars,omitempty"`
// ShowBotAccounts Whether to show bot accounts.
ShowBotAccounts *bool `json:"show_bot_accounts,omitempty"`
ShowDownvotes *bool `json:"show_downvotes,omitempty"`
// ShowNsfw Show nsfw posts.
ShowNsfw *bool `json:"show_nsfw,omitempty"`
// ShowReadPosts Whether to show read posts.
ShowReadPosts *bool `json:"show_read_posts,omitempty"`
// ShowScores Some vote display mode settings
ShowScores *bool `json:"show_scores,omitempty"`
ShowUpvotePercentage *bool `json:"show_upvote_percentage,omitempty"`
ShowUpvotes *bool `json:"show_upvotes,omitempty"`
// Theme Your user's theme.
Theme *string `json:"theme,omitempty"`
}
SaveUserSettings Saves settings for your user.
type SaveUserSettingsJSONRequestBody ¶
type SaveUserSettingsJSONRequestBody = SaveUserSettings
SaveUserSettingsJSONRequestBody defines body for SaveUserSettings for application/json ContentType.
type SaveUserSettingsResp ¶
type SaveUserSettingsResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseSaveUserSettingsResp ¶
func ParseSaveUserSettingsResp(rsp *http.Response) (*SaveUserSettingsResp, error)
ParseSaveUserSettingsResp parses an HTTP response from a SaveUserSettingsWithResponse call
func (SaveUserSettingsResp) Status ¶
func (r SaveUserSettingsResp) Status() string
Status returns HTTPResponse.Status
func (SaveUserSettingsResp) StatusCode ¶
func (r SaveUserSettingsResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchCombinedPaginationCursor ¶
type SearchCombinedPaginationCursor = string
SearchCombinedPaginationCursor like PaginationCursor but for the modlog_combined
type SearchCombinedView ¶
type SearchCombinedView struct {
// contains filtered or unexported fields
}
SearchCombinedView defines model for SearchCombinedView.
func (SearchCombinedView) AsSearchCombinedView0 ¶
func (t SearchCombinedView) AsSearchCombinedView0() (SearchCombinedView0, error)
AsSearchCombinedView0 returns the union data inside the SearchCombinedView as a SearchCombinedView0
func (SearchCombinedView) AsSearchCombinedView1 ¶
func (t SearchCombinedView) AsSearchCombinedView1() (SearchCombinedView1, error)
AsSearchCombinedView1 returns the union data inside the SearchCombinedView as a SearchCombinedView1
func (SearchCombinedView) AsSearchCombinedView2 ¶
func (t SearchCombinedView) AsSearchCombinedView2() (SearchCombinedView2, error)
AsSearchCombinedView2 returns the union data inside the SearchCombinedView as a SearchCombinedView2
func (SearchCombinedView) AsSearchCombinedView3 ¶
func (t SearchCombinedView) AsSearchCombinedView3() (SearchCombinedView3, error)
AsSearchCombinedView3 returns the union data inside the SearchCombinedView as a SearchCombinedView3
func (*SearchCombinedView) FromSearchCombinedView0 ¶
func (t *SearchCombinedView) FromSearchCombinedView0(v SearchCombinedView0) error
FromSearchCombinedView0 overwrites any union data inside the SearchCombinedView as the provided SearchCombinedView0
func (*SearchCombinedView) FromSearchCombinedView1 ¶
func (t *SearchCombinedView) FromSearchCombinedView1(v SearchCombinedView1) error
FromSearchCombinedView1 overwrites any union data inside the SearchCombinedView as the provided SearchCombinedView1
func (*SearchCombinedView) FromSearchCombinedView2 ¶
func (t *SearchCombinedView) FromSearchCombinedView2(v SearchCombinedView2) error
FromSearchCombinedView2 overwrites any union data inside the SearchCombinedView as the provided SearchCombinedView2
func (*SearchCombinedView) FromSearchCombinedView3 ¶
func (t *SearchCombinedView) FromSearchCombinedView3(v SearchCombinedView3) error
FromSearchCombinedView3 overwrites any union data inside the SearchCombinedView as the provided SearchCombinedView3
func (SearchCombinedView) MarshalJSON ¶
func (t SearchCombinedView) MarshalJSON() ([]byte, error)
func (*SearchCombinedView) MergeSearchCombinedView0 ¶
func (t *SearchCombinedView) MergeSearchCombinedView0(v SearchCombinedView0) error
MergeSearchCombinedView0 performs a merge with any union data inside the SearchCombinedView, using the provided SearchCombinedView0
func (*SearchCombinedView) MergeSearchCombinedView1 ¶
func (t *SearchCombinedView) MergeSearchCombinedView1(v SearchCombinedView1) error
MergeSearchCombinedView1 performs a merge with any union data inside the SearchCombinedView, using the provided SearchCombinedView1
func (*SearchCombinedView) MergeSearchCombinedView2 ¶
func (t *SearchCombinedView) MergeSearchCombinedView2(v SearchCombinedView2) error
MergeSearchCombinedView2 performs a merge with any union data inside the SearchCombinedView, using the provided SearchCombinedView2
func (*SearchCombinedView) MergeSearchCombinedView3 ¶
func (t *SearchCombinedView) MergeSearchCombinedView3(v SearchCombinedView3) error
MergeSearchCombinedView3 performs a merge with any union data inside the SearchCombinedView, using the provided SearchCombinedView3
func (*SearchCombinedView) UnmarshalJSON ¶
func (t *SearchCombinedView) UnmarshalJSON(b []byte) error
type SearchCombinedView0 ¶
type SearchCombinedView0 struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
Hidden bool `json:"hidden"`
ImageDetails *ImageDetails `json:"image_details,omitempty"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
Read bool `json:"read"`
// Saved The time when the post was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
// Tags we wrap this in a struct so we can implement FromSqlRow<Json> for it
Tags PostTags `json:"tags"`
Type SearchCombinedView0Type `json:"type_"`
UnreadComments float64 `json:"unread_comments"`
}
SearchCombinedView0 defines model for .
type SearchCombinedView0Type ¶
type SearchCombinedView0Type string
SearchCombinedView0Type defines model for SearchCombinedView.0.Type.
const (
SearchCombinedView0TypePost SearchCombinedView0Type = "Post"
)
Defines values for SearchCombinedView0Type.
type SearchCombinedView1 ¶
type SearchCombinedView1 struct {
BannedFromCommunity bool `json:"banned_from_community"`
CanMod bool `json:"can_mod"`
// Comment A comment.
Comment Comment `json:"comment"`
// Community A community.
Community Community `json:"community"`
// Creator A person.
Creator Person `json:"creator"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community"`
CreatorBlocked bool `json:"creator_blocked"`
CreatorIsAdmin bool `json:"creator_is_admin"`
CreatorIsModerator bool `json:"creator_is_moderator"`
MyVote *float64 `json:"my_vote,omitempty"`
// Post A post.
Post Post `json:"post"`
// Saved The time when the comment was saved.
Saved *string `json:"saved,omitempty"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type SearchCombinedView1Type `json:"type_"`
}
SearchCombinedView1 defines model for .
type SearchCombinedView1Type ¶
type SearchCombinedView1Type string
SearchCombinedView1Type defines model for SearchCombinedView.1.Type.
const (
SearchCombinedView1TypeComment SearchCombinedView1Type = "Comment"
)
Defines values for SearchCombinedView1Type.
type SearchCombinedView2 ¶
type SearchCombinedView2 struct {
BannedFromCommunity bool `json:"banned_from_community"`
Blocked bool `json:"blocked"`
CanMod bool `json:"can_mod"`
// Community A community.
Community Community `json:"community"`
// Subscribed A type / status for a community subscribe.
Subscribed SubscribedType `json:"subscribed"`
Type SearchCombinedView2Type `json:"type_"`
}
SearchCombinedView2 defines model for .
type SearchCombinedView2Type ¶
type SearchCombinedView2Type string
SearchCombinedView2Type defines model for SearchCombinedView.2.Type.
const (
SearchCombinedView2TypeCommunity SearchCombinedView2Type = "Community"
)
Defines values for SearchCombinedView2Type.
type SearchCombinedView3 ¶
type SearchCombinedView3 struct {
IsAdmin bool `json:"is_admin"`
// Person A person.
Person Person `json:"person"`
Type SearchCombinedView3Type `json:"type_"`
}
SearchCombinedView3 defines model for .
type SearchCombinedView3Type ¶
type SearchCombinedView3Type string
SearchCombinedView3Type defines model for SearchCombinedView.3.Type.
const (
SearchCombinedView3TypePerson SearchCombinedView3Type = "Person"
)
Defines values for SearchCombinedView3Type.
type SearchParams ¶
type SearchParams struct {
PageBack *bool `form:"page_back,omitempty" json:"page_back,omitempty"`
PageCursor *SearchCombinedPaginationCursor `form:"page_cursor,omitempty" json:"page_cursor,omitempty"`
DislikedOnly *bool `form:"disliked_only,omitempty" json:"disliked_only,omitempty"`
LikedOnly *bool `form:"liked_only,omitempty" json:"liked_only,omitempty"`
PostUrlOnly *bool `form:"post_url_only,omitempty" json:"post_url_only,omitempty"`
TitleOnly *bool `form:"title_only,omitempty" json:"title_only,omitempty"`
ListingType *ListingType `form:"listing_type,omitempty" json:"listing_type,omitempty"`
// TimeRangeSeconds Filter to within a given time range, in seconds.
// IE 60 would give results for the past minute.
TimeRangeSeconds *float64 `form:"time_range_seconds,omitempty" json:"time_range_seconds,omitempty"`
Sort *SearchSortType `form:"sort,omitempty" json:"sort,omitempty"`
Type *SearchType `form:"type_,omitempty" json:"type_,omitempty"`
CreatorId *PersonId `form:"creator_id,omitempty" json:"creator_id,omitempty"`
CommunityName *string `form:"community_name,omitempty" json:"community_name,omitempty"`
CommunityId *CommunityId `form:"community_id,omitempty" json:"community_id,omitempty"`
SearchTerm *string `form:"search_term,omitempty" json:"search_term,omitempty"`
}
SearchParams defines parameters for Search.
type SearchResp ¶
type SearchResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SearchResponse
}
func ParseSearchResp ¶
func ParseSearchResp(rsp *http.Response) (*SearchResp, error)
ParseSearchResp parses an HTTP response from a SearchWithResponse call
func (SearchResp) StatusCode ¶
func (r SearchResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SearchResponse ¶
type SearchResponse struct {
Results []SearchCombinedView `json:"results"`
}
SearchResponse The search response, containing lists of the return type possibilities
type SearchSortType ¶
type SearchSortType string
SearchSortType The search sort types.
const ( SearchSortTypeNew SearchSortType = "New" SearchSortTypeOld SearchSortType = "Old" SearchSortTypeTop SearchSortType = "Top" )
Defines values for SearchSortType.
type SearchType ¶
type SearchType string
SearchType The type of content returned from a search.
const ( All SearchType = "All" Comments SearchType = "Comments" Communities SearchType = "Communities" Posts SearchType = "Posts" Users SearchType = "Users" )
Defines values for SearchType.
type SensitiveString ¶
type SensitiveString = string
SensitiveString defines model for SensitiveString.
type Site ¶
type Site struct {
ApId DbUrl `json:"ap_id"`
Banner *DbUrl `json:"banner,omitempty"`
// ContentWarning If present, nsfw content is visible by default. Should be displayed by frontends/clients
// when the site is first opened by a user.
ContentWarning *string `json:"content_warning,omitempty"`
// Description A shorter, one-line description of the site.
Description *string `json:"description,omitempty"`
Icon *DbUrl `json:"icon,omitempty"`
// Id The site id.
Id SiteId `json:"id"`
InboxUrl DbUrl `json:"inbox_url"`
// InstanceId The instance id.
InstanceId InstanceId `json:"instance_id"`
// LastRefreshedAt The time the site was last refreshed.
LastRefreshedAt string `json:"last_refreshed_at"`
Name string `json:"name"`
PublicKey string `json:"public_key"`
Published string `json:"published"`
// Sidebar A sidebar for the site in markdown.
Sidebar *string `json:"sidebar,omitempty"`
Updated *string `json:"updated,omitempty"`
}
Site The site.
type SiteResponse ¶
type SiteResponse struct {
// SiteView A site view.
SiteView SiteView `json:"site_view"`
// Taglines deprecated, use field `tagline` or /api/v4/tagline/list
Taglines []float32 `json:"taglines"`
}
SiteResponse The response for a site.
type SiteView ¶
type SiteView struct {
// LocalSite The local site.
LocalSite LocalSite `json:"local_site"`
// LocalSiteRateLimit Rate limits for your site. Given in count / length of time.
LocalSiteRateLimit LocalSiteRateLimit `json:"local_site_rate_limit"`
// Site The site.
Site Site `json:"site"`
}
SiteView A site view.
type SubscribedType ¶
type SubscribedType string
SubscribedType A type / status for a community subscribe.
const ( ApprovalRequired SubscribedType = "ApprovalRequired" NotSubscribed SubscribedType = "NotSubscribed" Pending SubscribedType = "Pending" Subscribed SubscribedType = "Subscribed" )
Defines values for SubscribedType.
type SuccessResponse ¶
type SuccessResponse struct {
Success bool `json:"success"`
}
SuccessResponse A response that completes successfully.
type Tag ¶
type Tag struct {
ApId DbUrl `json:"ap_id"`
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
Deleted bool `json:"deleted"`
// Id The internal tag id.
Id TagId `json:"id"`
Name string `json:"name"`
Published string `json:"published"`
Updated *string `json:"updated,omitempty"`
}
Tag A tag that can be assigned to a post within a community. The tag object is created by the community moderators. The assignment happens by the post creator and can be updated by the community moderators.
A tag is a federatable object that gives additional context to another object, which can be displayed and filtered on currently, we only have community post tags, which is a tag that is created by post authors as well as mods of a community, to categorize a post. in the future we may add more tag types, depending on the requirements, this will lead to either expansion of this table (community_id optional, addition of tag_type enum) or split of this table / creation of new tables.
type Tagline ¶
type Tagline struct {
Content string `json:"content"`
Id float64 `json:"id"`
Published string `json:"published"`
Updated *string `json:"updated,omitempty"`
}
Tagline A tagline, shown at the top of your site.
type TaglineResponse ¶
type TaglineResponse struct {
// Tagline A tagline, shown at the top of your site.
Tagline Tagline `json:"tagline"`
}
TaglineResponse defines model for TaglineResponse.
type TransferCommunity ¶
type TransferCommunity struct {
// CommunityId The community id.
CommunityId CommunityId `json:"community_id"`
// PersonId The person id.
PersonId PersonId `json:"person_id"`
}
TransferCommunity Transfer a community to a new owner.
type TransferCommunityJSONRequestBody ¶
type TransferCommunityJSONRequestBody = TransferCommunity
TransferCommunityJSONRequestBody defines body for TransferCommunity for application/json ContentType.
type TransferCommunityResp ¶
type TransferCommunityResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetCommunityResponse
}
func ParseTransferCommunityResp ¶
func ParseTransferCommunityResp(rsp *http.Response) (*TransferCommunityResp, error)
ParseTransferCommunityResp parses an HTTP response from a TransferCommunityWithResponse call
func (TransferCommunityResp) Status ¶
func (r TransferCommunityResp) Status() string
Status returns HTTPResponse.Status
func (TransferCommunityResp) StatusCode ¶
func (r TransferCommunityResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTagline ¶
type UpdateTagline struct {
Content string `json:"content"`
// Id The tagline id.
Id TaglineId `json:"id"`
}
UpdateTagline Update a tagline
type UpdateTotp ¶
UpdateTotp defines model for UpdateTotp.
type UpdateTotpJSONRequestBody ¶
type UpdateTotpJSONRequestBody = UpdateTotp
UpdateTotpJSONRequestBody defines body for UpdateTotp for application/json ContentType.
type UpdateTotpResp ¶
type UpdateTotpResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UpdateTotpResponse
}
func ParseUpdateTotpResp ¶
func ParseUpdateTotpResp(rsp *http.Response) (*UpdateTotpResp, error)
ParseUpdateTotpResp parses an HTTP response from a UpdateTotpWithResponse call
func (UpdateTotpResp) Status ¶
func (r UpdateTotpResp) Status() string
Status returns HTTPResponse.Status
func (UpdateTotpResp) StatusCode ¶
func (r UpdateTotpResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTotpResponse ¶
type UpdateTotpResponse struct {
Enabled bool `json:"enabled"`
}
UpdateTotpResponse defines model for UpdateTotpResponse.
type UploadCommunityBannerMultipartBody ¶
type UploadCommunityBannerMultipartBody struct {
Image openapi_types.File `json:"image"`
}
UploadCommunityBannerMultipartBody defines parameters for UploadCommunityBanner.
type UploadCommunityBannerMultipartRequestBody ¶
type UploadCommunityBannerMultipartRequestBody UploadCommunityBannerMultipartBody
UploadCommunityBannerMultipartRequestBody defines body for UploadCommunityBanner for multipart/form-data ContentType.
type UploadCommunityBannerResp ¶
type UploadCommunityBannerResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseUploadCommunityBannerResp ¶
func ParseUploadCommunityBannerResp(rsp *http.Response) (*UploadCommunityBannerResp, error)
ParseUploadCommunityBannerResp parses an HTTP response from a UploadCommunityBannerWithResponse call
func (UploadCommunityBannerResp) Status ¶
func (r UploadCommunityBannerResp) Status() string
Status returns HTTPResponse.Status
func (UploadCommunityBannerResp) StatusCode ¶
func (r UploadCommunityBannerResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadCommunityIconMultipartBody ¶
type UploadCommunityIconMultipartBody struct {
Image openapi_types.File `json:"image"`
}
UploadCommunityIconMultipartBody defines parameters for UploadCommunityIcon.
type UploadCommunityIconMultipartRequestBody ¶
type UploadCommunityIconMultipartRequestBody UploadCommunityIconMultipartBody
UploadCommunityIconMultipartRequestBody defines body for UploadCommunityIcon for multipart/form-data ContentType.
type UploadCommunityIconResp ¶
type UploadCommunityIconResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseUploadCommunityIconResp ¶
func ParseUploadCommunityIconResp(rsp *http.Response) (*UploadCommunityIconResp, error)
ParseUploadCommunityIconResp parses an HTTP response from a UploadCommunityIconWithResponse call
func (UploadCommunityIconResp) Status ¶
func (r UploadCommunityIconResp) Status() string
Status returns HTTPResponse.Status
func (UploadCommunityIconResp) StatusCode ¶
func (r UploadCommunityIconResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadImageMultipartBody ¶
type UploadImageMultipartBody struct {
Image openapi_types.File `json:"image"`
}
UploadImageMultipartBody defines parameters for UploadImage.
type UploadImageMultipartRequestBody ¶
type UploadImageMultipartRequestBody UploadImageMultipartBody
UploadImageMultipartRequestBody defines body for UploadImage for multipart/form-data ContentType.
type UploadImageResp ¶
type UploadImageResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *UploadImageResponse
}
func ParseUploadImageResp ¶
func ParseUploadImageResp(rsp *http.Response) (*UploadImageResp, error)
ParseUploadImageResp parses an HTTP response from a UploadImageWithResponse call
func (UploadImageResp) Status ¶
func (r UploadImageResp) Status() string
Status returns HTTPResponse.Status
func (UploadImageResp) StatusCode ¶
func (r UploadImageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadImageResponse ¶
type UploadImageResponse struct {
Filename string `json:"filename"`
ImageUrl string `json:"image_url"`
}
UploadImageResponse defines model for UploadImageResponse.
type UploadSiteBannerMultipartBody ¶
type UploadSiteBannerMultipartBody struct {
Image openapi_types.File `json:"image"`
}
UploadSiteBannerMultipartBody defines parameters for UploadSiteBanner.
type UploadSiteBannerMultipartRequestBody ¶
type UploadSiteBannerMultipartRequestBody UploadSiteBannerMultipartBody
UploadSiteBannerMultipartRequestBody defines body for UploadSiteBanner for multipart/form-data ContentType.
type UploadSiteBannerResp ¶
type UploadSiteBannerResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseUploadSiteBannerResp ¶
func ParseUploadSiteBannerResp(rsp *http.Response) (*UploadSiteBannerResp, error)
ParseUploadSiteBannerResp parses an HTTP response from a UploadSiteBannerWithResponse call
func (UploadSiteBannerResp) Status ¶
func (r UploadSiteBannerResp) Status() string
Status returns HTTPResponse.Status
func (UploadSiteBannerResp) StatusCode ¶
func (r UploadSiteBannerResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadSiteIconMultipartBody ¶
type UploadSiteIconMultipartBody struct {
Image openapi_types.File `json:"image"`
}
UploadSiteIconMultipartBody defines parameters for UploadSiteIcon.
type UploadSiteIconMultipartRequestBody ¶
type UploadSiteIconMultipartRequestBody UploadSiteIconMultipartBody
UploadSiteIconMultipartRequestBody defines body for UploadSiteIcon for multipart/form-data ContentType.
type UploadSiteIconResp ¶
type UploadSiteIconResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseUploadSiteIconResp ¶
func ParseUploadSiteIconResp(rsp *http.Response) (*UploadSiteIconResp, error)
ParseUploadSiteIconResp parses an HTTP response from a UploadSiteIconWithResponse call
func (UploadSiteIconResp) Status ¶
func (r UploadSiteIconResp) Status() string
Status returns HTTPResponse.Status
func (UploadSiteIconResp) StatusCode ¶
func (r UploadSiteIconResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadUserAvatarMultipartBody ¶
type UploadUserAvatarMultipartBody struct {
Image openapi_types.File `json:"image"`
}
UploadUserAvatarMultipartBody defines parameters for UploadUserAvatar.
type UploadUserAvatarMultipartRequestBody ¶
type UploadUserAvatarMultipartRequestBody UploadUserAvatarMultipartBody
UploadUserAvatarMultipartRequestBody defines body for UploadUserAvatar for multipart/form-data ContentType.
type UploadUserAvatarResp ¶
type UploadUserAvatarResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseUploadUserAvatarResp ¶
func ParseUploadUserAvatarResp(rsp *http.Response) (*UploadUserAvatarResp, error)
ParseUploadUserAvatarResp parses an HTTP response from a UploadUserAvatarWithResponse call
func (UploadUserAvatarResp) Status ¶
func (r UploadUserAvatarResp) Status() string
Status returns HTTPResponse.Status
func (UploadUserAvatarResp) StatusCode ¶
func (r UploadUserAvatarResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadUserBannerMultipartBody ¶
type UploadUserBannerMultipartBody struct {
Image openapi_types.File `json:"image"`
}
UploadUserBannerMultipartBody defines parameters for UploadUserBanner.
type UploadUserBannerMultipartRequestBody ¶
type UploadUserBannerMultipartRequestBody UploadUserBannerMultipartBody
UploadUserBannerMultipartRequestBody defines body for UploadUserBanner for multipart/form-data ContentType.
type UploadUserBannerResp ¶
type UploadUserBannerResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseUploadUserBannerResp ¶
func ParseUploadUserBannerResp(rsp *http.Response) (*UploadUserBannerResp, error)
ParseUploadUserBannerResp parses an HTTP response from a UploadUserBannerWithResponse call
func (UploadUserBannerResp) Status ¶
func (r UploadUserBannerResp) Status() string
Status returns HTTPResponse.Status
func (UploadUserBannerResp) StatusCode ¶
func (r UploadUserBannerResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UserBlockInstanceJSONRequestBody ¶
type UserBlockInstanceJSONRequestBody = UserBlockInstanceParams
UserBlockInstanceJSONRequestBody defines body for UserBlockInstance for application/json ContentType.
type UserBlockInstanceParams ¶
type UserBlockInstanceParams struct {
Block bool `json:"block"`
// InstanceId The instance id.
InstanceId InstanceId `json:"instance_id"`
}
UserBlockInstanceParams Block an instance as user
type UserBlockInstanceResp ¶
type UserBlockInstanceResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseUserBlockInstanceResp ¶
func ParseUserBlockInstanceResp(rsp *http.Response) (*UserBlockInstanceResp, error)
ParseUserBlockInstanceResp parses an HTTP response from a UserBlockInstanceWithResponse call
func (UserBlockInstanceResp) Status ¶
func (r UserBlockInstanceResp) Status() string
Status returns HTTPResponse.Status
func (UserBlockInstanceResp) StatusCode ¶
func (r UserBlockInstanceResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ValidateAuthResp ¶
type ValidateAuthResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseValidateAuthResp ¶
func ParseValidateAuthResp(rsp *http.Response) (*ValidateAuthResp, error)
ParseValidateAuthResp parses an HTTP response from a ValidateAuthWithResponse call
func (ValidateAuthResp) Status ¶
func (r ValidateAuthResp) Status() string
Status returns HTTPResponse.Status
func (ValidateAuthResp) StatusCode ¶
func (r ValidateAuthResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type VerifyEmail ¶
type VerifyEmail struct {
Token string `json:"token"`
}
VerifyEmail Verify your email.
type VerifyEmailJSONRequestBody ¶
type VerifyEmailJSONRequestBody = VerifyEmail
VerifyEmailJSONRequestBody defines body for VerifyEmail for application/json ContentType.
type VerifyEmailResp ¶
type VerifyEmailResp struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SuccessResponse
}
func ParseVerifyEmailResp ¶
func ParseVerifyEmailResp(rsp *http.Response) (*VerifyEmailResp, error)
ParseVerifyEmailResp parses an HTTP response from a VerifyEmailWithResponse call
func (VerifyEmailResp) Status ¶
func (r VerifyEmailResp) Status() string
Status returns HTTPResponse.Status
func (VerifyEmailResp) StatusCode ¶
func (r VerifyEmailResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode