diff --git a/README.md b/README.md index fb7cce3..bd27110 100644 --- a/README.md +++ b/README.md @@ -85,13 +85,7 @@ func main() { #### Moderation API (Moderator Dashboard) -The ModerationAPI powers the moderator dashboard. It provides methods for listing, -counting, searching, and exporting comments, moderation actions (remove/restore, -flag, set review/spam/approval status, votes, reopen/close threads), bans (ban from -comment, undo, pre-ban summaries, ban status and preferences, banned-user counts), -and badges & trust (award/remove badges, manual badges, get/set trust factor, user -internal profile). All Moderation methods accept an `sso` parameter for -SSO-authenticated moderators: +The ModerationAPI provides an extensive suite of live and fast moderation APIs. All moderation methods accept an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie: ```go package main diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 38230dd..1861a0d 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -269,7 +269,7 @@ docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PostRemoveCommentResponse.md +docs/PostRemoveCommentApiResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md @@ -634,7 +634,7 @@ model_patch_domain_config_response.go model_patch_page_api_response.go model_patch_sso_user_api_response.go model_pending_comment_to_sync_outbound.go -model_post_remove_comment_response.go +model_post_remove_comment_api_response.go model_pre_ban_summary.go model_pub_sub_comment.go model_pub_sub_comment_base.go diff --git a/client/README.md b/client/README.md index 354d2a9..0e907c1 100644 --- a/client/README.md +++ b/client/README.md @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. - API version: 0.0.0 -- Package version: 1.2.1 +- Package version: 3.0.0 - Generator version: 7.14.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -192,49 +192,49 @@ Class | Method | HTTP request | Description *DefaultAPI* | [**UpdateTenantPackage**](docs/DefaultAPI.md#updatetenantpackage) | **Patch** /api/v1/tenant-packages/{id} | *DefaultAPI* | [**UpdateTenantUser**](docs/DefaultAPI.md#updatetenantuser) | **Patch** /api/v1/tenant-users/{id} | *DefaultAPI* | [**UpdateUserBadge**](docs/DefaultAPI.md#updateuserbadge) | **Put** /api/v1/user-badges/{id} | -*ModerationAPI* | [**DeleteModerationVote**](docs/ModerationAPI.md#deletemoderationvote) | **Delete** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -*ModerationAPI* | [**GetApiComments**](docs/ModerationAPI.md#getapicomments) | **Get** /auth/my-account/moderate-comments/api/comments | -*ModerationAPI* | [**GetApiExportStatus**](docs/ModerationAPI.md#getapiexportstatus) | **Get** /auth/my-account/moderate-comments/api/export/status | -*ModerationAPI* | [**GetApiIds**](docs/ModerationAPI.md#getapiids) | **Get** /auth/my-account/moderate-comments/api/ids | -*ModerationAPI* | [**GetBanUsersFromComment**](docs/ModerationAPI.md#getbanusersfromcomment) | **Get** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -*ModerationAPI* | [**GetCommentBanStatus**](docs/ModerationAPI.md#getcommentbanstatus) | **Get** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -*ModerationAPI* | [**GetCommentChildren**](docs/ModerationAPI.md#getcommentchildren) | **Get** /auth/my-account/moderate-comments/comment-children/{commentId} | -*ModerationAPI* | [**GetCount**](docs/ModerationAPI.md#getcount) | **Get** /auth/my-account/moderate-comments/count | -*ModerationAPI* | [**GetCounts**](docs/ModerationAPI.md#getcounts) | **Get** /auth/my-account/moderate-comments/banned-users/counts | -*ModerationAPI* | [**GetLogs**](docs/ModerationAPI.md#getlogs) | **Get** /auth/my-account/moderate-comments/logs/{commentId} | -*ModerationAPI* | [**GetManualBadges**](docs/ModerationAPI.md#getmanualbadges) | **Get** /auth/my-account/moderate-comments/get-manual-badges | -*ModerationAPI* | [**GetManualBadgesForUser**](docs/ModerationAPI.md#getmanualbadgesforuser) | **Get** /auth/my-account/moderate-comments/get-manual-badges-for-user | -*ModerationAPI* | [**GetModerationComment**](docs/ModerationAPI.md#getmoderationcomment) | **Get** /auth/my-account/moderate-comments/comment/{commentId} | -*ModerationAPI* | [**GetModerationCommentText**](docs/ModerationAPI.md#getmoderationcommenttext) | **Get** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -*ModerationAPI* | [**GetPreBanSummary**](docs/ModerationAPI.md#getprebansummary) | **Get** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -*ModerationAPI* | [**GetSearchCommentsSummary**](docs/ModerationAPI.md#getsearchcommentssummary) | **Get** /auth/my-account/moderate-comments/search/comments/summary | -*ModerationAPI* | [**GetSearchPages**](docs/ModerationAPI.md#getsearchpages) | **Get** /auth/my-account/moderate-comments/search/pages | -*ModerationAPI* | [**GetSearchSites**](docs/ModerationAPI.md#getsearchsites) | **Get** /auth/my-account/moderate-comments/search/sites | -*ModerationAPI* | [**GetSearchSuggest**](docs/ModerationAPI.md#getsearchsuggest) | **Get** /auth/my-account/moderate-comments/search/suggest | -*ModerationAPI* | [**GetSearchUsers**](docs/ModerationAPI.md#getsearchusers) | **Get** /auth/my-account/moderate-comments/search/users | -*ModerationAPI* | [**GetTrustFactor**](docs/ModerationAPI.md#gettrustfactor) | **Get** /auth/my-account/moderate-comments/get-trust-factor | -*ModerationAPI* | [**GetUserBanPreference**](docs/ModerationAPI.md#getuserbanpreference) | **Get** /auth/my-account/moderate-comments/user-ban-preference | -*ModerationAPI* | [**GetUserInternalProfile**](docs/ModerationAPI.md#getuserinternalprofile) | **Get** /auth/my-account/moderate-comments/get-user-internal-profile | -*ModerationAPI* | [**PostAdjustCommentVotes**](docs/ModerationAPI.md#postadjustcommentvotes) | **Post** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -*ModerationAPI* | [**PostApiExport**](docs/ModerationAPI.md#postapiexport) | **Post** /auth/my-account/moderate-comments/api/export | -*ModerationAPI* | [**PostBanUserFromComment**](docs/ModerationAPI.md#postbanuserfromcomment) | **Post** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -*ModerationAPI* | [**PostBanUserUndo**](docs/ModerationAPI.md#postbanuserundo) | **Post** /auth/my-account/moderate-comments/ban-user/undo | -*ModerationAPI* | [**PostBulkPreBanSummary**](docs/ModerationAPI.md#postbulkprebansummary) | **Post** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -*ModerationAPI* | [**PostCommentsByIds**](docs/ModerationAPI.md#postcommentsbyids) | **Post** /auth/my-account/moderate-comments/comments-by-ids | -*ModerationAPI* | [**PostFlagComment**](docs/ModerationAPI.md#postflagcomment) | **Post** /auth/my-account/moderate-comments/flag-comment/{commentId} | -*ModerationAPI* | [**PostRemoveComment**](docs/ModerationAPI.md#postremovecomment) | **Post** /auth/my-account/moderate-comments/remove-comment/{commentId} | -*ModerationAPI* | [**PostRestoreDeletedComment**](docs/ModerationAPI.md#postrestoredeletedcomment) | **Post** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -*ModerationAPI* | [**PostSetCommentApprovalStatus**](docs/ModerationAPI.md#postsetcommentapprovalstatus) | **Post** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -*ModerationAPI* | [**PostSetCommentReviewStatus**](docs/ModerationAPI.md#postsetcommentreviewstatus) | **Post** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -*ModerationAPI* | [**PostSetCommentSpamStatus**](docs/ModerationAPI.md#postsetcommentspamstatus) | **Post** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -*ModerationAPI* | [**PostSetCommentText**](docs/ModerationAPI.md#postsetcommenttext) | **Post** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -*ModerationAPI* | [**PostUnFlagComment**](docs/ModerationAPI.md#postunflagcomment) | **Post** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -*ModerationAPI* | [**PostVote**](docs/ModerationAPI.md#postvote) | **Post** /auth/my-account/moderate-comments/vote/{commentId} | -*ModerationAPI* | [**PutAwardBadge**](docs/ModerationAPI.md#putawardbadge) | **Put** /auth/my-account/moderate-comments/award-badge | -*ModerationAPI* | [**PutCloseThread**](docs/ModerationAPI.md#putclosethread) | **Put** /auth/my-account/moderate-comments/close-thread | -*ModerationAPI* | [**PutRemoveBadge**](docs/ModerationAPI.md#putremovebadge) | **Put** /auth/my-account/moderate-comments/remove-badge | -*ModerationAPI* | [**PutReopenThread**](docs/ModerationAPI.md#putreopenthread) | **Put** /auth/my-account/moderate-comments/reopen-thread | -*ModerationAPI* | [**SetTrustFactor**](docs/ModerationAPI.md#settrustfactor) | **Put** /auth/my-account/moderate-comments/set-trust-factor | +*ModerationAPI* | [**DeleteModerationVote**](docs/ModerationAPI.md#deletemoderationvote) | **Delete** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +*ModerationAPI* | [**GetApiComments**](docs/ModerationAPI.md#getapicomments) | **Get** /auth/my-account/moderate-comments/mod_api/api/comments | +*ModerationAPI* | [**GetApiExportStatus**](docs/ModerationAPI.md#getapiexportstatus) | **Get** /auth/my-account/moderate-comments/mod_api/api/export/status | +*ModerationAPI* | [**GetApiIds**](docs/ModerationAPI.md#getapiids) | **Get** /auth/my-account/moderate-comments/mod_api/api/ids | +*ModerationAPI* | [**GetBanUsersFromComment**](docs/ModerationAPI.md#getbanusersfromcomment) | **Get** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +*ModerationAPI* | [**GetCommentBanStatus**](docs/ModerationAPI.md#getcommentbanstatus) | **Get** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +*ModerationAPI* | [**GetCommentChildren**](docs/ModerationAPI.md#getcommentchildren) | **Get** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +*ModerationAPI* | [**GetCount**](docs/ModerationAPI.md#getcount) | **Get** /auth/my-account/moderate-comments/mod_api/count | +*ModerationAPI* | [**GetCounts**](docs/ModerationAPI.md#getcounts) | **Get** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +*ModerationAPI* | [**GetLogs**](docs/ModerationAPI.md#getlogs) | **Get** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +*ModerationAPI* | [**GetManualBadges**](docs/ModerationAPI.md#getmanualbadges) | **Get** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +*ModerationAPI* | [**GetManualBadgesForUser**](docs/ModerationAPI.md#getmanualbadgesforuser) | **Get** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +*ModerationAPI* | [**GetModerationComment**](docs/ModerationAPI.md#getmoderationcomment) | **Get** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +*ModerationAPI* | [**GetModerationCommentText**](docs/ModerationAPI.md#getmoderationcommenttext) | **Get** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +*ModerationAPI* | [**GetPreBanSummary**](docs/ModerationAPI.md#getprebansummary) | **Get** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +*ModerationAPI* | [**GetSearchCommentsSummary**](docs/ModerationAPI.md#getsearchcommentssummary) | **Get** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +*ModerationAPI* | [**GetSearchPages**](docs/ModerationAPI.md#getsearchpages) | **Get** /auth/my-account/moderate-comments/mod_api/search/pages | +*ModerationAPI* | [**GetSearchSites**](docs/ModerationAPI.md#getsearchsites) | **Get** /auth/my-account/moderate-comments/mod_api/search/sites | +*ModerationAPI* | [**GetSearchSuggest**](docs/ModerationAPI.md#getsearchsuggest) | **Get** /auth/my-account/moderate-comments/mod_api/search/suggest | +*ModerationAPI* | [**GetSearchUsers**](docs/ModerationAPI.md#getsearchusers) | **Get** /auth/my-account/moderate-comments/mod_api/search/users | +*ModerationAPI* | [**GetTrustFactor**](docs/ModerationAPI.md#gettrustfactor) | **Get** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +*ModerationAPI* | [**GetUserBanPreference**](docs/ModerationAPI.md#getuserbanpreference) | **Get** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +*ModerationAPI* | [**GetUserInternalProfile**](docs/ModerationAPI.md#getuserinternalprofile) | **Get** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +*ModerationAPI* | [**PostAdjustCommentVotes**](docs/ModerationAPI.md#postadjustcommentvotes) | **Post** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +*ModerationAPI* | [**PostApiExport**](docs/ModerationAPI.md#postapiexport) | **Post** /auth/my-account/moderate-comments/mod_api/api/export | +*ModerationAPI* | [**PostBanUserFromComment**](docs/ModerationAPI.md#postbanuserfromcomment) | **Post** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +*ModerationAPI* | [**PostBanUserUndo**](docs/ModerationAPI.md#postbanuserundo) | **Post** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +*ModerationAPI* | [**PostBulkPreBanSummary**](docs/ModerationAPI.md#postbulkprebansummary) | **Post** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +*ModerationAPI* | [**PostCommentsByIds**](docs/ModerationAPI.md#postcommentsbyids) | **Post** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +*ModerationAPI* | [**PostFlagComment**](docs/ModerationAPI.md#postflagcomment) | **Post** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +*ModerationAPI* | [**PostRemoveComment**](docs/ModerationAPI.md#postremovecomment) | **Post** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +*ModerationAPI* | [**PostRestoreDeletedComment**](docs/ModerationAPI.md#postrestoredeletedcomment) | **Post** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +*ModerationAPI* | [**PostSetCommentApprovalStatus**](docs/ModerationAPI.md#postsetcommentapprovalstatus) | **Post** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +*ModerationAPI* | [**PostSetCommentReviewStatus**](docs/ModerationAPI.md#postsetcommentreviewstatus) | **Post** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +*ModerationAPI* | [**PostSetCommentSpamStatus**](docs/ModerationAPI.md#postsetcommentspamstatus) | **Post** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +*ModerationAPI* | [**PostSetCommentText**](docs/ModerationAPI.md#postsetcommenttext) | **Post** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +*ModerationAPI* | [**PostUnFlagComment**](docs/ModerationAPI.md#postunflagcomment) | **Post** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +*ModerationAPI* | [**PostVote**](docs/ModerationAPI.md#postvote) | **Post** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +*ModerationAPI* | [**PutAwardBadge**](docs/ModerationAPI.md#putawardbadge) | **Put** /auth/my-account/moderate-comments/mod_api/award-badge | +*ModerationAPI* | [**PutCloseThread**](docs/ModerationAPI.md#putclosethread) | **Put** /auth/my-account/moderate-comments/mod_api/close-thread | +*ModerationAPI* | [**PutRemoveBadge**](docs/ModerationAPI.md#putremovebadge) | **Put** /auth/my-account/moderate-comments/mod_api/remove-badge | +*ModerationAPI* | [**PutReopenThread**](docs/ModerationAPI.md#putreopenthread) | **Put** /auth/my-account/moderate-comments/mod_api/reopen-thread | +*ModerationAPI* | [**SetTrustFactor**](docs/ModerationAPI.md#settrustfactor) | **Put** /auth/my-account/moderate-comments/mod_api/set-trust-factor | *PublicAPI* | [**BlockFromCommentPublic**](docs/PublicAPI.md#blockfromcommentpublic) | **Post** /block-from-comment/{commentId} | *PublicAPI* | [**CheckedCommentsForBlocked**](docs/PublicAPI.md#checkedcommentsforblocked) | **Get** /check-blocked-comments | *PublicAPI* | [**CreateCommentPublic**](docs/PublicAPI.md#createcommentpublic) | **Post** /comments/{tenantId} | @@ -550,7 +550,7 @@ Class | Method | HTTP request | Description - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PostRemoveCommentApiResponse](docs/PostRemoveCommentApiResponse.md) - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml index 485fc30..594a715 100644 --- a/client/api/openapi.yaml +++ b/client/api/openapi.yaml @@ -1173,10 +1173,17 @@ paths: security: [] tags: - Public - /auth/my-account/moderate-comments/count: + /auth/my-account/moderate-comments/mod_api/count: get: - operationId: GetCount + operationId: getCount parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1235,10 +1242,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/api/ids: + /auth/my-account/moderate-comments/mod_api/api/ids: get: - operationId: GetApiIds + operationId: getApiIds parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1304,10 +1318,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/api/comments: + /auth/my-account/moderate-comments/mod_api/api/comments: get: - operationId: GetApiComments + operationId: getApiComments parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: page @@ -1389,10 +1410,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/api/export: + /auth/my-account/moderate-comments/mod_api/api/export: post: - operationId: PostApiExport + operationId: postApiExport parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1451,10 +1479,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/api/export/status: + /auth/my-account/moderate-comments/mod_api/api/export/status: get: - operationId: GetApiExportStatus + operationId: getApiExportStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: batchJobId @@ -1485,10 +1520,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/search/users: + /auth/my-account/moderate-comments/mod_api/search/users: get: - operationId: GetSearchUsers + operationId: getSearchUsers parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: value @@ -1519,10 +1561,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/search/pages: + /auth/my-account/moderate-comments/mod_api/search/pages: get: - operationId: GetSearchPages + operationId: getSearchPages parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: value @@ -1553,10 +1602,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/search/sites: + /auth/my-account/moderate-comments/mod_api/search/sites: get: - operationId: GetSearchSites + operationId: getSearchSites parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: value @@ -1587,10 +1643,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/search/comments/summary: + /auth/my-account/moderate-comments/mod_api/search/comments/summary: get: - operationId: GetSearchCommentsSummary + operationId: getSearchCommentsSummary parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: value @@ -1635,10 +1698,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/search/suggest: + /auth/my-account/moderate-comments/mod_api/search/suggest: get: - operationId: GetSearchSuggest + operationId: getSearchSuggest parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: text-search @@ -1669,10 +1739,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/pre-ban-summary/{commentId}: + /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}: get: - operationId: GetPreBanSummary + operationId: getPreBanSummary parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1724,10 +1801,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/bulk-pre-ban-summary: + /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary: post: - operationId: PostBulkPreBanSummary + operationId: postBulkPreBanSummary parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: includeByUserIdAndEmail @@ -1778,10 +1862,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/ban-user/from-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}: post: - operationId: PostBanUserFromComment + operationId: postBanUserFromComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1868,10 +1959,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/ban-users/from-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}: get: - operationId: GetBanUsersFromComment + operationId: getBanUsersFromComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1902,10 +2000,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/ban-user/undo: + /auth/my-account/moderate-comments/mod_api/ban-user/undo: post: - operationId: PostBanUserUndo + operationId: postBanUserUndo parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -1935,10 +2040,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/remove-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}: post: - operationId: PostRemoveComment + operationId: postRemoveComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1946,6 +2058,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -1958,7 +2077,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostRemoveCommentResponse" + $ref: "#/components/schemas/PostRemoveCommentApiResponse" description: Ok default: content: @@ -1969,10 +2088,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/restore-deleted-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}: post: - operationId: PostRestoreDeletedComment + operationId: postRestoreDeletedComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -1980,6 +2106,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2003,10 +2136,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/flag-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}: post: - operationId: PostFlagComment + operationId: postFlagComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2014,6 +2154,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2037,10 +2184,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/un-flag-comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}: post: - operationId: PostUnFlagComment + operationId: postUnFlagComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2048,6 +2202,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2071,10 +2232,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/set-comment-review-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}: post: - operationId: PostSetCommentReviewStatus + operationId: postSetCommentReviewStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2089,6 +2257,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2112,10 +2287,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/set-comment-spam-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}: post: - operationId: PostSetCommentSpamStatus + operationId: postSetCommentSpamStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2137,6 +2319,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2160,10 +2349,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/set-comment-approval-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}: post: - operationId: PostSetCommentApprovalStatus + operationId: postSetCommentApprovalStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2178,6 +2374,13 @@ paths: schema: type: boolean style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2201,10 +2404,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/logs/{commentId}: + /auth/my-account/moderate-comments/mod_api/logs/{commentId}: get: - operationId: GetLogs + operationId: getLogs parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2235,10 +2445,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/comment/{commentId}: + /auth/my-account/moderate-comments/mod_api/comment/{commentId}: get: - operationId: GetModerationComment + operationId: getModerationComment parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2283,10 +2500,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/comments-by-ids: + /auth/my-account/moderate-comments/mod_api/comments-by-ids: post: - operationId: PostCommentsByIds + operationId: postCommentsByIds parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -2316,10 +2540,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/comment-children/{commentId}: + /auth/my-account/moderate-comments/mod_api/comment-children/{commentId}: get: - operationId: GetCommentChildren + operationId: getCommentChildren parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2350,10 +2581,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/get-comment-text/{commentId}: + /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}: get: - operationId: GetModerationCommentText + operationId: getModerationCommentText parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2384,10 +2622,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/set-comment-text/{commentId}: + /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}: post: - operationId: PostSetCommentText + operationId: postSetCommentText parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2395,6 +2640,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2424,10 +2676,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/adjust-comment-votes/{commentId}: + /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}: post: - operationId: PostAdjustCommentVotes + operationId: postAdjustCommentVotes parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2435,6 +2694,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2464,10 +2730,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/vote/{commentId}: + /auth/my-account/moderate-comments/mod_api/vote/{commentId}: post: - operationId: PostVote + operationId: postVote parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2482,6 +2755,13 @@ paths: schema: type: string style: form + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2505,10 +2785,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/vote/{commentId}/{voteId}: + /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}: delete: - operationId: DeleteModerationVote + operationId: deleteModerationVote parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2523,6 +2810,13 @@ paths: schema: type: string style: simple + - explode: true + in: query + name: broadcastId + required: false + schema: + type: string + style: form - explode: true in: query name: sso @@ -2546,10 +2840,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/get-comment-ban-status/{commentId}: + /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}: get: - operationId: GetCommentBanStatus + operationId: getCommentBanStatus parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: commentId @@ -2580,10 +2881,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/user-ban-preference: + /auth/my-account/moderate-comments/mod_api/user-ban-preference: get: - operationId: GetUserBanPreference + operationId: getUserBanPreference parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -2607,10 +2915,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/get-manual-badges: + /auth/my-account/moderate-comments/mod_api/get-manual-badges: get: - operationId: GetManualBadges + operationId: getManualBadges parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -2634,10 +2949,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/get-manual-badges-for-user: + /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user: get: - operationId: GetManualBadgesForUser + operationId: getManualBadgesForUser parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: badgesUserId @@ -2675,10 +2997,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/award-badge: + /auth/my-account/moderate-comments/mod_api/award-badge: put: - operationId: PutAwardBadge + operationId: putAwardBadge parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: badgeId @@ -2730,10 +3059,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/remove-badge: + /auth/my-account/moderate-comments/mod_api/remove-badge: put: - operationId: PutRemoveBadge + operationId: putRemoveBadge parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: badgeId @@ -2785,10 +3121,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/get-trust-factor: + /auth/my-account/moderate-comments/mod_api/get-trust-factor: get: - operationId: GetTrustFactor + operationId: getTrustFactor parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: userId @@ -2819,10 +3162,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/set-trust-factor: + /auth/my-account/moderate-comments/mod_api/set-trust-factor: put: - operationId: SetTrustFactor + operationId: setTrustFactor parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: userId @@ -2860,10 +3210,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/get-user-internal-profile: + /auth/my-account/moderate-comments/mod_api/get-user-internal-profile: get: - operationId: GetUserInternalProfile + operationId: getUserInternalProfile parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: commentId @@ -2894,10 +3251,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/reopen-thread: + /auth/my-account/moderate-comments/mod_api/reopen-thread: put: - operationId: PutReopenThread + operationId: putReopenThread parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: urlId @@ -2928,10 +3292,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/close-thread: + /auth/my-account/moderate-comments/mod_api/close-thread: put: - operationId: PutCloseThread + operationId: putCloseThread parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: urlId @@ -2962,10 +3333,17 @@ paths: security: [] tags: - Moderation - /auth/my-account/moderate-comments/banned-users/counts: + /auth/my-account/moderate-comments/banned-users/mod_api/counts: get: - operationId: GetCounts + operationId: getCounts parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: true in: query name: sso @@ -7885,7 +8263,7 @@ paths: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -7917,7 +8295,7 @@ paths: - explode: true in: query name: tenantId - required: false + required: true schema: type: string style: form @@ -7946,6 +8324,13 @@ paths: delete: operationId: DeleteHashTag parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: tag @@ -7953,13 +8338,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form requestBody: content: application/json: @@ -7984,6 +8362,13 @@ paths: patch: operationId: PatchHashTag parameters: + - explode: true + in: query + name: tenantId + required: true + schema: + type: string + style: form - explode: false in: path name: tag @@ -7991,13 +8376,6 @@ paths: schema: type: string style: simple - - explode: true - in: query - name: tenantId - required: false - schema: - type: string - style: form requestBody: content: application/json: @@ -25068,11 +25446,11 @@ components: required: - file type: object - PostRemoveCommentResponse: + PostRemoveCommentApiResponse: anyOf: - $ref: "#/components/schemas/DeleteCommentResult" - $ref: "#/components/schemas/RemoveCommentActionResponse" - title: PostRemoveCommentResponse + title: PostRemoveCommentApiResponse GetGifsTrendingResponse: anyOf: - $ref: "#/components/schemas/GifSearchResponse" diff --git a/client/api_default.go b/client/api_default.go index 9f91816..6bbd094 100644 --- a/client/api_default.go +++ b/client/api_default.go @@ -211,10 +211,11 @@ func (a *DefaultAPIService) AddHashTagExecute(r ApiAddHashTagRequest) (*CreateHa localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.tenantId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -347,10 +348,11 @@ func (a *DefaultAPIService) AddHashTagsBulkExecute(r ApiAddHashTagsBulkRequest) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.tenantId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -4005,8 +4007,8 @@ func (a *DefaultAPIService) DeleteEmailTemplateRenderErrorExecute(r ApiDeleteEma type ApiDeleteHashTagRequest struct { ctx context.Context ApiService *DefaultAPIService - tag string tenantId *string + tag string deleteHashTagRequestBody *DeleteHashTagRequestBody } @@ -4060,10 +4062,11 @@ func (a *DefaultAPIService) DeleteHashTagExecute(r ApiDeleteHashTagRequest) (*AP localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.tenantId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -12830,8 +12833,8 @@ func (a *DefaultAPIService) PatchDomainConfigExecute(r ApiPatchDomainConfigReque type ApiPatchHashTagRequest struct { ctx context.Context ApiService *DefaultAPIService - tag string tenantId *string + tag string updateHashTagBody *UpdateHashTagBody } @@ -12885,10 +12888,11 @@ func (a *DefaultAPIService) PatchHashTagExecute(r ApiPatchHashTagRequest) (*Upda localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.tenantId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") } + + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} diff --git a/client/api_moderation.go b/client/api_moderation.go index fa791cd..697b56f 100644 --- a/client/api_moderation.go +++ b/client/api_moderation.go @@ -26,11 +26,23 @@ type ModerationAPIService service type ApiDeleteModerationVoteRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string voteId string + broadcastId *string sso *string } +func (r ApiDeleteModerationVoteRequest) TenantId(tenantId string) ApiDeleteModerationVoteRequest { + r.tenantId = &tenantId + return r +} + +func (r ApiDeleteModerationVoteRequest) BroadcastId(broadcastId string) ApiDeleteModerationVoteRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiDeleteModerationVoteRequest) Sso(sso string) ApiDeleteModerationVoteRequest { r.sso = &sso return r @@ -72,14 +84,21 @@ func (a *ModerationAPIService) DeleteModerationVoteExecute(r ApiDeleteModeration return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"voteId"+"}", url.PathEscape(parameterValueToString(r.voteId, "voteId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -148,6 +167,7 @@ func (a *ModerationAPIService) DeleteModerationVoteExecute(r ApiDeleteModeration type ApiGetApiCommentsRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string page *float64 count *float64 textSearch *string @@ -159,6 +179,11 @@ type ApiGetApiCommentsRequest struct { sso *string } +func (r ApiGetApiCommentsRequest) TenantId(tenantId string) ApiGetApiCommentsRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetApiCommentsRequest) Page(page float64) ApiGetApiCommentsRequest { r.page = &page return r @@ -236,12 +261,16 @@ func (a *ModerationAPIService) GetApiCommentsExecute(r ApiGetApiCommentsRequest) return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/api/comments" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/api/comments" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.page != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "form", "") } @@ -334,10 +363,16 @@ func (a *ModerationAPIService) GetApiCommentsExecute(r ApiGetApiCommentsRequest) type ApiGetApiExportStatusRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string batchJobId *string sso *string } +func (r ApiGetApiExportStatusRequest) TenantId(tenantId string) ApiGetApiExportStatusRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetApiExportStatusRequest) BatchJobId(batchJobId string) ApiGetApiExportStatusRequest { r.batchJobId = &batchJobId return r @@ -380,12 +415,16 @@ func (a *ModerationAPIService) GetApiExportStatusExecute(r ApiGetApiExportStatus return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/api/export/status" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/api/export/status" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.batchJobId != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "batchJobId", r.batchJobId, "form", "") } @@ -457,6 +496,7 @@ func (a *ModerationAPIService) GetApiExportStatusExecute(r ApiGetApiExportStatus type ApiGetApiIdsRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string textSearch *string byIPFromComment *string filters *string @@ -466,6 +506,11 @@ type ApiGetApiIdsRequest struct { sso *string } +func (r ApiGetApiIdsRequest) TenantId(tenantId string) ApiGetApiIdsRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetApiIdsRequest) TextSearch(textSearch string) ApiGetApiIdsRequest { r.textSearch = &textSearch return r @@ -533,12 +578,16 @@ func (a *ModerationAPIService) GetApiIdsExecute(r ApiGetApiIdsRequest) (*Moderat return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/api/ids" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/api/ids" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.textSearch != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") } @@ -625,10 +674,16 @@ func (a *ModerationAPIService) GetApiIdsExecute(r ApiGetApiIdsRequest) (*Moderat type ApiGetBanUsersFromCommentRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string sso *string } +func (r ApiGetBanUsersFromCommentRequest) TenantId(tenantId string) ApiGetBanUsersFromCommentRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetBanUsersFromCommentRequest) Sso(sso string) ApiGetBanUsersFromCommentRequest { r.sso = &sso return r @@ -668,13 +723,17 @@ func (a *ModerationAPIService) GetBanUsersFromCommentExecute(r ApiGetBanUsersFro return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -743,10 +802,16 @@ func (a *ModerationAPIService) GetBanUsersFromCommentExecute(r ApiGetBanUsersFro type ApiGetCommentBanStatusRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string sso *string } +func (r ApiGetCommentBanStatusRequest) TenantId(tenantId string) ApiGetCommentBanStatusRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetCommentBanStatusRequest) Sso(sso string) ApiGetCommentBanStatusRequest { r.sso = &sso return r @@ -786,13 +851,17 @@ func (a *ModerationAPIService) GetCommentBanStatusExecute(r ApiGetCommentBanStat return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -861,10 +930,16 @@ func (a *ModerationAPIService) GetCommentBanStatusExecute(r ApiGetCommentBanStat type ApiGetCommentChildrenRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string sso *string } +func (r ApiGetCommentChildrenRequest) TenantId(tenantId string) ApiGetCommentChildrenRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetCommentChildrenRequest) Sso(sso string) ApiGetCommentChildrenRequest { r.sso = &sso return r @@ -904,13 +979,17 @@ func (a *ModerationAPIService) GetCommentChildrenExecute(r ApiGetCommentChildren return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/comment-children/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -979,6 +1058,7 @@ func (a *ModerationAPIService) GetCommentChildrenExecute(r ApiGetCommentChildren type ApiGetCountRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string textSearch *string byIPFromComment *string filter *string @@ -987,6 +1067,11 @@ type ApiGetCountRequest struct { sso *string } +func (r ApiGetCountRequest) TenantId(tenantId string) ApiGetCountRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetCountRequest) TextSearch(textSearch string) ApiGetCountRequest { r.textSearch = &textSearch return r @@ -1049,12 +1134,16 @@ func (a *ModerationAPIService) GetCountExecute(r ApiGetCountRequest) (*Moderatio return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/count" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/count" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.textSearch != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") } @@ -1138,9 +1227,15 @@ func (a *ModerationAPIService) GetCountExecute(r ApiGetCountRequest) (*Moderatio type ApiGetCountsRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string sso *string } +func (r ApiGetCountsRequest) TenantId(tenantId string) ApiGetCountsRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetCountsRequest) Sso(sso string) ApiGetCountsRequest { r.sso = &sso return r @@ -1178,12 +1273,16 @@ func (a *ModerationAPIService) GetCountsExecute(r ApiGetCountsRequest) (*GetBann return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/banned-users/counts" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/banned-users/mod_api/counts" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -1252,10 +1351,16 @@ func (a *ModerationAPIService) GetCountsExecute(r ApiGetCountsRequest) (*GetBann type ApiGetLogsRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string sso *string } +func (r ApiGetLogsRequest) TenantId(tenantId string) ApiGetLogsRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetLogsRequest) Sso(sso string) ApiGetLogsRequest { r.sso = &sso return r @@ -1295,13 +1400,17 @@ func (a *ModerationAPIService) GetLogsExecute(r ApiGetLogsRequest) (*ModerationA return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/logs/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/logs/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -1370,9 +1479,15 @@ func (a *ModerationAPIService) GetLogsExecute(r ApiGetLogsRequest) (*ModerationA type ApiGetManualBadgesRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string sso *string } +func (r ApiGetManualBadgesRequest) TenantId(tenantId string) ApiGetManualBadgesRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetManualBadgesRequest) Sso(sso string) ApiGetManualBadgesRequest { r.sso = &sso return r @@ -1410,12 +1525,16 @@ func (a *ModerationAPIService) GetManualBadgesExecute(r ApiGetManualBadgesReques return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-manual-badges" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/get-manual-badges" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -1484,11 +1603,17 @@ func (a *ModerationAPIService) GetManualBadgesExecute(r ApiGetManualBadgesReques type ApiGetManualBadgesForUserRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string badgesUserId *string commentId *string sso *string } +func (r ApiGetManualBadgesForUserRequest) TenantId(tenantId string) ApiGetManualBadgesForUserRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetManualBadgesForUserRequest) BadgesUserId(badgesUserId string) ApiGetManualBadgesForUserRequest { r.badgesUserId = &badgesUserId return r @@ -1536,12 +1661,16 @@ func (a *ModerationAPIService) GetManualBadgesForUserExecute(r ApiGetManualBadge return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-manual-badges-for-user" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.badgesUserId != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "badgesUserId", r.badgesUserId, "form", "") } @@ -1616,12 +1745,18 @@ func (a *ModerationAPIService) GetManualBadgesForUserExecute(r ApiGetManualBadge type ApiGetModerationCommentRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string includeEmail *bool includeIP *bool sso *string } +func (r ApiGetModerationCommentRequest) TenantId(tenantId string) ApiGetModerationCommentRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetModerationCommentRequest) IncludeEmail(includeEmail bool) ApiGetModerationCommentRequest { r.includeEmail = &includeEmail return r @@ -1671,13 +1806,17 @@ func (a *ModerationAPIService) GetModerationCommentExecute(r ApiGetModerationCom return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/comment/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/comment/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.includeEmail != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "includeEmail", r.includeEmail, "form", "") } @@ -1752,10 +1891,16 @@ func (a *ModerationAPIService) GetModerationCommentExecute(r ApiGetModerationCom type ApiGetModerationCommentTextRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string sso *string } +func (r ApiGetModerationCommentTextRequest) TenantId(tenantId string) ApiGetModerationCommentTextRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetModerationCommentTextRequest) Sso(sso string) ApiGetModerationCommentTextRequest { r.sso = &sso return r @@ -1795,13 +1940,17 @@ func (a *ModerationAPIService) GetModerationCommentTextExecute(r ApiGetModeratio return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-comment-text/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -1870,6 +2019,7 @@ func (a *ModerationAPIService) GetModerationCommentTextExecute(r ApiGetModeratio type ApiGetPreBanSummaryRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string includeByUserIdAndEmail *bool includeByIP *bool @@ -1877,6 +2027,11 @@ type ApiGetPreBanSummaryRequest struct { sso *string } +func (r ApiGetPreBanSummaryRequest) TenantId(tenantId string) ApiGetPreBanSummaryRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetPreBanSummaryRequest) IncludeByUserIdAndEmail(includeByUserIdAndEmail bool) ApiGetPreBanSummaryRequest { r.includeByUserIdAndEmail = &includeByUserIdAndEmail return r @@ -1931,13 +2086,17 @@ func (a *ModerationAPIService) GetPreBanSummaryExecute(r ApiGetPreBanSummaryRequ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.includeByUserIdAndEmail != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "includeByUserIdAndEmail", r.includeByUserIdAndEmail, "form", "") } @@ -2015,12 +2174,18 @@ func (a *ModerationAPIService) GetPreBanSummaryExecute(r ApiGetPreBanSummaryRequ type ApiGetSearchCommentsSummaryRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string value *string filters *string searchFilters *string sso *string } +func (r ApiGetSearchCommentsSummaryRequest) TenantId(tenantId string) ApiGetSearchCommentsSummaryRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetSearchCommentsSummaryRequest) Value(value string) ApiGetSearchCommentsSummaryRequest { r.value = &value return r @@ -2073,12 +2238,16 @@ func (a *ModerationAPIService) GetSearchCommentsSummaryExecute(r ApiGetSearchCom return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/comments/summary" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/search/comments/summary" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.value != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "form", "") } @@ -2156,10 +2325,16 @@ func (a *ModerationAPIService) GetSearchCommentsSummaryExecute(r ApiGetSearchCom type ApiGetSearchPagesRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string value *string sso *string } +func (r ApiGetSearchPagesRequest) TenantId(tenantId string) ApiGetSearchPagesRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetSearchPagesRequest) Value(value string) ApiGetSearchPagesRequest { r.value = &value return r @@ -2202,12 +2377,16 @@ func (a *ModerationAPIService) GetSearchPagesExecute(r ApiGetSearchPagesRequest) return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/pages" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/search/pages" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.value != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "form", "") } @@ -2279,10 +2458,16 @@ func (a *ModerationAPIService) GetSearchPagesExecute(r ApiGetSearchPagesRequest) type ApiGetSearchSitesRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string value *string sso *string } +func (r ApiGetSearchSitesRequest) TenantId(tenantId string) ApiGetSearchSitesRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetSearchSitesRequest) Value(value string) ApiGetSearchSitesRequest { r.value = &value return r @@ -2325,12 +2510,16 @@ func (a *ModerationAPIService) GetSearchSitesExecute(r ApiGetSearchSitesRequest) return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/sites" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/search/sites" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.value != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "form", "") } @@ -2402,10 +2591,16 @@ func (a *ModerationAPIService) GetSearchSitesExecute(r ApiGetSearchSitesRequest) type ApiGetSearchSuggestRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string textSearch *string sso *string } +func (r ApiGetSearchSuggestRequest) TenantId(tenantId string) ApiGetSearchSuggestRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetSearchSuggestRequest) TextSearch(textSearch string) ApiGetSearchSuggestRequest { r.textSearch = &textSearch return r @@ -2448,12 +2643,16 @@ func (a *ModerationAPIService) GetSearchSuggestExecute(r ApiGetSearchSuggestRequ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/suggest" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/search/suggest" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.textSearch != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") } @@ -2525,10 +2724,16 @@ func (a *ModerationAPIService) GetSearchSuggestExecute(r ApiGetSearchSuggestRequ type ApiGetSearchUsersRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string value *string sso *string } +func (r ApiGetSearchUsersRequest) TenantId(tenantId string) ApiGetSearchUsersRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetSearchUsersRequest) Value(value string) ApiGetSearchUsersRequest { r.value = &value return r @@ -2571,12 +2776,16 @@ func (a *ModerationAPIService) GetSearchUsersExecute(r ApiGetSearchUsersRequest) return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/search/users" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/search/users" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.value != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "value", r.value, "form", "") } @@ -2648,10 +2857,16 @@ func (a *ModerationAPIService) GetSearchUsersExecute(r ApiGetSearchUsersRequest) type ApiGetTrustFactorRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string userId *string sso *string } +func (r ApiGetTrustFactorRequest) TenantId(tenantId string) ApiGetTrustFactorRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetTrustFactorRequest) UserId(userId string) ApiGetTrustFactorRequest { r.userId = &userId return r @@ -2694,12 +2909,16 @@ func (a *ModerationAPIService) GetTrustFactorExecute(r ApiGetTrustFactorRequest) return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-trust-factor" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/get-trust-factor" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.userId != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") } @@ -2771,9 +2990,15 @@ func (a *ModerationAPIService) GetTrustFactorExecute(r ApiGetTrustFactorRequest) type ApiGetUserBanPreferenceRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string sso *string } +func (r ApiGetUserBanPreferenceRequest) TenantId(tenantId string) ApiGetUserBanPreferenceRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetUserBanPreferenceRequest) Sso(sso string) ApiGetUserBanPreferenceRequest { r.sso = &sso return r @@ -2811,12 +3036,16 @@ func (a *ModerationAPIService) GetUserBanPreferenceExecute(r ApiGetUserBanPrefer return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/user-ban-preference" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/user-ban-preference" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -2885,10 +3114,16 @@ func (a *ModerationAPIService) GetUserBanPreferenceExecute(r ApiGetUserBanPrefer type ApiGetUserInternalProfileRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId *string sso *string } +func (r ApiGetUserInternalProfileRequest) TenantId(tenantId string) ApiGetUserInternalProfileRequest { + r.tenantId = &tenantId + return r +} + func (r ApiGetUserInternalProfileRequest) CommentId(commentId string) ApiGetUserInternalProfileRequest { r.commentId = &commentId return r @@ -2931,12 +3166,16 @@ func (a *ModerationAPIService) GetUserInternalProfileExecute(r ApiGetUserInterna return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/get-user-internal-profile" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.commentId != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "commentId", r.commentId, "form", "") } @@ -3008,16 +3247,28 @@ func (a *ModerationAPIService) GetUserInternalProfileExecute(r ApiGetUserInterna type ApiPostAdjustCommentVotesRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string adjustCommentVotesParams *AdjustCommentVotesParams + broadcastId *string sso *string } +func (r ApiPostAdjustCommentVotesRequest) TenantId(tenantId string) ApiPostAdjustCommentVotesRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostAdjustCommentVotesRequest) AdjustCommentVotesParams(adjustCommentVotesParams AdjustCommentVotesParams) ApiPostAdjustCommentVotesRequest { r.adjustCommentVotesParams = &adjustCommentVotesParams return r } +func (r ApiPostAdjustCommentVotesRequest) BroadcastId(broadcastId string) ApiPostAdjustCommentVotesRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostAdjustCommentVotesRequest) Sso(sso string) ApiPostAdjustCommentVotesRequest { r.sso = &sso return r @@ -3057,16 +3308,23 @@ func (a *ModerationAPIService) PostAdjustCommentVotesExecute(r ApiPostAdjustComm return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.adjustCommentVotesParams == nil { return localVarReturnValue, nil, reportError("adjustCommentVotesParams is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -3137,6 +3395,7 @@ func (a *ModerationAPIService) PostAdjustCommentVotesExecute(r ApiPostAdjustComm type ApiPostApiExportRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string textSearch *string byIPFromComment *string filters *string @@ -3145,6 +3404,11 @@ type ApiPostApiExportRequest struct { sso *string } +func (r ApiPostApiExportRequest) TenantId(tenantId string) ApiPostApiExportRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostApiExportRequest) TextSearch(textSearch string) ApiPostApiExportRequest { r.textSearch = &textSearch return r @@ -3207,12 +3471,16 @@ func (a *ModerationAPIService) PostApiExportExecute(r ApiPostApiExportRequest) ( return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/api/export" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/api/export" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.textSearch != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "text-search", r.textSearch, "form", "") } @@ -3296,6 +3564,7 @@ func (a *ModerationAPIService) PostApiExportExecute(r ApiPostApiExportRequest) ( type ApiPostBanUserFromCommentRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string banEmail *bool banEmailDomain *bool @@ -3308,6 +3577,11 @@ type ApiPostBanUserFromCommentRequest struct { sso *string } +func (r ApiPostBanUserFromCommentRequest) TenantId(tenantId string) ApiPostBanUserFromCommentRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostBanUserFromCommentRequest) BanEmail(banEmail bool) ApiPostBanUserFromCommentRequest { r.banEmail = &banEmail return r @@ -3387,13 +3661,17 @@ func (a *ModerationAPIService) PostBanUserFromCommentExecute(r ApiPostBanUserFro return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.banEmail != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "banEmail", r.banEmail, "form", "") } @@ -3486,10 +3764,16 @@ func (a *ModerationAPIService) PostBanUserFromCommentExecute(r ApiPostBanUserFro type ApiPostBanUserUndoRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string banUserUndoParams *BanUserUndoParams sso *string } +func (r ApiPostBanUserUndoRequest) TenantId(tenantId string) ApiPostBanUserUndoRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostBanUserUndoRequest) BanUserUndoParams(banUserUndoParams BanUserUndoParams) ApiPostBanUserUndoRequest { r.banUserUndoParams = &banUserUndoParams return r @@ -3532,15 +3816,19 @@ func (a *ModerationAPIService) PostBanUserUndoExecute(r ApiPostBanUserUndoReques return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/ban-user/undo" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/ban-user/undo" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.banUserUndoParams == nil { return localVarReturnValue, nil, reportError("banUserUndoParams is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -3611,6 +3899,7 @@ func (a *ModerationAPIService) PostBanUserUndoExecute(r ApiPostBanUserUndoReques type ApiPostBulkPreBanSummaryRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string bulkPreBanParams *BulkPreBanParams includeByUserIdAndEmail *bool includeByIP *bool @@ -3618,6 +3907,11 @@ type ApiPostBulkPreBanSummaryRequest struct { sso *string } +func (r ApiPostBulkPreBanSummaryRequest) TenantId(tenantId string) ApiPostBulkPreBanSummaryRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostBulkPreBanSummaryRequest) BulkPreBanParams(bulkPreBanParams BulkPreBanParams) ApiPostBulkPreBanSummaryRequest { r.bulkPreBanParams = &bulkPreBanParams return r @@ -3675,15 +3969,19 @@ func (a *ModerationAPIService) PostBulkPreBanSummaryExecute(r ApiPostBulkPreBanS return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/bulk-pre-ban-summary" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.bulkPreBanParams == nil { return localVarReturnValue, nil, reportError("bulkPreBanParams is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.includeByUserIdAndEmail != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "includeByUserIdAndEmail", r.includeByUserIdAndEmail, "form", "") } @@ -3763,10 +4061,16 @@ func (a *ModerationAPIService) PostBulkPreBanSummaryExecute(r ApiPostBulkPreBanS type ApiPostCommentsByIdsRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentsByIdsParams *CommentsByIdsParams sso *string } +func (r ApiPostCommentsByIdsRequest) TenantId(tenantId string) ApiPostCommentsByIdsRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostCommentsByIdsRequest) CommentsByIdsParams(commentsByIdsParams CommentsByIdsParams) ApiPostCommentsByIdsRequest { r.commentsByIdsParams = &commentsByIdsParams return r @@ -3809,15 +4113,19 @@ func (a *ModerationAPIService) PostCommentsByIdsExecute(r ApiPostCommentsByIdsRe return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/comments-by-ids" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/comments-by-ids" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.commentsByIdsParams == nil { return localVarReturnValue, nil, reportError("commentsByIdsParams is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -3888,10 +4196,22 @@ func (a *ModerationAPIService) PostCommentsByIdsExecute(r ApiPostCommentsByIdsRe type ApiPostFlagCommentRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string + broadcastId *string sso *string } +func (r ApiPostFlagCommentRequest) TenantId(tenantId string) ApiPostFlagCommentRequest { + r.tenantId = &tenantId + return r +} + +func (r ApiPostFlagCommentRequest) BroadcastId(broadcastId string) ApiPostFlagCommentRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostFlagCommentRequest) Sso(sso string) ApiPostFlagCommentRequest { r.sso = &sso return r @@ -3931,13 +4251,20 @@ func (a *ModerationAPIService) PostFlagCommentExecute(r ApiPostFlagCommentReques return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/flag-comment/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -4006,16 +4333,28 @@ func (a *ModerationAPIService) PostFlagCommentExecute(r ApiPostFlagCommentReques type ApiPostRemoveCommentRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string + broadcastId *string sso *string } +func (r ApiPostRemoveCommentRequest) TenantId(tenantId string) ApiPostRemoveCommentRequest { + r.tenantId = &tenantId + return r +} + +func (r ApiPostRemoveCommentRequest) BroadcastId(broadcastId string) ApiPostRemoveCommentRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostRemoveCommentRequest) Sso(sso string) ApiPostRemoveCommentRequest { r.sso = &sso return r } -func (r ApiPostRemoveCommentRequest) Execute() (*PostRemoveCommentResponse, *http.Response, error) { +func (r ApiPostRemoveCommentRequest) Execute() (*PostRemoveCommentApiResponse, *http.Response, error) { return r.ApiService.PostRemoveCommentExecute(r) } @@ -4035,13 +4374,13 @@ func (a *ModerationAPIService) PostRemoveComment(ctx context.Context, commentId } // Execute executes the request -// @return PostRemoveCommentResponse -func (a *ModerationAPIService) PostRemoveCommentExecute(r ApiPostRemoveCommentRequest) (*PostRemoveCommentResponse, *http.Response, error) { +// @return PostRemoveCommentApiResponse +func (a *ModerationAPIService) PostRemoveCommentExecute(r ApiPostRemoveCommentRequest) (*PostRemoveCommentApiResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PostRemoveCommentResponse + localVarReturnValue *PostRemoveCommentApiResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ModerationAPIService.PostRemoveComment") @@ -4049,13 +4388,20 @@ func (a *ModerationAPIService) PostRemoveCommentExecute(r ApiPostRemoveCommentRe return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/remove-comment/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -4124,10 +4470,22 @@ func (a *ModerationAPIService) PostRemoveCommentExecute(r ApiPostRemoveCommentRe type ApiPostRestoreDeletedCommentRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string + broadcastId *string sso *string } +func (r ApiPostRestoreDeletedCommentRequest) TenantId(tenantId string) ApiPostRestoreDeletedCommentRequest { + r.tenantId = &tenantId + return r +} + +func (r ApiPostRestoreDeletedCommentRequest) BroadcastId(broadcastId string) ApiPostRestoreDeletedCommentRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostRestoreDeletedCommentRequest) Sso(sso string) ApiPostRestoreDeletedCommentRequest { r.sso = &sso return r @@ -4167,13 +4525,20 @@ func (a *ModerationAPIService) PostRestoreDeletedCommentExecute(r ApiPostRestore return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -4242,16 +4607,28 @@ func (a *ModerationAPIService) PostRestoreDeletedCommentExecute(r ApiPostRestore type ApiPostSetCommentApprovalStatusRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string approved *bool + broadcastId *string sso *string } +func (r ApiPostSetCommentApprovalStatusRequest) TenantId(tenantId string) ApiPostSetCommentApprovalStatusRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostSetCommentApprovalStatusRequest) Approved(approved bool) ApiPostSetCommentApprovalStatusRequest { r.approved = &approved return r } +func (r ApiPostSetCommentApprovalStatusRequest) BroadcastId(broadcastId string) ApiPostSetCommentApprovalStatusRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostSetCommentApprovalStatusRequest) Sso(sso string) ApiPostSetCommentApprovalStatusRequest { r.sso = &sso return r @@ -4291,16 +4668,23 @@ func (a *ModerationAPIService) PostSetCommentApprovalStatusExecute(r ApiPostSetC return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.approved != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "approved", r.approved, "form", "") } + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -4369,16 +4753,28 @@ func (a *ModerationAPIService) PostSetCommentApprovalStatusExecute(r ApiPostSetC type ApiPostSetCommentReviewStatusRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string reviewed *bool + broadcastId *string sso *string } +func (r ApiPostSetCommentReviewStatusRequest) TenantId(tenantId string) ApiPostSetCommentReviewStatusRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostSetCommentReviewStatusRequest) Reviewed(reviewed bool) ApiPostSetCommentReviewStatusRequest { r.reviewed = &reviewed return r } +func (r ApiPostSetCommentReviewStatusRequest) BroadcastId(broadcastId string) ApiPostSetCommentReviewStatusRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostSetCommentReviewStatusRequest) Sso(sso string) ApiPostSetCommentReviewStatusRequest { r.sso = &sso return r @@ -4418,16 +4814,23 @@ func (a *ModerationAPIService) PostSetCommentReviewStatusExecute(r ApiPostSetCom return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.reviewed != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "reviewed", r.reviewed, "form", "") } + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -4496,12 +4899,19 @@ func (a *ModerationAPIService) PostSetCommentReviewStatusExecute(r ApiPostSetCom type ApiPostSetCommentSpamStatusRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string spam *bool permNotSpam *bool + broadcastId *string sso *string } +func (r ApiPostSetCommentSpamStatusRequest) TenantId(tenantId string) ApiPostSetCommentSpamStatusRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostSetCommentSpamStatusRequest) Spam(spam bool) ApiPostSetCommentSpamStatusRequest { r.spam = &spam return r @@ -4512,6 +4922,11 @@ func (r ApiPostSetCommentSpamStatusRequest) PermNotSpam(permNotSpam bool) ApiPos return r } +func (r ApiPostSetCommentSpamStatusRequest) BroadcastId(broadcastId string) ApiPostSetCommentSpamStatusRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostSetCommentSpamStatusRequest) Sso(sso string) ApiPostSetCommentSpamStatusRequest { r.sso = &sso return r @@ -4551,19 +4966,26 @@ func (a *ModerationAPIService) PostSetCommentSpamStatusExecute(r ApiPostSetComme return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.spam != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "spam", r.spam, "form", "") } if r.permNotSpam != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "permNotSpam", r.permNotSpam, "form", "") } + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -4632,16 +5054,28 @@ func (a *ModerationAPIService) PostSetCommentSpamStatusExecute(r ApiPostSetComme type ApiPostSetCommentTextRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string setCommentTextParams *SetCommentTextParams + broadcastId *string sso *string } +func (r ApiPostSetCommentTextRequest) TenantId(tenantId string) ApiPostSetCommentTextRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostSetCommentTextRequest) SetCommentTextParams(setCommentTextParams SetCommentTextParams) ApiPostSetCommentTextRequest { r.setCommentTextParams = &setCommentTextParams return r } +func (r ApiPostSetCommentTextRequest) BroadcastId(broadcastId string) ApiPostSetCommentTextRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostSetCommentTextRequest) Sso(sso string) ApiPostSetCommentTextRequest { r.sso = &sso return r @@ -4681,16 +5115,23 @@ func (a *ModerationAPIService) PostSetCommentTextExecute(r ApiPostSetCommentText return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-comment-text/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.setCommentTextParams == nil { return localVarReturnValue, nil, reportError("setCommentTextParams is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -4761,10 +5202,22 @@ func (a *ModerationAPIService) PostSetCommentTextExecute(r ApiPostSetCommentText type ApiPostUnFlagCommentRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string + broadcastId *string sso *string } +func (r ApiPostUnFlagCommentRequest) TenantId(tenantId string) ApiPostUnFlagCommentRequest { + r.tenantId = &tenantId + return r +} + +func (r ApiPostUnFlagCommentRequest) BroadcastId(broadcastId string) ApiPostUnFlagCommentRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostUnFlagCommentRequest) Sso(sso string) ApiPostUnFlagCommentRequest { r.sso = &sso return r @@ -4804,13 +5257,20 @@ func (a *ModerationAPIService) PostUnFlagCommentExecute(r ApiPostUnFlagCommentRe return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/un-flag-comment/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -4879,16 +5339,28 @@ func (a *ModerationAPIService) PostUnFlagCommentExecute(r ApiPostUnFlagCommentRe type ApiPostVoteRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string commentId string direction *string + broadcastId *string sso *string } +func (r ApiPostVoteRequest) TenantId(tenantId string) ApiPostVoteRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPostVoteRequest) Direction(direction string) ApiPostVoteRequest { r.direction = &direction return r } +func (r ApiPostVoteRequest) BroadcastId(broadcastId string) ApiPostVoteRequest { + r.broadcastId = &broadcastId + return r +} + func (r ApiPostVoteRequest) Sso(sso string) ApiPostVoteRequest { r.sso = &sso return r @@ -4928,16 +5400,23 @@ func (a *ModerationAPIService) PostVoteExecute(r ApiPostVoteRequest) (*VoteRespo return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/vote/{commentId}" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}" localVarPath = strings.Replace(localVarPath, "{"+"commentId"+"}", url.PathEscape(parameterValueToString(r.commentId, "commentId")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.direction != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "direction", r.direction, "form", "") } + if r.broadcastId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "broadcastId", r.broadcastId, "form", "") + } if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") } @@ -5006,6 +5485,7 @@ func (a *ModerationAPIService) PostVoteExecute(r ApiPostVoteRequest) (*VoteRespo type ApiPutAwardBadgeRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string badgeId *string userId *string commentId *string @@ -5013,6 +5493,11 @@ type ApiPutAwardBadgeRequest struct { sso *string } +func (r ApiPutAwardBadgeRequest) TenantId(tenantId string) ApiPutAwardBadgeRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPutAwardBadgeRequest) BadgeId(badgeId string) ApiPutAwardBadgeRequest { r.badgeId = &badgeId return r @@ -5070,15 +5555,19 @@ func (a *ModerationAPIService) PutAwardBadgeExecute(r ApiPutAwardBadgeRequest) ( return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/award-badge" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/award-badge" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.badgeId == nil { return localVarReturnValue, nil, reportError("badgeId is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") parameterAddToHeaderOrQuery(localVarQueryParams, "badgeId", r.badgeId, "form", "") if r.userId != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") @@ -5157,10 +5646,16 @@ func (a *ModerationAPIService) PutAwardBadgeExecute(r ApiPutAwardBadgeRequest) ( type ApiPutCloseThreadRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string urlId *string sso *string } +func (r ApiPutCloseThreadRequest) TenantId(tenantId string) ApiPutCloseThreadRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPutCloseThreadRequest) UrlId(urlId string) ApiPutCloseThreadRequest { r.urlId = &urlId return r @@ -5203,15 +5698,19 @@ func (a *ModerationAPIService) PutCloseThreadExecute(r ApiPutCloseThreadRequest) return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/close-thread" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/close-thread" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.urlId == nil { return localVarReturnValue, nil, reportError("urlId is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") @@ -5281,6 +5780,7 @@ func (a *ModerationAPIService) PutCloseThreadExecute(r ApiPutCloseThreadRequest) type ApiPutRemoveBadgeRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string badgeId *string userId *string commentId *string @@ -5288,6 +5788,11 @@ type ApiPutRemoveBadgeRequest struct { sso *string } +func (r ApiPutRemoveBadgeRequest) TenantId(tenantId string) ApiPutRemoveBadgeRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPutRemoveBadgeRequest) BadgeId(badgeId string) ApiPutRemoveBadgeRequest { r.badgeId = &badgeId return r @@ -5345,15 +5850,19 @@ func (a *ModerationAPIService) PutRemoveBadgeExecute(r ApiPutRemoveBadgeRequest) return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/remove-badge" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/remove-badge" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.badgeId == nil { return localVarReturnValue, nil, reportError("badgeId is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") parameterAddToHeaderOrQuery(localVarQueryParams, "badgeId", r.badgeId, "form", "") if r.userId != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") @@ -5432,10 +5941,16 @@ func (a *ModerationAPIService) PutRemoveBadgeExecute(r ApiPutRemoveBadgeRequest) type ApiPutReopenThreadRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string urlId *string sso *string } +func (r ApiPutReopenThreadRequest) TenantId(tenantId string) ApiPutReopenThreadRequest { + r.tenantId = &tenantId + return r +} + func (r ApiPutReopenThreadRequest) UrlId(urlId string) ApiPutReopenThreadRequest { r.urlId = &urlId return r @@ -5478,15 +5993,19 @@ func (a *ModerationAPIService) PutReopenThreadExecute(r ApiPutReopenThreadReques return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/reopen-thread" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/reopen-thread" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } if r.urlId == nil { return localVarReturnValue, nil, reportError("urlId is required and must be specified") } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") parameterAddToHeaderOrQuery(localVarQueryParams, "urlId", r.urlId, "form", "") if r.sso != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "sso", r.sso, "form", "") @@ -5556,11 +6075,17 @@ func (a *ModerationAPIService) PutReopenThreadExecute(r ApiPutReopenThreadReques type ApiSetTrustFactorRequest struct { ctx context.Context ApiService *ModerationAPIService + tenantId *string userId *string trustFactor *string sso *string } +func (r ApiSetTrustFactorRequest) TenantId(tenantId string) ApiSetTrustFactorRequest { + r.tenantId = &tenantId + return r +} + func (r ApiSetTrustFactorRequest) UserId(userId string) ApiSetTrustFactorRequest { r.userId = &userId return r @@ -5608,12 +6133,16 @@ func (a *ModerationAPIService) SetTrustFactorExecute(r ApiSetTrustFactorRequest) return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/auth/my-account/moderate-comments/set-trust-factor" + localVarPath := localBasePath + "/auth/my-account/moderate-comments/mod_api/set-trust-factor" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.tenantId == nil { + return localVarReturnValue, nil, reportError("tenantId is required and must be specified") + } + parameterAddToHeaderOrQuery(localVarQueryParams, "tenantId", r.tenantId, "form", "") if r.userId != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "userId", r.userId, "form", "") } diff --git a/client/configuration.go b/client/configuration.go index 938a15b..3949256 100644 --- a/client/configuration.go +++ b/client/configuration.go @@ -89,7 +89,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.2.1/go", + UserAgent: "OpenAPI-Generator/3.0.0/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/client/docs/DefaultAPI.md b/client/docs/DefaultAPI.md index fdbe0e8..388ebf0 100644 --- a/client/docs/DefaultAPI.md +++ b/client/docs/DefaultAPI.md @@ -206,7 +206,7 @@ import ( ) func main() { - tenantId := "tenantId_example" // string | (optional) + tenantId := "tenantId_example" // string | createHashTagBody := *openapiclient.NewCreateHashTagBody("Tag_example") // CreateHashTagBody | (optional) configuration := openapiclient.NewConfiguration() @@ -272,7 +272,7 @@ import ( ) func main() { - tenantId := "tenantId_example" // string | (optional) + tenantId := "tenantId_example" // string | bulkCreateHashTagsBody := *openapiclient.NewBulkCreateHashTagsBody([]openapiclient.BulkCreateHashTagsBodyTagsInner{*openapiclient.NewBulkCreateHashTagsBodyTagsInner("Tag_example")}) // BulkCreateHashTagsBody | (optional) configuration := openapiclient.NewConfiguration() @@ -2014,8 +2014,8 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | tag := "tag_example" // string | - tenantId := "tenantId_example" // string | (optional) deleteHashTagRequestBody := *openapiclient.NewDeleteHashTagRequestBody() // DeleteHashTagRequestBody | (optional) configuration := openapiclient.NewConfiguration() @@ -2045,8 +2045,8 @@ Other parameters are passed through a pointer to a apiDeleteHashTagRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **string** | | + **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md) | | ### Return type @@ -6324,8 +6324,8 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | tag := "tag_example" // string | - tenantId := "tenantId_example" // string | (optional) updateHashTagBody := *openapiclient.NewUpdateHashTagBody() // UpdateHashTagBody | (optional) configuration := openapiclient.NewConfiguration() @@ -6355,8 +6355,8 @@ Other parameters are passed through a pointer to a apiPatchHashTagRequest struct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **string** | | + **updateHashTagBody** | [**UpdateHashTagBody**](UpdateHashTagBody.md) | | ### Return type diff --git a/client/docs/ModerationAPI.md b/client/docs/ModerationAPI.md index b97e4e6..ddd6c51 100644 --- a/client/docs/ModerationAPI.md +++ b/client/docs/ModerationAPI.md @@ -4,55 +4,55 @@ All URIs are relative to *https://fastcomments.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**DeleteModerationVote**](ModerationAPI.md#DeleteModerationVote) | **Delete** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -[**GetApiComments**](ModerationAPI.md#GetApiComments) | **Get** /auth/my-account/moderate-comments/api/comments | -[**GetApiExportStatus**](ModerationAPI.md#GetApiExportStatus) | **Get** /auth/my-account/moderate-comments/api/export/status | -[**GetApiIds**](ModerationAPI.md#GetApiIds) | **Get** /auth/my-account/moderate-comments/api/ids | -[**GetBanUsersFromComment**](ModerationAPI.md#GetBanUsersFromComment) | **Get** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -[**GetCommentBanStatus**](ModerationAPI.md#GetCommentBanStatus) | **Get** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -[**GetCommentChildren**](ModerationAPI.md#GetCommentChildren) | **Get** /auth/my-account/moderate-comments/comment-children/{commentId} | -[**GetCount**](ModerationAPI.md#GetCount) | **Get** /auth/my-account/moderate-comments/count | -[**GetCounts**](ModerationAPI.md#GetCounts) | **Get** /auth/my-account/moderate-comments/banned-users/counts | -[**GetLogs**](ModerationAPI.md#GetLogs) | **Get** /auth/my-account/moderate-comments/logs/{commentId} | -[**GetManualBadges**](ModerationAPI.md#GetManualBadges) | **Get** /auth/my-account/moderate-comments/get-manual-badges | -[**GetManualBadgesForUser**](ModerationAPI.md#GetManualBadgesForUser) | **Get** /auth/my-account/moderate-comments/get-manual-badges-for-user | -[**GetModerationComment**](ModerationAPI.md#GetModerationComment) | **Get** /auth/my-account/moderate-comments/comment/{commentId} | -[**GetModerationCommentText**](ModerationAPI.md#GetModerationCommentText) | **Get** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -[**GetPreBanSummary**](ModerationAPI.md#GetPreBanSummary) | **Get** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -[**GetSearchCommentsSummary**](ModerationAPI.md#GetSearchCommentsSummary) | **Get** /auth/my-account/moderate-comments/search/comments/summary | -[**GetSearchPages**](ModerationAPI.md#GetSearchPages) | **Get** /auth/my-account/moderate-comments/search/pages | -[**GetSearchSites**](ModerationAPI.md#GetSearchSites) | **Get** /auth/my-account/moderate-comments/search/sites | -[**GetSearchSuggest**](ModerationAPI.md#GetSearchSuggest) | **Get** /auth/my-account/moderate-comments/search/suggest | -[**GetSearchUsers**](ModerationAPI.md#GetSearchUsers) | **Get** /auth/my-account/moderate-comments/search/users | -[**GetTrustFactor**](ModerationAPI.md#GetTrustFactor) | **Get** /auth/my-account/moderate-comments/get-trust-factor | -[**GetUserBanPreference**](ModerationAPI.md#GetUserBanPreference) | **Get** /auth/my-account/moderate-comments/user-ban-preference | -[**GetUserInternalProfile**](ModerationAPI.md#GetUserInternalProfile) | **Get** /auth/my-account/moderate-comments/get-user-internal-profile | -[**PostAdjustCommentVotes**](ModerationAPI.md#PostAdjustCommentVotes) | **Post** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -[**PostApiExport**](ModerationAPI.md#PostApiExport) | **Post** /auth/my-account/moderate-comments/api/export | -[**PostBanUserFromComment**](ModerationAPI.md#PostBanUserFromComment) | **Post** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -[**PostBanUserUndo**](ModerationAPI.md#PostBanUserUndo) | **Post** /auth/my-account/moderate-comments/ban-user/undo | -[**PostBulkPreBanSummary**](ModerationAPI.md#PostBulkPreBanSummary) | **Post** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -[**PostCommentsByIds**](ModerationAPI.md#PostCommentsByIds) | **Post** /auth/my-account/moderate-comments/comments-by-ids | -[**PostFlagComment**](ModerationAPI.md#PostFlagComment) | **Post** /auth/my-account/moderate-comments/flag-comment/{commentId} | -[**PostRemoveComment**](ModerationAPI.md#PostRemoveComment) | **Post** /auth/my-account/moderate-comments/remove-comment/{commentId} | -[**PostRestoreDeletedComment**](ModerationAPI.md#PostRestoreDeletedComment) | **Post** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -[**PostSetCommentApprovalStatus**](ModerationAPI.md#PostSetCommentApprovalStatus) | **Post** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -[**PostSetCommentReviewStatus**](ModerationAPI.md#PostSetCommentReviewStatus) | **Post** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -[**PostSetCommentSpamStatus**](ModerationAPI.md#PostSetCommentSpamStatus) | **Post** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -[**PostSetCommentText**](ModerationAPI.md#PostSetCommentText) | **Post** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -[**PostUnFlagComment**](ModerationAPI.md#PostUnFlagComment) | **Post** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -[**PostVote**](ModerationAPI.md#PostVote) | **Post** /auth/my-account/moderate-comments/vote/{commentId} | -[**PutAwardBadge**](ModerationAPI.md#PutAwardBadge) | **Put** /auth/my-account/moderate-comments/award-badge | -[**PutCloseThread**](ModerationAPI.md#PutCloseThread) | **Put** /auth/my-account/moderate-comments/close-thread | -[**PutRemoveBadge**](ModerationAPI.md#PutRemoveBadge) | **Put** /auth/my-account/moderate-comments/remove-badge | -[**PutReopenThread**](ModerationAPI.md#PutReopenThread) | **Put** /auth/my-account/moderate-comments/reopen-thread | -[**SetTrustFactor**](ModerationAPI.md#SetTrustFactor) | **Put** /auth/my-account/moderate-comments/set-trust-factor | +[**DeleteModerationVote**](ModerationAPI.md#DeleteModerationVote) | **Delete** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +[**GetApiComments**](ModerationAPI.md#GetApiComments) | **Get** /auth/my-account/moderate-comments/mod_api/api/comments | +[**GetApiExportStatus**](ModerationAPI.md#GetApiExportStatus) | **Get** /auth/my-account/moderate-comments/mod_api/api/export/status | +[**GetApiIds**](ModerationAPI.md#GetApiIds) | **Get** /auth/my-account/moderate-comments/mod_api/api/ids | +[**GetBanUsersFromComment**](ModerationAPI.md#GetBanUsersFromComment) | **Get** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +[**GetCommentBanStatus**](ModerationAPI.md#GetCommentBanStatus) | **Get** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +[**GetCommentChildren**](ModerationAPI.md#GetCommentChildren) | **Get** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +[**GetCount**](ModerationAPI.md#GetCount) | **Get** /auth/my-account/moderate-comments/mod_api/count | +[**GetCounts**](ModerationAPI.md#GetCounts) | **Get** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +[**GetLogs**](ModerationAPI.md#GetLogs) | **Get** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +[**GetManualBadges**](ModerationAPI.md#GetManualBadges) | **Get** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +[**GetManualBadgesForUser**](ModerationAPI.md#GetManualBadgesForUser) | **Get** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +[**GetModerationComment**](ModerationAPI.md#GetModerationComment) | **Get** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +[**GetModerationCommentText**](ModerationAPI.md#GetModerationCommentText) | **Get** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +[**GetPreBanSummary**](ModerationAPI.md#GetPreBanSummary) | **Get** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +[**GetSearchCommentsSummary**](ModerationAPI.md#GetSearchCommentsSummary) | **Get** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +[**GetSearchPages**](ModerationAPI.md#GetSearchPages) | **Get** /auth/my-account/moderate-comments/mod_api/search/pages | +[**GetSearchSites**](ModerationAPI.md#GetSearchSites) | **Get** /auth/my-account/moderate-comments/mod_api/search/sites | +[**GetSearchSuggest**](ModerationAPI.md#GetSearchSuggest) | **Get** /auth/my-account/moderate-comments/mod_api/search/suggest | +[**GetSearchUsers**](ModerationAPI.md#GetSearchUsers) | **Get** /auth/my-account/moderate-comments/mod_api/search/users | +[**GetTrustFactor**](ModerationAPI.md#GetTrustFactor) | **Get** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +[**GetUserBanPreference**](ModerationAPI.md#GetUserBanPreference) | **Get** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +[**GetUserInternalProfile**](ModerationAPI.md#GetUserInternalProfile) | **Get** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +[**PostAdjustCommentVotes**](ModerationAPI.md#PostAdjustCommentVotes) | **Post** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +[**PostApiExport**](ModerationAPI.md#PostApiExport) | **Post** /auth/my-account/moderate-comments/mod_api/api/export | +[**PostBanUserFromComment**](ModerationAPI.md#PostBanUserFromComment) | **Post** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +[**PostBanUserUndo**](ModerationAPI.md#PostBanUserUndo) | **Post** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +[**PostBulkPreBanSummary**](ModerationAPI.md#PostBulkPreBanSummary) | **Post** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +[**PostCommentsByIds**](ModerationAPI.md#PostCommentsByIds) | **Post** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +[**PostFlagComment**](ModerationAPI.md#PostFlagComment) | **Post** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +[**PostRemoveComment**](ModerationAPI.md#PostRemoveComment) | **Post** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +[**PostRestoreDeletedComment**](ModerationAPI.md#PostRestoreDeletedComment) | **Post** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +[**PostSetCommentApprovalStatus**](ModerationAPI.md#PostSetCommentApprovalStatus) | **Post** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +[**PostSetCommentReviewStatus**](ModerationAPI.md#PostSetCommentReviewStatus) | **Post** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +[**PostSetCommentSpamStatus**](ModerationAPI.md#PostSetCommentSpamStatus) | **Post** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +[**PostSetCommentText**](ModerationAPI.md#PostSetCommentText) | **Post** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +[**PostUnFlagComment**](ModerationAPI.md#PostUnFlagComment) | **Post** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +[**PostVote**](ModerationAPI.md#PostVote) | **Post** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +[**PutAwardBadge**](ModerationAPI.md#PutAwardBadge) | **Put** /auth/my-account/moderate-comments/mod_api/award-badge | +[**PutCloseThread**](ModerationAPI.md#PutCloseThread) | **Put** /auth/my-account/moderate-comments/mod_api/close-thread | +[**PutRemoveBadge**](ModerationAPI.md#PutRemoveBadge) | **Put** /auth/my-account/moderate-comments/mod_api/remove-badge | +[**PutReopenThread**](ModerationAPI.md#PutReopenThread) | **Put** /auth/my-account/moderate-comments/mod_api/reopen-thread | +[**SetTrustFactor**](ModerationAPI.md#SetTrustFactor) | **Put** /auth/my-account/moderate-comments/mod_api/set-trust-factor | ## DeleteModerationVote -> VoteDeleteResponse DeleteModerationVote(ctx, commentId, voteId).Sso(sso).Execute() +> VoteDeleteResponse DeleteModerationVote(ctx, commentId, voteId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -69,13 +69,15 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | voteId := "voteId_example" // string | + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.DeleteModerationVote(context.Background(), commentId, voteId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.DeleteModerationVote(context.Background(), commentId, voteId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.DeleteModerationVote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -101,8 +103,10 @@ Other parameters are passed through a pointer to a apiDeleteModerationVoteReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -125,7 +129,7 @@ No authorization required ## GetApiComments -> ModerationAPIGetCommentsResponse GetApiComments(ctx).Page(page).Count(count).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Demo(demo).Sso(sso).Execute() +> ModerationAPIGetCommentsResponse GetApiComments(ctx).TenantId(tenantId).Page(page).Count(count).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Demo(demo).Sso(sso).Execute() @@ -142,6 +146,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | page := float64(1.2) // float64 | (optional) count := float64(1.2) // float64 | (optional) textSearch := "textSearch_example" // string | (optional) @@ -154,7 +159,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetApiComments(context.Background()).Page(page).Count(count).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Demo(demo).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetApiComments(context.Background()).TenantId(tenantId).Page(page).Count(count).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Demo(demo).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiComments``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -175,6 +180,7 @@ Other parameters are passed through a pointer to a apiGetApiCommentsRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **page** | **float64** | | **count** | **float64** | | **textSearch** | **string** | | @@ -205,7 +211,7 @@ No authorization required ## GetApiExportStatus -> ModerationExportStatusResponse GetApiExportStatus(ctx).BatchJobId(batchJobId).Sso(sso).Execute() +> ModerationExportStatusResponse GetApiExportStatus(ctx).TenantId(tenantId).BatchJobId(batchJobId).Sso(sso).Execute() @@ -222,12 +228,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | batchJobId := "batchJobId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetApiExportStatus(context.Background()).BatchJobId(batchJobId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetApiExportStatus(context.Background()).TenantId(tenantId).BatchJobId(batchJobId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiExportStatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -248,6 +255,7 @@ Other parameters are passed through a pointer to a apiGetApiExportStatusRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **batchJobId** | **string** | | **sso** | **string** | | @@ -271,7 +279,7 @@ No authorization required ## GetApiIds -> ModerationAPIGetCommentIdsResponse GetApiIds(ctx).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).AfterId(afterId).Demo(demo).Sso(sso).Execute() +> ModerationAPIGetCommentIdsResponse GetApiIds(ctx).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).AfterId(afterId).Demo(demo).Sso(sso).Execute() @@ -288,6 +296,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | textSearch := "textSearch_example" // string | (optional) byIPFromComment := "byIPFromComment_example" // string | (optional) filters := "filters_example" // string | (optional) @@ -298,7 +307,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetApiIds(context.Background()).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).AfterId(afterId).Demo(demo).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetApiIds(context.Background()).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).AfterId(afterId).Demo(demo).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetApiIds``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -319,6 +328,7 @@ Other parameters are passed through a pointer to a apiGetApiIdsRequest struct vi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **textSearch** | **string** | | **byIPFromComment** | **string** | | **filters** | **string** | | @@ -347,7 +357,7 @@ No authorization required ## GetBanUsersFromComment -> GetBannedUsersFromCommentResponse GetBanUsersFromComment(ctx, commentId).Sso(sso).Execute() +> GetBannedUsersFromCommentResponse GetBanUsersFromComment(ctx, commentId).TenantId(tenantId).Sso(sso).Execute() @@ -364,12 +374,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetBanUsersFromComment(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetBanUsersFromComment(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetBanUsersFromComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -394,6 +405,7 @@ Other parameters are passed through a pointer to a apiGetBanUsersFromCommentRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **sso** | **string** | | @@ -417,7 +429,7 @@ No authorization required ## GetCommentBanStatus -> GetCommentBanStatusResponse GetCommentBanStatus(ctx, commentId).Sso(sso).Execute() +> GetCommentBanStatusResponse GetCommentBanStatus(ctx, commentId).TenantId(tenantId).Sso(sso).Execute() @@ -434,12 +446,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetCommentBanStatus(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetCommentBanStatus(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCommentBanStatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -464,6 +477,7 @@ Other parameters are passed through a pointer to a apiGetCommentBanStatusRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **sso** | **string** | | @@ -487,7 +501,7 @@ No authorization required ## GetCommentChildren -> ModerationAPIChildCommentsResponse GetCommentChildren(ctx, commentId).Sso(sso).Execute() +> ModerationAPIChildCommentsResponse GetCommentChildren(ctx, commentId).TenantId(tenantId).Sso(sso).Execute() @@ -504,12 +518,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetCommentChildren(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetCommentChildren(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCommentChildren``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -534,6 +549,7 @@ Other parameters are passed through a pointer to a apiGetCommentChildrenRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **sso** | **string** | | @@ -557,7 +573,7 @@ No authorization required ## GetCount -> ModerationAPICountCommentsResponse GetCount(ctx).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filter(filter).SearchFilters(searchFilters).Demo(demo).Sso(sso).Execute() +> ModerationAPICountCommentsResponse GetCount(ctx).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filter(filter).SearchFilters(searchFilters).Demo(demo).Sso(sso).Execute() @@ -574,6 +590,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | textSearch := "textSearch_example" // string | (optional) byIPFromComment := "byIPFromComment_example" // string | (optional) filter := "filter_example" // string | (optional) @@ -583,7 +600,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetCount(context.Background()).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filter(filter).SearchFilters(searchFilters).Demo(demo).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetCount(context.Background()).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filter(filter).SearchFilters(searchFilters).Demo(demo).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCount``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -604,6 +621,7 @@ Other parameters are passed through a pointer to a apiGetCountRequest struct via Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **textSearch** | **string** | | **byIPFromComment** | **string** | | **filter** | **string** | | @@ -631,7 +649,7 @@ No authorization required ## GetCounts -> GetBannedUsersCountResponse GetCounts(ctx).Sso(sso).Execute() +> GetBannedUsersCountResponse GetCounts(ctx).TenantId(tenantId).Sso(sso).Execute() @@ -648,11 +666,12 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetCounts(context.Background()).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetCounts(context.Background()).TenantId(tenantId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetCounts``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -673,6 +692,7 @@ Other parameters are passed through a pointer to a apiGetCountsRequest struct vi Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **sso** | **string** | | ### Return type @@ -695,7 +715,7 @@ No authorization required ## GetLogs -> ModerationAPIGetLogsResponse GetLogs(ctx, commentId).Sso(sso).Execute() +> ModerationAPIGetLogsResponse GetLogs(ctx, commentId).TenantId(tenantId).Sso(sso).Execute() @@ -712,12 +732,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetLogs(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetLogs(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetLogs``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -742,6 +763,7 @@ Other parameters are passed through a pointer to a apiGetLogsRequest struct via Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **sso** | **string** | | @@ -765,7 +787,7 @@ No authorization required ## GetManualBadges -> GetTenantManualBadgesResponse GetManualBadges(ctx).Sso(sso).Execute() +> GetTenantManualBadgesResponse GetManualBadges(ctx).TenantId(tenantId).Sso(sso).Execute() @@ -782,11 +804,12 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetManualBadges(context.Background()).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetManualBadges(context.Background()).TenantId(tenantId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetManualBadges``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -807,6 +830,7 @@ Other parameters are passed through a pointer to a apiGetManualBadgesRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **sso** | **string** | | ### Return type @@ -829,7 +853,7 @@ No authorization required ## GetManualBadgesForUser -> GetUserManualBadgesResponse GetManualBadgesForUser(ctx).BadgesUserId(badgesUserId).CommentId(commentId).Sso(sso).Execute() +> GetUserManualBadgesResponse GetManualBadgesForUser(ctx).TenantId(tenantId).BadgesUserId(badgesUserId).CommentId(commentId).Sso(sso).Execute() @@ -846,13 +870,14 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | badgesUserId := "badgesUserId_example" // string | (optional) commentId := "commentId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetManualBadgesForUser(context.Background()).BadgesUserId(badgesUserId).CommentId(commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetManualBadgesForUser(context.Background()).TenantId(tenantId).BadgesUserId(badgesUserId).CommentId(commentId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetManualBadgesForUser``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -873,6 +898,7 @@ Other parameters are passed through a pointer to a apiGetManualBadgesForUserRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **badgesUserId** | **string** | | **commentId** | **string** | | **sso** | **string** | | @@ -897,7 +923,7 @@ No authorization required ## GetModerationComment -> ModerationAPICommentResponse GetModerationComment(ctx, commentId).IncludeEmail(includeEmail).IncludeIP(includeIP).Sso(sso).Execute() +> ModerationAPICommentResponse GetModerationComment(ctx, commentId).TenantId(tenantId).IncludeEmail(includeEmail).IncludeIP(includeIP).Sso(sso).Execute() @@ -914,6 +940,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | includeEmail := true // bool | (optional) includeIP := true // bool | (optional) @@ -921,7 +948,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetModerationComment(context.Background(), commentId).IncludeEmail(includeEmail).IncludeIP(includeIP).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetModerationComment(context.Background(), commentId).TenantId(tenantId).IncludeEmail(includeEmail).IncludeIP(includeIP).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetModerationComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -946,6 +973,7 @@ Other parameters are passed through a pointer to a apiGetModerationCommentReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **includeEmail** | **bool** | | **includeIP** | **bool** | | @@ -971,7 +999,7 @@ No authorization required ## GetModerationCommentText -> GetCommentTextResponse GetModerationCommentText(ctx, commentId).Sso(sso).Execute() +> GetCommentTextResponse GetModerationCommentText(ctx, commentId).TenantId(tenantId).Sso(sso).Execute() @@ -988,12 +1016,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetModerationCommentText(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetModerationCommentText(context.Background(), commentId).TenantId(tenantId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetModerationCommentText``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1018,6 +1047,7 @@ Other parameters are passed through a pointer to a apiGetModerationCommentTextRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **sso** | **string** | | @@ -1041,7 +1071,7 @@ No authorization required ## GetPreBanSummary -> PreBanSummary GetPreBanSummary(ctx, commentId).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() +> PreBanSummary GetPreBanSummary(ctx, commentId).TenantId(tenantId).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() @@ -1058,6 +1088,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | includeByUserIdAndEmail := true // bool | (optional) includeByIP := true // bool | (optional) @@ -1066,7 +1097,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetPreBanSummary(context.Background(), commentId).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetPreBanSummary(context.Background(), commentId).TenantId(tenantId).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetPreBanSummary``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1091,6 +1122,7 @@ Other parameters are passed through a pointer to a apiGetPreBanSummaryRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **includeByUserIdAndEmail** | **bool** | | **includeByIP** | **bool** | | @@ -1117,7 +1149,7 @@ No authorization required ## GetSearchCommentsSummary -> ModerationCommentSearchResponse GetSearchCommentsSummary(ctx).Value(value).Filters(filters).SearchFilters(searchFilters).Sso(sso).Execute() +> ModerationCommentSearchResponse GetSearchCommentsSummary(ctx).TenantId(tenantId).Value(value).Filters(filters).SearchFilters(searchFilters).Sso(sso).Execute() @@ -1134,6 +1166,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | value := "value_example" // string | (optional) filters := "filters_example" // string | (optional) searchFilters := "searchFilters_example" // string | (optional) @@ -1141,7 +1174,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetSearchCommentsSummary(context.Background()).Value(value).Filters(filters).SearchFilters(searchFilters).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetSearchCommentsSummary(context.Background()).TenantId(tenantId).Value(value).Filters(filters).SearchFilters(searchFilters).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchCommentsSummary``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1162,6 +1195,7 @@ Other parameters are passed through a pointer to a apiGetSearchCommentsSummaryRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **value** | **string** | | **filters** | **string** | | **searchFilters** | **string** | | @@ -1187,7 +1221,7 @@ No authorization required ## GetSearchPages -> ModerationPageSearchResponse GetSearchPages(ctx).Value(value).Sso(sso).Execute() +> ModerationPageSearchResponse GetSearchPages(ctx).TenantId(tenantId).Value(value).Sso(sso).Execute() @@ -1204,12 +1238,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | value := "value_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetSearchPages(context.Background()).Value(value).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetSearchPages(context.Background()).TenantId(tenantId).Value(value).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchPages``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1230,6 +1265,7 @@ Other parameters are passed through a pointer to a apiGetSearchPagesRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **value** | **string** | | **sso** | **string** | | @@ -1253,7 +1289,7 @@ No authorization required ## GetSearchSites -> ModerationSiteSearchResponse GetSearchSites(ctx).Value(value).Sso(sso).Execute() +> ModerationSiteSearchResponse GetSearchSites(ctx).TenantId(tenantId).Value(value).Sso(sso).Execute() @@ -1270,12 +1306,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | value := "value_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetSearchSites(context.Background()).Value(value).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetSearchSites(context.Background()).TenantId(tenantId).Value(value).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchSites``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1296,6 +1333,7 @@ Other parameters are passed through a pointer to a apiGetSearchSitesRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **value** | **string** | | **sso** | **string** | | @@ -1319,7 +1357,7 @@ No authorization required ## GetSearchSuggest -> ModerationSuggestResponse GetSearchSuggest(ctx).TextSearch(textSearch).Sso(sso).Execute() +> ModerationSuggestResponse GetSearchSuggest(ctx).TenantId(tenantId).TextSearch(textSearch).Sso(sso).Execute() @@ -1336,12 +1374,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | textSearch := "textSearch_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetSearchSuggest(context.Background()).TextSearch(textSearch).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetSearchSuggest(context.Background()).TenantId(tenantId).TextSearch(textSearch).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchSuggest``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1362,6 +1401,7 @@ Other parameters are passed through a pointer to a apiGetSearchSuggestRequest st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **textSearch** | **string** | | **sso** | **string** | | @@ -1385,7 +1425,7 @@ No authorization required ## GetSearchUsers -> ModerationUserSearchResponse GetSearchUsers(ctx).Value(value).Sso(sso).Execute() +> ModerationUserSearchResponse GetSearchUsers(ctx).TenantId(tenantId).Value(value).Sso(sso).Execute() @@ -1402,12 +1442,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | value := "value_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetSearchUsers(context.Background()).Value(value).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetSearchUsers(context.Background()).TenantId(tenantId).Value(value).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetSearchUsers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1428,6 +1469,7 @@ Other parameters are passed through a pointer to a apiGetSearchUsersRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **value** | **string** | | **sso** | **string** | | @@ -1451,7 +1493,7 @@ No authorization required ## GetTrustFactor -> GetUserTrustFactorResponse GetTrustFactor(ctx).UserId(userId).Sso(sso).Execute() +> GetUserTrustFactorResponse GetTrustFactor(ctx).TenantId(tenantId).UserId(userId).Sso(sso).Execute() @@ -1468,12 +1510,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | userId := "userId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetTrustFactor(context.Background()).UserId(userId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetTrustFactor(context.Background()).TenantId(tenantId).UserId(userId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetTrustFactor``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1494,6 +1537,7 @@ Other parameters are passed through a pointer to a apiGetTrustFactorRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **userId** | **string** | | **sso** | **string** | | @@ -1517,7 +1561,7 @@ No authorization required ## GetUserBanPreference -> APIModerateGetUserBanPreferencesResponse GetUserBanPreference(ctx).Sso(sso).Execute() +> APIModerateGetUserBanPreferencesResponse GetUserBanPreference(ctx).TenantId(tenantId).Sso(sso).Execute() @@ -1534,11 +1578,12 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetUserBanPreference(context.Background()).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetUserBanPreference(context.Background()).TenantId(tenantId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetUserBanPreference``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1559,6 +1604,7 @@ Other parameters are passed through a pointer to a apiGetUserBanPreferenceReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **sso** | **string** | | ### Return type @@ -1581,7 +1627,7 @@ No authorization required ## GetUserInternalProfile -> GetUserInternalProfileResponse GetUserInternalProfile(ctx).CommentId(commentId).Sso(sso).Execute() +> GetUserInternalProfileResponse GetUserInternalProfile(ctx).TenantId(tenantId).CommentId(commentId).Sso(sso).Execute() @@ -1598,12 +1644,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.GetUserInternalProfile(context.Background()).CommentId(commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.GetUserInternalProfile(context.Background()).TenantId(tenantId).CommentId(commentId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.GetUserInternalProfile``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1624,6 +1671,7 @@ Other parameters are passed through a pointer to a apiGetUserInternalProfileRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **commentId** | **string** | | **sso** | **string** | | @@ -1647,7 +1695,7 @@ No authorization required ## PostAdjustCommentVotes -> AdjustVotesResponse PostAdjustCommentVotes(ctx, commentId).AdjustCommentVotesParams(adjustCommentVotesParams).Sso(sso).Execute() +> AdjustVotesResponse PostAdjustCommentVotes(ctx, commentId).TenantId(tenantId).AdjustCommentVotesParams(adjustCommentVotesParams).BroadcastId(broadcastId).Sso(sso).Execute() @@ -1664,13 +1712,15 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | adjustCommentVotesParams := *openapiclient.NewAdjustCommentVotesParams(float64(123)) // AdjustCommentVotesParams | + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostAdjustCommentVotes(context.Background(), commentId).AdjustCommentVotesParams(adjustCommentVotesParams).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostAdjustCommentVotes(context.Background(), commentId).TenantId(tenantId).AdjustCommentVotesParams(adjustCommentVotesParams).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostAdjustCommentVotes``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1695,8 +1745,10 @@ Other parameters are passed through a pointer to a apiPostAdjustCommentVotesRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -1719,7 +1771,7 @@ No authorization required ## PostApiExport -> ModerationExportResponse PostApiExport(ctx).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Sso(sso).Execute() +> ModerationExportResponse PostApiExport(ctx).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Sso(sso).Execute() @@ -1736,6 +1788,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | textSearch := "textSearch_example" // string | (optional) byIPFromComment := "byIPFromComment_example" // string | (optional) filters := "filters_example" // string | (optional) @@ -1745,7 +1798,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostApiExport(context.Background()).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostApiExport(context.Background()).TenantId(tenantId).TextSearch(textSearch).ByIPFromComment(byIPFromComment).Filters(filters).SearchFilters(searchFilters).Sorts(sorts).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostApiExport``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1766,6 +1819,7 @@ Other parameters are passed through a pointer to a apiPostApiExportRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **textSearch** | **string** | | **byIPFromComment** | **string** | | **filters** | **string** | | @@ -1793,7 +1847,7 @@ No authorization required ## PostBanUserFromComment -> BanUserFromCommentResult PostBanUserFromComment(ctx, commentId).BanEmail(banEmail).BanEmailDomain(banEmailDomain).BanIP(banIP).DeleteAllUsersComments(deleteAllUsersComments).BannedUntil(bannedUntil).IsShadowBan(isShadowBan).UpdateId(updateId).BanReason(banReason).Sso(sso).Execute() +> BanUserFromCommentResult PostBanUserFromComment(ctx, commentId).TenantId(tenantId).BanEmail(banEmail).BanEmailDomain(banEmailDomain).BanIP(banIP).DeleteAllUsersComments(deleteAllUsersComments).BannedUntil(bannedUntil).IsShadowBan(isShadowBan).UpdateId(updateId).BanReason(banReason).Sso(sso).Execute() @@ -1810,6 +1864,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | banEmail := true // bool | (optional) banEmailDomain := true // bool | (optional) @@ -1823,7 +1878,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostBanUserFromComment(context.Background(), commentId).BanEmail(banEmail).BanEmailDomain(banEmailDomain).BanIP(banIP).DeleteAllUsersComments(deleteAllUsersComments).BannedUntil(bannedUntil).IsShadowBan(isShadowBan).UpdateId(updateId).BanReason(banReason).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostBanUserFromComment(context.Background(), commentId).TenantId(tenantId).BanEmail(banEmail).BanEmailDomain(banEmailDomain).BanIP(banIP).DeleteAllUsersComments(deleteAllUsersComments).BannedUntil(bannedUntil).IsShadowBan(isShadowBan).UpdateId(updateId).BanReason(banReason).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBanUserFromComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1848,6 +1903,7 @@ Other parameters are passed through a pointer to a apiPostBanUserFromCommentRequ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **banEmail** | **bool** | | **banEmailDomain** | **bool** | | @@ -1879,7 +1935,7 @@ No authorization required ## PostBanUserUndo -> APIEmptyResponse PostBanUserUndo(ctx).BanUserUndoParams(banUserUndoParams).Sso(sso).Execute() +> APIEmptyResponse PostBanUserUndo(ctx).TenantId(tenantId).BanUserUndoParams(banUserUndoParams).Sso(sso).Execute() @@ -1896,12 +1952,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | banUserUndoParams := *openapiclient.NewBanUserUndoParams(*openapiclient.NewAPIBanUserChangeLog()) // BanUserUndoParams | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostBanUserUndo(context.Background()).BanUserUndoParams(banUserUndoParams).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostBanUserUndo(context.Background()).TenantId(tenantId).BanUserUndoParams(banUserUndoParams).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBanUserUndo``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1922,6 +1979,7 @@ Other parameters are passed through a pointer to a apiPostBanUserUndoRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md) | | **sso** | **string** | | @@ -1945,7 +2003,7 @@ No authorization required ## PostBulkPreBanSummary -> BulkPreBanSummary PostBulkPreBanSummary(ctx).BulkPreBanParams(bulkPreBanParams).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() +> BulkPreBanSummary PostBulkPreBanSummary(ctx).TenantId(tenantId).BulkPreBanParams(bulkPreBanParams).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() @@ -1962,6 +2020,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | bulkPreBanParams := *openapiclient.NewBulkPreBanParams([]string{"CommentIds_example"}) // BulkPreBanParams | includeByUserIdAndEmail := true // bool | (optional) includeByIP := true // bool | (optional) @@ -1970,7 +2029,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostBulkPreBanSummary(context.Background()).BulkPreBanParams(bulkPreBanParams).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostBulkPreBanSummary(context.Background()).TenantId(tenantId).BulkPreBanParams(bulkPreBanParams).IncludeByUserIdAndEmail(includeByUserIdAndEmail).IncludeByIP(includeByIP).IncludeByEmailDomain(includeByEmailDomain).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostBulkPreBanSummary``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1991,6 +2050,7 @@ Other parameters are passed through a pointer to a apiPostBulkPreBanSummaryReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md) | | **includeByUserIdAndEmail** | **bool** | | **includeByIP** | **bool** | | @@ -2017,7 +2077,7 @@ No authorization required ## PostCommentsByIds -> ModerationAPIChildCommentsResponse PostCommentsByIds(ctx).CommentsByIdsParams(commentsByIdsParams).Sso(sso).Execute() +> ModerationAPIChildCommentsResponse PostCommentsByIds(ctx).TenantId(tenantId).CommentsByIdsParams(commentsByIdsParams).Sso(sso).Execute() @@ -2034,12 +2094,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentsByIdsParams := *openapiclient.NewCommentsByIdsParams([]string{"Ids_example"}) // CommentsByIdsParams | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostCommentsByIds(context.Background()).CommentsByIdsParams(commentsByIdsParams).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostCommentsByIds(context.Background()).TenantId(tenantId).CommentsByIdsParams(commentsByIdsParams).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostCommentsByIds``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2060,6 +2121,7 @@ Other parameters are passed through a pointer to a apiPostCommentsByIdsRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | **sso** | **string** | | @@ -2083,7 +2145,7 @@ No authorization required ## PostFlagComment -> APIEmptyResponse PostFlagComment(ctx, commentId).Sso(sso).Execute() +> APIEmptyResponse PostFlagComment(ctx, commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2100,12 +2162,14 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostFlagComment(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostFlagComment(context.Background(), commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostFlagComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2130,7 +2194,9 @@ Other parameters are passed through a pointer to a apiPostFlagCommentRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -2153,7 +2219,7 @@ No authorization required ## PostRemoveComment -> PostRemoveCommentResponse PostRemoveComment(ctx, commentId).Sso(sso).Execute() +> PostRemoveCommentApiResponse PostRemoveComment(ctx, commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2170,17 +2236,19 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostRemoveComment(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostRemoveComment(context.Background(), commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostRemoveComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PostRemoveComment`: PostRemoveCommentResponse + // response from `PostRemoveComment`: PostRemoveCommentApiResponse fmt.Fprintf(os.Stdout, "Response from `ModerationAPI.PostRemoveComment`: %v\n", resp) } ``` @@ -2200,12 +2268,14 @@ Other parameters are passed through a pointer to a apiPostRemoveCommentRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type -[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) +[**PostRemoveCommentApiResponse**](PostRemoveCommentApiResponse.md) ### Authorization @@ -2223,7 +2293,7 @@ No authorization required ## PostRestoreDeletedComment -> APIEmptyResponse PostRestoreDeletedComment(ctx, commentId).Sso(sso).Execute() +> APIEmptyResponse PostRestoreDeletedComment(ctx, commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2240,12 +2310,14 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostRestoreDeletedComment(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostRestoreDeletedComment(context.Background(), commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostRestoreDeletedComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2270,7 +2342,9 @@ Other parameters are passed through a pointer to a apiPostRestoreDeletedCommentR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -2293,7 +2367,7 @@ No authorization required ## PostSetCommentApprovalStatus -> SetCommentApprovedResponse PostSetCommentApprovalStatus(ctx, commentId).Approved(approved).Sso(sso).Execute() +> SetCommentApprovedResponse PostSetCommentApprovalStatus(ctx, commentId).TenantId(tenantId).Approved(approved).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2310,13 +2384,15 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | approved := true // bool | (optional) + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostSetCommentApprovalStatus(context.Background(), commentId).Approved(approved).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostSetCommentApprovalStatus(context.Background(), commentId).TenantId(tenantId).Approved(approved).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentApprovalStatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2341,8 +2417,10 @@ Other parameters are passed through a pointer to a apiPostSetCommentApprovalStat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **approved** | **bool** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -2365,7 +2443,7 @@ No authorization required ## PostSetCommentReviewStatus -> APIEmptyResponse PostSetCommentReviewStatus(ctx, commentId).Reviewed(reviewed).Sso(sso).Execute() +> APIEmptyResponse PostSetCommentReviewStatus(ctx, commentId).TenantId(tenantId).Reviewed(reviewed).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2382,13 +2460,15 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | reviewed := true // bool | (optional) + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostSetCommentReviewStatus(context.Background(), commentId).Reviewed(reviewed).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostSetCommentReviewStatus(context.Background(), commentId).TenantId(tenantId).Reviewed(reviewed).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentReviewStatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2413,8 +2493,10 @@ Other parameters are passed through a pointer to a apiPostSetCommentReviewStatus Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **reviewed** | **bool** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -2437,7 +2519,7 @@ No authorization required ## PostSetCommentSpamStatus -> APIEmptyResponse PostSetCommentSpamStatus(ctx, commentId).Spam(spam).PermNotSpam(permNotSpam).Sso(sso).Execute() +> APIEmptyResponse PostSetCommentSpamStatus(ctx, commentId).TenantId(tenantId).Spam(spam).PermNotSpam(permNotSpam).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2454,14 +2536,16 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | spam := true // bool | (optional) permNotSpam := true // bool | (optional) + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostSetCommentSpamStatus(context.Background(), commentId).Spam(spam).PermNotSpam(permNotSpam).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostSetCommentSpamStatus(context.Background(), commentId).TenantId(tenantId).Spam(spam).PermNotSpam(permNotSpam).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentSpamStatus``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2486,9 +2570,11 @@ Other parameters are passed through a pointer to a apiPostSetCommentSpamStatusRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **spam** | **bool** | | **permNotSpam** | **bool** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -2511,7 +2597,7 @@ No authorization required ## PostSetCommentText -> SetCommentTextResponse PostSetCommentText(ctx, commentId).SetCommentTextParams(setCommentTextParams).Sso(sso).Execute() +> SetCommentTextResponse PostSetCommentText(ctx, commentId).TenantId(tenantId).SetCommentTextParams(setCommentTextParams).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2528,13 +2614,15 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | setCommentTextParams := *openapiclient.NewSetCommentTextParams("Comment_example") // SetCommentTextParams | + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostSetCommentText(context.Background(), commentId).SetCommentTextParams(setCommentTextParams).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostSetCommentText(context.Background(), commentId).TenantId(tenantId).SetCommentTextParams(setCommentTextParams).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostSetCommentText``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2559,8 +2647,10 @@ Other parameters are passed through a pointer to a apiPostSetCommentTextRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md) | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -2583,7 +2673,7 @@ No authorization required ## PostUnFlagComment -> APIEmptyResponse PostUnFlagComment(ctx, commentId).Sso(sso).Execute() +> APIEmptyResponse PostUnFlagComment(ctx, commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2600,12 +2690,14 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostUnFlagComment(context.Background(), commentId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostUnFlagComment(context.Background(), commentId).TenantId(tenantId).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostUnFlagComment``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2630,7 +2722,9 @@ Other parameters are passed through a pointer to a apiPostUnFlagCommentRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -2653,7 +2747,7 @@ No authorization required ## PostVote -> VoteResponse PostVote(ctx, commentId).Direction(direction).Sso(sso).Execute() +> VoteResponse PostVote(ctx, commentId).TenantId(tenantId).Direction(direction).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2670,13 +2764,15 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | commentId := "commentId_example" // string | direction := "direction_example" // string | (optional) + broadcastId := "broadcastId_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PostVote(context.Background(), commentId).Direction(direction).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PostVote(context.Background(), commentId).TenantId(tenantId).Direction(direction).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PostVote``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2701,8 +2797,10 @@ Other parameters are passed through a pointer to a apiPostVoteRequest struct via Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **direction** | **string** | | + **broadcastId** | **string** | | **sso** | **string** | | ### Return type @@ -2725,7 +2823,7 @@ No authorization required ## PutAwardBadge -> AwardUserBadgeResponse PutAwardBadge(ctx).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() +> AwardUserBadgeResponse PutAwardBadge(ctx).TenantId(tenantId).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2742,6 +2840,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | badgeId := "badgeId_example" // string | userId := "userId_example" // string | (optional) commentId := "commentId_example" // string | (optional) @@ -2750,7 +2849,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PutAwardBadge(context.Background()).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PutAwardBadge(context.Background()).TenantId(tenantId).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutAwardBadge``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2771,6 +2870,7 @@ Other parameters are passed through a pointer to a apiPutAwardBadgeRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **badgeId** | **string** | | **userId** | **string** | | **commentId** | **string** | | @@ -2797,7 +2897,7 @@ No authorization required ## PutCloseThread -> APIEmptyResponse PutCloseThread(ctx).UrlId(urlId).Sso(sso).Execute() +> APIEmptyResponse PutCloseThread(ctx).TenantId(tenantId).UrlId(urlId).Sso(sso).Execute() @@ -2814,12 +2914,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | urlId := "urlId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PutCloseThread(context.Background()).UrlId(urlId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PutCloseThread(context.Background()).TenantId(tenantId).UrlId(urlId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutCloseThread``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2840,6 +2941,7 @@ Other parameters are passed through a pointer to a apiPutCloseThreadRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **urlId** | **string** | | **sso** | **string** | | @@ -2863,7 +2965,7 @@ No authorization required ## PutRemoveBadge -> RemoveUserBadgeResponse PutRemoveBadge(ctx).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() +> RemoveUserBadgeResponse PutRemoveBadge(ctx).TenantId(tenantId).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() @@ -2880,6 +2982,7 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | badgeId := "badgeId_example" // string | userId := "userId_example" // string | (optional) commentId := "commentId_example" // string | (optional) @@ -2888,7 +2991,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PutRemoveBadge(context.Background()).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PutRemoveBadge(context.Background()).TenantId(tenantId).BadgeId(badgeId).UserId(userId).CommentId(commentId).BroadcastId(broadcastId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutRemoveBadge``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2909,6 +3012,7 @@ Other parameters are passed through a pointer to a apiPutRemoveBadgeRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **badgeId** | **string** | | **userId** | **string** | | **commentId** | **string** | | @@ -2935,7 +3039,7 @@ No authorization required ## PutReopenThread -> APIEmptyResponse PutReopenThread(ctx).UrlId(urlId).Sso(sso).Execute() +> APIEmptyResponse PutReopenThread(ctx).TenantId(tenantId).UrlId(urlId).Sso(sso).Execute() @@ -2952,12 +3056,13 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | urlId := "urlId_example" // string | sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.PutReopenThread(context.Background()).UrlId(urlId).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.PutReopenThread(context.Background()).TenantId(tenantId).UrlId(urlId).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.PutReopenThread``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2978,6 +3083,7 @@ Other parameters are passed through a pointer to a apiPutReopenThreadRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **urlId** | **string** | | **sso** | **string** | | @@ -3001,7 +3107,7 @@ No authorization required ## SetTrustFactor -> SetUserTrustFactorResponse SetTrustFactor(ctx).UserId(userId).TrustFactor(trustFactor).Sso(sso).Execute() +> SetUserTrustFactorResponse SetTrustFactor(ctx).TenantId(tenantId).UserId(userId).TrustFactor(trustFactor).Sso(sso).Execute() @@ -3018,13 +3124,14 @@ import ( ) func main() { + tenantId := "tenantId_example" // string | userId := "userId_example" // string | (optional) trustFactor := "trustFactor_example" // string | (optional) sso := "sso_example" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ModerationAPI.SetTrustFactor(context.Background()).UserId(userId).TrustFactor(trustFactor).Sso(sso).Execute() + resp, r, err := apiClient.ModerationAPI.SetTrustFactor(context.Background()).TenantId(tenantId).UserId(userId).TrustFactor(trustFactor).Sso(sso).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ModerationAPI.SetTrustFactor``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3045,6 +3152,7 @@ Other parameters are passed through a pointer to a apiSetTrustFactorRequest stru Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **string** | | **userId** | **string** | | **trustFactor** | **string** | | **sso** | **string** | | diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentApiResponse.md similarity index 60% rename from client/docs/PostRemoveCommentResponse.md rename to client/docs/PostRemoveCommentApiResponse.md index c243fe2..de65b53 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentApiResponse.md @@ -1,4 +1,4 @@ -# PostRemoveCommentResponse +# PostRemoveCommentApiResponse ## Properties @@ -9,59 +9,59 @@ Name | Type | Description | Notes ## Methods -### NewPostRemoveCommentResponse +### NewPostRemoveCommentApiResponse -`func NewPostRemoveCommentResponse(action string, status string, ) *PostRemoveCommentResponse` +`func NewPostRemoveCommentApiResponse(action string, status string, ) *PostRemoveCommentApiResponse` -NewPostRemoveCommentResponse instantiates a new PostRemoveCommentResponse object +NewPostRemoveCommentApiResponse instantiates a new PostRemoveCommentApiResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed -### NewPostRemoveCommentResponseWithDefaults +### NewPostRemoveCommentApiResponseWithDefaults -`func NewPostRemoveCommentResponseWithDefaults() *PostRemoveCommentResponse` +`func NewPostRemoveCommentApiResponseWithDefaults() *PostRemoveCommentApiResponse` -NewPostRemoveCommentResponseWithDefaults instantiates a new PostRemoveCommentResponse object +NewPostRemoveCommentApiResponseWithDefaults instantiates a new PostRemoveCommentApiResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set ### GetAction -`func (o *PostRemoveCommentResponse) GetAction() string` +`func (o *PostRemoveCommentApiResponse) GetAction() string` GetAction returns the Action field if non-nil, zero value otherwise. ### GetActionOk -`func (o *PostRemoveCommentResponse) GetActionOk() (*string, bool)` +`func (o *PostRemoveCommentApiResponse) GetActionOk() (*string, bool)` GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAction -`func (o *PostRemoveCommentResponse) SetAction(v string)` +`func (o *PostRemoveCommentApiResponse) SetAction(v string)` SetAction sets Action field to given value. ### GetStatus -`func (o *PostRemoveCommentResponse) GetStatus() string` +`func (o *PostRemoveCommentApiResponse) GetStatus() string` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PostRemoveCommentResponse) GetStatusOk() (*string, bool)` +`func (o *PostRemoveCommentApiResponse) GetStatusOk() (*string, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PostRemoveCommentResponse) SetStatus(v string)` +`func (o *PostRemoveCommentApiResponse) SetStatus(v string)` SetStatus sets Status field to given value. diff --git a/client/model_post_remove_comment_response.go b/client/model_post_remove_comment_api_response.go similarity index 66% rename from client/model_post_remove_comment_response.go rename to client/model_post_remove_comment_api_response.go index fd58ac1..227ab21 100644 --- a/client/model_post_remove_comment_response.go +++ b/client/model_post_remove_comment_api_response.go @@ -16,14 +16,14 @@ import ( ) -// PostRemoveCommentResponse struct for PostRemoveCommentResponse -type PostRemoveCommentResponse struct { +// PostRemoveCommentApiResponse struct for PostRemoveCommentApiResponse +type PostRemoveCommentApiResponse struct { DeleteCommentResult *DeleteCommentResult RemoveCommentActionResponse *RemoveCommentActionResponse } // Unmarshal JSON data into any of the pointers in the struct -func (dst *PostRemoveCommentResponse) UnmarshalJSON(data []byte) error { +func (dst *PostRemoveCommentApiResponse) UnmarshalJSON(data []byte) error { var err error // try to unmarshal JSON data into DeleteCommentResult err = json.Unmarshal(data, &dst.DeleteCommentResult); @@ -51,11 +51,11 @@ func (dst *PostRemoveCommentResponse) UnmarshalJSON(data []byte) error { dst.RemoveCommentActionResponse = nil } - return fmt.Errorf("data failed to match schemas in anyOf(PostRemoveCommentResponse)") + return fmt.Errorf("data failed to match schemas in anyOf(PostRemoveCommentApiResponse)") } // Marshal data from the first non-nil pointers in the struct to JSON -func (src PostRemoveCommentResponse) MarshalJSON() ([]byte, error) { +func (src PostRemoveCommentApiResponse) MarshalJSON() ([]byte, error) { if src.DeleteCommentResult != nil { return json.Marshal(&src.DeleteCommentResult) } @@ -68,38 +68,38 @@ func (src PostRemoveCommentResponse) MarshalJSON() ([]byte, error) { } -type NullablePostRemoveCommentResponse struct { - value *PostRemoveCommentResponse +type NullablePostRemoveCommentApiResponse struct { + value *PostRemoveCommentApiResponse isSet bool } -func (v NullablePostRemoveCommentResponse) Get() *PostRemoveCommentResponse { +func (v NullablePostRemoveCommentApiResponse) Get() *PostRemoveCommentApiResponse { return v.value } -func (v *NullablePostRemoveCommentResponse) Set(val *PostRemoveCommentResponse) { +func (v *NullablePostRemoveCommentApiResponse) Set(val *PostRemoveCommentApiResponse) { v.value = val v.isSet = true } -func (v NullablePostRemoveCommentResponse) IsSet() bool { +func (v NullablePostRemoveCommentApiResponse) IsSet() bool { return v.isSet } -func (v *NullablePostRemoveCommentResponse) Unset() { +func (v *NullablePostRemoveCommentApiResponse) Unset() { v.value = nil v.isSet = false } -func NewNullablePostRemoveCommentResponse(val *PostRemoveCommentResponse) *NullablePostRemoveCommentResponse { - return &NullablePostRemoveCommentResponse{value: val, isSet: true} +func NewNullablePostRemoveCommentApiResponse(val *PostRemoveCommentApiResponse) *NullablePostRemoveCommentApiResponse { + return &NullablePostRemoveCommentApiResponse{value: val, isSet: true} } -func (v NullablePostRemoveCommentResponse) MarshalJSON() ([]byte, error) { +func (v NullablePostRemoveCommentApiResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullablePostRemoveCommentResponse) UnmarshalJSON(src []byte) error { +func (v *NullablePostRemoveCommentApiResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/config.json b/config.json index d9edb5b..dab641f 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "packageName": "client", - "packageVersion": "1.2.1", + "packageVersion": "3.0.0", "isGoSubmodule": true, "enumClassPrefix": true, "gitUserId": "fastcomments", diff --git a/openapi.json b/openapi.json index ca0225c..302747d 100644 --- a/openapi.json +++ b/openapi.json @@ -13107,9 +13107,9 @@ ] } }, - "/auth/my-account/moderate-comments/count": { + "/auth/my-account/moderate-comments/mod_api/count": { "get": { - "operationId": "GetCount", + "operationId": "getCount", "responses": { "200": { "description": "Ok", @@ -13137,6 +13137,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13188,9 +13196,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/ids": { + "/auth/my-account/moderate-comments/mod_api/api/ids": { "get": { - "operationId": "GetApiIds", + "operationId": "getApiIds", "responses": { "200": { "description": "Ok", @@ -13218,6 +13226,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13277,9 +13293,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/comments": { + "/auth/my-account/moderate-comments/mod_api/api/comments": { "get": { - "operationId": "GetApiComments", + "operationId": "getApiComments", "responses": { "200": { "description": "Ok", @@ -13307,6 +13323,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "page", @@ -13384,9 +13408,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export": { + "/auth/my-account/moderate-comments/mod_api/api/export": { "post": { - "operationId": "PostApiExport", + "operationId": "postApiExport", "responses": { "200": { "description": "Ok", @@ -13414,6 +13438,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13465,9 +13497,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export/status": { + "/auth/my-account/moderate-comments/mod_api/api/export/status": { "get": { - "operationId": "GetApiExportStatus", + "operationId": "getApiExportStatus", "responses": { "200": { "description": "Ok", @@ -13495,6 +13527,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "batchJobId", @@ -13514,9 +13554,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/users": { + "/auth/my-account/moderate-comments/mod_api/search/users": { "get": { - "operationId": "GetSearchUsers", + "operationId": "getSearchUsers", "responses": { "200": { "description": "Ok", @@ -13544,6 +13584,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13563,9 +13611,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/pages": { + "/auth/my-account/moderate-comments/mod_api/search/pages": { "get": { - "operationId": "GetSearchPages", + "operationId": "getSearchPages", "responses": { "200": { "description": "Ok", @@ -13593,6 +13641,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13612,9 +13668,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/sites": { + "/auth/my-account/moderate-comments/mod_api/search/sites": { "get": { - "operationId": "GetSearchSites", + "operationId": "getSearchSites", "responses": { "200": { "description": "Ok", @@ -13642,6 +13698,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13661,9 +13725,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/comments/summary": { + "/auth/my-account/moderate-comments/mod_api/search/comments/summary": { "get": { - "operationId": "GetSearchCommentsSummary", + "operationId": "getSearchCommentsSummary", "responses": { "200": { "description": "Ok", @@ -13691,6 +13755,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13726,9 +13798,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/suggest": { + "/auth/my-account/moderate-comments/mod_api/search/suggest": { "get": { - "operationId": "GetSearchSuggest", + "operationId": "getSearchSuggest", "responses": { "200": { "description": "Ok", @@ -13756,6 +13828,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13775,9 +13855,9 @@ ] } }, - "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}": { "get": { - "operationId": "GetPreBanSummary", + "operationId": "getPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13805,6 +13885,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -13848,9 +13936,9 @@ ] } }, - "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary": { "post": { - "operationId": "PostBulkPreBanSummary", + "operationId": "postBulkPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13878,6 +13966,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "includeByUserIdAndEmail", @@ -13923,9 +14019,9 @@ } } }, - "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}": { "post": { - "operationId": "PostBanUserFromComment", + "operationId": "postBanUserFromComment", "responses": { "200": { "description": "Ok", @@ -13953,6 +14049,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14036,9 +14140,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}": { "get": { - "operationId": "GetBanUsersFromComment", + "operationId": "getBanUsersFromComment", "responses": { "200": { "description": "Ok", @@ -14066,6 +14170,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14085,9 +14197,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-user/undo": { + "/auth/my-account/moderate-comments/mod_api/ban-user/undo": { "post": { - "operationId": "PostBanUserUndo", + "operationId": "postBanUserUndo", "responses": { "200": { "description": "Ok", @@ -14115,6 +14227,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14136,16 +14256,16 @@ } } }, - "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}": { "post": { - "operationId": "PostRemoveComment", + "operationId": "postRemoveComment", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "title": "PostRemoveCommentResponse", + "title": "PostRemoveCommentApiResponse", "anyOf": [ { "$ref": "#/components/schemas/DeleteCommentResult" @@ -14174,6 +14294,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14182,6 +14310,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14193,9 +14329,9 @@ ] } }, - "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}": { "post": { - "operationId": "PostRestoreDeletedComment", + "operationId": "postRestoreDeletedComment", "responses": { "200": { "description": "Ok", @@ -14223,6 +14359,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14231,6 +14375,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14242,9 +14394,9 @@ ] } }, - "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}": { "post": { - "operationId": "PostFlagComment", + "operationId": "postFlagComment", "responses": { "200": { "description": "Ok", @@ -14272,6 +14424,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14280,6 +14440,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14291,9 +14459,9 @@ ] } }, - "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}": { "post": { - "operationId": "PostUnFlagComment", + "operationId": "postUnFlagComment", "responses": { "200": { "description": "Ok", @@ -14321,6 +14489,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14329,6 +14505,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14340,9 +14524,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}": { "post": { - "operationId": "PostSetCommentReviewStatus", + "operationId": "postSetCommentReviewStatus", "responses": { "200": { "description": "Ok", @@ -14370,6 +14554,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14386,6 +14578,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14397,9 +14597,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}": { "post": { - "operationId": "PostSetCommentSpamStatus", + "operationId": "postSetCommentSpamStatus", "responses": { "200": { "description": "Ok", @@ -14427,6 +14627,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14451,6 +14659,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14462,9 +14678,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}": { "post": { - "operationId": "PostSetCommentApprovalStatus", + "operationId": "postSetCommentApprovalStatus", "responses": { "200": { "description": "Ok", @@ -14492,6 +14708,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14508,6 +14732,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14519,9 +14751,9 @@ ] } }, - "/auth/my-account/moderate-comments/logs/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/logs/{commentId}": { "get": { - "operationId": "GetLogs", + "operationId": "getLogs", "responses": { "200": { "description": "Ok", @@ -14549,6 +14781,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14568,9 +14808,9 @@ ] } }, - "/auth/my-account/moderate-comments/comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment/{commentId}": { "get": { - "operationId": "GetModerationComment", + "operationId": "getModerationComment", "responses": { "200": { "description": "Ok", @@ -14598,6 +14838,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14633,9 +14881,9 @@ ] } }, - "/auth/my-account/moderate-comments/comments-by-ids": { + "/auth/my-account/moderate-comments/mod_api/comments-by-ids": { "post": { - "operationId": "PostCommentsByIds", + "operationId": "postCommentsByIds", "responses": { "200": { "description": "Ok", @@ -14663,6 +14911,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14684,9 +14940,9 @@ } } }, - "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}": { "get": { - "operationId": "GetCommentChildren", + "operationId": "getCommentChildren", "responses": { "200": { "description": "Ok", @@ -14714,6 +14970,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14733,9 +14997,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}": { "get": { - "operationId": "GetModerationCommentText", + "operationId": "getModerationCommentText", "responses": { "200": { "description": "Ok", @@ -14763,6 +15027,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14782,9 +15054,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}": { "post": { - "operationId": "PostSetCommentText", + "operationId": "postSetCommentText", "responses": { "200": { "description": "Ok", @@ -14812,6 +15084,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14820,6 +15100,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14841,9 +15129,9 @@ } } }, - "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}": { "post": { - "operationId": "PostAdjustCommentVotes", + "operationId": "postAdjustCommentVotes", "responses": { "200": { "description": "Ok", @@ -14871,6 +15159,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14879,6 +15175,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14900,9 +15204,9 @@ } } }, - "/auth/my-account/moderate-comments/vote/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}": { "post": { - "operationId": "PostVote", + "operationId": "postVote", "responses": { "200": { "description": "Ok", @@ -14930,6 +15234,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14946,6 +15258,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14957,9 +15277,9 @@ ] } }, - "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}": { "delete": { - "operationId": "DeleteModerationVote", + "operationId": "deleteModerationVote", "responses": { "200": { "description": "Ok", @@ -14987,6 +15307,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -15003,6 +15331,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15014,9 +15350,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}": { "get": { - "operationId": "GetCommentBanStatus", + "operationId": "getCommentBanStatus", "responses": { "200": { "description": "Ok", @@ -15044,6 +15380,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -15063,9 +15407,9 @@ ] } }, - "/auth/my-account/moderate-comments/user-ban-preference": { + "/auth/my-account/moderate-comments/mod_api/user-ban-preference": { "get": { - "operationId": "GetUserBanPreference", + "operationId": "getUserBanPreference", "responses": { "200": { "description": "Ok", @@ -15093,6 +15437,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15104,9 +15456,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges": { "get": { - "operationId": "GetManualBadges", + "operationId": "getManualBadges", "responses": { "200": { "description": "Ok", @@ -15134,6 +15486,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15145,9 +15505,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges-for-user": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user": { "get": { - "operationId": "GetManualBadgesForUser", + "operationId": "getManualBadgesForUser", "responses": { "200": { "description": "Ok", @@ -15175,6 +15535,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgesUserId", @@ -15202,9 +15570,9 @@ ] } }, - "/auth/my-account/moderate-comments/award-badge": { + "/auth/my-account/moderate-comments/mod_api/award-badge": { "put": { - "operationId": "PutAwardBadge", + "operationId": "putAwardBadge", "responses": { "200": { "description": "Ok", @@ -15232,6 +15600,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgeId", @@ -15275,9 +15651,9 @@ ] } }, - "/auth/my-account/moderate-comments/remove-badge": { + "/auth/my-account/moderate-comments/mod_api/remove-badge": { "put": { - "operationId": "PutRemoveBadge", + "operationId": "putRemoveBadge", "responses": { "200": { "description": "Ok", @@ -15305,6 +15681,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgeId", @@ -15348,9 +15732,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/get-trust-factor": { "get": { - "operationId": "GetTrustFactor", + "operationId": "getTrustFactor", "responses": { "200": { "description": "Ok", @@ -15378,6 +15762,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "userId", @@ -15397,9 +15789,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/set-trust-factor": { "put": { - "operationId": "SetTrustFactor", + "operationId": "setTrustFactor", "responses": { "200": { "description": "Ok", @@ -15427,6 +15819,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "userId", @@ -15454,9 +15854,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-user-internal-profile": { + "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile": { "get": { - "operationId": "GetUserInternalProfile", + "operationId": "getUserInternalProfile", "responses": { "200": { "description": "Ok", @@ -15484,6 +15884,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "commentId", @@ -15503,9 +15911,9 @@ ] } }, - "/auth/my-account/moderate-comments/reopen-thread": { + "/auth/my-account/moderate-comments/mod_api/reopen-thread": { "put": { - "operationId": "PutReopenThread", + "operationId": "putReopenThread", "responses": { "200": { "description": "Ok", @@ -15533,6 +15941,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "urlId", @@ -15552,9 +15968,9 @@ ] } }, - "/auth/my-account/moderate-comments/close-thread": { + "/auth/my-account/moderate-comments/mod_api/close-thread": { "put": { - "operationId": "PutCloseThread", + "operationId": "putCloseThread", "responses": { "200": { "description": "Ok", @@ -15582,6 +15998,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "urlId", @@ -15601,9 +16025,9 @@ ] } }, - "/auth/my-account/moderate-comments/banned-users/counts": { + "/auth/my-account/moderate-comments/banned-users/mod_api/counts": { "get": { - "operationId": "GetCounts", + "operationId": "getCounts", "responses": { "200": { "description": "Ok", @@ -15631,6 +16055,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -22595,7 +23027,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -22647,7 +23079,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -22697,17 +23129,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } @@ -22755,17 +23187,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" }