diff --git a/Cargo.lock b/Cargo.lock index 87071c4..b5ad0ec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "fastcomments-sdk" -version = "1.3.1" +version = "2.0.1" dependencies = [ "base64", "chrono", diff --git a/Cargo.toml b/Cargo.toml index fba144b..bd9aff9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fastcomments-sdk" -version = "2.0.0" +version = "3.0.0" authors = ["FastComments "] description = "Official FastComments Rust SDK (Typed API Client & Utilities)" license = "MIT" diff --git a/README.md b/README.md index 5b94307..922ff18 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The FastComments Rust SDK consists of several modules: - Three API clients covering all FastComments methods: - `default_api` (**DefaultApi**) - API-key-authenticated methods for server-side use - `public_api` (**PublicApi**) - public, no-API-key methods that are safe to call from browsers and mobile apps - - `moderation_api` (**ModerationApi**) - methods backing the moderator dashboard, including comment moderation (list, count, search, logs, export), moderation actions (remove/restore, flag, set review/spam/approval status, votes, reopen/close thread), bans (ban from a comment, undo, pre-ban summaries, ban status/preferences, banned-user counts), and badges & trust (award/remove badges, manual badges, get/set trust factor, user internal profile). Every Moderation method accepts an `sso` parameter so the call can be made on behalf of an SSO-authenticated moderator. + - `moderation_api` (**ModerationApi**) - an extensive suite of live and fast moderation APIs. Every Moderation method accepts an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie. - Full async/await support with tokio - See [client/README.md](client/README.md) for detailed API documentation diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index d814395..21803f2 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -264,7 +264,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 @@ -633,7 +633,7 @@ src/models/patch_domain_config_response.rs src/models/patch_page_api_response.rs src/models/patch_sso_user_api_response.rs src/models/pending_comment_to_sync_outbound.rs -src/models/post_remove_comment_response.rs +src/models/post_remove_comment_api_response.rs src/models/pre_ban_summary.rs src/models/pub_sub_comment.rs src/models/pub_sub_comment_base.rs diff --git a/client/README.md b/client/README.md index f2ee83d..ee665ec 100644 --- a/client/README.md +++ b/client/README.md @@ -8,7 +8,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://openapis.org) from a remote server, you can easily generate an API client. - API version: 0.0.0 -- Package version: 1.3.1 +- Package version: 3.0.0 - Generator version: 7.23.0-SNAPSHOT - Build package: `org.openapitools.codegen.languages.RustClientCodegen` @@ -140,49 +140,49 @@ Class | Method | HTTP request | Description *DefaultApi* | [**update_tenant_package**](docs/DefaultApi.md#update_tenant_package) | **PATCH** /api/v1/tenant-packages/{id} | *DefaultApi* | [**update_tenant_user**](docs/DefaultApi.md#update_tenant_user) | **PATCH** /api/v1/tenant-users/{id} | *DefaultApi* | [**update_user_badge**](docs/DefaultApi.md#update_user_badge) | **PUT** /api/v1/user-badges/{id} | -*ModerationApi* | [**delete_moderation_vote**](docs/ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -*ModerationApi* | [**get_api_comments**](docs/ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/api/comments | -*ModerationApi* | [**get_api_export_status**](docs/ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/api/export/status | -*ModerationApi* | [**get_api_ids**](docs/ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/api/ids | -*ModerationApi* | [**get_ban_users_from_comment**](docs/ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -*ModerationApi* | [**get_comment_ban_status**](docs/ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -*ModerationApi* | [**get_comment_children**](docs/ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | -*ModerationApi* | [**get_count**](docs/ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/count | -*ModerationApi* | [**get_counts**](docs/ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | -*ModerationApi* | [**get_logs**](docs/ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | -*ModerationApi* | [**get_manual_badges**](docs/ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | -*ModerationApi* | [**get_manual_badges_for_user**](docs/ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | -*ModerationApi* | [**get_moderation_comment**](docs/ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | -*ModerationApi* | [**get_moderation_comment_text**](docs/ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -*ModerationApi* | [**get_pre_ban_summary**](docs/ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -*ModerationApi* | [**get_search_comments_summary**](docs/ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | -*ModerationApi* | [**get_search_pages**](docs/ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/search/pages | -*ModerationApi* | [**get_search_sites**](docs/ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/search/sites | -*ModerationApi* | [**get_search_suggest**](docs/ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/search/suggest | -*ModerationApi* | [**get_search_users**](docs/ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/search/users | -*ModerationApi* | [**get_trust_factor**](docs/ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | -*ModerationApi* | [**get_user_ban_preference**](docs/ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | -*ModerationApi* | [**get_user_internal_profile**](docs/ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | -*ModerationApi* | [**post_adjust_comment_votes**](docs/ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -*ModerationApi* | [**post_api_export**](docs/ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/api/export | -*ModerationApi* | [**post_ban_user_from_comment**](docs/ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -*ModerationApi* | [**post_ban_user_undo**](docs/ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | -*ModerationApi* | [**post_bulk_pre_ban_summary**](docs/ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -*ModerationApi* | [**post_comments_by_ids**](docs/ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | -*ModerationApi* | [**post_flag_comment**](docs/ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | -*ModerationApi* | [**post_remove_comment**](docs/ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | -*ModerationApi* | [**post_restore_deleted_comment**](docs/ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -*ModerationApi* | [**post_set_comment_approval_status**](docs/ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -*ModerationApi* | [**post_set_comment_review_status**](docs/ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -*ModerationApi* | [**post_set_comment_spam_status**](docs/ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -*ModerationApi* | [**post_set_comment_text**](docs/ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -*ModerationApi* | [**post_un_flag_comment**](docs/ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -*ModerationApi* | [**post_vote**](docs/ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | -*ModerationApi* | [**put_award_badge**](docs/ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/award-badge | -*ModerationApi* | [**put_close_thread**](docs/ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/close-thread | -*ModerationApi* | [**put_remove_badge**](docs/ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/remove-badge | -*ModerationApi* | [**put_reopen_thread**](docs/ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | -*ModerationApi* | [**set_trust_factor**](docs/ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | +*ModerationApi* | [**delete_moderation_vote**](docs/ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +*ModerationApi* | [**get_api_comments**](docs/ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +*ModerationApi* | [**get_api_export_status**](docs/ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +*ModerationApi* | [**get_api_ids**](docs/ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +*ModerationApi* | [**get_ban_users_from_comment**](docs/ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +*ModerationApi* | [**get_comment_ban_status**](docs/ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +*ModerationApi* | [**get_comment_children**](docs/ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +*ModerationApi* | [**get_count**](docs/ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/mod_api/count | +*ModerationApi* | [**get_counts**](docs/ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +*ModerationApi* | [**get_logs**](docs/ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +*ModerationApi* | [**get_manual_badges**](docs/ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +*ModerationApi* | [**get_manual_badges_for_user**](docs/ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +*ModerationApi* | [**get_moderation_comment**](docs/ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +*ModerationApi* | [**get_moderation_comment_text**](docs/ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +*ModerationApi* | [**get_pre_ban_summary**](docs/ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +*ModerationApi* | [**get_search_comments_summary**](docs/ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +*ModerationApi* | [**get_search_pages**](docs/ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +*ModerationApi* | [**get_search_sites**](docs/ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +*ModerationApi* | [**get_search_suggest**](docs/ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +*ModerationApi* | [**get_search_users**](docs/ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +*ModerationApi* | [**get_trust_factor**](docs/ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +*ModerationApi* | [**get_user_ban_preference**](docs/ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +*ModerationApi* | [**get_user_internal_profile**](docs/ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +*ModerationApi* | [**post_adjust_comment_votes**](docs/ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +*ModerationApi* | [**post_api_export**](docs/ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +*ModerationApi* | [**post_ban_user_from_comment**](docs/ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +*ModerationApi* | [**post_ban_user_undo**](docs/ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +*ModerationApi* | [**post_bulk_pre_ban_summary**](docs/ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +*ModerationApi* | [**post_comments_by_ids**](docs/ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +*ModerationApi* | [**post_flag_comment**](docs/ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +*ModerationApi* | [**post_remove_comment**](docs/ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +*ModerationApi* | [**post_restore_deleted_comment**](docs/ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +*ModerationApi* | [**post_set_comment_approval_status**](docs/ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +*ModerationApi* | [**post_set_comment_review_status**](docs/ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +*ModerationApi* | [**post_set_comment_spam_status**](docs/ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +*ModerationApi* | [**post_set_comment_text**](docs/ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +*ModerationApi* | [**post_un_flag_comment**](docs/ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +*ModerationApi* | [**post_vote**](docs/ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +*ModerationApi* | [**put_award_badge**](docs/ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +*ModerationApi* | [**put_close_thread**](docs/ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +*ModerationApi* | [**put_remove_badge**](docs/ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +*ModerationApi* | [**put_reopen_thread**](docs/ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +*ModerationApi* | [**set_trust_factor**](docs/ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | *PublicApi* | [**block_from_comment_public**](docs/PublicApi.md#block_from_comment_public) | **POST** /block-from-comment/{commentId} | *PublicApi* | [**checked_comments_for_blocked**](docs/PublicApi.md#checked_comments_for_blocked) | **GET** /check-blocked-comments | *PublicApi* | [**create_comment_public**](docs/PublicApi.md#create_comment_public) | **POST** /comments/{tenantId} | @@ -498,7 +498,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/docs/DefaultApi.md b/client/docs/DefaultApi.md index 91abd85..09209c3 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -160,7 +160,7 @@ Name | Type | Description | Required | Notes Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**tenant_id** | Option<**String**> | | | +**tenant_id** | **String** | | [required] | **create_hash_tag_body** | Option<[**CreateHashTagBody**](CreateHashTagBody.md)> | | | ### Return type @@ -189,7 +189,7 @@ Name | Type | Description | Required | Notes Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**tenant_id** | Option<**String**> | | | +**tenant_id** | **String** | | [required] | **bulk_create_hash_tags_body** | Option<[**BulkCreateHashTagsBody**](BulkCreateHashTagsBody.md)> | | | ### Return type @@ -939,7 +939,7 @@ Name | Type | Description | Required | Notes ## delete_hash_tag -> models::ApiEmptyResponse delete_hash_tag(tag, tenant_id, delete_hash_tag_request_body) +> models::ApiEmptyResponse delete_hash_tag(tenant_id, tag, delete_hash_tag_request_body) ### Parameters @@ -947,8 +947,8 @@ Name | Type | Description | Required | Notes Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **tag** | **String** | | [required] | -**tenant_id** | Option<**String**> | | | **delete_hash_tag_request_body** | Option<[**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md)> | | | ### Return type @@ -2783,7 +2783,7 @@ Name | Type | Description | Required | Notes ## patch_hash_tag -> models::UpdateHashTagResponse patch_hash_tag(tag, tenant_id, update_hash_tag_body) +> models::UpdateHashTagResponse patch_hash_tag(tenant_id, tag, update_hash_tag_body) ### Parameters @@ -2791,8 +2791,8 @@ Name | Type | Description | Required | Notes Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **tag** | **String** | | [required] | -**tenant_id** | Option<**String**> | | | **update_hash_tag_body** | Option<[**UpdateHashTagBody**](UpdateHashTagBody.md)> | | | ### Return type diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md index a7bd1ac..aadf700 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 ------------- | ------------- | ------------- -[**delete_moderation_vote**](ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -[**get_api_comments**](ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/api/comments | -[**get_api_export_status**](ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/api/export/status | -[**get_api_ids**](ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/api/ids | -[**get_ban_users_from_comment**](ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -[**get_comment_ban_status**](ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -[**get_comment_children**](ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | -[**get_count**](ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/count | -[**get_counts**](ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | -[**get_logs**](ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | -[**get_manual_badges**](ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | -[**get_manual_badges_for_user**](ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | -[**get_moderation_comment**](ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | -[**get_moderation_comment_text**](ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -[**get_pre_ban_summary**](ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -[**get_search_comments_summary**](ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | -[**get_search_pages**](ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/search/pages | -[**get_search_sites**](ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/search/sites | -[**get_search_suggest**](ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/search/suggest | -[**get_search_users**](ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/search/users | -[**get_trust_factor**](ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | -[**get_user_ban_preference**](ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | -[**get_user_internal_profile**](ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | -[**post_adjust_comment_votes**](ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -[**post_api_export**](ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/api/export | -[**post_ban_user_from_comment**](ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -[**post_ban_user_undo**](ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | -[**post_bulk_pre_ban_summary**](ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -[**post_comments_by_ids**](ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | -[**post_flag_comment**](ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | -[**post_remove_comment**](ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | -[**post_restore_deleted_comment**](ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -[**post_set_comment_approval_status**](ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -[**post_set_comment_review_status**](ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -[**post_set_comment_spam_status**](ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -[**post_set_comment_text**](ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -[**post_un_flag_comment**](ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -[**post_vote**](ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | -[**put_award_badge**](ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/award-badge | -[**put_close_thread**](ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/close-thread | -[**put_remove_badge**](ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/remove-badge | -[**put_reopen_thread**](ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | -[**set_trust_factor**](ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | +[**delete_moderation_vote**](ModerationApi.md#delete_moderation_vote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +[**get_api_comments**](ModerationApi.md#get_api_comments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +[**get_api_export_status**](ModerationApi.md#get_api_export_status) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +[**get_api_ids**](ModerationApi.md#get_api_ids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +[**get_ban_users_from_comment**](ModerationApi.md#get_ban_users_from_comment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +[**get_comment_ban_status**](ModerationApi.md#get_comment_ban_status) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +[**get_comment_children**](ModerationApi.md#get_comment_children) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +[**get_count**](ModerationApi.md#get_count) | **GET** /auth/my-account/moderate-comments/mod_api/count | +[**get_counts**](ModerationApi.md#get_counts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +[**get_logs**](ModerationApi.md#get_logs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +[**get_manual_badges**](ModerationApi.md#get_manual_badges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +[**get_manual_badges_for_user**](ModerationApi.md#get_manual_badges_for_user) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +[**get_moderation_comment**](ModerationApi.md#get_moderation_comment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +[**get_moderation_comment_text**](ModerationApi.md#get_moderation_comment_text) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +[**get_pre_ban_summary**](ModerationApi.md#get_pre_ban_summary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +[**get_search_comments_summary**](ModerationApi.md#get_search_comments_summary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +[**get_search_pages**](ModerationApi.md#get_search_pages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +[**get_search_sites**](ModerationApi.md#get_search_sites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +[**get_search_suggest**](ModerationApi.md#get_search_suggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +[**get_search_users**](ModerationApi.md#get_search_users) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +[**get_trust_factor**](ModerationApi.md#get_trust_factor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +[**get_user_ban_preference**](ModerationApi.md#get_user_ban_preference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +[**get_user_internal_profile**](ModerationApi.md#get_user_internal_profile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +[**post_adjust_comment_votes**](ModerationApi.md#post_adjust_comment_votes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +[**post_api_export**](ModerationApi.md#post_api_export) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +[**post_ban_user_from_comment**](ModerationApi.md#post_ban_user_from_comment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +[**post_ban_user_undo**](ModerationApi.md#post_ban_user_undo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +[**post_bulk_pre_ban_summary**](ModerationApi.md#post_bulk_pre_ban_summary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +[**post_comments_by_ids**](ModerationApi.md#post_comments_by_ids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +[**post_flag_comment**](ModerationApi.md#post_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +[**post_remove_comment**](ModerationApi.md#post_remove_comment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +[**post_restore_deleted_comment**](ModerationApi.md#post_restore_deleted_comment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +[**post_set_comment_approval_status**](ModerationApi.md#post_set_comment_approval_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +[**post_set_comment_review_status**](ModerationApi.md#post_set_comment_review_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +[**post_set_comment_spam_status**](ModerationApi.md#post_set_comment_spam_status) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +[**post_set_comment_text**](ModerationApi.md#post_set_comment_text) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +[**post_un_flag_comment**](ModerationApi.md#post_un_flag_comment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +[**post_vote**](ModerationApi.md#post_vote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +[**put_award_badge**](ModerationApi.md#put_award_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +[**put_close_thread**](ModerationApi.md#put_close_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +[**put_remove_badge**](ModerationApi.md#put_remove_badge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +[**put_reopen_thread**](ModerationApi.md#put_reopen_thread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +[**set_trust_factor**](ModerationApi.md#set_trust_factor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | ## delete_moderation_vote -> models::VoteDeleteResponse delete_moderation_vote(comment_id, vote_id, sso) +> models::VoteDeleteResponse delete_moderation_vote(tenant_id, comment_id, vote_id, broadcast_id, sso) ### Parameters @@ -60,8 +60,10 @@ Method | HTTP request | Description Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **vote_id** | **String** | | [required] | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -82,7 +84,7 @@ No authorization required ## get_api_comments -> models::ModerationApiGetCommentsResponse get_api_comments(page, count, text_search, by_ip_from_comment, filters, search_filters, sorts, demo, sso) +> models::ModerationApiGetCommentsResponse get_api_comments(tenant_id, page, count, text_search, by_ip_from_comment, filters, search_filters, sorts, demo, sso) ### Parameters @@ -90,6 +92,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **page** | Option<**f64**> | | | **count** | Option<**f64**> | | | **text_search** | Option<**String**> | | | @@ -118,7 +121,7 @@ No authorization required ## get_api_export_status -> models::ModerationExportStatusResponse get_api_export_status(batch_job_id, sso) +> models::ModerationExportStatusResponse get_api_export_status(tenant_id, batch_job_id, sso) ### Parameters @@ -126,6 +129,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **batch_job_id** | Option<**String**> | | | **sso** | Option<**String**> | | | @@ -147,7 +151,7 @@ No authorization required ## get_api_ids -> models::ModerationApiGetCommentIdsResponse get_api_ids(text_search, by_ip_from_comment, filters, search_filters, after_id, demo, sso) +> models::ModerationApiGetCommentIdsResponse get_api_ids(tenant_id, text_search, by_ip_from_comment, filters, search_filters, after_id, demo, sso) ### Parameters @@ -155,6 +159,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **text_search** | Option<**String**> | | | **by_ip_from_comment** | Option<**String**> | | | **filters** | Option<**String**> | | | @@ -181,7 +186,7 @@ No authorization required ## get_ban_users_from_comment -> models::GetBannedUsersFromCommentResponse get_ban_users_from_comment(comment_id, sso) +> models::GetBannedUsersFromCommentResponse get_ban_users_from_comment(tenant_id, comment_id, sso) ### Parameters @@ -189,6 +194,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **sso** | Option<**String**> | | | @@ -210,7 +216,7 @@ No authorization required ## get_comment_ban_status -> models::GetCommentBanStatusResponse get_comment_ban_status(comment_id, sso) +> models::GetCommentBanStatusResponse get_comment_ban_status(tenant_id, comment_id, sso) ### Parameters @@ -218,6 +224,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **sso** | Option<**String**> | | | @@ -239,7 +246,7 @@ No authorization required ## get_comment_children -> models::ModerationApiChildCommentsResponse get_comment_children(comment_id, sso) +> models::ModerationApiChildCommentsResponse get_comment_children(tenant_id, comment_id, sso) ### Parameters @@ -247,6 +254,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **sso** | Option<**String**> | | | @@ -268,7 +276,7 @@ No authorization required ## get_count -> models::ModerationApiCountCommentsResponse get_count(text_search, by_ip_from_comment, filter, search_filters, demo, sso) +> models::ModerationApiCountCommentsResponse get_count(tenant_id, text_search, by_ip_from_comment, filter, search_filters, demo, sso) ### Parameters @@ -276,6 +284,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **text_search** | Option<**String**> | | | **by_ip_from_comment** | Option<**String**> | | | **filter** | Option<**String**> | | | @@ -301,7 +310,7 @@ No authorization required ## get_counts -> models::GetBannedUsersCountResponse get_counts(sso) +> models::GetBannedUsersCountResponse get_counts(tenant_id, sso) ### Parameters @@ -309,6 +318,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **sso** | Option<**String**> | | | ### Return type @@ -329,7 +339,7 @@ No authorization required ## get_logs -> models::ModerationApiGetLogsResponse get_logs(comment_id, sso) +> models::ModerationApiGetLogsResponse get_logs(tenant_id, comment_id, sso) ### Parameters @@ -337,6 +347,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **sso** | Option<**String**> | | | @@ -358,7 +369,7 @@ No authorization required ## get_manual_badges -> models::GetTenantManualBadgesResponse get_manual_badges(sso) +> models::GetTenantManualBadgesResponse get_manual_badges(tenant_id, sso) ### Parameters @@ -366,6 +377,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **sso** | Option<**String**> | | | ### Return type @@ -386,7 +398,7 @@ No authorization required ## get_manual_badges_for_user -> models::GetUserManualBadgesResponse get_manual_badges_for_user(badges_user_id, comment_id, sso) +> models::GetUserManualBadgesResponse get_manual_badges_for_user(tenant_id, badges_user_id, comment_id, sso) ### Parameters @@ -394,6 +406,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **badges_user_id** | Option<**String**> | | | **comment_id** | Option<**String**> | | | **sso** | Option<**String**> | | | @@ -416,7 +429,7 @@ No authorization required ## get_moderation_comment -> models::ModerationApiCommentResponse get_moderation_comment(comment_id, include_email, include_ip, sso) +> models::ModerationApiCommentResponse get_moderation_comment(tenant_id, comment_id, include_email, include_ip, sso) ### Parameters @@ -424,6 +437,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **include_email** | Option<**bool**> | | | **include_ip** | Option<**bool**> | | | @@ -447,7 +461,7 @@ No authorization required ## get_moderation_comment_text -> models::GetCommentTextResponse get_moderation_comment_text(comment_id, sso) +> models::GetCommentTextResponse get_moderation_comment_text(tenant_id, comment_id, sso) ### Parameters @@ -455,6 +469,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **sso** | Option<**String**> | | | @@ -476,7 +491,7 @@ No authorization required ## get_pre_ban_summary -> models::PreBanSummary get_pre_ban_summary(comment_id, include_by_user_id_and_email, include_by_ip, include_by_email_domain, sso) +> models::PreBanSummary get_pre_ban_summary(tenant_id, comment_id, include_by_user_id_and_email, include_by_ip, include_by_email_domain, sso) ### Parameters @@ -484,6 +499,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **include_by_user_id_and_email** | Option<**bool**> | | | **include_by_ip** | Option<**bool**> | | | @@ -508,7 +524,7 @@ No authorization required ## get_search_comments_summary -> models::ModerationCommentSearchResponse get_search_comments_summary(value, filters, search_filters, sso) +> models::ModerationCommentSearchResponse get_search_comments_summary(tenant_id, value, filters, search_filters, sso) ### Parameters @@ -516,6 +532,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **value** | Option<**String**> | | | **filters** | Option<**String**> | | | **search_filters** | Option<**String**> | | | @@ -539,7 +556,7 @@ No authorization required ## get_search_pages -> models::ModerationPageSearchResponse get_search_pages(value, sso) +> models::ModerationPageSearchResponse get_search_pages(tenant_id, value, sso) ### Parameters @@ -547,6 +564,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **value** | Option<**String**> | | | **sso** | Option<**String**> | | | @@ -568,7 +586,7 @@ No authorization required ## get_search_sites -> models::ModerationSiteSearchResponse get_search_sites(value, sso) +> models::ModerationSiteSearchResponse get_search_sites(tenant_id, value, sso) ### Parameters @@ -576,6 +594,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **value** | Option<**String**> | | | **sso** | Option<**String**> | | | @@ -597,7 +616,7 @@ No authorization required ## get_search_suggest -> models::ModerationSuggestResponse get_search_suggest(text_search, sso) +> models::ModerationSuggestResponse get_search_suggest(tenant_id, text_search, sso) ### Parameters @@ -605,6 +624,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **text_search** | Option<**String**> | | | **sso** | Option<**String**> | | | @@ -626,7 +646,7 @@ No authorization required ## get_search_users -> models::ModerationUserSearchResponse get_search_users(value, sso) +> models::ModerationUserSearchResponse get_search_users(tenant_id, value, sso) ### Parameters @@ -634,6 +654,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **value** | Option<**String**> | | | **sso** | Option<**String**> | | | @@ -655,7 +676,7 @@ No authorization required ## get_trust_factor -> models::GetUserTrustFactorResponse get_trust_factor(user_id, sso) +> models::GetUserTrustFactorResponse get_trust_factor(tenant_id, user_id, sso) ### Parameters @@ -663,6 +684,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **user_id** | Option<**String**> | | | **sso** | Option<**String**> | | | @@ -684,7 +706,7 @@ No authorization required ## get_user_ban_preference -> models::ApiModerateGetUserBanPreferencesResponse get_user_ban_preference(sso) +> models::ApiModerateGetUserBanPreferencesResponse get_user_ban_preference(tenant_id, sso) ### Parameters @@ -692,6 +714,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **sso** | Option<**String**> | | | ### Return type @@ -712,7 +735,7 @@ No authorization required ## get_user_internal_profile -> models::GetUserInternalProfileResponse get_user_internal_profile(comment_id, sso) +> models::GetUserInternalProfileResponse get_user_internal_profile(tenant_id, comment_id, sso) ### Parameters @@ -720,6 +743,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | Option<**String**> | | | **sso** | Option<**String**> | | | @@ -741,7 +765,7 @@ No authorization required ## post_adjust_comment_votes -> models::AdjustVotesResponse post_adjust_comment_votes(comment_id, adjust_comment_votes_params, sso) +> models::AdjustVotesResponse post_adjust_comment_votes(tenant_id, comment_id, adjust_comment_votes_params, broadcast_id, sso) ### Parameters @@ -749,8 +773,10 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **adjust_comment_votes_params** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | [required] | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -771,7 +797,7 @@ No authorization required ## post_api_export -> models::ModerationExportResponse post_api_export(text_search, by_ip_from_comment, filters, search_filters, sorts, sso) +> models::ModerationExportResponse post_api_export(tenant_id, text_search, by_ip_from_comment, filters, search_filters, sorts, sso) ### Parameters @@ -779,6 +805,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **text_search** | Option<**String**> | | | **by_ip_from_comment** | Option<**String**> | | | **filters** | Option<**String**> | | | @@ -804,7 +831,7 @@ No authorization required ## post_ban_user_from_comment -> models::BanUserFromCommentResult post_ban_user_from_comment(comment_id, ban_email, ban_email_domain, ban_ip, delete_all_users_comments, banned_until, is_shadow_ban, update_id, ban_reason, sso) +> models::BanUserFromCommentResult post_ban_user_from_comment(tenant_id, comment_id, ban_email, ban_email_domain, ban_ip, delete_all_users_comments, banned_until, is_shadow_ban, update_id, ban_reason, sso) ### Parameters @@ -812,6 +839,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **ban_email** | Option<**bool**> | | | **ban_email_domain** | Option<**bool**> | | | @@ -841,7 +869,7 @@ No authorization required ## post_ban_user_undo -> models::ApiEmptyResponse post_ban_user_undo(ban_user_undo_params, sso) +> models::ApiEmptyResponse post_ban_user_undo(tenant_id, ban_user_undo_params, sso) ### Parameters @@ -849,6 +877,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **ban_user_undo_params** | [**BanUserUndoParams**](BanUserUndoParams.md) | | [required] | **sso** | Option<**String**> | | | @@ -870,7 +899,7 @@ No authorization required ## post_bulk_pre_ban_summary -> models::BulkPreBanSummary post_bulk_pre_ban_summary(bulk_pre_ban_params, include_by_user_id_and_email, include_by_ip, include_by_email_domain, sso) +> models::BulkPreBanSummary post_bulk_pre_ban_summary(tenant_id, bulk_pre_ban_params, include_by_user_id_and_email, include_by_ip, include_by_email_domain, sso) ### Parameters @@ -878,6 +907,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **bulk_pre_ban_params** | [**BulkPreBanParams**](BulkPreBanParams.md) | | [required] | **include_by_user_id_and_email** | Option<**bool**> | | | **include_by_ip** | Option<**bool**> | | | @@ -902,7 +932,7 @@ No authorization required ## post_comments_by_ids -> models::ModerationApiChildCommentsResponse post_comments_by_ids(comments_by_ids_params, sso) +> models::ModerationApiChildCommentsResponse post_comments_by_ids(tenant_id, comments_by_ids_params, sso) ### Parameters @@ -910,6 +940,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comments_by_ids_params** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | [required] | **sso** | Option<**String**> | | | @@ -931,7 +962,7 @@ No authorization required ## post_flag_comment -> models::ApiEmptyResponse post_flag_comment(comment_id, sso) +> models::ApiEmptyResponse post_flag_comment(tenant_id, comment_id, broadcast_id, sso) ### Parameters @@ -939,7 +970,9 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -960,7 +993,7 @@ No authorization required ## post_remove_comment -> models::PostRemoveCommentResponse post_remove_comment(comment_id, sso) +> models::PostRemoveCommentApiResponse post_remove_comment(tenant_id, comment_id, broadcast_id, sso) ### Parameters @@ -968,12 +1001,14 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type -[**models::PostRemoveCommentResponse**](PostRemoveCommentResponse.md) +[**models::PostRemoveCommentApiResponse**](PostRemoveCommentApiResponse.md) ### Authorization @@ -989,7 +1024,7 @@ No authorization required ## post_restore_deleted_comment -> models::ApiEmptyResponse post_restore_deleted_comment(comment_id, sso) +> models::ApiEmptyResponse post_restore_deleted_comment(tenant_id, comment_id, broadcast_id, sso) ### Parameters @@ -997,7 +1032,9 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -1018,7 +1055,7 @@ No authorization required ## post_set_comment_approval_status -> models::SetCommentApprovedResponse post_set_comment_approval_status(comment_id, approved, sso) +> models::SetCommentApprovedResponse post_set_comment_approval_status(tenant_id, comment_id, approved, broadcast_id, sso) ### Parameters @@ -1026,8 +1063,10 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **approved** | Option<**bool**> | | | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -1048,7 +1087,7 @@ No authorization required ## post_set_comment_review_status -> models::ApiEmptyResponse post_set_comment_review_status(comment_id, reviewed, sso) +> models::ApiEmptyResponse post_set_comment_review_status(tenant_id, comment_id, reviewed, broadcast_id, sso) ### Parameters @@ -1056,8 +1095,10 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **reviewed** | Option<**bool**> | | | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -1078,7 +1119,7 @@ No authorization required ## post_set_comment_spam_status -> models::ApiEmptyResponse post_set_comment_spam_status(comment_id, spam, perm_not_spam, sso) +> models::ApiEmptyResponse post_set_comment_spam_status(tenant_id, comment_id, spam, perm_not_spam, broadcast_id, sso) ### Parameters @@ -1086,9 +1127,11 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **spam** | Option<**bool**> | | | **perm_not_spam** | Option<**bool**> | | | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -1109,7 +1152,7 @@ No authorization required ## post_set_comment_text -> models::SetCommentTextResponse post_set_comment_text(comment_id, set_comment_text_params, sso) +> models::SetCommentTextResponse post_set_comment_text(tenant_id, comment_id, set_comment_text_params, broadcast_id, sso) ### Parameters @@ -1117,8 +1160,10 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **set_comment_text_params** | [**SetCommentTextParams**](SetCommentTextParams.md) | | [required] | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -1139,7 +1184,7 @@ No authorization required ## post_un_flag_comment -> models::ApiEmptyResponse post_un_flag_comment(comment_id, sso) +> models::ApiEmptyResponse post_un_flag_comment(tenant_id, comment_id, broadcast_id, sso) ### Parameters @@ -1147,7 +1192,9 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -1168,7 +1215,7 @@ No authorization required ## post_vote -> models::VoteResponse post_vote(comment_id, direction, sso) +> models::VoteResponse post_vote(tenant_id, comment_id, direction, broadcast_id, sso) ### Parameters @@ -1176,8 +1223,10 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **comment_id** | **String** | | [required] | **direction** | Option<**String**> | | | +**broadcast_id** | Option<**String**> | | | **sso** | Option<**String**> | | | ### Return type @@ -1198,7 +1247,7 @@ No authorization required ## put_award_badge -> models::AwardUserBadgeResponse put_award_badge(badge_id, user_id, comment_id, broadcast_id, sso) +> models::AwardUserBadgeResponse put_award_badge(tenant_id, badge_id, user_id, comment_id, broadcast_id, sso) ### Parameters @@ -1206,6 +1255,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **badge_id** | **String** | | [required] | **user_id** | Option<**String**> | | | **comment_id** | Option<**String**> | | | @@ -1230,7 +1280,7 @@ No authorization required ## put_close_thread -> models::ApiEmptyResponse put_close_thread(url_id, sso) +> models::ApiEmptyResponse put_close_thread(tenant_id, url_id, sso) ### Parameters @@ -1238,6 +1288,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **url_id** | **String** | | [required] | **sso** | Option<**String**> | | | @@ -1259,7 +1310,7 @@ No authorization required ## put_remove_badge -> models::RemoveUserBadgeResponse put_remove_badge(badge_id, user_id, comment_id, broadcast_id, sso) +> models::RemoveUserBadgeResponse put_remove_badge(tenant_id, badge_id, user_id, comment_id, broadcast_id, sso) ### Parameters @@ -1267,6 +1318,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **badge_id** | **String** | | [required] | **user_id** | Option<**String**> | | | **comment_id** | Option<**String**> | | | @@ -1291,7 +1343,7 @@ No authorization required ## put_reopen_thread -> models::ApiEmptyResponse put_reopen_thread(url_id, sso) +> models::ApiEmptyResponse put_reopen_thread(tenant_id, url_id, sso) ### Parameters @@ -1299,6 +1351,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **url_id** | **String** | | [required] | **sso** | Option<**String**> | | | @@ -1320,7 +1373,7 @@ No authorization required ## set_trust_factor -> models::SetUserTrustFactorResponse set_trust_factor(user_id, trust_factor, sso) +> models::SetUserTrustFactorResponse set_trust_factor(tenant_id, user_id, trust_factor, sso) ### Parameters @@ -1328,6 +1381,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | **user_id** | Option<**String**> | | | **trust_factor** | Option<**String**> | | | **sso** | Option<**String**> | | | diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentApiResponse.md similarity index 91% rename from client/docs/PostRemoveCommentResponse.md rename to client/docs/PostRemoveCommentApiResponse.md index c4f773e..5942330 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentApiResponse.md @@ -1,4 +1,4 @@ -# PostRemoveCommentResponse +# PostRemoveCommentApiResponse ## Properties diff --git a/client/src/apis/default_api.rs b/client/src/apis/default_api.rs index e08f752..083f9fc 100644 --- a/client/src/apis/default_api.rs +++ b/client/src/apis/default_api.rs @@ -24,14 +24,14 @@ pub struct AddDomainConfigParams { /// struct for passing parameters to the method [`add_hash_tag`] #[derive(Clone, Debug)] pub struct AddHashTagParams { - pub tenant_id: Option, + pub tenant_id: String, pub create_hash_tag_body: Option } /// struct for passing parameters to the method [`add_hash_tags_bulk`] #[derive(Clone, Debug)] pub struct AddHashTagsBulkParams { - pub tenant_id: Option, + pub tenant_id: String, pub bulk_create_hash_tags_body: Option } @@ -237,8 +237,8 @@ pub struct DeleteEmailTemplateRenderErrorParams { /// struct for passing parameters to the method [`delete_hash_tag`] #[derive(Clone, Debug)] pub struct DeleteHashTagParams { + pub tenant_id: String, pub tag: String, - pub tenant_id: Option, pub delete_hash_tag_request_body: Option } @@ -737,8 +737,8 @@ pub struct PatchDomainConfigParams { /// struct for passing parameters to the method [`patch_hash_tag`] #[derive(Clone, Debug)] pub struct PatchHashTagParams { + pub tenant_id: String, pub tag: String, - pub tenant_id: Option, pub update_hash_tag_body: Option } @@ -1899,9 +1899,7 @@ pub async fn add_hash_tag(configuration: &configuration::Configuration, params: let uri_str = format!("{}/api/v1/hash-tags", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); - if let Some(ref param_value) = params.tenant_id { - req_builder = req_builder.query(&[("tenantId", ¶m_value.to_string())]); - } + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } @@ -1945,9 +1943,7 @@ pub async fn add_hash_tags_bulk(configuration: &configuration::Configuration, pa let uri_str = format!("{}/api/v1/hash-tags/bulk", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); - if let Some(ref param_value) = params.tenant_id { - req_builder = req_builder.query(&[("tenantId", ¶m_value.to_string())]); - } + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } @@ -3132,9 +3128,7 @@ pub async fn delete_hash_tag(configuration: &configuration::Configuration, param let uri_str = format!("{}/api/v1/hash-tags/{tag}", configuration.base_path, tag=crate::client::apis::urlencode(params.tag)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); - if let Some(ref param_value) = params.tenant_id { - req_builder = req_builder.query(&[("tenantId", ¶m_value.to_string())]); - } + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } @@ -6051,9 +6045,7 @@ pub async fn patch_hash_tag(configuration: &configuration::Configuration, params let uri_str = format!("{}/api/v1/hash-tags/{tag}", configuration.base_path, tag=crate::client::apis::urlencode(params.tag)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); - if let Some(ref param_value) = params.tenant_id { - req_builder = req_builder.query(&[("tenantId", ¶m_value.to_string())]); - } + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } diff --git a/client/src/apis/moderation_api.rs b/client/src/apis/moderation_api.rs index fb06f8f..e45e91a 100644 --- a/client/src/apis/moderation_api.rs +++ b/client/src/apis/moderation_api.rs @@ -17,14 +17,17 @@ use super::{Error, configuration, ContentType}; /// struct for passing parameters to the method [`delete_moderation_vote`] #[derive(Clone, Debug)] pub struct DeleteModerationVoteParams { + pub tenant_id: String, pub comment_id: String, pub vote_id: String, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`get_api_comments`] #[derive(Clone, Debug)] pub struct GetApiCommentsParams { + pub tenant_id: String, pub page: Option, pub count: Option, pub text_search: Option, @@ -39,6 +42,7 @@ pub struct GetApiCommentsParams { /// struct for passing parameters to the method [`get_api_export_status`] #[derive(Clone, Debug)] pub struct GetApiExportStatusParams { + pub tenant_id: String, pub batch_job_id: Option, pub sso: Option } @@ -46,6 +50,7 @@ pub struct GetApiExportStatusParams { /// struct for passing parameters to the method [`get_api_ids`] #[derive(Clone, Debug)] pub struct GetApiIdsParams { + pub tenant_id: String, pub text_search: Option, pub by_ip_from_comment: Option, pub filters: Option, @@ -58,6 +63,7 @@ pub struct GetApiIdsParams { /// struct for passing parameters to the method [`get_ban_users_from_comment`] #[derive(Clone, Debug)] pub struct GetBanUsersFromCommentParams { + pub tenant_id: String, pub comment_id: String, pub sso: Option } @@ -65,6 +71,7 @@ pub struct GetBanUsersFromCommentParams { /// struct for passing parameters to the method [`get_comment_ban_status`] #[derive(Clone, Debug)] pub struct GetCommentBanStatusParams { + pub tenant_id: String, pub comment_id: String, pub sso: Option } @@ -72,6 +79,7 @@ pub struct GetCommentBanStatusParams { /// struct for passing parameters to the method [`get_comment_children`] #[derive(Clone, Debug)] pub struct GetCommentChildrenParams { + pub tenant_id: String, pub comment_id: String, pub sso: Option } @@ -79,6 +87,7 @@ pub struct GetCommentChildrenParams { /// struct for passing parameters to the method [`get_count`] #[derive(Clone, Debug)] pub struct GetCountParams { + pub tenant_id: String, pub text_search: Option, pub by_ip_from_comment: Option, pub filter: Option, @@ -90,12 +99,14 @@ pub struct GetCountParams { /// struct for passing parameters to the method [`get_counts`] #[derive(Clone, Debug)] pub struct GetCountsParams { + pub tenant_id: String, pub sso: Option } /// struct for passing parameters to the method [`get_logs`] #[derive(Clone, Debug)] pub struct GetLogsParams { + pub tenant_id: String, pub comment_id: String, pub sso: Option } @@ -103,12 +114,14 @@ pub struct GetLogsParams { /// struct for passing parameters to the method [`get_manual_badges`] #[derive(Clone, Debug)] pub struct GetManualBadgesParams { + pub tenant_id: String, pub sso: Option } /// struct for passing parameters to the method [`get_manual_badges_for_user`] #[derive(Clone, Debug)] pub struct GetManualBadgesForUserParams { + pub tenant_id: String, pub badges_user_id: Option, pub comment_id: Option, pub sso: Option @@ -117,6 +130,7 @@ pub struct GetManualBadgesForUserParams { /// struct for passing parameters to the method [`get_moderation_comment`] #[derive(Clone, Debug)] pub struct GetModerationCommentParams { + pub tenant_id: String, pub comment_id: String, pub include_email: Option, pub include_ip: Option, @@ -126,6 +140,7 @@ pub struct GetModerationCommentParams { /// struct for passing parameters to the method [`get_moderation_comment_text`] #[derive(Clone, Debug)] pub struct GetModerationCommentTextParams { + pub tenant_id: String, pub comment_id: String, pub sso: Option } @@ -133,6 +148,7 @@ pub struct GetModerationCommentTextParams { /// struct for passing parameters to the method [`get_pre_ban_summary`] #[derive(Clone, Debug)] pub struct GetPreBanSummaryParams { + pub tenant_id: String, pub comment_id: String, pub include_by_user_id_and_email: Option, pub include_by_ip: Option, @@ -143,6 +159,7 @@ pub struct GetPreBanSummaryParams { /// struct for passing parameters to the method [`get_search_comments_summary`] #[derive(Clone, Debug)] pub struct GetSearchCommentsSummaryParams { + pub tenant_id: String, pub value: Option, pub filters: Option, pub search_filters: Option, @@ -152,6 +169,7 @@ pub struct GetSearchCommentsSummaryParams { /// struct for passing parameters to the method [`get_search_pages`] #[derive(Clone, Debug)] pub struct GetSearchPagesParams { + pub tenant_id: String, pub value: Option, pub sso: Option } @@ -159,6 +177,7 @@ pub struct GetSearchPagesParams { /// struct for passing parameters to the method [`get_search_sites`] #[derive(Clone, Debug)] pub struct GetSearchSitesParams { + pub tenant_id: String, pub value: Option, pub sso: Option } @@ -166,6 +185,7 @@ pub struct GetSearchSitesParams { /// struct for passing parameters to the method [`get_search_suggest`] #[derive(Clone, Debug)] pub struct GetSearchSuggestParams { + pub tenant_id: String, pub text_search: Option, pub sso: Option } @@ -173,6 +193,7 @@ pub struct GetSearchSuggestParams { /// struct for passing parameters to the method [`get_search_users`] #[derive(Clone, Debug)] pub struct GetSearchUsersParams { + pub tenant_id: String, pub value: Option, pub sso: Option } @@ -180,6 +201,7 @@ pub struct GetSearchUsersParams { /// struct for passing parameters to the method [`get_trust_factor`] #[derive(Clone, Debug)] pub struct GetTrustFactorParams { + pub tenant_id: String, pub user_id: Option, pub sso: Option } @@ -187,12 +209,14 @@ pub struct GetTrustFactorParams { /// struct for passing parameters to the method [`get_user_ban_preference`] #[derive(Clone, Debug)] pub struct GetUserBanPreferenceParams { + pub tenant_id: String, pub sso: Option } /// struct for passing parameters to the method [`get_user_internal_profile`] #[derive(Clone, Debug)] pub struct GetUserInternalProfileParams { + pub tenant_id: String, pub comment_id: Option, pub sso: Option } @@ -200,14 +224,17 @@ pub struct GetUserInternalProfileParams { /// struct for passing parameters to the method [`post_adjust_comment_votes`] #[derive(Clone, Debug)] pub struct PostAdjustCommentVotesParams { + pub tenant_id: String, pub comment_id: String, pub adjust_comment_votes_params: models::AdjustCommentVotesParams, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_api_export`] #[derive(Clone, Debug)] pub struct PostApiExportParams { + pub tenant_id: String, pub text_search: Option, pub by_ip_from_comment: Option, pub filters: Option, @@ -219,6 +246,7 @@ pub struct PostApiExportParams { /// struct for passing parameters to the method [`post_ban_user_from_comment`] #[derive(Clone, Debug)] pub struct PostBanUserFromCommentParams { + pub tenant_id: String, pub comment_id: String, pub ban_email: Option, pub ban_email_domain: Option, @@ -234,6 +262,7 @@ pub struct PostBanUserFromCommentParams { /// struct for passing parameters to the method [`post_ban_user_undo`] #[derive(Clone, Debug)] pub struct PostBanUserUndoParams { + pub tenant_id: String, pub ban_user_undo_params: models::BanUserUndoParams, pub sso: Option } @@ -241,6 +270,7 @@ pub struct PostBanUserUndoParams { /// struct for passing parameters to the method [`post_bulk_pre_ban_summary`] #[derive(Clone, Debug)] pub struct PostBulkPreBanSummaryParams { + pub tenant_id: String, pub bulk_pre_ban_params: models::BulkPreBanParams, pub include_by_user_id_and_email: Option, pub include_by_ip: Option, @@ -251,6 +281,7 @@ pub struct PostBulkPreBanSummaryParams { /// struct for passing parameters to the method [`post_comments_by_ids`] #[derive(Clone, Debug)] pub struct PostCommentsByIdsParams { + pub tenant_id: String, pub comments_by_ids_params: models::CommentsByIdsParams, pub sso: Option } @@ -258,75 +289,94 @@ pub struct PostCommentsByIdsParams { /// struct for passing parameters to the method [`post_flag_comment`] #[derive(Clone, Debug)] pub struct PostFlagCommentParams { + pub tenant_id: String, pub comment_id: String, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_remove_comment`] #[derive(Clone, Debug)] pub struct PostRemoveCommentParams { + pub tenant_id: String, pub comment_id: String, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_restore_deleted_comment`] #[derive(Clone, Debug)] pub struct PostRestoreDeletedCommentParams { + pub tenant_id: String, pub comment_id: String, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_set_comment_approval_status`] #[derive(Clone, Debug)] pub struct PostSetCommentApprovalStatusParams { + pub tenant_id: String, pub comment_id: String, pub approved: Option, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_set_comment_review_status`] #[derive(Clone, Debug)] pub struct PostSetCommentReviewStatusParams { + pub tenant_id: String, pub comment_id: String, pub reviewed: Option, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_set_comment_spam_status`] #[derive(Clone, Debug)] pub struct PostSetCommentSpamStatusParams { + pub tenant_id: String, pub comment_id: String, pub spam: Option, pub perm_not_spam: Option, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_set_comment_text`] #[derive(Clone, Debug)] pub struct PostSetCommentTextParams { + pub tenant_id: String, pub comment_id: String, pub set_comment_text_params: models::SetCommentTextParams, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_un_flag_comment`] #[derive(Clone, Debug)] pub struct PostUnFlagCommentParams { + pub tenant_id: String, pub comment_id: String, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`post_vote`] #[derive(Clone, Debug)] pub struct PostVoteParams { + pub tenant_id: String, pub comment_id: String, pub direction: Option, + pub broadcast_id: Option, pub sso: Option } /// struct for passing parameters to the method [`put_award_badge`] #[derive(Clone, Debug)] pub struct PutAwardBadgeParams { + pub tenant_id: String, pub badge_id: String, pub user_id: Option, pub comment_id: Option, @@ -337,6 +387,7 @@ pub struct PutAwardBadgeParams { /// struct for passing parameters to the method [`put_close_thread`] #[derive(Clone, Debug)] pub struct PutCloseThreadParams { + pub tenant_id: String, pub url_id: String, pub sso: Option } @@ -344,6 +395,7 @@ pub struct PutCloseThreadParams { /// struct for passing parameters to the method [`put_remove_badge`] #[derive(Clone, Debug)] pub struct PutRemoveBadgeParams { + pub tenant_id: String, pub badge_id: String, pub user_id: Option, pub comment_id: Option, @@ -354,6 +406,7 @@ pub struct PutRemoveBadgeParams { /// struct for passing parameters to the method [`put_reopen_thread`] #[derive(Clone, Debug)] pub struct PutReopenThreadParams { + pub tenant_id: String, pub url_id: String, pub sso: Option } @@ -361,6 +414,7 @@ pub struct PutReopenThreadParams { /// struct for passing parameters to the method [`set_trust_factor`] #[derive(Clone, Debug)] pub struct SetTrustFactorParams { + pub tenant_id: String, pub user_id: Option, pub trust_factor: Option, pub sso: Option @@ -714,9 +768,13 @@ pub enum SetTrustFactorError { pub async fn delete_moderation_vote(configuration: &configuration::Configuration, params: DeleteModerationVoteParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/vote/{commentId}/{voteId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id), voteId=crate::client::apis::urlencode(params.vote_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id), voteId=crate::client::apis::urlencode(params.vote_id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -751,9 +809,10 @@ pub async fn delete_moderation_vote(configuration: &configuration::Configuration pub async fn get_api_comments(configuration: &configuration::Configuration, params: GetApiCommentsParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/api/comments", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/api/comments", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.page { req_builder = req_builder.query(&[("page", ¶m_value.to_string())]); } @@ -812,9 +871,10 @@ pub async fn get_api_comments(configuration: &configuration::Configuration, para pub async fn get_api_export_status(configuration: &configuration::Configuration, params: GetApiExportStatusParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/api/export/status", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/api/export/status", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.batch_job_id { req_builder = req_builder.query(&[("batchJobId", ¶m_value.to_string())]); } @@ -852,9 +912,10 @@ pub async fn get_api_export_status(configuration: &configuration::Configuration, pub async fn get_api_ids(configuration: &configuration::Configuration, params: GetApiIdsParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/api/ids", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/api/ids", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.text_search { req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); } @@ -907,9 +968,10 @@ pub async fn get_api_ids(configuration: &configuration::Configuration, params: G pub async fn get_ban_users_from_comment(configuration: &configuration::Configuration, params: GetBanUsersFromCommentParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -944,9 +1006,10 @@ pub async fn get_ban_users_from_comment(configuration: &configuration::Configura pub async fn get_comment_ban_status(configuration: &configuration::Configuration, params: GetCommentBanStatusParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -981,9 +1044,10 @@ pub async fn get_comment_ban_status(configuration: &configuration::Configuration pub async fn get_comment_children(configuration: &configuration::Configuration, params: GetCommentChildrenParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/comment-children/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1018,9 +1082,10 @@ pub async fn get_comment_children(configuration: &configuration::Configuration, pub async fn get_count(configuration: &configuration::Configuration, params: GetCountParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/count", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/count", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.text_search { req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); } @@ -1070,9 +1135,10 @@ pub async fn get_count(configuration: &configuration::Configuration, params: Get pub async fn get_counts(configuration: &configuration::Configuration, params: GetCountsParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/banned-users/counts", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/banned-users/mod_api/counts", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1107,9 +1173,10 @@ pub async fn get_counts(configuration: &configuration::Configuration, params: Ge pub async fn get_logs(configuration: &configuration::Configuration, params: GetLogsParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/logs/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/logs/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1144,9 +1211,10 @@ pub async fn get_logs(configuration: &configuration::Configuration, params: GetL pub async fn get_manual_badges(configuration: &configuration::Configuration, params: GetManualBadgesParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/get-manual-badges", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/get-manual-badges", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1181,9 +1249,10 @@ pub async fn get_manual_badges(configuration: &configuration::Configuration, par pub async fn get_manual_badges_for_user(configuration: &configuration::Configuration, params: GetManualBadgesForUserParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/get-manual-badges-for-user", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.badges_user_id { req_builder = req_builder.query(&[("badgesUserId", ¶m_value.to_string())]); } @@ -1224,9 +1293,10 @@ pub async fn get_manual_badges_for_user(configuration: &configuration::Configura pub async fn get_moderation_comment(configuration: &configuration::Configuration, params: GetModerationCommentParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.include_email { req_builder = req_builder.query(&[("includeEmail", ¶m_value.to_string())]); } @@ -1267,9 +1337,10 @@ pub async fn get_moderation_comment(configuration: &configuration::Configuration pub async fn get_moderation_comment_text(configuration: &configuration::Configuration, params: GetModerationCommentTextParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/get-comment-text/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1304,9 +1375,10 @@ pub async fn get_moderation_comment_text(configuration: &configuration::Configur pub async fn get_pre_ban_summary(configuration: &configuration::Configuration, params: GetPreBanSummaryParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/pre-ban-summary/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.include_by_user_id_and_email { req_builder = req_builder.query(&[("includeByUserIdAndEmail", ¶m_value.to_string())]); } @@ -1350,9 +1422,10 @@ pub async fn get_pre_ban_summary(configuration: &configuration::Configuration, p pub async fn get_search_comments_summary(configuration: &configuration::Configuration, params: GetSearchCommentsSummaryParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/search/comments/summary", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/search/comments/summary", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.value { req_builder = req_builder.query(&[("value", ¶m_value.to_string())]); } @@ -1396,9 +1469,10 @@ pub async fn get_search_comments_summary(configuration: &configuration::Configur pub async fn get_search_pages(configuration: &configuration::Configuration, params: GetSearchPagesParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/search/pages", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/search/pages", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.value { req_builder = req_builder.query(&[("value", ¶m_value.to_string())]); } @@ -1436,9 +1510,10 @@ pub async fn get_search_pages(configuration: &configuration::Configuration, para pub async fn get_search_sites(configuration: &configuration::Configuration, params: GetSearchSitesParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/search/sites", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/search/sites", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.value { req_builder = req_builder.query(&[("value", ¶m_value.to_string())]); } @@ -1476,9 +1551,10 @@ pub async fn get_search_sites(configuration: &configuration::Configuration, para pub async fn get_search_suggest(configuration: &configuration::Configuration, params: GetSearchSuggestParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/search/suggest", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/search/suggest", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.text_search { req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); } @@ -1516,9 +1592,10 @@ pub async fn get_search_suggest(configuration: &configuration::Configuration, pa pub async fn get_search_users(configuration: &configuration::Configuration, params: GetSearchUsersParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/search/users", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/search/users", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.value { req_builder = req_builder.query(&[("value", ¶m_value.to_string())]); } @@ -1556,9 +1633,10 @@ pub async fn get_search_users(configuration: &configuration::Configuration, para pub async fn get_trust_factor(configuration: &configuration::Configuration, params: GetTrustFactorParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/get-trust-factor", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/get-trust-factor", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.user_id { req_builder = req_builder.query(&[("userId", ¶m_value.to_string())]); } @@ -1596,9 +1674,10 @@ pub async fn get_trust_factor(configuration: &configuration::Configuration, para pub async fn get_user_ban_preference(configuration: &configuration::Configuration, params: GetUserBanPreferenceParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/user-ban-preference", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/user-ban-preference", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1633,9 +1712,10 @@ pub async fn get_user_ban_preference(configuration: &configuration::Configuratio pub async fn get_user_internal_profile(configuration: &configuration::Configuration, params: GetUserInternalProfileParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/get-user-internal-profile", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/get-user-internal-profile", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.comment_id { req_builder = req_builder.query(&[("commentId", ¶m_value.to_string())]); } @@ -1673,9 +1753,13 @@ pub async fn get_user_internal_profile(configuration: &configuration::Configurat pub async fn post_adjust_comment_votes(configuration: &configuration::Configuration, params: PostAdjustCommentVotesParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1711,9 +1795,10 @@ pub async fn post_adjust_comment_votes(configuration: &configuration::Configurat pub async fn post_api_export(configuration: &configuration::Configuration, params: PostApiExportParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/api/export", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/api/export", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.text_search { req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); } @@ -1763,9 +1848,10 @@ pub async fn post_api_export(configuration: &configuration::Configuration, param pub async fn post_ban_user_from_comment(configuration: &configuration::Configuration, params: PostBanUserFromCommentParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.ban_email { req_builder = req_builder.query(&[("banEmail", ¶m_value.to_string())]); } @@ -1824,9 +1910,10 @@ pub async fn post_ban_user_from_comment(configuration: &configuration::Configura pub async fn post_ban_user_undo(configuration: &configuration::Configuration, params: PostBanUserUndoParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/ban-user/undo", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/ban-user/undo", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1862,9 +1949,10 @@ pub async fn post_ban_user_undo(configuration: &configuration::Configuration, pa pub async fn post_bulk_pre_ban_summary(configuration: &configuration::Configuration, params: PostBulkPreBanSummaryParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/bulk-pre-ban-summary", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.include_by_user_id_and_email { req_builder = req_builder.query(&[("includeByUserIdAndEmail", ¶m_value.to_string())]); } @@ -1909,9 +1997,10 @@ pub async fn post_bulk_pre_ban_summary(configuration: &configuration::Configurat pub async fn post_comments_by_ids(configuration: &configuration::Configuration, params: PostCommentsByIdsParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/comments-by-ids", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/comments-by-ids", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1947,9 +2036,13 @@ pub async fn post_comments_by_ids(configuration: &configuration::Configuration, pub async fn post_flag_comment(configuration: &configuration::Configuration, params: PostFlagCommentParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/flag-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1982,11 +2075,15 @@ pub async fn post_flag_comment(configuration: &configuration::Configuration, par } } -pub async fn post_remove_comment(configuration: &configuration::Configuration, params: PostRemoveCommentParams) -> Result> { +pub async fn post_remove_comment(configuration: &configuration::Configuration, params: PostRemoveCommentParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/remove-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -2009,8 +2106,8 @@ pub async fn post_remove_comment(configuration: &configuration::Configuration, p let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PostRemoveCommentResponse`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::PostRemoveCommentResponse`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PostRemoveCommentApiResponse`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::PostRemoveCommentApiResponse`")))), } } else { let content = resp.text().await?; @@ -2021,9 +2118,13 @@ pub async fn post_remove_comment(configuration: &configuration::Configuration, p pub async fn post_restore_deleted_comment(configuration: &configuration::Configuration, params: PostRestoreDeletedCommentParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -2058,12 +2159,16 @@ pub async fn post_restore_deleted_comment(configuration: &configuration::Configu pub async fn post_set_comment_approval_status(configuration: &configuration::Configuration, params: PostSetCommentApprovalStatusParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.approved { req_builder = req_builder.query(&[("approved", ¶m_value.to_string())]); } + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -2098,12 +2203,16 @@ pub async fn post_set_comment_approval_status(configuration: &configuration::Con pub async fn post_set_comment_review_status(configuration: &configuration::Configuration, params: PostSetCommentReviewStatusParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/set-comment-review-status/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.reviewed { req_builder = req_builder.query(&[("reviewed", ¶m_value.to_string())]); } + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -2138,15 +2247,19 @@ pub async fn post_set_comment_review_status(configuration: &configuration::Confi pub async fn post_set_comment_spam_status(configuration: &configuration::Configuration, params: PostSetCommentSpamStatusParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.spam { req_builder = req_builder.query(&[("spam", ¶m_value.to_string())]); } if let Some(ref param_value) = params.perm_not_spam { req_builder = req_builder.query(&[("permNotSpam", ¶m_value.to_string())]); } + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -2181,9 +2294,13 @@ pub async fn post_set_comment_spam_status(configuration: &configuration::Configu pub async fn post_set_comment_text(configuration: &configuration::Configuration, params: PostSetCommentTextParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/set-comment-text/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -2219,9 +2336,13 @@ pub async fn post_set_comment_text(configuration: &configuration::Configuration, pub async fn post_un_flag_comment(configuration: &configuration::Configuration, params: PostUnFlagCommentParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/un-flag-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -2256,12 +2377,16 @@ pub async fn post_un_flag_comment(configuration: &configuration::Configuration, pub async fn post_vote(configuration: &configuration::Configuration, params: PostVoteParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/vote/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/vote/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.direction { req_builder = req_builder.query(&[("direction", ¶m_value.to_string())]); } + if let Some(ref param_value) = params.broadcast_id { + req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -2296,9 +2421,10 @@ pub async fn post_vote(configuration: &configuration::Configuration, params: Pos pub async fn put_award_badge(configuration: &configuration::Configuration, params: PutAwardBadgeParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/award-badge", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/award-badge", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); req_builder = req_builder.query(&[("badgeId", ¶ms.badge_id.to_string())]); if let Some(ref param_value) = params.user_id { req_builder = req_builder.query(&[("userId", ¶m_value.to_string())]); @@ -2343,9 +2469,10 @@ pub async fn put_award_badge(configuration: &configuration::Configuration, param pub async fn put_close_thread(configuration: &configuration::Configuration, params: PutCloseThreadParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/close-thread", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/close-thread", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); @@ -2381,9 +2508,10 @@ pub async fn put_close_thread(configuration: &configuration::Configuration, para pub async fn put_remove_badge(configuration: &configuration::Configuration, params: PutRemoveBadgeParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/remove-badge", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/remove-badge", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); req_builder = req_builder.query(&[("badgeId", ¶ms.badge_id.to_string())]); if let Some(ref param_value) = params.user_id { req_builder = req_builder.query(&[("userId", ¶m_value.to_string())]); @@ -2428,9 +2556,10 @@ pub async fn put_remove_badge(configuration: &configuration::Configuration, para pub async fn put_reopen_thread(configuration: &configuration::Configuration, params: PutReopenThreadParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/reopen-thread", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/reopen-thread", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); @@ -2466,9 +2595,10 @@ pub async fn put_reopen_thread(configuration: &configuration::Configuration, par pub async fn set_trust_factor(configuration: &configuration::Configuration, params: SetTrustFactorParams) -> Result> { - let uri_str = format!("{}/auth/my-account/moderate-comments/set-trust-factor", configuration.base_path); + let uri_str = format!("{}/auth/my-account/moderate-comments/mod_api/set-trust-factor", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + req_builder = req_builder.query(&[("tenantId", ¶ms.tenant_id.to_string())]); if let Some(ref param_value) = params.user_id { req_builder = req_builder.query(&[("userId", ¶m_value.to_string())]); } diff --git a/client/src/models/mod.rs b/client/src/models/mod.rs index c686c4a..7a3ba5f 100644 --- a/client/src/models/mod.rs +++ b/client/src/models/mod.rs @@ -516,8 +516,8 @@ pub mod patch_sso_user_api_response; pub use self::patch_sso_user_api_response::PatchSsoUserApiResponse; pub mod pending_comment_to_sync_outbound; pub use self::pending_comment_to_sync_outbound::PendingCommentToSyncOutbound; -pub mod post_remove_comment_response; -pub use self::post_remove_comment_response::PostRemoveCommentResponse; +pub mod post_remove_comment_api_response; +pub use self::post_remove_comment_api_response::PostRemoveCommentApiResponse; pub mod pre_ban_summary; pub use self::pre_ban_summary::PreBanSummary; pub mod pub_sub_comment; diff --git a/client/src/models/post_remove_comment_response.rs b/client/src/models/post_remove_comment_api_response.rs similarity index 81% rename from client/src/models/post_remove_comment_response.rs rename to client/src/models/post_remove_comment_api_response.rs index fef8ac3..7cc3ce3 100644 --- a/client/src/models/post_remove_comment_response.rs +++ b/client/src/models/post_remove_comment_api_response.rs @@ -12,16 +12,16 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct PostRemoveCommentResponse { +pub struct PostRemoveCommentApiResponse { #[serde(rename = "action")] pub action: String, #[serde(rename = "status")] pub status: String, } -impl PostRemoveCommentResponse { - pub fn new(action: String, status: String) -> PostRemoveCommentResponse { - PostRemoveCommentResponse { +impl PostRemoveCommentApiResponse { + pub fn new(action: String, status: String) -> PostRemoveCommentApiResponse { + PostRemoveCommentApiResponse { action, status, } diff --git a/config.json b/config.json index b105993..ba43db8 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,6 @@ { "packageName": "fastcomments_rust", - "packageVersion": "2.0.0", + "packageVersion": "3.0.0", "authorName": "FastComments", "authorEmail": "support@fastcomments.com", "licenseName": "MIT", 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" }