diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..f63128f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +# Runs on PRs and pushes to the default branch. We use `pull_request` (never +# `pull_request_target`), so secrets are NOT exposed to pull requests from forks. +on: + pull_request: + push: + branches: [main, master] + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose + env: + FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} + FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} diff --git a/Cargo.lock b/Cargo.lock index 790e3f9..87071c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -101,8 +101,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" dependencies = [ "iana-time-zone", + "js-sys", "num-traits", "serde", + "wasm-bindgen", "windows-link 0.2.1", ] @@ -244,6 +246,7 @@ name = "fastcomments-sdk" version = "1.3.1" dependencies = [ "base64", + "chrono", "hmac", "reqwest", "serde", diff --git a/Cargo.toml b/Cargo.toml index bd7cbed..7a4999d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,6 +28,9 @@ serde_with = { version = "^3.8", default-features = false, features = ["base64", serde_json = "^1.0" serde_repr = "^0.1" +# Date/time (required by generated models with date-time fields) +chrono = { version = "^0.4", features = ["serde"] } + # HTTP client reqwest = { version = "^0.12", features = ["json", "multipart", "stream"] } url = "^2.5" diff --git a/README.md b/README.md index 7860c19..5b94307 100644 --- a/README.md +++ b/README.md @@ -14,9 +14,12 @@ The SDK requires Rust 2021 edition or later. The FastComments Rust SDK consists of several modules: -- **Client Module** - Auto-generated API client for FastComments REST APIs +- **Client Module** - API client for FastComments REST APIs - Complete type definitions for all API models - - Both authenticated (`DefaultApi`) and public (`PublicApi`) endpoints + - 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. - Full async/await support with tokio - See [client/README.md](client/README.md) for detailed API documentation @@ -133,6 +136,44 @@ async fn main() { } ``` +### Using the Moderation API + +The moderation methods back the moderator dashboard. They use an API-key `Configuration` just like the authenticated API, and each method accepts an optional `sso` token so the call can be made on behalf of an SSO-authenticated moderator. + +```rust +use fastcomments_sdk::client::apis::configuration::{ApiKey, Configuration}; +use fastcomments_sdk::client::apis::moderation_api; + +#[tokio::main] +async fn main() { + // Create configuration with API key + let mut config = Configuration::new(); + config.api_key = Some(ApiKey { + prefix: None, + key: "your-api-key".to_string(), + }); + + // Count comments waiting in the moderation queue + let result = moderation_api::get_count( + &config, + moderation_api::GetCountParams { + text_search: None, + by_ip_from_comment: None, + filter: None, + search_filters: None, + demo: None, + sso: None, // pass an SSO token to act as an SSO-authenticated moderator + }, + ) + .await; + + match result { + Ok(response) => println!("Comments to moderate: {}", response.count), + Err(e) => eprintln!("Error: {:?}", e), + } +} +``` + ### Using SSO for Authentication ```rust diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 0855ee1..d814395 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -3,16 +3,17 @@ .travis.yml Cargo.toml README.md -docs/AddDomainConfig200Response.md -docs/AddDomainConfig200ResponseAnyOf.md docs/AddDomainConfigParams.md -docs/AddHashTag200Response.md -docs/AddHashTagsBulk200Response.md +docs/AddDomainConfigResponse.md +docs/AddDomainConfigResponseAnyOf.md docs/AddPageApiResponse.md docs/AddSsoUserApiResponse.md -docs/AggregateQuestionResults200Response.md +docs/AdjustCommentVotesParams.md +docs/AdjustVotesResponse.md docs/AggregateQuestionResultsResponse.md +docs/AggregateResponse.md docs/AggregateTimeBucket.md +docs/AggregationApiError.md docs/AggregationItem.md docs/AggregationOpType.md docs/AggregationOperation.md @@ -22,9 +23,14 @@ docs/AggregationResponse.md docs/AggregationResponseStats.md docs/AggregationValue.md docs/ApiAuditLog.md +docs/ApiBanUserChangeLog.md +docs/ApiBanUserChangedValues.md +docs/ApiBannedUser.md +docs/ApiBannedUserWithMultiMatchInfo.md docs/ApiComment.md docs/ApiCommentBase.md docs/ApiCommentBaseMeta.md +docs/ApiCommentCommonBannedUser.md docs/ApiCreateUserBadgeResponse.md docs/ApiDomainConfiguration.md docs/ApiEmptyResponse.md @@ -36,7 +42,10 @@ docs/ApiGetUserBadgeProgressListResponse.md docs/ApiGetUserBadgeProgressResponse.md docs/ApiGetUserBadgeResponse.md docs/ApiGetUserBadgesResponse.md +docs/ApiModerateGetUserBanPreferencesResponse.md +docs/ApiModerateUserBanPreferences.md docs/ApiPage.md +docs/ApiSaveCommentResponse.md docs/ApiStatus.md docs/ApiTenant.md docs/ApiTenantDailyUsage.md @@ -45,24 +54,30 @@ docs/ApiTicketDetail.md docs/ApiTicketFile.md docs/ApiUserSubscription.md docs/ApissoUser.md +docs/AwardUserBadgeResponse.md +docs/BanUserFromCommentResult.md +docs/BanUserUndoParams.md +docs/BannedUserMatch.md +docs/BannedUserMatchMatchedOnValue.md +docs/BannedUserMatchType.md docs/BillingInfo.md docs/BlockFromCommentParams.md -docs/BlockFromCommentPublic200Response.md docs/BlockSuccess.md +docs/BuildModerationFilterParams.md +docs/BuildModerationFilterResponse.md docs/BulkAggregateQuestionItem.md -docs/BulkAggregateQuestionResults200Response.md docs/BulkAggregateQuestionResultsRequest.md docs/BulkAggregateQuestionResultsResponse.md docs/BulkCreateHashTagsBody.md docs/BulkCreateHashTagsBodyTagsInner.md docs/BulkCreateHashTagsResponse.md +docs/BulkCreateHashTagsResponseResultsInner.md +docs/BulkPreBanParams.md +docs/BulkPreBanSummary.md docs/ChangeCommentPinStatusResponse.md -docs/ChangeTicketState200Response.md docs/ChangeTicketStateBody.md docs/ChangeTicketStateResponse.md docs/CheckBlockedCommentsResponse.md -docs/CheckedCommentsForBlocked200Response.md -docs/CombineCommentsWithQuestionResults200Response.md docs/CombineQuestionResultsWithCommentsResponse.md docs/CommentData.md docs/CommentHtmlRenderingMode.md @@ -77,57 +92,43 @@ docs/CommentUserBadgeInfo.md docs/CommentUserHashTagInfo.md docs/CommentUserMentionInfo.md docs/CommenterNameFormats.md +docs/CommentsByIdsParams.md docs/CreateApiPageData.md docs/CreateApiUserSubscriptionData.md docs/CreateApissoUserData.md docs/CreateCommentParams.md -docs/CreateCommentPublic200Response.md -docs/CreateEmailTemplate200Response.md docs/CreateEmailTemplateBody.md docs/CreateEmailTemplateResponse.md -docs/CreateFeedPost200Response.md docs/CreateFeedPostParams.md -docs/CreateFeedPostPublic200Response.md docs/CreateFeedPostResponse.md docs/CreateFeedPostsResponse.md docs/CreateHashTagBody.md docs/CreateHashTagResponse.md -docs/CreateModerator200Response.md docs/CreateModeratorBody.md docs/CreateModeratorResponse.md -docs/CreateQuestionConfig200Response.md docs/CreateQuestionConfigBody.md docs/CreateQuestionConfigResponse.md -docs/CreateQuestionResult200Response.md docs/CreateQuestionResultBody.md docs/CreateQuestionResultResponse.md docs/CreateSubscriptionApiResponse.md -docs/CreateTenant200Response.md docs/CreateTenantBody.md -docs/CreateTenantPackage200Response.md docs/CreateTenantPackageBody.md docs/CreateTenantPackageResponse.md docs/CreateTenantResponse.md -docs/CreateTenantUser200Response.md docs/CreateTenantUserBody.md docs/CreateTenantUserResponse.md -docs/CreateTicket200Response.md docs/CreateTicketBody.md docs/CreateTicketResponse.md -docs/CreateUserBadge200Response.md docs/CreateUserBadgeParams.md +docs/CreateV1PageReact.md docs/CustomConfigParameters.md docs/CustomEmailTemplate.md docs/DefaultApi.md -docs/DeleteComment200Response.md docs/DeleteCommentAction.md -docs/DeleteCommentPublic200Response.md docs/DeleteCommentResult.md -docs/DeleteCommentVote200Response.md -docs/DeleteDomainConfig200Response.md -docs/DeleteFeedPostPublic200Response.md -docs/DeleteFeedPostPublic200ResponseAnyOf.md -docs/DeleteHashTagRequest.md +docs/DeleteDomainConfigResponse.md +docs/DeleteFeedPostPublicResponse.md +docs/DeleteHashTagRequestBody.md docs/DeletePageApiResponse.md docs/DeleteSsoUserApiResponse.md docs/DeleteSubscriptionApiResponse.md @@ -146,126 +147,125 @@ docs/FeedPostStats.md docs/FeedPostsStatsResponse.md docs/FindCommentsByRangeItem.md docs/FindCommentsByRangeResponse.md -docs/FlagComment200Response.md -docs/FlagCommentPublic200Response.md docs/FlagCommentResponse.md -docs/GetAuditLogs200Response.md docs/GetAuditLogsResponse.md -docs/GetCachedNotificationCount200Response.md +docs/GetBannedUsersCountResponse.md +docs/GetBannedUsersFromCommentResponse.md docs/GetCachedNotificationCountResponse.md -docs/GetComment200Response.md -docs/GetCommentText200Response.md -docs/GetCommentVoteUserNames200Response.md +docs/GetCommentBanStatusResponse.md +docs/GetCommentTextResponse.md docs/GetCommentVoteUserNamesSuccessResponse.md -docs/GetComments200Response.md -docs/GetCommentsPublic200Response.md +docs/GetCommentsForUserResponse.md docs/GetCommentsResponsePublicComment.md docs/GetCommentsResponseWithPresencePublicComment.md -docs/GetDomainConfig200Response.md -docs/GetDomainConfigs200Response.md -docs/GetDomainConfigs200ResponseAnyOf.md -docs/GetDomainConfigs200ResponseAnyOf1.md -docs/GetEmailTemplate200Response.md -docs/GetEmailTemplateDefinitions200Response.md +docs/GetDomainConfigResponse.md +docs/GetDomainConfigsResponse.md +docs/GetDomainConfigsResponseAnyOf.md +docs/GetDomainConfigsResponseAnyOf1.md docs/GetEmailTemplateDefinitionsResponse.md -docs/GetEmailTemplateRenderErrors200Response.md docs/GetEmailTemplateRenderErrorsResponse.md docs/GetEmailTemplateResponse.md -docs/GetEmailTemplates200Response.md docs/GetEmailTemplatesResponse.md -docs/GetEventLog200Response.md docs/GetEventLogResponse.md -docs/GetFeedPosts200Response.md -docs/GetFeedPostsPublic200Response.md docs/GetFeedPostsResponse.md -docs/GetFeedPostsStats200Response.md -docs/GetHashTags200Response.md +docs/GetGifsSearchResponse.md +docs/GetGifsTrendingResponse.md docs/GetHashTagsResponse.md -docs/GetModerator200Response.md docs/GetModeratorResponse.md -docs/GetModerators200Response.md docs/GetModeratorsResponse.md docs/GetMyNotificationsResponse.md -docs/GetNotificationCount200Response.md docs/GetNotificationCountResponse.md -docs/GetNotifications200Response.md docs/GetNotificationsResponse.md docs/GetPageByUrlidApiResponse.md docs/GetPagesApiResponse.md -docs/GetPendingWebhookEventCount200Response.md docs/GetPendingWebhookEventCountResponse.md -docs/GetPendingWebhookEvents200Response.md docs/GetPendingWebhookEventsResponse.md docs/GetPublicFeedPostsResponse.md -docs/GetQuestionConfig200Response.md +docs/GetPublicPagesResponse.md docs/GetQuestionConfigResponse.md -docs/GetQuestionConfigs200Response.md docs/GetQuestionConfigsResponse.md -docs/GetQuestionResult200Response.md docs/GetQuestionResultResponse.md -docs/GetQuestionResults200Response.md docs/GetQuestionResultsResponse.md docs/GetSsoUserByEmailApiResponse.md docs/GetSsoUserByIdApiResponse.md -docs/GetSsoUsers200Response.md +docs/GetSsoUsersResponse.md docs/GetSubscriptionsApiResponse.md -docs/GetTenant200Response.md -docs/GetTenantDailyUsages200Response.md docs/GetTenantDailyUsagesResponse.md -docs/GetTenantPackage200Response.md +docs/GetTenantManualBadgesResponse.md docs/GetTenantPackageResponse.md -docs/GetTenantPackages200Response.md docs/GetTenantPackagesResponse.md docs/GetTenantResponse.md -docs/GetTenantUser200Response.md docs/GetTenantUserResponse.md -docs/GetTenantUsers200Response.md docs/GetTenantUsersResponse.md -docs/GetTenants200Response.md docs/GetTenantsResponse.md -docs/GetTicket200Response.md docs/GetTicketResponse.md -docs/GetTickets200Response.md docs/GetTicketsResponse.md -docs/GetUser200Response.md -docs/GetUserBadge200Response.md -docs/GetUserBadgeProgressById200Response.md -docs/GetUserBadgeProgressList200Response.md -docs/GetUserBadges200Response.md -docs/GetUserNotificationCount200Response.md +docs/GetTranslationsResponse.md +docs/GetUserInternalProfileResponse.md +docs/GetUserInternalProfileResponseProfile.md +docs/GetUserManualBadgesResponse.md docs/GetUserNotificationCountResponse.md -docs/GetUserNotifications200Response.md -docs/GetUserPresenceStatuses200Response.md docs/GetUserPresenceStatusesResponse.md -docs/GetUserReactsPublic200Response.md docs/GetUserResponse.md -docs/GetVotes200Response.md -docs/GetVotesForUser200Response.md +docs/GetUserTrustFactorResponse.md +docs/GetV1PageLikes.md +docs/GetV2PageReactUsersResponse.md +docs/GetV2PageReacts.md docs/GetVotesForUserResponse.md docs/GetVotesResponse.md +docs/GifGetLargeResponse.md docs/GifRating.md +docs/GifSearchInternalError.md +docs/GifSearchResponse.md +docs/GifSearchResponseImagesInnerInner.md docs/HeaderAccountNotification.md docs/HeaderState.md docs/IgnoredResponse.md docs/ImageContentProfanityLevel.md +docs/ImportedAgentApprovalNotificationFrequency.md docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md -docs/LockComment200Response.md docs/MediaAsset.md docs/MentionAutoCompleteMode.md docs/MetaItem.md +docs/ModerationApi.md +docs/ModerationApiChildCommentsResponse.md +docs/ModerationApiComment.md +docs/ModerationApiCommentLog.md +docs/ModerationApiCommentResponse.md +docs/ModerationApiCountCommentsResponse.md +docs/ModerationApiGetCommentIdsResponse.md +docs/ModerationApiGetCommentsResponse.md +docs/ModerationApiGetLogsResponse.md +docs/ModerationCommentSearchResponse.md +docs/ModerationExportResponse.md +docs/ModerationExportStatusResponse.md +docs/ModerationFilter.md +docs/ModerationPageSearchProjected.md +docs/ModerationPageSearchResponse.md +docs/ModerationSiteSearchProjected.md +docs/ModerationSiteSearchResponse.md +docs/ModerationSuggestResponse.md +docs/ModerationUserSearchProjected.md +docs/ModerationUserSearchResponse.md docs/Moderator.md docs/NotificationAndCount.md docs/NotificationObjectType.md docs/NotificationType.md +docs/PageUserEntry.md +docs/PageUsersInfoResponse.md +docs/PageUsersOfflineResponse.md +docs/PageUsersOnlineResponse.md +docs/PagesSortBy.md docs/PatchDomainConfigParams.md -docs/PatchHashTag200Response.md +docs/PatchDomainConfigResponse.md docs/PatchPageApiResponse.md docs/PatchSsoUserApiResponse.md docs/PendingCommentToSyncOutbound.md -docs/PinComment200Response.md +docs/PostRemoveCommentResponse.md +docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md docs/PubSubVote.md @@ -277,7 +277,9 @@ docs/PublicBlockFromCommentParams.md docs/PublicComment.md docs/PublicCommentBase.md docs/PublicFeedPostsResponse.md +docs/PublicPage.md docs/PublicVote.md +docs/PutDomainConfigResponse.md docs/PutSsoUserApiResponse.md docs/QueryPredicate.md docs/QueryPredicateValue.md @@ -290,11 +292,10 @@ docs/QuestionResultAggregationOverall.md docs/QuestionSubQuestionVisibility.md docs/QuestionWhenSave.md docs/ReactBodyParams.md -docs/ReactFeedPostPublic200Response.md docs/ReactFeedPostResponse.md docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md -docs/RecordStringStringOrNumberValue.md -docs/RenderEmailTemplate200Response.md +docs/RemoveCommentActionResponse.md +docs/RemoveUserBadgeResponse.md docs/RenderEmailTemplateBody.md docs/RenderEmailTemplateResponse.md docs/RenderableUserNotification.md @@ -302,26 +303,27 @@ docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md docs/ReplaceTenantPackageBody.md docs/ReplaceTenantUserBody.md -docs/ResetUserNotifications200Response.md docs/ResetUserNotificationsResponse.md -docs/SaveComment200Response.md -docs/SaveCommentResponse.md docs/SaveCommentResponseOptimized.md +docs/SaveCommentsBulkResponse.md docs/SaveCommentsResponseWithPresence.md -docs/SearchUsers200Response.md docs/SearchUsersResponse.md +docs/SearchUsersResult.md docs/SearchUsersSectionedResponse.md -docs/SetCommentText200Response.md +docs/SetCommentApprovedResponse.md +docs/SetCommentTextParams.md +docs/SetCommentTextResponse.md docs/SetCommentTextResult.md +docs/SetUserTrustFactorResponse.md docs/SizePreset.md docs/SortDir.md docs/SortDirections.md docs/SpamRule.md docs/SsoSecurityLevel.md +docs/TenantBadge.md docs/TenantHashTag.md docs/TenantPackage.md docs/TosConfig.md -docs/UnBlockCommentPublic200Response.md docs/UnBlockFromCommentParams.md docs/UnblockSuccess.md docs/UpdatableCommentParams.md @@ -341,9 +343,10 @@ docs/UpdateSubscriptionApiResponse.md docs/UpdateTenantBody.md docs/UpdateTenantPackageBody.md docs/UpdateTenantUserBody.md -docs/UpdateUserBadge200Response.md docs/UpdateUserBadgeParams.md -docs/UpdateUserNotificationStatus200Response.md +docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md +docs/UpdateUserNotificationPageSubscriptionStatusResponse.md +docs/UpdateUserNotificationStatusResponse.md docs/UploadImageResponse.md docs/User.md docs/UserBadge.md @@ -357,8 +360,8 @@ docs/UserSearchResult.md docs/UserSearchSection.md docs/UserSearchSectionResult.md docs/UserSessionInfo.md +docs/UsersListLocation.md docs/VoteBodyParams.md -docs/VoteComment200Response.md docs/VoteDeleteResponse.md docs/VoteResponse.md docs/VoteResponseUser.md @@ -367,18 +370,20 @@ git_push.sh src/apis/configuration.rs src/apis/default_api.rs src/apis/mod.rs +src/apis/moderation_api.rs src/apis/public_api.rs src/lib.rs -src/models/add_domain_config_200_response.rs -src/models/add_domain_config_200_response_any_of.rs src/models/add_domain_config_params.rs -src/models/add_hash_tag_200_response.rs -src/models/add_hash_tags_bulk_200_response.rs +src/models/add_domain_config_response.rs +src/models/add_domain_config_response_any_of.rs src/models/add_page_api_response.rs src/models/add_sso_user_api_response.rs -src/models/aggregate_question_results_200_response.rs +src/models/adjust_comment_votes_params.rs +src/models/adjust_votes_response.rs src/models/aggregate_question_results_response.rs +src/models/aggregate_response.rs src/models/aggregate_time_bucket.rs +src/models/aggregation_api_error.rs src/models/aggregation_item.rs src/models/aggregation_op_type.rs src/models/aggregation_operation.rs @@ -388,9 +393,14 @@ src/models/aggregation_response.rs src/models/aggregation_response_stats.rs src/models/aggregation_value.rs src/models/api_audit_log.rs +src/models/api_ban_user_change_log.rs +src/models/api_ban_user_changed_values.rs +src/models/api_banned_user.rs +src/models/api_banned_user_with_multi_match_info.rs src/models/api_comment.rs src/models/api_comment_base.rs src/models/api_comment_base_meta.rs +src/models/api_comment_common_banned_user.rs src/models/api_create_user_badge_response.rs src/models/api_domain_configuration.rs src/models/api_empty_response.rs @@ -402,7 +412,10 @@ src/models/api_get_user_badge_progress_list_response.rs src/models/api_get_user_badge_progress_response.rs src/models/api_get_user_badge_response.rs src/models/api_get_user_badges_response.rs +src/models/api_moderate_get_user_ban_preferences_response.rs +src/models/api_moderate_user_ban_preferences.rs src/models/api_page.rs +src/models/api_save_comment_response.rs src/models/api_status.rs src/models/api_tenant.rs src/models/api_tenant_daily_usage.rs @@ -411,24 +424,30 @@ src/models/api_ticket_detail.rs src/models/api_ticket_file.rs src/models/api_user_subscription.rs src/models/apisso_user.rs +src/models/award_user_badge_response.rs +src/models/ban_user_from_comment_result.rs +src/models/ban_user_undo_params.rs +src/models/banned_user_match.rs +src/models/banned_user_match_matched_on_value.rs +src/models/banned_user_match_type.rs src/models/billing_info.rs src/models/block_from_comment_params.rs -src/models/block_from_comment_public_200_response.rs src/models/block_success.rs +src/models/build_moderation_filter_params.rs +src/models/build_moderation_filter_response.rs src/models/bulk_aggregate_question_item.rs -src/models/bulk_aggregate_question_results_200_response.rs src/models/bulk_aggregate_question_results_request.rs src/models/bulk_aggregate_question_results_response.rs src/models/bulk_create_hash_tags_body.rs src/models/bulk_create_hash_tags_body_tags_inner.rs src/models/bulk_create_hash_tags_response.rs +src/models/bulk_create_hash_tags_response_results_inner.rs +src/models/bulk_pre_ban_params.rs +src/models/bulk_pre_ban_summary.rs src/models/change_comment_pin_status_response.rs -src/models/change_ticket_state_200_response.rs src/models/change_ticket_state_body.rs src/models/change_ticket_state_response.rs src/models/check_blocked_comments_response.rs -src/models/checked_comments_for_blocked_200_response.rs -src/models/combine_comments_with_question_results_200_response.rs src/models/combine_question_results_with_comments_response.rs src/models/comment_data.rs src/models/comment_html_rendering_mode.rs @@ -443,56 +462,42 @@ src/models/comment_user_badge_info.rs src/models/comment_user_hash_tag_info.rs src/models/comment_user_mention_info.rs src/models/commenter_name_formats.rs +src/models/comments_by_ids_params.rs src/models/create_api_page_data.rs src/models/create_api_user_subscription_data.rs src/models/create_apisso_user_data.rs src/models/create_comment_params.rs -src/models/create_comment_public_200_response.rs -src/models/create_email_template_200_response.rs src/models/create_email_template_body.rs src/models/create_email_template_response.rs -src/models/create_feed_post_200_response.rs src/models/create_feed_post_params.rs -src/models/create_feed_post_public_200_response.rs src/models/create_feed_post_response.rs src/models/create_feed_posts_response.rs src/models/create_hash_tag_body.rs src/models/create_hash_tag_response.rs -src/models/create_moderator_200_response.rs src/models/create_moderator_body.rs src/models/create_moderator_response.rs -src/models/create_question_config_200_response.rs src/models/create_question_config_body.rs src/models/create_question_config_response.rs -src/models/create_question_result_200_response.rs src/models/create_question_result_body.rs src/models/create_question_result_response.rs src/models/create_subscription_api_response.rs -src/models/create_tenant_200_response.rs src/models/create_tenant_body.rs -src/models/create_tenant_package_200_response.rs src/models/create_tenant_package_body.rs src/models/create_tenant_package_response.rs src/models/create_tenant_response.rs -src/models/create_tenant_user_200_response.rs src/models/create_tenant_user_body.rs src/models/create_tenant_user_response.rs -src/models/create_ticket_200_response.rs src/models/create_ticket_body.rs src/models/create_ticket_response.rs -src/models/create_user_badge_200_response.rs src/models/create_user_badge_params.rs +src/models/create_v1_page_react.rs src/models/custom_config_parameters.rs src/models/custom_email_template.rs -src/models/delete_comment_200_response.rs src/models/delete_comment_action.rs -src/models/delete_comment_public_200_response.rs src/models/delete_comment_result.rs -src/models/delete_comment_vote_200_response.rs -src/models/delete_domain_config_200_response.rs -src/models/delete_feed_post_public_200_response.rs -src/models/delete_feed_post_public_200_response_any_of.rs -src/models/delete_hash_tag_request.rs +src/models/delete_domain_config_response.rs +src/models/delete_feed_post_public_response.rs +src/models/delete_hash_tag_request_body.rs src/models/delete_page_api_response.rs src/models/delete_sso_user_api_response.rs src/models/delete_subscription_api_response.rs @@ -511,127 +516,125 @@ src/models/feed_post_stats.rs src/models/feed_posts_stats_response.rs src/models/find_comments_by_range_item.rs src/models/find_comments_by_range_response.rs -src/models/flag_comment_200_response.rs -src/models/flag_comment_public_200_response.rs src/models/flag_comment_response.rs -src/models/get_audit_logs_200_response.rs src/models/get_audit_logs_response.rs -src/models/get_cached_notification_count_200_response.rs +src/models/get_banned_users_count_response.rs +src/models/get_banned_users_from_comment_response.rs src/models/get_cached_notification_count_response.rs -src/models/get_comment_200_response.rs -src/models/get_comment_text_200_response.rs -src/models/get_comment_vote_user_names_200_response.rs +src/models/get_comment_ban_status_response.rs +src/models/get_comment_text_response.rs src/models/get_comment_vote_user_names_success_response.rs -src/models/get_comments_200_response.rs -src/models/get_comments_public_200_response.rs +src/models/get_comments_for_user_response.rs src/models/get_comments_response_public_comment_.rs src/models/get_comments_response_with_presence_public_comment_.rs -src/models/get_domain_config_200_response.rs -src/models/get_domain_configs_200_response.rs -src/models/get_domain_configs_200_response_any_of.rs -src/models/get_domain_configs_200_response_any_of_1.rs -src/models/get_email_template_200_response.rs -src/models/get_email_template_definitions_200_response.rs +src/models/get_domain_config_response.rs +src/models/get_domain_configs_response.rs +src/models/get_domain_configs_response_any_of.rs +src/models/get_domain_configs_response_any_of_1.rs src/models/get_email_template_definitions_response.rs -src/models/get_email_template_render_errors_200_response.rs src/models/get_email_template_render_errors_response.rs src/models/get_email_template_response.rs -src/models/get_email_templates_200_response.rs src/models/get_email_templates_response.rs -src/models/get_event_log_200_response.rs src/models/get_event_log_response.rs -src/models/get_feed_posts_200_response.rs -src/models/get_feed_posts_public_200_response.rs src/models/get_feed_posts_response.rs -src/models/get_feed_posts_stats_200_response.rs -src/models/get_hash_tags_200_response.rs +src/models/get_gifs_search_response.rs +src/models/get_gifs_trending_response.rs src/models/get_hash_tags_response.rs -src/models/get_moderator_200_response.rs src/models/get_moderator_response.rs -src/models/get_moderators_200_response.rs src/models/get_moderators_response.rs src/models/get_my_notifications_response.rs -src/models/get_notification_count_200_response.rs src/models/get_notification_count_response.rs -src/models/get_notifications_200_response.rs src/models/get_notifications_response.rs src/models/get_page_by_urlid_api_response.rs src/models/get_pages_api_response.rs -src/models/get_pending_webhook_event_count_200_response.rs src/models/get_pending_webhook_event_count_response.rs -src/models/get_pending_webhook_events_200_response.rs src/models/get_pending_webhook_events_response.rs src/models/get_public_feed_posts_response.rs -src/models/get_question_config_200_response.rs +src/models/get_public_pages_response.rs src/models/get_question_config_response.rs -src/models/get_question_configs_200_response.rs src/models/get_question_configs_response.rs -src/models/get_question_result_200_response.rs src/models/get_question_result_response.rs -src/models/get_question_results_200_response.rs src/models/get_question_results_response.rs src/models/get_sso_user_by_email_api_response.rs src/models/get_sso_user_by_id_api_response.rs -src/models/get_sso_users_200_response.rs +src/models/get_sso_users_response.rs src/models/get_subscriptions_api_response.rs -src/models/get_tenant_200_response.rs -src/models/get_tenant_daily_usages_200_response.rs src/models/get_tenant_daily_usages_response.rs -src/models/get_tenant_package_200_response.rs +src/models/get_tenant_manual_badges_response.rs src/models/get_tenant_package_response.rs -src/models/get_tenant_packages_200_response.rs src/models/get_tenant_packages_response.rs src/models/get_tenant_response.rs -src/models/get_tenant_user_200_response.rs src/models/get_tenant_user_response.rs -src/models/get_tenant_users_200_response.rs src/models/get_tenant_users_response.rs -src/models/get_tenants_200_response.rs src/models/get_tenants_response.rs -src/models/get_ticket_200_response.rs src/models/get_ticket_response.rs -src/models/get_tickets_200_response.rs src/models/get_tickets_response.rs -src/models/get_user_200_response.rs -src/models/get_user_badge_200_response.rs -src/models/get_user_badge_progress_by_id_200_response.rs -src/models/get_user_badge_progress_list_200_response.rs -src/models/get_user_badges_200_response.rs -src/models/get_user_notification_count_200_response.rs +src/models/get_translations_response.rs +src/models/get_user_internal_profile_response.rs +src/models/get_user_internal_profile_response_profile.rs +src/models/get_user_manual_badges_response.rs src/models/get_user_notification_count_response.rs -src/models/get_user_notifications_200_response.rs -src/models/get_user_presence_statuses_200_response.rs src/models/get_user_presence_statuses_response.rs -src/models/get_user_reacts_public_200_response.rs src/models/get_user_response.rs -src/models/get_votes_200_response.rs -src/models/get_votes_for_user_200_response.rs +src/models/get_user_trust_factor_response.rs +src/models/get_v1_page_likes.rs +src/models/get_v2_page_react_users_response.rs +src/models/get_v2_page_reacts.rs src/models/get_votes_for_user_response.rs src/models/get_votes_response.rs +src/models/gif_get_large_response.rs src/models/gif_rating.rs +src/models/gif_search_internal_error.rs +src/models/gif_search_response.rs +src/models/gif_search_response_images_inner_inner.rs src/models/header_account_notification.rs src/models/header_state.rs src/models/ignored_response.rs src/models/image_content_profanity_level.rs +src/models/imported_agent_approval_notification_frequency.rs src/models/imported_site_type.rs src/models/live_event.rs src/models/live_event_extra_info.rs src/models/live_event_type.rs -src/models/lock_comment_200_response.rs src/models/media_asset.rs src/models/mention_auto_complete_mode.rs src/models/meta_item.rs src/models/mod.rs +src/models/moderation_api_child_comments_response.rs +src/models/moderation_api_comment.rs +src/models/moderation_api_comment_log.rs +src/models/moderation_api_comment_response.rs +src/models/moderation_api_count_comments_response.rs +src/models/moderation_api_get_comment_ids_response.rs +src/models/moderation_api_get_comments_response.rs +src/models/moderation_api_get_logs_response.rs +src/models/moderation_comment_search_response.rs +src/models/moderation_export_response.rs +src/models/moderation_export_status_response.rs +src/models/moderation_filter.rs +src/models/moderation_page_search_projected.rs +src/models/moderation_page_search_response.rs +src/models/moderation_site_search_projected.rs +src/models/moderation_site_search_response.rs +src/models/moderation_suggest_response.rs +src/models/moderation_user_search_projected.rs +src/models/moderation_user_search_response.rs src/models/moderator.rs src/models/notification_and_count.rs src/models/notification_object_type.rs src/models/notification_type.rs +src/models/page_user_entry.rs +src/models/page_users_info_response.rs +src/models/page_users_offline_response.rs +src/models/page_users_online_response.rs +src/models/pages_sort_by.rs src/models/patch_domain_config_params.rs -src/models/patch_hash_tag_200_response.rs +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/pin_comment_200_response.rs +src/models/post_remove_comment_response.rs +src/models/pre_ban_summary.rs src/models/pub_sub_comment.rs src/models/pub_sub_comment_base.rs src/models/pub_sub_vote.rs @@ -642,7 +645,9 @@ src/models/public_block_from_comment_params.rs src/models/public_comment.rs src/models/public_comment_base.rs src/models/public_feed_posts_response.rs +src/models/public_page.rs src/models/public_vote.rs +src/models/put_domain_config_response.rs src/models/put_sso_user_api_response.rs src/models/query_predicate.rs src/models/query_predicate_value.rs @@ -655,11 +660,10 @@ src/models/question_result_aggregation_overall.rs src/models/question_sub_question_visibility.rs src/models/question_when_save.rs src/models/react_body_params.rs -src/models/react_feed_post_public_200_response.rs src/models/react_feed_post_response.rs src/models/record_string__before_string_or_null__after_string_or_null___value.rs -src/models/record_string_string_or_number__value.rs -src/models/render_email_template_200_response.rs +src/models/remove_comment_action_response.rs +src/models/remove_user_badge_response.rs src/models/render_email_template_body.rs src/models/render_email_template_response.rs src/models/renderable_user_notification.rs @@ -667,26 +671,27 @@ src/models/repeat_comment_check_ignored_reason.rs src/models/repeat_comment_handling_action.rs src/models/replace_tenant_package_body.rs src/models/replace_tenant_user_body.rs -src/models/reset_user_notifications_200_response.rs src/models/reset_user_notifications_response.rs -src/models/save_comment_200_response.rs -src/models/save_comment_response.rs src/models/save_comment_response_optimized.rs +src/models/save_comments_bulk_response.rs src/models/save_comments_response_with_presence.rs -src/models/search_users_200_response.rs src/models/search_users_response.rs +src/models/search_users_result.rs src/models/search_users_sectioned_response.rs -src/models/set_comment_text_200_response.rs +src/models/set_comment_approved_response.rs +src/models/set_comment_text_params.rs +src/models/set_comment_text_response.rs src/models/set_comment_text_result.rs +src/models/set_user_trust_factor_response.rs src/models/size_preset.rs src/models/sort_dir.rs src/models/sort_directions.rs src/models/spam_rule.rs src/models/sso_security_level.rs +src/models/tenant_badge.rs src/models/tenant_hash_tag.rs src/models/tenant_package.rs src/models/tos_config.rs -src/models/un_block_comment_public_200_response.rs src/models/un_block_from_comment_params.rs src/models/unblock_success.rs src/models/updatable_comment_params.rs @@ -706,9 +711,10 @@ src/models/update_subscription_api_response.rs src/models/update_tenant_body.rs src/models/update_tenant_package_body.rs src/models/update_tenant_user_body.rs -src/models/update_user_badge_200_response.rs src/models/update_user_badge_params.rs -src/models/update_user_notification_status_200_response.rs +src/models/update_user_notification_comment_subscription_status_response.rs +src/models/update_user_notification_page_subscription_status_response.rs +src/models/update_user_notification_status_response.rs src/models/upload_image_response.rs src/models/user.rs src/models/user_badge.rs @@ -722,8 +728,8 @@ src/models/user_search_result.rs src/models/user_search_section.rs src/models/user_search_section_result.rs src/models/user_session_info.rs +src/models/users_list_location.rs src/models/vote_body_params.rs -src/models/vote_comment_200_response.rs src/models/vote_delete_response.rs src/models/vote_response.rs src/models/vote_response_user.rs diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index 909dcd0..ca7bf6e 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.19.0-SNAPSHOT +7.23.0-SNAPSHOT diff --git a/client/README.md b/client/README.md index a124c09..f2ee83d 100644 --- a/client/README.md +++ b/client/README.md @@ -8,8 +8,8 @@ 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.0 -- Generator version: 7.19.0-SNAPSHOT +- Package version: 1.3.1 +- Generator version: 7.23.0-SNAPSHOT - Build package: `org.openapitools.codegen.languages.RustClientCodegen` ## Installation @@ -140,26 +140,86 @@ 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 | *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} | *PublicApi* | [**create_feed_post_public**](docs/PublicApi.md#create_feed_post_public) | **POST** /feed-posts/{tenantId} | +*PublicApi* | [**create_v1_page_react**](docs/PublicApi.md#create_v1_page_react) | **POST** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**create_v2_page_react**](docs/PublicApi.md#create_v2_page_react) | **POST** /page-reacts/v2/{tenantId} | *PublicApi* | [**delete_comment_public**](docs/PublicApi.md#delete_comment_public) | **DELETE** /comments/{tenantId}/{commentId} | *PublicApi* | [**delete_comment_vote**](docs/PublicApi.md#delete_comment_vote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | *PublicApi* | [**delete_feed_post_public**](docs/PublicApi.md#delete_feed_post_public) | **DELETE** /feed-posts/{tenantId}/{postId} | +*PublicApi* | [**delete_v1_page_react**](docs/PublicApi.md#delete_v1_page_react) | **DELETE** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**delete_v2_page_react**](docs/PublicApi.md#delete_v2_page_react) | **DELETE** /page-reacts/v2/{tenantId} | *PublicApi* | [**flag_comment_public**](docs/PublicApi.md#flag_comment_public) | **POST** /flag-comment/{commentId} | *PublicApi* | [**get_comment_text**](docs/PublicApi.md#get_comment_text) | **GET** /comments/{tenantId}/{commentId}/text | *PublicApi* | [**get_comment_vote_user_names**](docs/PublicApi.md#get_comment_vote_user_names) | **GET** /comments/{tenantId}/{commentId}/votes | +*PublicApi* | [**get_comments_for_user**](docs/PublicApi.md#get_comments_for_user) | **GET** /comments-for-user | *PublicApi* | [**get_comments_public**](docs/PublicApi.md#get_comments_public) | **GET** /comments/{tenantId} | *PublicApi* | [**get_event_log**](docs/PublicApi.md#get_event_log) | **GET** /event-log/{tenantId} | *PublicApi* | [**get_feed_posts_public**](docs/PublicApi.md#get_feed_posts_public) | **GET** /feed-posts/{tenantId} | *PublicApi* | [**get_feed_posts_stats**](docs/PublicApi.md#get_feed_posts_stats) | **GET** /feed-posts/{tenantId}/stats | +*PublicApi* | [**get_gif_large**](docs/PublicApi.md#get_gif_large) | **GET** /gifs/get-large/{tenantId} | +*PublicApi* | [**get_gifs_search**](docs/PublicApi.md#get_gifs_search) | **GET** /gifs/search/{tenantId} | +*PublicApi* | [**get_gifs_trending**](docs/PublicApi.md#get_gifs_trending) | **GET** /gifs/trending/{tenantId} | *PublicApi* | [**get_global_event_log**](docs/PublicApi.md#get_global_event_log) | **GET** /event-log/global/{tenantId} | +*PublicApi* | [**get_offline_users**](docs/PublicApi.md#get_offline_users) | **GET** /pages/{tenantId}/users/offline | +*PublicApi* | [**get_online_users**](docs/PublicApi.md#get_online_users) | **GET** /pages/{tenantId}/users/online | +*PublicApi* | [**get_pages_public**](docs/PublicApi.md#get_pages_public) | **GET** /pages/{tenantId} | +*PublicApi* | [**get_translations**](docs/PublicApi.md#get_translations) | **GET** /translations/{namespace}/{component} | *PublicApi* | [**get_user_notification_count**](docs/PublicApi.md#get_user_notification_count) | **GET** /user-notifications/get-count | *PublicApi* | [**get_user_notifications**](docs/PublicApi.md#get_user_notifications) | **GET** /user-notifications | *PublicApi* | [**get_user_presence_statuses**](docs/PublicApi.md#get_user_presence_statuses) | **GET** /user-presence-status | *PublicApi* | [**get_user_reacts_public**](docs/PublicApi.md#get_user_reacts_public) | **GET** /feed-posts/{tenantId}/user-reacts | +*PublicApi* | [**get_users_info**](docs/PublicApi.md#get_users_info) | **GET** /pages/{tenantId}/users/info | +*PublicApi* | [**get_v1_page_likes**](docs/PublicApi.md#get_v1_page_likes) | **GET** /page-reacts/v1/likes/{tenantId} | +*PublicApi* | [**get_v2_page_react_users**](docs/PublicApi.md#get_v2_page_react_users) | **GET** /page-reacts/v2/{tenantId}/list | +*PublicApi* | [**get_v2_page_reacts**](docs/PublicApi.md#get_v2_page_reacts) | **GET** /page-reacts/v2/{tenantId} | *PublicApi* | [**lock_comment**](docs/PublicApi.md#lock_comment) | **POST** /comments/{tenantId}/{commentId}/lock | +*PublicApi* | [**logout_public**](docs/PublicApi.md#logout_public) | **PUT** /auth/logout | *PublicApi* | [**pin_comment**](docs/PublicApi.md#pin_comment) | **POST** /comments/{tenantId}/{commentId}/pin | *PublicApi* | [**react_feed_post_public**](docs/PublicApi.md#react_feed_post_public) | **POST** /feed-posts/{tenantId}/react/{postId} | *PublicApi* | [**reset_user_notification_count**](docs/PublicApi.md#reset_user_notification_count) | **POST** /user-notifications/reset-count | @@ -179,16 +239,17 @@ Class | Method | HTTP request | Description ## Documentation For Models - - [AddDomainConfig200Response](docs/AddDomainConfig200Response.md) - - [AddDomainConfig200ResponseAnyOf](docs/AddDomainConfig200ResponseAnyOf.md) - [AddDomainConfigParams](docs/AddDomainConfigParams.md) - - [AddHashTag200Response](docs/AddHashTag200Response.md) - - [AddHashTagsBulk200Response](docs/AddHashTagsBulk200Response.md) + - [AddDomainConfigResponse](docs/AddDomainConfigResponse.md) + - [AddDomainConfigResponseAnyOf](docs/AddDomainConfigResponseAnyOf.md) - [AddPageApiResponse](docs/AddPageApiResponse.md) - [AddSsoUserApiResponse](docs/AddSsoUserApiResponse.md) - - [AggregateQuestionResults200Response](docs/AggregateQuestionResults200Response.md) + - [AdjustCommentVotesParams](docs/AdjustCommentVotesParams.md) + - [AdjustVotesResponse](docs/AdjustVotesResponse.md) - [AggregateQuestionResultsResponse](docs/AggregateQuestionResultsResponse.md) + - [AggregateResponse](docs/AggregateResponse.md) - [AggregateTimeBucket](docs/AggregateTimeBucket.md) + - [AggregationApiError](docs/AggregationApiError.md) - [AggregationItem](docs/AggregationItem.md) - [AggregationOpType](docs/AggregationOpType.md) - [AggregationOperation](docs/AggregationOperation.md) @@ -198,9 +259,14 @@ Class | Method | HTTP request | Description - [AggregationResponseStats](docs/AggregationResponseStats.md) - [AggregationValue](docs/AggregationValue.md) - [ApiAuditLog](docs/ApiAuditLog.md) + - [ApiBanUserChangeLog](docs/ApiBanUserChangeLog.md) + - [ApiBanUserChangedValues](docs/ApiBanUserChangedValues.md) + - [ApiBannedUser](docs/ApiBannedUser.md) + - [ApiBannedUserWithMultiMatchInfo](docs/ApiBannedUserWithMultiMatchInfo.md) - [ApiComment](docs/ApiComment.md) - [ApiCommentBase](docs/ApiCommentBase.md) - [ApiCommentBaseMeta](docs/ApiCommentBaseMeta.md) + - [ApiCommentCommonBannedUser](docs/ApiCommentCommonBannedUser.md) - [ApiCreateUserBadgeResponse](docs/ApiCreateUserBadgeResponse.md) - [ApiDomainConfiguration](docs/ApiDomainConfiguration.md) - [ApiEmptyResponse](docs/ApiEmptyResponse.md) @@ -212,7 +278,10 @@ Class | Method | HTTP request | Description - [ApiGetUserBadgeProgressResponse](docs/ApiGetUserBadgeProgressResponse.md) - [ApiGetUserBadgeResponse](docs/ApiGetUserBadgeResponse.md) - [ApiGetUserBadgesResponse](docs/ApiGetUserBadgesResponse.md) + - [ApiModerateGetUserBanPreferencesResponse](docs/ApiModerateGetUserBanPreferencesResponse.md) + - [ApiModerateUserBanPreferences](docs/ApiModerateUserBanPreferences.md) - [ApiPage](docs/ApiPage.md) + - [ApiSaveCommentResponse](docs/ApiSaveCommentResponse.md) - [ApiStatus](docs/ApiStatus.md) - [ApiTenant](docs/ApiTenant.md) - [ApiTenantDailyUsage](docs/ApiTenantDailyUsage.md) @@ -221,24 +290,30 @@ Class | Method | HTTP request | Description - [ApiTicketFile](docs/ApiTicketFile.md) - [ApiUserSubscription](docs/ApiUserSubscription.md) - [ApissoUser](docs/ApissoUser.md) + - [AwardUserBadgeResponse](docs/AwardUserBadgeResponse.md) + - [BanUserFromCommentResult](docs/BanUserFromCommentResult.md) + - [BanUserUndoParams](docs/BanUserUndoParams.md) + - [BannedUserMatch](docs/BannedUserMatch.md) + - [BannedUserMatchMatchedOnValue](docs/BannedUserMatchMatchedOnValue.md) + - [BannedUserMatchType](docs/BannedUserMatchType.md) - [BillingInfo](docs/BillingInfo.md) - [BlockFromCommentParams](docs/BlockFromCommentParams.md) - - [BlockFromCommentPublic200Response](docs/BlockFromCommentPublic200Response.md) - [BlockSuccess](docs/BlockSuccess.md) + - [BuildModerationFilterParams](docs/BuildModerationFilterParams.md) + - [BuildModerationFilterResponse](docs/BuildModerationFilterResponse.md) - [BulkAggregateQuestionItem](docs/BulkAggregateQuestionItem.md) - - [BulkAggregateQuestionResults200Response](docs/BulkAggregateQuestionResults200Response.md) - [BulkAggregateQuestionResultsRequest](docs/BulkAggregateQuestionResultsRequest.md) - [BulkAggregateQuestionResultsResponse](docs/BulkAggregateQuestionResultsResponse.md) - [BulkCreateHashTagsBody](docs/BulkCreateHashTagsBody.md) - [BulkCreateHashTagsBodyTagsInner](docs/BulkCreateHashTagsBodyTagsInner.md) - [BulkCreateHashTagsResponse](docs/BulkCreateHashTagsResponse.md) + - [BulkCreateHashTagsResponseResultsInner](docs/BulkCreateHashTagsResponseResultsInner.md) + - [BulkPreBanParams](docs/BulkPreBanParams.md) + - [BulkPreBanSummary](docs/BulkPreBanSummary.md) - [ChangeCommentPinStatusResponse](docs/ChangeCommentPinStatusResponse.md) - - [ChangeTicketState200Response](docs/ChangeTicketState200Response.md) - [ChangeTicketStateBody](docs/ChangeTicketStateBody.md) - [ChangeTicketStateResponse](docs/ChangeTicketStateResponse.md) - [CheckBlockedCommentsResponse](docs/CheckBlockedCommentsResponse.md) - - [CheckedCommentsForBlocked200Response](docs/CheckedCommentsForBlocked200Response.md) - - [CombineCommentsWithQuestionResults200Response](docs/CombineCommentsWithQuestionResults200Response.md) - [CombineQuestionResultsWithCommentsResponse](docs/CombineQuestionResultsWithCommentsResponse.md) - [CommentData](docs/CommentData.md) - [CommentHtmlRenderingMode](docs/CommentHtmlRenderingMode.md) @@ -253,56 +328,42 @@ Class | Method | HTTP request | Description - [CommentUserHashTagInfo](docs/CommentUserHashTagInfo.md) - [CommentUserMentionInfo](docs/CommentUserMentionInfo.md) - [CommenterNameFormats](docs/CommenterNameFormats.md) + - [CommentsByIdsParams](docs/CommentsByIdsParams.md) - [CreateApiPageData](docs/CreateApiPageData.md) - [CreateApiUserSubscriptionData](docs/CreateApiUserSubscriptionData.md) - [CreateApissoUserData](docs/CreateApissoUserData.md) - [CreateCommentParams](docs/CreateCommentParams.md) - - [CreateCommentPublic200Response](docs/CreateCommentPublic200Response.md) - - [CreateEmailTemplate200Response](docs/CreateEmailTemplate200Response.md) - [CreateEmailTemplateBody](docs/CreateEmailTemplateBody.md) - [CreateEmailTemplateResponse](docs/CreateEmailTemplateResponse.md) - - [CreateFeedPost200Response](docs/CreateFeedPost200Response.md) - [CreateFeedPostParams](docs/CreateFeedPostParams.md) - - [CreateFeedPostPublic200Response](docs/CreateFeedPostPublic200Response.md) - [CreateFeedPostResponse](docs/CreateFeedPostResponse.md) - [CreateFeedPostsResponse](docs/CreateFeedPostsResponse.md) - [CreateHashTagBody](docs/CreateHashTagBody.md) - [CreateHashTagResponse](docs/CreateHashTagResponse.md) - - [CreateModerator200Response](docs/CreateModerator200Response.md) - [CreateModeratorBody](docs/CreateModeratorBody.md) - [CreateModeratorResponse](docs/CreateModeratorResponse.md) - - [CreateQuestionConfig200Response](docs/CreateQuestionConfig200Response.md) - [CreateQuestionConfigBody](docs/CreateQuestionConfigBody.md) - [CreateQuestionConfigResponse](docs/CreateQuestionConfigResponse.md) - - [CreateQuestionResult200Response](docs/CreateQuestionResult200Response.md) - [CreateQuestionResultBody](docs/CreateQuestionResultBody.md) - [CreateQuestionResultResponse](docs/CreateQuestionResultResponse.md) - [CreateSubscriptionApiResponse](docs/CreateSubscriptionApiResponse.md) - - [CreateTenant200Response](docs/CreateTenant200Response.md) - [CreateTenantBody](docs/CreateTenantBody.md) - - [CreateTenantPackage200Response](docs/CreateTenantPackage200Response.md) - [CreateTenantPackageBody](docs/CreateTenantPackageBody.md) - [CreateTenantPackageResponse](docs/CreateTenantPackageResponse.md) - [CreateTenantResponse](docs/CreateTenantResponse.md) - - [CreateTenantUser200Response](docs/CreateTenantUser200Response.md) - [CreateTenantUserBody](docs/CreateTenantUserBody.md) - [CreateTenantUserResponse](docs/CreateTenantUserResponse.md) - - [CreateTicket200Response](docs/CreateTicket200Response.md) - [CreateTicketBody](docs/CreateTicketBody.md) - [CreateTicketResponse](docs/CreateTicketResponse.md) - - [CreateUserBadge200Response](docs/CreateUserBadge200Response.md) - [CreateUserBadgeParams](docs/CreateUserBadgeParams.md) + - [CreateV1PageReact](docs/CreateV1PageReact.md) - [CustomConfigParameters](docs/CustomConfigParameters.md) - [CustomEmailTemplate](docs/CustomEmailTemplate.md) - - [DeleteComment200Response](docs/DeleteComment200Response.md) - [DeleteCommentAction](docs/DeleteCommentAction.md) - - [DeleteCommentPublic200Response](docs/DeleteCommentPublic200Response.md) - [DeleteCommentResult](docs/DeleteCommentResult.md) - - [DeleteCommentVote200Response](docs/DeleteCommentVote200Response.md) - - [DeleteDomainConfig200Response](docs/DeleteDomainConfig200Response.md) - - [DeleteFeedPostPublic200Response](docs/DeleteFeedPostPublic200Response.md) - - [DeleteFeedPostPublic200ResponseAnyOf](docs/DeleteFeedPostPublic200ResponseAnyOf.md) - - [DeleteHashTagRequest](docs/DeleteHashTagRequest.md) + - [DeleteDomainConfigResponse](docs/DeleteDomainConfigResponse.md) + - [DeleteFeedPostPublicResponse](docs/DeleteFeedPostPublicResponse.md) + - [DeleteHashTagRequestBody](docs/DeleteHashTagRequestBody.md) - [DeletePageApiResponse](docs/DeletePageApiResponse.md) - [DeleteSsoUserApiResponse](docs/DeleteSsoUserApiResponse.md) - [DeleteSubscriptionApiResponse](docs/DeleteSubscriptionApiResponse.md) @@ -321,126 +382,124 @@ Class | Method | HTTP request | Description - [FeedPostsStatsResponse](docs/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](docs/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](docs/FindCommentsByRangeResponse.md) - - [FlagComment200Response](docs/FlagComment200Response.md) - - [FlagCommentPublic200Response](docs/FlagCommentPublic200Response.md) - [FlagCommentResponse](docs/FlagCommentResponse.md) - - [GetAuditLogs200Response](docs/GetAuditLogs200Response.md) - [GetAuditLogsResponse](docs/GetAuditLogsResponse.md) - - [GetCachedNotificationCount200Response](docs/GetCachedNotificationCount200Response.md) + - [GetBannedUsersCountResponse](docs/GetBannedUsersCountResponse.md) + - [GetBannedUsersFromCommentResponse](docs/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) - - [GetComment200Response](docs/GetComment200Response.md) - - [GetCommentText200Response](docs/GetCommentText200Response.md) - - [GetCommentVoteUserNames200Response](docs/GetCommentVoteUserNames200Response.md) + - [GetCommentBanStatusResponse](docs/GetCommentBanStatusResponse.md) + - [GetCommentTextResponse](docs/GetCommentTextResponse.md) - [GetCommentVoteUserNamesSuccessResponse](docs/GetCommentVoteUserNamesSuccessResponse.md) - - [GetComments200Response](docs/GetComments200Response.md) - - [GetCommentsPublic200Response](docs/GetCommentsPublic200Response.md) + - [GetCommentsForUserResponse](docs/GetCommentsForUserResponse.md) - [GetCommentsResponsePublicComment](docs/GetCommentsResponsePublicComment.md) - [GetCommentsResponseWithPresencePublicComment](docs/GetCommentsResponseWithPresencePublicComment.md) - - [GetDomainConfig200Response](docs/GetDomainConfig200Response.md) - - [GetDomainConfigs200Response](docs/GetDomainConfigs200Response.md) - - [GetDomainConfigs200ResponseAnyOf](docs/GetDomainConfigs200ResponseAnyOf.md) - - [GetDomainConfigs200ResponseAnyOf1](docs/GetDomainConfigs200ResponseAnyOf1.md) - - [GetEmailTemplate200Response](docs/GetEmailTemplate200Response.md) - - [GetEmailTemplateDefinitions200Response](docs/GetEmailTemplateDefinitions200Response.md) + - [GetDomainConfigResponse](docs/GetDomainConfigResponse.md) + - [GetDomainConfigsResponse](docs/GetDomainConfigsResponse.md) + - [GetDomainConfigsResponseAnyOf](docs/GetDomainConfigsResponseAnyOf.md) + - [GetDomainConfigsResponseAnyOf1](docs/GetDomainConfigsResponseAnyOf1.md) - [GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) - - [GetEmailTemplateRenderErrors200Response](docs/GetEmailTemplateRenderErrors200Response.md) - [GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) - [GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) - - [GetEmailTemplates200Response](docs/GetEmailTemplates200Response.md) - [GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) - - [GetEventLog200Response](docs/GetEventLog200Response.md) - [GetEventLogResponse](docs/GetEventLogResponse.md) - - [GetFeedPosts200Response](docs/GetFeedPosts200Response.md) - - [GetFeedPostsPublic200Response](docs/GetFeedPostsPublic200Response.md) - [GetFeedPostsResponse](docs/GetFeedPostsResponse.md) - - [GetFeedPostsStats200Response](docs/GetFeedPostsStats200Response.md) - - [GetHashTags200Response](docs/GetHashTags200Response.md) + - [GetGifsSearchResponse](docs/GetGifsSearchResponse.md) + - [GetGifsTrendingResponse](docs/GetGifsTrendingResponse.md) - [GetHashTagsResponse](docs/GetHashTagsResponse.md) - - [GetModerator200Response](docs/GetModerator200Response.md) - [GetModeratorResponse](docs/GetModeratorResponse.md) - - [GetModerators200Response](docs/GetModerators200Response.md) - [GetModeratorsResponse](docs/GetModeratorsResponse.md) - [GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) - - [GetNotificationCount200Response](docs/GetNotificationCount200Response.md) - [GetNotificationCountResponse](docs/GetNotificationCountResponse.md) - - [GetNotifications200Response](docs/GetNotifications200Response.md) - [GetNotificationsResponse](docs/GetNotificationsResponse.md) - [GetPageByUrlidApiResponse](docs/GetPageByUrlidApiResponse.md) - [GetPagesApiResponse](docs/GetPagesApiResponse.md) - - [GetPendingWebhookEventCount200Response](docs/GetPendingWebhookEventCount200Response.md) - [GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) - - [GetPendingWebhookEvents200Response](docs/GetPendingWebhookEvents200Response.md) - [GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) - [GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) - - [GetQuestionConfig200Response](docs/GetQuestionConfig200Response.md) + - [GetPublicPagesResponse](docs/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) - - [GetQuestionConfigs200Response](docs/GetQuestionConfigs200Response.md) - [GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) - - [GetQuestionResult200Response](docs/GetQuestionResult200Response.md) - [GetQuestionResultResponse](docs/GetQuestionResultResponse.md) - - [GetQuestionResults200Response](docs/GetQuestionResults200Response.md) - [GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) - [GetSsoUserByEmailApiResponse](docs/GetSsoUserByEmailApiResponse.md) - [GetSsoUserByIdApiResponse](docs/GetSsoUserByIdApiResponse.md) - - [GetSsoUsers200Response](docs/GetSsoUsers200Response.md) + - [GetSsoUsersResponse](docs/GetSsoUsersResponse.md) - [GetSubscriptionsApiResponse](docs/GetSubscriptionsApiResponse.md) - - [GetTenant200Response](docs/GetTenant200Response.md) - - [GetTenantDailyUsages200Response](docs/GetTenantDailyUsages200Response.md) - [GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) - - [GetTenantPackage200Response](docs/GetTenantPackage200Response.md) + - [GetTenantManualBadgesResponse](docs/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](docs/GetTenantPackageResponse.md) - - [GetTenantPackages200Response](docs/GetTenantPackages200Response.md) - [GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) - [GetTenantResponse](docs/GetTenantResponse.md) - - [GetTenantUser200Response](docs/GetTenantUser200Response.md) - [GetTenantUserResponse](docs/GetTenantUserResponse.md) - - [GetTenantUsers200Response](docs/GetTenantUsers200Response.md) - [GetTenantUsersResponse](docs/GetTenantUsersResponse.md) - - [GetTenants200Response](docs/GetTenants200Response.md) - [GetTenantsResponse](docs/GetTenantsResponse.md) - - [GetTicket200Response](docs/GetTicket200Response.md) - [GetTicketResponse](docs/GetTicketResponse.md) - - [GetTickets200Response](docs/GetTickets200Response.md) - [GetTicketsResponse](docs/GetTicketsResponse.md) - - [GetUser200Response](docs/GetUser200Response.md) - - [GetUserBadge200Response](docs/GetUserBadge200Response.md) - - [GetUserBadgeProgressById200Response](docs/GetUserBadgeProgressById200Response.md) - - [GetUserBadgeProgressList200Response](docs/GetUserBadgeProgressList200Response.md) - - [GetUserBadges200Response](docs/GetUserBadges200Response.md) - - [GetUserNotificationCount200Response](docs/GetUserNotificationCount200Response.md) + - [GetTranslationsResponse](docs/GetTranslationsResponse.md) + - [GetUserInternalProfileResponse](docs/GetUserInternalProfileResponse.md) + - [GetUserInternalProfileResponseProfile](docs/GetUserInternalProfileResponseProfile.md) + - [GetUserManualBadgesResponse](docs/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](docs/GetUserNotificationCountResponse.md) - - [GetUserNotifications200Response](docs/GetUserNotifications200Response.md) - - [GetUserPresenceStatuses200Response](docs/GetUserPresenceStatuses200Response.md) - [GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) - - [GetUserReactsPublic200Response](docs/GetUserReactsPublic200Response.md) - [GetUserResponse](docs/GetUserResponse.md) - - [GetVotes200Response](docs/GetVotes200Response.md) - - [GetVotesForUser200Response](docs/GetVotesForUser200Response.md) + - [GetUserTrustFactorResponse](docs/GetUserTrustFactorResponse.md) + - [GetV1PageLikes](docs/GetV1PageLikes.md) + - [GetV2PageReactUsersResponse](docs/GetV2PageReactUsersResponse.md) + - [GetV2PageReacts](docs/GetV2PageReacts.md) - [GetVotesForUserResponse](docs/GetVotesForUserResponse.md) - [GetVotesResponse](docs/GetVotesResponse.md) + - [GifGetLargeResponse](docs/GifGetLargeResponse.md) - [GifRating](docs/GifRating.md) + - [GifSearchInternalError](docs/GifSearchInternalError.md) + - [GifSearchResponse](docs/GifSearchResponse.md) + - [GifSearchResponseImagesInnerInner](docs/GifSearchResponseImagesInnerInner.md) - [HeaderAccountNotification](docs/HeaderAccountNotification.md) - [HeaderState](docs/HeaderState.md) - [IgnoredResponse](docs/IgnoredResponse.md) - [ImageContentProfanityLevel](docs/ImageContentProfanityLevel.md) + - [ImportedAgentApprovalNotificationFrequency](docs/ImportedAgentApprovalNotificationFrequency.md) - [ImportedSiteType](docs/ImportedSiteType.md) - [LiveEvent](docs/LiveEvent.md) - [LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [LiveEventType](docs/LiveEventType.md) - - [LockComment200Response](docs/LockComment200Response.md) - [MediaAsset](docs/MediaAsset.md) - [MentionAutoCompleteMode](docs/MentionAutoCompleteMode.md) - [MetaItem](docs/MetaItem.md) + - [ModerationApiChildCommentsResponse](docs/ModerationApiChildCommentsResponse.md) + - [ModerationApiComment](docs/ModerationApiComment.md) + - [ModerationApiCommentLog](docs/ModerationApiCommentLog.md) + - [ModerationApiCommentResponse](docs/ModerationApiCommentResponse.md) + - [ModerationApiCountCommentsResponse](docs/ModerationApiCountCommentsResponse.md) + - [ModerationApiGetCommentIdsResponse](docs/ModerationApiGetCommentIdsResponse.md) + - [ModerationApiGetCommentsResponse](docs/ModerationApiGetCommentsResponse.md) + - [ModerationApiGetLogsResponse](docs/ModerationApiGetLogsResponse.md) + - [ModerationCommentSearchResponse](docs/ModerationCommentSearchResponse.md) + - [ModerationExportResponse](docs/ModerationExportResponse.md) + - [ModerationExportStatusResponse](docs/ModerationExportStatusResponse.md) + - [ModerationFilter](docs/ModerationFilter.md) + - [ModerationPageSearchProjected](docs/ModerationPageSearchProjected.md) + - [ModerationPageSearchResponse](docs/ModerationPageSearchResponse.md) + - [ModerationSiteSearchProjected](docs/ModerationSiteSearchProjected.md) + - [ModerationSiteSearchResponse](docs/ModerationSiteSearchResponse.md) + - [ModerationSuggestResponse](docs/ModerationSuggestResponse.md) + - [ModerationUserSearchProjected](docs/ModerationUserSearchProjected.md) + - [ModerationUserSearchResponse](docs/ModerationUserSearchResponse.md) - [Moderator](docs/Moderator.md) - [NotificationAndCount](docs/NotificationAndCount.md) - [NotificationObjectType](docs/NotificationObjectType.md) - [NotificationType](docs/NotificationType.md) + - [PageUserEntry](docs/PageUserEntry.md) + - [PageUsersInfoResponse](docs/PageUsersInfoResponse.md) + - [PageUsersOfflineResponse](docs/PageUsersOfflineResponse.md) + - [PageUsersOnlineResponse](docs/PageUsersOnlineResponse.md) + - [PagesSortBy](docs/PagesSortBy.md) - [PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - - [PatchHashTag200Response](docs/PatchHashTag200Response.md) + - [PatchDomainConfigResponse](docs/PatchDomainConfigResponse.md) - [PatchPageApiResponse](docs/PatchPageApiResponse.md) - [PatchSsoUserApiResponse](docs/PatchSsoUserApiResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PinComment200Response](docs/PinComment200Response.md) + - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) - [PubSubVote](docs/PubSubVote.md) @@ -451,7 +510,9 @@ Class | Method | HTTP request | Description - [PublicComment](docs/PublicComment.md) - [PublicCommentBase](docs/PublicCommentBase.md) - [PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) + - [PublicPage](docs/PublicPage.md) - [PublicVote](docs/PublicVote.md) + - [PutDomainConfigResponse](docs/PutDomainConfigResponse.md) - [PutSsoUserApiResponse](docs/PutSsoUserApiResponse.md) - [QueryPredicate](docs/QueryPredicate.md) - [QueryPredicateValue](docs/QueryPredicateValue.md) @@ -464,11 +525,10 @@ Class | Method | HTTP request | Description - [QuestionSubQuestionVisibility](docs/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](docs/QuestionWhenSave.md) - [ReactBodyParams](docs/ReactBodyParams.md) - - [ReactFeedPostPublic200Response](docs/ReactFeedPostPublic200Response.md) - [ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - - [RecordStringStringOrNumberValue](docs/RecordStringStringOrNumberValue.md) - - [RenderEmailTemplate200Response](docs/RenderEmailTemplate200Response.md) + - [RemoveCommentActionResponse](docs/RemoveCommentActionResponse.md) + - [RemoveUserBadgeResponse](docs/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) - [RenderableUserNotification](docs/RenderableUserNotification.md) @@ -476,26 +536,27 @@ Class | Method | HTTP request | Description - [RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) - [ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) - - [ResetUserNotifications200Response](docs/ResetUserNotifications200Response.md) - [ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) - - [SaveComment200Response](docs/SaveComment200Response.md) - - [SaveCommentResponse](docs/SaveCommentResponse.md) - [SaveCommentResponseOptimized](docs/SaveCommentResponseOptimized.md) + - [SaveCommentsBulkResponse](docs/SaveCommentsBulkResponse.md) - [SaveCommentsResponseWithPresence](docs/SaveCommentsResponseWithPresence.md) - - [SearchUsers200Response](docs/SearchUsers200Response.md) - [SearchUsersResponse](docs/SearchUsersResponse.md) + - [SearchUsersResult](docs/SearchUsersResult.md) - [SearchUsersSectionedResponse](docs/SearchUsersSectionedResponse.md) - - [SetCommentText200Response](docs/SetCommentText200Response.md) + - [SetCommentApprovedResponse](docs/SetCommentApprovedResponse.md) + - [SetCommentTextParams](docs/SetCommentTextParams.md) + - [SetCommentTextResponse](docs/SetCommentTextResponse.md) - [SetCommentTextResult](docs/SetCommentTextResult.md) + - [SetUserTrustFactorResponse](docs/SetUserTrustFactorResponse.md) - [SizePreset](docs/SizePreset.md) - [SortDir](docs/SortDir.md) - [SortDirections](docs/SortDirections.md) - [SpamRule](docs/SpamRule.md) - [SsoSecurityLevel](docs/SsoSecurityLevel.md) + - [TenantBadge](docs/TenantBadge.md) - [TenantHashTag](docs/TenantHashTag.md) - [TenantPackage](docs/TenantPackage.md) - [TosConfig](docs/TosConfig.md) - - [UnBlockCommentPublic200Response](docs/UnBlockCommentPublic200Response.md) - [UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) - [UnblockSuccess](docs/UnblockSuccess.md) - [UpdatableCommentParams](docs/UpdatableCommentParams.md) @@ -515,9 +576,10 @@ Class | Method | HTTP request | Description - [UpdateTenantBody](docs/UpdateTenantBody.md) - [UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) - [UpdateTenantUserBody](docs/UpdateTenantUserBody.md) - - [UpdateUserBadge200Response](docs/UpdateUserBadge200Response.md) - [UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) - - [UpdateUserNotificationStatus200Response](docs/UpdateUserNotificationStatus200Response.md) + - [UpdateUserNotificationCommentSubscriptionStatusResponse](docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md) + - [UpdateUserNotificationPageSubscriptionStatusResponse](docs/UpdateUserNotificationPageSubscriptionStatusResponse.md) + - [UpdateUserNotificationStatusResponse](docs/UpdateUserNotificationStatusResponse.md) - [UploadImageResponse](docs/UploadImageResponse.md) - [User](docs/User.md) - [UserBadge](docs/UserBadge.md) @@ -531,8 +593,8 @@ Class | Method | HTTP request | Description - [UserSearchSection](docs/UserSearchSection.md) - [UserSearchSectionResult](docs/UserSearchSectionResult.md) - [UserSessionInfo](docs/UserSessionInfo.md) + - [UsersListLocation](docs/UsersListLocation.md) - [VoteBodyParams](docs/VoteBodyParams.md) - - [VoteComment200Response](docs/VoteComment200Response.md) - [VoteDeleteResponse](docs/VoteDeleteResponse.md) - [VoteResponse](docs/VoteResponse.md) - [VoteResponseUser](docs/VoteResponseUser.md) diff --git a/client/docs/AddDomainConfigResponse.md b/client/docs/AddDomainConfigResponse.md new file mode 100644 index 0000000..313eb9e --- /dev/null +++ b/client/docs/AddDomainConfigResponse.md @@ -0,0 +1,14 @@ +# AddDomainConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | Option<**String**> | | [optional] +**code** | Option<**String**> | | [optional] +**status** | Option<**serde_json::Value**> | | +**configuration** | Option<**serde_json::Value**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AddDomainConfigResponseAnyOf.md b/client/docs/AddDomainConfigResponseAnyOf.md new file mode 100644 index 0000000..43f2aaa --- /dev/null +++ b/client/docs/AddDomainConfigResponseAnyOf.md @@ -0,0 +1,12 @@ +# AddDomainConfigResponseAnyOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | Option<**serde_json::Value**> | | +**status** | Option<**serde_json::Value**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AddHashTag200Response.md b/client/docs/AddHashTag200Response.md deleted file mode 100644 index ee518c0..0000000 --- a/client/docs/AddHashTag200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# AddHashTag200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**hash_tag** | [**models::TenantHashTag**](TenantHashTag.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AddHashTagsBulk200Response.md b/client/docs/AddHashTagsBulk200Response.md deleted file mode 100644 index 920b869..0000000 --- a/client/docs/AddHashTagsBulk200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# AddHashTagsBulk200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**results** | [**Vec**](AddHashTag_200_response.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteDomainConfig200Response.md b/client/docs/AdjustCommentVotesParams.md similarity index 75% rename from client/docs/DeleteDomainConfig200Response.md rename to client/docs/AdjustCommentVotesParams.md index 2d39fb9..5f71d77 100644 --- a/client/docs/DeleteDomainConfig200Response.md +++ b/client/docs/AdjustCommentVotesParams.md @@ -1,10 +1,10 @@ -# DeleteDomainConfig200Response +# AdjustCommentVotesParams ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | Option<[**serde_json::Value**](.md)> | | +**adjust_vote_amount** | **f64** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/AdjustVotesResponse.md b/client/docs/AdjustVotesResponse.md new file mode 100644 index 0000000..716ee82 --- /dev/null +++ b/client/docs/AdjustVotesResponse.md @@ -0,0 +1,12 @@ +# AdjustVotesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**new_comment_votes** | **i32** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AggregateQuestionResults200Response.md b/client/docs/AggregateQuestionResults200Response.md deleted file mode 100644 index 3efe043..0000000 --- a/client/docs/AggregateQuestionResults200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# AggregateQuestionResults200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**data** | [**models::QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AggregateResponse.md b/client/docs/AggregateResponse.md new file mode 100644 index 0000000..ed9425d --- /dev/null +++ b/client/docs/AggregateResponse.md @@ -0,0 +1,16 @@ +# AggregateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | +**data** | Option<[**Vec**](AggregationItem.md)> | | [optional] +**stats** | Option<[**models::AggregationResponseStats**](AggregationResponseStats.md)> | | [optional] +**reason** | Option<**String**> | | [optional] +**code** | Option<**String**> | | [optional] +**valid_resource_names** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AddDomainConfig200Response.md b/client/docs/AggregationApiError.md similarity index 69% rename from client/docs/AddDomainConfig200Response.md rename to client/docs/AggregationApiError.md index 759f58e..902d601 100644 --- a/client/docs/AddDomainConfig200Response.md +++ b/client/docs/AggregationApiError.md @@ -1,13 +1,13 @@ -# AddDomainConfig200Response +# AggregationApiError ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | **reason** | **String** | | **code** | **String** | | -**status** | Option<[**serde_json::Value**](.md)> | | -**configuration** | Option<[**serde_json::Value**](.md)> | | +**valid_resource_names** | Option<**Vec**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/AggregationRequest.md b/client/docs/AggregationRequest.md index 80ce6de..ea17560 100644 --- a/client/docs/AggregationRequest.md +++ b/client/docs/AggregationRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **resource_name** | **String** | | **group_by** | Option<**Vec**> | | [optional] **operations** | [**Vec**](AggregationOperation.md) | | -**sort** | Option<[**models::AggregationRequestSort**](AggregationRequest_sort.md)> | | [optional] +**sort** | Option<[**models::AggregationRequestSort**](AggregationRequestSort.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/AggregationRequestSort.md b/client/docs/AggregationRequestSort.md index 15f7ef0..b174136 100644 --- a/client/docs/AggregationRequestSort.md +++ b/client/docs/AggregationRequestSort.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dir** | **String** | | +**dir** | **Dir** | (enum: asc, desc) | **field** | **String** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/AggregationResponse.md b/client/docs/AggregationResponse.md index 172b22b..8d2670a 100644 --- a/client/docs/AggregationResponse.md +++ b/client/docs/AggregationResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | **data** | [**Vec**](AggregationItem.md) | | -**stats** | Option<[**models::AggregationResponseStats**](AggregationResponse_stats.md)> | | [optional] +**stats** | Option<[**models::AggregationResponseStats**](AggregationResponseStats.md)> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ApiAuditLog.md b/client/docs/ApiAuditLog.md index 986cce4..a3770af 100644 --- a/client/docs/ApiAuditLog.md +++ b/client/docs/ApiAuditLog.md @@ -8,14 +8,14 @@ Name | Type | Description | Notes **user_id** | Option<**String**> | | [optional] **username** | Option<**String**> | | [optional] **resource_name** | **String** | | -**crud_type** | **String** | | -**from** | Option<**String**> | | [optional] +**crud_type** | **CrudType** | (enum: c, r, u, d, login) | +**from** | Option<**From**> | (enum: ui, api, cron) | [optional] **url** | Option<**String**> | | [optional] **ip** | Option<**String**> | | [optional] -**when** | Option<**String**> | | [optional] +**when** | Option<**chrono::DateTime**> | | [optional] **description** | Option<**String**> | | [optional] -**server_start_date** | Option<**String**> | | [optional] -**object_details** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] +**server_start_date** | Option<**chrono::DateTime**> | | [optional] +**object_details** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ApiBanUserChangeLog.md b/client/docs/ApiBanUserChangeLog.md new file mode 100644 index 0000000..e24cd58 --- /dev/null +++ b/client/docs/ApiBanUserChangeLog.md @@ -0,0 +1,14 @@ +# ApiBanUserChangeLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_banned_user_id** | Option<**String**> | | [optional] +**updated_banned_user_id** | Option<**String**> | | [optional] +**deleted_banned_users** | Option<[**Vec**](APIBannedUser.md)> | | [optional] +**changed_values_before** | Option<[**models::ApiBanUserChangedValues**](APIBanUserChangedValues.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ApiBanUserChangedValues.md b/client/docs/ApiBanUserChangedValues.md new file mode 100644 index 0000000..0b960d4 --- /dev/null +++ b/client/docs/ApiBanUserChangedValues.md @@ -0,0 +1,23 @@ +# ApiBanUserChangedValues + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_id** | Option<**String**> | | [optional] +**tenant_id** | Option<**String**> | | [optional] +**user_id** | Option<**String**> | | [optional] +**email** | Option<**String**> | | [optional] +**username** | Option<**String**> | | [optional] +**ip_hash** | Option<**String**> | | [optional] +**created_at** | Option<**chrono::DateTime**> | | [optional] +**banned_by_user_id** | Option<**String**> | | [optional] +**banned_comment_text** | Option<**String**> | | [optional] +**ban_type** | Option<**String**> | | [optional] +**banned_until** | Option<**chrono::DateTime**> | | [optional] +**has_email_wildcard** | Option<**bool**> | | [optional] +**ban_reason** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ApiBannedUser.md b/client/docs/ApiBannedUser.md new file mode 100644 index 0000000..c0ac76a --- /dev/null +++ b/client/docs/ApiBannedUser.md @@ -0,0 +1,23 @@ +# ApiBannedUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_id** | **String** | | +**tenant_id** | **String** | | +**user_id** | Option<**String**> | | [optional] +**email** | Option<**String**> | | [optional] +**username** | Option<**String**> | | [optional] +**ip_hash** | Option<**String**> | | [optional] +**created_at** | **chrono::DateTime** | | +**banned_by_user_id** | **String** | | +**banned_comment_text** | **String** | | +**ban_type** | **String** | | +**banned_until** | Option<**chrono::DateTime**> | | +**has_email_wildcard** | **bool** | | +**ban_reason** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ApiBannedUserWithMultiMatchInfo.md b/client/docs/ApiBannedUserWithMultiMatchInfo.md new file mode 100644 index 0000000..d69f25b --- /dev/null +++ b/client/docs/ApiBannedUserWithMultiMatchInfo.md @@ -0,0 +1,19 @@ +# ApiBannedUserWithMultiMatchInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_id** | **String** | | +**user_id** | Option<**String**> | | [optional] +**ban_type** | **String** | | +**email** | Option<**String**> | | [optional] +**ip_hash** | Option<**String**> | | [optional] +**banned_until** | Option<**chrono::DateTime**> | | +**has_email_wildcard** | **bool** | | +**ban_reason** | Option<**String**> | | [optional] +**matches** | [**Vec**](BannedUserMatch.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ApiComment.md b/client/docs/ApiComment.md index 01f4384..1d441e1 100644 --- a/client/docs/ApiComment.md +++ b/client/docs/ApiComment.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_id** | **String** | | +**id** | **String** | | **ai_determined_spam** | Option<**bool**> | | [optional] **anon_user_id** | Option<**String**> | | [optional] **approved** | **bool** | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes **domain** | Option<**String**> | | [optional] **external_id** | Option<**String**> | | [optional] **external_parent_id** | Option<**String**> | | [optional] -**expire_at** | Option<**String**> | | [optional] +**expire_at** | Option<**chrono::DateTime**> | | [optional] **feedback_ids** | Option<**Vec**> | | [optional] **flag_count** | Option<**i32**> | | [optional] **from_product_id** | Option<**i32**> | | [optional] @@ -39,7 +39,7 @@ Name | Type | Description | Notes **local_date_string** | Option<**String**> | | [optional] **locale** | Option<**String**> | | **mentions** | Option<[**Vec**](CommentUserMentionInfo.md)> | | [optional] -**meta** | Option<[**models::ApiCommentBaseMeta**](APICommentBase_meta.md)> | | [optional] +**meta** | Option<[**models::ApiCommentBaseMeta**](APICommentBaseMeta.md)> | | [optional] **moderation_group_ids** | Option<**Vec**> | | [optional] **notification_sent_for_parent** | Option<**bool**> | | [optional] **notification_sent_for_parent_tenant** | Option<**bool**> | | [optional] @@ -53,7 +53,7 @@ Name | Type | Description | Notes **url_id_raw** | Option<**String**> | | [optional] **user_id** | Option<**String**> | | [optional] **verified** | **bool** | | -**verified_date** | Option<**String**> | | [optional] +**verified_date** | Option<**chrono::DateTime**> | | [optional] **votes** | Option<**i32**> | | [optional] **votes_down** | Option<**i32**> | | [optional] **votes_up** | Option<**i32**> | | [optional] diff --git a/client/docs/ApiCommentBase.md b/client/docs/ApiCommentBase.md index 0fa9ca2..a79649c 100644 --- a/client/docs/ApiCommentBase.md +++ b/client/docs/ApiCommentBase.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_id** | **String** | | +**id** | **String** | | **ai_determined_spam** | Option<**bool**> | | [optional] **anon_user_id** | Option<**String**> | | [optional] **approved** | **bool** | | @@ -15,12 +15,12 @@ Name | Type | Description | Notes **commenter_email** | Option<**String**> | | [optional] **commenter_link** | Option<**String**> | | [optional] **commenter_name** | **String** | | -**date** | Option<**String**> | | +**date** | Option<**chrono::DateTime**> | | **display_label** | Option<**String**> | | [optional] **domain** | Option<**String**> | | [optional] **external_id** | Option<**String**> | | [optional] **external_parent_id** | Option<**String**> | | [optional] -**expire_at** | Option<**String**> | | [optional] +**expire_at** | Option<**chrono::DateTime**> | | [optional] **feedback_ids** | Option<**Vec**> | | [optional] **flag_count** | Option<**i32**> | | [optional] **from_product_id** | Option<**i32**> | | [optional] @@ -39,7 +39,7 @@ Name | Type | Description | Notes **local_date_string** | Option<**String**> | | [optional] **locale** | Option<**String**> | | **mentions** | Option<[**Vec**](CommentUserMentionInfo.md)> | | [optional] -**meta** | Option<[**models::ApiCommentBaseMeta**](APICommentBase_meta.md)> | | [optional] +**meta** | Option<[**models::ApiCommentBaseMeta**](APICommentBaseMeta.md)> | | [optional] **moderation_group_ids** | Option<**Vec**> | | [optional] **notification_sent_for_parent** | Option<**bool**> | | [optional] **notification_sent_for_parent_tenant** | Option<**bool**> | | [optional] @@ -53,7 +53,7 @@ Name | Type | Description | Notes **url_id_raw** | Option<**String**> | | [optional] **user_id** | Option<**String**> | | [optional] **verified** | **bool** | | -**verified_date** | Option<**String**> | | [optional] +**verified_date** | Option<**chrono::DateTime**> | | [optional] **votes** | Option<**i32**> | | [optional] **votes_down** | Option<**i32**> | | [optional] **votes_up** | Option<**i32**> | | [optional] diff --git a/client/docs/ApiCommentCommonBannedUser.md b/client/docs/ApiCommentCommonBannedUser.md new file mode 100644 index 0000000..56a82fc --- /dev/null +++ b/client/docs/ApiCommentCommonBannedUser.md @@ -0,0 +1,18 @@ +# ApiCommentCommonBannedUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_id** | **String** | | +**user_id** | Option<**String**> | | [optional] +**ban_type** | **String** | | +**email** | Option<**String**> | | [optional] +**ip_hash** | Option<**String**> | | [optional] +**banned_until** | Option<**chrono::DateTime**> | | +**has_email_wildcard** | **bool** | | +**ban_reason** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ApiDomainConfiguration.md b/client/docs/ApiDomainConfiguration.md index 0b3976a..9c3f665 100644 --- a/client/docs/ApiDomainConfiguration.md +++ b/client/docs/ApiDomainConfiguration.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **wp_sync_token** | Option<**String**> | | [optional] **wp_synced** | Option<**bool**> | | [optional] **wp_url** | Option<**String**> | | [optional] -**created_at** | **String** | | -**auto_added_date** | Option<**String**> | | [optional] +**created_at** | **chrono::DateTime** | | +**auto_added_date** | Option<**chrono::DateTime**> | | [optional] **site_type** | Option<[**models::ImportedSiteType**](ImportedSiteType.md)> | | [optional] **logo_src** | Option<**String**> | | [optional] **logo_src100px** | Option<**String**> | | [optional] diff --git a/client/docs/ApiModerateGetUserBanPreferencesResponse.md b/client/docs/ApiModerateGetUserBanPreferencesResponse.md new file mode 100644 index 0000000..8d06e44 --- /dev/null +++ b/client/docs/ApiModerateGetUserBanPreferencesResponse.md @@ -0,0 +1,12 @@ +# ApiModerateGetUserBanPreferencesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | Option<[**models::ApiModerateUserBanPreferences**](APIModerateUserBanPreferences.md)> | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ApiModerateUserBanPreferences.md b/client/docs/ApiModerateUserBanPreferences.md new file mode 100644 index 0000000..092d79f --- /dev/null +++ b/client/docs/ApiModerateUserBanPreferences.md @@ -0,0 +1,14 @@ +# ApiModerateUserBanPreferences + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**should_ban_email** | **bool** | | +**should_ban_by_ip** | **bool** | | +**last_ban_type** | **String** | | +**last_ban_duration** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ApiPage.md b/client/docs/ApiPage.md index 9ad6085..f4f2ec5 100644 --- a/client/docs/ApiPage.md +++ b/client/docs/ApiPage.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **accessible_by_group_ids** | Option<**Vec**> | | [optional] **root_comment_count** | **i64** | | **comment_count** | **i64** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **title** | **String** | | **url** | Option<**String**> | | [optional] **url_id** | **String** | | diff --git a/client/docs/SaveCommentResponse.md b/client/docs/ApiSaveCommentResponse.md similarity index 61% rename from client/docs/SaveCommentResponse.md rename to client/docs/ApiSaveCommentResponse.md index b90f298..a721a5e 100644 --- a/client/docs/SaveCommentResponse.md +++ b/client/docs/ApiSaveCommentResponse.md @@ -1,13 +1,13 @@ -# SaveCommentResponse +# ApiSaveCommentResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | -**comment** | [**models::FComment**](FComment.md) | | +**comment** | [**models::ApiComment**](APIComment.md) | | **user** | Option<[**models::UserSessionInfo**](UserSessionInfo.md)> | | -**module_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] +**module_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ApiTenant.md b/client/docs/ApiTenant.md index ffba497..e369e49 100644 --- a/client/docs/ApiTenant.md +++ b/client/docs/ApiTenant.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **stripe_plan_id** | Option<**String**> | | [optional] **enable_profanity_filter** | **bool** | | **enable_spam_filter** | **bool** | | -**last_billing_issue_reminder_date** | Option<**String**> | | [optional] +**last_billing_issue_reminder_date** | Option<**chrono::DateTime**> | | [optional] **remove_unverified_comments** | Option<**bool**> | | [optional] **unverified_comments_tt_lms** | Option<**f64**> | | [optional] **comments_require_approval** | Option<**bool**> | | [optional] diff --git a/client/docs/ApiTenantDailyUsage.md b/client/docs/ApiTenantDailyUsage.md index b2bcead..00ba9be 100644 --- a/client/docs/ApiTenantDailyUsage.md +++ b/client/docs/ApiTenantDailyUsage.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **gif_search_trending** | **f64** | | **gif_search** | **f64** | | **api_credits_used** | **f64** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **billed** | **bool** | | **ignored** | **bool** | | **api_error_count** | **f64** | | diff --git a/client/docs/ApiUserSubscription.md b/client/docs/ApiUserSubscription.md index 2154080..d402ab3 100644 --- a/client/docs/ApiUserSubscription.md +++ b/client/docs/ApiUserSubscription.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **notification_frequency** | Option<**f64**> | | [optional] -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **page_title** | Option<**String**> | | [optional] **url** | Option<**String**> | | [optional] **url_id** | **String** | | diff --git a/client/docs/AwardUserBadgeResponse.md b/client/docs/AwardUserBadgeResponse.md new file mode 100644 index 0000000..2cb9710 --- /dev/null +++ b/client/docs/AwardUserBadgeResponse.md @@ -0,0 +1,13 @@ +# AwardUserBadgeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notes** | Option<**Vec**> | | [optional] +**badges** | Option<[**Vec**](CommentUserBadgeInfo.md)> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BanUserFromCommentResult.md b/client/docs/BanUserFromCommentResult.md new file mode 100644 index 0000000..bc1bc40 --- /dev/null +++ b/client/docs/BanUserFromCommentResult.md @@ -0,0 +1,14 @@ +# BanUserFromCommentResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**changelog** | Option<[**models::ApiBanUserChangeLog**](APIBanUserChangeLog.md)> | | [optional] +**code** | Option<**String**> | | [optional] +**reason** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BanUserUndoParams.md b/client/docs/BanUserUndoParams.md new file mode 100644 index 0000000..e5f42f9 --- /dev/null +++ b/client/docs/BanUserUndoParams.md @@ -0,0 +1,11 @@ +# BanUserUndoParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changelog** | [**models::ApiBanUserChangeLog**](APIBanUserChangeLog.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BannedUserMatch.md b/client/docs/BannedUserMatch.md new file mode 100644 index 0000000..c7d7731 --- /dev/null +++ b/client/docs/BannedUserMatch.md @@ -0,0 +1,12 @@ +# BannedUserMatch + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matched_on** | [**models::BannedUserMatchType**](BannedUserMatchType.md) | | +**matched_on_value** | Option<[**models::BannedUserMatchMatchedOnValue**](BannedUserMatchMatchedOnValue.md)> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RecordStringStringOrNumberValue.md b/client/docs/BannedUserMatchMatchedOnValue.md similarity index 89% rename from client/docs/RecordStringStringOrNumberValue.md rename to client/docs/BannedUserMatchMatchedOnValue.md index 4e11cfa..d58a6c0 100644 --- a/client/docs/RecordStringStringOrNumberValue.md +++ b/client/docs/BannedUserMatchMatchedOnValue.md @@ -1,4 +1,4 @@ -# RecordStringStringOrNumberValue +# BannedUserMatchMatchedOnValue ## Properties diff --git a/client/docs/BannedUserMatchType.md b/client/docs/BannedUserMatchType.md new file mode 100644 index 0000000..ec9d189 --- /dev/null +++ b/client/docs/BannedUserMatchType.md @@ -0,0 +1,15 @@ +# BannedUserMatchType + +## Enum Variants + +| Name | Value | +|---- | -----| +| UserId | userId | +| Email | email | +| EmailWildcard | email-wildcard | +| Ip | IP | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BuildModerationFilterParams.md b/client/docs/BuildModerationFilterParams.md new file mode 100644 index 0000000..1e72715 --- /dev/null +++ b/client/docs/BuildModerationFilterParams.md @@ -0,0 +1,15 @@ +# BuildModerationFilterParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **String** | | +**tenant_id** | **String** | | +**filters** | Option<**String**> | | [optional] +**search_filters** | Option<**String**> | | [optional] +**text_search** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BuildModerationFilterResponse.md b/client/docs/BuildModerationFilterResponse.md new file mode 100644 index 0000000..ab7da58 --- /dev/null +++ b/client/docs/BuildModerationFilterResponse.md @@ -0,0 +1,12 @@ +# BuildModerationFilterResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**moderation_filter** | [**models::ModerationFilter**](ModerationFilter.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BulkAggregateQuestionItem.md b/client/docs/BulkAggregateQuestionItem.md index 0696d4b..fd6e9c5 100644 --- a/client/docs/BulkAggregateQuestionItem.md +++ b/client/docs/BulkAggregateQuestionItem.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **question_ids** | Option<**Vec**> | | [optional] **url_id** | Option<**String**> | | [optional] **time_bucket** | Option<[**models::AggregateTimeBucket**](AggregateTimeBucket.md)> | | [optional] -**start_date** | Option<**String**> | | [optional] +**start_date** | Option<**chrono::DateTime**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/BulkAggregateQuestionResults200Response.md b/client/docs/BulkAggregateQuestionResults200Response.md deleted file mode 100644 index 1130a25..0000000 --- a/client/docs/BulkAggregateQuestionResults200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# BulkAggregateQuestionResults200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**data** | [**std::collections::HashMap**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/BulkCreateHashTagsBody.md b/client/docs/BulkCreateHashTagsBody.md index 4ea2afc..e8c7a4d 100644 --- a/client/docs/BulkCreateHashTagsBody.md +++ b/client/docs/BulkCreateHashTagsBody.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **tenant_id** | Option<**String**> | | [optional] -**tags** | [**Vec**](BulkCreateHashTagsBody_tags_inner.md) | | +**tags** | [**Vec**](BulkCreateHashTagsBodyTagsInner.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/BulkCreateHashTagsResponse.md b/client/docs/BulkCreateHashTagsResponse.md index 0ccb591..93e0a3a 100644 --- a/client/docs/BulkCreateHashTagsResponse.md +++ b/client/docs/BulkCreateHashTagsResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | -**results** | [**Vec**](AddHashTag_200_response.md) | | +**results** | [**Vec**](BulkCreateHashTagsResponseResultsInner.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/BlockFromCommentPublic200Response.md b/client/docs/BulkCreateHashTagsResponseResultsInner.md similarity index 75% rename from client/docs/BlockFromCommentPublic200Response.md rename to client/docs/BulkCreateHashTagsResponseResultsInner.md index 99a2f00..4c46590 100644 --- a/client/docs/BlockFromCommentPublic200Response.md +++ b/client/docs/BulkCreateHashTagsResponseResultsInner.md @@ -1,13 +1,13 @@ -# BlockFromCommentPublic200Response +# BulkCreateHashTagsResponseResultsInner ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | -**comment_statuses** | **std::collections::HashMap** | Construct a type with a set of properties K of type T | -**reason** | **String** | | -**code** | **String** | | +**hash_tag** | Option<[**models::TenantHashTag**](TenantHashTag.md)> | | [optional] +**reason** | Option<**String**> | | [optional] +**code** | Option<**String**> | | [optional] **secondary_code** | Option<**String**> | | [optional] **banned_until** | Option<**i64**> | | [optional] **max_character_length** | Option<**i32**> | | [optional] diff --git a/client/docs/BulkPreBanParams.md b/client/docs/BulkPreBanParams.md new file mode 100644 index 0000000..ba92e8a --- /dev/null +++ b/client/docs/BulkPreBanParams.md @@ -0,0 +1,11 @@ +# BulkPreBanParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment_ids** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BulkPreBanSummary.md b/client/docs/BulkPreBanSummary.md new file mode 100644 index 0000000..76393c3 --- /dev/null +++ b/client/docs/BulkPreBanSummary.md @@ -0,0 +1,16 @@ +# BulkPreBanSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**total_related_comment_count** | **i32** | | +**email_domains** | **Vec** | | +**emails** | **Vec** | | +**user_ids** | **Vec** | | +**ip_hashes** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ChangeCommentPinStatusResponse.md b/client/docs/ChangeCommentPinStatusResponse.md index 7c0bbde..7c4f395 100644 --- a/client/docs/ChangeCommentPinStatusResponse.md +++ b/client/docs/ChangeCommentPinStatusResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment_positions** | [**std::collections::HashMap**](Record_string__before_string_or_null__after_string_or_null___value.md) | Construct a type with a set of properties K of type T | +**comment_positions** | [**std::collections::HashMap**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | **status** | [**models::ApiStatus**](APIStatus.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ChangeTicketState200Response.md b/client/docs/ChangeTicketState200Response.md deleted file mode 100644 index 5a480b9..0000000 --- a/client/docs/ChangeTicketState200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# ChangeTicketState200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**ticket** | [**models::ApiTicket**](APITicket.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CheckedCommentsForBlocked200Response.md b/client/docs/CheckedCommentsForBlocked200Response.md deleted file mode 100644 index 3907a87..0000000 --- a/client/docs/CheckedCommentsForBlocked200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CheckedCommentsForBlocked200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment_statuses** | **std::collections::HashMap** | Construct a type with a set of properties K of type T | -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CombineCommentsWithQuestionResults200Response.md b/client/docs/CombineCommentsWithQuestionResults200Response.md deleted file mode 100644 index 4e68161..0000000 --- a/client/docs/CombineCommentsWithQuestionResults200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CombineCommentsWithQuestionResults200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**data** | [**models::FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CommentData.md b/client/docs/CommentData.md index 9feea77..55260c6 100644 --- a/client/docs/CommentData.md +++ b/client/docs/CommentData.md @@ -21,14 +21,15 @@ Name | Type | Description | Notes **is_from_my_account_page** | Option<**bool**> | | [optional] **url** | **String** | | **url_id** | **String** | | -**meta** | Option<[**serde_json::Value**](.md)> | | [optional] +**meta** | Option<**serde_json::Value**> | | [optional] **moderation_group_ids** | Option<**Vec**> | | [optional] **rating** | Option<**f64**> | | [optional] **from_offline_restore** | Option<**bool**> | | [optional] **autoplay_delay_ms** | Option<**i64**> | | [optional] **feedback_ids** | Option<**Vec**> | | [optional] -**question_values** | Option<[**std::collections::HashMap**](Record_string_string_or_number__value.md)> | Construct a type with a set of properties K of type T | [optional] +**question_values** | Option<[**std::collections::HashMap**](GifSearchResponseImagesInnerInner.md)> | Construct a type with a set of properties K of type T | [optional] **tos** | Option<**bool**> | | [optional] +**bot_id** | Option<**String**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CommentLogData.md b/client/docs/CommentLogData.md index b24613a..f887041 100644 --- a/client/docs/CommentLogData.md +++ b/client/docs/CommentLogData.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **engine_response** | Option<**String**> | | [optional] **engine_tokens** | Option<**f64**> | | [optional] **trust_factor** | Option<**f64**> | | [optional] +**source** | Option<**String**> | | [optional] **rule** | Option<[**models::SpamRule**](SpamRule.md)> | | [optional] **user_id** | Option<**String**> | | [optional] **subscribers** | Option<**f64**> | | [optional] @@ -31,18 +32,18 @@ Name | Type | Description | Notes **votes_down_after** | Option<**f64**> | | [optional] **repeat_action** | Option<[**models::RepeatCommentHandlingAction**](RepeatCommentHandlingAction.md)> | | [optional] **reason** | Option<[**models::RepeatCommentCheckIgnoredReason**](RepeatCommentCheckIgnoredReason.md)> | | [optional] -**other_data** | Option<[**serde_json::Value**](.md)> | | [optional] +**other_data** | Option<**serde_json::Value**> | | [optional] **spam_before** | Option<**bool**> | | [optional] **spam_after** | Option<**bool**> | | [optional] -**permanent_flag** | Option<**String**> | | [optional] +**permanent_flag** | Option<**PermanentFlag**> | (enum: permanent) | [optional] **approved_before** | Option<**bool**> | | [optional] **approved_after** | Option<**bool**> | | [optional] **reviewed_before** | Option<**bool**> | | [optional] **reviewed_after** | Option<**bool**> | | [optional] **text_before** | Option<**String**> | | [optional] **text_after** | Option<**String**> | | [optional] -**expire_before** | Option<**String**> | | [optional] -**expire_after** | Option<**String**> | | [optional] +**expire_before** | Option<**chrono::DateTime**> | | [optional] +**expire_after** | Option<**chrono::DateTime**> | | [optional] **flag_count_before** | Option<**f64**> | | [optional] **trust_factor_before** | Option<**f64**> | | [optional] **trust_factor_after** | Option<**f64**> | | [optional] diff --git a/client/docs/CommentLogEntry.md b/client/docs/CommentLogEntry.md index 39c648a..2ca320e 100644 --- a/client/docs/CommentLogEntry.md +++ b/client/docs/CommentLogEntry.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**d** | **String** | | +**d** | **chrono::DateTime** | | **t** | [**models::CommentLogType**](CommentLogType.md) | | **da** | Option<[**models::CommentLogData**](CommentLogData.md)> | | [optional] diff --git a/client/docs/CommentUserMentionInfo.md b/client/docs/CommentUserMentionInfo.md index 21b73d1..23bbad4 100644 --- a/client/docs/CommentUserMentionInfo.md +++ b/client/docs/CommentUserMentionInfo.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **String** | | **tag** | **String** | | **raw_tag** | Option<**String**> | | [optional] -**r#type** | Option<**String**> | | [optional] +**r#type** | Option<**Type**> | (enum: user, sso) | [optional] **sent** | Option<**bool**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CommentsByIdsParams.md b/client/docs/CommentsByIdsParams.md new file mode 100644 index 0000000..c39d484 --- /dev/null +++ b/client/docs/CommentsByIdsParams.md @@ -0,0 +1,11 @@ +# CommentsByIdsParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **Vec** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CreateCommentParams.md b/client/docs/CreateCommentParams.md index dcc010d..1667e71 100644 --- a/client/docs/CreateCommentParams.md +++ b/client/docs/CreateCommentParams.md @@ -21,14 +21,15 @@ Name | Type | Description | Notes **is_from_my_account_page** | Option<**bool**> | | [optional] **url** | **String** | | **url_id** | **String** | | -**meta** | Option<[**serde_json::Value**](.md)> | | [optional] +**meta** | Option<**serde_json::Value**> | | [optional] **moderation_group_ids** | Option<**Vec**> | | [optional] **rating** | Option<**f64**> | | [optional] **from_offline_restore** | Option<**bool**> | | [optional] **autoplay_delay_ms** | Option<**i64**> | | [optional] **feedback_ids** | Option<**Vec**> | | [optional] -**question_values** | Option<[**std::collections::HashMap**](Record_string_string_or_number__value.md)> | Construct a type with a set of properties K of type T | [optional] +**question_values** | Option<[**std::collections::HashMap**](GifSearchResponseImagesInnerInner.md)> | Construct a type with a set of properties K of type T | [optional] **tos** | Option<**bool**> | | [optional] +**bot_id** | Option<**String**> | | [optional] **approved** | Option<**bool**> | | [optional] **domain** | Option<**String**> | | [optional] **ip** | Option<**String**> | | [optional] diff --git a/client/docs/CreateCommentPublic200Response.md b/client/docs/CreateCommentPublic200Response.md deleted file mode 100644 index 5ca5244..0000000 --- a/client/docs/CreateCommentPublic200Response.md +++ /dev/null @@ -1,22 +0,0 @@ -# CreateCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**comment** | [**models::PublicComment**](PublicComment.md) | | -**user** | Option<[**models::UserSessionInfo**](UserSessionInfo.md)> | | -**module_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] -**user_id_ws** | Option<**String**> | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateEmailTemplate200Response.md b/client/docs/CreateEmailTemplate200Response.md deleted file mode 100644 index 245b793..0000000 --- a/client/docs/CreateEmailTemplate200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateEmailTemplate200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**email_template** | [**models::CustomEmailTemplate**](CustomEmailTemplate.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateEmailTemplateBody.md b/client/docs/CreateEmailTemplateBody.md index 27b2729..75d4b11 100644 --- a/client/docs/CreateEmailTemplateBody.md +++ b/client/docs/CreateEmailTemplateBody.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **display_name** | **String** | | **ejs** | **String** | | **domain** | Option<**String**> | | [optional] -**translation_overrides_by_locale** | Option<[**std::collections::HashMap>**](std::collections::HashMap.md)> | Construct a type with a set of properties K of type T | [optional] -**test_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] +**translation_overrides_by_locale** | Option<**std::collections::HashMap>**> | Construct a type with a set of properties K of type T | [optional] +**test_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CreateFeedPost200Response.md b/client/docs/CreateFeedPost200Response.md deleted file mode 100644 index 0f7deaf..0000000 --- a/client/docs/CreateFeedPost200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateFeedPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**feed_post** | [**models::FeedPost**](FeedPost.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateFeedPostPublic200Response.md b/client/docs/CreateFeedPostPublic200Response.md deleted file mode 100644 index 2bf1cd9..0000000 --- a/client/docs/CreateFeedPostPublic200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateFeedPostPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**feed_post** | [**models::FeedPost**](FeedPost.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateModerator200Response.md b/client/docs/CreateModerator200Response.md deleted file mode 100644 index 978b6f0..0000000 --- a/client/docs/CreateModerator200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateModerator200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**moderator** | [**models::Moderator**](Moderator.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateQuestionConfig200Response.md b/client/docs/CreateQuestionConfig200Response.md deleted file mode 100644 index 9b53b5d..0000000 --- a/client/docs/CreateQuestionConfig200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateQuestionConfig200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**question_config** | [**models::QuestionConfig**](QuestionConfig.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateQuestionConfigBody.md b/client/docs/CreateQuestionConfigBody.md index cc0a61c..6f9f683 100644 --- a/client/docs/CreateQuestionConfigBody.md +++ b/client/docs/CreateQuestionConfigBody.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **default_value** | Option<**f64**> | | [optional] **label_negative** | Option<**String**> | | [optional] **label_positive** | Option<**String**> | | [optional] -**custom_options** | Option<[**Vec**](QuestionConfig_customOptions_inner.md)> | | [optional] +**custom_options** | Option<[**Vec**](QuestionConfigCustomOptionsInner.md)> | | [optional] **sub_question_ids** | Option<**Vec**> | | [optional] **always_show_sub_questions** | Option<**bool**> | | [optional] **reporting_order** | **f64** | | diff --git a/client/docs/CreateQuestionResult200Response.md b/client/docs/CreateQuestionResult200Response.md deleted file mode 100644 index 8c427d5..0000000 --- a/client/docs/CreateQuestionResult200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateQuestionResult200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**question_result** | [**models::QuestionResult**](QuestionResult.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenant200Response.md b/client/docs/CreateTenant200Response.md deleted file mode 100644 index c8c2cfa..0000000 --- a/client/docs/CreateTenant200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateTenant200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant** | [**models::ApiTenant**](APITenant.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenantPackage200Response.md b/client/docs/CreateTenantPackage200Response.md deleted file mode 100644 index ffaa367..0000000 --- a/client/docs/CreateTenantPackage200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateTenantPackage200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant_package** | [**models::TenantPackage**](TenantPackage.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenantPackageBody.md b/client/docs/CreateTenantPackageBody.md index d1c5e92..e8af5a5 100644 --- a/client/docs/CreateTenantPackageBody.md +++ b/client/docs/CreateTenantPackageBody.md @@ -45,8 +45,8 @@ Name | Type | Description | Notes **flex_admin_unit** | Option<**f64**> | | [optional] **flex_domain_cost_cents** | Option<**f64**> | | [optional] **flex_domain_unit** | Option<**f64**> | | [optional] -**flex_chat_gpt_cost_cents** | Option<**f64**> | | [optional] -**flex_chat_gpt_unit** | Option<**f64**> | | [optional] +**flex_llm_cost_cents** | Option<**f64**> | | [optional] +**flex_llm_unit** | Option<**f64**> | | [optional] **flex_minimum_cost_cents** | Option<**f64**> | | [optional] **flex_managed_tenant_cost_cents** | Option<**f64**> | | [optional] **flex_sso_admin_cost_cents** | Option<**f64**> | | [optional] diff --git a/client/docs/CreateTenantUser200Response.md b/client/docs/CreateTenantUser200Response.md deleted file mode 100644 index a437b8a..0000000 --- a/client/docs/CreateTenantUser200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateTenantUser200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant_user** | [**models::User**](User.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTicket200Response.md b/client/docs/CreateTicket200Response.md deleted file mode 100644 index d2dc547..0000000 --- a/client/docs/CreateTicket200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateTicket200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**ticket** | [**models::ApiTicket**](APITicket.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateUserBadge200Response.md b/client/docs/CreateUserBadge200Response.md deleted file mode 100644 index 18922a0..0000000 --- a/client/docs/CreateUserBadge200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# CreateUserBadge200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**user_badge** | [**models::UserBadge**](UserBadge.md) | | -**notes** | Option<**Vec**> | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateV1PageReact.md b/client/docs/CreateV1PageReact.md new file mode 100644 index 0000000..096bf66 --- /dev/null +++ b/client/docs/CreateV1PageReact.md @@ -0,0 +1,12 @@ +# CreateV1PageReact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | Option<**String**> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CustomConfigParameters.md b/client/docs/CustomConfigParameters.md index acdc5a1..75575e8 100644 --- a/client/docs/CustomConfigParameters.md +++ b/client/docs/CustomConfigParameters.md @@ -56,11 +56,14 @@ Name | Type | Description | Notes **no_custom_config** | Option<**bool**> | | [optional] **mention_auto_complete_mode** | Option<[**models::MentionAutoCompleteMode**](MentionAutoCompleteMode.md)> | | [optional] **no_image_uploads** | Option<**bool**> | | [optional] +**allow_embeds** | Option<**bool**> | | [optional] +**allowed_embed_domains** | Option<**Vec**> | | [optional] **no_styles** | Option<**bool**> | | [optional] **page_size** | Option<**i32**> | | [optional] **readonly** | Option<**bool**> | | [optional] **no_new_root_comments** | Option<**bool**> | | [optional] **require_sso** | Option<**bool**> | | [optional] +**enable_f_chat** | Option<**bool**> | | [optional] **enable_resize_handle** | Option<**bool**> | | [optional] **restricted_link_domains** | Option<**Vec**> | | [optional] **show_badges_in_top_bar** | Option<**bool**> | | [optional] @@ -81,6 +84,8 @@ Name | Type | Description | Notes **widget_questions_required** | Option<[**models::CommentQuestionsRequired**](CommentQuestionsRequired.md)> | | [optional] **widget_sub_question_visibility** | Option<[**models::QuestionSubQuestionVisibility**](QuestionSubQuestionVisibility.md)> | | [optional] **wrap** | Option<**bool**> | | [optional] +**users_list_location** | Option<[**models::UsersListLocation**](UsersListLocation.md)> | | [optional] +**users_list_include_offline** | Option<**bool**> | | [optional] **ticket_base_url** | Option<**String**> | | [optional] **ticket_kb_search_endpoint** | Option<**String**> | | [optional] **ticket_file_uploads_enabled** | Option<**bool**> | | [optional] diff --git a/client/docs/CustomEmailTemplate.md b/client/docs/CustomEmailTemplate.md index c50586d..a9e733b 100644 --- a/client/docs/CustomEmailTemplate.md +++ b/client/docs/CustomEmailTemplate.md @@ -8,13 +8,13 @@ Name | Type | Description | Notes **tenant_id** | **String** | | **email_template_id** | **String** | | **display_name** | **String** | | -**created_at** | **String** | | -**updated_at** | Option<**String**> | | +**created_at** | **chrono::DateTime** | | +**updated_at** | Option<**chrono::DateTime**> | | **updated_by_user_id** | Option<**String**> | | **domain** | Option<**String**> | | [optional] **ejs** | **String** | | -**translation_overrides_by_locale** | [**std::collections::HashMap>**](std::collections::HashMap.md) | Construct a type with a set of properties K of type T | -**test_data** | Option<[**serde_json::Value**](.md)> | | +**translation_overrides_by_locale** | **std::collections::HashMap>** | Construct a type with a set of properties K of type T | +**test_data** | Option<**serde_json::Value**> | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index 76106b1..91abd85 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -123,7 +123,7 @@ Method | HTTP request | Description ## add_domain_config -> models::AddDomainConfig200Response add_domain_config(tenant_id, add_domain_config_params) +> models::AddDomainConfigResponse add_domain_config(tenant_id, add_domain_config_params) ### Parameters @@ -136,7 +136,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::AddDomainConfig200Response**](AddDomainConfig_200_response.md) +[**models::AddDomainConfigResponse**](AddDomainConfigResponse.md) ### Authorization @@ -152,7 +152,7 @@ Name | Type | Description | Required | Notes ## add_hash_tag -> models::AddHashTag200Response add_hash_tag(tenant_id, create_hash_tag_body) +> models::CreateHashTagResponse add_hash_tag(tenant_id, create_hash_tag_body) ### Parameters @@ -165,7 +165,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::AddHashTag200Response**](AddHashTag_200_response.md) +[**models::CreateHashTagResponse**](CreateHashTagResponse.md) ### Authorization @@ -181,7 +181,7 @@ Name | Type | Description | Required | Notes ## add_hash_tags_bulk -> models::AddHashTagsBulk200Response add_hash_tags_bulk(tenant_id, bulk_create_hash_tags_body) +> models::BulkCreateHashTagsResponse add_hash_tags_bulk(tenant_id, bulk_create_hash_tags_body) ### Parameters @@ -194,7 +194,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::AddHashTagsBulk200Response**](AddHashTagsBulk_200_response.md) +[**models::BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) ### Authorization @@ -268,7 +268,7 @@ Name | Type | Description | Required | Notes ## aggregate -> models::AggregationResponse aggregate(tenant_id, aggregation_request, parent_tenant_id, include_stats) +> models::AggregateResponse aggregate(tenant_id, aggregation_request, parent_tenant_id, include_stats) Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. @@ -285,7 +285,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::AggregationResponse**](AggregationResponse.md) +[**models::AggregateResponse**](AggregateResponse.md) ### Authorization @@ -301,7 +301,7 @@ Name | Type | Description | Required | Notes ## aggregate_question_results -> models::AggregateQuestionResults200Response aggregate_question_results(tenant_id, question_id, question_ids, url_id, time_bucket, start_date, force_recalculate) +> models::AggregateQuestionResultsResponse aggregate_question_results(tenant_id, question_id, question_ids, url_id, time_bucket, start_date, force_recalculate) ### Parameters @@ -313,13 +313,13 @@ Name | Type | Description | Required | Notes **question_id** | Option<**String**> | | | **question_ids** | Option<[**Vec**](String.md)> | | | **url_id** | Option<**String**> | | | -**time_bucket** | Option<[**AggregateTimeBucket**](.md)> | | | -**start_date** | Option<**String**> | | | +**time_bucket** | Option<[**AggregateTimeBucket**](AggregateTimeBucket.md)> | | | +**start_date** | Option<**chrono::DateTime**> | | | **force_recalculate** | Option<**bool**> | | | ### Return type -[**models::AggregateQuestionResults200Response**](AggregateQuestionResults_200_response.md) +[**models::AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) ### Authorization @@ -335,7 +335,7 @@ Name | Type | Description | Required | Notes ## block_user_from_comment -> models::BlockFromCommentPublic200Response block_user_from_comment(tenant_id, id, block_from_comment_params, user_id, anon_user_id) +> models::BlockSuccess block_user_from_comment(tenant_id, id, block_from_comment_params, user_id, anon_user_id) ### Parameters @@ -351,7 +351,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::BlockFromCommentPublic200Response**](BlockFromCommentPublic_200_response.md) +[**models::BlockSuccess**](BlockSuccess.md) ### Authorization @@ -367,7 +367,7 @@ Name | Type | Description | Required | Notes ## bulk_aggregate_question_results -> models::BulkAggregateQuestionResults200Response bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, force_recalculate) +> models::BulkAggregateQuestionResultsResponse bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, force_recalculate) ### Parameters @@ -381,7 +381,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::BulkAggregateQuestionResults200Response**](BulkAggregateQuestionResults_200_response.md) +[**models::BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -397,7 +397,7 @@ Name | Type | Description | Required | Notes ## change_ticket_state -> models::ChangeTicketState200Response change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) +> models::ChangeTicketStateResponse change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) ### Parameters @@ -412,7 +412,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::ChangeTicketState200Response**](ChangeTicketState_200_response.md) +[**models::ChangeTicketStateResponse**](ChangeTicketStateResponse.md) ### Authorization @@ -428,7 +428,7 @@ Name | Type | Description | Required | Notes ## combine_comments_with_question_results -> models::CombineCommentsWithQuestionResults200Response combine_comments_with_question_results(tenant_id, question_id, question_ids, url_id, start_date, force_recalculate, min_value, max_value, limit) +> models::CombineQuestionResultsWithCommentsResponse combine_comments_with_question_results(tenant_id, question_id, question_ids, url_id, start_date, force_recalculate, min_value, max_value, limit) ### Parameters @@ -440,7 +440,7 @@ Name | Type | Description | Required | Notes **question_id** | Option<**String**> | | | **question_ids** | Option<[**Vec**](String.md)> | | | **url_id** | Option<**String**> | | | -**start_date** | Option<**String**> | | | +**start_date** | Option<**chrono::DateTime**> | | | **force_recalculate** | Option<**bool**> | | | **min_value** | Option<**f64**> | | | **max_value** | Option<**f64**> | | | @@ -448,7 +448,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CombineCommentsWithQuestionResults200Response**](CombineCommentsWithQuestionResults_200_response.md) +[**models::CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -464,7 +464,7 @@ Name | Type | Description | Required | Notes ## create_email_template -> models::CreateEmailTemplate200Response create_email_template(tenant_id, create_email_template_body) +> models::CreateEmailTemplateResponse create_email_template(tenant_id, create_email_template_body) ### Parameters @@ -477,7 +477,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateEmailTemplate200Response**](CreateEmailTemplate_200_response.md) +[**models::CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) ### Authorization @@ -493,7 +493,7 @@ Name | Type | Description | Required | Notes ## create_feed_post -> models::CreateFeedPost200Response create_feed_post(tenant_id, create_feed_post_params, broadcast_id, is_live, do_spam_check, skip_dup_check) +> models::CreateFeedPostsResponse create_feed_post(tenant_id, create_feed_post_params, broadcast_id, is_live, do_spam_check, skip_dup_check) ### Parameters @@ -510,7 +510,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateFeedPost200Response**](CreateFeedPost_200_response.md) +[**models::CreateFeedPostsResponse**](CreateFeedPostsResponse.md) ### Authorization @@ -526,7 +526,7 @@ Name | Type | Description | Required | Notes ## create_moderator -> models::CreateModerator200Response create_moderator(tenant_id, create_moderator_body) +> models::CreateModeratorResponse create_moderator(tenant_id, create_moderator_body) ### Parameters @@ -539,7 +539,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateModerator200Response**](CreateModerator_200_response.md) +[**models::CreateModeratorResponse**](CreateModeratorResponse.md) ### Authorization @@ -555,7 +555,7 @@ Name | Type | Description | Required | Notes ## create_question_config -> models::CreateQuestionConfig200Response create_question_config(tenant_id, create_question_config_body) +> models::CreateQuestionConfigResponse create_question_config(tenant_id, create_question_config_body) ### Parameters @@ -568,7 +568,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateQuestionConfig200Response**](CreateQuestionConfig_200_response.md) +[**models::CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) ### Authorization @@ -584,7 +584,7 @@ Name | Type | Description | Required | Notes ## create_question_result -> models::CreateQuestionResult200Response create_question_result(tenant_id, create_question_result_body) +> models::CreateQuestionResultResponse create_question_result(tenant_id, create_question_result_body) ### Parameters @@ -597,7 +597,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateQuestionResult200Response**](CreateQuestionResult_200_response.md) +[**models::CreateQuestionResultResponse**](CreateQuestionResultResponse.md) ### Authorization @@ -642,7 +642,7 @@ Name | Type | Description | Required | Notes ## create_tenant -> models::CreateTenant200Response create_tenant(tenant_id, create_tenant_body) +> models::CreateTenantResponse create_tenant(tenant_id, create_tenant_body) ### Parameters @@ -655,7 +655,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateTenant200Response**](CreateTenant_200_response.md) +[**models::CreateTenantResponse**](CreateTenantResponse.md) ### Authorization @@ -671,7 +671,7 @@ Name | Type | Description | Required | Notes ## create_tenant_package -> models::CreateTenantPackage200Response create_tenant_package(tenant_id, create_tenant_package_body) +> models::CreateTenantPackageResponse create_tenant_package(tenant_id, create_tenant_package_body) ### Parameters @@ -684,7 +684,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateTenantPackage200Response**](CreateTenantPackage_200_response.md) +[**models::CreateTenantPackageResponse**](CreateTenantPackageResponse.md) ### Authorization @@ -700,7 +700,7 @@ Name | Type | Description | Required | Notes ## create_tenant_user -> models::CreateTenantUser200Response create_tenant_user(tenant_id, create_tenant_user_body) +> models::CreateTenantUserResponse create_tenant_user(tenant_id, create_tenant_user_body) ### Parameters @@ -713,7 +713,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateTenantUser200Response**](CreateTenantUser_200_response.md) +[**models::CreateTenantUserResponse**](CreateTenantUserResponse.md) ### Authorization @@ -729,7 +729,7 @@ Name | Type | Description | Required | Notes ## create_ticket -> models::CreateTicket200Response create_ticket(tenant_id, user_id, create_ticket_body) +> models::CreateTicketResponse create_ticket(tenant_id, user_id, create_ticket_body) ### Parameters @@ -743,7 +743,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateTicket200Response**](CreateTicket_200_response.md) +[**models::CreateTicketResponse**](CreateTicketResponse.md) ### Authorization @@ -759,7 +759,7 @@ Name | Type | Description | Required | Notes ## create_user_badge -> models::CreateUserBadge200Response create_user_badge(tenant_id, create_user_badge_params) +> models::ApiCreateUserBadgeResponse create_user_badge(tenant_id, create_user_badge_params) ### Parameters @@ -772,7 +772,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateUserBadge200Response**](CreateUserBadge_200_response.md) +[**models::ApiCreateUserBadgeResponse**](APICreateUserBadgeResponse.md) ### Authorization @@ -788,7 +788,7 @@ Name | Type | Description | Required | Notes ## create_vote -> models::VoteComment200Response create_vote(tenant_id, comment_id, direction, user_id, anon_user_id) +> models::VoteResponse create_vote(tenant_id, comment_id, direction, user_id, anon_user_id) ### Parameters @@ -804,7 +804,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::VoteComment200Response**](VoteComment_200_response.md) +[**models::VoteResponse**](VoteResponse.md) ### Authorization @@ -820,7 +820,7 @@ Name | Type | Description | Required | Notes ## delete_comment -> models::DeleteComment200Response delete_comment(tenant_id, id, context_user_id, is_live) +> models::DeleteCommentResult delete_comment(tenant_id, id, context_user_id, is_live) ### Parameters @@ -835,7 +835,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::DeleteComment200Response**](DeleteComment_200_response.md) +[**models::DeleteCommentResult**](DeleteCommentResult.md) ### Authorization @@ -851,7 +851,7 @@ Name | Type | Description | Required | Notes ## delete_domain_config -> models::DeleteDomainConfig200Response delete_domain_config(tenant_id, domain) +> models::DeleteDomainConfigResponse delete_domain_config(tenant_id, domain) ### Parameters @@ -864,7 +864,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::DeleteDomainConfig200Response**](DeleteDomainConfig_200_response.md) +[**models::DeleteDomainConfigResponse**](DeleteDomainConfigResponse.md) ### Authorization @@ -880,7 +880,7 @@ Name | Type | Description | Required | Notes ## delete_email_template -> models::FlagCommentPublic200Response delete_email_template(tenant_id, id) +> models::ApiEmptyResponse delete_email_template(tenant_id, id) ### Parameters @@ -893,7 +893,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -909,7 +909,7 @@ Name | Type | Description | Required | Notes ## delete_email_template_render_error -> models::FlagCommentPublic200Response delete_email_template_render_error(tenant_id, id, error_id) +> models::ApiEmptyResponse delete_email_template_render_error(tenant_id, id, error_id) ### Parameters @@ -923,7 +923,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -939,7 +939,7 @@ Name | Type | Description | Required | Notes ## delete_hash_tag -> models::FlagCommentPublic200Response delete_hash_tag(tag, tenant_id, delete_hash_tag_request) +> models::ApiEmptyResponse delete_hash_tag(tag, tenant_id, delete_hash_tag_request_body) ### Parameters @@ -949,11 +949,11 @@ Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tag** | **String** | | [required] | **tenant_id** | Option<**String**> | | | -**delete_hash_tag_request** | Option<[**DeleteHashTagRequest**](DeleteHashTagRequest.md)> | | | +**delete_hash_tag_request_body** | Option<[**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md)> | | | ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -969,7 +969,7 @@ Name | Type | Description | Required | Notes ## delete_moderator -> models::FlagCommentPublic200Response delete_moderator(tenant_id, id, send_email) +> models::ApiEmptyResponse delete_moderator(tenant_id, id, send_email) ### Parameters @@ -983,7 +983,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -999,7 +999,7 @@ Name | Type | Description | Required | Notes ## delete_notification_count -> models::FlagCommentPublic200Response delete_notification_count(tenant_id, id) +> models::ApiEmptyResponse delete_notification_count(tenant_id, id) ### Parameters @@ -1012,7 +1012,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1057,7 +1057,7 @@ Name | Type | Description | Required | Notes ## delete_pending_webhook_event -> models::FlagCommentPublic200Response delete_pending_webhook_event(tenant_id, id) +> models::ApiEmptyResponse delete_pending_webhook_event(tenant_id, id) ### Parameters @@ -1070,7 +1070,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1086,7 +1086,7 @@ Name | Type | Description | Required | Notes ## delete_question_config -> models::FlagCommentPublic200Response delete_question_config(tenant_id, id) +> models::ApiEmptyResponse delete_question_config(tenant_id, id) ### Parameters @@ -1099,7 +1099,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1115,7 +1115,7 @@ Name | Type | Description | Required | Notes ## delete_question_result -> models::FlagCommentPublic200Response delete_question_result(tenant_id, id) +> models::ApiEmptyResponse delete_question_result(tenant_id, id) ### Parameters @@ -1128,7 +1128,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1205,7 +1205,7 @@ Name | Type | Description | Required | Notes ## delete_tenant -> models::FlagCommentPublic200Response delete_tenant(tenant_id, id, sure) +> models::ApiEmptyResponse delete_tenant(tenant_id, id, sure) ### Parameters @@ -1219,7 +1219,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1235,7 +1235,7 @@ Name | Type | Description | Required | Notes ## delete_tenant_package -> models::FlagCommentPublic200Response delete_tenant_package(tenant_id, id) +> models::ApiEmptyResponse delete_tenant_package(tenant_id, id) ### Parameters @@ -1248,7 +1248,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1264,7 +1264,7 @@ Name | Type | Description | Required | Notes ## delete_tenant_user -> models::FlagCommentPublic200Response delete_tenant_user(tenant_id, id, delete_comments, comment_delete_mode) +> models::ApiEmptyResponse delete_tenant_user(tenant_id, id, delete_comments, comment_delete_mode) ### Parameters @@ -1279,7 +1279,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1295,7 +1295,7 @@ Name | Type | Description | Required | Notes ## delete_user_badge -> models::UpdateUserBadge200Response delete_user_badge(tenant_id, id) +> models::ApiEmptySuccessResponse delete_user_badge(tenant_id, id) ### Parameters @@ -1308,7 +1308,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::UpdateUserBadge200Response**](UpdateUserBadge_200_response.md) +[**models::ApiEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -1324,7 +1324,7 @@ Name | Type | Description | Required | Notes ## delete_vote -> models::DeleteCommentVote200Response delete_vote(tenant_id, id, edit_key) +> models::VoteDeleteResponse delete_vote(tenant_id, id, edit_key) ### Parameters @@ -1338,7 +1338,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::DeleteCommentVote200Response**](DeleteCommentVote_200_response.md) +[**models::VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -1354,7 +1354,7 @@ Name | Type | Description | Required | Notes ## flag_comment -> models::FlagComment200Response flag_comment(tenant_id, id, user_id, anon_user_id) +> models::FlagCommentResponse flag_comment(tenant_id, id, user_id, anon_user_id) ### Parameters @@ -1369,7 +1369,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagComment200Response**](FlagComment_200_response.md) +[**models::FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -1385,7 +1385,7 @@ Name | Type | Description | Required | Notes ## get_audit_logs -> models::GetAuditLogs200Response get_audit_logs(tenant_id, limit, skip, order, after, before) +> models::GetAuditLogsResponse get_audit_logs(tenant_id, limit, skip, order, after, before) ### Parameters @@ -1396,13 +1396,13 @@ Name | Type | Description | Required | Notes **tenant_id** | **String** | | [required] | **limit** | Option<**f64**> | | | **skip** | Option<**f64**> | | | -**order** | Option<[**SortDir**](.md)> | | | +**order** | Option<[**SortDir**](SortDir.md)> | | | **after** | Option<**f64**> | | | **before** | Option<**f64**> | | | ### Return type -[**models::GetAuditLogs200Response**](GetAuditLogs_200_response.md) +[**models::GetAuditLogsResponse**](GetAuditLogsResponse.md) ### Authorization @@ -1418,7 +1418,7 @@ Name | Type | Description | Required | Notes ## get_cached_notification_count -> models::GetCachedNotificationCount200Response get_cached_notification_count(tenant_id, id) +> models::GetCachedNotificationCountResponse get_cached_notification_count(tenant_id, id) ### Parameters @@ -1431,7 +1431,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetCachedNotificationCount200Response**](GetCachedNotificationCount_200_response.md) +[**models::GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) ### Authorization @@ -1447,7 +1447,7 @@ Name | Type | Description | Required | Notes ## get_comment -> models::GetComment200Response get_comment(tenant_id, id) +> models::ApiGetCommentResponse get_comment(tenant_id, id) ### Parameters @@ -1460,7 +1460,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetComment200Response**](GetComment_200_response.md) +[**models::ApiGetCommentResponse**](APIGetCommentResponse.md) ### Authorization @@ -1476,7 +1476,7 @@ Name | Type | Description | Required | Notes ## get_comments -> models::GetComments200Response get_comments(tenant_id, page, limit, skip, as_tree, skip_children, limit_children, max_tree_depth, url_id, user_id, anon_user_id, context_user_id, hash_tag, parent_id, direction) +> models::ApiGetCommentsResponse get_comments(tenant_id, page, limit, skip, as_tree, skip_children, limit_children, max_tree_depth, url_id, user_id, anon_user_id, context_user_id, hash_tag, parent_id, direction, from_date, to_date) ### Parameters @@ -1498,11 +1498,13 @@ Name | Type | Description | Required | Notes **context_user_id** | Option<**String**> | | | **hash_tag** | Option<**String**> | | | **parent_id** | Option<**String**> | | | -**direction** | Option<[**SortDirections**](.md)> | | | +**direction** | Option<[**SortDirections**](SortDirections.md)> | | | +**from_date** | Option<**i64**> | | | +**to_date** | Option<**i64**> | | | ### Return type -[**models::GetComments200Response**](GetComments_200_response.md) +[**models::ApiGetCommentsResponse**](APIGetCommentsResponse.md) ### Authorization @@ -1518,7 +1520,7 @@ Name | Type | Description | Required | Notes ## get_domain_config -> models::GetDomainConfig200Response get_domain_config(tenant_id, domain) +> models::GetDomainConfigResponse get_domain_config(tenant_id, domain) ### Parameters @@ -1531,7 +1533,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetDomainConfig200Response**](GetDomainConfig_200_response.md) +[**models::GetDomainConfigResponse**](GetDomainConfigResponse.md) ### Authorization @@ -1547,7 +1549,7 @@ Name | Type | Description | Required | Notes ## get_domain_configs -> models::GetDomainConfigs200Response get_domain_configs(tenant_id) +> models::GetDomainConfigsResponse get_domain_configs(tenant_id) ### Parameters @@ -1559,7 +1561,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetDomainConfigs200Response**](GetDomainConfigs_200_response.md) +[**models::GetDomainConfigsResponse**](GetDomainConfigsResponse.md) ### Authorization @@ -1575,7 +1577,7 @@ Name | Type | Description | Required | Notes ## get_email_template -> models::GetEmailTemplate200Response get_email_template(tenant_id, id) +> models::GetEmailTemplateResponse get_email_template(tenant_id, id) ### Parameters @@ -1588,7 +1590,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetEmailTemplate200Response**](GetEmailTemplate_200_response.md) +[**models::GetEmailTemplateResponse**](GetEmailTemplateResponse.md) ### Authorization @@ -1604,7 +1606,7 @@ Name | Type | Description | Required | Notes ## get_email_template_definitions -> models::GetEmailTemplateDefinitions200Response get_email_template_definitions(tenant_id) +> models::GetEmailTemplateDefinitionsResponse get_email_template_definitions(tenant_id) ### Parameters @@ -1616,7 +1618,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetEmailTemplateDefinitions200Response**](GetEmailTemplateDefinitions_200_response.md) +[**models::GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -1632,7 +1634,7 @@ Name | Type | Description | Required | Notes ## get_email_template_render_errors -> models::GetEmailTemplateRenderErrors200Response get_email_template_render_errors(tenant_id, id, skip) +> models::GetEmailTemplateRenderErrorsResponse get_email_template_render_errors(tenant_id, id, skip) ### Parameters @@ -1646,7 +1648,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetEmailTemplateRenderErrors200Response**](GetEmailTemplateRenderErrors_200_response.md) +[**models::GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -1662,7 +1664,7 @@ Name | Type | Description | Required | Notes ## get_email_templates -> models::GetEmailTemplates200Response get_email_templates(tenant_id, skip) +> models::GetEmailTemplatesResponse get_email_templates(tenant_id, skip) ### Parameters @@ -1675,7 +1677,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetEmailTemplates200Response**](GetEmailTemplates_200_response.md) +[**models::GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) ### Authorization @@ -1691,7 +1693,7 @@ Name | Type | Description | Required | Notes ## get_feed_posts -> models::GetFeedPosts200Response get_feed_posts(tenant_id, after_id, limit, tags) +> models::GetFeedPostsResponse get_feed_posts(tenant_id, after_id, limit, tags) req tenantId afterId @@ -1708,7 +1710,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetFeedPosts200Response**](GetFeedPosts_200_response.md) +[**models::GetFeedPostsResponse**](GetFeedPostsResponse.md) ### Authorization @@ -1724,7 +1726,7 @@ Name | Type | Description | Required | Notes ## get_hash_tags -> models::GetHashTags200Response get_hash_tags(tenant_id, page) +> models::GetHashTagsResponse get_hash_tags(tenant_id, page) ### Parameters @@ -1737,7 +1739,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetHashTags200Response**](GetHashTags_200_response.md) +[**models::GetHashTagsResponse**](GetHashTagsResponse.md) ### Authorization @@ -1753,7 +1755,7 @@ Name | Type | Description | Required | Notes ## get_moderator -> models::GetModerator200Response get_moderator(tenant_id, id) +> models::GetModeratorResponse get_moderator(tenant_id, id) ### Parameters @@ -1766,7 +1768,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetModerator200Response**](GetModerator_200_response.md) +[**models::GetModeratorResponse**](GetModeratorResponse.md) ### Authorization @@ -1782,7 +1784,7 @@ Name | Type | Description | Required | Notes ## get_moderators -> models::GetModerators200Response get_moderators(tenant_id, skip) +> models::GetModeratorsResponse get_moderators(tenant_id, skip) ### Parameters @@ -1795,7 +1797,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetModerators200Response**](GetModerators_200_response.md) +[**models::GetModeratorsResponse**](GetModeratorsResponse.md) ### Authorization @@ -1811,7 +1813,7 @@ Name | Type | Description | Required | Notes ## get_notification_count -> models::GetNotificationCount200Response get_notification_count(tenant_id, user_id, url_id, from_comment_id, viewed, r#type) +> models::GetNotificationCountResponse get_notification_count(tenant_id, user_id, url_id, from_comment_id, viewed, r#type) ### Parameters @@ -1828,7 +1830,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetNotificationCount200Response**](GetNotificationCount_200_response.md) +[**models::GetNotificationCountResponse**](GetNotificationCountResponse.md) ### Authorization @@ -1844,7 +1846,7 @@ Name | Type | Description | Required | Notes ## get_notifications -> models::GetNotifications200Response get_notifications(tenant_id, user_id, url_id, from_comment_id, viewed, r#type, skip) +> models::GetNotificationsResponse get_notifications(tenant_id, user_id, url_id, from_comment_id, viewed, r#type, skip) ### Parameters @@ -1862,7 +1864,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetNotifications200Response**](GetNotifications_200_response.md) +[**models::GetNotificationsResponse**](GetNotificationsResponse.md) ### Authorization @@ -1935,7 +1937,7 @@ Name | Type | Description | Required | Notes ## get_pending_webhook_event_count -> models::GetPendingWebhookEventCount200Response get_pending_webhook_event_count(tenant_id, comment_id, external_id, event_type, r#type, domain, attempt_count_gt) +> models::GetPendingWebhookEventCountResponse get_pending_webhook_event_count(tenant_id, comment_id, external_id, event_type, r#type, domain, attempt_count_gt) ### Parameters @@ -1953,7 +1955,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetPendingWebhookEventCount200Response**](GetPendingWebhookEventCount_200_response.md) +[**models::GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) ### Authorization @@ -1969,7 +1971,7 @@ Name | Type | Description | Required | Notes ## get_pending_webhook_events -> models::GetPendingWebhookEvents200Response get_pending_webhook_events(tenant_id, comment_id, external_id, event_type, r#type, domain, attempt_count_gt, skip) +> models::GetPendingWebhookEventsResponse get_pending_webhook_events(tenant_id, comment_id, external_id, event_type, r#type, domain, attempt_count_gt, skip) ### Parameters @@ -1988,7 +1990,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetPendingWebhookEvents200Response**](GetPendingWebhookEvents_200_response.md) +[**models::GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) ### Authorization @@ -2004,7 +2006,7 @@ Name | Type | Description | Required | Notes ## get_question_config -> models::GetQuestionConfig200Response get_question_config(tenant_id, id) +> models::GetQuestionConfigResponse get_question_config(tenant_id, id) ### Parameters @@ -2017,7 +2019,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetQuestionConfig200Response**](GetQuestionConfig_200_response.md) +[**models::GetQuestionConfigResponse**](GetQuestionConfigResponse.md) ### Authorization @@ -2033,7 +2035,7 @@ Name | Type | Description | Required | Notes ## get_question_configs -> models::GetQuestionConfigs200Response get_question_configs(tenant_id, skip) +> models::GetQuestionConfigsResponse get_question_configs(tenant_id, skip) ### Parameters @@ -2046,7 +2048,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetQuestionConfigs200Response**](GetQuestionConfigs_200_response.md) +[**models::GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) ### Authorization @@ -2062,7 +2064,7 @@ Name | Type | Description | Required | Notes ## get_question_result -> models::GetQuestionResult200Response get_question_result(tenant_id, id) +> models::GetQuestionResultResponse get_question_result(tenant_id, id) ### Parameters @@ -2075,7 +2077,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetQuestionResult200Response**](GetQuestionResult_200_response.md) +[**models::GetQuestionResultResponse**](GetQuestionResultResponse.md) ### Authorization @@ -2091,7 +2093,7 @@ Name | Type | Description | Required | Notes ## get_question_results -> models::GetQuestionResults200Response get_question_results(tenant_id, url_id, user_id, start_date, question_id, question_ids, skip) +> models::GetQuestionResultsResponse get_question_results(tenant_id, url_id, user_id, start_date, question_id, question_ids, skip) ### Parameters @@ -2109,7 +2111,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetQuestionResults200Response**](GetQuestionResults_200_response.md) +[**models::GetQuestionResultsResponse**](GetQuestionResultsResponse.md) ### Authorization @@ -2183,7 +2185,7 @@ Name | Type | Description | Required | Notes ## get_sso_users -> models::GetSsoUsers200Response get_sso_users(tenant_id, skip) +> models::GetSsoUsersResponse get_sso_users(tenant_id, skip) ### Parameters @@ -2196,7 +2198,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetSsoUsers200Response**](GetSSOUsers_200_response.md) +[**models::GetSsoUsersResponse**](GetSSOUsersResponse.md) ### Authorization @@ -2241,7 +2243,7 @@ Name | Type | Description | Required | Notes ## get_tenant -> models::GetTenant200Response get_tenant(tenant_id, id) +> models::GetTenantResponse get_tenant(tenant_id, id) ### Parameters @@ -2254,7 +2256,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTenant200Response**](GetTenant_200_response.md) +[**models::GetTenantResponse**](GetTenantResponse.md) ### Authorization @@ -2270,7 +2272,7 @@ Name | Type | Description | Required | Notes ## get_tenant_daily_usages -> models::GetTenantDailyUsages200Response get_tenant_daily_usages(tenant_id, year_number, month_number, day_number, skip) +> models::GetTenantDailyUsagesResponse get_tenant_daily_usages(tenant_id, year_number, month_number, day_number, skip) ### Parameters @@ -2286,7 +2288,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTenantDailyUsages200Response**](GetTenantDailyUsages_200_response.md) +[**models::GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) ### Authorization @@ -2302,7 +2304,7 @@ Name | Type | Description | Required | Notes ## get_tenant_package -> models::GetTenantPackage200Response get_tenant_package(tenant_id, id) +> models::GetTenantPackageResponse get_tenant_package(tenant_id, id) ### Parameters @@ -2315,7 +2317,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTenantPackage200Response**](GetTenantPackage_200_response.md) +[**models::GetTenantPackageResponse**](GetTenantPackageResponse.md) ### Authorization @@ -2331,7 +2333,7 @@ Name | Type | Description | Required | Notes ## get_tenant_packages -> models::GetTenantPackages200Response get_tenant_packages(tenant_id, skip) +> models::GetTenantPackagesResponse get_tenant_packages(tenant_id, skip) ### Parameters @@ -2344,7 +2346,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTenantPackages200Response**](GetTenantPackages_200_response.md) +[**models::GetTenantPackagesResponse**](GetTenantPackagesResponse.md) ### Authorization @@ -2360,7 +2362,7 @@ Name | Type | Description | Required | Notes ## get_tenant_user -> models::GetTenantUser200Response get_tenant_user(tenant_id, id) +> models::GetTenantUserResponse get_tenant_user(tenant_id, id) ### Parameters @@ -2373,7 +2375,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTenantUser200Response**](GetTenantUser_200_response.md) +[**models::GetTenantUserResponse**](GetTenantUserResponse.md) ### Authorization @@ -2389,7 +2391,7 @@ Name | Type | Description | Required | Notes ## get_tenant_users -> models::GetTenantUsers200Response get_tenant_users(tenant_id, skip) +> models::GetTenantUsersResponse get_tenant_users(tenant_id, skip) ### Parameters @@ -2402,7 +2404,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTenantUsers200Response**](GetTenantUsers_200_response.md) +[**models::GetTenantUsersResponse**](GetTenantUsersResponse.md) ### Authorization @@ -2418,7 +2420,7 @@ Name | Type | Description | Required | Notes ## get_tenants -> models::GetTenants200Response get_tenants(tenant_id, meta, skip) +> models::GetTenantsResponse get_tenants(tenant_id, meta, skip) ### Parameters @@ -2432,7 +2434,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTenants200Response**](GetTenants_200_response.md) +[**models::GetTenantsResponse**](GetTenantsResponse.md) ### Authorization @@ -2448,7 +2450,7 @@ Name | Type | Description | Required | Notes ## get_ticket -> models::GetTicket200Response get_ticket(tenant_id, id, user_id) +> models::GetTicketResponse get_ticket(tenant_id, id, user_id) ### Parameters @@ -2462,7 +2464,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTicket200Response**](GetTicket_200_response.md) +[**models::GetTicketResponse**](GetTicketResponse.md) ### Authorization @@ -2478,7 +2480,7 @@ Name | Type | Description | Required | Notes ## get_tickets -> models::GetTickets200Response get_tickets(tenant_id, user_id, state, skip, limit) +> models::GetTicketsResponse get_tickets(tenant_id, user_id, state, skip, limit) ### Parameters @@ -2494,7 +2496,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetTickets200Response**](GetTickets_200_response.md) +[**models::GetTicketsResponse**](GetTicketsResponse.md) ### Authorization @@ -2510,7 +2512,7 @@ Name | Type | Description | Required | Notes ## get_user -> models::GetUser200Response get_user(tenant_id, id) +> models::GetUserResponse get_user(tenant_id, id) ### Parameters @@ -2523,7 +2525,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUser200Response**](GetUser_200_response.md) +[**models::GetUserResponse**](GetUserResponse.md) ### Authorization @@ -2539,7 +2541,7 @@ Name | Type | Description | Required | Notes ## get_user_badge -> models::GetUserBadge200Response get_user_badge(tenant_id, id) +> models::ApiGetUserBadgeResponse get_user_badge(tenant_id, id) ### Parameters @@ -2552,7 +2554,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUserBadge200Response**](GetUserBadge_200_response.md) +[**models::ApiGetUserBadgeResponse**](APIGetUserBadgeResponse.md) ### Authorization @@ -2568,7 +2570,7 @@ Name | Type | Description | Required | Notes ## get_user_badge_progress_by_id -> models::GetUserBadgeProgressById200Response get_user_badge_progress_by_id(tenant_id, id) +> models::ApiGetUserBadgeProgressResponse get_user_badge_progress_by_id(tenant_id, id) ### Parameters @@ -2581,7 +2583,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUserBadgeProgressById200Response**](GetUserBadgeProgressById_200_response.md) +[**models::ApiGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -2597,7 +2599,7 @@ Name | Type | Description | Required | Notes ## get_user_badge_progress_by_user_id -> models::GetUserBadgeProgressById200Response get_user_badge_progress_by_user_id(tenant_id, user_id) +> models::ApiGetUserBadgeProgressResponse get_user_badge_progress_by_user_id(tenant_id, user_id) ### Parameters @@ -2610,7 +2612,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUserBadgeProgressById200Response**](GetUserBadgeProgressById_200_response.md) +[**models::ApiGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -2626,7 +2628,7 @@ Name | Type | Description | Required | Notes ## get_user_badge_progress_list -> models::GetUserBadgeProgressList200Response get_user_badge_progress_list(tenant_id, user_id, limit, skip) +> models::ApiGetUserBadgeProgressListResponse get_user_badge_progress_list(tenant_id, user_id, limit, skip) ### Parameters @@ -2641,7 +2643,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUserBadgeProgressList200Response**](GetUserBadgeProgressList_200_response.md) +[**models::ApiGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -2657,7 +2659,7 @@ Name | Type | Description | Required | Notes ## get_user_badges -> models::GetUserBadges200Response get_user_badges(tenant_id, user_id, badge_id, r#type, displayed_on_comments, limit, skip) +> models::ApiGetUserBadgesResponse get_user_badges(tenant_id, user_id, badge_id, r#type, displayed_on_comments, limit, skip) ### Parameters @@ -2675,7 +2677,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUserBadges200Response**](GetUserBadges_200_response.md) +[**models::ApiGetUserBadgesResponse**](APIGetUserBadgesResponse.md) ### Authorization @@ -2691,7 +2693,7 @@ Name | Type | Description | Required | Notes ## get_votes -> models::GetVotes200Response get_votes(tenant_id, url_id) +> models::GetVotesResponse get_votes(tenant_id, url_id) ### Parameters @@ -2704,7 +2706,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetVotes200Response**](GetVotes_200_response.md) +[**models::GetVotesResponse**](GetVotesResponse.md) ### Authorization @@ -2720,7 +2722,7 @@ Name | Type | Description | Required | Notes ## get_votes_for_user -> models::GetVotesForUser200Response get_votes_for_user(tenant_id, url_id, user_id, anon_user_id) +> models::GetVotesForUserResponse get_votes_for_user(tenant_id, url_id, user_id, anon_user_id) ### Parameters @@ -2735,7 +2737,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetVotesForUser200Response**](GetVotesForUser_200_response.md) +[**models::GetVotesForUserResponse**](GetVotesForUserResponse.md) ### Authorization @@ -2751,7 +2753,7 @@ Name | Type | Description | Required | Notes ## patch_domain_config -> models::GetDomainConfig200Response patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) +> models::PatchDomainConfigResponse patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) ### Parameters @@ -2765,7 +2767,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetDomainConfig200Response**](GetDomainConfig_200_response.md) +[**models::PatchDomainConfigResponse**](PatchDomainConfigResponse.md) ### Authorization @@ -2781,7 +2783,7 @@ Name | Type | Description | Required | Notes ## patch_hash_tag -> models::PatchHashTag200Response patch_hash_tag(tag, tenant_id, update_hash_tag_body) +> models::UpdateHashTagResponse patch_hash_tag(tag, tenant_id, update_hash_tag_body) ### Parameters @@ -2795,7 +2797,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::PatchHashTag200Response**](PatchHashTag_200_response.md) +[**models::UpdateHashTagResponse**](UpdateHashTagResponse.md) ### Authorization @@ -2872,7 +2874,7 @@ Name | Type | Description | Required | Notes ## put_domain_config -> models::GetDomainConfig200Response put_domain_config(tenant_id, domain_to_update, update_domain_config_params) +> models::PutDomainConfigResponse put_domain_config(tenant_id, domain_to_update, update_domain_config_params) ### Parameters @@ -2886,7 +2888,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetDomainConfig200Response**](GetDomainConfig_200_response.md) +[**models::PutDomainConfigResponse**](PutDomainConfigResponse.md) ### Authorization @@ -2933,7 +2935,7 @@ Name | Type | Description | Required | Notes ## render_email_template -> models::RenderEmailTemplate200Response render_email_template(tenant_id, render_email_template_body, locale) +> models::RenderEmailTemplateResponse render_email_template(tenant_id, render_email_template_body, locale) ### Parameters @@ -2947,7 +2949,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::RenderEmailTemplate200Response**](RenderEmailTemplate_200_response.md) +[**models::RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) ### Authorization @@ -2963,7 +2965,7 @@ Name | Type | Description | Required | Notes ## replace_tenant_package -> models::FlagCommentPublic200Response replace_tenant_package(tenant_id, id, replace_tenant_package_body) +> models::ApiEmptyResponse replace_tenant_package(tenant_id, id, replace_tenant_package_body) ### Parameters @@ -2977,7 +2979,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2993,7 +2995,7 @@ Name | Type | Description | Required | Notes ## replace_tenant_user -> models::FlagCommentPublic200Response replace_tenant_user(tenant_id, id, replace_tenant_user_body, update_comments) +> models::ApiEmptyResponse replace_tenant_user(tenant_id, id, replace_tenant_user_body, update_comments) ### Parameters @@ -3008,7 +3010,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3024,7 +3026,7 @@ Name | Type | Description | Required | Notes ## save_comment -> models::SaveComment200Response save_comment(tenant_id, create_comment_params, is_live, do_spam_check, send_emails, populate_notifications) +> models::ApiSaveCommentResponse save_comment(tenant_id, create_comment_params, is_live, do_spam_check, send_emails, populate_notifications) ### Parameters @@ -3041,7 +3043,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::SaveComment200Response**](SaveComment_200_response.md) +[**models::ApiSaveCommentResponse**](APISaveCommentResponse.md) ### Authorization @@ -3057,7 +3059,7 @@ Name | Type | Description | Required | Notes ## save_comments_bulk -> Vec save_comments_bulk(tenant_id, create_comment_params, is_live, do_spam_check, send_emails, populate_notifications) +> Vec save_comments_bulk(tenant_id, create_comment_params, is_live, do_spam_check, send_emails, populate_notifications) ### Parameters @@ -3074,7 +3076,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](SaveComment_200_response.md) +[**Vec**](SaveCommentsBulkResponse.md) ### Authorization @@ -3090,7 +3092,7 @@ Name | Type | Description | Required | Notes ## send_invite -> models::FlagCommentPublic200Response send_invite(tenant_id, id, from_name) +> models::ApiEmptyResponse send_invite(tenant_id, id, from_name) ### Parameters @@ -3104,7 +3106,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3120,7 +3122,7 @@ Name | Type | Description | Required | Notes ## send_login_link -> models::FlagCommentPublic200Response send_login_link(tenant_id, id, redirect_url) +> models::ApiEmptyResponse send_login_link(tenant_id, id, redirect_url) ### Parameters @@ -3134,7 +3136,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3150,7 +3152,7 @@ Name | Type | Description | Required | Notes ## un_block_user_from_comment -> models::UnBlockCommentPublic200Response un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, user_id, anon_user_id) +> models::UnblockSuccess un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, user_id, anon_user_id) ### Parameters @@ -3166,7 +3168,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::UnBlockCommentPublic200Response**](UnBlockCommentPublic_200_response.md) +[**models::UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -3182,7 +3184,7 @@ Name | Type | Description | Required | Notes ## un_flag_comment -> models::FlagComment200Response un_flag_comment(tenant_id, id, user_id, anon_user_id) +> models::FlagCommentResponse un_flag_comment(tenant_id, id, user_id, anon_user_id) ### Parameters @@ -3197,7 +3199,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagComment200Response**](FlagComment_200_response.md) +[**models::FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -3213,7 +3215,7 @@ Name | Type | Description | Required | Notes ## update_comment -> models::FlagCommentPublic200Response update_comment(tenant_id, id, updatable_comment_params, context_user_id, do_spam_check, is_live) +> models::ApiEmptyResponse update_comment(tenant_id, id, updatable_comment_params, context_user_id, do_spam_check, is_live) ### Parameters @@ -3230,7 +3232,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3246,7 +3248,7 @@ Name | Type | Description | Required | Notes ## update_email_template -> models::FlagCommentPublic200Response update_email_template(tenant_id, id, update_email_template_body) +> models::ApiEmptyResponse update_email_template(tenant_id, id, update_email_template_body) ### Parameters @@ -3260,7 +3262,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3276,7 +3278,7 @@ Name | Type | Description | Required | Notes ## update_feed_post -> models::FlagCommentPublic200Response update_feed_post(tenant_id, id, feed_post) +> models::ApiEmptyResponse update_feed_post(tenant_id, id, feed_post) ### Parameters @@ -3290,7 +3292,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3306,7 +3308,7 @@ Name | Type | Description | Required | Notes ## update_moderator -> models::FlagCommentPublic200Response update_moderator(tenant_id, id, update_moderator_body) +> models::ApiEmptyResponse update_moderator(tenant_id, id, update_moderator_body) ### Parameters @@ -3320,7 +3322,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3336,7 +3338,7 @@ Name | Type | Description | Required | Notes ## update_notification -> models::FlagCommentPublic200Response update_notification(tenant_id, id, update_notification_body, user_id) +> models::ApiEmptyResponse update_notification(tenant_id, id, update_notification_body, user_id) ### Parameters @@ -3351,7 +3353,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3367,7 +3369,7 @@ Name | Type | Description | Required | Notes ## update_question_config -> models::FlagCommentPublic200Response update_question_config(tenant_id, id, update_question_config_body) +> models::ApiEmptyResponse update_question_config(tenant_id, id, update_question_config_body) ### Parameters @@ -3381,7 +3383,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3397,7 +3399,7 @@ Name | Type | Description | Required | Notes ## update_question_result -> models::FlagCommentPublic200Response update_question_result(tenant_id, id, update_question_result_body) +> models::ApiEmptyResponse update_question_result(tenant_id, id, update_question_result_body) ### Parameters @@ -3411,7 +3413,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3458,7 +3460,7 @@ Name | Type | Description | Required | Notes ## update_tenant -> models::FlagCommentPublic200Response update_tenant(tenant_id, id, update_tenant_body) +> models::ApiEmptyResponse update_tenant(tenant_id, id, update_tenant_body) ### Parameters @@ -3472,7 +3474,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3488,7 +3490,7 @@ Name | Type | Description | Required | Notes ## update_tenant_package -> models::FlagCommentPublic200Response update_tenant_package(tenant_id, id, update_tenant_package_body) +> models::ApiEmptyResponse update_tenant_package(tenant_id, id, update_tenant_package_body) ### Parameters @@ -3502,7 +3504,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3518,7 +3520,7 @@ Name | Type | Description | Required | Notes ## update_tenant_user -> models::FlagCommentPublic200Response update_tenant_user(tenant_id, id, update_tenant_user_body, update_comments) +> models::ApiEmptyResponse update_tenant_user(tenant_id, id, update_tenant_user_body, update_comments) ### Parameters @@ -3533,7 +3535,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3549,7 +3551,7 @@ Name | Type | Description | Required | Notes ## update_user_badge -> models::UpdateUserBadge200Response update_user_badge(tenant_id, id, update_user_badge_params) +> models::ApiEmptySuccessResponse update_user_badge(tenant_id, id, update_user_badge_params) ### Parameters @@ -3563,7 +3565,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::UpdateUserBadge200Response**](UpdateUserBadge_200_response.md) +[**models::ApiEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization diff --git a/client/docs/DeleteComment200Response.md b/client/docs/DeleteComment200Response.md deleted file mode 100644 index fdcdf7c..0000000 --- a/client/docs/DeleteComment200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# DeleteComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | [**models::DeleteCommentAction**](DeleteCommentAction.md) | | -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteCommentPublic200Response.md b/client/docs/DeleteCommentPublic200Response.md deleted file mode 100644 index 011f19d..0000000 --- a/client/docs/DeleteCommentPublic200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# DeleteCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment** | Option<[**models::DeletedCommentResultComment**](DeletedCommentResultComment.md)> | | [optional] -**hard_removed** | **bool** | | -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteCommentVote200Response.md b/client/docs/DeleteCommentVote200Response.md deleted file mode 100644 index 8202622..0000000 --- a/client/docs/DeleteCommentVote200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# DeleteCommentVote200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**was_pending_vote** | Option<**bool**> | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteDomainConfigResponse.md b/client/docs/DeleteDomainConfigResponse.md new file mode 100644 index 0000000..44f13c5 --- /dev/null +++ b/client/docs/DeleteDomainConfigResponse.md @@ -0,0 +1,11 @@ +# DeleteDomainConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | Option<**serde_json::Value**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/DeleteFeedPostPublic200Response.md b/client/docs/DeleteFeedPostPublic200Response.md deleted file mode 100644 index 275c19a..0000000 --- a/client/docs/DeleteFeedPostPublic200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# DeleteFeedPostPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md b/client/docs/DeleteFeedPostPublicResponse.md similarity index 89% rename from client/docs/DeleteFeedPostPublic200ResponseAnyOf.md rename to client/docs/DeleteFeedPostPublicResponse.md index 5d381b3..f427e23 100644 --- a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -1,4 +1,4 @@ -# DeleteFeedPostPublic200ResponseAnyOf +# DeleteFeedPostPublicResponse ## Properties diff --git a/client/docs/DeleteHashTagRequest.md b/client/docs/DeleteHashTagRequestBody.md similarity index 92% rename from client/docs/DeleteHashTagRequest.md rename to client/docs/DeleteHashTagRequestBody.md index 08353b8..cbf0d95 100644 --- a/client/docs/DeleteHashTagRequest.md +++ b/client/docs/DeleteHashTagRequestBody.md @@ -1,4 +1,4 @@ -# DeleteHashTagRequest +# DeleteHashTagRequestBody ## Properties diff --git a/client/docs/EmailTemplateDefinition.md b/client/docs/EmailTemplateDefinition.md index faf2d22..5d08504 100644 --- a/client/docs/EmailTemplateDefinition.md +++ b/client/docs/EmailTemplateDefinition.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email_template_id** | **String** | | -**default_test_data** | [**std::collections::HashMap**](serde_json::Value.md) | Construct a type with a set of properties K of type T | -**default_translations_by_locale** | [**std::collections::HashMap>**](std::collections::HashMap.md) | Construct a type with a set of properties K of type T | +**default_test_data** | **std::collections::HashMap** | Construct a type with a set of properties K of type T | +**default_translations_by_locale** | **std::collections::HashMap>** | Construct a type with a set of properties K of type T | **default_ejs** | **String** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/EmailTemplateRenderErrorResponse.md b/client/docs/EmailTemplateRenderErrorResponse.md index 53654e1..991aa39 100644 --- a/client/docs/EmailTemplateRenderErrorResponse.md +++ b/client/docs/EmailTemplateRenderErrorResponse.md @@ -9,8 +9,8 @@ Name | Type | Description | Notes **custom_template_id** | **String** | | **error** | **String** | | **count** | **f64** | | -**created_at** | **String** | | -**last_occurred_at** | **String** | | +**created_at** | **chrono::DateTime** | | +**last_occurred_at** | **chrono::DateTime** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/EventLogEntry.md b/client/docs/EventLogEntry.md index a7102ac..f26ee1b 100644 --- a/client/docs/EventLogEntry.md +++ b/client/docs/EventLogEntry.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_id** | **String** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **tenant_id** | **String** | | **url_id** | **String** | | **broadcast_id** | **String** | | diff --git a/client/docs/FComment.md b/client/docs/FComment.md index 2a31f78..d51cc50 100644 --- a/client/docs/FComment.md +++ b/client/docs/FComment.md @@ -18,15 +18,15 @@ Name | Type | Description | Notes **comment** | **String** | | **comment_html** | **String** | | **parent_id** | Option<**String**> | | [optional] -**date** | Option<**String**> | | +**date** | Option<**chrono::DateTime**> | | **local_date_string** | Option<**String**> | | [optional] **local_date_hours** | Option<**i32**> | | [optional] **votes** | Option<**i32**> | | [optional] **votes_up** | Option<**i32**> | | [optional] **votes_down** | Option<**i32**> | | [optional] -**expire_at** | Option<**String**> | | [optional] +**expire_at** | Option<**chrono::DateTime**> | | [optional] **verified** | **bool** | | -**verified_date** | Option<**String**> | | [optional] +**verified_date** | Option<**chrono::DateTime**> | | [optional] **verification_id** | Option<**String**> | | [optional] **notification_sent_for_parent** | Option<**bool**> | | [optional] **notification_sent_for_parent_tenant** | Option<**bool**> | | [optional] @@ -57,7 +57,7 @@ Name | Type | Description | Notes **rating** | Option<**f64**> | | [optional] **display_label** | Option<**String**> | | [optional] **from_product_id** | Option<**i32**> | | [optional] -**meta** | Option<[**models::FCommentMeta**](FComment_meta.md)> | | [optional] +**meta** | Option<[**models::FCommentMeta**](FCommentMeta.md)> | | [optional] **ip_hash** | Option<**String**> | | [optional] **mentions** | Option<[**Vec**](CommentUserMentionInfo.md)> | | [optional] **hash_tags** | Option<[**Vec**](CommentUserHashTagInfo.md)> | | [optional] @@ -75,7 +75,8 @@ Name | Type | Description | Notes **view_count** | Option<**i64**> | | [optional] **requires_verification** | Option<**bool**> | | [optional] **edit_key** | Option<**String**> | | [optional] -**tos_accepted_at** | Option<**String**> | | [optional] +**tos_accepted_at** | Option<**chrono::DateTime**> | | [optional] +**bot_id** | Option<**String**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/FeedPost.md b/client/docs/FeedPost.md index 65a46dd..54eef67 100644 --- a/client/docs/FeedPost.md +++ b/client/docs/FeedPost.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **content_html** | Option<**String**> | | [optional] **media** | Option<[**Vec**](FeedPostMediaItem.md)> | | [optional] **links** | Option<[**Vec**](FeedPostLink.md)> | | [optional] -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **reacts** | Option<**std::collections::HashMap**> | | [optional] **comment_count** | Option<**i32**> | | [optional] diff --git a/client/docs/FindCommentsByRangeResponse.md b/client/docs/FindCommentsByRangeResponse.md index 8cef46e..239194c 100644 --- a/client/docs/FindCommentsByRangeResponse.md +++ b/client/docs/FindCommentsByRangeResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **results** | [**Vec**](FindCommentsByRangeItem.md) | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/FlagComment200Response.md b/client/docs/FlagComment200Response.md deleted file mode 100644 index 95e1849..0000000 --- a/client/docs/FlagComment200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# FlagComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status_code** | Option<**i32**> | | [optional] -**status** | [**models::ApiStatus**](APIStatus.md) | | -**code** | **String** | | -**reason** | **String** | | -**was_unapproved** | Option<**bool**> | | [optional] -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/FlagCommentPublic200Response.md b/client/docs/FlagCommentPublic200Response.md deleted file mode 100644 index fa6a02b..0000000 --- a/client/docs/FlagCommentPublic200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# FlagCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetAuditLogs200Response.md b/client/docs/GetAuditLogs200Response.md deleted file mode 100644 index 868dea2..0000000 --- a/client/docs/GetAuditLogs200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetAuditLogs200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**audit_logs** | [**Vec**](APIAuditLog.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetBannedUsersCountResponse.md b/client/docs/GetBannedUsersCountResponse.md new file mode 100644 index 0000000..dbc52d8 --- /dev/null +++ b/client/docs/GetBannedUsersCountResponse.md @@ -0,0 +1,12 @@ +# GetBannedUsersCountResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_count** | **f64** | | +**status** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetBannedUsersFromCommentResponse.md b/client/docs/GetBannedUsersFromCommentResponse.md new file mode 100644 index 0000000..e513749 --- /dev/null +++ b/client/docs/GetBannedUsersFromCommentResponse.md @@ -0,0 +1,13 @@ +# GetBannedUsersFromCommentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**banned_users** | [**Vec**](APIBannedUserWithMultiMatchInfo.md) | | +**code** | Option<**Code**> | (enum: not-found, not-logged-in) | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCachedNotificationCount200Response.md b/client/docs/GetCachedNotificationCount200Response.md deleted file mode 100644 index 2a2c958..0000000 --- a/client/docs/GetCachedNotificationCount200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetCachedNotificationCount200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**data** | [**models::UserNotificationCount**](UserNotificationCount.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetComment200Response.md b/client/docs/GetComment200Response.md deleted file mode 100644 index a663a44..0000000 --- a/client/docs/GetComment200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**comment** | [**models::ApiComment**](APIComment.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentBanStatusResponse.md b/client/docs/GetCommentBanStatusResponse.md new file mode 100644 index 0000000..a28b236 --- /dev/null +++ b/client/docs/GetCommentBanStatusResponse.md @@ -0,0 +1,13 @@ +# GetCommentBanStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**email_domain** | Option<**String**> | | +**can_ip_ban** | Option<**bool**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentText200Response.md b/client/docs/GetCommentText200Response.md deleted file mode 100644 index 358bd14..0000000 --- a/client/docs/GetCommentText200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetCommentText200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**comment_text** | **String** | | -**sanitized_comment_text** | **String** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentTextResponse.md b/client/docs/GetCommentTextResponse.md new file mode 100644 index 0000000..ce5f564 --- /dev/null +++ b/client/docs/GetCommentTextResponse.md @@ -0,0 +1,12 @@ +# GetCommentTextResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | Option<**String**> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentVoteUserNames200Response.md b/client/docs/GetCommentVoteUserNames200Response.md deleted file mode 100644 index de28255..0000000 --- a/client/docs/GetCommentVoteUserNames200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetCommentVoteUserNames200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**vote_user_names** | **Vec** | | -**has_more** | **bool** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetComments200Response.md b/client/docs/GetComments200Response.md deleted file mode 100644 index 3158b3b..0000000 --- a/client/docs/GetComments200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetComments200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**comments** | [**Vec**](APIComment.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentsForUserResponse.md b/client/docs/GetCommentsForUserResponse.md new file mode 100644 index 0000000..f822ece --- /dev/null +++ b/client/docs/GetCommentsForUserResponse.md @@ -0,0 +1,11 @@ +# GetCommentsForUserResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**moderating_tenant_ids** | Option<**Vec**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentsPublic200Response.md b/client/docs/GetCommentsPublic200Response.md deleted file mode 100644 index 581892d..0000000 --- a/client/docs/GetCommentsPublic200Response.md +++ /dev/null @@ -1,41 +0,0 @@ -# GetCommentsPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status_code** | Option<**i32**> | | [optional] -**status** | [**models::ApiStatus**](APIStatus.md) | | -**code** | **String** | | -**reason** | **String** | | -**translated_warning** | Option<**String**> | | [optional] -**comments** | [**Vec**](PublicComment.md) | | -**user** | Option<[**models::UserSessionInfo**](UserSessionInfo.md)> | | -**url_id_clean** | Option<**String**> | | [optional] -**last_gen_date** | Option<**i64**> | | [optional] -**includes_past_pages** | Option<**bool**> | | [optional] -**is_demo** | Option<**bool**> | | [optional] -**comment_count** | Option<**i32**> | | [optional] -**is_site_admin** | Option<**bool**> | | [optional] -**has_billing_issue** | Option<**bool**> | | [optional] -**module_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] -**page_number** | **i32** | | -**is_white_labeled** | Option<**bool**> | | [optional] -**is_prod** | Option<**bool**> | | [optional] -**is_crawler** | Option<**bool**> | | [optional] -**notification_count** | Option<**i32**> | | [optional] -**has_more** | Option<**bool**> | | [optional] -**is_closed** | Option<**bool**> | | [optional] -**presence_poll_state** | Option<**i32**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] -**url_id_ws** | Option<**String**> | | [optional] -**user_id_ws** | Option<**String**> | | [optional] -**tenant_id_ws** | Option<**String**> | | [optional] -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentsResponsePublicComment.md b/client/docs/GetCommentsResponsePublicComment.md index c8d0859..910f785 100644 --- a/client/docs/GetCommentsResponsePublicComment.md +++ b/client/docs/GetCommentsResponsePublicComment.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **comment_count** | Option<**i32**> | | [optional] **is_site_admin** | Option<**bool**> | | [optional] **has_billing_issue** | Option<**bool**> | | [optional] -**module_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] +**module_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] **page_number** | **i32** | | **is_white_labeled** | Option<**bool**> | | [optional] **is_prod** | Option<**bool**> | | [optional] diff --git a/client/docs/GetCommentsResponseWithPresencePublicComment.md b/client/docs/GetCommentsResponseWithPresencePublicComment.md index 8a61b1d..40e397d 100644 --- a/client/docs/GetCommentsResponseWithPresencePublicComment.md +++ b/client/docs/GetCommentsResponseWithPresencePublicComment.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **comment_count** | Option<**i32**> | | [optional] **is_site_admin** | Option<**bool**> | | [optional] **has_billing_issue** | Option<**bool**> | | [optional] -**module_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] +**module_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] **page_number** | **i32** | | **is_white_labeled** | Option<**bool**> | | [optional] **is_prod** | Option<**bool**> | | [optional] diff --git a/client/docs/GetDomainConfig200Response.md b/client/docs/GetDomainConfig200Response.md deleted file mode 100644 index 88e52b4..0000000 --- a/client/docs/GetDomainConfig200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetDomainConfig200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configuration** | Option<[**serde_json::Value**](.md)> | | -**status** | Option<[**serde_json::Value**](.md)> | | -**reason** | **String** | | -**code** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetDomainConfigResponse.md b/client/docs/GetDomainConfigResponse.md new file mode 100644 index 0000000..84c5c20 --- /dev/null +++ b/client/docs/GetDomainConfigResponse.md @@ -0,0 +1,14 @@ +# GetDomainConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | Option<**serde_json::Value**> | | [optional] +**status** | Option<**serde_json::Value**> | | +**reason** | Option<**String**> | | [optional] +**code** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetDomainConfigs200Response.md b/client/docs/GetDomainConfigs200Response.md deleted file mode 100644 index da34591..0000000 --- a/client/docs/GetDomainConfigs200Response.md +++ /dev/null @@ -1,14 +0,0 @@ -# GetDomainConfigs200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configurations** | Option<[**serde_json::Value**](.md)> | | -**status** | Option<[**serde_json::Value**](.md)> | | -**reason** | **String** | | -**code** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetDomainConfigs200ResponseAnyOf.md b/client/docs/GetDomainConfigs200ResponseAnyOf.md deleted file mode 100644 index 1ce31f9..0000000 --- a/client/docs/GetDomainConfigs200ResponseAnyOf.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetDomainConfigs200ResponseAnyOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configurations** | Option<[**serde_json::Value**](.md)> | | -**status** | Option<[**serde_json::Value**](.md)> | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetDomainConfigsResponse.md b/client/docs/GetDomainConfigsResponse.md new file mode 100644 index 0000000..2f9d5d5 --- /dev/null +++ b/client/docs/GetDomainConfigsResponse.md @@ -0,0 +1,14 @@ +# GetDomainConfigsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configurations** | Option<**serde_json::Value**> | | [optional] +**status** | Option<**serde_json::Value**> | | +**reason** | Option<**String**> | | [optional] +**code** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetDomainConfigsResponseAnyOf.md b/client/docs/GetDomainConfigsResponseAnyOf.md new file mode 100644 index 0000000..1381446 --- /dev/null +++ b/client/docs/GetDomainConfigsResponseAnyOf.md @@ -0,0 +1,12 @@ +# GetDomainConfigsResponseAnyOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configurations** | Option<**serde_json::Value**> | | +**status** | Option<**serde_json::Value**> | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetDomainConfigs200ResponseAnyOf1.md b/client/docs/GetDomainConfigsResponseAnyOf1.md similarity index 78% rename from client/docs/GetDomainConfigs200ResponseAnyOf1.md rename to client/docs/GetDomainConfigsResponseAnyOf1.md index 6821aaa..32beab6 100644 --- a/client/docs/GetDomainConfigs200ResponseAnyOf1.md +++ b/client/docs/GetDomainConfigsResponseAnyOf1.md @@ -1,4 +1,4 @@ -# GetDomainConfigs200ResponseAnyOf1 +# GetDomainConfigsResponseAnyOf1 ## Properties @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **reason** | **String** | | **code** | **String** | | -**status** | Option<[**serde_json::Value**](.md)> | | +**status** | Option<**serde_json::Value**> | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/GetEmailTemplate200Response.md b/client/docs/GetEmailTemplate200Response.md deleted file mode 100644 index 30b0f16..0000000 --- a/client/docs/GetEmailTemplate200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetEmailTemplate200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**email_template** | [**models::CustomEmailTemplate**](CustomEmailTemplate.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplateDefinitions200Response.md b/client/docs/GetEmailTemplateDefinitions200Response.md deleted file mode 100644 index 7650910..0000000 --- a/client/docs/GetEmailTemplateDefinitions200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetEmailTemplateDefinitions200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**definitions** | [**Vec**](EmailTemplateDefinition.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplateRenderErrors200Response.md b/client/docs/GetEmailTemplateRenderErrors200Response.md deleted file mode 100644 index 922a7d4..0000000 --- a/client/docs/GetEmailTemplateRenderErrors200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetEmailTemplateRenderErrors200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**render_errors** | [**Vec**](EmailTemplateRenderErrorResponse.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplates200Response.md b/client/docs/GetEmailTemplates200Response.md deleted file mode 100644 index f00e77c..0000000 --- a/client/docs/GetEmailTemplates200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetEmailTemplates200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**email_templates** | [**Vec**](CustomEmailTemplate.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEventLog200Response.md b/client/docs/GetEventLog200Response.md deleted file mode 100644 index 96cfcde..0000000 --- a/client/docs/GetEventLog200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetEventLog200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**events** | [**Vec**](EventLogEntry.md) | | -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPosts200Response.md b/client/docs/GetFeedPosts200Response.md deleted file mode 100644 index ab874d5..0000000 --- a/client/docs/GetFeedPosts200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetFeedPosts200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**feed_posts** | [**Vec**](FeedPost.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPostsPublic200Response.md b/client/docs/GetFeedPostsPublic200Response.md deleted file mode 100644 index aed075c..0000000 --- a/client/docs/GetFeedPostsPublic200Response.md +++ /dev/null @@ -1,24 +0,0 @@ -# GetFeedPostsPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**my_reacts** | Option<[**std::collections::HashMap>**](std::collections::HashMap.md)> | | [optional] -**status** | [**models::ApiStatus**](APIStatus.md) | | -**feed_posts** | [**Vec**](FeedPost.md) | | -**user** | Option<[**models::UserSessionInfo**](UserSessionInfo.md)> | | [optional] -**url_id_ws** | Option<**String**> | | [optional] -**user_id_ws** | Option<**String**> | | [optional] -**tenant_id_ws** | Option<**String**> | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPostsStats200Response.md b/client/docs/GetFeedPostsStats200Response.md deleted file mode 100644 index aa01569..0000000 --- a/client/docs/GetFeedPostsStats200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetFeedPostsStats200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**stats** | [**std::collections::HashMap**](FeedPostStats.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md new file mode 100644 index 0000000..06c1f8d --- /dev/null +++ b/client/docs/GetGifsSearchResponse.md @@ -0,0 +1,13 @@ +# GetGifsSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | Option<[**Vec>**](Vec.md)> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | +**code** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetGifsTrendingResponse.md b/client/docs/GetGifsTrendingResponse.md new file mode 100644 index 0000000..479b707 --- /dev/null +++ b/client/docs/GetGifsTrendingResponse.md @@ -0,0 +1,13 @@ +# GetGifsTrendingResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | Option<[**Vec>**](Vec.md)> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | +**code** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetHashTags200Response.md b/client/docs/GetHashTags200Response.md deleted file mode 100644 index 871c8be..0000000 --- a/client/docs/GetHashTags200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetHashTags200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**hash_tags** | [**Vec**](TenantHashTag.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetModerator200Response.md b/client/docs/GetModerator200Response.md deleted file mode 100644 index c61af15..0000000 --- a/client/docs/GetModerator200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetModerator200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**moderator** | [**models::Moderator**](Moderator.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetModerators200Response.md b/client/docs/GetModerators200Response.md deleted file mode 100644 index 2eca556..0000000 --- a/client/docs/GetModerators200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetModerators200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**moderators** | [**Vec**](Moderator.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetNotificationCount200Response.md b/client/docs/GetNotificationCount200Response.md deleted file mode 100644 index 85a6d20..0000000 --- a/client/docs/GetNotificationCount200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetNotificationCount200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**count** | **f64** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetNotifications200Response.md b/client/docs/GetNotifications200Response.md deleted file mode 100644 index c4ca3ef..0000000 --- a/client/docs/GetNotifications200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetNotifications200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**notifications** | [**Vec**](UserNotification.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetPendingWebhookEventCount200Response.md b/client/docs/GetPendingWebhookEventCount200Response.md deleted file mode 100644 index 7385908..0000000 --- a/client/docs/GetPendingWebhookEventCount200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetPendingWebhookEventCount200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**count** | **f64** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetPendingWebhookEvents200Response.md b/client/docs/GetPendingWebhookEvents200Response.md deleted file mode 100644 index b154b49..0000000 --- a/client/docs/GetPendingWebhookEvents200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetPendingWebhookEvents200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**pending_webhook_events** | [**Vec**](PendingCommentToSyncOutbound.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetPublicPagesResponse.md b/client/docs/GetPublicPagesResponse.md new file mode 100644 index 0000000..2b977d0 --- /dev/null +++ b/client/docs/GetPublicPagesResponse.md @@ -0,0 +1,13 @@ +# GetPublicPagesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next_cursor** | Option<**String**> | | +**pages** | [**Vec**](PublicPage.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetQuestionConfig200Response.md b/client/docs/GetQuestionConfig200Response.md deleted file mode 100644 index 2e97e04..0000000 --- a/client/docs/GetQuestionConfig200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetQuestionConfig200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**question_config** | [**models::QuestionConfig**](QuestionConfig.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionConfigs200Response.md b/client/docs/GetQuestionConfigs200Response.md deleted file mode 100644 index 68f5020..0000000 --- a/client/docs/GetQuestionConfigs200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetQuestionConfigs200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**question_configs** | [**Vec**](QuestionConfig.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionResult200Response.md b/client/docs/GetQuestionResult200Response.md deleted file mode 100644 index ab89a1e..0000000 --- a/client/docs/GetQuestionResult200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetQuestionResult200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**question_result** | [**models::QuestionResult**](QuestionResult.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionResults200Response.md b/client/docs/GetQuestionResults200Response.md deleted file mode 100644 index 13a7636..0000000 --- a/client/docs/GetQuestionResults200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetQuestionResults200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**question_results** | [**Vec**](QuestionResult.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetSsoUsers200Response.md b/client/docs/GetSsoUsersResponse.md similarity index 93% rename from client/docs/GetSsoUsers200Response.md rename to client/docs/GetSsoUsersResponse.md index 19fdf70..f0239a4 100644 --- a/client/docs/GetSsoUsers200Response.md +++ b/client/docs/GetSsoUsersResponse.md @@ -1,4 +1,4 @@ -# GetSsoUsers200Response +# GetSsoUsersResponse ## Properties diff --git a/client/docs/GetTenant200Response.md b/client/docs/GetTenant200Response.md deleted file mode 100644 index 0a0b77b..0000000 --- a/client/docs/GetTenant200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTenant200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant** | [**models::ApiTenant**](APITenant.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantDailyUsages200Response.md b/client/docs/GetTenantDailyUsages200Response.md deleted file mode 100644 index a2d4b9a..0000000 --- a/client/docs/GetTenantDailyUsages200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTenantDailyUsages200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant_daily_usages** | [**Vec**](APITenantDailyUsage.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantManualBadgesResponse.md b/client/docs/GetTenantManualBadgesResponse.md new file mode 100644 index 0000000..7318c45 --- /dev/null +++ b/client/docs/GetTenantManualBadgesResponse.md @@ -0,0 +1,12 @@ +# GetTenantManualBadgesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [**Vec**](TenantBadge.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetTenantPackage200Response.md b/client/docs/GetTenantPackage200Response.md deleted file mode 100644 index ff851b0..0000000 --- a/client/docs/GetTenantPackage200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTenantPackage200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant_package** | [**models::TenantPackage**](TenantPackage.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantPackages200Response.md b/client/docs/GetTenantPackages200Response.md deleted file mode 100644 index c13da07..0000000 --- a/client/docs/GetTenantPackages200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTenantPackages200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant_packages** | [**Vec**](TenantPackage.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantUser200Response.md b/client/docs/GetTenantUser200Response.md deleted file mode 100644 index b753a37..0000000 --- a/client/docs/GetTenantUser200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTenantUser200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant_user** | [**models::User**](User.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantUsers200Response.md b/client/docs/GetTenantUsers200Response.md deleted file mode 100644 index bc72b95..0000000 --- a/client/docs/GetTenantUsers200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTenantUsers200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenant_users** | [**Vec**](User.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenants200Response.md b/client/docs/GetTenants200Response.md deleted file mode 100644 index c031704..0000000 --- a/client/docs/GetTenants200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTenants200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tenants** | [**Vec**](APITenant.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTicket200Response.md b/client/docs/GetTicket200Response.md deleted file mode 100644 index 9e53e12..0000000 --- a/client/docs/GetTicket200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetTicket200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**ticket** | [**models::ApiTicketDetail**](APITicketDetail.md) | | -**available_states** | **Vec** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTickets200Response.md b/client/docs/GetTickets200Response.md deleted file mode 100644 index fde9a82..0000000 --- a/client/docs/GetTickets200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTickets200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**tickets** | [**Vec**](APITicket.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTranslationsResponse.md b/client/docs/GetTranslationsResponse.md new file mode 100644 index 0000000..ea595b2 --- /dev/null +++ b/client/docs/GetTranslationsResponse.md @@ -0,0 +1,12 @@ +# GetTranslationsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**translations** | **std::collections::HashMap** | Construct a type with a set of properties K of type T | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUser200Response.md b/client/docs/GetUser200Response.md deleted file mode 100644 index 1a8596b..0000000 --- a/client/docs/GetUser200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetUser200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**user** | [**models::User**](User.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadge200Response.md b/client/docs/GetUserBadge200Response.md deleted file mode 100644 index 7c6fb93..0000000 --- a/client/docs/GetUserBadge200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetUserBadge200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**user_badge** | [**models::UserBadge**](UserBadge.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadgeProgressById200Response.md b/client/docs/GetUserBadgeProgressById200Response.md deleted file mode 100644 index 502ab14..0000000 --- a/client/docs/GetUserBadgeProgressById200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetUserBadgeProgressById200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**user_badge_progress** | [**models::UserBadgeProgress**](UserBadgeProgress.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadgeProgressList200Response.md b/client/docs/GetUserBadgeProgressList200Response.md deleted file mode 100644 index e534c25..0000000 --- a/client/docs/GetUserBadgeProgressList200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetUserBadgeProgressList200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**user_badge_progresses** | [**Vec**](UserBadgeProgress.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadges200Response.md b/client/docs/GetUserBadges200Response.md deleted file mode 100644 index 4168c88..0000000 --- a/client/docs/GetUserBadges200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetUserBadges200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**user_badges** | [**Vec**](UserBadge.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserInternalProfileResponse.md b/client/docs/GetUserInternalProfileResponse.md new file mode 100644 index 0000000..cd20f60 --- /dev/null +++ b/client/docs/GetUserInternalProfileResponse.md @@ -0,0 +1,12 @@ +# GetUserInternalProfileResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | [**models::GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserInternalProfileResponseProfile.md b/client/docs/GetUserInternalProfileResponseProfile.md new file mode 100644 index 0000000..0dd0424 --- /dev/null +++ b/client/docs/GetUserInternalProfileResponseProfile.md @@ -0,0 +1,27 @@ +# GetUserInternalProfileResponseProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commenter_name** | Option<**String**> | | [optional] +**first_comment_date** | Option<**chrono::DateTime**> | | [optional] +**ip_hash** | Option<**String**> | | [optional] +**country_flag** | Option<**String**> | | [optional] +**country_code** | Option<**String**> | | [optional] +**website_url** | Option<**String**> | | [optional] +**bio** | Option<**String**> | | [optional] +**karma** | Option<**f64**> | | [optional] +**locale** | Option<**String**> | | [optional] +**verified** | Option<**bool**> | | [optional] +**avatar_src** | Option<**String**> | | [optional] +**display_name** | Option<**String**> | | [optional] +**username** | Option<**String**> | | [optional] +**commenter_email** | Option<**String**> | | [optional] +**email** | Option<**String**> | | [optional] +**anon_user_id** | Option<**String**> | | [optional] +**user_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserManualBadgesResponse.md b/client/docs/GetUserManualBadgesResponse.md new file mode 100644 index 0000000..d97f969 --- /dev/null +++ b/client/docs/GetUserManualBadgesResponse.md @@ -0,0 +1,12 @@ +# GetUserManualBadgesResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [**Vec**](UserBadge.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserNotificationCount200Response.md b/client/docs/GetUserNotificationCount200Response.md deleted file mode 100644 index e0a2f2a..0000000 --- a/client/docs/GetUserNotificationCount200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetUserNotificationCount200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**count** | **i64** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserNotifications200Response.md b/client/docs/GetUserNotifications200Response.md deleted file mode 100644 index c15f313..0000000 --- a/client/docs/GetUserNotifications200Response.md +++ /dev/null @@ -1,22 +0,0 @@ -# GetUserNotifications200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**translations** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] -**is_subscribed** | **bool** | | -**has_more** | **bool** | | -**notifications** | [**Vec**](RenderableUserNotification.md) | | -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserPresenceStatuses200Response.md b/client/docs/GetUserPresenceStatuses200Response.md deleted file mode 100644 index be6f0cb..0000000 --- a/client/docs/GetUserPresenceStatuses200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetUserPresenceStatuses200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**user_ids_online** | **std::collections::HashMap** | Construct a type with a set of properties K of type T | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserReactsPublic200Response.md b/client/docs/GetUserReactsPublic200Response.md deleted file mode 100644 index bae1629..0000000 --- a/client/docs/GetUserReactsPublic200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetUserReactsPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reacts** | [**std::collections::HashMap>**](std::collections::HashMap.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserTrustFactorResponse.md b/client/docs/GetUserTrustFactorResponse.md new file mode 100644 index 0000000..ec7b068 --- /dev/null +++ b/client/docs/GetUserTrustFactorResponse.md @@ -0,0 +1,13 @@ +# GetUserTrustFactorResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**manual_trust_factor** | Option<**f64**> | | [optional] +**auto_trust_factor** | Option<**f64**> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV1PageLikes.md b/client/docs/GetV1PageLikes.md new file mode 100644 index 0000000..83b628a --- /dev/null +++ b/client/docs/GetV1PageLikes.md @@ -0,0 +1,15 @@ +# GetV1PageLikes + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url_id_ws** | **String** | | +**did_like** | **bool** | | +**comment_count** | **i32** | | +**like_count** | **i32** | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV2PageReactUsersResponse.md b/client/docs/GetV2PageReactUsersResponse.md new file mode 100644 index 0000000..b5bb2a3 --- /dev/null +++ b/client/docs/GetV2PageReactUsersResponse.md @@ -0,0 +1,12 @@ +# GetV2PageReactUsersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_names** | **Vec** | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV2PageReacts.md b/client/docs/GetV2PageReacts.md new file mode 100644 index 0000000..943d47b --- /dev/null +++ b/client/docs/GetV2PageReacts.md @@ -0,0 +1,13 @@ +# GetV2PageReacts + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reacted_ids** | Option<**Vec**> | | [optional] +**counts** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetVotes200Response.md b/client/docs/GetVotes200Response.md deleted file mode 100644 index 6f57d0d..0000000 --- a/client/docs/GetVotes200Response.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetVotes200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**applied_authorized_votes** | [**Vec**](PublicVote.md) | | -**applied_anonymous_votes** | [**Vec**](PublicVote.md) | | -**pending_votes** | [**Vec**](PublicVote.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetVotesForUser200Response.md b/client/docs/GetVotesForUser200Response.md deleted file mode 100644 index 1f0b8e4..0000000 --- a/client/docs/GetVotesForUser200Response.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetVotesForUser200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**applied_authorized_votes** | [**Vec**](PublicVote.md) | | -**applied_anonymous_votes** | [**Vec**](PublicVote.md) | | -**pending_votes** | [**Vec**](PublicVote.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GifGetLargeResponse.md b/client/docs/GifGetLargeResponse.md new file mode 100644 index 0000000..6f58f2d --- /dev/null +++ b/client/docs/GifGetLargeResponse.md @@ -0,0 +1,12 @@ +# GifGetLargeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**src** | **String** | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchInternalError.md b/client/docs/GifSearchInternalError.md new file mode 100644 index 0000000..6b36c63 --- /dev/null +++ b/client/docs/GifSearchInternalError.md @@ -0,0 +1,12 @@ +# GifSearchInternalError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchResponse.md b/client/docs/GifSearchResponse.md new file mode 100644 index 0000000..cfa7acc --- /dev/null +++ b/client/docs/GifSearchResponse.md @@ -0,0 +1,12 @@ +# GifSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [**Vec>**](Vec.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchResponseImagesInnerInner.md b/client/docs/GifSearchResponseImagesInnerInner.md new file mode 100644 index 0000000..aa163d3 --- /dev/null +++ b/client/docs/GifSearchResponseImagesInnerInner.md @@ -0,0 +1,10 @@ +# GifSearchResponseImagesInnerInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/HeaderAccountNotification.md b/client/docs/HeaderAccountNotification.md index 31b0098..363caa4 100644 --- a/client/docs/HeaderAccountNotification.md +++ b/client/docs/HeaderAccountNotification.md @@ -12,7 +12,8 @@ Name | Type | Description | Notes **severity** | **String** | | **link_url** | Option<**String**> | | **link_text** | Option<**String**> | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | +**r#type** | Option<**String**> | Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/HeaderState.md b/client/docs/HeaderState.md index 9a873e4..a4e3f76 100644 --- a/client/docs/HeaderState.md +++ b/client/docs/HeaderState.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | -**notification_type** | [**serde_json::Value**](.md) | | +**notification_type** | **serde_json::Value** | | **user_id** | **String** | | **user_id_ws** | **String** | | **notification_counts** | [**Vec**](NotificationAndCount.md) | | diff --git a/client/docs/IgnoredResponse.md b/client/docs/IgnoredResponse.md index 00ad79e..864d817 100644 --- a/client/docs/IgnoredResponse.md +++ b/client/docs/IgnoredResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | -**note** | **String** | | +**note** | **Note** | (enum: ignored-since-impersonated, demo-noop) | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ImportedAgentApprovalNotificationFrequency.md b/client/docs/ImportedAgentApprovalNotificationFrequency.md new file mode 100644 index 0000000..9137be1 --- /dev/null +++ b/client/docs/ImportedAgentApprovalNotificationFrequency.md @@ -0,0 +1,15 @@ +# ImportedAgentApprovalNotificationFrequency + +## Enum Variants + +| Name | Value | +|---- | -----| +| Variant1 | -1 | +| Variant0 | 0 | +| Variant12 | 1 | +| Variant2 | 2 | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/LiveEvent.md b/client/docs/LiveEvent.md index 7113dcd..318acf9 100644 --- a/client/docs/LiveEvent.md +++ b/client/docs/LiveEvent.md @@ -14,11 +14,12 @@ Name | Type | Description | Notes **vote** | Option<[**models::PubSubVote**](PubSubVote.md)> | | [optional] **comment** | Option<[**models::PubSubComment**](PubSubComment.md)> | | [optional] **feed_post** | Option<[**models::FeedPost**](FeedPost.md)> | | [optional] -**extra_info** | Option<[**models::LiveEventExtraInfo**](LiveEvent_extraInfo.md)> | | [optional] -**config** | Option<[**serde_json::Value**](.md)> | | [optional] +**extra_info** | Option<[**models::LiveEventExtraInfo**](LiveEventExtraInfo.md)> | | [optional] +**config** | Option<**serde_json::Value**> | | [optional] **is_closed** | Option<**bool**> | | [optional] **uj** | Option<**Vec**> | | [optional] **ul** | Option<**Vec**> | | [optional] +**sc** | Option<**i32**> | | [optional] **changes** | Option<**std::collections::HashMap**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/LiveEventExtraInfo.md b/client/docs/LiveEventExtraInfo.md index 95410bd..280f13e 100644 --- a/client/docs/LiveEventExtraInfo.md +++ b/client/docs/LiveEventExtraInfo.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**comment_positions** | Option<[**std::collections::HashMap**](Record_string__before_string_or_null__after_string_or_null___value.md)> | Construct a type with a set of properties K of type T | [optional] +**comment_positions** | Option<[**std::collections::HashMap**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md)> | Construct a type with a set of properties K of type T | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/LiveEventType.md b/client/docs/LiveEventType.md index 5ee8dbf..90e33dd 100644 --- a/client/docs/LiveEventType.md +++ b/client/docs/LiveEventType.md @@ -21,6 +21,12 @@ | NewFeedPost | new-feed-post | | UpdatedFeedPost | updated-feed-post | | DeletedFeedPost | deleted-feed-post | +| NewTicket | new-ticket | +| UpdatedTicketState | updated-ticket-state | +| UpdatedTicketAssignment | updated-ticket-assignment | +| DeletedTicket | deleted-ticket | +| PageReact | page-react | +| QuestionResult | question-result | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/LockComment200Response.md b/client/docs/LockComment200Response.md deleted file mode 100644 index 354ab24..0000000 --- a/client/docs/LockComment200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# LockComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ModerationApi.md b/client/docs/ModerationApi.md new file mode 100644 index 0000000..a7bd1ac --- /dev/null +++ b/client/docs/ModerationApi.md @@ -0,0 +1,1349 @@ +# \ModerationApi + +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 + +> models::VoteDeleteResponse delete_moderation_vote(comment_id, vote_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**vote_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::VoteDeleteResponse**](VoteDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_api_comments + +> models::ModerationApiGetCommentsResponse get_api_comments(page, count, text_search, by_ip_from_comment, filters, search_filters, sorts, demo, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**page** | Option<**f64**> | | | +**count** | Option<**f64**> | | | +**text_search** | Option<**String**> | | | +**by_ip_from_comment** | Option<**String**> | | | +**filters** | Option<**String**> | | | +**search_filters** | Option<**String**> | | | +**sorts** | Option<**String**> | | | +**demo** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationApiGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_api_export_status + +> models::ModerationExportStatusResponse get_api_export_status(batch_job_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**batch_job_id** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationExportStatusResponse**](ModerationExportStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_api_ids + +> models::ModerationApiGetCommentIdsResponse get_api_ids(text_search, by_ip_from_comment, filters, search_filters, after_id, demo, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**text_search** | Option<**String**> | | | +**by_ip_from_comment** | Option<**String**> | | | +**filters** | Option<**String**> | | | +**search_filters** | Option<**String**> | | | +**after_id** | Option<**String**> | | | +**demo** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationApiGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_ban_users_from_comment + +> models::GetBannedUsersFromCommentResponse get_ban_users_from_comment(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_comment_ban_status + +> models::GetCommentBanStatusResponse get_comment_ban_status(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_comment_children + +> models::ModerationApiChildCommentsResponse get_comment_children(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationApiChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_count + +> models::ModerationApiCountCommentsResponse get_count(text_search, by_ip_from_comment, filter, search_filters, demo, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**text_search** | Option<**String**> | | | +**by_ip_from_comment** | Option<**String**> | | | +**filter** | Option<**String**> | | | +**search_filters** | Option<**String**> | | | +**demo** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationApiCountCommentsResponse**](ModerationAPICountCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_counts + +> models::GetBannedUsersCountResponse get_counts(sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sso** | Option<**String**> | | | + +### Return type + +[**models::GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_logs + +> models::ModerationApiGetLogsResponse get_logs(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationApiGetLogsResponse**](ModerationAPIGetLogsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_manual_badges + +> models::GetTenantManualBadgesResponse get_manual_badges(sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sso** | Option<**String**> | | | + +### Return type + +[**models::GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_manual_badges_for_user + +> models::GetUserManualBadgesResponse get_manual_badges_for_user(badges_user_id, comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**badges_user_id** | Option<**String**> | | | +**comment_id** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_moderation_comment + +> models::ModerationApiCommentResponse get_moderation_comment(comment_id, include_email, include_ip, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**include_email** | Option<**bool**> | | | +**include_ip** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationApiCommentResponse**](ModerationAPICommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_moderation_comment_text + +> models::GetCommentTextResponse get_moderation_comment_text(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::GetCommentTextResponse**](GetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## 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) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**include_by_user_id_and_email** | Option<**bool**> | | | +**include_by_ip** | Option<**bool**> | | | +**include_by_email_domain** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::PreBanSummary**](PreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_search_comments_summary + +> models::ModerationCommentSearchResponse get_search_comments_summary(value, filters, search_filters, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**value** | Option<**String**> | | | +**filters** | Option<**String**> | | | +**search_filters** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_search_pages + +> models::ModerationPageSearchResponse get_search_pages(value, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**value** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationPageSearchResponse**](ModerationPageSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_search_sites + +> models::ModerationSiteSearchResponse get_search_sites(value, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**value** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_search_suggest + +> models::ModerationSuggestResponse get_search_suggest(text_search, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**text_search** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationSuggestResponse**](ModerationSuggestResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_search_users + +> models::ModerationUserSearchResponse get_search_users(value, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**value** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationUserSearchResponse**](ModerationUserSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_trust_factor + +> models::GetUserTrustFactorResponse get_trust_factor(user_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user_id** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_user_ban_preference + +> models::ApiModerateGetUserBanPreferencesResponse get_user_ban_preference(sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_user_internal_profile + +> models::GetUserInternalProfileResponse get_user_internal_profile(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_adjust_comment_votes + +> models::AdjustVotesResponse post_adjust_comment_votes(comment_id, adjust_comment_votes_params, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**adjust_comment_votes_params** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::AdjustVotesResponse**](AdjustVotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_api_export + +> models::ModerationExportResponse post_api_export(text_search, by_ip_from_comment, filters, search_filters, sorts, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**text_search** | Option<**String**> | | | +**by_ip_from_comment** | Option<**String**> | | | +**filters** | Option<**String**> | | | +**search_filters** | Option<**String**> | | | +**sorts** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationExportResponse**](ModerationExportResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## 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) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**ban_email** | Option<**bool**> | | | +**ban_email_domain** | Option<**bool**> | | | +**ban_ip** | Option<**bool**> | | | +**delete_all_users_comments** | Option<**bool**> | | | +**banned_until** | Option<**String**> | | | +**is_shadow_ban** | Option<**bool**> | | | +**update_id** | Option<**String**> | | | +**ban_reason** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::BanUserFromCommentResult**](BanUserFromCommentResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_ban_user_undo + +> models::ApiEmptyResponse post_ban_user_undo(ban_user_undo_params, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**ban_user_undo_params** | [**BanUserUndoParams**](BanUserUndoParams.md) | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## 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) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**bulk_pre_ban_params** | [**BulkPreBanParams**](BulkPreBanParams.md) | | [required] | +**include_by_user_id_and_email** | Option<**bool**> | | | +**include_by_ip** | Option<**bool**> | | | +**include_by_email_domain** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::BulkPreBanSummary**](BulkPreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_comments_by_ids + +> models::ModerationApiChildCommentsResponse post_comments_by_ids(comments_by_ids_params, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comments_by_ids_params** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ModerationApiChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_flag_comment + +> models::ApiEmptyResponse post_flag_comment(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_remove_comment + +> models::PostRemoveCommentResponse post_remove_comment(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::PostRemoveCommentResponse**](PostRemoveCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_restore_deleted_comment + +> models::ApiEmptyResponse post_restore_deleted_comment(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_set_comment_approval_status + +> models::SetCommentApprovedResponse post_set_comment_approval_status(comment_id, approved, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**approved** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::SetCommentApprovedResponse**](SetCommentApprovedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_set_comment_review_status + +> models::ApiEmptyResponse post_set_comment_review_status(comment_id, reviewed, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**reviewed** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_set_comment_spam_status + +> models::ApiEmptyResponse post_set_comment_spam_status(comment_id, spam, perm_not_spam, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**spam** | Option<**bool**> | | | +**perm_not_spam** | Option<**bool**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_set_comment_text + +> models::SetCommentTextResponse post_set_comment_text(comment_id, set_comment_text_params, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**set_comment_text_params** | [**SetCommentTextParams**](SetCommentTextParams.md) | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::SetCommentTextResponse**](SetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_un_flag_comment + +> models::ApiEmptyResponse post_un_flag_comment(comment_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## post_vote + +> models::VoteResponse post_vote(comment_id, direction, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**comment_id** | **String** | | [required] | +**direction** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::VoteResponse**](VoteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## put_award_badge + +> models::AwardUserBadgeResponse put_award_badge(badge_id, user_id, comment_id, broadcast_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**badge_id** | **String** | | [required] | +**user_id** | Option<**String**> | | | +**comment_id** | Option<**String**> | | | +**broadcast_id** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::AwardUserBadgeResponse**](AwardUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## put_close_thread + +> models::ApiEmptyResponse put_close_thread(url_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**url_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## put_remove_badge + +> models::RemoveUserBadgeResponse put_remove_badge(badge_id, user_id, comment_id, broadcast_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**badge_id** | **String** | | [required] | +**user_id** | Option<**String**> | | | +**comment_id** | Option<**String**> | | | +**broadcast_id** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## put_reopen_thread + +> models::ApiEmptyResponse put_reopen_thread(url_id, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**url_id** | **String** | | [required] | +**sso** | Option<**String**> | | | + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## set_trust_factor + +> models::SetUserTrustFactorResponse set_trust_factor(user_id, trust_factor, sso) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user_id** | Option<**String**> | | | +**trust_factor** | Option<**String**> | | | +**sso** | Option<**String**> | | | + +### Return type + +[**models::SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/client/docs/ModerationApiChildCommentsResponse.md b/client/docs/ModerationApiChildCommentsResponse.md new file mode 100644 index 0000000..55db770 --- /dev/null +++ b/client/docs/ModerationApiChildCommentsResponse.md @@ -0,0 +1,12 @@ +# ModerationApiChildCommentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comments** | [**Vec**](ModerationAPIComment.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationApiComment.md b/client/docs/ModerationApiComment.md new file mode 100644 index 0000000..6c1529d --- /dev/null +++ b/client/docs/ModerationApiComment.md @@ -0,0 +1,52 @@ +# ModerationApiComment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_local_deleted** | Option<**bool**> | | [optional] +**reply_count** | Option<**f64**> | | [optional] +**feedback_results** | Option<**Vec**> | | [optional] +**is_voted_up** | Option<**bool**> | | [optional] +**is_voted_down** | Option<**bool**> | | [optional] +**my_vote_id** | Option<**String**> | | [optional] +**_id** | **String** | | +**tenant_id** | **String** | | +**url_id** | **String** | | +**url** | **String** | | +**page_title** | Option<**String**> | | [optional] +**user_id** | Option<**String**> | | [optional] +**anon_user_id** | Option<**String**> | | [optional] +**commenter_name** | **String** | | +**commenter_link** | Option<**String**> | | [optional] +**comment_html** | **String** | | +**parent_id** | Option<**String**> | | [optional] +**date** | Option<**chrono::DateTime**> | | +**local_date_string** | Option<**String**> | | [optional] +**votes** | Option<**f64**> | | [optional] +**votes_up** | Option<**f64**> | | [optional] +**votes_down** | Option<**f64**> | | [optional] +**expire_at** | Option<**chrono::DateTime**> | | [optional] +**reviewed** | Option<**bool**> | | [optional] +**avatar_src** | Option<**String**> | | [optional] +**is_spam** | Option<**bool**> | | [optional] +**perm_not_spam** | Option<**bool**> | | [optional] +**has_links** | Option<**bool**> | | [optional] +**has_code** | Option<**bool**> | | [optional] +**approved** | **bool** | | +**locale** | Option<**String**> | | +**is_banned_user** | Option<**bool**> | | [optional] +**is_by_admin** | Option<**bool**> | | [optional] +**is_by_moderator** | Option<**bool**> | | [optional] +**is_pinned** | Option<**bool**> | | [optional] +**is_locked** | Option<**bool**> | | [optional] +**flag_count** | Option<**f64**> | | [optional] +**display_label** | Option<**String**> | | [optional] +**badges** | Option<[**Vec**](CommentUserBadgeInfo.md)> | | [optional] +**verified** | **bool** | | +**feedback_ids** | Option<**Vec**> | | [optional] +**is_deleted** | Option<**bool**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationApiCommentLog.md b/client/docs/ModerationApiCommentLog.md new file mode 100644 index 0000000..81789f5 --- /dev/null +++ b/client/docs/ModerationApiCommentLog.md @@ -0,0 +1,14 @@ +# ModerationApiCommentLog + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | **chrono::DateTime** | | +**username** | Option<**String**> | | [optional] +**action_name** | **String** | | +**message_html** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationApiCommentResponse.md b/client/docs/ModerationApiCommentResponse.md new file mode 100644 index 0000000..510dde6 --- /dev/null +++ b/client/docs/ModerationApiCommentResponse.md @@ -0,0 +1,12 @@ +# ModerationApiCommentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | [**models::ModerationApiComment**](ModerationAPIComment.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationApiCountCommentsResponse.md b/client/docs/ModerationApiCountCommentsResponse.md new file mode 100644 index 0000000..14979b9 --- /dev/null +++ b/client/docs/ModerationApiCountCommentsResponse.md @@ -0,0 +1,12 @@ +# ModerationApiCountCommentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | +**count** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationApiGetCommentIdsResponse.md b/client/docs/ModerationApiGetCommentIdsResponse.md new file mode 100644 index 0000000..4d35a08 --- /dev/null +++ b/client/docs/ModerationApiGetCommentIdsResponse.md @@ -0,0 +1,13 @@ +# ModerationApiGetCommentIdsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **Vec** | | +**has_more** | **bool** | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationApiGetCommentsResponse.md b/client/docs/ModerationApiGetCommentsResponse.md new file mode 100644 index 0000000..2b5a322 --- /dev/null +++ b/client/docs/ModerationApiGetCommentsResponse.md @@ -0,0 +1,14 @@ +# ModerationApiGetCommentsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | +**translations** | **serde_json::Value** | | +**comments** | [**Vec**](ModerationAPIComment.md) | | +**moderation_filter** | Option<[**models::ModerationFilter**](ModerationFilter.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationApiGetLogsResponse.md b/client/docs/ModerationApiGetLogsResponse.md new file mode 100644 index 0000000..a3b7e24 --- /dev/null +++ b/client/docs/ModerationApiGetLogsResponse.md @@ -0,0 +1,12 @@ +# ModerationApiGetLogsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | [**Vec**](ModerationAPICommentLog.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationCommentSearchResponse.md b/client/docs/ModerationCommentSearchResponse.md new file mode 100644 index 0000000..7f751fb --- /dev/null +++ b/client/docs/ModerationCommentSearchResponse.md @@ -0,0 +1,12 @@ +# ModerationCommentSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment_count** | **i32** | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationExportResponse.md b/client/docs/ModerationExportResponse.md new file mode 100644 index 0000000..984d631 --- /dev/null +++ b/client/docs/ModerationExportResponse.md @@ -0,0 +1,12 @@ +# ModerationExportResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**batch_job_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationExportStatusResponse.md b/client/docs/ModerationExportStatusResponse.md new file mode 100644 index 0000000..ac92ba4 --- /dev/null +++ b/client/docs/ModerationExportStatusResponse.md @@ -0,0 +1,14 @@ +# ModerationExportStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**job_status** | **String** | | +**record_count** | **i32** | | +**download_url** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationFilter.md b/client/docs/ModerationFilter.md new file mode 100644 index 0000000..b8d7e76 --- /dev/null +++ b/client/docs/ModerationFilter.md @@ -0,0 +1,22 @@ +# ModerationFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reviewed** | Option<**bool**> | | [optional] +**approved** | Option<**bool**> | | [optional] +**is_spam** | Option<**bool**> | | [optional] +**is_banned_user** | Option<**bool**> | | [optional] +**is_locked** | Option<**bool**> | | [optional] +**flag_count_gt** | Option<**f64**> | | [optional] +**user_id** | Option<**String**> | | [optional] +**url_id** | Option<**String**> | | [optional] +**domain** | Option<**String**> | | [optional] +**moderation_group_ids** | Option<**Vec**> | | [optional] +**comment_text_search** | Option<**Vec**> | Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. | [optional] +**exact_comment_text** | Option<**String**> | Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationPageSearchProjected.md b/client/docs/ModerationPageSearchProjected.md new file mode 100644 index 0000000..953dbdc --- /dev/null +++ b/client/docs/ModerationPageSearchProjected.md @@ -0,0 +1,14 @@ +# ModerationPageSearchProjected + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url_id** | **String** | | +**url** | **String** | | +**title** | **String** | | +**comment_count** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationPageSearchResponse.md b/client/docs/ModerationPageSearchResponse.md new file mode 100644 index 0000000..f78a055 --- /dev/null +++ b/client/docs/ModerationPageSearchResponse.md @@ -0,0 +1,12 @@ +# ModerationPageSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pages** | [**Vec**](ModerationPageSearchProjected.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSiteSearchProjected.md b/client/docs/ModerationSiteSearchProjected.md new file mode 100644 index 0000000..ff28675 --- /dev/null +++ b/client/docs/ModerationSiteSearchProjected.md @@ -0,0 +1,12 @@ +# ModerationSiteSearchProjected + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **String** | | +**logo_src100px** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSiteSearchResponse.md b/client/docs/ModerationSiteSearchResponse.md new file mode 100644 index 0000000..4dd0be1 --- /dev/null +++ b/client/docs/ModerationSiteSearchResponse.md @@ -0,0 +1,12 @@ +# ModerationSiteSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sites** | [**Vec**](ModerationSiteSearchProjected.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSuggestResponse.md b/client/docs/ModerationSuggestResponse.md new file mode 100644 index 0000000..6cf20be --- /dev/null +++ b/client/docs/ModerationSuggestResponse.md @@ -0,0 +1,14 @@ +# ModerationSuggestResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**pages** | Option<[**Vec**](ModerationPageSearchProjected.md)> | | [optional] +**users** | Option<[**Vec**](ModerationUserSearchProjected.md)> | | [optional] +**code** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationUserSearchProjected.md b/client/docs/ModerationUserSearchProjected.md new file mode 100644 index 0000000..221cc80 --- /dev/null +++ b/client/docs/ModerationUserSearchProjected.md @@ -0,0 +1,14 @@ +# ModerationUserSearchProjected + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_id** | **String** | | +**username** | **String** | | +**display_name** | Option<**String**> | | [optional] +**avatar_src** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationUserSearchResponse.md b/client/docs/ModerationUserSearchResponse.md new file mode 100644 index 0000000..8cbb617 --- /dev/null +++ b/client/docs/ModerationUserSearchResponse.md @@ -0,0 +1,12 @@ +# ModerationUserSearchResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**Vec**](ModerationUserSearchProjected.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/Moderator.md b/client/docs/Moderator.md index 5c6fccd..ea19394 100644 --- a/client/docs/Moderator.md +++ b/client/docs/Moderator.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **banned_count** | **f64** | | **un_flagged_count** | **f64** | | **verification_id** | Option<**String**> | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **moderation_group_ids** | Option<**Vec**> | | **is_email_suppressed** | Option<**bool**> | | [optional] diff --git a/client/docs/PageUserEntry.md b/client/docs/PageUserEntry.md new file mode 100644 index 0000000..8f9824d --- /dev/null +++ b/client/docs/PageUserEntry.md @@ -0,0 +1,14 @@ +# PageUserEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_private** | Option<**bool**> | | [optional] +**avatar_src** | Option<**String**> | | [optional] +**display_name** | **String** | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersInfoResponse.md b/client/docs/PageUsersInfoResponse.md new file mode 100644 index 0000000..ec6ca18 --- /dev/null +++ b/client/docs/PageUsersInfoResponse.md @@ -0,0 +1,12 @@ +# PageUsersInfoResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**Vec**](PageUserEntry.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersOfflineResponse.md b/client/docs/PageUsersOfflineResponse.md new file mode 100644 index 0000000..d860b03 --- /dev/null +++ b/client/docs/PageUsersOfflineResponse.md @@ -0,0 +1,14 @@ +# PageUsersOfflineResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next_after_user_id** | Option<**String**> | | +**next_after_name** | Option<**String**> | | +**users** | [**Vec**](PageUserEntry.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersOnlineResponse.md b/client/docs/PageUsersOnlineResponse.md new file mode 100644 index 0000000..92d6b7d --- /dev/null +++ b/client/docs/PageUsersOnlineResponse.md @@ -0,0 +1,16 @@ +# PageUsersOnlineResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next_after_user_id** | Option<**String**> | | +**next_after_name** | Option<**String**> | | +**total_count** | **f64** | | +**anon_count** | **f64** | | +**users** | [**Vec**](PageUserEntry.md) | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PagesSortBy.md b/client/docs/PagesSortBy.md new file mode 100644 index 0000000..8585758 --- /dev/null +++ b/client/docs/PagesSortBy.md @@ -0,0 +1,14 @@ +# PagesSortBy + +## Enum Variants + +| Name | Value | +|---- | -----| +| UpdatedAt | updatedAt | +| CommentCount | commentCount | +| Title | title | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PatchDomainConfigResponse.md b/client/docs/PatchDomainConfigResponse.md new file mode 100644 index 0000000..5fd45dd --- /dev/null +++ b/client/docs/PatchDomainConfigResponse.md @@ -0,0 +1,14 @@ +# PatchDomainConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | Option<**serde_json::Value**> | | [optional] +**status** | Option<**serde_json::Value**> | | +**reason** | Option<**String**> | | [optional] +**code** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PatchHashTag200Response.md b/client/docs/PatchHashTag200Response.md deleted file mode 100644 index 702b516..0000000 --- a/client/docs/PatchHashTag200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# PatchHashTag200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**hash_tag** | [**models::TenantHashTag**](TenantHashTag.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PendingCommentToSyncOutbound.md b/client/docs/PendingCommentToSyncOutbound.md index f510e69..e819756 100644 --- a/client/docs/PendingCommentToSyncOutbound.md +++ b/client/docs/PendingCommentToSyncOutbound.md @@ -8,14 +8,14 @@ Name | Type | Description | Notes **comment_id** | **String** | | **comment** | Option<[**models::FComment**](FComment.md)> | | [optional] **external_id** | Option<**String**> | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **tenant_id** | **String** | | **attempt_count** | **f64** | | -**next_attempt_at** | **String** | | +**next_attempt_at** | **chrono::DateTime** | | **event_type** | **f64** | | **r#type** | **f64** | | **domain** | **String** | | -**last_error** | [**serde_json::Value**](.md) | | +**last_error** | **serde_json::Value** | | **webhook_id** | Option<**String**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/PinComment200Response.md b/client/docs/PinComment200Response.md deleted file mode 100644 index e15932b..0000000 --- a/client/docs/PinComment200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# PinComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment_positions** | [**std::collections::HashMap**](Record_string__before_string_or_null__after_string_or_null___value.md) | Construct a type with a set of properties K of type T | -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentResponse.md new file mode 100644 index 0000000..c4f773e --- /dev/null +++ b/client/docs/PostRemoveCommentResponse.md @@ -0,0 +1,12 @@ +# PostRemoveCommentResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**status** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PreBanSummary.md b/client/docs/PreBanSummary.md new file mode 100644 index 0000000..61026d2 --- /dev/null +++ b/client/docs/PreBanSummary.md @@ -0,0 +1,13 @@ +# PreBanSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | +**usernames** | **Vec** | | +**count** | **f64** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PubSubComment.md b/client/docs/PubSubComment.md index d9f387a..a28a24a 100644 --- a/client/docs/PubSubComment.md +++ b/client/docs/PubSubComment.md @@ -37,7 +37,7 @@ Name | Type | Description | Notes **domain** | Option<**String**> | | [optional] **url** | **String** | | **page_title** | Option<**String**> | | [optional] -**expire_at** | Option<**String**> | | [optional] +**expire_at** | Option<**chrono::DateTime**> | | [optional] **reviewed** | Option<**bool**> | | [optional] **has_code** | Option<**bool**> | | [optional] **approved** | **bool** | | diff --git a/client/docs/PubSubCommentBase.md b/client/docs/PubSubCommentBase.md index 02a9ea5..48197d9 100644 --- a/client/docs/PubSubCommentBase.md +++ b/client/docs/PubSubCommentBase.md @@ -37,7 +37,7 @@ Name | Type | Description | Notes **domain** | Option<**String**> | | [optional] **url** | **String** | | **page_title** | Option<**String**> | | [optional] -**expire_at** | Option<**String**> | | [optional] +**expire_at** | Option<**chrono::DateTime**> | | [optional] **reviewed** | Option<**bool**> | | [optional] **has_code** | Option<**bool**> | | [optional] **approved** | **bool** | | diff --git a/client/docs/PublicApi.md b/client/docs/PublicApi.md index 05fc7a4..c4135de 100644 --- a/client/docs/PublicApi.md +++ b/client/docs/PublicApi.md @@ -8,22 +8,39 @@ Method | HTTP request | Description [**checked_comments_for_blocked**](PublicApi.md#checked_comments_for_blocked) | **GET** /check-blocked-comments | [**create_comment_public**](PublicApi.md#create_comment_public) | **POST** /comments/{tenantId} | [**create_feed_post_public**](PublicApi.md#create_feed_post_public) | **POST** /feed-posts/{tenantId} | +[**create_v1_page_react**](PublicApi.md#create_v1_page_react) | **POST** /page-reacts/v1/likes/{tenantId} | +[**create_v2_page_react**](PublicApi.md#create_v2_page_react) | **POST** /page-reacts/v2/{tenantId} | [**delete_comment_public**](PublicApi.md#delete_comment_public) | **DELETE** /comments/{tenantId}/{commentId} | [**delete_comment_vote**](PublicApi.md#delete_comment_vote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | [**delete_feed_post_public**](PublicApi.md#delete_feed_post_public) | **DELETE** /feed-posts/{tenantId}/{postId} | +[**delete_v1_page_react**](PublicApi.md#delete_v1_page_react) | **DELETE** /page-reacts/v1/likes/{tenantId} | +[**delete_v2_page_react**](PublicApi.md#delete_v2_page_react) | **DELETE** /page-reacts/v2/{tenantId} | [**flag_comment_public**](PublicApi.md#flag_comment_public) | **POST** /flag-comment/{commentId} | [**get_comment_text**](PublicApi.md#get_comment_text) | **GET** /comments/{tenantId}/{commentId}/text | [**get_comment_vote_user_names**](PublicApi.md#get_comment_vote_user_names) | **GET** /comments/{tenantId}/{commentId}/votes | +[**get_comments_for_user**](PublicApi.md#get_comments_for_user) | **GET** /comments-for-user | [**get_comments_public**](PublicApi.md#get_comments_public) | **GET** /comments/{tenantId} | [**get_event_log**](PublicApi.md#get_event_log) | **GET** /event-log/{tenantId} | [**get_feed_posts_public**](PublicApi.md#get_feed_posts_public) | **GET** /feed-posts/{tenantId} | [**get_feed_posts_stats**](PublicApi.md#get_feed_posts_stats) | **GET** /feed-posts/{tenantId}/stats | +[**get_gif_large**](PublicApi.md#get_gif_large) | **GET** /gifs/get-large/{tenantId} | +[**get_gifs_search**](PublicApi.md#get_gifs_search) | **GET** /gifs/search/{tenantId} | +[**get_gifs_trending**](PublicApi.md#get_gifs_trending) | **GET** /gifs/trending/{tenantId} | [**get_global_event_log**](PublicApi.md#get_global_event_log) | **GET** /event-log/global/{tenantId} | +[**get_offline_users**](PublicApi.md#get_offline_users) | **GET** /pages/{tenantId}/users/offline | +[**get_online_users**](PublicApi.md#get_online_users) | **GET** /pages/{tenantId}/users/online | +[**get_pages_public**](PublicApi.md#get_pages_public) | **GET** /pages/{tenantId} | +[**get_translations**](PublicApi.md#get_translations) | **GET** /translations/{namespace}/{component} | [**get_user_notification_count**](PublicApi.md#get_user_notification_count) | **GET** /user-notifications/get-count | [**get_user_notifications**](PublicApi.md#get_user_notifications) | **GET** /user-notifications | [**get_user_presence_statuses**](PublicApi.md#get_user_presence_statuses) | **GET** /user-presence-status | [**get_user_reacts_public**](PublicApi.md#get_user_reacts_public) | **GET** /feed-posts/{tenantId}/user-reacts | +[**get_users_info**](PublicApi.md#get_users_info) | **GET** /pages/{tenantId}/users/info | +[**get_v1_page_likes**](PublicApi.md#get_v1_page_likes) | **GET** /page-reacts/v1/likes/{tenantId} | +[**get_v2_page_react_users**](PublicApi.md#get_v2_page_react_users) | **GET** /page-reacts/v2/{tenantId}/list | +[**get_v2_page_reacts**](PublicApi.md#get_v2_page_reacts) | **GET** /page-reacts/v2/{tenantId} | [**lock_comment**](PublicApi.md#lock_comment) | **POST** /comments/{tenantId}/{commentId}/lock | +[**logout_public**](PublicApi.md#logout_public) | **PUT** /auth/logout | [**pin_comment**](PublicApi.md#pin_comment) | **POST** /comments/{tenantId}/{commentId}/pin | [**react_feed_post_public**](PublicApi.md#react_feed_post_public) | **POST** /feed-posts/{tenantId}/react/{postId} | [**reset_user_notification_count**](PublicApi.md#reset_user_notification_count) | **POST** /user-notifications/reset-count | @@ -44,7 +61,7 @@ Method | HTTP request | Description ## block_from_comment_public -> models::BlockFromCommentPublic200Response block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso) +> models::BlockSuccess block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso) ### Parameters @@ -59,7 +76,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::BlockFromCommentPublic200Response**](BlockFromCommentPublic_200_response.md) +[**models::BlockSuccess**](BlockSuccess.md) ### Authorization @@ -75,7 +92,7 @@ No authorization required ## checked_comments_for_blocked -> models::CheckedCommentsForBlocked200Response checked_comments_for_blocked(tenant_id, comment_ids, sso) +> models::CheckBlockedCommentsResponse checked_comments_for_blocked(tenant_id, comment_ids, sso) ### Parameters @@ -89,7 +106,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CheckedCommentsForBlocked200Response**](CheckedCommentsForBlocked_200_response.md) +[**models::CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) ### Authorization @@ -105,7 +122,7 @@ No authorization required ## create_comment_public -> models::CreateCommentPublic200Response create_comment_public(tenant_id, url_id, broadcast_id, comment_data, session_id, sso) +> models::SaveCommentsResponseWithPresence create_comment_public(tenant_id, url_id, broadcast_id, comment_data, session_id, sso) ### Parameters @@ -122,7 +139,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateCommentPublic200Response**](CreateCommentPublic_200_response.md) +[**models::SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) ### Authorization @@ -138,7 +155,7 @@ No authorization required ## create_feed_post_public -> models::CreateFeedPostPublic200Response create_feed_post_public(tenant_id, create_feed_post_params, broadcast_id, sso) +> models::CreateFeedPostResponse create_feed_post_public(tenant_id, create_feed_post_params, broadcast_id, sso) ### Parameters @@ -153,7 +170,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateFeedPostPublic200Response**](CreateFeedPostPublic_200_response.md) +[**models::CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -167,9 +184,70 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +## create_v1_page_react + +> models::CreateV1PageReact create_v1_page_react(tenant_id, url_id, title) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | | [required] | +**title** | Option<**String**> | | | + +### Return type + +[**models::CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## create_v2_page_react + +> models::CreateV1PageReact create_v2_page_react(tenant_id, url_id, id, title) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | | [required] | +**id** | **String** | | [required] | +**title** | Option<**String**> | | | + +### Return type + +[**models::CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + ## delete_comment_public -> models::DeleteCommentPublic200Response delete_comment_public(tenant_id, comment_id, broadcast_id, edit_key, sso) +> models::PublicApiDeleteCommentResponse delete_comment_public(tenant_id, comment_id, broadcast_id, edit_key, sso) ### Parameters @@ -185,7 +263,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::DeleteCommentPublic200Response**](DeleteCommentPublic_200_response.md) +[**models::PublicApiDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) ### Authorization @@ -201,7 +279,7 @@ No authorization required ## delete_comment_vote -> models::DeleteCommentVote200Response delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, edit_key, sso) +> models::VoteDeleteResponse delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, edit_key, sso) ### Parameters @@ -219,7 +297,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::DeleteCommentVote200Response**](DeleteCommentVote_200_response.md) +[**models::VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -235,7 +313,7 @@ No authorization required ## delete_feed_post_public -> models::DeleteFeedPostPublic200Response delete_feed_post_public(tenant_id, post_id, broadcast_id, sso) +> models::DeleteFeedPostPublicResponse delete_feed_post_public(tenant_id, post_id, broadcast_id, sso) ### Parameters @@ -250,7 +328,66 @@ Name | Type | Description | Required | Notes ### Return type -[**models::DeleteFeedPostPublic200Response**](DeleteFeedPostPublic_200_response.md) +[**models::DeleteFeedPostPublicResponse**](DeleteFeedPostPublicResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_v1_page_react + +> models::CreateV1PageReact delete_v1_page_react(tenant_id, url_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | | [required] | + +### Return type + +[**models::CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## delete_v2_page_react + +> models::CreateV1PageReact delete_v2_page_react(tenant_id, url_id, id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | | [required] | +**id** | **String** | | [required] | + +### Return type + +[**models::CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -266,7 +403,7 @@ No authorization required ## flag_comment_public -> models::FlagCommentPublic200Response flag_comment_public(tenant_id, comment_id, is_flagged, sso) +> models::ApiEmptyResponse flag_comment_public(tenant_id, comment_id, is_flagged, sso) ### Parameters @@ -281,7 +418,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::FlagCommentPublic200Response**](FlagCommentPublic_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -297,7 +434,7 @@ No authorization required ## get_comment_text -> models::GetCommentText200Response get_comment_text(tenant_id, comment_id, edit_key, sso) +> models::PublicApiGetCommentTextResponse get_comment_text(tenant_id, comment_id, edit_key, sso) ### Parameters @@ -312,7 +449,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetCommentText200Response**](GetCommentText_200_response.md) +[**models::PublicApiGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) ### Authorization @@ -328,7 +465,7 @@ No authorization required ## get_comment_vote_user_names -> models::GetCommentVoteUserNames200Response get_comment_vote_user_names(tenant_id, comment_id, dir, sso) +> models::GetCommentVoteUserNamesSuccessResponse get_comment_vote_user_names(tenant_id, comment_id, dir, sso) ### Parameters @@ -343,7 +480,41 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetCommentVoteUserNames200Response**](GetCommentVoteUserNames_200_response.md) +[**models::GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_comments_for_user + +> models::GetCommentsForUserResponse get_comments_for_user(user_id, direction, replies_to_user_id, page, includei10n, locale, is_crawler) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**user_id** | Option<**String**> | | | +**direction** | Option<[**SortDirections**](SortDirections.md)> | | | +**replies_to_user_id** | Option<**String**> | | | +**page** | Option<**f64**> | | | +**includei10n** | Option<**bool**> | | | +**locale** | Option<**String**> | | | +**is_crawler** | Option<**bool**> | | | + +### Return type + +[**models::GetCommentsForUserResponse**](GetCommentsForUserResponse.md) ### Authorization @@ -359,7 +530,7 @@ No authorization required ## get_comments_public -> models::GetCommentsPublic200Response get_comments_public(tenant_id, url_id, page, direction, sso, skip, skip_children, limit, limit_children, count_children, fetch_page_for_comment_id, include_config, count_all, includei10n, locale, modules, is_crawler, include_notification_count, as_tree, max_tree_depth, use_full_translation_ids, parent_id, search_text, hash_tags, user_id, custom_config_str, after_comment_id, before_comment_id) +> models::GetCommentsResponseWithPresencePublicComment get_comments_public(tenant_id, url_id, page, direction, sso, skip, skip_children, limit, limit_children, count_children, fetch_page_for_comment_id, include_config, count_all, includei10n, locale, modules, is_crawler, include_notification_count, as_tree, max_tree_depth, use_full_translation_ids, parent_id, search_text, hash_tags, user_id, custom_config_str, after_comment_id, before_comment_id) req tenantId urlId @@ -372,7 +543,7 @@ Name | Type | Description | Required | Notes **tenant_id** | **String** | | [required] | **url_id** | **String** | | [required] | **page** | Option<**i32**> | | | -**direction** | Option<[**SortDirections**](.md)> | | | +**direction** | Option<[**SortDirections**](SortDirections.md)> | | | **sso** | Option<**String**> | | | **skip** | Option<**i32**> | | | **skip_children** | Option<**i32**> | | | @@ -400,7 +571,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetCommentsPublic200Response**](GetCommentsPublic_200_response.md) +[**models::GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresence_PublicComment_.md) ### Authorization @@ -416,7 +587,7 @@ No authorization required ## get_event_log -> models::GetEventLog200Response get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time) +> models::GetEventLogResponse get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time) req tenantId urlId userIdWS @@ -430,11 +601,11 @@ Name | Type | Description | Required | Notes **url_id** | **String** | | [required] | **user_id_ws** | **String** | | [required] | **start_time** | **i64** | | [required] | -**end_time** | **i64** | | [required] | +**end_time** | Option<**i64**> | | | ### Return type -[**models::GetEventLog200Response**](GetEventLog_200_response.md) +[**models::GetEventLogResponse**](GetEventLogResponse.md) ### Authorization @@ -450,7 +621,7 @@ No authorization required ## get_feed_posts_public -> models::GetFeedPostsPublic200Response get_feed_posts_public(tenant_id, after_id, limit, tags, sso, is_crawler, include_user_info) +> models::PublicFeedPostsResponse get_feed_posts_public(tenant_id, after_id, limit, tags, sso, is_crawler, include_user_info) req tenantId afterId @@ -470,7 +641,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetFeedPostsPublic200Response**](GetFeedPostsPublic_200_response.md) +[**models::PublicFeedPostsResponse**](PublicFeedPostsResponse.md) ### Authorization @@ -486,7 +657,7 @@ No authorization required ## get_feed_posts_stats -> models::GetFeedPostsStats200Response get_feed_posts_stats(tenant_id, post_ids, sso) +> models::FeedPostsStatsResponse get_feed_posts_stats(tenant_id, post_ids, sso) ### Parameters @@ -500,7 +671,99 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetFeedPostsStats200Response**](GetFeedPostsStats_200_response.md) +[**models::FeedPostsStatsResponse**](FeedPostsStatsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_gif_large + +> models::GifGetLargeResponse get_gif_large(tenant_id, large_internal_url_sanitized) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**large_internal_url_sanitized** | **String** | | [required] | + +### Return type + +[**models::GifGetLargeResponse**](GifGetLargeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_gifs_search + +> models::GetGifsSearchResponse get_gifs_search(tenant_id, search, locale, rating, page) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**search** | **String** | | [required] | +**locale** | Option<**String**> | | | +**rating** | Option<**String**> | | | +**page** | Option<**f64**> | | | + +### Return type + +[**models::GetGifsSearchResponse**](GetGifsSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_gifs_trending + +> models::GetGifsTrendingResponse get_gifs_trending(tenant_id, locale, rating, page) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**locale** | Option<**String**> | | | +**rating** | Option<**String**> | | | +**page** | Option<**f64**> | | | + +### Return type + +[**models::GetGifsTrendingResponse**](GetGifsTrendingResponse.md) ### Authorization @@ -516,7 +779,7 @@ No authorization required ## get_global_event_log -> models::GetEventLog200Response get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time) +> models::GetEventLogResponse get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time) req tenantId urlId userIdWS @@ -530,11 +793,143 @@ Name | Type | Description | Required | Notes **url_id** | **String** | | [required] | **user_id_ws** | **String** | | [required] | **start_time** | **i64** | | [required] | -**end_time** | **i64** | | [required] | +**end_time** | Option<**i64**> | | | + +### Return type + +[**models::GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_offline_users + +> models::PageUsersOfflineResponse get_offline_users(tenant_id, url_id, after_name, after_user_id) + + +Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | Page URL identifier (cleaned server-side). | [required] | +**after_name** | Option<**String**> | Cursor: pass nextAfterName from the previous response. | | +**after_user_id** | Option<**String**> | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | | + +### Return type + +[**models::PageUsersOfflineResponse**](PageUsersOfflineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_online_users + +> models::PageUsersOnlineResponse get_online_users(tenant_id, url_id, after_name, after_user_id) + + +Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | Page URL identifier (cleaned server-side). | [required] | +**after_name** | Option<**String**> | Cursor: pass nextAfterName from the previous response. | | +**after_user_id** | Option<**String**> | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | | + +### Return type + +[**models::PageUsersOnlineResponse**](PageUsersOnlineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_pages_public + +> models::GetPublicPagesResponse get_pages_public(tenant_id, cursor, limit, q, sort_by, has_comments) + + +List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**cursor** | Option<**String**> | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. | | +**limit** | Option<**i32**> | 1..200, default 50 | | +**q** | Option<**String**> | Optional case-insensitive title prefix filter. | | +**sort_by** | Option<[**PagesSortBy**](PagesSortBy.md)> | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). | | +**has_comments** | Option<**bool**> | If true, only return pages with at least one comment. | | ### Return type -[**models::GetEventLog200Response**](GetEventLog_200_response.md) +[**models::GetPublicPagesResponse**](GetPublicPagesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_translations + +> models::GetTranslationsResponse get_translations(namespace, component, locale, use_full_translation_ids) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**namespace** | **String** | | [required] | +**component** | **String** | | [required] | +**locale** | Option<**String**> | | | +**use_full_translation_ids** | Option<**bool**> | | | + +### Return type + +[**models::GetTranslationsResponse**](GetTranslationsResponse.md) ### Authorization @@ -550,7 +945,7 @@ No authorization required ## get_user_notification_count -> models::GetUserNotificationCount200Response get_user_notification_count(tenant_id, sso) +> models::GetUserNotificationCountResponse get_user_notification_count(tenant_id, sso) ### Parameters @@ -563,7 +958,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUserNotificationCount200Response**](GetUserNotificationCount_200_response.md) +[**models::GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) ### Authorization @@ -579,7 +974,7 @@ No authorization required ## get_user_notifications -> models::GetUserNotifications200Response get_user_notifications(tenant_id, page_size, after_id, include_context, after_created_at, unread_only, dm_only, no_dm, include_translations, sso) +> models::GetMyNotificationsResponse get_user_notifications(tenant_id, url_id, page_size, after_id, include_context, after_created_at, unread_only, dm_only, no_dm, include_translations, include_tenant_notifications, sso) ### Parameters @@ -588,6 +983,7 @@ No authorization required Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tenant_id** | **String** | | [required] | +**url_id** | Option<**String**> | Used to determine whether the current page is subscribed. | | **page_size** | Option<**i32**> | | | **after_id** | Option<**String**> | | | **include_context** | Option<**bool**> | | | @@ -596,11 +992,12 @@ Name | Type | Description | Required | Notes **dm_only** | Option<**bool**> | | | **no_dm** | Option<**bool**> | | | **include_translations** | Option<**bool**> | | | +**include_tenant_notifications** | Option<**bool**> | | | **sso** | Option<**String**> | | | ### Return type -[**models::GetUserNotifications200Response**](GetUserNotifications_200_response.md) +[**models::GetMyNotificationsResponse**](GetMyNotificationsResponse.md) ### Authorization @@ -616,7 +1013,7 @@ No authorization required ## get_user_presence_statuses -> models::GetUserPresenceStatuses200Response get_user_presence_statuses(tenant_id, url_id_ws, user_ids) +> models::GetUserPresenceStatusesResponse get_user_presence_statuses(tenant_id, url_id_ws, user_ids) ### Parameters @@ -630,7 +1027,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUserPresenceStatuses200Response**](GetUserPresenceStatuses_200_response.md) +[**models::GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) ### Authorization @@ -646,7 +1043,7 @@ No authorization required ## get_user_reacts_public -> models::GetUserReactsPublic200Response get_user_reacts_public(tenant_id, post_ids, sso) +> models::UserReactsResponse get_user_reacts_public(tenant_id, post_ids, sso) ### Parameters @@ -660,7 +1057,126 @@ Name | Type | Description | Required | Notes ### Return type -[**models::GetUserReactsPublic200Response**](GetUserReactsPublic_200_response.md) +[**models::UserReactsResponse**](UserReactsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_users_info + +> models::PageUsersInfoResponse get_users_info(tenant_id, ids) + + +Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**ids** | **String** | Comma-delimited userIds. | [required] | + +### Return type + +[**models::PageUsersInfoResponse**](PageUsersInfoResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_v1_page_likes + +> models::GetV1PageLikes get_v1_page_likes(tenant_id, url_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | | [required] | + +### Return type + +[**models::GetV1PageLikes**](GetV1PageLikes.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_v2_page_react_users + +> models::GetV2PageReactUsersResponse get_v2_page_react_users(tenant_id, url_id, id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | | [required] | +**id** | **String** | | [required] | + +### Return type + +[**models::GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## get_v2_page_reacts + +> models::GetV2PageReacts get_v2_page_reacts(tenant_id, url_id) + + +### Parameters + + +Name | Type | Description | Required | Notes +------------- | ------------- | ------------- | ------------- | ------------- +**tenant_id** | **String** | | [required] | +**url_id** | **String** | | [required] | + +### Return type + +[**models::GetV2PageReacts**](GetV2PageReacts.md) ### Authorization @@ -676,7 +1192,7 @@ No authorization required ## lock_comment -> models::LockComment200Response lock_comment(tenant_id, comment_id, broadcast_id, sso) +> models::ApiEmptyResponse lock_comment(tenant_id, comment_id, broadcast_id, sso) ### Parameters @@ -691,7 +1207,32 @@ Name | Type | Description | Required | Notes ### Return type -[**models::LockComment200Response**](LockComment_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +## logout_public + +> models::ApiEmptyResponse logout_public() + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -707,7 +1248,7 @@ No authorization required ## pin_comment -> models::PinComment200Response pin_comment(tenant_id, comment_id, broadcast_id, sso) +> models::ChangeCommentPinStatusResponse pin_comment(tenant_id, comment_id, broadcast_id, sso) ### Parameters @@ -722,7 +1263,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::PinComment200Response**](PinComment_200_response.md) +[**models::ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -738,7 +1279,7 @@ No authorization required ## react_feed_post_public -> models::ReactFeedPostPublic200Response react_feed_post_public(tenant_id, post_id, react_body_params, is_undo, broadcast_id, sso) +> models::ReactFeedPostResponse react_feed_post_public(tenant_id, post_id, react_body_params, is_undo, broadcast_id, sso) ### Parameters @@ -755,7 +1296,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::ReactFeedPostPublic200Response**](ReactFeedPostPublic_200_response.md) +[**models::ReactFeedPostResponse**](ReactFeedPostResponse.md) ### Authorization @@ -771,7 +1312,7 @@ No authorization required ## reset_user_notification_count -> models::ResetUserNotifications200Response reset_user_notification_count(tenant_id, sso) +> models::ResetUserNotificationsResponse reset_user_notification_count(tenant_id, sso) ### Parameters @@ -784,7 +1325,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::ResetUserNotifications200Response**](ResetUserNotifications_200_response.md) +[**models::ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -800,7 +1341,7 @@ No authorization required ## reset_user_notifications -> models::ResetUserNotifications200Response reset_user_notifications(tenant_id, after_id, after_created_at, unread_only, dm_only, no_dm, sso) +> models::ResetUserNotificationsResponse reset_user_notifications(tenant_id, after_id, after_created_at, unread_only, dm_only, no_dm, sso) ### Parameters @@ -818,7 +1359,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::ResetUserNotifications200Response**](ResetUserNotifications_200_response.md) +[**models::ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -834,7 +1375,7 @@ No authorization required ## search_users -> models::SearchUsers200Response search_users(tenant_id, url_id, username_starts_with, mention_group_ids, sso, search_section) +> models::SearchUsersResult search_users(tenant_id, url_id, username_starts_with, mention_group_ids, sso, search_section) ### Parameters @@ -851,7 +1392,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::SearchUsers200Response**](SearchUsers_200_response.md) +[**models::SearchUsersResult**](SearchUsersResult.md) ### Authorization @@ -867,7 +1408,7 @@ No authorization required ## set_comment_text -> models::SetCommentText200Response set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, edit_key, sso) +> models::PublicApiSetCommentTextResponse set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, edit_key, sso) ### Parameters @@ -884,7 +1425,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::SetCommentText200Response**](SetCommentText_200_response.md) +[**models::PublicApiSetCommentTextResponse**](PublicAPISetCommentTextResponse.md) ### Authorization @@ -900,7 +1441,7 @@ No authorization required ## un_block_comment_public -> models::UnBlockCommentPublic200Response un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso) +> models::UnblockSuccess un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso) ### Parameters @@ -915,7 +1456,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::UnBlockCommentPublic200Response**](UnBlockCommentPublic_200_response.md) +[**models::UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -931,7 +1472,7 @@ No authorization required ## un_lock_comment -> models::LockComment200Response un_lock_comment(tenant_id, comment_id, broadcast_id, sso) +> models::ApiEmptyResponse un_lock_comment(tenant_id, comment_id, broadcast_id, sso) ### Parameters @@ -946,7 +1487,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::LockComment200Response**](LockComment_200_response.md) +[**models::ApiEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -962,7 +1503,7 @@ No authorization required ## un_pin_comment -> models::PinComment200Response un_pin_comment(tenant_id, comment_id, broadcast_id, sso) +> models::ChangeCommentPinStatusResponse un_pin_comment(tenant_id, comment_id, broadcast_id, sso) ### Parameters @@ -977,7 +1518,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::PinComment200Response**](PinComment_200_response.md) +[**models::ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -993,7 +1534,7 @@ No authorization required ## update_feed_post_public -> models::CreateFeedPostPublic200Response update_feed_post_public(tenant_id, post_id, update_feed_post_params, broadcast_id, sso) +> models::CreateFeedPostResponse update_feed_post_public(tenant_id, post_id, update_feed_post_params, broadcast_id, sso) ### Parameters @@ -1009,7 +1550,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::CreateFeedPostPublic200Response**](CreateFeedPostPublic_200_response.md) +[**models::CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -1025,7 +1566,7 @@ No authorization required ## update_user_notification_comment_subscription_status -> models::UpdateUserNotificationStatus200Response update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, sso) +> models::UpdateUserNotificationCommentSubscriptionStatusResponse update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, sso) Enable or disable notifications for a specific comment. @@ -1043,7 +1584,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus_200_response.md) +[**models::UpdateUserNotificationCommentSubscriptionStatusResponse**](UpdateUserNotificationCommentSubscriptionStatusResponse.md) ### Authorization @@ -1059,7 +1600,7 @@ No authorization required ## update_user_notification_page_subscription_status -> models::UpdateUserNotificationStatus200Response update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, sso) +> models::UpdateUserNotificationPageSubscriptionStatusResponse update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, sso) Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also @@ -1078,7 +1619,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus_200_response.md) +[**models::UpdateUserNotificationPageSubscriptionStatusResponse**](UpdateUserNotificationPageSubscriptionStatusResponse.md) ### Authorization @@ -1094,7 +1635,7 @@ No authorization required ## update_user_notification_status -> models::UpdateUserNotificationStatus200Response update_user_notification_status(tenant_id, notification_id, new_status, sso) +> models::UpdateUserNotificationStatusResponse update_user_notification_status(tenant_id, notification_id, new_status, sso) ### Parameters @@ -1109,7 +1650,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus_200_response.md) +[**models::UpdateUserNotificationStatusResponse**](UpdateUserNotificationStatusResponse.md) ### Authorization @@ -1137,7 +1678,7 @@ Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **tenant_id** | **String** | | [required] | **file** | **std::path::PathBuf** | | [required] | -**size_preset** | Option<[**SizePreset**](.md)> | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) | | +**size_preset** | Option<[**SizePreset**](SizePreset.md)> | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) | | **url_id** | Option<**String**> | Page id that upload is happening from, to configure | | ### Return type @@ -1158,7 +1699,7 @@ No authorization required ## vote_comment -> models::VoteComment200Response vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, session_id, sso) +> models::VoteResponse vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, session_id, sso) ### Parameters @@ -1176,7 +1717,7 @@ Name | Type | Description | Required | Notes ### Return type -[**models::VoteComment200Response**](VoteComment_200_response.md) +[**models::VoteResponse**](VoteResponse.md) ### Authorization diff --git a/client/docs/PublicComment.md b/client/docs/PublicComment.md index f64e1eb..45eedf2 100644 --- a/client/docs/PublicComment.md +++ b/client/docs/PublicComment.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **commenter_link** | Option<**String**> | | [optional] **comment_html** | **String** | | **parent_id** | Option<**String**> | | [optional] -**date** | Option<**String**> | | +**date** | Option<**chrono::DateTime**> | | **votes** | Option<**i32**> | | [optional] **votes_up** | Option<**i32**> | | [optional] **votes_down** | Option<**i32**> | | [optional] diff --git a/client/docs/PublicCommentBase.md b/client/docs/PublicCommentBase.md index 80c49be..e2c4019 100644 --- a/client/docs/PublicCommentBase.md +++ b/client/docs/PublicCommentBase.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **commenter_link** | Option<**String**> | | [optional] **comment_html** | **String** | | **parent_id** | Option<**String**> | | [optional] -**date** | Option<**String**> | | +**date** | Option<**chrono::DateTime**> | | **votes** | Option<**i32**> | | [optional] **votes_up** | Option<**i32**> | | [optional] **votes_down** | Option<**i32**> | | [optional] diff --git a/client/docs/PublicFeedPostsResponse.md b/client/docs/PublicFeedPostsResponse.md index abe45a0..516b796 100644 --- a/client/docs/PublicFeedPostsResponse.md +++ b/client/docs/PublicFeedPostsResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **url_id_ws** | Option<**String**> | | [optional] **user_id_ws** | Option<**String**> | | [optional] **tenant_id_ws** | Option<**String**> | | [optional] -**my_reacts** | Option<[**std::collections::HashMap>**](std::collections::HashMap.md)> | | [optional] +**my_reacts** | Option<**std::collections::HashMap>**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/PublicPage.md b/client/docs/PublicPage.md new file mode 100644 index 0000000..c7066ab --- /dev/null +++ b/client/docs/PublicPage.md @@ -0,0 +1,15 @@ +# PublicPage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**updated_at** | **i64** | | +**comment_count** | **i32** | | +**title** | **String** | | +**url** | **String** | | +**url_id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PublicVote.md b/client/docs/PublicVote.md index 7e61a0a..f6d0096 100644 --- a/client/docs/PublicVote.md +++ b/client/docs/PublicVote.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **comment_id** | **String** | | **user_id** | **String** | | **direction** | **String** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/PutDomainConfigResponse.md b/client/docs/PutDomainConfigResponse.md new file mode 100644 index 0000000..479d78c --- /dev/null +++ b/client/docs/PutDomainConfigResponse.md @@ -0,0 +1,14 @@ +# PutDomainConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | Option<**serde_json::Value**> | | [optional] +**status** | Option<**serde_json::Value**> | | +**reason** | Option<**String**> | | [optional] +**code** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/QueryPredicate.md b/client/docs/QueryPredicate.md index 0a9c400..d9cc0ec 100644 --- a/client/docs/QueryPredicate.md +++ b/client/docs/QueryPredicate.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | | -**value** | [**models::QueryPredicateValue**](QueryPredicate_value.md) | | -**operator** | **String** | | +**value** | [**models::QueryPredicateValue**](QueryPredicateValue.md) | | +**operator** | **Operator** | (enum: eq, not_eq, greater_than, less_than, contains) | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/QuestionConfig.md b/client/docs/QuestionConfig.md index 7fff864..6fe195a 100644 --- a/client/docs/QuestionConfig.md +++ b/client/docs/QuestionConfig.md @@ -10,10 +10,10 @@ Name | Type | Description | Notes **question** | **String** | | **summary_label** | Option<**String**> | | [optional] **help_text** | **String** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **created_by** | **String** | | **used_count** | **f64** | | -**last_used** | **String** | | +**last_used** | **chrono::DateTime** | | **r#type** | **String** | | **num_stars** | **f64** | | **min** | **f64** | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes **default_value** | **f64** | | **label_negative** | **String** | | **label_positive** | **String** | | -**custom_options** | [**Vec**](QuestionConfig_customOptions_inner.md) | | +**custom_options** | [**Vec**](QuestionConfigCustomOptionsInner.md) | | **sub_question_ids** | **Vec** | | **always_show_sub_questions** | **bool** | | **reporting_order** | **f64** | | diff --git a/client/docs/QuestionResult.md b/client/docs/QuestionResult.md index 1851d61..2caae92 100644 --- a/client/docs/QuestionResult.md +++ b/client/docs/QuestionResult.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **url_id** | **String** | | **anon_user_id** | **String** | | **user_id** | **String** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **value** | **i32** | | **comment_id** | Option<**String**> | | [optional] **question_id** | **String** | | diff --git a/client/docs/QuestionResultAggregationOverall.md b/client/docs/QuestionResultAggregationOverall.md index 3fc43b0..7801edc 100644 --- a/client/docs/QuestionResultAggregationOverall.md +++ b/client/docs/QuestionResultAggregationOverall.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **counts_by_value** | Option<**std::collections::HashMap**> | | [optional] **total** | **i64** | | **average** | Option<**f64**> | | [optional] -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ReactFeedPostPublic200Response.md b/client/docs/ReactFeedPostPublic200Response.md deleted file mode 100644 index d22e7bb..0000000 --- a/client/docs/ReactFeedPostPublic200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# ReactFeedPostPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**react_type** | **String** | | -**is_undo** | **bool** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md b/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md index 7bef834..1833aa1 100644 --- a/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md +++ b/client/docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**after** | **String** | | -**before** | **String** | | +**after** | Option<**String**> | | +**before** | Option<**String**> | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/RemoveCommentActionResponse.md b/client/docs/RemoveCommentActionResponse.md new file mode 100644 index 0000000..9de296f --- /dev/null +++ b/client/docs/RemoveCommentActionResponse.md @@ -0,0 +1,12 @@ +# RemoveCommentActionResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RemoveUserBadgeResponse.md b/client/docs/RemoveUserBadgeResponse.md new file mode 100644 index 0000000..cac921b --- /dev/null +++ b/client/docs/RemoveUserBadgeResponse.md @@ -0,0 +1,12 @@ +# RemoveUserBadgeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | Option<[**Vec**](CommentUserBadgeInfo.md)> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RenderEmailTemplate200Response.md b/client/docs/RenderEmailTemplate200Response.md deleted file mode 100644 index ce29e10..0000000 --- a/client/docs/RenderEmailTemplate200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# RenderEmailTemplate200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**html** | **String** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/RenderEmailTemplateBody.md b/client/docs/RenderEmailTemplateBody.md index 5a8ca8a..75e384d 100644 --- a/client/docs/RenderEmailTemplateBody.md +++ b/client/docs/RenderEmailTemplateBody.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email_template_id** | **String** | | **ejs** | **String** | | -**test_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] -**translation_overrides_by_locale** | Option<[**std::collections::HashMap>**](std::collections::HashMap.md)> | Construct a type with a set of properties K of type T | [optional] +**test_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] +**translation_overrides_by_locale** | Option<**std::collections::HashMap>**> | Construct a type with a set of properties K of type T | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ResetUserNotifications200Response.md b/client/docs/ResetUserNotifications200Response.md deleted file mode 100644 index 038ed87..0000000 --- a/client/docs/ResetUserNotifications200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# ResetUserNotifications200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**code** | **String** | | -**reason** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ResetUserNotificationsResponse.md b/client/docs/ResetUserNotificationsResponse.md index af36611..56992ec 100644 --- a/client/docs/ResetUserNotificationsResponse.md +++ b/client/docs/ResetUserNotificationsResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | -**code** | Option<**String**> | | [optional] +**code** | Option<**Code**> | (enum: ignored-since-impersonated) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/SaveCommentResponseOptimized.md b/client/docs/SaveCommentResponseOptimized.md index 1383f1e..d807977 100644 --- a/client/docs/SaveCommentResponseOptimized.md +++ b/client/docs/SaveCommentResponseOptimized.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **status** | [**models::ApiStatus**](APIStatus.md) | | **comment** | [**models::PublicComment**](PublicComment.md) | | **user** | Option<[**models::UserSessionInfo**](UserSessionInfo.md)> | | -**module_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] +**module_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/SaveComment200Response.md b/client/docs/SaveCommentsBulkResponse.md similarity index 66% rename from client/docs/SaveComment200Response.md rename to client/docs/SaveCommentsBulkResponse.md index 20e5deb..fb6e5cd 100644 --- a/client/docs/SaveComment200Response.md +++ b/client/docs/SaveCommentsBulkResponse.md @@ -1,15 +1,15 @@ -# SaveComment200Response +# SaveCommentsBulkResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | -**comment** | [**models::FComment**](FComment.md) | | -**user** | Option<[**models::UserSessionInfo**](UserSessionInfo.md)> | | -**module_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] -**reason** | **String** | | -**code** | **String** | | +**comment** | Option<[**models::ApiComment**](APIComment.md)> | | [optional] +**user** | Option<[**models::UserSessionInfo**](UserSessionInfo.md)> | | [optional] +**module_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] +**reason** | Option<**String**> | | [optional] +**code** | Option<**String**> | | [optional] **secondary_code** | Option<**String**> | | [optional] **banned_until** | Option<**i64**> | | [optional] **max_character_length** | Option<**i32**> | | [optional] diff --git a/client/docs/SaveCommentsResponseWithPresence.md b/client/docs/SaveCommentsResponseWithPresence.md index a34d9f1..d71d892 100644 --- a/client/docs/SaveCommentsResponseWithPresence.md +++ b/client/docs/SaveCommentsResponseWithPresence.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **status** | [**models::ApiStatus**](APIStatus.md) | | **comment** | [**models::PublicComment**](PublicComment.md) | | **user** | Option<[**models::UserSessionInfo**](UserSessionInfo.md)> | | -**module_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] +**module_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] **user_id_ws** | Option<**String**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/SearchUsers200Response.md b/client/docs/SearchUsers200Response.md deleted file mode 100644 index ef64bd7..0000000 --- a/client/docs/SearchUsers200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# SearchUsers200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**sections** | [**Vec**](UserSearchSectionResult.md) | | -**users** | [**Vec**](UserSearchResult.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SearchUsersResult.md b/client/docs/SearchUsersResult.md new file mode 100644 index 0000000..e61b8c4 --- /dev/null +++ b/client/docs/SearchUsersResult.md @@ -0,0 +1,13 @@ +# SearchUsersResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | +**sections** | Option<[**Vec**](UserSearchSectionResult.md)> | | [optional] +**users** | Option<[**Vec**](UserSearchResult.md)> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentApprovedResponse.md b/client/docs/SetCommentApprovedResponse.md new file mode 100644 index 0000000..a10fc70 --- /dev/null +++ b/client/docs/SetCommentApprovedResponse.md @@ -0,0 +1,12 @@ +# SetCommentApprovedResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**did_reset_flagged_count** | Option<**bool**> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentText200Response.md b/client/docs/SetCommentText200Response.md deleted file mode 100644 index ea456ca..0000000 --- a/client/docs/SetCommentText200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# SetCommentText200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment** | [**models::SetCommentTextResult**](SetCommentTextResult.md) | | -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SetCommentTextParams.md b/client/docs/SetCommentTextParams.md new file mode 100644 index 0000000..71c809b --- /dev/null +++ b/client/docs/SetCommentTextParams.md @@ -0,0 +1,11 @@ +# SetCommentTextParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentTextResponse.md b/client/docs/SetCommentTextResponse.md new file mode 100644 index 0000000..60584a8 --- /dev/null +++ b/client/docs/SetCommentTextResponse.md @@ -0,0 +1,12 @@ +# SetCommentTextResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**new_comment_text_html** | **String** | | +**status** | [**models::ApiStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AddDomainConfig200ResponseAnyOf.md b/client/docs/SetUserTrustFactorResponse.md similarity index 64% rename from client/docs/AddDomainConfig200ResponseAnyOf.md rename to client/docs/SetUserTrustFactorResponse.md index 34ff267..89bff9d 100644 --- a/client/docs/AddDomainConfig200ResponseAnyOf.md +++ b/client/docs/SetUserTrustFactorResponse.md @@ -1,11 +1,11 @@ -# AddDomainConfig200ResponseAnyOf +# SetUserTrustFactorResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | Option<[**serde_json::Value**](.md)> | | -**status** | Option<[**serde_json::Value**](.md)> | | +**previous_manual_trust_factor** | Option<**f64**> | | [optional] +**status** | [**models::ApiStatus**](APIStatus.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/SpamRule.md b/client/docs/SpamRule.md index cd6c609..5cbc98d 100644 --- a/client/docs/SpamRule.md +++ b/client/docs/SpamRule.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**actions** | **Vec** | | +**actions** | **Vec** | (enum: spam, not-spam, ignore-repeat) | **comment_contains** | Option<**String**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/TenantBadge.md b/client/docs/TenantBadge.md new file mode 100644 index 0000000..6b32861 --- /dev/null +++ b/client/docs/TenantBadge.md @@ -0,0 +1,31 @@ +# TenantBadge + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_id** | **String** | | +**tenant_id** | **String** | | +**created_by_user_id** | **String** | | +**created_at** | **chrono::DateTime** | | +**enabled** | **bool** | | +**url_id** | Option<**String**> | | [optional] +**r#type** | **f64** | | +**threshold** | **f64** | | +**uses** | **f64** | | +**name** | **String** | | +**description** | **String** | | +**display_label** | **String** | | +**display_src** | Option<**String**> | | +**background_color** | Option<**String**> | | +**border_color** | Option<**String**> | | +**text_color** | Option<**String**> | | +**css_class** | Option<**String**> | | [optional] +**veteran_user_threshold_millis** | Option<**f64**> | | [optional] +**is_awaiting_reprocess** | **bool** | | +**is_awaiting_deletion** | **bool** | | +**replaces_badge_id** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/TenantHashTag.md b/client/docs/TenantHashTag.md index 651ee69..375e2f9 100644 --- a/client/docs/TenantHashTag.md +++ b/client/docs/TenantHashTag.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_id** | **String** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **tenant_id** | **String** | | **tag** | **String** | | **url** | Option<**String**> | | [optional] diff --git a/client/docs/TenantPackage.md b/client/docs/TenantPackage.md index 077ac22..499d2b8 100644 --- a/client/docs/TenantPackage.md +++ b/client/docs/TenantPackage.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **_id** | **String** | | **name** | **String** | | **tenant_id** | **String** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | +**template_id** | Option<**String**> | | [optional] **monthly_cost_usd** | Option<**f64**> | | **yearly_cost_usd** | Option<**f64**> | | **monthly_stripe_plan_id** | Option<**String**> | | @@ -51,6 +52,8 @@ Name | Type | Description | Notes **flex_domain_unit** | Option<**f64**> | | [optional] **flex_chat_gpt_cost_cents** | Option<**f64**> | | [optional] **flex_chat_gpt_unit** | Option<**f64**> | | [optional] +**flex_llm_cost_cents** | Option<**f64**> | | [optional] +**flex_llm_unit** | Option<**f64**> | | [optional] **flex_minimum_cost_cents** | Option<**f64**> | | [optional] **flex_managed_tenant_cost_cents** | Option<**f64**> | | [optional] **flex_sso_admin_cost_cents** | Option<**f64**> | | [optional] @@ -58,6 +61,10 @@ Name | Type | Description | Notes **flex_sso_moderator_cost_cents** | Option<**f64**> | | [optional] **flex_sso_moderator_unit** | Option<**f64**> | | [optional] **is_sso_billing_monthly_active_users** | Option<**bool**> | | [optional] +**has_ai_agents** | Option<**bool**> | | [optional] +**max_ai_agents** | Option<**f64**> | | [optional] +**ai_agent_daily_budget_cents** | Option<**f64**> | | [optional] +**ai_agent_monthly_budget_cents** | Option<**f64**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/TosConfig.md b/client/docs/TosConfig.md index c53215f..eb82109 100644 --- a/client/docs/TosConfig.md +++ b/client/docs/TosConfig.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **enabled** | Option<**bool**> | | [optional] **text_by_locale** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] -**last_updated** | Option<**String**> | | [optional] +**last_updated** | Option<**chrono::DateTime**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UnBlockCommentPublic200Response.md b/client/docs/UnBlockCommentPublic200Response.md deleted file mode 100644 index 9ec4aa9..0000000 --- a/client/docs/UnBlockCommentPublic200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# UnBlockCommentPublic200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**comment_statuses** | **std::collections::HashMap** | Construct a type with a set of properties K of type T | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdatableCommentParams.md b/client/docs/UpdatableCommentParams.md index f0fff4f..64ab68d 100644 --- a/client/docs/UpdatableCommentParams.md +++ b/client/docs/UpdatableCommentParams.md @@ -21,9 +21,9 @@ Name | Type | Description | Notes **votes** | Option<**i32**> | | [optional] **votes_up** | Option<**i32**> | | [optional] **votes_down** | Option<**i32**> | | [optional] -**expire_at** | Option<**String**> | | [optional] +**expire_at** | Option<**chrono::DateTime**> | | [optional] **verified** | Option<**bool**> | | [optional] -**verified_date** | Option<**String**> | | [optional] +**verified_date** | Option<**chrono::DateTime**> | | [optional] **notification_sent_for_parent** | Option<**bool**> | | [optional] **notification_sent_for_parent_tenant** | Option<**bool**> | | [optional] **reviewed** | Option<**bool**> | | [optional] @@ -40,7 +40,7 @@ Name | Type | Description | Notes **is_locked** | Option<**bool**> | | [optional] **flag_count** | Option<**i32**> | | [optional] **display_label** | Option<**String**> | | [optional] -**meta** | Option<[**models::ApiCommentBaseMeta**](APICommentBase_meta.md)> | | [optional] +**meta** | Option<[**models::ApiCommentBaseMeta**](APICommentBaseMeta.md)> | | [optional] **moderation_group_ids** | Option<**Vec**> | | [optional] **feedback_ids** | Option<**Vec**> | | [optional] diff --git a/client/docs/UpdateEmailTemplateBody.md b/client/docs/UpdateEmailTemplateBody.md index cc6fe49..32a689f 100644 --- a/client/docs/UpdateEmailTemplateBody.md +++ b/client/docs/UpdateEmailTemplateBody.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **display_name** | Option<**String**> | | [optional] **ejs** | Option<**String**> | | [optional] **domain** | Option<**String**> | | [optional] -**translation_overrides_by_locale** | Option<[**std::collections::HashMap>**](std::collections::HashMap.md)> | Construct a type with a set of properties K of type T | [optional] -**test_data** | Option<[**std::collections::HashMap**](serde_json::Value.md)> | Construct a type with a set of properties K of type T | [optional] +**translation_overrides_by_locale** | Option<**std::collections::HashMap>**> | Construct a type with a set of properties K of type T | [optional] +**test_data** | Option<**std::collections::HashMap**> | Construct a type with a set of properties K of type T | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UpdateQuestionConfigBody.md b/client/docs/UpdateQuestionConfigBody.md index f0a599e..7bb4a48 100644 --- a/client/docs/UpdateQuestionConfigBody.md +++ b/client/docs/UpdateQuestionConfigBody.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **default_value** | Option<**f64**> | | [optional] **label_negative** | Option<**String**> | | [optional] **label_positive** | Option<**String**> | | [optional] -**custom_options** | Option<[**Vec**](QuestionConfig_customOptions_inner.md)> | | [optional] +**custom_options** | Option<[**Vec**](QuestionConfigCustomOptionsInner.md)> | | [optional] **sub_question_ids** | Option<**Vec**> | | [optional] **always_show_sub_questions** | Option<**bool**> | | [optional] **reporting_order** | Option<**f64**> | | [optional] diff --git a/client/docs/UpdateUserBadge200Response.md b/client/docs/UpdateUserBadge200Response.md deleted file mode 100644 index 4356ae8..0000000 --- a/client/docs/UpdateUserBadge200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# UpdateUserBadge200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md new file mode 100644 index 0000000..33bc723 --- /dev/null +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -0,0 +1,14 @@ +# UpdateUserNotificationCommentSubscriptionStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | +**matched_count** | Option<**i64**> | | [optional] +**modified_count** | Option<**i64**> | | [optional] +**note** | Option<**Note**> | (enum: ignored-since-impersonated, demo-noop) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md new file mode 100644 index 0000000..1cee2f3 --- /dev/null +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -0,0 +1,14 @@ +# UpdateUserNotificationPageSubscriptionStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | +**matched_count** | Option<**i64**> | | [optional] +**modified_count** | Option<**i64**> | | [optional] +**note** | Option<**Note**> | (enum: ignored-since-impersonated, demo-noop) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/UpdateUserNotificationStatus200Response.md b/client/docs/UpdateUserNotificationStatus200Response.md deleted file mode 100644 index 9a365e8..0000000 --- a/client/docs/UpdateUserNotificationStatus200Response.md +++ /dev/null @@ -1,21 +0,0 @@ -# UpdateUserNotificationStatus200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**matched_count** | **i64** | | -**modified_count** | **i64** | | -**note** | **String** | | -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md new file mode 100644 index 0000000..69895aa --- /dev/null +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -0,0 +1,14 @@ +# UpdateUserNotificationStatusResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**models::ApiStatus**](APIStatus.md) | | +**matched_count** | Option<**i64**> | | [optional] +**modified_count** | Option<**i64**> | | [optional] +**note** | Option<**Note**> | (enum: ignored-since-impersonated, demo-noop) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/User.md b/client/docs/User.md index 706672f..d8e7b53 100644 --- a/client/docs/User.md +++ b/client/docs/User.md @@ -43,10 +43,11 @@ Name | Type | Description | Notes **digest_email_frequency** | Option<[**models::DigestEmailFrequency**](DigestEmailFrequency.md)> | | [optional] **notification_frequency** | Option<**f64**> | | [optional] **admin_notification_frequency** | Option<**f64**> | | [optional] -**last_tenant_notification_sent_date** | Option<**String**> | | [optional] -**last_reply_notification_sent_date** | Option<**String**> | | [optional] +**agent_approval_notification_frequency** | Option<[**models::ImportedAgentApprovalNotificationFrequency**](ImportedAgentApprovalNotificationFrequency.md)> | | [optional] +**last_tenant_notification_sent_date** | Option<**chrono::DateTime**> | | [optional] +**last_reply_notification_sent_date** | Option<**chrono::DateTime**> | | [optional] **ignored_add_to_my_site_messages** | Option<**bool**> | | [optional] -**last_login_date** | Option<**String**> | | [optional] +**last_login_date** | Option<**chrono::DateTime**> | | [optional] **display_label** | Option<**String**> | | [optional] **is_profile_activity_private** | Option<**bool**> | | [optional] **is_profile_comments_private** | Option<**bool**> | | [optional] diff --git a/client/docs/UserBadge.md b/client/docs/UserBadge.md index 6f6d309..aa303b4 100644 --- a/client/docs/UserBadge.md +++ b/client/docs/UserBadge.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **user_id** | **String** | | **badge_id** | **String** | | **from_tenant_id** | **String** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **r#type** | **i32** | | **threshold** | **i64** | | **description** | **String** | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes **css_class** | Option<**String**> | | [optional] **veteran_user_threshold_millis** | **i64** | | **displayed_on_comments** | **bool** | | -**received_at** | **String** | | +**received_at** | **chrono::DateTime** | | **order** | Option<**i32**> | | [optional] **url_id** | Option<**String**> | | [optional] diff --git a/client/docs/UserBadgeProgress.md b/client/docs/UserBadgeProgress.md index ec251cf..7b50a07 100644 --- a/client/docs/UserBadgeProgress.md +++ b/client/docs/UserBadgeProgress.md @@ -8,11 +8,11 @@ Name | Type | Description | Notes **tenant_id** | **String** | | **user_id** | **String** | | **first_comment_id** | **String** | | -**first_comment_date** | **String** | | +**first_comment_date** | **chrono::DateTime** | | **auto_trust_factor** | Option<**f64**> | | [optional] **manual_trust_factor** | Option<**f64**> | | [optional] **progress** | **std::collections::HashMap** | Construct a type with a set of properties K of type T | -**tos_accepted_at** | Option<**String**> | | [optional] +**tos_accepted_at** | Option<**chrono::DateTime**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UserNotification.md b/client/docs/UserNotification.md index c7fbd0a..8def60a 100644 --- a/client/docs/UserNotification.md +++ b/client/docs/UserNotification.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **viewed** | **bool** | | **is_unread_message** | **bool** | | **sent** | **bool** | | -**created_at** | **String** | | +**created_at** | **chrono::DateTime** | | **r#type** | [**models::NotificationType**](NotificationType.md) | | **from_comment_id** | Option<**String**> | | [optional] **from_vote_id** | Option<**String**> | | [optional] diff --git a/client/docs/UserNotificationCount.md b/client/docs/UserNotificationCount.md index 46f353c..04817ed 100644 --- a/client/docs/UserNotificationCount.md +++ b/client/docs/UserNotificationCount.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_id** | **String** | | **count** | **f64** | | -**created_at** | **String** | | -**expire_at** | **String** | | +**created_at** | **chrono::DateTime** | | +**expire_at** | **chrono::DateTime** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UserReactsResponse.md b/client/docs/UserReactsResponse.md index f08891e..39bd46b 100644 --- a/client/docs/UserReactsResponse.md +++ b/client/docs/UserReactsResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**models::ApiStatus**](APIStatus.md) | | -**reacts** | [**std::collections::HashMap>**](std::collections::HashMap.md) | | +**reacts** | **std::collections::HashMap>** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UserSearchResult.md b/client/docs/UserSearchResult.md index c96bb3e..0b6c55d 100644 --- a/client/docs/UserSearchResult.md +++ b/client/docs/UserSearchResult.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **String** | | **display_name** | Option<**String**> | | [optional] **avatar_src** | Option<**String**> | | [optional] -**r#type** | **String** | | +**r#type** | **Type** | (enum: user, sso) | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UsersListLocation.md b/client/docs/UsersListLocation.md new file mode 100644 index 0000000..66678ac --- /dev/null +++ b/client/docs/UsersListLocation.md @@ -0,0 +1,15 @@ +# UsersListLocation + +## Enum Variants + +| Name | Value | +|---- | -----| +| Variant0 | 0 | +| Variant1 | 1 | +| Variant2 | 2 | +| Variant3 | 3 | + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/VoteBodyParams.md b/client/docs/VoteBodyParams.md index 4e50e7b..9e67af6 100644 --- a/client/docs/VoteBodyParams.md +++ b/client/docs/VoteBodyParams.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **commenter_email** | Option<**String**> | | **commenter_name** | Option<**String**> | | -**vote_dir** | **String** | | +**vote_dir** | **VoteDir** | (enum: up, down) | **url** | Option<**String**> | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/VoteComment200Response.md b/client/docs/VoteComment200Response.md deleted file mode 100644 index 73f08b7..0000000 --- a/client/docs/VoteComment200Response.md +++ /dev/null @@ -1,22 +0,0 @@ -# VoteComment200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**models::ApiStatus**](APIStatus.md) | | -**vote_id** | Option<**String**> | | [optional] -**is_verified** | Option<**bool**> | | [optional] -**user** | Option<[**models::VoteResponseUser**](VoteResponseUser.md)> | | [optional] -**edit_key** | Option<**String**> | | [optional] -**reason** | **String** | | -**code** | **String** | | -**secondary_code** | Option<**String**> | | [optional] -**banned_until** | Option<**i64**> | | [optional] -**max_character_length** | Option<**i32**> | | [optional] -**translated_error** | Option<**String**> | | [optional] -**custom_config** | Option<[**models::CustomConfigParameters**](CustomConfigParameters.md)> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/VoteResponse.md b/client/docs/VoteResponse.md index b014142..fa62e5e 100644 --- a/client/docs/VoteResponse.md +++ b/client/docs/VoteResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **String** | | +**status** | **Status** | (enum: success, failed, pending-verification) | **vote_id** | Option<**String**> | | [optional] **is_verified** | Option<**bool**> | | [optional] **user** | Option<[**models::VoteResponseUser**](VoteResponseUser.md)> | | [optional] diff --git a/client/src/apis/default_api.rs b/client/src/apis/default_api.rs index d4aed02..e08f752 100644 --- a/client/src/apis/default_api.rs +++ b/client/src/apis/default_api.rs @@ -66,7 +66,7 @@ pub struct AggregateQuestionResultsParams { pub question_ids: Option>, pub url_id: Option, pub time_bucket: Option, - pub start_date: Option, + pub start_date: Option>, pub force_recalculate: Option } @@ -104,7 +104,7 @@ pub struct CombineCommentsWithQuestionResultsParams { pub question_id: Option, pub question_ids: Option>, pub url_id: Option, - pub start_date: Option, + pub start_date: Option>, pub force_recalculate: Option, pub min_value: Option, pub max_value: Option, @@ -239,7 +239,7 @@ pub struct DeleteEmailTemplateRenderErrorParams { pub struct DeleteHashTagParams { pub tag: String, pub tenant_id: Option, - pub delete_hash_tag_request: Option + pub delete_hash_tag_request_body: Option } /// struct for passing parameters to the method [`delete_moderator`] @@ -392,7 +392,9 @@ pub struct GetCommentsParams { pub context_user_id: Option, pub hash_tag: Option, pub parent_id: Option, - pub direction: Option + pub direction: Option, + pub from_date: Option, + pub to_date: Option } /// struct for passing parameters to the method [`get_domain_config`] @@ -970,6 +972,7 @@ pub enum AddDomainConfigError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AddHashTagError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -977,6 +980,7 @@ pub enum AddHashTagError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AddHashTagsBulkError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1005,6 +1009,7 @@ pub enum AggregateError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AggregateQuestionResultsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1012,6 +1017,7 @@ pub enum AggregateQuestionResultsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum BlockUserFromCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1019,6 +1025,7 @@ pub enum BlockUserFromCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum BulkAggregateQuestionResultsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1026,6 +1033,7 @@ pub enum BulkAggregateQuestionResultsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ChangeTicketStateError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1033,6 +1041,7 @@ pub enum ChangeTicketStateError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CombineCommentsWithQuestionResultsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1040,6 +1049,7 @@ pub enum CombineCommentsWithQuestionResultsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateEmailTemplateError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1047,6 +1057,7 @@ pub enum CreateEmailTemplateError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateFeedPostError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1054,6 +1065,7 @@ pub enum CreateFeedPostError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateModeratorError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1061,6 +1073,7 @@ pub enum CreateModeratorError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateQuestionConfigError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1068,6 +1081,7 @@ pub enum CreateQuestionConfigError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateQuestionResultError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1082,6 +1096,7 @@ pub enum CreateSubscriptionError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTenantError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1089,6 +1104,7 @@ pub enum CreateTenantError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTenantPackageError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1096,6 +1112,7 @@ pub enum CreateTenantPackageError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTenantUserError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1103,6 +1120,7 @@ pub enum CreateTenantUserError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateTicketError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1110,6 +1128,7 @@ pub enum CreateTicketError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateUserBadgeError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1117,6 +1136,7 @@ pub enum CreateUserBadgeError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateVoteError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1124,6 +1144,7 @@ pub enum CreateVoteError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1138,6 +1159,7 @@ pub enum DeleteDomainConfigError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteEmailTemplateError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1145,6 +1167,7 @@ pub enum DeleteEmailTemplateError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteEmailTemplateRenderErrorError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1152,6 +1175,7 @@ pub enum DeleteEmailTemplateRenderErrorError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteHashTagError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1159,6 +1183,7 @@ pub enum DeleteHashTagError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteModeratorError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1166,6 +1191,7 @@ pub enum DeleteModeratorError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteNotificationCountError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1180,6 +1206,7 @@ pub enum DeletePageError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeletePendingWebhookEventError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1187,6 +1214,7 @@ pub enum DeletePendingWebhookEventError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteQuestionConfigError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1194,6 +1222,7 @@ pub enum DeleteQuestionConfigError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteQuestionResultError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1215,6 +1244,7 @@ pub enum DeleteSubscriptionError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteTenantError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1222,6 +1252,7 @@ pub enum DeleteTenantError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteTenantPackageError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1229,6 +1260,7 @@ pub enum DeleteTenantPackageError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteTenantUserError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1236,6 +1268,7 @@ pub enum DeleteTenantUserError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteUserBadgeError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1243,6 +1276,7 @@ pub enum DeleteUserBadgeError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteVoteError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1250,6 +1284,7 @@ pub enum DeleteVoteError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum FlagCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1257,6 +1292,7 @@ pub enum FlagCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetAuditLogsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1264,6 +1300,7 @@ pub enum GetAuditLogsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetCachedNotificationCountError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1271,6 +1308,7 @@ pub enum GetCachedNotificationCountError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1278,6 +1316,7 @@ pub enum GetCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetCommentsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1299,6 +1338,7 @@ pub enum GetDomainConfigsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetEmailTemplateError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1306,6 +1346,7 @@ pub enum GetEmailTemplateError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetEmailTemplateDefinitionsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1313,6 +1354,7 @@ pub enum GetEmailTemplateDefinitionsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetEmailTemplateRenderErrorsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1320,6 +1362,7 @@ pub enum GetEmailTemplateRenderErrorsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetEmailTemplatesError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1327,6 +1370,7 @@ pub enum GetEmailTemplatesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetFeedPostsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1334,6 +1378,7 @@ pub enum GetFeedPostsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetHashTagsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1341,6 +1386,7 @@ pub enum GetHashTagsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetModeratorError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1348,6 +1394,7 @@ pub enum GetModeratorError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetModeratorsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1355,6 +1402,7 @@ pub enum GetModeratorsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetNotificationCountError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1362,6 +1410,7 @@ pub enum GetNotificationCountError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetNotificationsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1383,6 +1432,7 @@ pub enum GetPagesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetPendingWebhookEventCountError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1390,6 +1440,7 @@ pub enum GetPendingWebhookEventCountError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetPendingWebhookEventsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1397,6 +1448,7 @@ pub enum GetPendingWebhookEventsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetQuestionConfigError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1404,6 +1456,7 @@ pub enum GetQuestionConfigError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetQuestionConfigsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1411,6 +1464,7 @@ pub enum GetQuestionConfigsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetQuestionResultError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1418,6 +1472,7 @@ pub enum GetQuestionResultError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetQuestionResultsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1453,6 +1508,7 @@ pub enum GetSubscriptionsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTenantError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1460,6 +1516,7 @@ pub enum GetTenantError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTenantDailyUsagesError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1467,6 +1524,7 @@ pub enum GetTenantDailyUsagesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTenantPackageError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1474,6 +1532,7 @@ pub enum GetTenantPackageError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTenantPackagesError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1481,6 +1540,7 @@ pub enum GetTenantPackagesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTenantUserError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1488,6 +1548,7 @@ pub enum GetTenantUserError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTenantUsersError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1495,6 +1556,7 @@ pub enum GetTenantUsersError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTenantsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1502,6 +1564,7 @@ pub enum GetTenantsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTicketError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1509,6 +1572,7 @@ pub enum GetTicketError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetTicketsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1516,6 +1580,7 @@ pub enum GetTicketsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1523,6 +1588,7 @@ pub enum GetUserError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserBadgeError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1530,6 +1596,7 @@ pub enum GetUserBadgeError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserBadgeProgressByIdError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1537,6 +1604,7 @@ pub enum GetUserBadgeProgressByIdError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserBadgeProgressByUserIdError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1544,6 +1612,7 @@ pub enum GetUserBadgeProgressByUserIdError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserBadgeProgressListError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1551,6 +1620,7 @@ pub enum GetUserBadgeProgressListError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserBadgesError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1558,6 +1628,7 @@ pub enum GetUserBadgesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetVotesError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1565,6 +1636,7 @@ pub enum GetVotesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetVotesForUserError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1579,6 +1651,7 @@ pub enum PatchDomainConfigError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum PatchHashTagError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1614,6 +1687,7 @@ pub enum PutSsoUserError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum RenderEmailTemplateError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1621,6 +1695,7 @@ pub enum RenderEmailTemplateError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ReplaceTenantPackageError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1628,6 +1703,7 @@ pub enum ReplaceTenantPackageError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ReplaceTenantUserError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1635,6 +1711,7 @@ pub enum ReplaceTenantUserError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum SaveCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1649,6 +1726,7 @@ pub enum SaveCommentsBulkError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum SendInviteError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1656,6 +1734,7 @@ pub enum SendInviteError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum SendLoginLinkError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1663,6 +1742,7 @@ pub enum SendLoginLinkError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UnBlockUserFromCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1670,6 +1750,7 @@ pub enum UnBlockUserFromCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UnFlagCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1677,6 +1758,7 @@ pub enum UnFlagCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1684,6 +1766,7 @@ pub enum UpdateCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateEmailTemplateError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1691,6 +1774,7 @@ pub enum UpdateEmailTemplateError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateFeedPostError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1698,6 +1782,7 @@ pub enum UpdateFeedPostError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateModeratorError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1705,6 +1790,7 @@ pub enum UpdateModeratorError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateNotificationError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1712,6 +1798,7 @@ pub enum UpdateNotificationError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateQuestionConfigError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1719,6 +1806,7 @@ pub enum UpdateQuestionConfigError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateQuestionResultError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1733,6 +1821,7 @@ pub enum UpdateSubscriptionError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateTenantError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1740,6 +1829,7 @@ pub enum UpdateTenantError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateTenantPackageError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1747,6 +1837,7 @@ pub enum UpdateTenantPackageError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateTenantUserError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -1754,11 +1845,12 @@ pub enum UpdateTenantUserError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateUserBadgeError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } -pub async fn add_domain_config(configuration: &configuration::Configuration, params: AddDomainConfigParams) -> Result> { +pub async fn add_domain_config(configuration: &configuration::Configuration, params: AddDomainConfigParams) -> Result> { let uri_str = format!("{}/api/v1/domain-configs", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1792,8 +1884,8 @@ pub async fn add_domain_config(configuration: &configuration::Configuration, par 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::AddDomainConfig200Response`"))), - 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::AddDomainConfig200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AddDomainConfigResponse`"))), + 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::AddDomainConfigResponse`")))), } } else { let content = resp.text().await?; @@ -1802,7 +1894,7 @@ pub async fn add_domain_config(configuration: &configuration::Configuration, par } } -pub async fn add_hash_tag(configuration: &configuration::Configuration, params: AddHashTagParams) -> Result> { +pub async fn add_hash_tag(configuration: &configuration::Configuration, params: AddHashTagParams) -> Result> { let uri_str = format!("{}/api/v1/hash-tags", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1838,8 +1930,8 @@ pub async fn add_hash_tag(configuration: &configuration::Configuration, params: 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::AddHashTag200Response`"))), - 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::AddHashTag200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateHashTagResponse`"))), + 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::CreateHashTagResponse`")))), } } else { let content = resp.text().await?; @@ -1848,7 +1940,7 @@ pub async fn add_hash_tag(configuration: &configuration::Configuration, params: } } -pub async fn add_hash_tags_bulk(configuration: &configuration::Configuration, params: AddHashTagsBulkParams) -> Result> { +pub async fn add_hash_tags_bulk(configuration: &configuration::Configuration, params: AddHashTagsBulkParams) -> Result> { let uri_str = format!("{}/api/v1/hash-tags/bulk", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1884,8 +1976,8 @@ pub async fn add_hash_tags_bulk(configuration: &configuration::Configuration, pa 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::AddHashTagsBulk200Response`"))), - 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::AddHashTagsBulk200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::BulkCreateHashTagsResponse`"))), + 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::BulkCreateHashTagsResponse`")))), } } else { let content = resp.text().await?; @@ -1983,7 +2075,7 @@ pub async fn add_sso_user(configuration: &configuration::Configuration, params: } /// Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. -pub async fn aggregate(configuration: &configuration::Configuration, params: AggregateParams) -> Result> { +pub async fn aggregate(configuration: &configuration::Configuration, params: AggregateParams) -> Result> { let uri_str = format!("{}/api/v1/aggregate", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2023,8 +2115,8 @@ pub async fn aggregate(configuration: &configuration::Configuration, params: Agg 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::AggregationResponse`"))), - 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::AggregationResponse`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AggregateResponse`"))), + 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::AggregateResponse`")))), } } else { let content = resp.text().await?; @@ -2033,7 +2125,7 @@ pub async fn aggregate(configuration: &configuration::Configuration, params: Agg } } -pub async fn aggregate_question_results(configuration: &configuration::Configuration, params: AggregateQuestionResultsParams) -> Result> { +pub async fn aggregate_question_results(configuration: &configuration::Configuration, params: AggregateQuestionResultsParams) -> Result> { let uri_str = format!("{}/api/v1/question-results-aggregation", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -2052,7 +2144,7 @@ pub async fn aggregate_question_results(configuration: &configuration::Configura req_builder = req_builder.query(&[("urlId", ¶m_value.to_string())]); } if let Some(ref param_value) = params.time_bucket { - req_builder = req_builder.query(&[("timeBucket", &serde_json::to_string(param_value)?)]); + req_builder = req_builder.query(&[("timeBucket", ¶m_value.to_string())]); } if let Some(ref param_value) = params.start_date { req_builder = req_builder.query(&[("startDate", ¶m_value.to_string())]); @@ -2087,8 +2179,8 @@ pub async fn aggregate_question_results(configuration: &configuration::Configura 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::AggregateQuestionResults200Response`"))), - 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::AggregateQuestionResults200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AggregateQuestionResultsResponse`"))), + 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::AggregateQuestionResultsResponse`")))), } } else { let content = resp.text().await?; @@ -2097,7 +2189,7 @@ pub async fn aggregate_question_results(configuration: &configuration::Configura } } -pub async fn block_user_from_comment(configuration: &configuration::Configuration, params: BlockUserFromCommentParams) -> Result> { +pub async fn block_user_from_comment(configuration: &configuration::Configuration, params: BlockUserFromCommentParams) -> Result> { let uri_str = format!("{}/api/v1/comments/{id}/block", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2137,8 +2229,8 @@ pub async fn block_user_from_comment(configuration: &configuration::Configuratio 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::BlockFromCommentPublic200Response`"))), - 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::BlockFromCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::BlockSuccess`"))), + 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::BlockSuccess`")))), } } else { let content = resp.text().await?; @@ -2147,7 +2239,7 @@ pub async fn block_user_from_comment(configuration: &configuration::Configuratio } } -pub async fn bulk_aggregate_question_results(configuration: &configuration::Configuration, params: BulkAggregateQuestionResultsParams) -> Result> { +pub async fn bulk_aggregate_question_results(configuration: &configuration::Configuration, params: BulkAggregateQuestionResultsParams) -> Result> { let uri_str = format!("{}/api/v1/question-results-aggregation/bulk", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2184,8 +2276,8 @@ pub async fn bulk_aggregate_question_results(configuration: &configuration::Conf 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::BulkAggregateQuestionResults200Response`"))), - 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::BulkAggregateQuestionResults200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::BulkAggregateQuestionResultsResponse`"))), + 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::BulkAggregateQuestionResultsResponse`")))), } } else { let content = resp.text().await?; @@ -2194,7 +2286,7 @@ pub async fn bulk_aggregate_question_results(configuration: &configuration::Conf } } -pub async fn change_ticket_state(configuration: &configuration::Configuration, params: ChangeTicketStateParams) -> Result> { +pub async fn change_ticket_state(configuration: &configuration::Configuration, params: ChangeTicketStateParams) -> Result> { let uri_str = format!("{}/api/v1/tickets/{id}/state", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -2229,8 +2321,8 @@ pub async fn change_ticket_state(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::ChangeTicketState200Response`"))), - 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::ChangeTicketState200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ChangeTicketStateResponse`"))), + 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::ChangeTicketStateResponse`")))), } } else { let content = resp.text().await?; @@ -2239,7 +2331,7 @@ pub async fn change_ticket_state(configuration: &configuration::Configuration, p } } -pub async fn combine_comments_with_question_results(configuration: &configuration::Configuration, params: CombineCommentsWithQuestionResultsParams) -> Result> { +pub async fn combine_comments_with_question_results(configuration: &configuration::Configuration, params: CombineCommentsWithQuestionResultsParams) -> Result> { let uri_str = format!("{}/api/v1/question-results-aggregation/combine/comments", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -2299,8 +2391,8 @@ pub async fn combine_comments_with_question_results(configuration: &configuratio 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::CombineCommentsWithQuestionResults200Response`"))), - 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::CombineCommentsWithQuestionResults200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CombineQuestionResultsWithCommentsResponse`"))), + 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::CombineQuestionResultsWithCommentsResponse`")))), } } else { let content = resp.text().await?; @@ -2309,7 +2401,7 @@ pub async fn combine_comments_with_question_results(configuration: &configuratio } } -pub async fn create_email_template(configuration: &configuration::Configuration, params: CreateEmailTemplateParams) -> Result> { +pub async fn create_email_template(configuration: &configuration::Configuration, params: CreateEmailTemplateParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2343,8 +2435,8 @@ pub async fn create_email_template(configuration: &configuration::Configuration, 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::CreateEmailTemplate200Response`"))), - 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::CreateEmailTemplate200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateEmailTemplateResponse`"))), + 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::CreateEmailTemplateResponse`")))), } } else { let content = resp.text().await?; @@ -2353,7 +2445,7 @@ pub async fn create_email_template(configuration: &configuration::Configuration, } } -pub async fn create_feed_post(configuration: &configuration::Configuration, params: CreateFeedPostParams) -> Result> { +pub async fn create_feed_post(configuration: &configuration::Configuration, params: CreateFeedPostParams) -> Result> { let uri_str = format!("{}/api/v1/feed-posts", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2399,8 +2491,8 @@ pub async fn create_feed_post(configuration: &configuration::Configuration, para 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::CreateFeedPost200Response`"))), - 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::CreateFeedPost200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateFeedPostsResponse`"))), + 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::CreateFeedPostsResponse`")))), } } else { let content = resp.text().await?; @@ -2409,7 +2501,7 @@ pub async fn create_feed_post(configuration: &configuration::Configuration, para } } -pub async fn create_moderator(configuration: &configuration::Configuration, params: CreateModeratorParams) -> Result> { +pub async fn create_moderator(configuration: &configuration::Configuration, params: CreateModeratorParams) -> Result> { let uri_str = format!("{}/api/v1/moderators", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2443,8 +2535,8 @@ pub async fn create_moderator(configuration: &configuration::Configuration, para 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::CreateModerator200Response`"))), - 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::CreateModerator200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateModeratorResponse`"))), + 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::CreateModeratorResponse`")))), } } else { let content = resp.text().await?; @@ -2453,7 +2545,7 @@ pub async fn create_moderator(configuration: &configuration::Configuration, para } } -pub async fn create_question_config(configuration: &configuration::Configuration, params: CreateQuestionConfigParams) -> Result> { +pub async fn create_question_config(configuration: &configuration::Configuration, params: CreateQuestionConfigParams) -> Result> { let uri_str = format!("{}/api/v1/question-configs", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2487,8 +2579,8 @@ pub async fn create_question_config(configuration: &configuration::Configuration 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::CreateQuestionConfig200Response`"))), - 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::CreateQuestionConfig200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateQuestionConfigResponse`"))), + 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::CreateQuestionConfigResponse`")))), } } else { let content = resp.text().await?; @@ -2497,7 +2589,7 @@ pub async fn create_question_config(configuration: &configuration::Configuration } } -pub async fn create_question_result(configuration: &configuration::Configuration, params: CreateQuestionResultParams) -> Result> { +pub async fn create_question_result(configuration: &configuration::Configuration, params: CreateQuestionResultParams) -> Result> { let uri_str = format!("{}/api/v1/question-results", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2531,8 +2623,8 @@ pub async fn create_question_result(configuration: &configuration::Configuration 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::CreateQuestionResult200Response`"))), - 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::CreateQuestionResult200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateQuestionResultResponse`"))), + 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::CreateQuestionResultResponse`")))), } } else { let content = resp.text().await?; @@ -2585,7 +2677,7 @@ pub async fn create_subscription(configuration: &configuration::Configuration, p } } -pub async fn create_tenant(configuration: &configuration::Configuration, params: CreateTenantParams) -> Result> { +pub async fn create_tenant(configuration: &configuration::Configuration, params: CreateTenantParams) -> Result> { let uri_str = format!("{}/api/v1/tenants", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2619,8 +2711,8 @@ pub async fn create_tenant(configuration: &configuration::Configuration, params: 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::CreateTenant200Response`"))), - 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::CreateTenant200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateTenantResponse`"))), + 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::CreateTenantResponse`")))), } } else { let content = resp.text().await?; @@ -2629,7 +2721,7 @@ pub async fn create_tenant(configuration: &configuration::Configuration, params: } } -pub async fn create_tenant_package(configuration: &configuration::Configuration, params: CreateTenantPackageParams) -> Result> { +pub async fn create_tenant_package(configuration: &configuration::Configuration, params: CreateTenantPackageParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-packages", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2663,8 +2755,8 @@ pub async fn create_tenant_package(configuration: &configuration::Configuration, 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::CreateTenantPackage200Response`"))), - 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::CreateTenantPackage200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateTenantPackageResponse`"))), + 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::CreateTenantPackageResponse`")))), } } else { let content = resp.text().await?; @@ -2673,7 +2765,7 @@ pub async fn create_tenant_package(configuration: &configuration::Configuration, } } -pub async fn create_tenant_user(configuration: &configuration::Configuration, params: CreateTenantUserParams) -> Result> { +pub async fn create_tenant_user(configuration: &configuration::Configuration, params: CreateTenantUserParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-users", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2707,8 +2799,8 @@ pub async fn create_tenant_user(configuration: &configuration::Configuration, pa 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::CreateTenantUser200Response`"))), - 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::CreateTenantUser200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateTenantUserResponse`"))), + 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::CreateTenantUserResponse`")))), } } else { let content = resp.text().await?; @@ -2717,7 +2809,7 @@ pub async fn create_tenant_user(configuration: &configuration::Configuration, pa } } -pub async fn create_ticket(configuration: &configuration::Configuration, params: CreateTicketParams) -> Result> { +pub async fn create_ticket(configuration: &configuration::Configuration, params: CreateTicketParams) -> Result> { let uri_str = format!("{}/api/v1/tickets", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2752,8 +2844,8 @@ pub async fn create_ticket(configuration: &configuration::Configuration, params: 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::CreateTicket200Response`"))), - 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::CreateTicket200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateTicketResponse`"))), + 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::CreateTicketResponse`")))), } } else { let content = resp.text().await?; @@ -2762,7 +2854,7 @@ pub async fn create_ticket(configuration: &configuration::Configuration, params: } } -pub async fn create_user_badge(configuration: &configuration::Configuration, params: CreateUserBadgeParams) -> Result> { +pub async fn create_user_badge(configuration: &configuration::Configuration, params: CreateUserBadgeParams) -> Result> { let uri_str = format!("{}/api/v1/user-badges", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2796,8 +2888,8 @@ pub async fn create_user_badge(configuration: &configuration::Configuration, par 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::CreateUserBadge200Response`"))), - 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::CreateUserBadge200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiCreateUserBadgeResponse`"))), + 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::ApiCreateUserBadgeResponse`")))), } } else { let content = resp.text().await?; @@ -2806,7 +2898,7 @@ pub async fn create_user_badge(configuration: &configuration::Configuration, par } } -pub async fn create_vote(configuration: &configuration::Configuration, params: CreateVoteParams) -> Result> { +pub async fn create_vote(configuration: &configuration::Configuration, params: CreateVoteParams) -> Result> { let uri_str = format!("{}/api/v1/votes", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2847,8 +2939,8 @@ pub async fn create_vote(configuration: &configuration::Configuration, params: C 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::VoteComment200Response`"))), - 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::VoteComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VoteResponse`"))), + 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::VoteResponse`")))), } } else { let content = resp.text().await?; @@ -2857,7 +2949,7 @@ pub async fn create_vote(configuration: &configuration::Configuration, params: C } } -pub async fn delete_comment(configuration: &configuration::Configuration, params: DeleteCommentParams) -> Result> { +pub async fn delete_comment(configuration: &configuration::Configuration, params: DeleteCommentParams) -> Result> { let uri_str = format!("{}/api/v1/comments/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -2896,8 +2988,8 @@ pub async fn delete_comment(configuration: &configuration::Configuration, params 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::DeleteComment200Response`"))), - 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::DeleteComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteCommentResult`"))), + 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::DeleteCommentResult`")))), } } else { let content = resp.text().await?; @@ -2906,7 +2998,7 @@ pub async fn delete_comment(configuration: &configuration::Configuration, params } } -pub async fn delete_domain_config(configuration: &configuration::Configuration, params: DeleteDomainConfigParams) -> Result> { +pub async fn delete_domain_config(configuration: &configuration::Configuration, params: DeleteDomainConfigParams) -> Result> { let uri_str = format!("{}/api/v1/domain-configs/{domain}", configuration.base_path, domain=crate::client::apis::urlencode(params.domain)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -2939,8 +3031,8 @@ pub async fn delete_domain_config(configuration: &configuration::Configuration, 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::DeleteDomainConfig200Response`"))), - 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::DeleteDomainConfig200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteDomainConfigResponse`"))), + 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::DeleteDomainConfigResponse`")))), } } else { let content = resp.text().await?; @@ -2949,7 +3041,7 @@ pub async fn delete_domain_config(configuration: &configuration::Configuration, } } -pub async fn delete_email_template(configuration: &configuration::Configuration, params: DeleteEmailTemplateParams) -> Result> { +pub async fn delete_email_template(configuration: &configuration::Configuration, params: DeleteEmailTemplateParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -2982,8 +3074,8 @@ pub async fn delete_email_template(configuration: &configuration::Configuration, 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -2992,7 +3084,7 @@ pub async fn delete_email_template(configuration: &configuration::Configuration, } } -pub async fn delete_email_template_render_error(configuration: &configuration::Configuration, params: DeleteEmailTemplateRenderErrorParams) -> Result> { +pub async fn delete_email_template_render_error(configuration: &configuration::Configuration, params: DeleteEmailTemplateRenderErrorParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates/{id}/render-errors/{errorId}", configuration.base_path, id=crate::client::apis::urlencode(params.id), errorId=crate::client::apis::urlencode(params.error_id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3025,8 +3117,8 @@ pub async fn delete_email_template_render_error(configuration: &configuration::C 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3035,7 +3127,7 @@ pub async fn delete_email_template_render_error(configuration: &configuration::C } } -pub async fn delete_hash_tag(configuration: &configuration::Configuration, params: DeleteHashTagParams) -> Result> { +pub async fn delete_hash_tag(configuration: &configuration::Configuration, params: DeleteHashTagParams) -> Result> { 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); @@ -3054,7 +3146,7 @@ pub async fn delete_hash_tag(configuration: &configuration::Configuration, param }; req_builder = req_builder.header("x-api-key", value); }; - req_builder = req_builder.json(¶ms.delete_hash_tag_request); + req_builder = req_builder.json(¶ms.delete_hash_tag_request_body); let req = req_builder.build()?; let resp = configuration.client.execute(req).await?; @@ -3071,8 +3163,8 @@ pub async fn delete_hash_tag(configuration: &configuration::Configuration, param 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3081,7 +3173,7 @@ pub async fn delete_hash_tag(configuration: &configuration::Configuration, param } } -pub async fn delete_moderator(configuration: &configuration::Configuration, params: DeleteModeratorParams) -> Result> { +pub async fn delete_moderator(configuration: &configuration::Configuration, params: DeleteModeratorParams) -> Result> { let uri_str = format!("{}/api/v1/moderators/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3117,8 +3209,8 @@ pub async fn delete_moderator(configuration: &configuration::Configuration, para 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3127,7 +3219,7 @@ pub async fn delete_moderator(configuration: &configuration::Configuration, para } } -pub async fn delete_notification_count(configuration: &configuration::Configuration, params: DeleteNotificationCountParams) -> Result> { +pub async fn delete_notification_count(configuration: &configuration::Configuration, params: DeleteNotificationCountParams) -> Result> { let uri_str = format!("{}/api/v1/notification-count/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3160,8 +3252,8 @@ pub async fn delete_notification_count(configuration: &configuration::Configurat 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3213,7 +3305,7 @@ pub async fn delete_page(configuration: &configuration::Configuration, params: D } } -pub async fn delete_pending_webhook_event(configuration: &configuration::Configuration, params: DeletePendingWebhookEventParams) -> Result> { +pub async fn delete_pending_webhook_event(configuration: &configuration::Configuration, params: DeletePendingWebhookEventParams) -> Result> { let uri_str = format!("{}/api/v1/pending-webhook-events/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3246,8 +3338,8 @@ pub async fn delete_pending_webhook_event(configuration: &configuration::Configu 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3256,7 +3348,7 @@ pub async fn delete_pending_webhook_event(configuration: &configuration::Configu } } -pub async fn delete_question_config(configuration: &configuration::Configuration, params: DeleteQuestionConfigParams) -> Result> { +pub async fn delete_question_config(configuration: &configuration::Configuration, params: DeleteQuestionConfigParams) -> Result> { let uri_str = format!("{}/api/v1/question-configs/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3289,8 +3381,8 @@ pub async fn delete_question_config(configuration: &configuration::Configuration 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3299,7 +3391,7 @@ pub async fn delete_question_config(configuration: &configuration::Configuration } } -pub async fn delete_question_result(configuration: &configuration::Configuration, params: DeleteQuestionResultParams) -> Result> { +pub async fn delete_question_result(configuration: &configuration::Configuration, params: DeleteQuestionResultParams) -> Result> { let uri_str = format!("{}/api/v1/question-results/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3332,8 +3424,8 @@ pub async fn delete_question_result(configuration: &configuration::Configuration 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3437,7 +3529,7 @@ pub async fn delete_subscription(configuration: &configuration::Configuration, p } } -pub async fn delete_tenant(configuration: &configuration::Configuration, params: DeleteTenantParams) -> Result> { +pub async fn delete_tenant(configuration: &configuration::Configuration, params: DeleteTenantParams) -> Result> { let uri_str = format!("{}/api/v1/tenants/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3473,8 +3565,8 @@ pub async fn delete_tenant(configuration: &configuration::Configuration, params: 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3483,7 +3575,7 @@ pub async fn delete_tenant(configuration: &configuration::Configuration, params: } } -pub async fn delete_tenant_package(configuration: &configuration::Configuration, params: DeleteTenantPackageParams) -> Result> { +pub async fn delete_tenant_package(configuration: &configuration::Configuration, params: DeleteTenantPackageParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-packages/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3516,8 +3608,8 @@ pub async fn delete_tenant_package(configuration: &configuration::Configuration, 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3526,7 +3618,7 @@ pub async fn delete_tenant_package(configuration: &configuration::Configuration, } } -pub async fn delete_tenant_user(configuration: &configuration::Configuration, params: DeleteTenantUserParams) -> Result> { +pub async fn delete_tenant_user(configuration: &configuration::Configuration, params: DeleteTenantUserParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-users/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3565,8 +3657,8 @@ pub async fn delete_tenant_user(configuration: &configuration::Configuration, pa 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -3575,7 +3667,7 @@ pub async fn delete_tenant_user(configuration: &configuration::Configuration, pa } } -pub async fn delete_user_badge(configuration: &configuration::Configuration, params: DeleteUserBadgeParams) -> Result> { +pub async fn delete_user_badge(configuration: &configuration::Configuration, params: DeleteUserBadgeParams) -> Result> { let uri_str = format!("{}/api/v1/user-badges/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3608,8 +3700,8 @@ pub async fn delete_user_badge(configuration: &configuration::Configuration, par 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::UpdateUserBadge200Response`"))), - 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::UpdateUserBadge200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptySuccessResponse`"))), + 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::ApiEmptySuccessResponse`")))), } } else { let content = resp.text().await?; @@ -3618,7 +3710,7 @@ pub async fn delete_user_badge(configuration: &configuration::Configuration, par } } -pub async fn delete_vote(configuration: &configuration::Configuration, params: DeleteVoteParams) -> Result> { +pub async fn delete_vote(configuration: &configuration::Configuration, params: DeleteVoteParams) -> Result> { let uri_str = format!("{}/api/v1/votes/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -3654,8 +3746,8 @@ pub async fn delete_vote(configuration: &configuration::Configuration, params: D 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::DeleteCommentVote200Response`"))), - 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::DeleteCommentVote200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VoteDeleteResponse`"))), + 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::VoteDeleteResponse`")))), } } else { let content = resp.text().await?; @@ -3664,7 +3756,7 @@ pub async fn delete_vote(configuration: &configuration::Configuration, params: D } } -pub async fn flag_comment(configuration: &configuration::Configuration, params: FlagCommentParams) -> Result> { +pub async fn flag_comment(configuration: &configuration::Configuration, params: FlagCommentParams) -> Result> { let uri_str = format!("{}/api/v1/comments/{id}/flag", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -3703,8 +3795,8 @@ pub async fn flag_comment(configuration: &configuration::Configuration, params: 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::FlagComment200Response`"))), - 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::FlagComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::FlagCommentResponse`"))), + 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::FlagCommentResponse`")))), } } else { let content = resp.text().await?; @@ -3713,7 +3805,7 @@ pub async fn flag_comment(configuration: &configuration::Configuration, params: } } -pub async fn get_audit_logs(configuration: &configuration::Configuration, params: GetAuditLogsParams) -> Result> { +pub async fn get_audit_logs(configuration: &configuration::Configuration, params: GetAuditLogsParams) -> Result> { let uri_str = format!("{}/api/v1/audit-logs", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -3726,7 +3818,7 @@ pub async fn get_audit_logs(configuration: &configuration::Configuration, params req_builder = req_builder.query(&[("skip", ¶m_value.to_string())]); } if let Some(ref param_value) = params.order { - req_builder = req_builder.query(&[("order", &serde_json::to_string(param_value)?)]); + req_builder = req_builder.query(&[("order", ¶m_value.to_string())]); } if let Some(ref param_value) = params.after { req_builder = req_builder.query(&[("after", ¶m_value.to_string())]); @@ -3761,8 +3853,8 @@ pub async fn get_audit_logs(configuration: &configuration::Configuration, params 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::GetAuditLogs200Response`"))), - 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::GetAuditLogs200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetAuditLogsResponse`"))), + 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::GetAuditLogsResponse`")))), } } else { let content = resp.text().await?; @@ -3771,7 +3863,7 @@ pub async fn get_audit_logs(configuration: &configuration::Configuration, params } } -pub async fn get_cached_notification_count(configuration: &configuration::Configuration, params: GetCachedNotificationCountParams) -> Result> { +pub async fn get_cached_notification_count(configuration: &configuration::Configuration, params: GetCachedNotificationCountParams) -> Result> { let uri_str = format!("{}/api/v1/notification-count/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -3804,8 +3896,8 @@ pub async fn get_cached_notification_count(configuration: &configuration::Config 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::GetCachedNotificationCount200Response`"))), - 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::GetCachedNotificationCount200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetCachedNotificationCountResponse`"))), + 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::GetCachedNotificationCountResponse`")))), } } else { let content = resp.text().await?; @@ -3814,7 +3906,7 @@ pub async fn get_cached_notification_count(configuration: &configuration::Config } } -pub async fn get_comment(configuration: &configuration::Configuration, params: GetCommentParams) -> Result> { +pub async fn get_comment(configuration: &configuration::Configuration, params: GetCommentParams) -> Result> { let uri_str = format!("{}/api/v1/comments/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -3847,8 +3939,8 @@ pub async fn get_comment(configuration: &configuration::Configuration, params: G 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::GetComment200Response`"))), - 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::GetComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiGetCommentResponse`"))), + 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::ApiGetCommentResponse`")))), } } else { let content = resp.text().await?; @@ -3857,7 +3949,7 @@ pub async fn get_comment(configuration: &configuration::Configuration, params: G } } -pub async fn get_comments(configuration: &configuration::Configuration, params: GetCommentsParams) -> Result> { +pub async fn get_comments(configuration: &configuration::Configuration, params: GetCommentsParams) -> Result> { let uri_str = format!("{}/api/v1/comments", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -3903,7 +3995,13 @@ pub async fn get_comments(configuration: &configuration::Configuration, params: req_builder = req_builder.query(&[("parentId", ¶m_value.to_string())]); } if let Some(ref param_value) = params.direction { - req_builder = req_builder.query(&[("direction", &serde_json::to_string(param_value)?)]); + req_builder = req_builder.query(&[("direction", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.from_date { + req_builder = req_builder.query(&[("fromDate", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.to_date { + req_builder = req_builder.query(&[("toDate", ¶m_value.to_string())]); } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -3932,8 +4030,8 @@ pub async fn get_comments(configuration: &configuration::Configuration, params: 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::GetComments200Response`"))), - 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::GetComments200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiGetCommentsResponse`"))), + 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::ApiGetCommentsResponse`")))), } } else { let content = resp.text().await?; @@ -3942,7 +4040,7 @@ pub async fn get_comments(configuration: &configuration::Configuration, params: } } -pub async fn get_domain_config(configuration: &configuration::Configuration, params: GetDomainConfigParams) -> Result> { +pub async fn get_domain_config(configuration: &configuration::Configuration, params: GetDomainConfigParams) -> Result> { let uri_str = format!("{}/api/v1/domain-configs/{domain}", configuration.base_path, domain=crate::client::apis::urlencode(params.domain)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -3975,8 +4073,8 @@ pub async fn get_domain_config(configuration: &configuration::Configuration, par 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::GetDomainConfig200Response`"))), - 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::GetDomainConfig200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetDomainConfigResponse`"))), + 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::GetDomainConfigResponse`")))), } } else { let content = resp.text().await?; @@ -3985,7 +4083,7 @@ pub async fn get_domain_config(configuration: &configuration::Configuration, par } } -pub async fn get_domain_configs(configuration: &configuration::Configuration, params: GetDomainConfigsParams) -> Result> { +pub async fn get_domain_configs(configuration: &configuration::Configuration, params: GetDomainConfigsParams) -> Result> { let uri_str = format!("{}/api/v1/domain-configs", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4018,8 +4116,8 @@ pub async fn get_domain_configs(configuration: &configuration::Configuration, pa 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::GetDomainConfigs200Response`"))), - 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::GetDomainConfigs200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetDomainConfigsResponse`"))), + 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::GetDomainConfigsResponse`")))), } } else { let content = resp.text().await?; @@ -4028,7 +4126,7 @@ pub async fn get_domain_configs(configuration: &configuration::Configuration, pa } } -pub async fn get_email_template(configuration: &configuration::Configuration, params: GetEmailTemplateParams) -> Result> { +pub async fn get_email_template(configuration: &configuration::Configuration, params: GetEmailTemplateParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4061,8 +4159,8 @@ pub async fn get_email_template(configuration: &configuration::Configuration, pa 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::GetEmailTemplate200Response`"))), - 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::GetEmailTemplate200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetEmailTemplateResponse`"))), + 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::GetEmailTemplateResponse`")))), } } else { let content = resp.text().await?; @@ -4071,7 +4169,7 @@ pub async fn get_email_template(configuration: &configuration::Configuration, pa } } -pub async fn get_email_template_definitions(configuration: &configuration::Configuration, params: GetEmailTemplateDefinitionsParams) -> Result> { +pub async fn get_email_template_definitions(configuration: &configuration::Configuration, params: GetEmailTemplateDefinitionsParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates/definitions", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4104,8 +4202,8 @@ pub async fn get_email_template_definitions(configuration: &configuration::Confi 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::GetEmailTemplateDefinitions200Response`"))), - 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::GetEmailTemplateDefinitions200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetEmailTemplateDefinitionsResponse`"))), + 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::GetEmailTemplateDefinitionsResponse`")))), } } else { let content = resp.text().await?; @@ -4114,7 +4212,7 @@ pub async fn get_email_template_definitions(configuration: &configuration::Confi } } -pub async fn get_email_template_render_errors(configuration: &configuration::Configuration, params: GetEmailTemplateRenderErrorsParams) -> Result> { +pub async fn get_email_template_render_errors(configuration: &configuration::Configuration, params: GetEmailTemplateRenderErrorsParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates/{id}/render-errors", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4150,8 +4248,8 @@ pub async fn get_email_template_render_errors(configuration: &configuration::Con 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::GetEmailTemplateRenderErrors200Response`"))), - 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::GetEmailTemplateRenderErrors200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetEmailTemplateRenderErrorsResponse`"))), + 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::GetEmailTemplateRenderErrorsResponse`")))), } } else { let content = resp.text().await?; @@ -4160,7 +4258,7 @@ pub async fn get_email_template_render_errors(configuration: &configuration::Con } } -pub async fn get_email_templates(configuration: &configuration::Configuration, params: GetEmailTemplatesParams) -> Result> { +pub async fn get_email_templates(configuration: &configuration::Configuration, params: GetEmailTemplatesParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4196,8 +4294,8 @@ pub async fn get_email_templates(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::GetEmailTemplates200Response`"))), - 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::GetEmailTemplates200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetEmailTemplatesResponse`"))), + 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::GetEmailTemplatesResponse`")))), } } else { let content = resp.text().await?; @@ -4207,7 +4305,7 @@ pub async fn get_email_templates(configuration: &configuration::Configuration, p } /// req tenantId afterId -pub async fn get_feed_posts(configuration: &configuration::Configuration, params: GetFeedPostsParams) -> Result> { +pub async fn get_feed_posts(configuration: &configuration::Configuration, params: GetFeedPostsParams) -> Result> { let uri_str = format!("{}/api/v1/feed-posts", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4252,8 +4350,8 @@ pub async fn get_feed_posts(configuration: &configuration::Configuration, params 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::GetFeedPosts200Response`"))), - 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::GetFeedPosts200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetFeedPostsResponse`"))), + 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::GetFeedPostsResponse`")))), } } else { let content = resp.text().await?; @@ -4262,7 +4360,7 @@ pub async fn get_feed_posts(configuration: &configuration::Configuration, params } } -pub async fn get_hash_tags(configuration: &configuration::Configuration, params: GetHashTagsParams) -> Result> { +pub async fn get_hash_tags(configuration: &configuration::Configuration, params: GetHashTagsParams) -> Result> { let uri_str = format!("{}/api/v1/hash-tags", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4298,8 +4396,8 @@ pub async fn get_hash_tags(configuration: &configuration::Configuration, params: 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::GetHashTags200Response`"))), - 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::GetHashTags200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetHashTagsResponse`"))), + 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::GetHashTagsResponse`")))), } } else { let content = resp.text().await?; @@ -4308,7 +4406,7 @@ pub async fn get_hash_tags(configuration: &configuration::Configuration, params: } } -pub async fn get_moderator(configuration: &configuration::Configuration, params: GetModeratorParams) -> Result> { +pub async fn get_moderator(configuration: &configuration::Configuration, params: GetModeratorParams) -> Result> { let uri_str = format!("{}/api/v1/moderators/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4341,8 +4439,8 @@ pub async fn get_moderator(configuration: &configuration::Configuration, params: 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::GetModerator200Response`"))), - 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::GetModerator200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetModeratorResponse`"))), + 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::GetModeratorResponse`")))), } } else { let content = resp.text().await?; @@ -4351,7 +4449,7 @@ pub async fn get_moderator(configuration: &configuration::Configuration, params: } } -pub async fn get_moderators(configuration: &configuration::Configuration, params: GetModeratorsParams) -> Result> { +pub async fn get_moderators(configuration: &configuration::Configuration, params: GetModeratorsParams) -> Result> { let uri_str = format!("{}/api/v1/moderators", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4387,8 +4485,8 @@ pub async fn get_moderators(configuration: &configuration::Configuration, params 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::GetModerators200Response`"))), - 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::GetModerators200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetModeratorsResponse`"))), + 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::GetModeratorsResponse`")))), } } else { let content = resp.text().await?; @@ -4397,7 +4495,7 @@ pub async fn get_moderators(configuration: &configuration::Configuration, params } } -pub async fn get_notification_count(configuration: &configuration::Configuration, params: GetNotificationCountParams) -> Result> { +pub async fn get_notification_count(configuration: &configuration::Configuration, params: GetNotificationCountParams) -> Result> { let uri_str = format!("{}/api/v1/notifications/count", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4445,8 +4543,8 @@ pub async fn get_notification_count(configuration: &configuration::Configuration 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::GetNotificationCount200Response`"))), - 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::GetNotificationCount200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetNotificationCountResponse`"))), + 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::GetNotificationCountResponse`")))), } } else { let content = resp.text().await?; @@ -4455,7 +4553,7 @@ pub async fn get_notification_count(configuration: &configuration::Configuration } } -pub async fn get_notifications(configuration: &configuration::Configuration, params: GetNotificationsParams) -> Result> { +pub async fn get_notifications(configuration: &configuration::Configuration, params: GetNotificationsParams) -> Result> { let uri_str = format!("{}/api/v1/notifications", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4506,8 +4604,8 @@ pub async fn get_notifications(configuration: &configuration::Configuration, par 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::GetNotifications200Response`"))), - 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::GetNotifications200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetNotificationsResponse`"))), + 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::GetNotificationsResponse`")))), } } else { let content = resp.text().await?; @@ -4603,7 +4701,7 @@ pub async fn get_pages(configuration: &configuration::Configuration, params: Get } } -pub async fn get_pending_webhook_event_count(configuration: &configuration::Configuration, params: GetPendingWebhookEventCountParams) -> Result> { +pub async fn get_pending_webhook_event_count(configuration: &configuration::Configuration, params: GetPendingWebhookEventCountParams) -> Result> { let uri_str = format!("{}/api/v1/pending-webhook-events/count", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4654,8 +4752,8 @@ pub async fn get_pending_webhook_event_count(configuration: &configuration::Conf 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::GetPendingWebhookEventCount200Response`"))), - 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::GetPendingWebhookEventCount200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetPendingWebhookEventCountResponse`"))), + 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::GetPendingWebhookEventCountResponse`")))), } } else { let content = resp.text().await?; @@ -4664,7 +4762,7 @@ pub async fn get_pending_webhook_event_count(configuration: &configuration::Conf } } -pub async fn get_pending_webhook_events(configuration: &configuration::Configuration, params: GetPendingWebhookEventsParams) -> Result> { +pub async fn get_pending_webhook_events(configuration: &configuration::Configuration, params: GetPendingWebhookEventsParams) -> Result> { let uri_str = format!("{}/api/v1/pending-webhook-events", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4718,8 +4816,8 @@ pub async fn get_pending_webhook_events(configuration: &configuration::Configura 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::GetPendingWebhookEvents200Response`"))), - 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::GetPendingWebhookEvents200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetPendingWebhookEventsResponse`"))), + 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::GetPendingWebhookEventsResponse`")))), } } else { let content = resp.text().await?; @@ -4728,7 +4826,7 @@ pub async fn get_pending_webhook_events(configuration: &configuration::Configura } } -pub async fn get_question_config(configuration: &configuration::Configuration, params: GetQuestionConfigParams) -> Result> { +pub async fn get_question_config(configuration: &configuration::Configuration, params: GetQuestionConfigParams) -> Result> { let uri_str = format!("{}/api/v1/question-configs/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4761,8 +4859,8 @@ pub async fn get_question_config(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::GetQuestionConfig200Response`"))), - 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::GetQuestionConfig200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetQuestionConfigResponse`"))), + 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::GetQuestionConfigResponse`")))), } } else { let content = resp.text().await?; @@ -4771,7 +4869,7 @@ pub async fn get_question_config(configuration: &configuration::Configuration, p } } -pub async fn get_question_configs(configuration: &configuration::Configuration, params: GetQuestionConfigsParams) -> Result> { +pub async fn get_question_configs(configuration: &configuration::Configuration, params: GetQuestionConfigsParams) -> Result> { let uri_str = format!("{}/api/v1/question-configs", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4807,8 +4905,8 @@ pub async fn get_question_configs(configuration: &configuration::Configuration, 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::GetQuestionConfigs200Response`"))), - 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::GetQuestionConfigs200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetQuestionConfigsResponse`"))), + 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::GetQuestionConfigsResponse`")))), } } else { let content = resp.text().await?; @@ -4817,7 +4915,7 @@ pub async fn get_question_configs(configuration: &configuration::Configuration, } } -pub async fn get_question_result(configuration: &configuration::Configuration, params: GetQuestionResultParams) -> Result> { +pub async fn get_question_result(configuration: &configuration::Configuration, params: GetQuestionResultParams) -> Result> { let uri_str = format!("{}/api/v1/question-results/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4850,8 +4948,8 @@ pub async fn get_question_result(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::GetQuestionResult200Response`"))), - 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::GetQuestionResult200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetQuestionResultResponse`"))), + 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::GetQuestionResultResponse`")))), } } else { let content = resp.text().await?; @@ -4860,7 +4958,7 @@ pub async fn get_question_result(configuration: &configuration::Configuration, p } } -pub async fn get_question_results(configuration: &configuration::Configuration, params: GetQuestionResultsParams) -> Result> { +pub async fn get_question_results(configuration: &configuration::Configuration, params: GetQuestionResultsParams) -> Result> { let uri_str = format!("{}/api/v1/question-results", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -4911,8 +5009,8 @@ pub async fn get_question_results(configuration: &configuration::Configuration, 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::GetQuestionResults200Response`"))), - 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::GetQuestionResults200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetQuestionResultsResponse`"))), + 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::GetQuestionResultsResponse`")))), } } else { let content = resp.text().await?; @@ -5007,7 +5105,7 @@ pub async fn get_sso_user_by_id(configuration: &configuration::Configuration, pa } } -pub async fn get_sso_users(configuration: &configuration::Configuration, params: GetSsoUsersParams) -> Result> { +pub async fn get_sso_users(configuration: &configuration::Configuration, params: GetSsoUsersParams) -> Result> { let uri_str = format!("{}/api/v1/sso-users", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5043,8 +5141,8 @@ pub async fn get_sso_users(configuration: &configuration::Configuration, params: 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::GetSsoUsers200Response`"))), - 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::GetSsoUsers200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetSsoUsersResponse`"))), + 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::GetSsoUsersResponse`")))), } } else { let content = resp.text().await?; @@ -5099,7 +5197,7 @@ pub async fn get_subscriptions(configuration: &configuration::Configuration, par } } -pub async fn get_tenant(configuration: &configuration::Configuration, params: GetTenantParams) -> Result> { +pub async fn get_tenant(configuration: &configuration::Configuration, params: GetTenantParams) -> Result> { let uri_str = format!("{}/api/v1/tenants/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5132,8 +5230,8 @@ pub async fn get_tenant(configuration: &configuration::Configuration, params: Ge 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::GetTenant200Response`"))), - 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::GetTenant200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTenantResponse`"))), + 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::GetTenantResponse`")))), } } else { let content = resp.text().await?; @@ -5142,7 +5240,7 @@ pub async fn get_tenant(configuration: &configuration::Configuration, params: Ge } } -pub async fn get_tenant_daily_usages(configuration: &configuration::Configuration, params: GetTenantDailyUsagesParams) -> Result> { +pub async fn get_tenant_daily_usages(configuration: &configuration::Configuration, params: GetTenantDailyUsagesParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-daily-usage", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5187,8 +5285,8 @@ pub async fn get_tenant_daily_usages(configuration: &configuration::Configuratio 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::GetTenantDailyUsages200Response`"))), - 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::GetTenantDailyUsages200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTenantDailyUsagesResponse`"))), + 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::GetTenantDailyUsagesResponse`")))), } } else { let content = resp.text().await?; @@ -5197,7 +5295,7 @@ pub async fn get_tenant_daily_usages(configuration: &configuration::Configuratio } } -pub async fn get_tenant_package(configuration: &configuration::Configuration, params: GetTenantPackageParams) -> Result> { +pub async fn get_tenant_package(configuration: &configuration::Configuration, params: GetTenantPackageParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-packages/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5230,8 +5328,8 @@ pub async fn get_tenant_package(configuration: &configuration::Configuration, pa 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::GetTenantPackage200Response`"))), - 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::GetTenantPackage200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTenantPackageResponse`"))), + 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::GetTenantPackageResponse`")))), } } else { let content = resp.text().await?; @@ -5240,7 +5338,7 @@ pub async fn get_tenant_package(configuration: &configuration::Configuration, pa } } -pub async fn get_tenant_packages(configuration: &configuration::Configuration, params: GetTenantPackagesParams) -> Result> { +pub async fn get_tenant_packages(configuration: &configuration::Configuration, params: GetTenantPackagesParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-packages", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5276,8 +5374,8 @@ pub async fn get_tenant_packages(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::GetTenantPackages200Response`"))), - 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::GetTenantPackages200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTenantPackagesResponse`"))), + 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::GetTenantPackagesResponse`")))), } } else { let content = resp.text().await?; @@ -5286,7 +5384,7 @@ pub async fn get_tenant_packages(configuration: &configuration::Configuration, p } } -pub async fn get_tenant_user(configuration: &configuration::Configuration, params: GetTenantUserParams) -> Result> { +pub async fn get_tenant_user(configuration: &configuration::Configuration, params: GetTenantUserParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-users/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5319,8 +5417,8 @@ pub async fn get_tenant_user(configuration: &configuration::Configuration, param 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::GetTenantUser200Response`"))), - 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::GetTenantUser200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTenantUserResponse`"))), + 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::GetTenantUserResponse`")))), } } else { let content = resp.text().await?; @@ -5329,7 +5427,7 @@ pub async fn get_tenant_user(configuration: &configuration::Configuration, param } } -pub async fn get_tenant_users(configuration: &configuration::Configuration, params: GetTenantUsersParams) -> Result> { +pub async fn get_tenant_users(configuration: &configuration::Configuration, params: GetTenantUsersParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-users", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5365,8 +5463,8 @@ pub async fn get_tenant_users(configuration: &configuration::Configuration, para 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::GetTenantUsers200Response`"))), - 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::GetTenantUsers200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTenantUsersResponse`"))), + 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::GetTenantUsersResponse`")))), } } else { let content = resp.text().await?; @@ -5375,7 +5473,7 @@ pub async fn get_tenant_users(configuration: &configuration::Configuration, para } } -pub async fn get_tenants(configuration: &configuration::Configuration, params: GetTenantsParams) -> Result> { +pub async fn get_tenants(configuration: &configuration::Configuration, params: GetTenantsParams) -> Result> { let uri_str = format!("{}/api/v1/tenants", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5414,8 +5512,8 @@ pub async fn get_tenants(configuration: &configuration::Configuration, params: G 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::GetTenants200Response`"))), - 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::GetTenants200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTenantsResponse`"))), + 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::GetTenantsResponse`")))), } } else { let content = resp.text().await?; @@ -5424,7 +5522,7 @@ pub async fn get_tenants(configuration: &configuration::Configuration, params: G } } -pub async fn get_ticket(configuration: &configuration::Configuration, params: GetTicketParams) -> Result> { +pub async fn get_ticket(configuration: &configuration::Configuration, params: GetTicketParams) -> Result> { let uri_str = format!("{}/api/v1/tickets/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5460,8 +5558,8 @@ pub async fn get_ticket(configuration: &configuration::Configuration, params: Ge 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::GetTicket200Response`"))), - 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::GetTicket200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTicketResponse`"))), + 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::GetTicketResponse`")))), } } else { let content = resp.text().await?; @@ -5470,7 +5568,7 @@ pub async fn get_ticket(configuration: &configuration::Configuration, params: Ge } } -pub async fn get_tickets(configuration: &configuration::Configuration, params: GetTicketsParams) -> Result> { +pub async fn get_tickets(configuration: &configuration::Configuration, params: GetTicketsParams) -> Result> { let uri_str = format!("{}/api/v1/tickets", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5515,8 +5613,8 @@ pub async fn get_tickets(configuration: &configuration::Configuration, params: G 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::GetTickets200Response`"))), - 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::GetTickets200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTicketsResponse`"))), + 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::GetTicketsResponse`")))), } } else { let content = resp.text().await?; @@ -5525,7 +5623,7 @@ pub async fn get_tickets(configuration: &configuration::Configuration, params: G } } -pub async fn get_user(configuration: &configuration::Configuration, params: GetUserParams) -> Result> { +pub async fn get_user(configuration: &configuration::Configuration, params: GetUserParams) -> Result> { let uri_str = format!("{}/api/v1/users/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5558,8 +5656,8 @@ pub async fn get_user(configuration: &configuration::Configuration, params: GetU 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::GetUser200Response`"))), - 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::GetUser200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetUserResponse`"))), + 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::GetUserResponse`")))), } } else { let content = resp.text().await?; @@ -5568,7 +5666,7 @@ pub async fn get_user(configuration: &configuration::Configuration, params: GetU } } -pub async fn get_user_badge(configuration: &configuration::Configuration, params: GetUserBadgeParams) -> Result> { +pub async fn get_user_badge(configuration: &configuration::Configuration, params: GetUserBadgeParams) -> Result> { let uri_str = format!("{}/api/v1/user-badges/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5601,8 +5699,8 @@ pub async fn get_user_badge(configuration: &configuration::Configuration, params 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::GetUserBadge200Response`"))), - 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::GetUserBadge200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiGetUserBadgeResponse`"))), + 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::ApiGetUserBadgeResponse`")))), } } else { let content = resp.text().await?; @@ -5611,7 +5709,7 @@ pub async fn get_user_badge(configuration: &configuration::Configuration, params } } -pub async fn get_user_badge_progress_by_id(configuration: &configuration::Configuration, params: GetUserBadgeProgressByIdParams) -> Result> { +pub async fn get_user_badge_progress_by_id(configuration: &configuration::Configuration, params: GetUserBadgeProgressByIdParams) -> Result> { let uri_str = format!("{}/api/v1/user-badge-progress/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5644,8 +5742,8 @@ pub async fn get_user_badge_progress_by_id(configuration: &configuration::Config 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::GetUserBadgeProgressById200Response`"))), - 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::GetUserBadgeProgressById200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiGetUserBadgeProgressResponse`"))), + 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::ApiGetUserBadgeProgressResponse`")))), } } else { let content = resp.text().await?; @@ -5654,7 +5752,7 @@ pub async fn get_user_badge_progress_by_id(configuration: &configuration::Config } } -pub async fn get_user_badge_progress_by_user_id(configuration: &configuration::Configuration, params: GetUserBadgeProgressByUserIdParams) -> Result> { +pub async fn get_user_badge_progress_by_user_id(configuration: &configuration::Configuration, params: GetUserBadgeProgressByUserIdParams) -> Result> { let uri_str = format!("{}/api/v1/user-badge-progress/user/{userId}", configuration.base_path, userId=crate::client::apis::urlencode(params.user_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5687,8 +5785,8 @@ pub async fn get_user_badge_progress_by_user_id(configuration: &configuration::C 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::GetUserBadgeProgressById200Response`"))), - 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::GetUserBadgeProgressById200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiGetUserBadgeProgressResponse`"))), + 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::ApiGetUserBadgeProgressResponse`")))), } } else { let content = resp.text().await?; @@ -5697,7 +5795,7 @@ pub async fn get_user_badge_progress_by_user_id(configuration: &configuration::C } } -pub async fn get_user_badge_progress_list(configuration: &configuration::Configuration, params: GetUserBadgeProgressListParams) -> Result> { +pub async fn get_user_badge_progress_list(configuration: &configuration::Configuration, params: GetUserBadgeProgressListParams) -> Result> { let uri_str = format!("{}/api/v1/user-badge-progress", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5739,8 +5837,8 @@ pub async fn get_user_badge_progress_list(configuration: &configuration::Configu 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::GetUserBadgeProgressList200Response`"))), - 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::GetUserBadgeProgressList200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiGetUserBadgeProgressListResponse`"))), + 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::ApiGetUserBadgeProgressListResponse`")))), } } else { let content = resp.text().await?; @@ -5749,7 +5847,7 @@ pub async fn get_user_badge_progress_list(configuration: &configuration::Configu } } -pub async fn get_user_badges(configuration: &configuration::Configuration, params: GetUserBadgesParams) -> Result> { +pub async fn get_user_badges(configuration: &configuration::Configuration, params: GetUserBadgesParams) -> Result> { let uri_str = format!("{}/api/v1/user-badges", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5800,8 +5898,8 @@ pub async fn get_user_badges(configuration: &configuration::Configuration, param 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::GetUserBadges200Response`"))), - 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::GetUserBadges200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiGetUserBadgesResponse`"))), + 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::ApiGetUserBadgesResponse`")))), } } else { let content = resp.text().await?; @@ -5810,7 +5908,7 @@ pub async fn get_user_badges(configuration: &configuration::Configuration, param } } -pub async fn get_votes(configuration: &configuration::Configuration, params: GetVotesParams) -> Result> { +pub async fn get_votes(configuration: &configuration::Configuration, params: GetVotesParams) -> Result> { let uri_str = format!("{}/api/v1/votes", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5844,8 +5942,8 @@ pub async fn get_votes(configuration: &configuration::Configuration, params: Get 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::GetVotes200Response`"))), - 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::GetVotes200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetVotesResponse`"))), + 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::GetVotesResponse`")))), } } else { let content = resp.text().await?; @@ -5854,7 +5952,7 @@ pub async fn get_votes(configuration: &configuration::Configuration, params: Get } } -pub async fn get_votes_for_user(configuration: &configuration::Configuration, params: GetVotesForUserParams) -> Result> { +pub async fn get_votes_for_user(configuration: &configuration::Configuration, params: GetVotesForUserParams) -> Result> { let uri_str = format!("{}/api/v1/votes/for-user", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -5894,8 +5992,8 @@ pub async fn get_votes_for_user(configuration: &configuration::Configuration, pa 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::GetVotesForUser200Response`"))), - 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::GetVotesForUser200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetVotesForUserResponse`"))), + 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::GetVotesForUserResponse`")))), } } else { let content = resp.text().await?; @@ -5904,7 +6002,7 @@ pub async fn get_votes_for_user(configuration: &configuration::Configuration, pa } } -pub async fn patch_domain_config(configuration: &configuration::Configuration, params: PatchDomainConfigParams) -> Result> { +pub async fn patch_domain_config(configuration: &configuration::Configuration, params: PatchDomainConfigParams) -> Result> { let uri_str = format!("{}/api/v1/domain-configs/{domainToUpdate}", configuration.base_path, domainToUpdate=crate::client::apis::urlencode(params.domain_to_update)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -5938,8 +6036,8 @@ pub async fn patch_domain_config(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::GetDomainConfig200Response`"))), - 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::GetDomainConfig200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PatchDomainConfigResponse`"))), + 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::PatchDomainConfigResponse`")))), } } else { let content = resp.text().await?; @@ -5948,7 +6046,7 @@ pub async fn patch_domain_config(configuration: &configuration::Configuration, p } } -pub async fn patch_hash_tag(configuration: &configuration::Configuration, params: PatchHashTagParams) -> Result> { +pub async fn patch_hash_tag(configuration: &configuration::Configuration, params: PatchHashTagParams) -> Result> { 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); @@ -5984,8 +6082,8 @@ pub async fn patch_hash_tag(configuration: &configuration::Configuration, params 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::PatchHashTag200Response`"))), - 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::PatchHashTag200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateHashTagResponse`"))), + 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::UpdateHashTagResponse`")))), } } else { let content = resp.text().await?; @@ -6085,7 +6183,7 @@ pub async fn patch_sso_user(configuration: &configuration::Configuration, params } } -pub async fn put_domain_config(configuration: &configuration::Configuration, params: PutDomainConfigParams) -> Result> { +pub async fn put_domain_config(configuration: &configuration::Configuration, params: PutDomainConfigParams) -> Result> { let uri_str = format!("{}/api/v1/domain-configs/{domainToUpdate}", configuration.base_path, domainToUpdate=crate::client::apis::urlencode(params.domain_to_update)); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); @@ -6119,8 +6217,8 @@ pub async fn put_domain_config(configuration: &configuration::Configuration, par 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::GetDomainConfig200Response`"))), - 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::GetDomainConfig200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PutDomainConfigResponse`"))), + 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::PutDomainConfigResponse`")))), } } else { let content = resp.text().await?; @@ -6176,7 +6274,7 @@ pub async fn put_sso_user(configuration: &configuration::Configuration, params: } } -pub async fn render_email_template(configuration: &configuration::Configuration, params: RenderEmailTemplateParams) -> Result> { +pub async fn render_email_template(configuration: &configuration::Configuration, params: RenderEmailTemplateParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates/render", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -6213,8 +6311,8 @@ pub async fn render_email_template(configuration: &configuration::Configuration, 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::RenderEmailTemplate200Response`"))), - 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::RenderEmailTemplate200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RenderEmailTemplateResponse`"))), + 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::RenderEmailTemplateResponse`")))), } } else { let content = resp.text().await?; @@ -6223,7 +6321,7 @@ pub async fn render_email_template(configuration: &configuration::Configuration, } } -pub async fn replace_tenant_package(configuration: &configuration::Configuration, params: ReplaceTenantPackageParams) -> Result> { +pub async fn replace_tenant_package(configuration: &configuration::Configuration, params: ReplaceTenantPackageParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-packages/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); @@ -6257,8 +6355,8 @@ pub async fn replace_tenant_package(configuration: &configuration::Configuration 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6267,7 +6365,7 @@ pub async fn replace_tenant_package(configuration: &configuration::Configuration } } -pub async fn replace_tenant_user(configuration: &configuration::Configuration, params: ReplaceTenantUserParams) -> Result> { +pub async fn replace_tenant_user(configuration: &configuration::Configuration, params: ReplaceTenantUserParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-users/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); @@ -6304,8 +6402,8 @@ pub async fn replace_tenant_user(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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6314,7 +6412,7 @@ pub async fn replace_tenant_user(configuration: &configuration::Configuration, p } } -pub async fn save_comment(configuration: &configuration::Configuration, params: SaveCommentParams) -> Result> { +pub async fn save_comment(configuration: &configuration::Configuration, params: SaveCommentParams) -> Result> { let uri_str = format!("{}/api/v1/comments", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -6360,8 +6458,8 @@ pub async fn save_comment(configuration: &configuration::Configuration, params: 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::SaveComment200Response`"))), - 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::SaveComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiSaveCommentResponse`"))), + 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::ApiSaveCommentResponse`")))), } } else { let content = resp.text().await?; @@ -6370,7 +6468,7 @@ pub async fn save_comment(configuration: &configuration::Configuration, params: } } -pub async fn save_comments_bulk(configuration: &configuration::Configuration, params: SaveCommentsBulkParams) -> Result, Error> { +pub async fn save_comments_bulk(configuration: &configuration::Configuration, params: SaveCommentsBulkParams) -> Result, Error> { let uri_str = format!("{}/api/v1/comments/bulk", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -6416,8 +6514,8 @@ pub async fn save_comments_bulk(configuration: &configuration::Configuration, pa 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 `Vec<models::SaveComment200Response>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::SaveComment200Response>`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::SaveCommentsBulkResponse>`"))), + ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::SaveCommentsBulkResponse>`")))), } } else { let content = resp.text().await?; @@ -6426,7 +6524,7 @@ pub async fn save_comments_bulk(configuration: &configuration::Configuration, pa } } -pub async fn send_invite(configuration: &configuration::Configuration, params: SendInviteParams) -> Result> { +pub async fn send_invite(configuration: &configuration::Configuration, params: SendInviteParams) -> Result> { let uri_str = format!("{}/api/v1/moderators/{id}/send-invite", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -6460,8 +6558,8 @@ pub async fn send_invite(configuration: &configuration::Configuration, params: S 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6470,7 +6568,7 @@ pub async fn send_invite(configuration: &configuration::Configuration, params: S } } -pub async fn send_login_link(configuration: &configuration::Configuration, params: SendLoginLinkParams) -> Result> { +pub async fn send_login_link(configuration: &configuration::Configuration, params: SendLoginLinkParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-users/{id}/send-login-link", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -6506,8 +6604,8 @@ pub async fn send_login_link(configuration: &configuration::Configuration, param 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6516,7 +6614,7 @@ pub async fn send_login_link(configuration: &configuration::Configuration, param } } -pub async fn un_block_user_from_comment(configuration: &configuration::Configuration, params: UnBlockUserFromCommentParams) -> Result> { +pub async fn un_block_user_from_comment(configuration: &configuration::Configuration, params: UnBlockUserFromCommentParams) -> Result> { let uri_str = format!("{}/api/v1/comments/{id}/un-block", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -6556,8 +6654,8 @@ pub async fn un_block_user_from_comment(configuration: &configuration::Configura 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::UnBlockCommentPublic200Response`"))), - 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::UnBlockCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UnblockSuccess`"))), + 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::UnblockSuccess`")))), } } else { let content = resp.text().await?; @@ -6566,7 +6664,7 @@ pub async fn un_block_user_from_comment(configuration: &configuration::Configura } } -pub async fn un_flag_comment(configuration: &configuration::Configuration, params: UnFlagCommentParams) -> Result> { +pub async fn un_flag_comment(configuration: &configuration::Configuration, params: UnFlagCommentParams) -> Result> { let uri_str = format!("{}/api/v1/comments/{id}/un-flag", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -6605,8 +6703,8 @@ pub async fn un_flag_comment(configuration: &configuration::Configuration, param 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::FlagComment200Response`"))), - 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::FlagComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::FlagCommentResponse`"))), + 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::FlagCommentResponse`")))), } } else { let content = resp.text().await?; @@ -6615,7 +6713,7 @@ pub async fn un_flag_comment(configuration: &configuration::Configuration, param } } -pub async fn update_comment(configuration: &configuration::Configuration, params: UpdateCommentParams) -> Result> { +pub async fn update_comment(configuration: &configuration::Configuration, params: UpdateCommentParams) -> Result> { let uri_str = format!("{}/api/v1/comments/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -6658,8 +6756,8 @@ pub async fn update_comment(configuration: &configuration::Configuration, params 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6668,7 +6766,7 @@ pub async fn update_comment(configuration: &configuration::Configuration, params } } -pub async fn update_email_template(configuration: &configuration::Configuration, params: UpdateEmailTemplateParams) -> Result> { +pub async fn update_email_template(configuration: &configuration::Configuration, params: UpdateEmailTemplateParams) -> Result> { let uri_str = format!("{}/api/v1/email-templates/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -6702,8 +6800,8 @@ pub async fn update_email_template(configuration: &configuration::Configuration, 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6712,7 +6810,7 @@ pub async fn update_email_template(configuration: &configuration::Configuration, } } -pub async fn update_feed_post(configuration: &configuration::Configuration, params: UpdateFeedPostParams) -> Result> { +pub async fn update_feed_post(configuration: &configuration::Configuration, params: UpdateFeedPostParams) -> Result> { let uri_str = format!("{}/api/v1/feed-posts/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -6746,8 +6844,8 @@ pub async fn update_feed_post(configuration: &configuration::Configuration, para 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6756,7 +6854,7 @@ pub async fn update_feed_post(configuration: &configuration::Configuration, para } } -pub async fn update_moderator(configuration: &configuration::Configuration, params: UpdateModeratorParams) -> Result> { +pub async fn update_moderator(configuration: &configuration::Configuration, params: UpdateModeratorParams) -> Result> { let uri_str = format!("{}/api/v1/moderators/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -6790,8 +6888,8 @@ pub async fn update_moderator(configuration: &configuration::Configuration, para 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6800,7 +6898,7 @@ pub async fn update_moderator(configuration: &configuration::Configuration, para } } -pub async fn update_notification(configuration: &configuration::Configuration, params: UpdateNotificationParams) -> Result> { +pub async fn update_notification(configuration: &configuration::Configuration, params: UpdateNotificationParams) -> Result> { let uri_str = format!("{}/api/v1/notifications/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -6837,8 +6935,8 @@ pub async fn update_notification(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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6847,7 +6945,7 @@ pub async fn update_notification(configuration: &configuration::Configuration, p } } -pub async fn update_question_config(configuration: &configuration::Configuration, params: UpdateQuestionConfigParams) -> Result> { +pub async fn update_question_config(configuration: &configuration::Configuration, params: UpdateQuestionConfigParams) -> Result> { let uri_str = format!("{}/api/v1/question-configs/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -6881,8 +6979,8 @@ pub async fn update_question_config(configuration: &configuration::Configuration 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6891,7 +6989,7 @@ pub async fn update_question_config(configuration: &configuration::Configuration } } -pub async fn update_question_result(configuration: &configuration::Configuration, params: UpdateQuestionResultParams) -> Result> { +pub async fn update_question_result(configuration: &configuration::Configuration, params: UpdateQuestionResultParams) -> Result> { let uri_str = format!("{}/api/v1/question-results/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -6925,8 +7023,8 @@ pub async fn update_question_result(configuration: &configuration::Configuration 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -6982,7 +7080,7 @@ pub async fn update_subscription(configuration: &configuration::Configuration, p } } -pub async fn update_tenant(configuration: &configuration::Configuration, params: UpdateTenantParams) -> Result> { +pub async fn update_tenant(configuration: &configuration::Configuration, params: UpdateTenantParams) -> Result> { let uri_str = format!("{}/api/v1/tenants/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -7016,8 +7114,8 @@ pub async fn update_tenant(configuration: &configuration::Configuration, params: 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -7026,7 +7124,7 @@ pub async fn update_tenant(configuration: &configuration::Configuration, params: } } -pub async fn update_tenant_package(configuration: &configuration::Configuration, params: UpdateTenantPackageParams) -> Result> { +pub async fn update_tenant_package(configuration: &configuration::Configuration, params: UpdateTenantPackageParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-packages/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -7060,8 +7158,8 @@ pub async fn update_tenant_package(configuration: &configuration::Configuration, 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -7070,7 +7168,7 @@ pub async fn update_tenant_package(configuration: &configuration::Configuration, } } -pub async fn update_tenant_user(configuration: &configuration::Configuration, params: UpdateTenantUserParams) -> Result> { +pub async fn update_tenant_user(configuration: &configuration::Configuration, params: UpdateTenantUserParams) -> Result> { let uri_str = format!("{}/api/v1/tenant-users/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PATCH, &uri_str); @@ -7107,8 +7205,8 @@ pub async fn update_tenant_user(configuration: &configuration::Configuration, pa 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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -7117,7 +7215,7 @@ pub async fn update_tenant_user(configuration: &configuration::Configuration, pa } } -pub async fn update_user_badge(configuration: &configuration::Configuration, params: UpdateUserBadgeParams) -> Result> { +pub async fn update_user_badge(configuration: &configuration::Configuration, params: UpdateUserBadgeParams) -> Result> { let uri_str = format!("{}/api/v1/user-badges/{id}", configuration.base_path, id=crate::client::apis::urlencode(params.id)); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); @@ -7151,8 +7249,8 @@ pub async fn update_user_badge(configuration: &configuration::Configuration, par 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::UpdateUserBadge200Response`"))), - 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::UpdateUserBadge200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptySuccessResponse`"))), + 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::ApiEmptySuccessResponse`")))), } } else { let content = resp.text().await?; diff --git a/client/src/apis/mod.rs b/client/src/apis/mod.rs index faa60eb..324e7ce 100644 --- a/client/src/apis/mod.rs +++ b/client/src/apis/mod.rs @@ -112,6 +112,7 @@ impl From<&str> for ContentType { } pub mod default_api; +pub mod moderation_api; pub mod public_api; pub mod configuration; diff --git a/client/src/apis/moderation_api.rs b/client/src/apis/moderation_api.rs new file mode 100644 index 0000000..fb06f8f --- /dev/null +++ b/client/src/apis/moderation_api.rs @@ -0,0 +1,2509 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + + +use reqwest; +use serde::{Deserialize, Serialize, de::Error as _}; +use crate::client::{apis::ResponseContent, models}; +use super::{Error, configuration, ContentType}; + +/// struct for passing parameters to the method [`delete_moderation_vote`] +#[derive(Clone, Debug)] +pub struct DeleteModerationVoteParams { + pub comment_id: String, + pub vote_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_api_comments`] +#[derive(Clone, Debug)] +pub struct GetApiCommentsParams { + pub page: Option, + pub count: Option, + pub text_search: Option, + pub by_ip_from_comment: Option, + pub filters: Option, + pub search_filters: Option, + pub sorts: Option, + pub demo: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_api_export_status`] +#[derive(Clone, Debug)] +pub struct GetApiExportStatusParams { + pub batch_job_id: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_api_ids`] +#[derive(Clone, Debug)] +pub struct GetApiIdsParams { + pub text_search: Option, + pub by_ip_from_comment: Option, + pub filters: Option, + pub search_filters: Option, + pub after_id: Option, + pub demo: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_ban_users_from_comment`] +#[derive(Clone, Debug)] +pub struct GetBanUsersFromCommentParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_comment_ban_status`] +#[derive(Clone, Debug)] +pub struct GetCommentBanStatusParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_comment_children`] +#[derive(Clone, Debug)] +pub struct GetCommentChildrenParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_count`] +#[derive(Clone, Debug)] +pub struct GetCountParams { + pub text_search: Option, + pub by_ip_from_comment: Option, + pub filter: Option, + pub search_filters: Option, + pub demo: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_counts`] +#[derive(Clone, Debug)] +pub struct GetCountsParams { + pub sso: Option +} + +/// struct for passing parameters to the method [`get_logs`] +#[derive(Clone, Debug)] +pub struct GetLogsParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_manual_badges`] +#[derive(Clone, Debug)] +pub struct GetManualBadgesParams { + pub sso: Option +} + +/// struct for passing parameters to the method [`get_manual_badges_for_user`] +#[derive(Clone, Debug)] +pub struct GetManualBadgesForUserParams { + pub badges_user_id: Option, + pub comment_id: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_moderation_comment`] +#[derive(Clone, Debug)] +pub struct GetModerationCommentParams { + pub comment_id: String, + pub include_email: Option, + pub include_ip: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_moderation_comment_text`] +#[derive(Clone, Debug)] +pub struct GetModerationCommentTextParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_pre_ban_summary`] +#[derive(Clone, Debug)] +pub struct GetPreBanSummaryParams { + pub comment_id: String, + pub include_by_user_id_and_email: Option, + pub include_by_ip: Option, + pub include_by_email_domain: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_search_comments_summary`] +#[derive(Clone, Debug)] +pub struct GetSearchCommentsSummaryParams { + pub value: Option, + pub filters: Option, + pub search_filters: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_search_pages`] +#[derive(Clone, Debug)] +pub struct GetSearchPagesParams { + pub value: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_search_sites`] +#[derive(Clone, Debug)] +pub struct GetSearchSitesParams { + pub value: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_search_suggest`] +#[derive(Clone, Debug)] +pub struct GetSearchSuggestParams { + pub text_search: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_search_users`] +#[derive(Clone, Debug)] +pub struct GetSearchUsersParams { + pub value: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_trust_factor`] +#[derive(Clone, Debug)] +pub struct GetTrustFactorParams { + pub user_id: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`get_user_ban_preference`] +#[derive(Clone, Debug)] +pub struct GetUserBanPreferenceParams { + pub sso: Option +} + +/// struct for passing parameters to the method [`get_user_internal_profile`] +#[derive(Clone, Debug)] +pub struct GetUserInternalProfileParams { + pub comment_id: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_adjust_comment_votes`] +#[derive(Clone, Debug)] +pub struct PostAdjustCommentVotesParams { + pub comment_id: String, + pub adjust_comment_votes_params: models::AdjustCommentVotesParams, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_api_export`] +#[derive(Clone, Debug)] +pub struct PostApiExportParams { + pub text_search: Option, + pub by_ip_from_comment: Option, + pub filters: Option, + pub search_filters: Option, + pub sorts: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_ban_user_from_comment`] +#[derive(Clone, Debug)] +pub struct PostBanUserFromCommentParams { + pub comment_id: String, + pub ban_email: Option, + pub ban_email_domain: Option, + pub ban_ip: Option, + pub delete_all_users_comments: Option, + pub banned_until: Option, + pub is_shadow_ban: Option, + pub update_id: Option, + pub ban_reason: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_ban_user_undo`] +#[derive(Clone, Debug)] +pub struct PostBanUserUndoParams { + pub ban_user_undo_params: models::BanUserUndoParams, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_bulk_pre_ban_summary`] +#[derive(Clone, Debug)] +pub struct PostBulkPreBanSummaryParams { + pub bulk_pre_ban_params: models::BulkPreBanParams, + pub include_by_user_id_and_email: Option, + pub include_by_ip: Option, + pub include_by_email_domain: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_comments_by_ids`] +#[derive(Clone, Debug)] +pub struct PostCommentsByIdsParams { + pub comments_by_ids_params: models::CommentsByIdsParams, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_flag_comment`] +#[derive(Clone, Debug)] +pub struct PostFlagCommentParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_remove_comment`] +#[derive(Clone, Debug)] +pub struct PostRemoveCommentParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_restore_deleted_comment`] +#[derive(Clone, Debug)] +pub struct PostRestoreDeletedCommentParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_set_comment_approval_status`] +#[derive(Clone, Debug)] +pub struct PostSetCommentApprovalStatusParams { + pub comment_id: String, + pub approved: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_set_comment_review_status`] +#[derive(Clone, Debug)] +pub struct PostSetCommentReviewStatusParams { + pub comment_id: String, + pub reviewed: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_set_comment_spam_status`] +#[derive(Clone, Debug)] +pub struct PostSetCommentSpamStatusParams { + pub comment_id: String, + pub spam: Option, + pub perm_not_spam: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_set_comment_text`] +#[derive(Clone, Debug)] +pub struct PostSetCommentTextParams { + pub comment_id: String, + pub set_comment_text_params: models::SetCommentTextParams, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_un_flag_comment`] +#[derive(Clone, Debug)] +pub struct PostUnFlagCommentParams { + pub comment_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`post_vote`] +#[derive(Clone, Debug)] +pub struct PostVoteParams { + pub comment_id: String, + pub direction: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`put_award_badge`] +#[derive(Clone, Debug)] +pub struct PutAwardBadgeParams { + pub badge_id: String, + pub user_id: Option, + pub comment_id: Option, + pub broadcast_id: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`put_close_thread`] +#[derive(Clone, Debug)] +pub struct PutCloseThreadParams { + pub url_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`put_remove_badge`] +#[derive(Clone, Debug)] +pub struct PutRemoveBadgeParams { + pub badge_id: String, + pub user_id: Option, + pub comment_id: Option, + pub broadcast_id: Option, + pub sso: Option +} + +/// struct for passing parameters to the method [`put_reopen_thread`] +#[derive(Clone, Debug)] +pub struct PutReopenThreadParams { + pub url_id: String, + pub sso: Option +} + +/// struct for passing parameters to the method [`set_trust_factor`] +#[derive(Clone, Debug)] +pub struct SetTrustFactorParams { + pub user_id: Option, + pub trust_factor: Option, + pub sso: Option +} + + +/// struct for typed errors of method [`delete_moderation_vote`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteModerationVoteError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_api_comments`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApiCommentsError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_api_export_status`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApiExportStatusError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_api_ids`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetApiIdsError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_ban_users_from_comment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetBanUsersFromCommentError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_comment_ban_status`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetCommentBanStatusError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_comment_children`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetCommentChildrenError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_count`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetCountError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_counts`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetCountsError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_logs`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetLogsError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_manual_badges`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetManualBadgesError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_manual_badges_for_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetManualBadgesForUserError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_moderation_comment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetModerationCommentError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_moderation_comment_text`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetModerationCommentTextError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_pre_ban_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetPreBanSummaryError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_search_comments_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSearchCommentsSummaryError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_search_pages`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSearchPagesError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_search_sites`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSearchSitesError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_search_suggest`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSearchSuggestError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_search_users`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetSearchUsersError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_trust_factor`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetTrustFactorError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_user_ban_preference`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetUserBanPreferenceError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_user_internal_profile`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetUserInternalProfileError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_adjust_comment_votes`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostAdjustCommentVotesError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_api_export`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostApiExportError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_ban_user_from_comment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostBanUserFromCommentError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_ban_user_undo`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostBanUserUndoError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_bulk_pre_ban_summary`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostBulkPreBanSummaryError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_comments_by_ids`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostCommentsByIdsError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_flag_comment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostFlagCommentError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_remove_comment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostRemoveCommentError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_restore_deleted_comment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostRestoreDeletedCommentError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_set_comment_approval_status`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostSetCommentApprovalStatusError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_set_comment_review_status`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostSetCommentReviewStatusError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_set_comment_spam_status`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostSetCommentSpamStatusError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_set_comment_text`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostSetCommentTextError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_un_flag_comment`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostUnFlagCommentError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`post_vote`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PostVoteError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`put_award_badge`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PutAwardBadgeError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`put_close_thread`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PutCloseThreadError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`put_remove_badge`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PutRemoveBadgeError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`put_reopen_thread`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum PutReopenThreadError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`set_trust_factor`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum SetTrustFactorError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + + +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 mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::VoteDeleteResponse`"))), + 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::VoteDeleteResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.page { + req_builder = req_builder.query(&[("page", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.count { + req_builder = req_builder.query(&[("count", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.text_search { + req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.by_ip_from_comment { + req_builder = req_builder.query(&[("byIPFromComment", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.filters { + req_builder = req_builder.query(&[("filters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.search_filters { + req_builder = req_builder.query(&[("searchFilters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sorts { + req_builder = req_builder.query(&[("sorts", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.demo { + req_builder = req_builder.query(&[("demo", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationApiGetCommentsResponse`"))), + 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::ModerationApiGetCommentsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.batch_job_id { + req_builder = req_builder.query(&[("batchJobId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationExportStatusResponse`"))), + 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::ModerationExportStatusResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.text_search { + req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.by_ip_from_comment { + req_builder = req_builder.query(&[("byIPFromComment", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.filters { + req_builder = req_builder.query(&[("filters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.search_filters { + req_builder = req_builder.query(&[("searchFilters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.after_id { + req_builder = req_builder.query(&[("afterId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.demo { + req_builder = req_builder.query(&[("demo", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationApiGetCommentIdsResponse`"))), + 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::ModerationApiGetCommentIdsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetBannedUsersFromCommentResponse`"))), + 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::GetBannedUsersFromCommentResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetCommentBanStatusResponse`"))), + 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::GetCommentBanStatusResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationApiChildCommentsResponse`"))), + 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::ModerationApiChildCommentsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.text_search { + req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.by_ip_from_comment { + req_builder = req_builder.query(&[("byIPFromComment", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.filter { + req_builder = req_builder.query(&[("filter", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.search_filters { + req_builder = req_builder.query(&[("searchFilters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.demo { + req_builder = req_builder.query(&[("demo", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationApiCountCommentsResponse`"))), + 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::ModerationApiCountCommentsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetBannedUsersCountResponse`"))), + 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::GetBannedUsersCountResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationApiGetLogsResponse`"))), + 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::ModerationApiGetLogsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetTenantManualBadgesResponse`"))), + 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::GetTenantManualBadgesResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.badges_user_id { + req_builder = req_builder.query(&[("badgesUserId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.comment_id { + req_builder = req_builder.query(&[("commentId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetUserManualBadgesResponse`"))), + 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::GetUserManualBadgesResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.include_email { + req_builder = req_builder.query(&[("includeEmail", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.include_ip { + req_builder = req_builder.query(&[("includeIP", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationApiCommentResponse`"))), + 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::ModerationApiCommentResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetCommentTextResponse`"))), + 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::GetCommentTextResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.include_by_user_id_and_email { + req_builder = req_builder.query(&[("includeByUserIdAndEmail", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.include_by_ip { + req_builder = req_builder.query(&[("includeByIP", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.include_by_email_domain { + req_builder = req_builder.query(&[("includeByEmailDomain", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::PreBanSummary`"))), + 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::PreBanSummary`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.value { + req_builder = req_builder.query(&[("value", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.filters { + req_builder = req_builder.query(&[("filters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.search_filters { + req_builder = req_builder.query(&[("searchFilters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationCommentSearchResponse`"))), + 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::ModerationCommentSearchResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.value { + req_builder = req_builder.query(&[("value", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationPageSearchResponse`"))), + 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::ModerationPageSearchResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.value { + req_builder = req_builder.query(&[("value", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationSiteSearchResponse`"))), + 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::ModerationSiteSearchResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.text_search { + req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationSuggestResponse`"))), + 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::ModerationSuggestResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.value { + req_builder = req_builder.query(&[("value", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationUserSearchResponse`"))), + 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::ModerationUserSearchResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.user_id { + req_builder = req_builder.query(&[("userId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetUserTrustFactorResponse`"))), + 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::GetUserTrustFactorResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiModerateGetUserBanPreferencesResponse`"))), + 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::ApiModerateGetUserBanPreferencesResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.comment_id { + req_builder = req_builder.query(&[("commentId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetUserInternalProfileResponse`"))), + 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::GetUserInternalProfileResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.json(¶ms.adjust_comment_votes_params); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::AdjustVotesResponse`"))), + 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::AdjustVotesResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.text_search { + req_builder = req_builder.query(&[("text-search", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.by_ip_from_comment { + req_builder = req_builder.query(&[("byIPFromComment", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.filters { + req_builder = req_builder.query(&[("filters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.search_filters { + req_builder = req_builder.query(&[("searchFilters", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sorts { + req_builder = req_builder.query(&[("sorts", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationExportResponse`"))), + 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::ModerationExportResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.ban_email { + req_builder = req_builder.query(&[("banEmail", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.ban_email_domain { + req_builder = req_builder.query(&[("banEmailDomain", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.ban_ip { + req_builder = req_builder.query(&[("banIP", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.delete_all_users_comments { + req_builder = req_builder.query(&[("deleteAllUsersComments", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.banned_until { + req_builder = req_builder.query(&[("bannedUntil", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.is_shadow_ban { + req_builder = req_builder.query(&[("isShadowBan", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.update_id { + req_builder = req_builder.query(&[("updateId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.ban_reason { + req_builder = req_builder.query(&[("banReason", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::BanUserFromCommentResult`"))), + 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::BanUserFromCommentResult`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.json(¶ms.ban_user_undo_params); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.include_by_user_id_and_email { + req_builder = req_builder.query(&[("includeByUserIdAndEmail", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.include_by_ip { + req_builder = req_builder.query(&[("includeByIP", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.include_by_email_domain { + req_builder = req_builder.query(&[("includeByEmailDomain", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.json(¶ms.bulk_pre_ban_params); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::BulkPreBanSummary`"))), + 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::BulkPreBanSummary`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.json(¶ms.comments_by_ids_params); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ModerationApiChildCommentsResponse`"))), + 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::ModerationApiChildCommentsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + 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.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::SetCommentApprovedResponse`"))), + 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::SetCommentApprovedResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + 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.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + 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.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + req_builder = req_builder.json(¶ms.set_comment_text_params); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::SetCommentTextResponse`"))), + 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::SetCommentTextResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + + 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.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::VoteResponse`"))), + 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::VoteResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + 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())]); + } + if let Some(ref param_value) = params.comment_id { + req_builder = req_builder.query(&[("commentId", ¶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())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::AwardUserBadgeResponse`"))), + 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::AwardUserBadgeResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + 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())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + 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())]); + } + if let Some(ref param_value) = params.comment_id { + req_builder = req_builder.query(&[("commentId", ¶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())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::RemoveUserBadgeResponse`"))), + 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::RemoveUserBadgeResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + 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())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +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 mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref param_value) = params.user_id { + req_builder = req_builder.query(&[("userId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.trust_factor { + req_builder = req_builder.query(&[("trustFactor", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::SetUserTrustFactorResponse`"))), + 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::SetUserTrustFactorResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + diff --git a/client/src/apis/public_api.rs b/client/src/apis/public_api.rs index 653ba3a..436cc59 100644 --- a/client/src/apis/public_api.rs +++ b/client/src/apis/public_api.rs @@ -13,6 +13,8 @@ use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; use crate::client::{apis::ResponseContent, models}; use super::{Error, configuration, ContentType}; +use tokio::fs::File as TokioFile; +use tokio_util::codec::{BytesCodec, FramedRead}; /// struct for passing parameters to the method [`block_from_comment_public`] #[derive(Clone, Debug)] @@ -52,6 +54,23 @@ pub struct CreateFeedPostPublicParams { pub sso: Option } +/// struct for passing parameters to the method [`create_v1_page_react`] +#[derive(Clone, Debug)] +pub struct CreateV1PageReactParams { + pub tenant_id: String, + pub url_id: String, + pub title: Option +} + +/// struct for passing parameters to the method [`create_v2_page_react`] +#[derive(Clone, Debug)] +pub struct CreateV2PageReactParams { + pub tenant_id: String, + pub url_id: String, + pub id: String, + pub title: Option +} + /// struct for passing parameters to the method [`delete_comment_public`] #[derive(Clone, Debug)] pub struct DeleteCommentPublicParams { @@ -83,6 +102,21 @@ pub struct DeleteFeedPostPublicParams { pub sso: Option } +/// struct for passing parameters to the method [`delete_v1_page_react`] +#[derive(Clone, Debug)] +pub struct DeleteV1PageReactParams { + pub tenant_id: String, + pub url_id: String +} + +/// struct for passing parameters to the method [`delete_v2_page_react`] +#[derive(Clone, Debug)] +pub struct DeleteV2PageReactParams { + pub tenant_id: String, + pub url_id: String, + pub id: String +} + /// struct for passing parameters to the method [`flag_comment_public`] #[derive(Clone, Debug)] pub struct FlagCommentPublicParams { @@ -110,6 +144,18 @@ pub struct GetCommentVoteUserNamesParams { pub sso: Option } +/// struct for passing parameters to the method [`get_comments_for_user`] +#[derive(Clone, Debug)] +pub struct GetCommentsForUserParams { + pub user_id: Option, + pub direction: Option, + pub replies_to_user_id: Option, + pub page: Option, + pub includei10n: Option, + pub locale: Option, + pub is_crawler: Option +} + /// struct for passing parameters to the method [`get_comments_public`] #[derive(Clone, Debug)] pub struct GetCommentsPublicParams { @@ -150,7 +196,7 @@ pub struct GetEventLogParams { pub url_id: String, pub user_id_ws: String, pub start_time: i64, - pub end_time: i64 + pub end_time: Option } /// struct for passing parameters to the method [`get_feed_posts_public`] @@ -173,6 +219,32 @@ pub struct GetFeedPostsStatsParams { pub sso: Option } +/// struct for passing parameters to the method [`get_gif_large`] +#[derive(Clone, Debug)] +pub struct GetGifLargeParams { + pub tenant_id: String, + pub large_internal_url_sanitized: String +} + +/// struct for passing parameters to the method [`get_gifs_search`] +#[derive(Clone, Debug)] +pub struct GetGifsSearchParams { + pub tenant_id: String, + pub search: String, + pub locale: Option, + pub rating: Option, + pub page: Option +} + +/// struct for passing parameters to the method [`get_gifs_trending`] +#[derive(Clone, Debug)] +pub struct GetGifsTrendingParams { + pub tenant_id: String, + pub locale: Option, + pub rating: Option, + pub page: Option +} + /// struct for passing parameters to the method [`get_global_event_log`] #[derive(Clone, Debug)] pub struct GetGlobalEventLogParams { @@ -180,7 +252,56 @@ pub struct GetGlobalEventLogParams { pub url_id: String, pub user_id_ws: String, pub start_time: i64, - pub end_time: i64 + pub end_time: Option +} + +/// struct for passing parameters to the method [`get_offline_users`] +#[derive(Clone, Debug)] +pub struct GetOfflineUsersParams { + pub tenant_id: String, + /// Page URL identifier (cleaned server-side). + pub url_id: String, + /// Cursor: pass nextAfterName from the previous response. + pub after_name: Option, + /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + pub after_user_id: Option +} + +/// struct for passing parameters to the method [`get_online_users`] +#[derive(Clone, Debug)] +pub struct GetOnlineUsersParams { + pub tenant_id: String, + /// Page URL identifier (cleaned server-side). + pub url_id: String, + /// Cursor: pass nextAfterName from the previous response. + pub after_name: Option, + /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + pub after_user_id: Option +} + +/// struct for passing parameters to the method [`get_pages_public`] +#[derive(Clone, Debug)] +pub struct GetPagesPublicParams { + pub tenant_id: String, + /// Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + pub cursor: Option, + /// 1..200, default 50 + pub limit: Option, + /// Optional case-insensitive title prefix filter. + pub q: Option, + /// Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + pub sort_by: Option, + /// If true, only return pages with at least one comment. + pub has_comments: Option +} + +/// struct for passing parameters to the method [`get_translations`] +#[derive(Clone, Debug)] +pub struct GetTranslationsParams { + pub namespace: String, + pub component: String, + pub locale: Option, + pub use_full_translation_ids: Option } /// struct for passing parameters to the method [`get_user_notification_count`] @@ -194,6 +315,8 @@ pub struct GetUserNotificationCountParams { #[derive(Clone, Debug)] pub struct GetUserNotificationsParams { pub tenant_id: String, + /// Used to determine whether the current page is subscribed. + pub url_id: Option, pub page_size: Option, pub after_id: Option, pub include_context: Option, @@ -202,6 +325,7 @@ pub struct GetUserNotificationsParams { pub dm_only: Option, pub no_dm: Option, pub include_translations: Option, + pub include_tenant_notifications: Option, pub sso: Option } @@ -221,6 +345,36 @@ pub struct GetUserReactsPublicParams { pub sso: Option } +/// struct for passing parameters to the method [`get_users_info`] +#[derive(Clone, Debug)] +pub struct GetUsersInfoParams { + pub tenant_id: String, + /// Comma-delimited userIds. + pub ids: String +} + +/// struct for passing parameters to the method [`get_v1_page_likes`] +#[derive(Clone, Debug)] +pub struct GetV1PageLikesParams { + pub tenant_id: String, + pub url_id: String +} + +/// struct for passing parameters to the method [`get_v2_page_react_users`] +#[derive(Clone, Debug)] +pub struct GetV2PageReactUsersParams { + pub tenant_id: String, + pub url_id: String, + pub id: String +} + +/// struct for passing parameters to the method [`get_v2_page_reacts`] +#[derive(Clone, Debug)] +pub struct GetV2PageReactsParams { + pub tenant_id: String, + pub url_id: String +} + /// struct for passing parameters to the method [`lock_comment`] #[derive(Clone, Debug)] pub struct LockCommentParams { @@ -386,6 +540,7 @@ pub struct VoteCommentParams { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum BlockFromCommentPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -393,6 +548,7 @@ pub enum BlockFromCommentPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CheckedCommentsForBlockedError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -400,6 +556,7 @@ pub enum CheckedCommentsForBlockedError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateCommentPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -407,6 +564,23 @@ pub enum CreateCommentPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum CreateFeedPostPublicError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_v1_page_react`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateV1PageReactError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`create_v2_page_react`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum CreateV2PageReactError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -414,6 +588,7 @@ pub enum CreateFeedPostPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteCommentPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -421,6 +596,7 @@ pub enum DeleteCommentPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteCommentVoteError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -428,6 +604,23 @@ pub enum DeleteCommentVoteError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum DeleteFeedPostPublicError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_v1_page_react`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteV1PageReactError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`delete_v2_page_react`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum DeleteV2PageReactError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -435,6 +628,7 @@ pub enum DeleteFeedPostPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum FlagCommentPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -442,6 +636,7 @@ pub enum FlagCommentPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetCommentTextError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -449,6 +644,15 @@ pub enum GetCommentTextError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetCommentVoteUserNamesError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_comments_for_user`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetCommentsForUserError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -456,6 +660,7 @@ pub enum GetCommentVoteUserNamesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetCommentsPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -463,6 +668,7 @@ pub enum GetCommentsPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetEventLogError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -470,6 +676,7 @@ pub enum GetEventLogError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetFeedPostsPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -477,6 +684,32 @@ pub enum GetFeedPostsPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetFeedPostsStatsError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_gif_large`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGifLargeError { + Status422(models::ApiError), + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_gifs_search`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGifsSearchError { + Status422(models::ApiError), + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_gifs_trending`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetGifsTrendingError { UnknownValue(serde_json::Value), } @@ -484,6 +717,45 @@ pub enum GetFeedPostsStatsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetGlobalEventLogError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_offline_users`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetOfflineUsersError { + Status403(models::ApiError), + Status422(models::ApiError), + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_online_users`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetOnlineUsersError { + Status403(models::ApiError), + Status422(models::ApiError), + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_pages_public`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetPagesPublicError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_translations`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetTranslationsError { + Status422(models::ApiError), + Status500(models::ApiError), + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -491,6 +763,7 @@ pub enum GetGlobalEventLogError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserNotificationCountError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -498,6 +771,7 @@ pub enum GetUserNotificationCountError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserNotificationsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -506,6 +780,7 @@ pub enum GetUserNotificationsError { #[serde(untagged)] pub enum GetUserPresenceStatusesError { Status422(models::ApiError), + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -513,6 +788,40 @@ pub enum GetUserPresenceStatusesError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserReactsPublicError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_users_info`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetUsersInfoError { + Status422(models::ApiError), + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_v1_page_likes`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetV1PageLikesError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_v2_page_react_users`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetV2PageReactUsersError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`get_v2_page_reacts`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum GetV2PageReactsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -520,6 +829,14 @@ pub enum GetUserReactsPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum LockCommentError { + DefaultResponse(models::ApiError), + UnknownValue(serde_json::Value), +} + +/// struct for typed errors of method [`logout_public`] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(untagged)] +pub enum LogoutPublicError { UnknownValue(serde_json::Value), } @@ -527,6 +844,7 @@ pub enum LockCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum PinCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -534,6 +852,7 @@ pub enum PinCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ReactFeedPostPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -541,6 +860,7 @@ pub enum ReactFeedPostPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ResetUserNotificationCountError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -548,6 +868,7 @@ pub enum ResetUserNotificationCountError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum ResetUserNotificationsError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -555,6 +876,7 @@ pub enum ResetUserNotificationsError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum SearchUsersError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -562,6 +884,7 @@ pub enum SearchUsersError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum SetCommentTextError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -569,6 +892,7 @@ pub enum SetCommentTextError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UnBlockCommentPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -576,6 +900,7 @@ pub enum UnBlockCommentPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UnLockCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -583,6 +908,7 @@ pub enum UnLockCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UnPinCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -590,6 +916,7 @@ pub enum UnPinCommentError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateFeedPostPublicError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -597,6 +924,7 @@ pub enum UpdateFeedPostPublicError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateUserNotificationCommentSubscriptionStatusError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -604,6 +932,7 @@ pub enum UpdateUserNotificationCommentSubscriptionStatusError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateUserNotificationPageSubscriptionStatusError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -611,6 +940,7 @@ pub enum UpdateUserNotificationPageSubscriptionStatusError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdateUserNotificationStatusError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } @@ -625,11 +955,12 @@ pub enum UploadImageError { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum VoteCommentError { + DefaultResponse(models::ApiError), UnknownValue(serde_json::Value), } -pub async fn block_from_comment_public(configuration: &configuration::Configuration, params: BlockFromCommentPublicParams) -> Result> { +pub async fn block_from_comment_public(configuration: &configuration::Configuration, params: BlockFromCommentPublicParams) -> Result> { let uri_str = format!("{}/block-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); @@ -658,8 +989,8 @@ pub async fn block_from_comment_public(configuration: &configuration::Configurat 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::BlockFromCommentPublic200Response`"))), - 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::BlockFromCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::BlockSuccess`"))), + 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::BlockSuccess`")))), } } else { let content = resp.text().await?; @@ -668,7 +999,7 @@ pub async fn block_from_comment_public(configuration: &configuration::Configurat } } -pub async fn checked_comments_for_blocked(configuration: &configuration::Configuration, params: CheckedCommentsForBlockedParams) -> Result> { +pub async fn checked_comments_for_blocked(configuration: &configuration::Configuration, params: CheckedCommentsForBlockedParams) -> Result> { let uri_str = format!("{}/check-blocked-comments", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -697,8 +1028,8 @@ pub async fn checked_comments_for_blocked(configuration: &configuration::Configu 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::CheckedCommentsForBlocked200Response`"))), - 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::CheckedCommentsForBlocked200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CheckBlockedCommentsResponse`"))), + 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::CheckBlockedCommentsResponse`")))), } } else { let content = resp.text().await?; @@ -707,7 +1038,7 @@ pub async fn checked_comments_for_blocked(configuration: &configuration::Configu } } -pub async fn create_comment_public(configuration: &configuration::Configuration, params: CreateCommentPublicParams) -> Result> { +pub async fn create_comment_public(configuration: &configuration::Configuration, params: CreateCommentPublicParams) -> Result> { let uri_str = format!("{}/comments/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -740,8 +1071,8 @@ pub async fn create_comment_public(configuration: &configuration::Configuration, 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::CreateCommentPublic200Response`"))), - 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::CreateCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SaveCommentsResponseWithPresence`"))), + 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::SaveCommentsResponseWithPresence`")))), } } else { let content = resp.text().await?; @@ -750,7 +1081,7 @@ pub async fn create_comment_public(configuration: &configuration::Configuration, } } -pub async fn create_feed_post_public(configuration: &configuration::Configuration, params: CreateFeedPostPublicParams) -> Result> { +pub async fn create_feed_post_public(configuration: &configuration::Configuration, params: CreateFeedPostPublicParams) -> Result> { let uri_str = format!("{}/feed-posts/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -781,8 +1112,8 @@ pub async fn create_feed_post_public(configuration: &configuration::Configuratio 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::CreateFeedPostPublic200Response`"))), - 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::CreateFeedPostPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateFeedPostResponse`"))), + 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::CreateFeedPostResponse`")))), } } else { let content = resp.text().await?; @@ -791,17 +1122,14 @@ pub async fn create_feed_post_public(configuration: &configuration::Configuratio } } -pub async fn delete_comment_public(configuration: &configuration::Configuration, params: DeleteCommentPublicParams) -> Result> { +pub async fn create_v1_page_react(configuration: &configuration::Configuration, params: CreateV1PageReactParams) -> Result> { - let uri_str = format!("{}/comments/{tenantId}/{commentId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); - let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); + let uri_str = format!("{}/page-reacts/v1/likes/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); - req_builder = req_builder.query(&[("broadcastId", ¶ms.broadcast_id.to_string())]); - if let Some(ref param_value) = params.edit_key { - req_builder = req_builder.query(&[("editKey", ¶m_value.to_string())]); - } - if let Some(ref param_value) = params.sso { - req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + if let Some(ref param_value) = params.title { + req_builder = req_builder.query(&[("title", ¶m_value.to_string())]); } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -822,28 +1150,25 @@ pub async fn delete_comment_public(configuration: &configuration::Configuration, 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::DeleteCommentPublic200Response`"))), - 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::DeleteCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateV1PageReact`"))), + 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::CreateV1PageReact`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn delete_comment_vote(configuration: &configuration::Configuration, params: DeleteCommentVoteParams) -> Result> { +pub async fn create_v2_page_react(configuration: &configuration::Configuration, params: CreateV2PageReactParams) -> Result> { - let uri_str = format!("{}/comments/{tenantId}/{commentId}/vote/{voteId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), 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); + let uri_str = format!("{}/page-reacts/v2/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); - req_builder = req_builder.query(&[("broadcastId", ¶ms.broadcast_id.to_string())]); - if let Some(ref param_value) = params.edit_key { - req_builder = req_builder.query(&[("editKey", ¶m_value.to_string())]); - } - if let Some(ref param_value) = params.sso { - req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + req_builder = req_builder.query(&[("id", ¶ms.id.to_string())]); + if let Some(ref param_value) = params.title { + req_builder = req_builder.query(&[("title", ¶m_value.to_string())]); } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -864,23 +1189,24 @@ pub async fn delete_comment_vote(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::DeleteCommentVote200Response`"))), - 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::DeleteCommentVote200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateV1PageReact`"))), + 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::CreateV1PageReact`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn delete_feed_post_public(configuration: &configuration::Configuration, params: DeleteFeedPostPublicParams) -> Result> { +pub async fn delete_comment_public(configuration: &configuration::Configuration, params: DeleteCommentPublicParams) -> Result> { - let uri_str = format!("{}/feed-posts/{tenantId}/{postId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), postId=crate::client::apis::urlencode(params.post_id)); + let uri_str = format!("{}/comments/{tenantId}/{commentId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); - if let Some(ref param_value) = params.broadcast_id { - req_builder = req_builder.query(&[("broadcastId", ¶m_value.to_string())]); + req_builder = req_builder.query(&[("broadcastId", ¶ms.broadcast_id.to_string())]); + if let Some(ref param_value) = params.edit_key { + req_builder = req_builder.query(&[("editKey", ¶m_value.to_string())]); } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); @@ -904,23 +1230,26 @@ pub async fn delete_feed_post_public(configuration: &configuration::Configuratio 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::DeleteFeedPostPublic200Response`"))), - 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::DeleteFeedPostPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PublicApiDeleteCommentResponse`"))), + 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::PublicApiDeleteCommentResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn flag_comment_public(configuration: &configuration::Configuration, params: FlagCommentPublicParams) -> Result> { +pub async fn delete_comment_vote(configuration: &configuration::Configuration, params: DeleteCommentVoteParams) -> Result> { - let uri_str = format!("{}/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); + let uri_str = format!("{}/comments/{tenantId}/{commentId}/vote/{voteId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), 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())]); - req_builder = req_builder.query(&[("isFlagged", ¶ms.is_flagged.to_string())]); + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + req_builder = req_builder.query(&[("broadcastId", ¶ms.broadcast_id.to_string())]); + if let Some(ref param_value) = params.edit_key { + req_builder = req_builder.query(&[("editKey", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -943,23 +1272,23 @@ pub async fn flag_comment_public(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::FlagCommentPublic200Response`"))), - 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::FlagCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VoteDeleteResponse`"))), + 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::VoteDeleteResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn get_comment_text(configuration: &configuration::Configuration, params: GetCommentTextParams) -> Result> { +pub async fn delete_feed_post_public(configuration: &configuration::Configuration, params: DeleteFeedPostPublicParams) -> Result> { - let uri_str = format!("{}/comments/{tenantId}/{commentId}/text", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); - let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + let uri_str = format!("{}/feed-posts/{tenantId}/{postId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), postId=crate::client::apis::urlencode(params.post_id)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); - if let Some(ref param_value) = params.edit_key { - req_builder = req_builder.query(&[("editKey", ¶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())]); @@ -983,25 +1312,22 @@ pub async fn get_comment_text(configuration: &configuration::Configuration, para 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::GetCommentText200Response`"))), - 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::GetCommentText200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteFeedPostPublicResponse`"))), + 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::DeleteFeedPostPublicResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn get_comment_vote_user_names(configuration: &configuration::Configuration, params: GetCommentVoteUserNamesParams) -> Result> { +pub async fn delete_v1_page_react(configuration: &configuration::Configuration, params: DeleteV1PageReactParams) -> Result> { - let uri_str = format!("{}/comments/{tenantId}/{commentId}/votes", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); - let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + let uri_str = format!("{}/page-reacts/v1/likes/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); - req_builder = req_builder.query(&[("dir", ¶ms.dir.to_string())]); - if let Some(ref param_value) = params.sso { - req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); - } + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } @@ -1021,46 +1347,254 @@ pub async fn get_comment_vote_user_names(configuration: &configuration::Configur 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::GetCommentVoteUserNames200Response`"))), - 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::GetCommentVoteUserNames200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateV1PageReact`"))), + 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::CreateV1PageReact`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -/// req tenantId urlId -pub async fn get_comments_public(configuration: &configuration::Configuration, params: GetCommentsPublicParams) -> Result> { +pub async fn delete_v2_page_react(configuration: &configuration::Configuration, params: DeleteV2PageReactParams) -> Result> { - let uri_str = format!("{}/comments/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); - let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + let uri_str = format!("{}/page-reacts/v2/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); - if let Some(ref param_value) = params.page { - req_builder = req_builder.query(&[("page", ¶m_value.to_string())]); - } - if let Some(ref param_value) = params.direction { - req_builder = req_builder.query(&[("direction", &serde_json::to_string(param_value)?)]); - } - if let Some(ref param_value) = params.sso { - req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); - } - if let Some(ref param_value) = params.skip { - req_builder = req_builder.query(&[("skip", ¶m_value.to_string())]); - } - if let Some(ref param_value) = params.skip_children { - req_builder = req_builder.query(&[("skipChildren", ¶m_value.to_string())]); - } - if let Some(ref param_value) = params.limit { - req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); - } - if let Some(ref param_value) = params.limit_children { - req_builder = req_builder.query(&[("limitChildren", ¶m_value.to_string())]); + req_builder = req_builder.query(&[("id", ¶ms.id.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref param_value) = params.count_children { - req_builder = req_builder.query(&[("countChildren", ¶m_value.to_string())]); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::CreateV1PageReact`"))), + 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::CreateV1PageReact`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn flag_comment_public(configuration: &configuration::Configuration, params: FlagCommentPublicParams) -> Result> { + + let uri_str = format!("{}/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())]); + req_builder = req_builder.query(&[("isFlagged", ¶ms.is_flagged.to_string())]); + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_comment_text(configuration: &configuration::Configuration, params: GetCommentTextParams) -> Result> { + + let uri_str = format!("{}/comments/{tenantId}/{commentId}/text", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.edit_key { + req_builder = req_builder.query(&[("editKey", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::PublicApiGetCommentTextResponse`"))), + 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::PublicApiGetCommentTextResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_comment_vote_user_names(configuration: &configuration::Configuration, params: GetCommentVoteUserNamesParams) -> Result> { + + let uri_str = format!("{}/comments/{tenantId}/{commentId}/votes", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), 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(&[("dir", ¶ms.dir.to_string())]); + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetCommentVoteUserNamesSuccessResponse`"))), + 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::GetCommentVoteUserNamesSuccessResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_comments_for_user(configuration: &configuration::Configuration, params: GetCommentsForUserParams) -> Result> { + + let uri_str = format!("{}/comments-for-user", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.user_id { + req_builder = req_builder.query(&[("userId", ¶m_value.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.replies_to_user_id { + req_builder = req_builder.query(&[("repliesToUserId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.page { + req_builder = req_builder.query(&[("page", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.includei10n { + req_builder = req_builder.query(&[("includei10n", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.locale { + req_builder = req_builder.query(&[("locale", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.is_crawler { + req_builder = req_builder.query(&[("isCrawler", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetCommentsForUserResponse`"))), + 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::GetCommentsForUserResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +/// req tenantId urlId +pub async fn get_comments_public(configuration: &configuration::Configuration, params: GetCommentsPublicParams) -> Result> { + + let uri_str = format!("{}/comments/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + if let Some(ref param_value) = params.page { + req_builder = req_builder.query(&[("page", ¶m_value.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.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.skip { + req_builder = req_builder.query(&[("skip", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.skip_children { + req_builder = req_builder.query(&[("skipChildren", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.limit_children { + req_builder = req_builder.query(&[("limitChildren", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.count_children { + req_builder = req_builder.query(&[("countChildren", ¶m_value.to_string())]); } if let Some(ref param_value) = params.fetch_page_for_comment_id { req_builder = req_builder.query(&[("fetchPageForCommentId", ¶m_value.to_string())]); @@ -1110,14 +1644,274 @@ pub async fn get_comments_public(configuration: &configuration::Configuration, p if let Some(ref param_value) = params.user_id { req_builder = req_builder.query(&[("userId", ¶m_value.to_string())]); } - if let Some(ref param_value) = params.custom_config_str { - req_builder = req_builder.query(&[("customConfigStr", ¶m_value.to_string())]); + if let Some(ref param_value) = params.custom_config_str { + req_builder = req_builder.query(&[("customConfigStr", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.after_comment_id { + req_builder = req_builder.query(&[("afterCommentId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.before_comment_id { + req_builder = req_builder.query(&[("beforeCommentId", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetCommentsResponseWithPresencePublicComment`"))), + 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::GetCommentsResponseWithPresencePublicComment`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +/// req tenantId urlId userIdWS +pub async fn get_event_log(configuration: &configuration::Configuration, params: GetEventLogParams) -> Result> { + + let uri_str = format!("{}/event-log/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + req_builder = req_builder.query(&[("userIdWS", ¶ms.user_id_ws.to_string())]); + req_builder = req_builder.query(&[("startTime", ¶ms.start_time.to_string())]); + if let Some(ref param_value) = params.end_time { + req_builder = req_builder.query(&[("endTime", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetEventLogResponse`"))), + 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::GetEventLogResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +/// req tenantId afterId +pub async fn get_feed_posts_public(configuration: &configuration::Configuration, params: GetFeedPostsPublicParams) -> Result> { + + let uri_str = format!("{}/feed-posts/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.after_id { + req_builder = req_builder.query(&[("afterId", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.tags { + req_builder = match "multi" { + "multi" => req_builder.query(¶m_value.into_iter().map(|p| ("tags".to_owned(), p.to_string())).collect::>()), + _ => req_builder.query(&[("tags", ¶m_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; + } + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.is_crawler { + req_builder = req_builder.query(&[("isCrawler", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.include_user_info { + req_builder = req_builder.query(&[("includeUserInfo", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::PublicFeedPostsResponse`"))), + 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::PublicFeedPostsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_feed_posts_stats(configuration: &configuration::Configuration, params: GetFeedPostsStatsParams) -> Result> { + + let uri_str = format!("{}/feed-posts/{tenantId}/stats", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = match "multi" { + "multi" => req_builder.query(¶ms.post_ids.into_iter().map(|p| ("postIds".to_owned(), p.to_string())).collect::>()), + _ => req_builder.query(&[("postIds", ¶ms.post_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; + if let Some(ref param_value) = params.sso { + req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::FeedPostsStatsResponse`"))), + 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::FeedPostsStatsResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_gif_large(configuration: &configuration::Configuration, params: GetGifLargeParams) -> Result> { + + let uri_str = format!("{}/gifs/get-large/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("largeInternalURLSanitized", ¶ms.large_internal_url_sanitized.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GifGetLargeResponse`"))), + 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::GifGetLargeResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_gifs_search(configuration: &configuration::Configuration, params: GetGifsSearchParams) -> Result> { + + let uri_str = format!("{}/gifs/search/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("search", ¶ms.search.to_string())]); + if let Some(ref param_value) = params.locale { + req_builder = req_builder.query(&[("locale", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.rating { + req_builder = req_builder.query(&[("rating", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.page { + req_builder = req_builder.query(&[("page", ¶m_value.to_string())]); + } + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetGifsSearchResponse`"))), + 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::GetGifsSearchResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_gifs_trending(configuration: &configuration::Configuration, params: GetGifsTrendingParams) -> Result> { + + let uri_str = format!("{}/gifs/trending/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + if let Some(ref param_value) = params.locale { + req_builder = req_builder.query(&[("locale", ¶m_value.to_string())]); } - if let Some(ref param_value) = params.after_comment_id { - req_builder = req_builder.query(&[("afterCommentId", ¶m_value.to_string())]); + if let Some(ref param_value) = params.rating { + req_builder = req_builder.query(&[("rating", ¶m_value.to_string())]); } - if let Some(ref param_value) = params.before_comment_id { - req_builder = req_builder.query(&[("beforeCommentId", ¶m_value.to_string())]); + if let Some(ref param_value) = params.page { + req_builder = req_builder.query(&[("page", ¶m_value.to_string())]); } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -1138,26 +1932,28 @@ pub async fn get_comments_public(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::GetCommentsPublic200Response`"))), - 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::GetCommentsPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetGifsTrendingResponse`"))), + 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::GetGifsTrendingResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } /// req tenantId urlId userIdWS -pub async fn get_event_log(configuration: &configuration::Configuration, params: GetEventLogParams) -> Result> { +pub async fn get_global_event_log(configuration: &configuration::Configuration, params: GetGlobalEventLogParams) -> Result> { - let uri_str = format!("{}/event-log/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let uri_str = format!("{}/event-log/global/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); req_builder = req_builder.query(&[("userIdWS", ¶ms.user_id_ws.to_string())]); req_builder = req_builder.query(&[("startTime", ¶ms.start_time.to_string())]); - req_builder = req_builder.query(&[("endTime", ¶ms.end_time.to_string())]); + if let Some(ref param_value) = params.end_time { + req_builder = req_builder.query(&[("endTime", ¶m_value.to_string())]); + } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } @@ -1177,42 +1973,70 @@ pub async fn get_event_log(configuration: &configuration::Configuration, params: 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::GetEventLog200Response`"))), - 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::GetEventLog200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetEventLogResponse`"))), + 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::GetEventLogResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -/// req tenantId afterId -pub async fn get_feed_posts_public(configuration: &configuration::Configuration, params: GetFeedPostsPublicParams) -> Result> { +/// Past commenters on the page who are NOT currently online. Sorted by displayName. Use this after exhausting /users/online to render a \"Members\" section. Cursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName} index from afterName forward via $gt, no $skip cost. +pub async fn get_offline_users(configuration: &configuration::Configuration, params: GetOfflineUsersParams) -> Result> { - let uri_str = format!("{}/feed-posts/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let uri_str = format!("{}/pages/{tenantId}/users/offline", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - if let Some(ref param_value) = params.after_id { - req_builder = req_builder.query(&[("afterId", ¶m_value.to_string())]); + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + if let Some(ref param_value) = params.after_name { + req_builder = req_builder.query(&[("afterName", ¶m_value.to_string())]); } - if let Some(ref param_value) = params.limit { - req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); + if let Some(ref param_value) = params.after_user_id { + req_builder = req_builder.query(&[("afterUserId", ¶m_value.to_string())]); } - if let Some(ref param_value) = params.tags { - req_builder = match "multi" { - "multi" => req_builder.query(¶m_value.into_iter().map(|p| ("tags".to_owned(), p.to_string())).collect::>()), - _ => req_builder.query(&[("tags", ¶m_value.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), - }; + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } - if let Some(ref param_value) = params.sso { - req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::PageUsersOfflineResponse`"))), + 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::PageUsersOfflineResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) } - if let Some(ref param_value) = params.is_crawler { - req_builder = req_builder.query(&[("isCrawler", ¶m_value.to_string())]); +} + +/// Currently-online viewers of a page: people whose websocket session is subscribed to the page right now. Returns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate). +pub async fn get_online_users(configuration: &configuration::Configuration, params: GetOnlineUsersParams) -> Result> { + + let uri_str = format!("{}/pages/{tenantId}/users/online", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + if let Some(ref param_value) = params.after_name { + req_builder = req_builder.query(&[("afterName", ¶m_value.to_string())]); } - if let Some(ref param_value) = params.include_user_info { - req_builder = req_builder.query(&[("includeUserInfo", ¶m_value.to_string())]); + if let Some(ref param_value) = params.after_user_id { + req_builder = req_builder.query(&[("afterUserId", ¶m_value.to_string())]); } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -1233,27 +2057,36 @@ pub async fn get_feed_posts_public(configuration: &configuration::Configuration, 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::GetFeedPostsPublic200Response`"))), - 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::GetFeedPostsPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PageUsersOnlineResponse`"))), + 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::PageUsersOnlineResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn get_feed_posts_stats(configuration: &configuration::Configuration, params: GetFeedPostsStatsParams) -> Result> { +/// List pages for a tenant. Used by the FChat desktop client to populate its room list. Requires `enableFChat` to be true on the resolved custom config for each page. Pages that require SSO are filtered against the requesting user's group access. +pub async fn get_pages_public(configuration: &configuration::Configuration, params: GetPagesPublicParams) -> Result> { - let uri_str = format!("{}/feed-posts/{tenantId}/stats", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let uri_str = format!("{}/pages/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - req_builder = match "multi" { - "multi" => req_builder.query(¶ms.post_ids.into_iter().map(|p| ("postIds".to_owned(), p.to_string())).collect::>()), - _ => req_builder.query(&[("postIds", ¶ms.post_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), - }; - if let Some(ref param_value) = params.sso { - req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); + if let Some(ref param_value) = params.cursor { + req_builder = req_builder.query(&[("cursor", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.limit { + req_builder = req_builder.query(&[("limit", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.q { + req_builder = req_builder.query(&[("q", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.sort_by { + req_builder = req_builder.query(&[("sortBy", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.has_comments { + req_builder = req_builder.query(&[("hasComments", ¶m_value.to_string())]); } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -1274,26 +2107,27 @@ pub async fn get_feed_posts_stats(configuration: &configuration::Configuration, 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::GetFeedPostsStats200Response`"))), - 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::GetFeedPostsStats200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetPublicPagesResponse`"))), + 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::GetPublicPagesResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -/// req tenantId urlId userIdWS -pub async fn get_global_event_log(configuration: &configuration::Configuration, params: GetGlobalEventLogParams) -> Result> { +pub async fn get_translations(configuration: &configuration::Configuration, params: GetTranslationsParams) -> Result> { - let uri_str = format!("{}/event-log/global/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let uri_str = format!("{}/translations/{namespace}/{component}", configuration.base_path, namespace=crate::client::apis::urlencode(params.namespace), component=crate::client::apis::urlencode(params.component)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); - req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); - req_builder = req_builder.query(&[("userIdWS", ¶ms.user_id_ws.to_string())]); - req_builder = req_builder.query(&[("startTime", ¶ms.start_time.to_string())]); - req_builder = req_builder.query(&[("endTime", ¶ms.end_time.to_string())]); + if let Some(ref param_value) = params.locale { + req_builder = req_builder.query(&[("locale", ¶m_value.to_string())]); + } + if let Some(ref param_value) = params.use_full_translation_ids { + req_builder = req_builder.query(&[("useFullTranslationIds", ¶m_value.to_string())]); + } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } @@ -1313,17 +2147,17 @@ pub async fn get_global_event_log(configuration: &configuration::Configuration, 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::GetEventLog200Response`"))), - 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::GetEventLog200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTranslationsResponse`"))), + 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::GetTranslationsResponse`")))), } } else { let content = resp.text().await?; - let entity: Option = serde_json::from_str(&content).ok(); + let entity: Option = serde_json::from_str(&content).ok(); Err(Error::ResponseError(ResponseContent { status, content, entity })) } } -pub async fn get_user_notification_count(configuration: &configuration::Configuration, params: GetUserNotificationCountParams) -> Result> { +pub async fn get_user_notification_count(configuration: &configuration::Configuration, params: GetUserNotificationCountParams) -> Result> { let uri_str = format!("{}/user-notifications/get-count", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -1351,8 +2185,8 @@ pub async fn get_user_notification_count(configuration: &configuration::Configur 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::GetUserNotificationCount200Response`"))), - 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::GetUserNotificationCount200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetUserNotificationCountResponse`"))), + 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::GetUserNotificationCountResponse`")))), } } else { let content = resp.text().await?; @@ -1361,12 +2195,15 @@ pub async fn get_user_notification_count(configuration: &configuration::Configur } } -pub async fn get_user_notifications(configuration: &configuration::Configuration, params: GetUserNotificationsParams) -> Result> { +pub async fn get_user_notifications(configuration: &configuration::Configuration, params: GetUserNotificationsParams) -> Result> { let uri_str = format!("{}/user-notifications", 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.url_id { + req_builder = req_builder.query(&[("urlId", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.page_size { req_builder = req_builder.query(&[("pageSize", ¶m_value.to_string())]); } @@ -1391,6 +2228,9 @@ pub async fn get_user_notifications(configuration: &configuration::Configuration if let Some(ref param_value) = params.include_translations { req_builder = req_builder.query(&[("includeTranslations", ¶m_value.to_string())]); } + if let Some(ref param_value) = params.include_tenant_notifications { + req_builder = req_builder.query(&[("includeTenantNotifications", ¶m_value.to_string())]); + } if let Some(ref param_value) = params.sso { req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } @@ -1413,8 +2253,8 @@ pub async fn get_user_notifications(configuration: &configuration::Configuration 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::GetUserNotifications200Response`"))), - 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::GetUserNotifications200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetMyNotificationsResponse`"))), + 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::GetMyNotificationsResponse`")))), } } else { let content = resp.text().await?; @@ -1423,7 +2263,7 @@ pub async fn get_user_notifications(configuration: &configuration::Configuration } } -pub async fn get_user_presence_statuses(configuration: &configuration::Configuration, params: GetUserPresenceStatusesParams) -> Result> { +pub async fn get_user_presence_statuses(configuration: &configuration::Configuration, params: GetUserPresenceStatusesParams) -> Result> { let uri_str = format!("{}/user-presence-status", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -1450,8 +2290,8 @@ pub async fn get_user_presence_statuses(configuration: &configuration::Configura 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::GetUserPresenceStatuses200Response`"))), - 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::GetUserPresenceStatuses200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetUserPresenceStatusesResponse`"))), + 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::GetUserPresenceStatusesResponse`")))), } } else { let content = resp.text().await?; @@ -1460,7 +2300,7 @@ pub async fn get_user_presence_statuses(configuration: &configuration::Configura } } -pub async fn get_user_reacts_public(configuration: &configuration::Configuration, params: GetUserReactsPublicParams) -> Result> { +pub async fn get_user_reacts_public(configuration: &configuration::Configuration, params: GetUserReactsPublicParams) -> Result> { let uri_str = format!("{}/feed-posts/{tenantId}/user-reacts", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -1493,8 +2333,8 @@ pub async fn get_user_reacts_public(configuration: &configuration::Configuration 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::GetUserReactsPublic200Response`"))), - 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::GetUserReactsPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UserReactsResponse`"))), + 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::UserReactsResponse`")))), } } else { let content = resp.text().await?; @@ -1503,7 +2343,149 @@ pub async fn get_user_reacts_public(configuration: &configuration::Configuration } } -pub async fn lock_comment(configuration: &configuration::Configuration, params: LockCommentParams) -> Result> { +/// Bulk user info for a tenant. Given userIds, return display info from User / SSOUser. Used by the comment widget to enrich users that just appeared via a presence event. No page context: privacy is enforced uniformly (private profiles are masked). +pub async fn get_users_info(configuration: &configuration::Configuration, params: GetUsersInfoParams) -> Result> { + + let uri_str = format!("{}/pages/{tenantId}/users/info", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("ids", ¶ms.ids.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::PageUsersInfoResponse`"))), + 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::PageUsersInfoResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_v1_page_likes(configuration: &configuration::Configuration, params: GetV1PageLikesParams) -> Result> { + + let uri_str = format!("{}/page-reacts/v1/likes/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetV1PageLikes`"))), + 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::GetV1PageLikes`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_v2_page_react_users(configuration: &configuration::Configuration, params: GetV2PageReactUsersParams) -> Result> { + + let uri_str = format!("{}/page-reacts/v2/{tenantId}/list", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + req_builder = req_builder.query(&[("id", ¶ms.id.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetV2PageReactUsersResponse`"))), + 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::GetV2PageReactUsersResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn get_v2_page_reacts(configuration: &configuration::Configuration, params: GetV2PageReactsParams) -> Result> { + + let uri_str = format!("{}/page-reacts/v2/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); + let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); + + req_builder = req_builder.query(&[("urlId", ¶ms.url_id.to_string())]); + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::GetV2PageReacts`"))), + 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::GetV2PageReacts`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn lock_comment(configuration: &configuration::Configuration, params: LockCommentParams) -> Result> { let uri_str = format!("{}/comments/{tenantId}/{commentId}/lock", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1531,8 +2513,8 @@ pub async fn lock_comment(configuration: &configuration::Configuration, params: 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::LockComment200Response`"))), - 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::LockComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -1541,7 +2523,41 @@ pub async fn lock_comment(configuration: &configuration::Configuration, params: } } -pub async fn pin_comment(configuration: &configuration::Configuration, params: PinCommentParams) -> Result> { +pub async fn logout_public(configuration: &configuration::Configuration) -> Result> { + + let uri_str = format!("{}/auth/logout", configuration.base_path); + let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); + + if let Some(ref user_agent) = configuration.user_agent { + req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); + } + + let req = req_builder.build()?; + let resp = configuration.client.execute(req).await?; + + let status = resp.status(); + let content_type = resp + .headers() + .get("content-type") + .and_then(|v| v.to_str().ok()) + .unwrap_or("application/octet-stream"); + let content_type = super::ContentType::from(content_type); + + if !status.is_client_error() && !status.is_server_error() { + 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::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), + } + } else { + let content = resp.text().await?; + let entity: Option = serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { status, content, entity })) + } +} + +pub async fn pin_comment(configuration: &configuration::Configuration, params: PinCommentParams) -> Result> { let uri_str = format!("{}/comments/{tenantId}/{commentId}/pin", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1569,8 +2585,8 @@ pub async fn pin_comment(configuration: &configuration::Configuration, params: 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::PinComment200Response`"))), - 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::PinComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ChangeCommentPinStatusResponse`"))), + 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::ChangeCommentPinStatusResponse`")))), } } else { let content = resp.text().await?; @@ -1579,7 +2595,7 @@ pub async fn pin_comment(configuration: &configuration::Configuration, params: P } } -pub async fn react_feed_post_public(configuration: &configuration::Configuration, params: ReactFeedPostPublicParams) -> Result> { +pub async fn react_feed_post_public(configuration: &configuration::Configuration, params: ReactFeedPostPublicParams) -> Result> { let uri_str = format!("{}/feed-posts/{tenantId}/react/{postId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), postId=crate::client::apis::urlencode(params.post_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1613,8 +2629,8 @@ pub async fn react_feed_post_public(configuration: &configuration::Configuration 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::ReactFeedPostPublic200Response`"))), - 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::ReactFeedPostPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ReactFeedPostResponse`"))), + 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::ReactFeedPostResponse`")))), } } else { let content = resp.text().await?; @@ -1623,7 +2639,7 @@ pub async fn react_feed_post_public(configuration: &configuration::Configuration } } -pub async fn reset_user_notification_count(configuration: &configuration::Configuration, params: ResetUserNotificationCountParams) -> Result> { +pub async fn reset_user_notification_count(configuration: &configuration::Configuration, params: ResetUserNotificationCountParams) -> Result> { let uri_str = format!("{}/user-notifications/reset-count", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1651,8 +2667,8 @@ pub async fn reset_user_notification_count(configuration: &configuration::Config 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::ResetUserNotifications200Response`"))), - 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::ResetUserNotifications200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ResetUserNotificationsResponse`"))), + 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::ResetUserNotificationsResponse`")))), } } else { let content = resp.text().await?; @@ -1661,7 +2677,7 @@ pub async fn reset_user_notification_count(configuration: &configuration::Config } } -pub async fn reset_user_notifications(configuration: &configuration::Configuration, params: ResetUserNotificationsParams) -> Result> { +pub async fn reset_user_notifications(configuration: &configuration::Configuration, params: ResetUserNotificationsParams) -> Result> { let uri_str = format!("{}/user-notifications/reset", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1704,8 +2720,8 @@ pub async fn reset_user_notifications(configuration: &configuration::Configurati 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::ResetUserNotifications200Response`"))), - 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::ResetUserNotifications200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ResetUserNotificationsResponse`"))), + 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::ResetUserNotificationsResponse`")))), } } else { let content = resp.text().await?; @@ -1714,7 +2730,7 @@ pub async fn reset_user_notifications(configuration: &configuration::Configurati } } -pub async fn search_users(configuration: &configuration::Configuration, params: SearchUsersParams) -> Result> { +pub async fn search_users(configuration: &configuration::Configuration, params: SearchUsersParams) -> Result> { let uri_str = format!("{}/user-search/{tenantId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id)); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -1733,7 +2749,7 @@ pub async fn search_users(configuration: &configuration::Configuration, params: req_builder = req_builder.query(&[("sso", ¶m_value.to_string())]); } if let Some(ref param_value) = params.search_section { - req_builder = req_builder.query(&[("searchSection", &serde_json::to_string(param_value)?)]); + req_builder = req_builder.query(&[("searchSection", ¶m_value.to_string())]); } if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -1754,8 +2770,8 @@ pub async fn search_users(configuration: &configuration::Configuration, params: 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::SearchUsers200Response`"))), - 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::SearchUsers200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SearchUsersResult`"))), + 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::SearchUsersResult`")))), } } else { let content = resp.text().await?; @@ -1764,7 +2780,7 @@ pub async fn search_users(configuration: &configuration::Configuration, params: } } -pub async fn set_comment_text(configuration: &configuration::Configuration, params: SetCommentTextParams) -> Result> { +pub async fn set_comment_text(configuration: &configuration::Configuration, params: SetCommentTextParams) -> Result> { let uri_str = format!("{}/comments/{tenantId}/{commentId}/update-text", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1796,8 +2812,8 @@ pub async fn set_comment_text(configuration: &configuration::Configuration, para 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::SetCommentText200Response`"))), - 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::SetCommentText200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PublicApiSetCommentTextResponse`"))), + 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::PublicApiSetCommentTextResponse`")))), } } else { let content = resp.text().await?; @@ -1806,7 +2822,7 @@ pub async fn set_comment_text(configuration: &configuration::Configuration, para } } -pub async fn un_block_comment_public(configuration: &configuration::Configuration, params: UnBlockCommentPublicParams) -> Result> { +pub async fn un_block_comment_public(configuration: &configuration::Configuration, params: UnBlockCommentPublicParams) -> Result> { let uri_str = format!("{}/block-from-comment/{commentId}", configuration.base_path, commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str); @@ -1835,8 +2851,8 @@ pub async fn un_block_comment_public(configuration: &configuration::Configuratio 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::UnBlockCommentPublic200Response`"))), - 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::UnBlockCommentPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UnblockSuccess`"))), + 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::UnblockSuccess`")))), } } else { let content = resp.text().await?; @@ -1845,7 +2861,7 @@ pub async fn un_block_comment_public(configuration: &configuration::Configuratio } } -pub async fn un_lock_comment(configuration: &configuration::Configuration, params: UnLockCommentParams) -> Result> { +pub async fn un_lock_comment(configuration: &configuration::Configuration, params: UnLockCommentParams) -> Result> { let uri_str = format!("{}/comments/{tenantId}/{commentId}/unlock", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1873,8 +2889,8 @@ pub async fn un_lock_comment(configuration: &configuration::Configuration, param 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::LockComment200Response`"))), - 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::LockComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ApiEmptyResponse`"))), + 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::ApiEmptyResponse`")))), } } else { let content = resp.text().await?; @@ -1883,7 +2899,7 @@ pub async fn un_lock_comment(configuration: &configuration::Configuration, param } } -pub async fn un_pin_comment(configuration: &configuration::Configuration, params: UnPinCommentParams) -> Result> { +pub async fn un_pin_comment(configuration: &configuration::Configuration, params: UnPinCommentParams) -> Result> { let uri_str = format!("{}/comments/{tenantId}/{commentId}/unpin", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1911,8 +2927,8 @@ pub async fn un_pin_comment(configuration: &configuration::Configuration, params 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::PinComment200Response`"))), - 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::PinComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ChangeCommentPinStatusResponse`"))), + 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::ChangeCommentPinStatusResponse`")))), } } else { let content = resp.text().await?; @@ -1921,7 +2937,7 @@ pub async fn un_pin_comment(configuration: &configuration::Configuration, params } } -pub async fn update_feed_post_public(configuration: &configuration::Configuration, params: UpdateFeedPostPublicParams) -> Result> { +pub async fn update_feed_post_public(configuration: &configuration::Configuration, params: UpdateFeedPostPublicParams) -> Result> { let uri_str = format!("{}/feed-posts/{tenantId}/{postId}", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), postId=crate::client::apis::urlencode(params.post_id)); let mut req_builder = configuration.client.request(reqwest::Method::PUT, &uri_str); @@ -1952,8 +2968,8 @@ pub async fn update_feed_post_public(configuration: &configuration::Configuratio 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::CreateFeedPostPublic200Response`"))), - 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::CreateFeedPostPublic200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateFeedPostResponse`"))), + 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::CreateFeedPostResponse`")))), } } else { let content = resp.text().await?; @@ -1963,7 +2979,7 @@ pub async fn update_feed_post_public(configuration: &configuration::Configuratio } /// Enable or disable notifications for a specific comment. -pub async fn update_user_notification_comment_subscription_status(configuration: &configuration::Configuration, params: UpdateUserNotificationCommentSubscriptionStatusParams) -> Result> { +pub async fn update_user_notification_comment_subscription_status(configuration: &configuration::Configuration, params: UpdateUserNotificationCommentSubscriptionStatusParams) -> Result> { let uri_str = format!("{}/user-notifications/{notificationId}/mark-opted/{optedInOrOut}", configuration.base_path, notificationId=crate::client::apis::urlencode(params.notification_id), optedInOrOut=crate::client::apis::urlencode(params.opted_in_or_out)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -1992,8 +3008,8 @@ pub async fn update_user_notification_comment_subscription_status(configuration: 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::UpdateUserNotificationStatus200Response`"))), - 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::UpdateUserNotificationStatus200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateUserNotificationCommentSubscriptionStatusResponse`"))), + 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::UpdateUserNotificationCommentSubscriptionStatusResponse`")))), } } else { let content = resp.text().await?; @@ -2003,7 +3019,7 @@ pub async fn update_user_notification_comment_subscription_status(configuration: } /// Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also -pub async fn update_user_notification_page_subscription_status(configuration: &configuration::Configuration, params: UpdateUserNotificationPageSubscriptionStatusParams) -> Result> { +pub async fn update_user_notification_page_subscription_status(configuration: &configuration::Configuration, params: UpdateUserNotificationPageSubscriptionStatusParams) -> Result> { let uri_str = format!("{}/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}", configuration.base_path, subscribedOrUnsubscribed=crate::client::apis::urlencode(params.subscribed_or_unsubscribed)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2034,8 +3050,8 @@ pub async fn update_user_notification_page_subscription_status(configuration: &c 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::UpdateUserNotificationStatus200Response`"))), - 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::UpdateUserNotificationStatus200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateUserNotificationPageSubscriptionStatusResponse`"))), + 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::UpdateUserNotificationPageSubscriptionStatusResponse`")))), } } else { let content = resp.text().await?; @@ -2044,7 +3060,7 @@ pub async fn update_user_notification_page_subscription_status(configuration: &c } } -pub async fn update_user_notification_status(configuration: &configuration::Configuration, params: UpdateUserNotificationStatusParams) -> Result> { +pub async fn update_user_notification_status(configuration: &configuration::Configuration, params: UpdateUserNotificationStatusParams) -> Result> { let uri_str = format!("{}/user-notifications/{notificationId}/mark/{newStatus}", configuration.base_path, notificationId=crate::client::apis::urlencode(params.notification_id), newStatus=crate::client::apis::urlencode(params.new_status)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2072,8 +3088,8 @@ pub async fn update_user_notification_status(configuration: &configuration::Conf 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::UpdateUserNotificationStatus200Response`"))), - 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::UpdateUserNotificationStatus200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateUserNotificationStatusResponse`"))), + 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::UpdateUserNotificationStatusResponse`")))), } } else { let content = resp.text().await?; @@ -2089,7 +3105,7 @@ pub async fn upload_image(configuration: &configuration::Configuration, params: let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); if let Some(ref param_value) = params.size_preset { - req_builder = req_builder.query(&[("sizePreset", &serde_json::to_string(param_value)?)]); + req_builder = req_builder.query(&[("sizePreset", ¶m_value.to_string())]); } if let Some(ref param_value) = params.url_id { req_builder = req_builder.query(&[("urlId", ¶m_value.to_string())]); @@ -2098,7 +3114,11 @@ pub async fn upload_image(configuration: &configuration::Configuration, params: req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); } let mut multipart_form = reqwest::multipart::Form::new(); - multipart_form = multipart_form.file("file", params.file.as_os_str()).await?; + let file = TokioFile::open(¶ms.file).await?; + let stream = FramedRead::new(file, BytesCodec::new()); + let file_name = params.file.file_name().map(|n| n.to_string_lossy().to_string()).unwrap_or_default(); + let file_part = reqwest::multipart::Part::stream(reqwest::Body::wrap_stream(stream)).file_name(file_name); + multipart_form = multipart_form.part("file", file_part); req_builder = req_builder.multipart(multipart_form); let req = req_builder.build()?; @@ -2126,7 +3146,7 @@ pub async fn upload_image(configuration: &configuration::Configuration, params: } } -pub async fn vote_comment(configuration: &configuration::Configuration, params: VoteCommentParams) -> Result> { +pub async fn vote_comment(configuration: &configuration::Configuration, params: VoteCommentParams) -> Result> { let uri_str = format!("{}/comments/{tenantId}/{commentId}/vote", configuration.base_path, tenantId=crate::client::apis::urlencode(params.tenant_id), commentId=crate::client::apis::urlencode(params.comment_id)); let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); @@ -2159,8 +3179,8 @@ pub async fn vote_comment(configuration: &configuration::Configuration, params: 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::VoteComment200Response`"))), - 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::VoteComment200Response`")))), + ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VoteResponse`"))), + 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::VoteResponse`")))), } } else { let content = resp.text().await?; diff --git a/client/src/models/add_domain_config_response.rs b/client/src/models/add_domain_config_response.rs new file mode 100644 index 0000000..86ffe70 --- /dev/null +++ b/client/src/models/add_domain_config_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AddDomainConfigResponse { + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "configuration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub configuration: Option>, +} + +impl AddDomainConfigResponse { + pub fn new(status: Option) -> AddDomainConfigResponse { + AddDomainConfigResponse { + reason: None, + code: None, + status, + configuration: None, + } + } +} + diff --git a/client/src/models/add_domain_config_200_response_any_of.rs b/client/src/models/add_domain_config_response_any_of.rs similarity index 79% rename from client/src/models/add_domain_config_200_response_any_of.rs rename to client/src/models/add_domain_config_response_any_of.rs index de67f37..2cddd59 100644 --- a/client/src/models/add_domain_config_200_response_any_of.rs +++ b/client/src/models/add_domain_config_response_any_of.rs @@ -12,16 +12,16 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddDomainConfig200ResponseAnyOf { +pub struct AddDomainConfigResponseAnyOf { #[serde(rename = "configuration", deserialize_with = "Option::deserialize")] pub configuration: Option, #[serde(rename = "status", deserialize_with = "Option::deserialize")] pub status: Option, } -impl AddDomainConfig200ResponseAnyOf { - pub fn new(configuration: Option, status: Option) -> AddDomainConfig200ResponseAnyOf { - AddDomainConfig200ResponseAnyOf { +impl AddDomainConfigResponseAnyOf { + pub fn new(configuration: Option, status: Option) -> AddDomainConfigResponseAnyOf { + AddDomainConfigResponseAnyOf { configuration, status, } diff --git a/client/src/models/add_hash_tag_200_response.rs b/client/src/models/add_hash_tag_200_response.rs deleted file mode 100644 index 254fb5d..0000000 --- a/client/src/models/add_hash_tag_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddHashTag200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "hashTag")] - pub hash_tag: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl AddHashTag200Response { - pub fn new(status: models::ApiStatus, hash_tag: models::TenantHashTag, reason: String, code: String) -> AddHashTag200Response { - AddHashTag200Response { - status, - hash_tag: Box::new(hash_tag), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/add_hash_tags_bulk_200_response.rs b/client/src/models/add_hash_tags_bulk_200_response.rs deleted file mode 100644 index cd98cc8..0000000 --- a/client/src/models/add_hash_tags_bulk_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddHashTagsBulk200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "results")] - pub results: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl AddHashTagsBulk200Response { - pub fn new(status: models::ApiStatus, results: Vec, reason: String, code: String) -> AddHashTagsBulk200Response { - AddHashTagsBulk200Response { - status, - results, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/adjust_comment_votes_params.rs b/client/src/models/adjust_comment_votes_params.rs new file mode 100644 index 0000000..324070d --- /dev/null +++ b/client/src/models/adjust_comment_votes_params.rs @@ -0,0 +1,27 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AdjustCommentVotesParams { + #[serde(rename = "adjustVoteAmount")] + pub adjust_vote_amount: f64, +} + +impl AdjustCommentVotesParams { + pub fn new(adjust_vote_amount: f64) -> AdjustCommentVotesParams { + AdjustCommentVotesParams { + adjust_vote_amount, + } + } +} + diff --git a/client/src/models/adjust_votes_response.rs b/client/src/models/adjust_votes_response.rs new file mode 100644 index 0000000..06f5eb3 --- /dev/null +++ b/client/src/models/adjust_votes_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AdjustVotesResponse { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "newCommentVotes")] + pub new_comment_votes: i32, +} + +impl AdjustVotesResponse { + pub fn new(status: String, new_comment_votes: i32) -> AdjustVotesResponse { + AdjustVotesResponse { + status, + new_comment_votes, + } + } +} + diff --git a/client/src/models/aggregate_question_results_200_response.rs b/client/src/models/aggregate_question_results_200_response.rs deleted file mode 100644 index cbaf3d5..0000000 --- a/client/src/models/aggregate_question_results_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AggregateQuestionResults200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "data")] - pub data: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl AggregateQuestionResults200Response { - pub fn new(status: models::ApiStatus, data: models::QuestionResultAggregationOverall, reason: String, code: String) -> AggregateQuestionResults200Response { - AggregateQuestionResults200Response { - status, - data: Box::new(data), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/aggregate_response.rs b/client/src/models/aggregate_response.rs new file mode 100644 index 0000000..9593726 --- /dev/null +++ b/client/src/models/aggregate_response.rs @@ -0,0 +1,42 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AggregateResponse { + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "data", skip_serializing_if = "Option::is_none")] + pub data: Option>, + #[serde(rename = "stats", skip_serializing_if = "Option::is_none")] + pub stats: Option>, + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, + #[serde(rename = "validResourceNames", skip_serializing_if = "Option::is_none")] + pub valid_resource_names: Option>, +} + +impl AggregateResponse { + pub fn new(status: models::ApiStatus) -> AggregateResponse { + AggregateResponse { + status, + data: None, + stats: None, + reason: None, + code: None, + valid_resource_names: None, + } + } +} + diff --git a/client/src/models/add_domain_config_200_response.rs b/client/src/models/aggregation_api_error.rs similarity index 50% rename from client/src/models/add_domain_config_200_response.rs rename to client/src/models/aggregation_api_error.rs index 9bae8c7..8174f31 100644 --- a/client/src/models/add_domain_config_200_response.rs +++ b/client/src/models/aggregation_api_error.rs @@ -12,24 +12,24 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddDomainConfig200Response { +pub struct AggregationApiError { + #[serde(rename = "status")] + pub status: models::ApiStatus, #[serde(rename = "reason")] pub reason: String, #[serde(rename = "code")] pub code: String, - #[serde(rename = "status", deserialize_with = "Option::deserialize")] - pub status: Option, - #[serde(rename = "configuration", deserialize_with = "Option::deserialize")] - pub configuration: Option, + #[serde(rename = "validResourceNames", skip_serializing_if = "Option::is_none")] + pub valid_resource_names: Option>, } -impl AddDomainConfig200Response { - pub fn new(reason: String, code: String, status: Option, configuration: Option) -> AddDomainConfig200Response { - AddDomainConfig200Response { +impl AggregationApiError { + pub fn new(status: models::ApiStatus, reason: String, code: String) -> AggregationApiError { + AggregationApiError { + status, reason, code, - status, - configuration, + valid_resource_names: None, } } } diff --git a/client/src/models/api_audit_log.rs b/client/src/models/api_audit_log.rs index 493d636..42106ba 100644 --- a/client/src/models/api_audit_log.rs +++ b/client/src/models/api_audit_log.rs @@ -30,11 +30,11 @@ pub struct ApiAuditLog { #[serde(rename = "ip", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub ip: Option>, #[serde(rename = "when", skip_serializing_if = "Option::is_none")] - pub when: Option, + pub when: Option>, #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, #[serde(rename = "serverStartDate", skip_serializing_if = "Option::is_none")] - pub server_start_date: Option, + pub server_start_date: Option>, /// Construct a type with a set of properties K of type T #[serde(rename = "objectDetails", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub object_details: Option>>, diff --git a/client/src/models/api_ban_user_change_log.rs b/client/src/models/api_ban_user_change_log.rs new file mode 100644 index 0000000..88abab8 --- /dev/null +++ b/client/src/models/api_ban_user_change_log.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiBanUserChangeLog { + #[serde(rename = "createdBannedUserId", skip_serializing_if = "Option::is_none")] + pub created_banned_user_id: Option, + #[serde(rename = "updatedBannedUserId", skip_serializing_if = "Option::is_none")] + pub updated_banned_user_id: Option, + #[serde(rename = "deletedBannedUsers", skip_serializing_if = "Option::is_none")] + pub deleted_banned_users: Option>, + #[serde(rename = "changedValuesBefore", skip_serializing_if = "Option::is_none")] + pub changed_values_before: Option>, +} + +impl ApiBanUserChangeLog { + pub fn new() -> ApiBanUserChangeLog { + ApiBanUserChangeLog { + created_banned_user_id: None, + updated_banned_user_id: None, + deleted_banned_users: None, + changed_values_before: None, + } + } +} + diff --git a/client/src/models/api_ban_user_changed_values.rs b/client/src/models/api_ban_user_changed_values.rs new file mode 100644 index 0000000..3bdf43d --- /dev/null +++ b/client/src/models/api_ban_user_changed_values.rs @@ -0,0 +1,63 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiBanUserChangedValues { + #[serde(rename = "_id", skip_serializing_if = "Option::is_none")] + pub _id: Option, + #[serde(rename = "tenantId", skip_serializing_if = "Option::is_none")] + pub tenant_id: Option, + #[serde(rename = "userId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_id: Option>, + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, + #[serde(rename = "ipHash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ip_hash: Option>, + #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")] + pub created_at: Option>, + #[serde(rename = "bannedByUserId", skip_serializing_if = "Option::is_none")] + pub banned_by_user_id: Option, + #[serde(rename = "bannedCommentText", skip_serializing_if = "Option::is_none")] + pub banned_comment_text: Option, + #[serde(rename = "banType", skip_serializing_if = "Option::is_none")] + pub ban_type: Option, + #[serde(rename = "bannedUntil", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub banned_until: Option>>, + #[serde(rename = "hasEmailWildcard", skip_serializing_if = "Option::is_none")] + pub has_email_wildcard: Option, + #[serde(rename = "banReason", skip_serializing_if = "Option::is_none")] + pub ban_reason: Option, +} + +impl ApiBanUserChangedValues { + pub fn new() -> ApiBanUserChangedValues { + ApiBanUserChangedValues { + _id: None, + tenant_id: None, + user_id: None, + email: None, + username: None, + ip_hash: None, + created_at: None, + banned_by_user_id: None, + banned_comment_text: None, + ban_type: None, + banned_until: None, + has_email_wildcard: None, + ban_reason: None, + } + } +} + diff --git a/client/src/models/api_banned_user.rs b/client/src/models/api_banned_user.rs new file mode 100644 index 0000000..5add0a2 --- /dev/null +++ b/client/src/models/api_banned_user.rs @@ -0,0 +1,63 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiBannedUser { + #[serde(rename = "_id")] + pub _id: String, + #[serde(rename = "tenantId")] + pub tenant_id: String, + #[serde(rename = "userId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_id: Option>, + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, + #[serde(rename = "username", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub username: Option>, + #[serde(rename = "ipHash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ip_hash: Option>, + #[serde(rename = "createdAt")] + pub created_at: chrono::DateTime, + #[serde(rename = "bannedByUserId")] + pub banned_by_user_id: String, + #[serde(rename = "bannedCommentText")] + pub banned_comment_text: String, + #[serde(rename = "banType")] + pub ban_type: String, + #[serde(rename = "bannedUntil", deserialize_with = "Option::deserialize")] + pub banned_until: Option>, + #[serde(rename = "hasEmailWildcard")] + pub has_email_wildcard: bool, + #[serde(rename = "banReason", skip_serializing_if = "Option::is_none")] + pub ban_reason: Option, +} + +impl ApiBannedUser { + pub fn new(_id: String, tenant_id: String, created_at: chrono::DateTime, banned_by_user_id: String, banned_comment_text: String, ban_type: String, banned_until: Option>, has_email_wildcard: bool) -> ApiBannedUser { + ApiBannedUser { + _id, + tenant_id, + user_id: None, + email: None, + username: None, + ip_hash: None, + created_at, + banned_by_user_id, + banned_comment_text, + ban_type, + banned_until, + has_email_wildcard, + ban_reason: None, + } + } +} + diff --git a/client/src/models/api_banned_user_with_multi_match_info.rs b/client/src/models/api_banned_user_with_multi_match_info.rs new file mode 100644 index 0000000..c7cd7db --- /dev/null +++ b/client/src/models/api_banned_user_with_multi_match_info.rs @@ -0,0 +1,51 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiBannedUserWithMultiMatchInfo { + #[serde(rename = "_id")] + pub _id: String, + #[serde(rename = "userId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_id: Option>, + #[serde(rename = "banType")] + pub ban_type: String, + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, + #[serde(rename = "ipHash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ip_hash: Option>, + #[serde(rename = "bannedUntil", deserialize_with = "Option::deserialize")] + pub banned_until: Option>, + #[serde(rename = "hasEmailWildcard")] + pub has_email_wildcard: bool, + #[serde(rename = "banReason", skip_serializing_if = "Option::is_none")] + pub ban_reason: Option, + #[serde(rename = "matches")] + pub matches: Vec, +} + +impl ApiBannedUserWithMultiMatchInfo { + pub fn new(_id: String, ban_type: String, banned_until: Option>, has_email_wildcard: bool, matches: Vec) -> ApiBannedUserWithMultiMatchInfo { + ApiBannedUserWithMultiMatchInfo { + _id, + user_id: None, + ban_type, + email: None, + ip_hash: None, + banned_until, + has_email_wildcard, + ban_reason: None, + matches, + } + } +} + diff --git a/client/src/models/api_comment.rs b/client/src/models/api_comment.rs index 55ec46f..0f78b40 100644 --- a/client/src/models/api_comment.rs +++ b/client/src/models/api_comment.rs @@ -13,8 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ApiComment { - #[serde(rename = "_id")] - pub _id: String, + #[serde(rename = "id")] + pub id: String, #[serde(rename = "aiDeterminedSpam", skip_serializing_if = "Option::is_none")] pub ai_determined_spam: Option, #[serde(rename = "anonUserId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -46,7 +46,7 @@ pub struct ApiComment { #[serde(rename = "externalParentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub external_parent_id: Option>, #[serde(rename = "expireAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub expire_at: Option>, + pub expire_at: Option>>, #[serde(rename = "feedbackIds", skip_serializing_if = "Option::is_none")] pub feedback_ids: Option>, #[serde(rename = "flagCount", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -112,7 +112,7 @@ pub struct ApiComment { #[serde(rename = "verified")] pub verified: bool, #[serde(rename = "verifiedDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub verified_date: Option>, + pub verified_date: Option>>, #[serde(rename = "votes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub votes: Option>, #[serde(rename = "votesDown", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -122,9 +122,9 @@ pub struct ApiComment { } impl ApiComment { - pub fn new(_id: String, approved: bool, comment: String, comment_html: String, commenter_name: String, date: Option, locale: Option, tenant_id: String, url: String, url_id: String, verified: bool) -> ApiComment { + pub fn new(id: String, approved: bool, comment: String, comment_html: String, commenter_name: String, date: Option, locale: Option, tenant_id: String, url: String, url_id: String, verified: bool) -> ApiComment { ApiComment { - _id, + id, ai_determined_spam: None, anon_user_id: None, approved, diff --git a/client/src/models/api_comment_base.rs b/client/src/models/api_comment_base.rs index d1dde3a..f82b15b 100644 --- a/client/src/models/api_comment_base.rs +++ b/client/src/models/api_comment_base.rs @@ -13,8 +13,8 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ApiCommentBase { - #[serde(rename = "_id")] - pub _id: String, + #[serde(rename = "id")] + pub id: String, #[serde(rename = "aiDeterminedSpam", skip_serializing_if = "Option::is_none")] pub ai_determined_spam: Option, #[serde(rename = "anonUserId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -36,7 +36,7 @@ pub struct ApiCommentBase { #[serde(rename = "commenterName")] pub commenter_name: String, #[serde(rename = "date", deserialize_with = "Option::deserialize")] - pub date: Option, + pub date: Option>, #[serde(rename = "displayLabel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub display_label: Option>, #[serde(rename = "domain", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -46,7 +46,7 @@ pub struct ApiCommentBase { #[serde(rename = "externalParentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub external_parent_id: Option>, #[serde(rename = "expireAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub expire_at: Option>, + pub expire_at: Option>>, #[serde(rename = "feedbackIds", skip_serializing_if = "Option::is_none")] pub feedback_ids: Option>, #[serde(rename = "flagCount", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -112,7 +112,7 @@ pub struct ApiCommentBase { #[serde(rename = "verified")] pub verified: bool, #[serde(rename = "verifiedDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub verified_date: Option>, + pub verified_date: Option>>, #[serde(rename = "votes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub votes: Option>, #[serde(rename = "votesDown", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -122,9 +122,9 @@ pub struct ApiCommentBase { } impl ApiCommentBase { - pub fn new(_id: String, approved: bool, comment: String, comment_html: String, commenter_name: String, date: Option, locale: Option, tenant_id: String, url: String, url_id: String, verified: bool) -> ApiCommentBase { + pub fn new(id: String, approved: bool, comment: String, comment_html: String, commenter_name: String, date: Option>, locale: Option, tenant_id: String, url: String, url_id: String, verified: bool) -> ApiCommentBase { ApiCommentBase { - _id, + id, ai_determined_spam: None, anon_user_id: None, approved, diff --git a/client/src/models/api_comment_common_banned_user.rs b/client/src/models/api_comment_common_banned_user.rs new file mode 100644 index 0000000..65c0220 --- /dev/null +++ b/client/src/models/api_comment_common_banned_user.rs @@ -0,0 +1,48 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiCommentCommonBannedUser { + #[serde(rename = "_id")] + pub _id: String, + #[serde(rename = "userId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_id: Option>, + #[serde(rename = "banType")] + pub ban_type: String, + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, + #[serde(rename = "ipHash", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub ip_hash: Option>, + #[serde(rename = "bannedUntil", deserialize_with = "Option::deserialize")] + pub banned_until: Option>, + #[serde(rename = "hasEmailWildcard")] + pub has_email_wildcard: bool, + #[serde(rename = "banReason", skip_serializing_if = "Option::is_none")] + pub ban_reason: Option, +} + +impl ApiCommentCommonBannedUser { + pub fn new(_id: String, ban_type: String, banned_until: Option>, has_email_wildcard: bool) -> ApiCommentCommonBannedUser { + ApiCommentCommonBannedUser { + _id, + user_id: None, + ban_type, + email: None, + ip_hash: None, + banned_until, + has_email_wildcard, + ban_reason: None, + } + } +} + diff --git a/client/src/models/api_domain_configuration.rs b/client/src/models/api_domain_configuration.rs index 157412a..ad120fd 100644 --- a/client/src/models/api_domain_configuration.rs +++ b/client/src/models/api_domain_configuration.rs @@ -31,9 +31,9 @@ pub struct ApiDomainConfiguration { #[serde(rename = "wpURL", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub wp_url: Option>, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "autoAddedDate", skip_serializing_if = "Option::is_none")] - pub auto_added_date: Option, + pub auto_added_date: Option>, #[serde(rename = "siteType", skip_serializing_if = "Option::is_none")] pub site_type: Option, #[serde(rename = "logoSrc", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -47,7 +47,7 @@ pub struct ApiDomainConfiguration { } impl ApiDomainConfiguration { - pub fn new(id: String, domain: String, created_at: String) -> ApiDomainConfiguration { + pub fn new(id: String, domain: String, created_at: chrono::DateTime) -> ApiDomainConfiguration { ApiDomainConfiguration { id, domain, diff --git a/client/src/models/api_moderate_get_user_ban_preferences_response.rs b/client/src/models/api_moderate_get_user_ban_preferences_response.rs new file mode 100644 index 0000000..7c6437a --- /dev/null +++ b/client/src/models/api_moderate_get_user_ban_preferences_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiModerateGetUserBanPreferencesResponse { + #[serde(rename = "preferences", deserialize_with = "Option::deserialize")] + pub preferences: Option>, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ApiModerateGetUserBanPreferencesResponse { + pub fn new(preferences: Option, status: models::ApiStatus) -> ApiModerateGetUserBanPreferencesResponse { + ApiModerateGetUserBanPreferencesResponse { + preferences: if let Some(x) = preferences {Some(Box::new(x))} else {None}, + status, + } + } +} + diff --git a/client/src/models/api_moderate_user_ban_preferences.rs b/client/src/models/api_moderate_user_ban_preferences.rs new file mode 100644 index 0000000..e59c50d --- /dev/null +++ b/client/src/models/api_moderate_user_ban_preferences.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ApiModerateUserBanPreferences { + #[serde(rename = "shouldBanEmail")] + pub should_ban_email: bool, + #[serde(rename = "shouldBanByIP")] + pub should_ban_by_ip: bool, + #[serde(rename = "lastBanType")] + pub last_ban_type: String, + #[serde(rename = "lastBanDuration")] + pub last_ban_duration: String, +} + +impl ApiModerateUserBanPreferences { + pub fn new(should_ban_email: bool, should_ban_by_ip: bool, last_ban_type: String, last_ban_duration: String) -> ApiModerateUserBanPreferences { + ApiModerateUserBanPreferences { + should_ban_email, + should_ban_by_ip, + last_ban_type, + last_ban_duration, + } + } +} + diff --git a/client/src/models/api_page.rs b/client/src/models/api_page.rs index 452843c..9b5d6f7 100644 --- a/client/src/models/api_page.rs +++ b/client/src/models/api_page.rs @@ -22,7 +22,7 @@ pub struct ApiPage { #[serde(rename = "commentCount")] pub comment_count: i64, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "title")] pub title: String, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] @@ -34,7 +34,7 @@ pub struct ApiPage { } impl ApiPage { - pub fn new(root_comment_count: i64, comment_count: i64, created_at: String, title: String, url_id: String, id: String) -> ApiPage { + pub fn new(root_comment_count: i64, comment_count: i64, created_at: chrono::DateTime, title: String, url_id: String, id: String) -> ApiPage { ApiPage { is_closed: None, accessible_by_group_ids: None, diff --git a/client/src/models/save_comment_response.rs b/client/src/models/api_save_comment_response.rs similarity index 78% rename from client/src/models/save_comment_response.rs rename to client/src/models/api_save_comment_response.rs index 677af42..60e345a 100644 --- a/client/src/models/save_comment_response.rs +++ b/client/src/models/api_save_comment_response.rs @@ -12,11 +12,11 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SaveCommentResponse { +pub struct ApiSaveCommentResponse { #[serde(rename = "status")] pub status: models::ApiStatus, #[serde(rename = "comment")] - pub comment: Box, + pub comment: Box, #[serde(rename = "user", deserialize_with = "Option::deserialize")] pub user: Option>, /// Construct a type with a set of properties K of type T @@ -24,9 +24,9 @@ pub struct SaveCommentResponse { pub module_data: Option>, } -impl SaveCommentResponse { - pub fn new(status: models::ApiStatus, comment: models::FComment, user: Option) -> SaveCommentResponse { - SaveCommentResponse { +impl ApiSaveCommentResponse { + pub fn new(status: models::ApiStatus, comment: models::ApiComment, user: Option) -> ApiSaveCommentResponse { + ApiSaveCommentResponse { status, comment: Box::new(comment), user: if let Some(x) = user {Some(Box::new(x))} else {None}, diff --git a/client/src/models/api_tenant.rs b/client/src/models/api_tenant.rs index 0c53c40..c94efe4 100644 --- a/client/src/models/api_tenant.rs +++ b/client/src/models/api_tenant.rs @@ -48,7 +48,7 @@ pub struct ApiTenant { #[serde(rename = "enableSpamFilter")] pub enable_spam_filter: bool, #[serde(rename = "lastBillingIssueReminderDate", skip_serializing_if = "Option::is_none")] - pub last_billing_issue_reminder_date: Option, + pub last_billing_issue_reminder_date: Option>, #[serde(rename = "removeUnverifiedComments", skip_serializing_if = "Option::is_none")] pub remove_unverified_comments: Option, #[serde(rename = "unverifiedCommentsTTLms", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] diff --git a/client/src/models/api_tenant_daily_usage.rs b/client/src/models/api_tenant_daily_usage.rs index b12d4dd..0d846e2 100644 --- a/client/src/models/api_tenant_daily_usage.rs +++ b/client/src/models/api_tenant_daily_usage.rs @@ -44,7 +44,7 @@ pub struct ApiTenantDailyUsage { #[serde(rename = "apiCreditsUsed")] pub api_credits_used: f64, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "billed")] pub billed: bool, #[serde(rename = "ignored")] @@ -54,7 +54,7 @@ pub struct ApiTenantDailyUsage { } impl ApiTenantDailyUsage { - pub fn new(id: String, tenant_id: String, year_number: f64, month_number: f64, day_number: f64, comment_fetch_count: f64, comment_create_count: f64, conversation_create_count: f64, vote_count: f64, account_created_count: f64, user_mention_search: f64, hash_tag_search: f64, gif_search_trending: f64, gif_search: f64, api_credits_used: f64, created_at: String, billed: bool, ignored: bool, api_error_count: f64) -> ApiTenantDailyUsage { + pub fn new(id: String, tenant_id: String, year_number: f64, month_number: f64, day_number: f64, comment_fetch_count: f64, comment_create_count: f64, conversation_create_count: f64, vote_count: f64, account_created_count: f64, user_mention_search: f64, hash_tag_search: f64, gif_search_trending: f64, gif_search: f64, api_credits_used: f64, created_at: chrono::DateTime, billed: bool, ignored: bool, api_error_count: f64) -> ApiTenantDailyUsage { ApiTenantDailyUsage { id, tenant_id, diff --git a/client/src/models/api_user_subscription.rs b/client/src/models/api_user_subscription.rs index 057385e..a8da769 100644 --- a/client/src/models/api_user_subscription.rs +++ b/client/src/models/api_user_subscription.rs @@ -16,7 +16,7 @@ pub struct ApiUserSubscription { #[serde(rename = "notificationFrequency", skip_serializing_if = "Option::is_none")] pub notification_frequency: Option, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "pageTitle", skip_serializing_if = "Option::is_none")] pub page_title: Option, #[serde(rename = "url", skip_serializing_if = "Option::is_none")] @@ -32,7 +32,7 @@ pub struct ApiUserSubscription { } impl ApiUserSubscription { - pub fn new(created_at: String, url_id: String, id: String) -> ApiUserSubscription { + pub fn new(created_at: chrono::DateTime, url_id: String, id: String) -> ApiUserSubscription { ApiUserSubscription { notification_frequency: None, created_at, diff --git a/client/src/models/award_user_badge_response.rs b/client/src/models/award_user_badge_response.rs new file mode 100644 index 0000000..702cb18 --- /dev/null +++ b/client/src/models/award_user_badge_response.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct AwardUserBadgeResponse { + #[serde(rename = "notes", skip_serializing_if = "Option::is_none")] + pub notes: Option>, + #[serde(rename = "badges", skip_serializing_if = "Option::is_none")] + pub badges: Option>, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl AwardUserBadgeResponse { + pub fn new(status: models::ApiStatus) -> AwardUserBadgeResponse { + AwardUserBadgeResponse { + notes: None, + badges: None, + status, + } + } +} + diff --git a/client/src/models/ban_user_from_comment_result.rs b/client/src/models/ban_user_from_comment_result.rs new file mode 100644 index 0000000..6026dfa --- /dev/null +++ b/client/src/models/ban_user_from_comment_result.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BanUserFromCommentResult { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "changelog", skip_serializing_if = "Option::is_none")] + pub changelog: Option>, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, +} + +impl BanUserFromCommentResult { + pub fn new(status: String) -> BanUserFromCommentResult { + BanUserFromCommentResult { + status, + changelog: None, + code: None, + reason: None, + } + } +} + diff --git a/client/src/models/ban_user_undo_params.rs b/client/src/models/ban_user_undo_params.rs new file mode 100644 index 0000000..6f6214c --- /dev/null +++ b/client/src/models/ban_user_undo_params.rs @@ -0,0 +1,27 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BanUserUndoParams { + #[serde(rename = "changelog")] + pub changelog: Box, +} + +impl BanUserUndoParams { + pub fn new(changelog: models::ApiBanUserChangeLog) -> BanUserUndoParams { + BanUserUndoParams { + changelog: Box::new(changelog), + } + } +} + diff --git a/client/src/models/banned_user_match.rs b/client/src/models/banned_user_match.rs new file mode 100644 index 0000000..7221675 --- /dev/null +++ b/client/src/models/banned_user_match.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BannedUserMatch { + #[serde(rename = "matchedOn")] + pub matched_on: models::BannedUserMatchType, + #[serde(rename = "matchedOnValue", deserialize_with = "Option::deserialize")] + pub matched_on_value: Option>, +} + +impl BannedUserMatch { + pub fn new(matched_on: models::BannedUserMatchType, matched_on_value: Option) -> BannedUserMatch { + BannedUserMatch { + matched_on, + matched_on_value: if let Some(x) = matched_on_value {Some(Box::new(x))} else {None}, + } + } +} + diff --git a/client/src/models/record_string_string_or_number__value.rs b/client/src/models/banned_user_match_matched_on_value.rs similarity index 68% rename from client/src/models/record_string_string_or_number__value.rs rename to client/src/models/banned_user_match_matched_on_value.rs index 4f75689..0d8e1b5 100644 --- a/client/src/models/record_string_string_or_number__value.rs +++ b/client/src/models/banned_user_match_matched_on_value.rs @@ -12,12 +12,12 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecordStringStringOrNumberValue { +pub struct BannedUserMatchMatchedOnValue { } -impl RecordStringStringOrNumberValue { - pub fn new() -> RecordStringStringOrNumberValue { - RecordStringStringOrNumberValue { +impl BannedUserMatchMatchedOnValue { + pub fn new() -> BannedUserMatchMatchedOnValue { + BannedUserMatchMatchedOnValue { } } } diff --git a/client/src/models/banned_user_match_type.rs b/client/src/models/banned_user_match_type.rs new file mode 100644 index 0000000..4123cf4 --- /dev/null +++ b/client/src/models/banned_user_match_type.rs @@ -0,0 +1,44 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum BannedUserMatchType { + #[serde(rename = "userId")] + UserId, + #[serde(rename = "email")] + Email, + #[serde(rename = "email-wildcard")] + EmailWildcard, + #[serde(rename = "IP")] + Ip, + +} + +impl std::fmt::Display for BannedUserMatchType { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::UserId => write!(f, "userId"), + Self::Email => write!(f, "email"), + Self::EmailWildcard => write!(f, "email-wildcard"), + Self::Ip => write!(f, "IP"), + } + } +} + +impl Default for BannedUserMatchType { + fn default() -> BannedUserMatchType { + Self::UserId + } +} + diff --git a/client/src/models/block_from_comment_public_200_response.rs b/client/src/models/block_from_comment_public_200_response.rs deleted file mode 100644 index 8936520..0000000 --- a/client/src/models/block_from_comment_public_200_response.rs +++ /dev/null @@ -1,52 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct BlockFromCommentPublic200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - /// Construct a type with a set of properties K of type T - #[serde(rename = "commentStatuses")] - pub comment_statuses: std::collections::HashMap, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl BlockFromCommentPublic200Response { - pub fn new(status: models::ApiStatus, comment_statuses: std::collections::HashMap, reason: String, code: String) -> BlockFromCommentPublic200Response { - BlockFromCommentPublic200Response { - status, - comment_statuses, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/build_moderation_filter_params.rs b/client/src/models/build_moderation_filter_params.rs new file mode 100644 index 0000000..5c73551 --- /dev/null +++ b/client/src/models/build_moderation_filter_params.rs @@ -0,0 +1,39 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BuildModerationFilterParams { + #[serde(rename = "userId")] + pub user_id: String, + #[serde(rename = "tenantId")] + pub tenant_id: String, + #[serde(rename = "filters", skip_serializing_if = "Option::is_none")] + pub filters: Option, + #[serde(rename = "searchFilters", skip_serializing_if = "Option::is_none")] + pub search_filters: Option, + #[serde(rename = "textSearch", skip_serializing_if = "Option::is_none")] + pub text_search: Option, +} + +impl BuildModerationFilterParams { + pub fn new(user_id: String, tenant_id: String) -> BuildModerationFilterParams { + BuildModerationFilterParams { + user_id, + tenant_id, + filters: None, + search_filters: None, + text_search: None, + } + } +} + diff --git a/client/src/models/build_moderation_filter_response.rs b/client/src/models/build_moderation_filter_response.rs new file mode 100644 index 0000000..9862c27 --- /dev/null +++ b/client/src/models/build_moderation_filter_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BuildModerationFilterResponse { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "moderationFilter")] + pub moderation_filter: Box, +} + +impl BuildModerationFilterResponse { + pub fn new(status: String, moderation_filter: models::ModerationFilter) -> BuildModerationFilterResponse { + BuildModerationFilterResponse { + status, + moderation_filter: Box::new(moderation_filter), + } + } +} + diff --git a/client/src/models/bulk_aggregate_question_item.rs b/client/src/models/bulk_aggregate_question_item.rs index e3624f3..2edcd51 100644 --- a/client/src/models/bulk_aggregate_question_item.rs +++ b/client/src/models/bulk_aggregate_question_item.rs @@ -24,7 +24,7 @@ pub struct BulkAggregateQuestionItem { #[serde(rename = "timeBucket", skip_serializing_if = "Option::is_none")] pub time_bucket: Option, #[serde(rename = "startDate", skip_serializing_if = "Option::is_none")] - pub start_date: Option, + pub start_date: Option>, } impl BulkAggregateQuestionItem { diff --git a/client/src/models/bulk_aggregate_question_results_200_response.rs b/client/src/models/bulk_aggregate_question_results_200_response.rs deleted file mode 100644 index d69bfbf..0000000 --- a/client/src/models/bulk_aggregate_question_results_200_response.rs +++ /dev/null @@ -1,52 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct BulkAggregateQuestionResults200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - /// Construct a type with a set of properties K of type T - #[serde(rename = "data")] - pub data: std::collections::HashMap, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl BulkAggregateQuestionResults200Response { - pub fn new(status: models::ApiStatus, data: std::collections::HashMap, reason: String, code: String) -> BulkAggregateQuestionResults200Response { - BulkAggregateQuestionResults200Response { - status, - data, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/bulk_create_hash_tags_response.rs b/client/src/models/bulk_create_hash_tags_response.rs index b4b5ab1..cf2dde6 100644 --- a/client/src/models/bulk_create_hash_tags_response.rs +++ b/client/src/models/bulk_create_hash_tags_response.rs @@ -16,11 +16,11 @@ pub struct BulkCreateHashTagsResponse { #[serde(rename = "status")] pub status: models::ApiStatus, #[serde(rename = "results")] - pub results: Vec, + pub results: Vec, } impl BulkCreateHashTagsResponse { - pub fn new(status: models::ApiStatus, results: Vec) -> BulkCreateHashTagsResponse { + pub fn new(status: models::ApiStatus, results: Vec) -> BulkCreateHashTagsResponse { BulkCreateHashTagsResponse { status, results, diff --git a/client/src/models/delete_comment_public_200_response.rs b/client/src/models/bulk_create_hash_tags_response_results_inner.rs similarity index 66% rename from client/src/models/delete_comment_public_200_response.rs rename to client/src/models/bulk_create_hash_tags_response_results_inner.rs index b1f7731..3d1b17e 100644 --- a/client/src/models/delete_comment_public_200_response.rs +++ b/client/src/models/bulk_create_hash_tags_response_results_inner.rs @@ -12,17 +12,15 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeleteCommentPublic200Response { - #[serde(rename = "comment", skip_serializing_if = "Option::is_none")] - pub comment: Option>, - #[serde(rename = "hardRemoved")] - pub hard_removed: bool, +pub struct BulkCreateHashTagsResponseResultsInner { #[serde(rename = "status")] pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, + #[serde(rename = "hashTag", skip_serializing_if = "Option::is_none")] + pub hash_tag: Option>, + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] pub secondary_code: Option, #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] @@ -35,14 +33,13 @@ pub struct DeleteCommentPublic200Response { pub custom_config: Option>, } -impl DeleteCommentPublic200Response { - pub fn new(hard_removed: bool, status: models::ApiStatus, reason: String, code: String) -> DeleteCommentPublic200Response { - DeleteCommentPublic200Response { - comment: None, - hard_removed, +impl BulkCreateHashTagsResponseResultsInner { + pub fn new(status: models::ApiStatus) -> BulkCreateHashTagsResponseResultsInner { + BulkCreateHashTagsResponseResultsInner { status, - reason, - code, + hash_tag: None, + reason: None, + code: None, secondary_code: None, banned_until: None, max_character_length: None, diff --git a/client/src/models/bulk_pre_ban_params.rs b/client/src/models/bulk_pre_ban_params.rs new file mode 100644 index 0000000..a772ed1 --- /dev/null +++ b/client/src/models/bulk_pre_ban_params.rs @@ -0,0 +1,27 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BulkPreBanParams { + #[serde(rename = "commentIds")] + pub comment_ids: Vec, +} + +impl BulkPreBanParams { + pub fn new(comment_ids: Vec) -> BulkPreBanParams { + BulkPreBanParams { + comment_ids, + } + } +} + diff --git a/client/src/models/bulk_pre_ban_summary.rs b/client/src/models/bulk_pre_ban_summary.rs new file mode 100644 index 0000000..617a0c5 --- /dev/null +++ b/client/src/models/bulk_pre_ban_summary.rs @@ -0,0 +1,42 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct BulkPreBanSummary { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "totalRelatedCommentCount")] + pub total_related_comment_count: i32, + #[serde(rename = "emailDomains")] + pub email_domains: Vec, + #[serde(rename = "emails")] + pub emails: Vec, + #[serde(rename = "userIds")] + pub user_ids: Vec, + #[serde(rename = "ipHashes")] + pub ip_hashes: Vec, +} + +impl BulkPreBanSummary { + pub fn new(status: String, total_related_comment_count: i32, email_domains: Vec, emails: Vec, user_ids: Vec, ip_hashes: Vec) -> BulkPreBanSummary { + BulkPreBanSummary { + status, + total_related_comment_count, + email_domains, + emails, + user_ids, + ip_hashes, + } + } +} + diff --git a/client/src/models/change_ticket_state_200_response.rs b/client/src/models/change_ticket_state_200_response.rs deleted file mode 100644 index 8f70901..0000000 --- a/client/src/models/change_ticket_state_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ChangeTicketState200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "ticket")] - pub ticket: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl ChangeTicketState200Response { - pub fn new(status: models::ApiStatus, ticket: models::ApiTicket, reason: String, code: String) -> ChangeTicketState200Response { - ChangeTicketState200Response { - status, - ticket: Box::new(ticket), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/checked_comments_for_blocked_200_response.rs b/client/src/models/checked_comments_for_blocked_200_response.rs deleted file mode 100644 index 3c2e489..0000000 --- a/client/src/models/checked_comments_for_blocked_200_response.rs +++ /dev/null @@ -1,52 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CheckedCommentsForBlocked200Response { - /// Construct a type with a set of properties K of type T - #[serde(rename = "commentStatuses")] - pub comment_statuses: std::collections::HashMap, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CheckedCommentsForBlocked200Response { - pub fn new(comment_statuses: std::collections::HashMap, status: models::ApiStatus, reason: String, code: String) -> CheckedCommentsForBlocked200Response { - CheckedCommentsForBlocked200Response { - comment_statuses, - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/combine_comments_with_question_results_200_response.rs b/client/src/models/combine_comments_with_question_results_200_response.rs deleted file mode 100644 index c5678e0..0000000 --- a/client/src/models/combine_comments_with_question_results_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CombineCommentsWithQuestionResults200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "data")] - pub data: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CombineCommentsWithQuestionResults200Response { - pub fn new(status: models::ApiStatus, data: models::FindCommentsByRangeResponse, reason: String, code: String) -> CombineCommentsWithQuestionResults200Response { - CombineCommentsWithQuestionResults200Response { - status, - data: Box::new(data), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/comment_data.rs b/client/src/models/comment_data.rs index 87987c2..51a627b 100644 --- a/client/src/models/comment_data.rs +++ b/client/src/models/comment_data.rs @@ -61,9 +61,11 @@ pub struct CommentData { pub feedback_ids: Option>, /// Construct a type with a set of properties K of type T #[serde(rename = "questionValues", skip_serializing_if = "Option::is_none")] - pub question_values: Option>, + pub question_values: Option>, #[serde(rename = "tos", skip_serializing_if = "Option::is_none")] pub tos: Option, + #[serde(rename = "botId", skip_serializing_if = "Option::is_none")] + pub bot_id: Option, } impl CommentData { @@ -94,6 +96,7 @@ impl CommentData { feedback_ids: None, question_values: None, tos: None, + bot_id: None, } } } diff --git a/client/src/models/comment_log_data.rs b/client/src/models/comment_log_data.rs index 9f63aff..a33dc7a 100644 --- a/client/src/models/comment_log_data.rs +++ b/client/src/models/comment_log_data.rs @@ -43,6 +43,8 @@ pub struct CommentLogData { pub engine_tokens: Option, #[serde(rename = "trustFactor", skip_serializing_if = "Option::is_none")] pub trust_factor: Option, + #[serde(rename = "source", skip_serializing_if = "Option::is_none")] + pub source: Option, #[serde(rename = "rule", skip_serializing_if = "Option::is_none")] pub rule: Option>, #[serde(rename = "userId", skip_serializing_if = "Option::is_none")] @@ -88,9 +90,9 @@ pub struct CommentLogData { #[serde(rename = "textAfter", skip_serializing_if = "Option::is_none")] pub text_after: Option, #[serde(rename = "expireBefore", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub expire_before: Option>, + pub expire_before: Option>>, #[serde(rename = "expireAfter", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub expire_after: Option>, + pub expire_after: Option>>, #[serde(rename = "flagCountBefore", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub flag_count_before: Option>, #[serde(rename = "trustFactorBefore", skip_serializing_if = "Option::is_none")] @@ -125,6 +127,7 @@ impl CommentLogData { engine_response: None, engine_tokens: None, trust_factor: None, + source: None, rule: None, user_id: None, subscribers: None, diff --git a/client/src/models/comment_log_entry.rs b/client/src/models/comment_log_entry.rs index d7c245e..df69a2c 100644 --- a/client/src/models/comment_log_entry.rs +++ b/client/src/models/comment_log_entry.rs @@ -14,7 +14,7 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CommentLogEntry { #[serde(rename = "d")] - pub d: String, + pub d: chrono::DateTime, #[serde(rename = "t")] pub t: models::CommentLogType, #[serde(rename = "da", skip_serializing_if = "Option::is_none")] @@ -22,7 +22,7 @@ pub struct CommentLogEntry { } impl CommentLogEntry { - pub fn new(d: String, t: models::CommentLogType) -> CommentLogEntry { + pub fn new(d: chrono::DateTime, t: models::CommentLogType) -> CommentLogEntry { CommentLogEntry { d, t, diff --git a/client/src/models/comments_by_ids_params.rs b/client/src/models/comments_by_ids_params.rs new file mode 100644 index 0000000..4d2a86b --- /dev/null +++ b/client/src/models/comments_by_ids_params.rs @@ -0,0 +1,27 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CommentsByIdsParams { + #[serde(rename = "ids")] + pub ids: Vec, +} + +impl CommentsByIdsParams { + pub fn new(ids: Vec) -> CommentsByIdsParams { + CommentsByIdsParams { + ids, + } + } +} + diff --git a/client/src/models/create_comment_params.rs b/client/src/models/create_comment_params.rs index 07200ce..2533443 100644 --- a/client/src/models/create_comment_params.rs +++ b/client/src/models/create_comment_params.rs @@ -61,9 +61,11 @@ pub struct CreateCommentParams { pub feedback_ids: Option>, /// Construct a type with a set of properties K of type T #[serde(rename = "questionValues", skip_serializing_if = "Option::is_none")] - pub question_values: Option>, + pub question_values: Option>, #[serde(rename = "tos", skip_serializing_if = "Option::is_none")] pub tos: Option, + #[serde(rename = "botId", skip_serializing_if = "Option::is_none")] + pub bot_id: Option, #[serde(rename = "approved", skip_serializing_if = "Option::is_none")] pub approved: Option, #[serde(rename = "domain", skip_serializing_if = "Option::is_none")] @@ -115,6 +117,7 @@ impl CreateCommentParams { feedback_ids: None, question_values: None, tos: None, + bot_id: None, approved: None, domain: None, ip: None, diff --git a/client/src/models/create_comment_public_200_response.rs b/client/src/models/create_comment_public_200_response.rs deleted file mode 100644 index b22e52c..0000000 --- a/client/src/models/create_comment_public_200_response.rs +++ /dev/null @@ -1,61 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateCommentPublic200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "comment")] - pub comment: Box, - #[serde(rename = "user", deserialize_with = "Option::deserialize")] - pub user: Option>, - /// Construct a type with a set of properties K of type T - #[serde(rename = "moduleData", skip_serializing_if = "Option::is_none")] - pub module_data: Option>, - #[serde(rename = "userIdWS", skip_serializing_if = "Option::is_none")] - pub user_id_ws: Option, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateCommentPublic200Response { - pub fn new(status: models::ApiStatus, comment: models::PublicComment, user: Option, reason: String, code: String) -> CreateCommentPublic200Response { - CreateCommentPublic200Response { - status, - comment: Box::new(comment), - user: if let Some(x) = user {Some(Box::new(x))} else {None}, - module_data: None, - user_id_ws: None, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_email_template_200_response.rs b/client/src/models/create_email_template_200_response.rs deleted file mode 100644 index 6860f79..0000000 --- a/client/src/models/create_email_template_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateEmailTemplate200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "emailTemplate")] - pub email_template: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateEmailTemplate200Response { - pub fn new(status: models::ApiStatus, email_template: models::CustomEmailTemplate, reason: String, code: String) -> CreateEmailTemplate200Response { - CreateEmailTemplate200Response { - status, - email_template: Box::new(email_template), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_feed_post_200_response.rs b/client/src/models/create_feed_post_200_response.rs deleted file mode 100644 index 06171cb..0000000 --- a/client/src/models/create_feed_post_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateFeedPost200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "feedPost")] - pub feed_post: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateFeedPost200Response { - pub fn new(status: models::ApiStatus, feed_post: models::FeedPost, reason: String, code: String) -> CreateFeedPost200Response { - CreateFeedPost200Response { - status, - feed_post: Box::new(feed_post), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_feed_post_public_200_response.rs b/client/src/models/create_feed_post_public_200_response.rs deleted file mode 100644 index e43f48c..0000000 --- a/client/src/models/create_feed_post_public_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateFeedPostPublic200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "feedPost")] - pub feed_post: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateFeedPostPublic200Response { - pub fn new(status: models::ApiStatus, feed_post: models::FeedPost, reason: String, code: String) -> CreateFeedPostPublic200Response { - CreateFeedPostPublic200Response { - status, - feed_post: Box::new(feed_post), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_moderator_200_response.rs b/client/src/models/create_moderator_200_response.rs deleted file mode 100644 index 6ace492..0000000 --- a/client/src/models/create_moderator_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateModerator200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "moderator")] - pub moderator: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateModerator200Response { - pub fn new(status: models::ApiStatus, moderator: models::Moderator, reason: String, code: String) -> CreateModerator200Response { - CreateModerator200Response { - status, - moderator: Box::new(moderator), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_question_config_200_response.rs b/client/src/models/create_question_config_200_response.rs deleted file mode 100644 index 4d26c9b..0000000 --- a/client/src/models/create_question_config_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateQuestionConfig200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "questionConfig")] - pub question_config: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateQuestionConfig200Response { - pub fn new(status: models::ApiStatus, question_config: models::QuestionConfig, reason: String, code: String) -> CreateQuestionConfig200Response { - CreateQuestionConfig200Response { - status, - question_config: Box::new(question_config), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_question_result_200_response.rs b/client/src/models/create_question_result_200_response.rs deleted file mode 100644 index 1e49ae0..0000000 --- a/client/src/models/create_question_result_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateQuestionResult200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "questionResult")] - pub question_result: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateQuestionResult200Response { - pub fn new(status: models::ApiStatus, question_result: models::QuestionResult, reason: String, code: String) -> CreateQuestionResult200Response { - CreateQuestionResult200Response { - status, - question_result: Box::new(question_result), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_tenant_200_response.rs b/client/src/models/create_tenant_200_response.rs deleted file mode 100644 index 7da1ac6..0000000 --- a/client/src/models/create_tenant_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateTenant200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenant")] - pub tenant: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateTenant200Response { - pub fn new(status: models::ApiStatus, tenant: models::ApiTenant, reason: String, code: String) -> CreateTenant200Response { - CreateTenant200Response { - status, - tenant: Box::new(tenant), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_tenant_package_200_response.rs b/client/src/models/create_tenant_package_200_response.rs deleted file mode 100644 index 8a52c6b..0000000 --- a/client/src/models/create_tenant_package_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateTenantPackage200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenantPackage")] - pub tenant_package: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateTenantPackage200Response { - pub fn new(status: models::ApiStatus, tenant_package: models::TenantPackage, reason: String, code: String) -> CreateTenantPackage200Response { - CreateTenantPackage200Response { - status, - tenant_package: Box::new(tenant_package), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_tenant_package_body.rs b/client/src/models/create_tenant_package_body.rs index 7129f43..ccc94a3 100644 --- a/client/src/models/create_tenant_package_body.rs +++ b/client/src/models/create_tenant_package_body.rs @@ -95,10 +95,10 @@ pub struct CreateTenantPackageBody { pub flex_domain_cost_cents: Option, #[serde(rename = "flexDomainUnit", skip_serializing_if = "Option::is_none")] pub flex_domain_unit: Option, - #[serde(rename = "flexChatGPTCostCents", skip_serializing_if = "Option::is_none")] - pub flex_chat_gpt_cost_cents: Option, - #[serde(rename = "flexChatGPTUnit", skip_serializing_if = "Option::is_none")] - pub flex_chat_gpt_unit: Option, + #[serde(rename = "flexLLMCostCents", skip_serializing_if = "Option::is_none")] + pub flex_llm_cost_cents: Option, + #[serde(rename = "flexLLMUnit", skip_serializing_if = "Option::is_none")] + pub flex_llm_unit: Option, #[serde(rename = "flexMinimumCostCents", skip_serializing_if = "Option::is_none")] pub flex_minimum_cost_cents: Option, #[serde(rename = "flexManagedTenantCostCents", skip_serializing_if = "Option::is_none")] @@ -157,8 +157,8 @@ impl CreateTenantPackageBody { flex_admin_unit: None, flex_domain_cost_cents: None, flex_domain_unit: None, - flex_chat_gpt_cost_cents: None, - flex_chat_gpt_unit: None, + flex_llm_cost_cents: None, + flex_llm_unit: None, flex_minimum_cost_cents: None, flex_managed_tenant_cost_cents: None, flex_sso_admin_cost_cents: None, diff --git a/client/src/models/create_tenant_user_200_response.rs b/client/src/models/create_tenant_user_200_response.rs deleted file mode 100644 index 97ec2a9..0000000 --- a/client/src/models/create_tenant_user_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateTenantUser200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenantUser")] - pub tenant_user: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateTenantUser200Response { - pub fn new(status: models::ApiStatus, tenant_user: models::User, reason: String, code: String) -> CreateTenantUser200Response { - CreateTenantUser200Response { - status, - tenant_user: Box::new(tenant_user), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_ticket_200_response.rs b/client/src/models/create_ticket_200_response.rs deleted file mode 100644 index 89516fe..0000000 --- a/client/src/models/create_ticket_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateTicket200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "ticket")] - pub ticket: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateTicket200Response { - pub fn new(status: models::ApiStatus, ticket: models::ApiTicket, reason: String, code: String) -> CreateTicket200Response { - CreateTicket200Response { - status, - ticket: Box::new(ticket), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_user_badge_200_response.rs b/client/src/models/create_user_badge_200_response.rs deleted file mode 100644 index 558ba3b..0000000 --- a/client/src/models/create_user_badge_200_response.rs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateUserBadge200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "userBadge")] - pub user_badge: Box, - #[serde(rename = "notes", skip_serializing_if = "Option::is_none")] - pub notes: Option>, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl CreateUserBadge200Response { - pub fn new(status: models::ApiStatus, user_badge: models::UserBadge, reason: String, code: String) -> CreateUserBadge200Response { - CreateUserBadge200Response { - status, - user_badge: Box::new(user_badge), - notes: None, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/create_v1_page_react.rs b/client/src/models/create_v1_page_react.rs new file mode 100644 index 0000000..42ad963 --- /dev/null +++ b/client/src/models/create_v1_page_react.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateV1PageReact { + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl CreateV1PageReact { + pub fn new(status: models::ApiStatus) -> CreateV1PageReact { + CreateV1PageReact { + code: None, + status, + } + } +} + diff --git a/client/src/models/custom_config_parameters.rs b/client/src/models/custom_config_parameters.rs index 5d1821e..966ca0a 100644 --- a/client/src/models/custom_config_parameters.rs +++ b/client/src/models/custom_config_parameters.rs @@ -117,6 +117,10 @@ pub struct CustomConfigParameters { pub mention_auto_complete_mode: Option>, #[serde(rename = "noImageUploads", skip_serializing_if = "Option::is_none")] pub no_image_uploads: Option, + #[serde(rename = "allowEmbeds", skip_serializing_if = "Option::is_none")] + pub allow_embeds: Option, + #[serde(rename = "allowedEmbedDomains", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub allowed_embed_domains: Option>>, #[serde(rename = "noStyles", skip_serializing_if = "Option::is_none")] pub no_styles: Option, #[serde(rename = "pageSize", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -127,6 +131,8 @@ pub struct CustomConfigParameters { pub no_new_root_comments: Option, #[serde(rename = "requireSSO", skip_serializing_if = "Option::is_none")] pub require_sso: Option, + #[serde(rename = "enableFChat", skip_serializing_if = "Option::is_none")] + pub enable_f_chat: Option, #[serde(rename = "enableResizeHandle", skip_serializing_if = "Option::is_none")] pub enable_resize_handle: Option, #[serde(rename = "restrictedLinkDomains", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -168,6 +174,10 @@ pub struct CustomConfigParameters { pub widget_sub_question_visibility: Option, #[serde(rename = "wrap", skip_serializing_if = "Option::is_none")] pub wrap: Option, + #[serde(rename = "usersListLocation", skip_serializing_if = "Option::is_none")] + pub users_list_location: Option, + #[serde(rename = "usersListIncludeOffline", skip_serializing_if = "Option::is_none")] + pub users_list_include_offline: Option, #[serde(rename = "ticketBaseUrl", skip_serializing_if = "Option::is_none")] pub ticket_base_url: Option, #[serde(rename = "ticketKBSearchEndpoint", skip_serializing_if = "Option::is_none")] @@ -237,11 +247,14 @@ impl CustomConfigParameters { no_custom_config: None, mention_auto_complete_mode: None, no_image_uploads: None, + allow_embeds: None, + allowed_embed_domains: None, no_styles: None, page_size: None, readonly: None, no_new_root_comments: None, require_sso: None, + enable_f_chat: None, enable_resize_handle: None, restricted_link_domains: None, show_badges_in_top_bar: None, @@ -262,6 +275,8 @@ impl CustomConfigParameters { widget_questions_required: None, widget_sub_question_visibility: None, wrap: None, + users_list_location: None, + users_list_include_offline: None, ticket_base_url: None, ticket_kb_search_endpoint: None, ticket_file_uploads_enabled: None, diff --git a/client/src/models/custom_email_template.rs b/client/src/models/custom_email_template.rs index 06465e6..2833b07 100644 --- a/client/src/models/custom_email_template.rs +++ b/client/src/models/custom_email_template.rs @@ -22,9 +22,9 @@ pub struct CustomEmailTemplate { #[serde(rename = "displayName")] pub display_name: String, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "updatedAt", deserialize_with = "Option::deserialize")] - pub updated_at: Option, + pub updated_at: Option>, #[serde(rename = "updatedByUserId", deserialize_with = "Option::deserialize")] pub updated_by_user_id: Option, #[serde(rename = "domain", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -39,7 +39,7 @@ pub struct CustomEmailTemplate { } impl CustomEmailTemplate { - pub fn new(_id: String, tenant_id: String, email_template_id: String, display_name: String, created_at: String, updated_at: Option, updated_by_user_id: Option, ejs: String, translation_overrides_by_locale: std::collections::HashMap>, test_data: Option) -> CustomEmailTemplate { + pub fn new(_id: String, tenant_id: String, email_template_id: String, display_name: String, created_at: chrono::DateTime, updated_at: Option>, updated_by_user_id: Option, ejs: String, translation_overrides_by_locale: std::collections::HashMap>, test_data: Option) -> CustomEmailTemplate { CustomEmailTemplate { _id, tenant_id, diff --git a/client/src/models/delete_comment_200_response.rs b/client/src/models/delete_comment_200_response.rs deleted file mode 100644 index eb61466..0000000 --- a/client/src/models/delete_comment_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeleteComment200Response { - #[serde(rename = "action")] - pub action: models::DeleteCommentAction, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl DeleteComment200Response { - pub fn new(action: models::DeleteCommentAction, status: models::ApiStatus, reason: String, code: String) -> DeleteComment200Response { - DeleteComment200Response { - action, - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/delete_comment_vote_200_response.rs b/client/src/models/delete_comment_vote_200_response.rs deleted file mode 100644 index 634ad11..0000000 --- a/client/src/models/delete_comment_vote_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeleteCommentVote200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "wasPendingVote", skip_serializing_if = "Option::is_none")] - pub was_pending_vote: Option, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl DeleteCommentVote200Response { - pub fn new(status: models::ApiStatus, reason: String, code: String) -> DeleteCommentVote200Response { - DeleteCommentVote200Response { - status, - was_pending_vote: None, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/delete_domain_config_200_response.rs b/client/src/models/delete_domain_config_response.rs similarity index 80% rename from client/src/models/delete_domain_config_200_response.rs rename to client/src/models/delete_domain_config_response.rs index 16d3f85..e90cbd1 100644 --- a/client/src/models/delete_domain_config_200_response.rs +++ b/client/src/models/delete_domain_config_response.rs @@ -12,14 +12,14 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeleteDomainConfig200Response { +pub struct DeleteDomainConfigResponse { #[serde(rename = "status", deserialize_with = "Option::deserialize")] pub status: Option, } -impl DeleteDomainConfig200Response { - pub fn new(status: Option) -> DeleteDomainConfig200Response { - DeleteDomainConfig200Response { +impl DeleteDomainConfigResponse { + pub fn new(status: Option) -> DeleteDomainConfigResponse { + DeleteDomainConfigResponse { status, } } diff --git a/client/src/models/delete_feed_post_public_200_response.rs b/client/src/models/delete_feed_post_public_200_response.rs deleted file mode 100644 index 7ba6447..0000000 --- a/client/src/models/delete_feed_post_public_200_response.rs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeleteFeedPostPublic200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl DeleteFeedPostPublic200Response { - pub fn new(status: models::ApiStatus, reason: String, code: String) -> DeleteFeedPostPublic200Response { - DeleteFeedPostPublic200Response { - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/delete_feed_post_public_200_response_any_of.rs b/client/src/models/delete_feed_post_public_response.rs similarity index 77% rename from client/src/models/delete_feed_post_public_200_response_any_of.rs rename to client/src/models/delete_feed_post_public_response.rs index 3ee94f7..603ed00 100644 --- a/client/src/models/delete_feed_post_public_200_response_any_of.rs +++ b/client/src/models/delete_feed_post_public_response.rs @@ -12,14 +12,14 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeleteFeedPostPublic200ResponseAnyOf { +pub struct DeleteFeedPostPublicResponse { #[serde(rename = "status")] pub status: models::ApiStatus, } -impl DeleteFeedPostPublic200ResponseAnyOf { - pub fn new(status: models::ApiStatus) -> DeleteFeedPostPublic200ResponseAnyOf { - DeleteFeedPostPublic200ResponseAnyOf { +impl DeleteFeedPostPublicResponse { + pub fn new(status: models::ApiStatus) -> DeleteFeedPostPublicResponse { + DeleteFeedPostPublicResponse { status, } } diff --git a/client/src/models/delete_hash_tag_request.rs b/client/src/models/delete_hash_tag_request_body.rs similarity index 77% rename from client/src/models/delete_hash_tag_request.rs rename to client/src/models/delete_hash_tag_request_body.rs index b7168a7..d018f87 100644 --- a/client/src/models/delete_hash_tag_request.rs +++ b/client/src/models/delete_hash_tag_request_body.rs @@ -12,14 +12,14 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeleteHashTagRequest { +pub struct DeleteHashTagRequestBody { #[serde(rename = "tenantId", skip_serializing_if = "Option::is_none")] pub tenant_id: Option, } -impl DeleteHashTagRequest { - pub fn new() -> DeleteHashTagRequest { - DeleteHashTagRequest { +impl DeleteHashTagRequestBody { + pub fn new() -> DeleteHashTagRequestBody { + DeleteHashTagRequestBody { tenant_id: None, } } diff --git a/client/src/models/email_template_render_error_response.rs b/client/src/models/email_template_render_error_response.rs index fc251e7..7d8af63 100644 --- a/client/src/models/email_template_render_error_response.rs +++ b/client/src/models/email_template_render_error_response.rs @@ -24,13 +24,13 @@ pub struct EmailTemplateRenderErrorResponse { #[serde(rename = "count")] pub count: f64, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "lastOccurredAt")] - pub last_occurred_at: String, + pub last_occurred_at: chrono::DateTime, } impl EmailTemplateRenderErrorResponse { - pub fn new(id: String, tenant_id: String, custom_template_id: String, error: String, count: f64, created_at: String, last_occurred_at: String) -> EmailTemplateRenderErrorResponse { + pub fn new(id: String, tenant_id: String, custom_template_id: String, error: String, count: f64, created_at: chrono::DateTime, last_occurred_at: chrono::DateTime) -> EmailTemplateRenderErrorResponse { EmailTemplateRenderErrorResponse { id, tenant_id, diff --git a/client/src/models/event_log_entry.rs b/client/src/models/event_log_entry.rs index 85047b4..5841d78 100644 --- a/client/src/models/event_log_entry.rs +++ b/client/src/models/event_log_entry.rs @@ -16,7 +16,7 @@ pub struct EventLogEntry { #[serde(rename = "_id")] pub _id: String, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "tenantId")] pub tenant_id: String, #[serde(rename = "urlId")] @@ -28,7 +28,7 @@ pub struct EventLogEntry { } impl EventLogEntry { - pub fn new(_id: String, created_at: String, tenant_id: String, url_id: String, broadcast_id: String, data: String) -> EventLogEntry { + pub fn new(_id: String, created_at: chrono::DateTime, tenant_id: String, url_id: String, broadcast_id: String, data: String) -> EventLogEntry { EventLogEntry { _id, created_at, diff --git a/client/src/models/f_comment.rs b/client/src/models/f_comment.rs index 6b2fe62..fedf17d 100644 --- a/client/src/models/f_comment.rs +++ b/client/src/models/f_comment.rs @@ -42,7 +42,7 @@ pub struct FComment { #[serde(rename = "parentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub parent_id: Option>, #[serde(rename = "date", deserialize_with = "Option::deserialize")] - pub date: Option, + pub date: Option>, #[serde(rename = "localDateString", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub local_date_string: Option>, #[serde(rename = "localDateHours", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -54,11 +54,11 @@ pub struct FComment { #[serde(rename = "votesDown", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub votes_down: Option>, #[serde(rename = "expireAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub expire_at: Option>, + pub expire_at: Option>>, #[serde(rename = "verified")] pub verified: bool, #[serde(rename = "verifiedDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub verified_date: Option>, + pub verified_date: Option>>, #[serde(rename = "verificationId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub verification_id: Option>, #[serde(rename = "notificationSentForParent", skip_serializing_if = "Option::is_none")] @@ -156,11 +156,13 @@ pub struct FComment { #[serde(rename = "editKey", skip_serializing_if = "Option::is_none")] pub edit_key: Option, #[serde(rename = "tosAcceptedAt", skip_serializing_if = "Option::is_none")] - pub tos_accepted_at: Option, + pub tos_accepted_at: Option>, + #[serde(rename = "botId", skip_serializing_if = "Option::is_none")] + pub bot_id: Option, } impl FComment { - pub fn new(_id: String, tenant_id: String, url_id: String, url: String, commenter_name: String, comment: String, comment_html: String, date: Option, verified: bool, approved: bool, locale: Option) -> FComment { + pub fn new(_id: String, tenant_id: String, url_id: String, url: String, commenter_name: String, comment: String, comment_html: String, date: Option>, verified: bool, approved: bool, locale: Option) -> FComment { FComment { _id, tenant_id, @@ -234,6 +236,7 @@ impl FComment { requires_verification: None, edit_key: None, tos_accepted_at: None, + bot_id: None, } } } diff --git a/client/src/models/feed_post.rs b/client/src/models/feed_post.rs index eca7455..e0fddc3 100644 --- a/client/src/models/feed_post.rs +++ b/client/src/models/feed_post.rs @@ -41,7 +41,7 @@ pub struct FeedPost { #[serde(rename = "links", skip_serializing_if = "Option::is_none")] pub links: Option>, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "reacts", skip_serializing_if = "Option::is_none")] pub reacts: Option>, #[serde(rename = "commentCount", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -49,7 +49,7 @@ pub struct FeedPost { } impl FeedPost { - pub fn new(_id: String, tenant_id: String, created_at: String) -> FeedPost { + pub fn new(_id: String, tenant_id: String, created_at: chrono::DateTime) -> FeedPost { FeedPost { _id, tenant_id, diff --git a/client/src/models/find_comments_by_range_response.rs b/client/src/models/find_comments_by_range_response.rs index c1d7a6f..7f6e19f 100644 --- a/client/src/models/find_comments_by_range_response.rs +++ b/client/src/models/find_comments_by_range_response.rs @@ -16,11 +16,11 @@ pub struct FindCommentsByRangeResponse { #[serde(rename = "results")] pub results: Vec, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, } impl FindCommentsByRangeResponse { - pub fn new(results: Vec, created_at: String) -> FindCommentsByRangeResponse { + pub fn new(results: Vec, created_at: chrono::DateTime) -> FindCommentsByRangeResponse { FindCommentsByRangeResponse { results, created_at, diff --git a/client/src/models/flag_comment_200_response.rs b/client/src/models/flag_comment_200_response.rs deleted file mode 100644 index f24cb78..0000000 --- a/client/src/models/flag_comment_200_response.rs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct FlagComment200Response { - #[serde(rename = "statusCode", skip_serializing_if = "Option::is_none")] - pub status_code: Option, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "wasUnapproved", skip_serializing_if = "Option::is_none")] - pub was_unapproved: Option, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl FlagComment200Response { - pub fn new(status: models::ApiStatus, code: String, reason: String) -> FlagComment200Response { - FlagComment200Response { - status_code: None, - status, - code, - reason, - was_unapproved: None, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/flag_comment_public_200_response.rs b/client/src/models/flag_comment_public_200_response.rs deleted file mode 100644 index 065acc4..0000000 --- a/client/src/models/flag_comment_public_200_response.rs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct FlagCommentPublic200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl FlagCommentPublic200Response { - pub fn new(status: models::ApiStatus, reason: String, code: String) -> FlagCommentPublic200Response { - FlagCommentPublic200Response { - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_audit_logs_200_response.rs b/client/src/models/get_audit_logs_200_response.rs deleted file mode 100644 index b68b2bd..0000000 --- a/client/src/models/get_audit_logs_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetAuditLogs200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "auditLogs")] - pub audit_logs: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetAuditLogs200Response { - pub fn new(status: models::ApiStatus, audit_logs: Vec, reason: String, code: String) -> GetAuditLogs200Response { - GetAuditLogs200Response { - status, - audit_logs, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_banned_users_count_response.rs b/client/src/models/get_banned_users_count_response.rs new file mode 100644 index 0000000..f8f0f88 --- /dev/null +++ b/client/src/models/get_banned_users_count_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetBannedUsersCountResponse { + #[serde(rename = "totalCount")] + pub total_count: f64, + #[serde(rename = "status")] + pub status: String, +} + +impl GetBannedUsersCountResponse { + pub fn new(total_count: f64, status: String) -> GetBannedUsersCountResponse { + GetBannedUsersCountResponse { + total_count, + status, + } + } +} + diff --git a/client/src/models/get_banned_users_from_comment_response.rs b/client/src/models/get_banned_users_from_comment_response.rs new file mode 100644 index 0000000..3a5a646 --- /dev/null +++ b/client/src/models/get_banned_users_from_comment_response.rs @@ -0,0 +1,47 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetBannedUsersFromCommentResponse { + #[serde(rename = "bannedUsers")] + pub banned_users: Vec, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetBannedUsersFromCommentResponse { + pub fn new(banned_users: Vec, status: models::ApiStatus) -> GetBannedUsersFromCommentResponse { + GetBannedUsersFromCommentResponse { + banned_users, + code: None, + status, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Code { + #[serde(rename = "not-found")] + NotFound, + #[serde(rename = "not-logged-in")] + NotLoggedIn, +} + +impl Default for Code { + fn default() -> Code { + Self::NotFound + } +} + diff --git a/client/src/models/get_cached_notification_count_200_response.rs b/client/src/models/get_cached_notification_count_200_response.rs deleted file mode 100644 index c300e5b..0000000 --- a/client/src/models/get_cached_notification_count_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCachedNotificationCount200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "data")] - pub data: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetCachedNotificationCount200Response { - pub fn new(status: models::ApiStatus, data: models::UserNotificationCount, reason: String, code: String) -> GetCachedNotificationCount200Response { - GetCachedNotificationCount200Response { - status, - data: Box::new(data), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_comment_200_response.rs b/client/src/models/get_comment_200_response.rs deleted file mode 100644 index f6aec7b..0000000 --- a/client/src/models/get_comment_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetComment200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "comment")] - pub comment: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetComment200Response { - pub fn new(status: models::ApiStatus, comment: models::ApiComment, reason: String, code: String) -> GetComment200Response { - GetComment200Response { - status, - comment: Box::new(comment), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_comment_ban_status_response.rs b/client/src/models/get_comment_ban_status_response.rs new file mode 100644 index 0000000..aa5dbde --- /dev/null +++ b/client/src/models/get_comment_ban_status_response.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetCommentBanStatusResponse { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "emailDomain", deserialize_with = "Option::deserialize")] + pub email_domain: Option, + #[serde(rename = "canIPBan", deserialize_with = "Option::deserialize")] + pub can_ip_ban: Option, +} + +impl GetCommentBanStatusResponse { + pub fn new(status: String, email_domain: Option, can_ip_ban: Option) -> GetCommentBanStatusResponse { + GetCommentBanStatusResponse { + status, + email_domain, + can_ip_ban, + } + } +} + diff --git a/client/src/models/get_comment_text_200_response.rs b/client/src/models/get_comment_text_200_response.rs deleted file mode 100644 index e57eb56..0000000 --- a/client/src/models/get_comment_text_200_response.rs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCommentText200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "commentText")] - pub comment_text: String, - #[serde(rename = "sanitizedCommentText")] - pub sanitized_comment_text: String, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetCommentText200Response { - pub fn new(status: models::ApiStatus, comment_text: String, sanitized_comment_text: String, reason: String, code: String) -> GetCommentText200Response { - GetCommentText200Response { - status, - comment_text, - sanitized_comment_text, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_comment_text_response.rs b/client/src/models/get_comment_text_response.rs new file mode 100644 index 0000000..623b90e --- /dev/null +++ b/client/src/models/get_comment_text_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetCommentTextResponse { + #[serde(rename = "comment", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub comment: Option>, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetCommentTextResponse { + pub fn new(status: models::ApiStatus) -> GetCommentTextResponse { + GetCommentTextResponse { + comment: None, + status, + } + } +} + diff --git a/client/src/models/get_comment_vote_user_names_200_response.rs b/client/src/models/get_comment_vote_user_names_200_response.rs deleted file mode 100644 index 2d023fe..0000000 --- a/client/src/models/get_comment_vote_user_names_200_response.rs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCommentVoteUserNames200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "voteUserNames")] - pub vote_user_names: Vec, - #[serde(rename = "hasMore")] - pub has_more: bool, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetCommentVoteUserNames200Response { - pub fn new(status: models::ApiStatus, vote_user_names: Vec, has_more: bool, reason: String, code: String) -> GetCommentVoteUserNames200Response { - GetCommentVoteUserNames200Response { - status, - vote_user_names, - has_more, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_comments_200_response.rs b/client/src/models/get_comments_200_response.rs deleted file mode 100644 index ec00875..0000000 --- a/client/src/models/get_comments_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetComments200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "comments")] - pub comments: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetComments200Response { - pub fn new(status: models::ApiStatus, comments: Vec, reason: String, code: String) -> GetComments200Response { - GetComments200Response { - status, - comments, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_comments_for_user_response.rs b/client/src/models/get_comments_for_user_response.rs new file mode 100644 index 0000000..0cc8283 --- /dev/null +++ b/client/src/models/get_comments_for_user_response.rs @@ -0,0 +1,27 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetCommentsForUserResponse { + #[serde(rename = "moderatingTenantIds", skip_serializing_if = "Option::is_none")] + pub moderating_tenant_ids: Option>, +} + +impl GetCommentsForUserResponse { + pub fn new() -> GetCommentsForUserResponse { + GetCommentsForUserResponse { + moderating_tenant_ids: None, + } + } +} + diff --git a/client/src/models/get_comments_public_200_response.rs b/client/src/models/get_comments_public_200_response.rs deleted file mode 100644 index 820cbe5..0000000 --- a/client/src/models/get_comments_public_200_response.rs +++ /dev/null @@ -1,118 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetCommentsPublic200Response { - #[serde(rename = "statusCode", skip_serializing_if = "Option::is_none")] - pub status_code: Option, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "translatedWarning", skip_serializing_if = "Option::is_none")] - pub translated_warning: Option, - #[serde(rename = "comments")] - pub comments: Vec, - #[serde(rename = "user", deserialize_with = "Option::deserialize")] - pub user: Option>, - #[serde(rename = "urlIdClean", skip_serializing_if = "Option::is_none")] - pub url_id_clean: Option, - #[serde(rename = "lastGenDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub last_gen_date: Option>, - #[serde(rename = "includesPastPages", skip_serializing_if = "Option::is_none")] - pub includes_past_pages: Option, - #[serde(rename = "isDemo", skip_serializing_if = "Option::is_none")] - pub is_demo: Option, - #[serde(rename = "commentCount", skip_serializing_if = "Option::is_none")] - pub comment_count: Option, - #[serde(rename = "isSiteAdmin", skip_serializing_if = "Option::is_none")] - pub is_site_admin: Option, - #[serde(rename = "hasBillingIssue", skip_serializing_if = "Option::is_none")] - pub has_billing_issue: Option, - /// Construct a type with a set of properties K of type T - #[serde(rename = "moduleData", skip_serializing_if = "Option::is_none")] - pub module_data: Option>, - #[serde(rename = "pageNumber")] - pub page_number: i32, - #[serde(rename = "isWhiteLabeled", skip_serializing_if = "Option::is_none")] - pub is_white_labeled: Option, - #[serde(rename = "isProd", skip_serializing_if = "Option::is_none")] - pub is_prod: Option, - #[serde(rename = "isCrawler", skip_serializing_if = "Option::is_none")] - pub is_crawler: Option, - #[serde(rename = "notificationCount", skip_serializing_if = "Option::is_none")] - pub notification_count: Option, - #[serde(rename = "hasMore", skip_serializing_if = "Option::is_none")] - pub has_more: Option, - #[serde(rename = "isClosed", skip_serializing_if = "Option::is_none")] - pub is_closed: Option, - #[serde(rename = "presencePollState", skip_serializing_if = "Option::is_none")] - pub presence_poll_state: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, - #[serde(rename = "urlIdWS", skip_serializing_if = "Option::is_none")] - pub url_id_ws: Option, - #[serde(rename = "userIdWS", skip_serializing_if = "Option::is_none")] - pub user_id_ws: Option, - #[serde(rename = "tenantIdWS", skip_serializing_if = "Option::is_none")] - pub tenant_id_ws: Option, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, -} - -impl GetCommentsPublic200Response { - pub fn new(status: models::ApiStatus, code: String, reason: String, comments: Vec, user: Option, page_number: i32) -> GetCommentsPublic200Response { - GetCommentsPublic200Response { - status_code: None, - status, - code, - reason, - translated_warning: None, - comments, - user: if let Some(x) = user {Some(Box::new(x))} else {None}, - url_id_clean: None, - last_gen_date: None, - includes_past_pages: None, - is_demo: None, - comment_count: None, - is_site_admin: None, - has_billing_issue: None, - module_data: None, - page_number, - is_white_labeled: None, - is_prod: None, - is_crawler: None, - notification_count: None, - has_more: None, - is_closed: None, - presence_poll_state: None, - custom_config: None, - url_id_ws: None, - user_id_ws: None, - tenant_id_ws: None, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - } - } -} - diff --git a/client/src/models/get_domain_config_200_response.rs b/client/src/models/get_domain_config_200_response.rs deleted file mode 100644 index 368bb54..0000000 --- a/client/src/models/get_domain_config_200_response.rs +++ /dev/null @@ -1,36 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetDomainConfig200Response { - #[serde(rename = "configuration", deserialize_with = "Option::deserialize")] - pub configuration: Option, - #[serde(rename = "status", deserialize_with = "Option::deserialize")] - pub status: Option, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, -} - -impl GetDomainConfig200Response { - pub fn new(configuration: Option, status: Option, reason: String, code: String) -> GetDomainConfig200Response { - GetDomainConfig200Response { - configuration, - status, - reason, - code, - } - } -} - diff --git a/client/src/models/get_domain_config_response.rs b/client/src/models/get_domain_config_response.rs new file mode 100644 index 0000000..d40296c --- /dev/null +++ b/client/src/models/get_domain_config_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetDomainConfigResponse { + #[serde(rename = "configuration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub configuration: Option>, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, +} + +impl GetDomainConfigResponse { + pub fn new(status: Option) -> GetDomainConfigResponse { + GetDomainConfigResponse { + configuration: None, + status, + reason: None, + code: None, + } + } +} + diff --git a/client/src/models/get_domain_configs_200_response.rs b/client/src/models/get_domain_configs_200_response.rs deleted file mode 100644 index d595d62..0000000 --- a/client/src/models/get_domain_configs_200_response.rs +++ /dev/null @@ -1,36 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetDomainConfigs200Response { - #[serde(rename = "configurations", deserialize_with = "Option::deserialize")] - pub configurations: Option, - #[serde(rename = "status", deserialize_with = "Option::deserialize")] - pub status: Option, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, -} - -impl GetDomainConfigs200Response { - pub fn new(configurations: Option, status: Option, reason: String, code: String) -> GetDomainConfigs200Response { - GetDomainConfigs200Response { - configurations, - status, - reason, - code, - } - } -} - diff --git a/client/src/models/get_domain_configs_response.rs b/client/src/models/get_domain_configs_response.rs new file mode 100644 index 0000000..787f721 --- /dev/null +++ b/client/src/models/get_domain_configs_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetDomainConfigsResponse { + #[serde(rename = "configurations", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub configurations: Option>, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, +} + +impl GetDomainConfigsResponse { + pub fn new(status: Option) -> GetDomainConfigsResponse { + GetDomainConfigsResponse { + configurations: None, + status, + reason: None, + code: None, + } + } +} + diff --git a/client/src/models/get_domain_configs_200_response_any_of.rs b/client/src/models/get_domain_configs_response_any_of.rs similarity index 79% rename from client/src/models/get_domain_configs_200_response_any_of.rs rename to client/src/models/get_domain_configs_response_any_of.rs index a307990..514abe9 100644 --- a/client/src/models/get_domain_configs_200_response_any_of.rs +++ b/client/src/models/get_domain_configs_response_any_of.rs @@ -12,16 +12,16 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetDomainConfigs200ResponseAnyOf { +pub struct GetDomainConfigsResponseAnyOf { #[serde(rename = "configurations", deserialize_with = "Option::deserialize")] pub configurations: Option, #[serde(rename = "status", deserialize_with = "Option::deserialize")] pub status: Option, } -impl GetDomainConfigs200ResponseAnyOf { - pub fn new(configurations: Option, status: Option) -> GetDomainConfigs200ResponseAnyOf { - GetDomainConfigs200ResponseAnyOf { +impl GetDomainConfigsResponseAnyOf { + pub fn new(configurations: Option, status: Option) -> GetDomainConfigsResponseAnyOf { + GetDomainConfigsResponseAnyOf { configurations, status, } diff --git a/client/src/models/get_domain_configs_200_response_any_of_1.rs b/client/src/models/get_domain_configs_response_any_of_1.rs similarity index 79% rename from client/src/models/get_domain_configs_200_response_any_of_1.rs rename to client/src/models/get_domain_configs_response_any_of_1.rs index 9d647d1..6ca7ecd 100644 --- a/client/src/models/get_domain_configs_200_response_any_of_1.rs +++ b/client/src/models/get_domain_configs_response_any_of_1.rs @@ -12,7 +12,7 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetDomainConfigs200ResponseAnyOf1 { +pub struct GetDomainConfigsResponseAnyOf1 { #[serde(rename = "reason")] pub reason: String, #[serde(rename = "code")] @@ -21,9 +21,9 @@ pub struct GetDomainConfigs200ResponseAnyOf1 { pub status: Option, } -impl GetDomainConfigs200ResponseAnyOf1 { - pub fn new(reason: String, code: String, status: Option) -> GetDomainConfigs200ResponseAnyOf1 { - GetDomainConfigs200ResponseAnyOf1 { +impl GetDomainConfigsResponseAnyOf1 { + pub fn new(reason: String, code: String, status: Option) -> GetDomainConfigsResponseAnyOf1 { + GetDomainConfigsResponseAnyOf1 { reason, code, status, diff --git a/client/src/models/get_email_template_200_response.rs b/client/src/models/get_email_template_200_response.rs deleted file mode 100644 index 23e75fc..0000000 --- a/client/src/models/get_email_template_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetEmailTemplate200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "emailTemplate")] - pub email_template: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetEmailTemplate200Response { - pub fn new(status: models::ApiStatus, email_template: models::CustomEmailTemplate, reason: String, code: String) -> GetEmailTemplate200Response { - GetEmailTemplate200Response { - status, - email_template: Box::new(email_template), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_email_template_definitions_200_response.rs b/client/src/models/get_email_template_definitions_200_response.rs deleted file mode 100644 index 1fafb6b..0000000 --- a/client/src/models/get_email_template_definitions_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetEmailTemplateDefinitions200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "definitions")] - pub definitions: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetEmailTemplateDefinitions200Response { - pub fn new(status: models::ApiStatus, definitions: Vec, reason: String, code: String) -> GetEmailTemplateDefinitions200Response { - GetEmailTemplateDefinitions200Response { - status, - definitions, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_email_template_render_errors_200_response.rs b/client/src/models/get_email_template_render_errors_200_response.rs deleted file mode 100644 index a0bccef..0000000 --- a/client/src/models/get_email_template_render_errors_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetEmailTemplateRenderErrors200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "renderErrors")] - pub render_errors: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetEmailTemplateRenderErrors200Response { - pub fn new(status: models::ApiStatus, render_errors: Vec, reason: String, code: String) -> GetEmailTemplateRenderErrors200Response { - GetEmailTemplateRenderErrors200Response { - status, - render_errors, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_email_templates_200_response.rs b/client/src/models/get_email_templates_200_response.rs deleted file mode 100644 index ec19317..0000000 --- a/client/src/models/get_email_templates_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetEmailTemplates200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "emailTemplates")] - pub email_templates: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetEmailTemplates200Response { - pub fn new(status: models::ApiStatus, email_templates: Vec, reason: String, code: String) -> GetEmailTemplates200Response { - GetEmailTemplates200Response { - status, - email_templates, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_event_log_200_response.rs b/client/src/models/get_event_log_200_response.rs deleted file mode 100644 index 273a762..0000000 --- a/client/src/models/get_event_log_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetEventLog200Response { - #[serde(rename = "events")] - pub events: Vec, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetEventLog200Response { - pub fn new(events: Vec, status: models::ApiStatus, reason: String, code: String) -> GetEventLog200Response { - GetEventLog200Response { - events, - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_feed_posts_200_response.rs b/client/src/models/get_feed_posts_200_response.rs deleted file mode 100644 index 987a917..0000000 --- a/client/src/models/get_feed_posts_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetFeedPosts200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "feedPosts")] - pub feed_posts: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetFeedPosts200Response { - pub fn new(status: models::ApiStatus, feed_posts: Vec, reason: String, code: String) -> GetFeedPosts200Response { - GetFeedPosts200Response { - status, - feed_posts, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_feed_posts_public_200_response.rs b/client/src/models/get_feed_posts_public_200_response.rs deleted file mode 100644 index 3ce43f5..0000000 --- a/client/src/models/get_feed_posts_public_200_response.rs +++ /dev/null @@ -1,66 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetFeedPostsPublic200Response { - #[serde(rename = "myReacts", skip_serializing_if = "Option::is_none")] - pub my_reacts: Option>>, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "feedPosts")] - pub feed_posts: Vec, - #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub user: Option>>, - #[serde(rename = "urlIdWS", skip_serializing_if = "Option::is_none")] - pub url_id_ws: Option, - #[serde(rename = "userIdWS", skip_serializing_if = "Option::is_none")] - pub user_id_ws: Option, - #[serde(rename = "tenantIdWS", skip_serializing_if = "Option::is_none")] - pub tenant_id_ws: Option, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetFeedPostsPublic200Response { - pub fn new(status: models::ApiStatus, feed_posts: Vec, reason: String, code: String) -> GetFeedPostsPublic200Response { - GetFeedPostsPublic200Response { - my_reacts: None, - status, - feed_posts, - user: None, - url_id_ws: None, - user_id_ws: None, - tenant_id_ws: None, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_feed_posts_stats_200_response.rs b/client/src/models/get_feed_posts_stats_200_response.rs deleted file mode 100644 index 7d38bd7..0000000 --- a/client/src/models/get_feed_posts_stats_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetFeedPostsStats200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "stats")] - pub stats: std::collections::HashMap, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetFeedPostsStats200Response { - pub fn new(status: models::ApiStatus, stats: std::collections::HashMap, reason: String, code: String) -> GetFeedPostsStats200Response { - GetFeedPostsStats200Response { - status, - stats, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_gifs_search_response.rs b/client/src/models/get_gifs_search_response.rs new file mode 100644 index 0000000..fbe449c --- /dev/null +++ b/client/src/models/get_gifs_search_response.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetGifsSearchResponse { + #[serde(rename = "images", skip_serializing_if = "Option::is_none")] + pub images: Option>>, + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, +} + +impl GetGifsSearchResponse { + pub fn new(status: models::ApiStatus) -> GetGifsSearchResponse { + GetGifsSearchResponse { + images: None, + status, + code: None, + } + } +} + diff --git a/client/src/models/get_gifs_trending_response.rs b/client/src/models/get_gifs_trending_response.rs new file mode 100644 index 0000000..1b93f34 --- /dev/null +++ b/client/src/models/get_gifs_trending_response.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetGifsTrendingResponse { + #[serde(rename = "images", skip_serializing_if = "Option::is_none")] + pub images: Option>>, + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, +} + +impl GetGifsTrendingResponse { + pub fn new(status: models::ApiStatus) -> GetGifsTrendingResponse { + GetGifsTrendingResponse { + images: None, + status, + code: None, + } + } +} + diff --git a/client/src/models/get_hash_tags_200_response.rs b/client/src/models/get_hash_tags_200_response.rs deleted file mode 100644 index 9b30e0e..0000000 --- a/client/src/models/get_hash_tags_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetHashTags200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "hashTags")] - pub hash_tags: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetHashTags200Response { - pub fn new(status: models::ApiStatus, hash_tags: Vec, reason: String, code: String) -> GetHashTags200Response { - GetHashTags200Response { - status, - hash_tags, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_moderator_200_response.rs b/client/src/models/get_moderator_200_response.rs deleted file mode 100644 index d79d745..0000000 --- a/client/src/models/get_moderator_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetModerator200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "moderator")] - pub moderator: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetModerator200Response { - pub fn new(status: models::ApiStatus, moderator: models::Moderator, reason: String, code: String) -> GetModerator200Response { - GetModerator200Response { - status, - moderator: Box::new(moderator), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_moderators_200_response.rs b/client/src/models/get_moderators_200_response.rs deleted file mode 100644 index 0915c9a..0000000 --- a/client/src/models/get_moderators_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetModerators200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "moderators")] - pub moderators: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetModerators200Response { - pub fn new(status: models::ApiStatus, moderators: Vec, reason: String, code: String) -> GetModerators200Response { - GetModerators200Response { - status, - moderators, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_notification_count_200_response.rs b/client/src/models/get_notification_count_200_response.rs deleted file mode 100644 index 65f80bb..0000000 --- a/client/src/models/get_notification_count_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetNotificationCount200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "count")] - pub count: f64, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetNotificationCount200Response { - pub fn new(status: models::ApiStatus, count: f64, reason: String, code: String) -> GetNotificationCount200Response { - GetNotificationCount200Response { - status, - count, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_notifications_200_response.rs b/client/src/models/get_notifications_200_response.rs deleted file mode 100644 index 765c56f..0000000 --- a/client/src/models/get_notifications_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetNotifications200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "notifications")] - pub notifications: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetNotifications200Response { - pub fn new(status: models::ApiStatus, notifications: Vec, reason: String, code: String) -> GetNotifications200Response { - GetNotifications200Response { - status, - notifications, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_pending_webhook_event_count_200_response.rs b/client/src/models/get_pending_webhook_event_count_200_response.rs deleted file mode 100644 index b2a9b08..0000000 --- a/client/src/models/get_pending_webhook_event_count_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetPendingWebhookEventCount200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "count")] - pub count: f64, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetPendingWebhookEventCount200Response { - pub fn new(status: models::ApiStatus, count: f64, reason: String, code: String) -> GetPendingWebhookEventCount200Response { - GetPendingWebhookEventCount200Response { - status, - count, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_pending_webhook_events_200_response.rs b/client/src/models/get_pending_webhook_events_200_response.rs deleted file mode 100644 index 2b9fbcc..0000000 --- a/client/src/models/get_pending_webhook_events_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetPendingWebhookEvents200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "pendingWebhookEvents")] - pub pending_webhook_events: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetPendingWebhookEvents200Response { - pub fn new(status: models::ApiStatus, pending_webhook_events: Vec, reason: String, code: String) -> GetPendingWebhookEvents200Response { - GetPendingWebhookEvents200Response { - status, - pending_webhook_events, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_public_pages_response.rs b/client/src/models/get_public_pages_response.rs new file mode 100644 index 0000000..581e60e --- /dev/null +++ b/client/src/models/get_public_pages_response.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetPublicPagesResponse { + #[serde(rename = "nextCursor", deserialize_with = "Option::deserialize")] + pub next_cursor: Option, + #[serde(rename = "pages")] + pub pages: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetPublicPagesResponse { + pub fn new(next_cursor: Option, pages: Vec, status: models::ApiStatus) -> GetPublicPagesResponse { + GetPublicPagesResponse { + next_cursor, + pages, + status, + } + } +} + diff --git a/client/src/models/get_question_config_200_response.rs b/client/src/models/get_question_config_200_response.rs deleted file mode 100644 index 96fd6b5..0000000 --- a/client/src/models/get_question_config_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQuestionConfig200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "questionConfig")] - pub question_config: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetQuestionConfig200Response { - pub fn new(status: models::ApiStatus, question_config: models::QuestionConfig, reason: String, code: String) -> GetQuestionConfig200Response { - GetQuestionConfig200Response { - status, - question_config: Box::new(question_config), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_question_configs_200_response.rs b/client/src/models/get_question_configs_200_response.rs deleted file mode 100644 index cba84a7..0000000 --- a/client/src/models/get_question_configs_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQuestionConfigs200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "questionConfigs")] - pub question_configs: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetQuestionConfigs200Response { - pub fn new(status: models::ApiStatus, question_configs: Vec, reason: String, code: String) -> GetQuestionConfigs200Response { - GetQuestionConfigs200Response { - status, - question_configs, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_question_result_200_response.rs b/client/src/models/get_question_result_200_response.rs deleted file mode 100644 index 564da33..0000000 --- a/client/src/models/get_question_result_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQuestionResult200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "questionResult")] - pub question_result: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetQuestionResult200Response { - pub fn new(status: models::ApiStatus, question_result: models::QuestionResult, reason: String, code: String) -> GetQuestionResult200Response { - GetQuestionResult200Response { - status, - question_result: Box::new(question_result), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_question_results_200_response.rs b/client/src/models/get_question_results_200_response.rs deleted file mode 100644 index dedb990..0000000 --- a/client/src/models/get_question_results_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetQuestionResults200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "questionResults")] - pub question_results: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetQuestionResults200Response { - pub fn new(status: models::ApiStatus, question_results: Vec, reason: String, code: String) -> GetQuestionResults200Response { - GetQuestionResults200Response { - status, - question_results, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_sso_users_200_response.rs b/client/src/models/get_sso_users_response.rs similarity index 83% rename from client/src/models/get_sso_users_200_response.rs rename to client/src/models/get_sso_users_response.rs index 91723bf..82da9e4 100644 --- a/client/src/models/get_sso_users_200_response.rs +++ b/client/src/models/get_sso_users_response.rs @@ -12,16 +12,16 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetSsoUsers200Response { +pub struct GetSsoUsersResponse { #[serde(rename = "users")] pub users: Vec, #[serde(rename = "status")] pub status: String, } -impl GetSsoUsers200Response { - pub fn new(users: Vec, status: String) -> GetSsoUsers200Response { - GetSsoUsers200Response { +impl GetSsoUsersResponse { + pub fn new(users: Vec, status: String) -> GetSsoUsersResponse { + GetSsoUsersResponse { users, status, } diff --git a/client/src/models/get_tenant_200_response.rs b/client/src/models/get_tenant_200_response.rs deleted file mode 100644 index d36723a..0000000 --- a/client/src/models/get_tenant_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTenant200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenant")] - pub tenant: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTenant200Response { - pub fn new(status: models::ApiStatus, tenant: models::ApiTenant, reason: String, code: String) -> GetTenant200Response { - GetTenant200Response { - status, - tenant: Box::new(tenant), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_tenant_daily_usages_200_response.rs b/client/src/models/get_tenant_daily_usages_200_response.rs deleted file mode 100644 index dc847d1..0000000 --- a/client/src/models/get_tenant_daily_usages_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTenantDailyUsages200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenantDailyUsages")] - pub tenant_daily_usages: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTenantDailyUsages200Response { - pub fn new(status: models::ApiStatus, tenant_daily_usages: Vec, reason: String, code: String) -> GetTenantDailyUsages200Response { - GetTenantDailyUsages200Response { - status, - tenant_daily_usages, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_tenant_manual_badges_response.rs b/client/src/models/get_tenant_manual_badges_response.rs new file mode 100644 index 0000000..0d32ece --- /dev/null +++ b/client/src/models/get_tenant_manual_badges_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetTenantManualBadgesResponse { + #[serde(rename = "badges")] + pub badges: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetTenantManualBadgesResponse { + pub fn new(badges: Vec, status: models::ApiStatus) -> GetTenantManualBadgesResponse { + GetTenantManualBadgesResponse { + badges, + status, + } + } +} + diff --git a/client/src/models/get_tenant_package_200_response.rs b/client/src/models/get_tenant_package_200_response.rs deleted file mode 100644 index e253fc9..0000000 --- a/client/src/models/get_tenant_package_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTenantPackage200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenantPackage")] - pub tenant_package: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTenantPackage200Response { - pub fn new(status: models::ApiStatus, tenant_package: models::TenantPackage, reason: String, code: String) -> GetTenantPackage200Response { - GetTenantPackage200Response { - status, - tenant_package: Box::new(tenant_package), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_tenant_packages_200_response.rs b/client/src/models/get_tenant_packages_200_response.rs deleted file mode 100644 index 35ed11e..0000000 --- a/client/src/models/get_tenant_packages_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTenantPackages200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenantPackages")] - pub tenant_packages: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTenantPackages200Response { - pub fn new(status: models::ApiStatus, tenant_packages: Vec, reason: String, code: String) -> GetTenantPackages200Response { - GetTenantPackages200Response { - status, - tenant_packages, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_tenant_user_200_response.rs b/client/src/models/get_tenant_user_200_response.rs deleted file mode 100644 index c42b3fa..0000000 --- a/client/src/models/get_tenant_user_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTenantUser200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenantUser")] - pub tenant_user: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTenantUser200Response { - pub fn new(status: models::ApiStatus, tenant_user: models::User, reason: String, code: String) -> GetTenantUser200Response { - GetTenantUser200Response { - status, - tenant_user: Box::new(tenant_user), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_tenant_users_200_response.rs b/client/src/models/get_tenant_users_200_response.rs deleted file mode 100644 index 33644b4..0000000 --- a/client/src/models/get_tenant_users_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTenantUsers200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenantUsers")] - pub tenant_users: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTenantUsers200Response { - pub fn new(status: models::ApiStatus, tenant_users: Vec, reason: String, code: String) -> GetTenantUsers200Response { - GetTenantUsers200Response { - status, - tenant_users, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_tenants_200_response.rs b/client/src/models/get_tenants_200_response.rs deleted file mode 100644 index 37c1e40..0000000 --- a/client/src/models/get_tenants_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTenants200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tenants")] - pub tenants: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTenants200Response { - pub fn new(status: models::ApiStatus, tenants: Vec, reason: String, code: String) -> GetTenants200Response { - GetTenants200Response { - status, - tenants, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_ticket_200_response.rs b/client/src/models/get_ticket_200_response.rs deleted file mode 100644 index b7c1312..0000000 --- a/client/src/models/get_ticket_200_response.rs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTicket200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "ticket")] - pub ticket: Box, - #[serde(rename = "availableStates")] - pub available_states: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTicket200Response { - pub fn new(status: models::ApiStatus, ticket: models::ApiTicketDetail, available_states: Vec, reason: String, code: String) -> GetTicket200Response { - GetTicket200Response { - status, - ticket: Box::new(ticket), - available_states, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_tickets_200_response.rs b/client/src/models/get_tickets_200_response.rs deleted file mode 100644 index 94489fd..0000000 --- a/client/src/models/get_tickets_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetTickets200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "tickets")] - pub tickets: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetTickets200Response { - pub fn new(status: models::ApiStatus, tickets: Vec, reason: String, code: String) -> GetTickets200Response { - GetTickets200Response { - status, - tickets, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_translations_response.rs b/client/src/models/get_translations_response.rs new file mode 100644 index 0000000..827953a --- /dev/null +++ b/client/src/models/get_translations_response.rs @@ -0,0 +1,31 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetTranslationsResponse { + /// Construct a type with a set of properties K of type T + #[serde(rename = "translations")] + pub translations: std::collections::HashMap, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetTranslationsResponse { + pub fn new(translations: std::collections::HashMap, status: models::ApiStatus) -> GetTranslationsResponse { + GetTranslationsResponse { + translations, + status, + } + } +} + diff --git a/client/src/models/get_user_200_response.rs b/client/src/models/get_user_200_response.rs deleted file mode 100644 index a78843f..0000000 --- a/client/src/models/get_user_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUser200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "user")] - pub user: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUser200Response { - pub fn new(status: models::ApiStatus, user: models::User, reason: String, code: String) -> GetUser200Response { - GetUser200Response { - status, - user: Box::new(user), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_badge_200_response.rs b/client/src/models/get_user_badge_200_response.rs deleted file mode 100644 index fc9a0a7..0000000 --- a/client/src/models/get_user_badge_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUserBadge200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "userBadge")] - pub user_badge: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUserBadge200Response { - pub fn new(status: models::ApiStatus, user_badge: models::UserBadge, reason: String, code: String) -> GetUserBadge200Response { - GetUserBadge200Response { - status, - user_badge: Box::new(user_badge), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_badge_progress_by_id_200_response.rs b/client/src/models/get_user_badge_progress_by_id_200_response.rs deleted file mode 100644 index 70a9a07..0000000 --- a/client/src/models/get_user_badge_progress_by_id_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUserBadgeProgressById200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "userBadgeProgress")] - pub user_badge_progress: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUserBadgeProgressById200Response { - pub fn new(status: models::ApiStatus, user_badge_progress: models::UserBadgeProgress, reason: String, code: String) -> GetUserBadgeProgressById200Response { - GetUserBadgeProgressById200Response { - status, - user_badge_progress: Box::new(user_badge_progress), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_badge_progress_list_200_response.rs b/client/src/models/get_user_badge_progress_list_200_response.rs deleted file mode 100644 index f3b00e7..0000000 --- a/client/src/models/get_user_badge_progress_list_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUserBadgeProgressList200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "userBadgeProgresses")] - pub user_badge_progresses: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUserBadgeProgressList200Response { - pub fn new(status: models::ApiStatus, user_badge_progresses: Vec, reason: String, code: String) -> GetUserBadgeProgressList200Response { - GetUserBadgeProgressList200Response { - status, - user_badge_progresses, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_badges_200_response.rs b/client/src/models/get_user_badges_200_response.rs deleted file mode 100644 index e415f58..0000000 --- a/client/src/models/get_user_badges_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUserBadges200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "userBadges")] - pub user_badges: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUserBadges200Response { - pub fn new(status: models::ApiStatus, user_badges: Vec, reason: String, code: String) -> GetUserBadges200Response { - GetUserBadges200Response { - status, - user_badges, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_internal_profile_response.rs b/client/src/models/get_user_internal_profile_response.rs new file mode 100644 index 0000000..153d05c --- /dev/null +++ b/client/src/models/get_user_internal_profile_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetUserInternalProfileResponse { + #[serde(rename = "profile")] + pub profile: Box, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetUserInternalProfileResponse { + pub fn new(profile: models::GetUserInternalProfileResponseProfile, status: models::ApiStatus) -> GetUserInternalProfileResponse { + GetUserInternalProfileResponse { + profile: Box::new(profile), + status, + } + } +} + diff --git a/client/src/models/get_user_internal_profile_response_profile.rs b/client/src/models/get_user_internal_profile_response_profile.rs new file mode 100644 index 0000000..979c1ae --- /dev/null +++ b/client/src/models/get_user_internal_profile_response_profile.rs @@ -0,0 +1,75 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetUserInternalProfileResponseProfile { + #[serde(rename = "commenterName", skip_serializing_if = "Option::is_none")] + pub commenter_name: Option, + #[serde(rename = "firstCommentDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub first_comment_date: Option>>, + #[serde(rename = "ipHash", skip_serializing_if = "Option::is_none")] + pub ip_hash: Option, + #[serde(rename = "countryFlag", skip_serializing_if = "Option::is_none")] + pub country_flag: Option, + #[serde(rename = "countryCode", skip_serializing_if = "Option::is_none")] + pub country_code: Option, + #[serde(rename = "websiteUrl", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub website_url: Option>, + #[serde(rename = "bio", skip_serializing_if = "Option::is_none")] + pub bio: Option, + #[serde(rename = "karma", skip_serializing_if = "Option::is_none")] + pub karma: Option, + #[serde(rename = "locale", skip_serializing_if = "Option::is_none")] + pub locale: Option, + #[serde(rename = "verified", skip_serializing_if = "Option::is_none")] + pub verified: Option, + #[serde(rename = "avatarSrc", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar_src: Option>, + #[serde(rename = "displayName", skip_serializing_if = "Option::is_none")] + pub display_name: Option, + #[serde(rename = "username", skip_serializing_if = "Option::is_none")] + pub username: Option, + #[serde(rename = "commenterEmail", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub commenter_email: Option>, + #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub email: Option>, + #[serde(rename = "anonUserId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub anon_user_id: Option>, + #[serde(rename = "userId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_id: Option>, +} + +impl GetUserInternalProfileResponseProfile { + pub fn new() -> GetUserInternalProfileResponseProfile { + GetUserInternalProfileResponseProfile { + commenter_name: None, + first_comment_date: None, + ip_hash: None, + country_flag: None, + country_code: None, + website_url: None, + bio: None, + karma: None, + locale: None, + verified: None, + avatar_src: None, + display_name: None, + username: None, + commenter_email: None, + email: None, + anon_user_id: None, + user_id: None, + } + } +} + diff --git a/client/src/models/get_user_manual_badges_response.rs b/client/src/models/get_user_manual_badges_response.rs new file mode 100644 index 0000000..e706305 --- /dev/null +++ b/client/src/models/get_user_manual_badges_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetUserManualBadgesResponse { + #[serde(rename = "badges")] + pub badges: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetUserManualBadgesResponse { + pub fn new(badges: Vec, status: models::ApiStatus) -> GetUserManualBadgesResponse { + GetUserManualBadgesResponse { + badges, + status, + } + } +} + diff --git a/client/src/models/get_user_notification_count_200_response.rs b/client/src/models/get_user_notification_count_200_response.rs deleted file mode 100644 index 9df917f..0000000 --- a/client/src/models/get_user_notification_count_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUserNotificationCount200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "count")] - pub count: i64, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUserNotificationCount200Response { - pub fn new(status: models::ApiStatus, count: i64, reason: String, code: String) -> GetUserNotificationCount200Response { - GetUserNotificationCount200Response { - status, - count, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_notifications_200_response.rs b/client/src/models/get_user_notifications_200_response.rs deleted file mode 100644 index b6f3f94..0000000 --- a/client/src/models/get_user_notifications_200_response.rs +++ /dev/null @@ -1,61 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUserNotifications200Response { - /// Construct a type with a set of properties K of type T - #[serde(rename = "translations", skip_serializing_if = "Option::is_none")] - pub translations: Option>, - #[serde(rename = "isSubscribed")] - pub is_subscribed: bool, - #[serde(rename = "hasMore")] - pub has_more: bool, - #[serde(rename = "notifications")] - pub notifications: Vec, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUserNotifications200Response { - pub fn new(is_subscribed: bool, has_more: bool, notifications: Vec, status: models::ApiStatus, reason: String, code: String) -> GetUserNotifications200Response { - GetUserNotifications200Response { - translations: None, - is_subscribed, - has_more, - notifications, - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_presence_statuses_200_response.rs b/client/src/models/get_user_presence_statuses_200_response.rs deleted file mode 100644 index e403f70..0000000 --- a/client/src/models/get_user_presence_statuses_200_response.rs +++ /dev/null @@ -1,52 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUserPresenceStatuses200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - /// Construct a type with a set of properties K of type T - #[serde(rename = "userIdsOnline")] - pub user_ids_online: std::collections::HashMap, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUserPresenceStatuses200Response { - pub fn new(status: models::ApiStatus, user_ids_online: std::collections::HashMap, reason: String, code: String) -> GetUserPresenceStatuses200Response { - GetUserPresenceStatuses200Response { - status, - user_ids_online, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_reacts_public_200_response.rs b/client/src/models/get_user_reacts_public_200_response.rs deleted file mode 100644 index 60a49a1..0000000 --- a/client/src/models/get_user_reacts_public_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetUserReactsPublic200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reacts")] - pub reacts: std::collections::HashMap>, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetUserReactsPublic200Response { - pub fn new(status: models::ApiStatus, reacts: std::collections::HashMap>, reason: String, code: String) -> GetUserReactsPublic200Response { - GetUserReactsPublic200Response { - status, - reacts, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_user_trust_factor_response.rs b/client/src/models/get_user_trust_factor_response.rs new file mode 100644 index 0000000..cf355b8 --- /dev/null +++ b/client/src/models/get_user_trust_factor_response.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetUserTrustFactorResponse { + #[serde(rename = "manualTrustFactor", skip_serializing_if = "Option::is_none")] + pub manual_trust_factor: Option, + #[serde(rename = "autoTrustFactor", skip_serializing_if = "Option::is_none")] + pub auto_trust_factor: Option, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetUserTrustFactorResponse { + pub fn new(status: models::ApiStatus) -> GetUserTrustFactorResponse { + GetUserTrustFactorResponse { + manual_trust_factor: None, + auto_trust_factor: None, + status, + } + } +} + diff --git a/client/src/models/get_v1_page_likes.rs b/client/src/models/get_v1_page_likes.rs new file mode 100644 index 0000000..797ccec --- /dev/null +++ b/client/src/models/get_v1_page_likes.rs @@ -0,0 +1,39 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetV1PageLikes { + #[serde(rename = "urlIdWS")] + pub url_id_ws: String, + #[serde(rename = "didLike")] + pub did_like: bool, + #[serde(rename = "commentCount")] + pub comment_count: i32, + #[serde(rename = "likeCount")] + pub like_count: i32, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetV1PageLikes { + pub fn new(url_id_ws: String, did_like: bool, comment_count: i32, like_count: i32, status: models::ApiStatus) -> GetV1PageLikes { + GetV1PageLikes { + url_id_ws, + did_like, + comment_count, + like_count, + status, + } + } +} + diff --git a/client/src/models/get_v2_page_react_users_response.rs b/client/src/models/get_v2_page_react_users_response.rs new file mode 100644 index 0000000..4023eed --- /dev/null +++ b/client/src/models/get_v2_page_react_users_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetV2PageReactUsersResponse { + #[serde(rename = "userNames")] + pub user_names: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetV2PageReactUsersResponse { + pub fn new(user_names: Vec, status: models::ApiStatus) -> GetV2PageReactUsersResponse { + GetV2PageReactUsersResponse { + user_names, + status, + } + } +} + diff --git a/client/src/models/get_v2_page_reacts.rs b/client/src/models/get_v2_page_reacts.rs new file mode 100644 index 0000000..29248e1 --- /dev/null +++ b/client/src/models/get_v2_page_reacts.rs @@ -0,0 +1,34 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GetV2PageReacts { + #[serde(rename = "reactedIds", skip_serializing_if = "Option::is_none")] + pub reacted_ids: Option>, + /// Construct a type with a set of properties K of type T + #[serde(rename = "counts", skip_serializing_if = "Option::is_none")] + pub counts: Option>, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GetV2PageReacts { + pub fn new(status: models::ApiStatus) -> GetV2PageReacts { + GetV2PageReacts { + reacted_ids: None, + counts: None, + status, + } + } +} + diff --git a/client/src/models/get_votes_200_response.rs b/client/src/models/get_votes_200_response.rs deleted file mode 100644 index 9668674..0000000 --- a/client/src/models/get_votes_200_response.rs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetVotes200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "appliedAuthorizedVotes")] - pub applied_authorized_votes: Vec, - #[serde(rename = "appliedAnonymousVotes")] - pub applied_anonymous_votes: Vec, - #[serde(rename = "pendingVotes")] - pub pending_votes: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetVotes200Response { - pub fn new(status: models::ApiStatus, applied_authorized_votes: Vec, applied_anonymous_votes: Vec, pending_votes: Vec, reason: String, code: String) -> GetVotes200Response { - GetVotes200Response { - status, - applied_authorized_votes, - applied_anonymous_votes, - pending_votes, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/get_votes_for_user_200_response.rs b/client/src/models/get_votes_for_user_200_response.rs deleted file mode 100644 index 830a295..0000000 --- a/client/src/models/get_votes_for_user_200_response.rs +++ /dev/null @@ -1,57 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct GetVotesForUser200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "appliedAuthorizedVotes")] - pub applied_authorized_votes: Vec, - #[serde(rename = "appliedAnonymousVotes")] - pub applied_anonymous_votes: Vec, - #[serde(rename = "pendingVotes")] - pub pending_votes: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl GetVotesForUser200Response { - pub fn new(status: models::ApiStatus, applied_authorized_votes: Vec, applied_anonymous_votes: Vec, pending_votes: Vec, reason: String, code: String) -> GetVotesForUser200Response { - GetVotesForUser200Response { - status, - applied_authorized_votes, - applied_anonymous_votes, - pending_votes, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/gif_get_large_response.rs b/client/src/models/gif_get_large_response.rs new file mode 100644 index 0000000..332cf20 --- /dev/null +++ b/client/src/models/gif_get_large_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GifGetLargeResponse { + #[serde(rename = "src")] + pub src: String, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GifGetLargeResponse { + pub fn new(src: String, status: models::ApiStatus) -> GifGetLargeResponse { + GifGetLargeResponse { + src, + status, + } + } +} + diff --git a/client/src/models/gif_search_internal_error.rs b/client/src/models/gif_search_internal_error.rs new file mode 100644 index 0000000..fbb03df --- /dev/null +++ b/client/src/models/gif_search_internal_error.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GifSearchInternalError { + #[serde(rename = "code")] + pub code: String, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GifSearchInternalError { + pub fn new(code: String, status: models::ApiStatus) -> GifSearchInternalError { + GifSearchInternalError { + code, + status, + } + } +} + diff --git a/client/src/models/gif_search_response.rs b/client/src/models/gif_search_response.rs new file mode 100644 index 0000000..18cef88 --- /dev/null +++ b/client/src/models/gif_search_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GifSearchResponse { + #[serde(rename = "images")] + pub images: Vec>, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl GifSearchResponse { + pub fn new(images: Vec>, status: models::ApiStatus) -> GifSearchResponse { + GifSearchResponse { + images, + status, + } + } +} + diff --git a/client/src/models/gif_search_response_images_inner_inner.rs b/client/src/models/gif_search_response_images_inner_inner.rs new file mode 100644 index 0000000..c78e33f --- /dev/null +++ b/client/src/models/gif_search_response_images_inner_inner.rs @@ -0,0 +1,24 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct GifSearchResponseImagesInnerInner { +} + +impl GifSearchResponseImagesInnerInner { + pub fn new() -> GifSearchResponseImagesInnerInner { + GifSearchResponseImagesInnerInner { + } + } +} + diff --git a/client/src/models/header_account_notification.rs b/client/src/models/header_account_notification.rs index d31efa0..f6afde3 100644 --- a/client/src/models/header_account_notification.rs +++ b/client/src/models/header_account_notification.rs @@ -32,11 +32,14 @@ pub struct HeaderAccountNotification { #[serde(rename = "linkText", deserialize_with = "Option::deserialize")] pub link_text: Option, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, + /// Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). + #[serde(rename = "type", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub r#type: Option>, } impl HeaderAccountNotification { - pub fn new(_id: String, title: String, message: String, messages_by_locale: Option>, dates: Option>, severity: String, link_url: Option, link_text: Option, created_at: String) -> HeaderAccountNotification { + pub fn new(_id: String, title: String, message: String, messages_by_locale: Option>, dates: Option>, severity: String, link_url: Option, link_text: Option, created_at: chrono::DateTime) -> HeaderAccountNotification { HeaderAccountNotification { _id, title, @@ -47,6 +50,7 @@ impl HeaderAccountNotification { link_url, link_text, created_at, + r#type: None, } } } diff --git a/client/src/models/imported_agent_approval_notification_frequency.rs b/client/src/models/imported_agent_approval_notification_frequency.rs new file mode 100644 index 0000000..0eac062 --- /dev/null +++ b/client/src/models/imported_agent_approval_notification_frequency.rs @@ -0,0 +1,41 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +use serde_repr::{Serialize_repr,Deserialize_repr}; +/// +#[repr(i64)] +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize_repr, Deserialize_repr)] +pub enum ImportedAgentApprovalNotificationFrequency { + Variant1 = -1, + Variant0 = 0, + Variant12 = 1, + Variant2 = 2, + +} + +impl std::fmt::Display for ImportedAgentApprovalNotificationFrequency { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", match self { + Self::Variant1 => "-1", + Self::Variant0 => "0", + Self::Variant12 => "1", + Self::Variant2 => "2", + }) + } +} +impl Default for ImportedAgentApprovalNotificationFrequency { + fn default() -> ImportedAgentApprovalNotificationFrequency { + Self::Variant1 + } +} + diff --git a/client/src/models/live_event.rs b/client/src/models/live_event.rs index 812ec6c..04e18d7 100644 --- a/client/src/models/live_event.rs +++ b/client/src/models/live_event.rs @@ -43,6 +43,8 @@ pub struct LiveEvent { pub uj: Option>, #[serde(rename = "ul", skip_serializing_if = "Option::is_none")] pub ul: Option>, + #[serde(rename = "sc", skip_serializing_if = "Option::is_none")] + pub sc: Option, #[serde(rename = "changes", skip_serializing_if = "Option::is_none")] pub changes: Option>, } @@ -65,6 +67,7 @@ impl LiveEvent { is_closed: None, uj: None, ul: None, + sc: None, changes: None, } } diff --git a/client/src/models/live_event_type.rs b/client/src/models/live_event_type.rs index 6b0c0e2..70cee22 100644 --- a/client/src/models/live_event_type.rs +++ b/client/src/models/live_event_type.rs @@ -48,6 +48,18 @@ pub enum LiveEventType { UpdatedFeedPost, #[serde(rename = "deleted-feed-post")] DeletedFeedPost, + #[serde(rename = "new-ticket")] + NewTicket, + #[serde(rename = "updated-ticket-state")] + UpdatedTicketState, + #[serde(rename = "updated-ticket-assignment")] + UpdatedTicketAssignment, + #[serde(rename = "deleted-ticket")] + DeletedTicket, + #[serde(rename = "page-react")] + PageReact, + #[serde(rename = "question-result")] + QuestionResult, } @@ -71,6 +83,12 @@ impl std::fmt::Display for LiveEventType { Self::NewFeedPost => write!(f, "new-feed-post"), Self::UpdatedFeedPost => write!(f, "updated-feed-post"), Self::DeletedFeedPost => write!(f, "deleted-feed-post"), + Self::NewTicket => write!(f, "new-ticket"), + Self::UpdatedTicketState => write!(f, "updated-ticket-state"), + Self::UpdatedTicketAssignment => write!(f, "updated-ticket-assignment"), + Self::DeletedTicket => write!(f, "deleted-ticket"), + Self::PageReact => write!(f, "page-react"), + Self::QuestionResult => write!(f, "question-result"), } } } diff --git a/client/src/models/lock_comment_200_response.rs b/client/src/models/lock_comment_200_response.rs deleted file mode 100644 index 2b023f7..0000000 --- a/client/src/models/lock_comment_200_response.rs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct LockComment200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl LockComment200Response { - pub fn new(status: models::ApiStatus, reason: String, code: String) -> LockComment200Response { - LockComment200Response { - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/mod.rs b/client/src/models/mod.rs index 4d09f95..c686c4a 100644 --- a/client/src/models/mod.rs +++ b/client/src/models/mod.rs @@ -1,23 +1,25 @@ -pub mod add_domain_config_200_response; -pub use self::add_domain_config_200_response::AddDomainConfig200Response; -pub mod add_domain_config_200_response_any_of; -pub use self::add_domain_config_200_response_any_of::AddDomainConfig200ResponseAnyOf; pub mod add_domain_config_params; pub use self::add_domain_config_params::AddDomainConfigParams; -pub mod add_hash_tag_200_response; -pub use self::add_hash_tag_200_response::AddHashTag200Response; -pub mod add_hash_tags_bulk_200_response; -pub use self::add_hash_tags_bulk_200_response::AddHashTagsBulk200Response; +pub mod add_domain_config_response; +pub use self::add_domain_config_response::AddDomainConfigResponse; +pub mod add_domain_config_response_any_of; +pub use self::add_domain_config_response_any_of::AddDomainConfigResponseAnyOf; pub mod add_page_api_response; pub use self::add_page_api_response::AddPageApiResponse; pub mod add_sso_user_api_response; pub use self::add_sso_user_api_response::AddSsoUserApiResponse; -pub mod aggregate_question_results_200_response; -pub use self::aggregate_question_results_200_response::AggregateQuestionResults200Response; +pub mod adjust_comment_votes_params; +pub use self::adjust_comment_votes_params::AdjustCommentVotesParams; +pub mod adjust_votes_response; +pub use self::adjust_votes_response::AdjustVotesResponse; pub mod aggregate_question_results_response; pub use self::aggregate_question_results_response::AggregateQuestionResultsResponse; +pub mod aggregate_response; +pub use self::aggregate_response::AggregateResponse; pub mod aggregate_time_bucket; pub use self::aggregate_time_bucket::AggregateTimeBucket; +pub mod aggregation_api_error; +pub use self::aggregation_api_error::AggregationApiError; pub mod aggregation_item; pub use self::aggregation_item::AggregationItem; pub mod aggregation_op_type; @@ -36,12 +38,22 @@ pub mod aggregation_value; pub use self::aggregation_value::AggregationValue; pub mod api_audit_log; pub use self::api_audit_log::ApiAuditLog; +pub mod api_ban_user_change_log; +pub use self::api_ban_user_change_log::ApiBanUserChangeLog; +pub mod api_ban_user_changed_values; +pub use self::api_ban_user_changed_values::ApiBanUserChangedValues; +pub mod api_banned_user; +pub use self::api_banned_user::ApiBannedUser; +pub mod api_banned_user_with_multi_match_info; +pub use self::api_banned_user_with_multi_match_info::ApiBannedUserWithMultiMatchInfo; pub mod api_comment; pub use self::api_comment::ApiComment; pub mod api_comment_base; pub use self::api_comment_base::ApiCommentBase; pub mod api_comment_base_meta; pub use self::api_comment_base_meta::ApiCommentBaseMeta; +pub mod api_comment_common_banned_user; +pub use self::api_comment_common_banned_user::ApiCommentCommonBannedUser; pub mod api_create_user_badge_response; pub use self::api_create_user_badge_response::ApiCreateUserBadgeResponse; pub mod api_domain_configuration; @@ -64,8 +76,14 @@ pub mod api_get_user_badge_response; pub use self::api_get_user_badge_response::ApiGetUserBadgeResponse; pub mod api_get_user_badges_response; pub use self::api_get_user_badges_response::ApiGetUserBadgesResponse; +pub mod api_moderate_get_user_ban_preferences_response; +pub use self::api_moderate_get_user_ban_preferences_response::ApiModerateGetUserBanPreferencesResponse; +pub mod api_moderate_user_ban_preferences; +pub use self::api_moderate_user_ban_preferences::ApiModerateUserBanPreferences; pub mod api_page; pub use self::api_page::ApiPage; +pub mod api_save_comment_response; +pub use self::api_save_comment_response::ApiSaveCommentResponse; pub mod api_status; pub use self::api_status::ApiStatus; pub mod api_tenant; @@ -82,18 +100,30 @@ pub mod api_user_subscription; pub use self::api_user_subscription::ApiUserSubscription; pub mod apisso_user; pub use self::apisso_user::ApissoUser; +pub mod award_user_badge_response; +pub use self::award_user_badge_response::AwardUserBadgeResponse; +pub mod ban_user_from_comment_result; +pub use self::ban_user_from_comment_result::BanUserFromCommentResult; +pub mod ban_user_undo_params; +pub use self::ban_user_undo_params::BanUserUndoParams; +pub mod banned_user_match; +pub use self::banned_user_match::BannedUserMatch; +pub mod banned_user_match_matched_on_value; +pub use self::banned_user_match_matched_on_value::BannedUserMatchMatchedOnValue; +pub mod banned_user_match_type; +pub use self::banned_user_match_type::BannedUserMatchType; pub mod billing_info; pub use self::billing_info::BillingInfo; pub mod block_from_comment_params; pub use self::block_from_comment_params::BlockFromCommentParams; -pub mod block_from_comment_public_200_response; -pub use self::block_from_comment_public_200_response::BlockFromCommentPublic200Response; pub mod block_success; pub use self::block_success::BlockSuccess; +pub mod build_moderation_filter_params; +pub use self::build_moderation_filter_params::BuildModerationFilterParams; +pub mod build_moderation_filter_response; +pub use self::build_moderation_filter_response::BuildModerationFilterResponse; pub mod bulk_aggregate_question_item; pub use self::bulk_aggregate_question_item::BulkAggregateQuestionItem; -pub mod bulk_aggregate_question_results_200_response; -pub use self::bulk_aggregate_question_results_200_response::BulkAggregateQuestionResults200Response; pub mod bulk_aggregate_question_results_request; pub use self::bulk_aggregate_question_results_request::BulkAggregateQuestionResultsRequest; pub mod bulk_aggregate_question_results_response; @@ -104,20 +134,20 @@ pub mod bulk_create_hash_tags_body_tags_inner; pub use self::bulk_create_hash_tags_body_tags_inner::BulkCreateHashTagsBodyTagsInner; pub mod bulk_create_hash_tags_response; pub use self::bulk_create_hash_tags_response::BulkCreateHashTagsResponse; +pub mod bulk_create_hash_tags_response_results_inner; +pub use self::bulk_create_hash_tags_response_results_inner::BulkCreateHashTagsResponseResultsInner; +pub mod bulk_pre_ban_params; +pub use self::bulk_pre_ban_params::BulkPreBanParams; +pub mod bulk_pre_ban_summary; +pub use self::bulk_pre_ban_summary::BulkPreBanSummary; pub mod change_comment_pin_status_response; pub use self::change_comment_pin_status_response::ChangeCommentPinStatusResponse; -pub mod change_ticket_state_200_response; -pub use self::change_ticket_state_200_response::ChangeTicketState200Response; pub mod change_ticket_state_body; pub use self::change_ticket_state_body::ChangeTicketStateBody; pub mod change_ticket_state_response; pub use self::change_ticket_state_response::ChangeTicketStateResponse; pub mod check_blocked_comments_response; pub use self::check_blocked_comments_response::CheckBlockedCommentsResponse; -pub mod checked_comments_for_blocked_200_response; -pub use self::checked_comments_for_blocked_200_response::CheckedCommentsForBlocked200Response; -pub mod combine_comments_with_question_results_200_response; -pub use self::combine_comments_with_question_results_200_response::CombineCommentsWithQuestionResults200Response; pub mod combine_question_results_with_comments_response; pub use self::combine_question_results_with_comments_response::CombineQuestionResultsWithCommentsResponse; pub mod comment_data; @@ -146,6 +176,8 @@ pub mod comment_user_mention_info; pub use self::comment_user_mention_info::CommentUserMentionInfo; pub mod commenter_name_formats; pub use self::commenter_name_formats::CommenterNameFormats; +pub mod comments_by_ids_params; +pub use self::comments_by_ids_params::CommentsByIdsParams; pub mod create_api_page_data; pub use self::create_api_page_data::CreateApiPageData; pub mod create_api_user_subscription_data; @@ -154,20 +186,12 @@ pub mod create_apisso_user_data; pub use self::create_apisso_user_data::CreateApissoUserData; pub mod create_comment_params; pub use self::create_comment_params::CreateCommentParams; -pub mod create_comment_public_200_response; -pub use self::create_comment_public_200_response::CreateCommentPublic200Response; -pub mod create_email_template_200_response; -pub use self::create_email_template_200_response::CreateEmailTemplate200Response; pub mod create_email_template_body; pub use self::create_email_template_body::CreateEmailTemplateBody; pub mod create_email_template_response; pub use self::create_email_template_response::CreateEmailTemplateResponse; -pub mod create_feed_post_200_response; -pub use self::create_feed_post_200_response::CreateFeedPost200Response; pub mod create_feed_post_params; pub use self::create_feed_post_params::CreateFeedPostParams; -pub mod create_feed_post_public_200_response; -pub use self::create_feed_post_public_200_response::CreateFeedPostPublic200Response; pub mod create_feed_post_response; pub use self::create_feed_post_response::CreateFeedPostResponse; pub mod create_feed_posts_response; @@ -176,76 +200,54 @@ pub mod create_hash_tag_body; pub use self::create_hash_tag_body::CreateHashTagBody; pub mod create_hash_tag_response; pub use self::create_hash_tag_response::CreateHashTagResponse; -pub mod create_moderator_200_response; -pub use self::create_moderator_200_response::CreateModerator200Response; pub mod create_moderator_body; pub use self::create_moderator_body::CreateModeratorBody; pub mod create_moderator_response; pub use self::create_moderator_response::CreateModeratorResponse; -pub mod create_question_config_200_response; -pub use self::create_question_config_200_response::CreateQuestionConfig200Response; pub mod create_question_config_body; pub use self::create_question_config_body::CreateQuestionConfigBody; pub mod create_question_config_response; pub use self::create_question_config_response::CreateQuestionConfigResponse; -pub mod create_question_result_200_response; -pub use self::create_question_result_200_response::CreateQuestionResult200Response; pub mod create_question_result_body; pub use self::create_question_result_body::CreateQuestionResultBody; pub mod create_question_result_response; pub use self::create_question_result_response::CreateQuestionResultResponse; pub mod create_subscription_api_response; pub use self::create_subscription_api_response::CreateSubscriptionApiResponse; -pub mod create_tenant_200_response; -pub use self::create_tenant_200_response::CreateTenant200Response; pub mod create_tenant_body; pub use self::create_tenant_body::CreateTenantBody; -pub mod create_tenant_package_200_response; -pub use self::create_tenant_package_200_response::CreateTenantPackage200Response; pub mod create_tenant_package_body; pub use self::create_tenant_package_body::CreateTenantPackageBody; pub mod create_tenant_package_response; pub use self::create_tenant_package_response::CreateTenantPackageResponse; pub mod create_tenant_response; pub use self::create_tenant_response::CreateTenantResponse; -pub mod create_tenant_user_200_response; -pub use self::create_tenant_user_200_response::CreateTenantUser200Response; pub mod create_tenant_user_body; pub use self::create_tenant_user_body::CreateTenantUserBody; pub mod create_tenant_user_response; pub use self::create_tenant_user_response::CreateTenantUserResponse; -pub mod create_ticket_200_response; -pub use self::create_ticket_200_response::CreateTicket200Response; pub mod create_ticket_body; pub use self::create_ticket_body::CreateTicketBody; pub mod create_ticket_response; pub use self::create_ticket_response::CreateTicketResponse; -pub mod create_user_badge_200_response; -pub use self::create_user_badge_200_response::CreateUserBadge200Response; pub mod create_user_badge_params; pub use self::create_user_badge_params::CreateUserBadgeParams; +pub mod create_v1_page_react; +pub use self::create_v1_page_react::CreateV1PageReact; pub mod custom_config_parameters; pub use self::custom_config_parameters::CustomConfigParameters; pub mod custom_email_template; pub use self::custom_email_template::CustomEmailTemplate; -pub mod delete_comment_200_response; -pub use self::delete_comment_200_response::DeleteComment200Response; pub mod delete_comment_action; pub use self::delete_comment_action::DeleteCommentAction; -pub mod delete_comment_public_200_response; -pub use self::delete_comment_public_200_response::DeleteCommentPublic200Response; pub mod delete_comment_result; pub use self::delete_comment_result::DeleteCommentResult; -pub mod delete_comment_vote_200_response; -pub use self::delete_comment_vote_200_response::DeleteCommentVote200Response; -pub mod delete_domain_config_200_response; -pub use self::delete_domain_config_200_response::DeleteDomainConfig200Response; -pub mod delete_feed_post_public_200_response; -pub use self::delete_feed_post_public_200_response::DeleteFeedPostPublic200Response; -pub mod delete_feed_post_public_200_response_any_of; -pub use self::delete_feed_post_public_200_response_any_of::DeleteFeedPostPublic200ResponseAnyOf; -pub mod delete_hash_tag_request; -pub use self::delete_hash_tag_request::DeleteHashTagRequest; +pub mod delete_domain_config_response; +pub use self::delete_domain_config_response::DeleteDomainConfigResponse; +pub mod delete_feed_post_public_response; +pub use self::delete_feed_post_public_response::DeleteFeedPostPublicResponse; +pub mod delete_hash_tag_request_body; +pub use self::delete_hash_tag_request_body::DeleteHashTagRequestBody; pub mod delete_page_api_response; pub use self::delete_page_api_response::DeletePageApiResponse; pub mod delete_sso_user_api_response; @@ -282,202 +284,148 @@ pub mod find_comments_by_range_item; pub use self::find_comments_by_range_item::FindCommentsByRangeItem; pub mod find_comments_by_range_response; pub use self::find_comments_by_range_response::FindCommentsByRangeResponse; -pub mod flag_comment_200_response; -pub use self::flag_comment_200_response::FlagComment200Response; -pub mod flag_comment_public_200_response; -pub use self::flag_comment_public_200_response::FlagCommentPublic200Response; pub mod flag_comment_response; pub use self::flag_comment_response::FlagCommentResponse; -pub mod get_audit_logs_200_response; -pub use self::get_audit_logs_200_response::GetAuditLogs200Response; pub mod get_audit_logs_response; pub use self::get_audit_logs_response::GetAuditLogsResponse; -pub mod get_cached_notification_count_200_response; -pub use self::get_cached_notification_count_200_response::GetCachedNotificationCount200Response; +pub mod get_banned_users_count_response; +pub use self::get_banned_users_count_response::GetBannedUsersCountResponse; +pub mod get_banned_users_from_comment_response; +pub use self::get_banned_users_from_comment_response::GetBannedUsersFromCommentResponse; pub mod get_cached_notification_count_response; pub use self::get_cached_notification_count_response::GetCachedNotificationCountResponse; -pub mod get_comment_200_response; -pub use self::get_comment_200_response::GetComment200Response; -pub mod get_comment_text_200_response; -pub use self::get_comment_text_200_response::GetCommentText200Response; -pub mod get_comment_vote_user_names_200_response; -pub use self::get_comment_vote_user_names_200_response::GetCommentVoteUserNames200Response; +pub mod get_comment_ban_status_response; +pub use self::get_comment_ban_status_response::GetCommentBanStatusResponse; +pub mod get_comment_text_response; +pub use self::get_comment_text_response::GetCommentTextResponse; pub mod get_comment_vote_user_names_success_response; pub use self::get_comment_vote_user_names_success_response::GetCommentVoteUserNamesSuccessResponse; -pub mod get_comments_200_response; -pub use self::get_comments_200_response::GetComments200Response; -pub mod get_comments_public_200_response; -pub use self::get_comments_public_200_response::GetCommentsPublic200Response; +pub mod get_comments_for_user_response; +pub use self::get_comments_for_user_response::GetCommentsForUserResponse; pub mod get_comments_response_public_comment_; pub use self::get_comments_response_public_comment_::GetCommentsResponsePublicComment; pub mod get_comments_response_with_presence_public_comment_; pub use self::get_comments_response_with_presence_public_comment_::GetCommentsResponseWithPresencePublicComment; -pub mod get_domain_config_200_response; -pub use self::get_domain_config_200_response::GetDomainConfig200Response; -pub mod get_domain_configs_200_response; -pub use self::get_domain_configs_200_response::GetDomainConfigs200Response; -pub mod get_domain_configs_200_response_any_of; -pub use self::get_domain_configs_200_response_any_of::GetDomainConfigs200ResponseAnyOf; -pub mod get_domain_configs_200_response_any_of_1; -pub use self::get_domain_configs_200_response_any_of_1::GetDomainConfigs200ResponseAnyOf1; -pub mod get_email_template_200_response; -pub use self::get_email_template_200_response::GetEmailTemplate200Response; -pub mod get_email_template_definitions_200_response; -pub use self::get_email_template_definitions_200_response::GetEmailTemplateDefinitions200Response; +pub mod get_domain_config_response; +pub use self::get_domain_config_response::GetDomainConfigResponse; +pub mod get_domain_configs_response; +pub use self::get_domain_configs_response::GetDomainConfigsResponse; +pub mod get_domain_configs_response_any_of; +pub use self::get_domain_configs_response_any_of::GetDomainConfigsResponseAnyOf; +pub mod get_domain_configs_response_any_of_1; +pub use self::get_domain_configs_response_any_of_1::GetDomainConfigsResponseAnyOf1; pub mod get_email_template_definitions_response; pub use self::get_email_template_definitions_response::GetEmailTemplateDefinitionsResponse; -pub mod get_email_template_render_errors_200_response; -pub use self::get_email_template_render_errors_200_response::GetEmailTemplateRenderErrors200Response; pub mod get_email_template_render_errors_response; pub use self::get_email_template_render_errors_response::GetEmailTemplateRenderErrorsResponse; pub mod get_email_template_response; pub use self::get_email_template_response::GetEmailTemplateResponse; -pub mod get_email_templates_200_response; -pub use self::get_email_templates_200_response::GetEmailTemplates200Response; pub mod get_email_templates_response; pub use self::get_email_templates_response::GetEmailTemplatesResponse; -pub mod get_event_log_200_response; -pub use self::get_event_log_200_response::GetEventLog200Response; pub mod get_event_log_response; pub use self::get_event_log_response::GetEventLogResponse; -pub mod get_feed_posts_200_response; -pub use self::get_feed_posts_200_response::GetFeedPosts200Response; -pub mod get_feed_posts_public_200_response; -pub use self::get_feed_posts_public_200_response::GetFeedPostsPublic200Response; pub mod get_feed_posts_response; pub use self::get_feed_posts_response::GetFeedPostsResponse; -pub mod get_feed_posts_stats_200_response; -pub use self::get_feed_posts_stats_200_response::GetFeedPostsStats200Response; -pub mod get_hash_tags_200_response; -pub use self::get_hash_tags_200_response::GetHashTags200Response; +pub mod get_gifs_search_response; +pub use self::get_gifs_search_response::GetGifsSearchResponse; +pub mod get_gifs_trending_response; +pub use self::get_gifs_trending_response::GetGifsTrendingResponse; pub mod get_hash_tags_response; pub use self::get_hash_tags_response::GetHashTagsResponse; -pub mod get_moderator_200_response; -pub use self::get_moderator_200_response::GetModerator200Response; pub mod get_moderator_response; pub use self::get_moderator_response::GetModeratorResponse; -pub mod get_moderators_200_response; -pub use self::get_moderators_200_response::GetModerators200Response; pub mod get_moderators_response; pub use self::get_moderators_response::GetModeratorsResponse; pub mod get_my_notifications_response; pub use self::get_my_notifications_response::GetMyNotificationsResponse; -pub mod get_notification_count_200_response; -pub use self::get_notification_count_200_response::GetNotificationCount200Response; pub mod get_notification_count_response; pub use self::get_notification_count_response::GetNotificationCountResponse; -pub mod get_notifications_200_response; -pub use self::get_notifications_200_response::GetNotifications200Response; pub mod get_notifications_response; pub use self::get_notifications_response::GetNotificationsResponse; pub mod get_page_by_urlid_api_response; pub use self::get_page_by_urlid_api_response::GetPageByUrlidApiResponse; pub mod get_pages_api_response; pub use self::get_pages_api_response::GetPagesApiResponse; -pub mod get_pending_webhook_event_count_200_response; -pub use self::get_pending_webhook_event_count_200_response::GetPendingWebhookEventCount200Response; pub mod get_pending_webhook_event_count_response; pub use self::get_pending_webhook_event_count_response::GetPendingWebhookEventCountResponse; -pub mod get_pending_webhook_events_200_response; -pub use self::get_pending_webhook_events_200_response::GetPendingWebhookEvents200Response; pub mod get_pending_webhook_events_response; pub use self::get_pending_webhook_events_response::GetPendingWebhookEventsResponse; pub mod get_public_feed_posts_response; pub use self::get_public_feed_posts_response::GetPublicFeedPostsResponse; -pub mod get_question_config_200_response; -pub use self::get_question_config_200_response::GetQuestionConfig200Response; +pub mod get_public_pages_response; +pub use self::get_public_pages_response::GetPublicPagesResponse; pub mod get_question_config_response; pub use self::get_question_config_response::GetQuestionConfigResponse; -pub mod get_question_configs_200_response; -pub use self::get_question_configs_200_response::GetQuestionConfigs200Response; pub mod get_question_configs_response; pub use self::get_question_configs_response::GetQuestionConfigsResponse; -pub mod get_question_result_200_response; -pub use self::get_question_result_200_response::GetQuestionResult200Response; pub mod get_question_result_response; pub use self::get_question_result_response::GetQuestionResultResponse; -pub mod get_question_results_200_response; -pub use self::get_question_results_200_response::GetQuestionResults200Response; pub mod get_question_results_response; pub use self::get_question_results_response::GetQuestionResultsResponse; pub mod get_sso_user_by_email_api_response; pub use self::get_sso_user_by_email_api_response::GetSsoUserByEmailApiResponse; pub mod get_sso_user_by_id_api_response; pub use self::get_sso_user_by_id_api_response::GetSsoUserByIdApiResponse; -pub mod get_sso_users_200_response; -pub use self::get_sso_users_200_response::GetSsoUsers200Response; +pub mod get_sso_users_response; +pub use self::get_sso_users_response::GetSsoUsersResponse; pub mod get_subscriptions_api_response; pub use self::get_subscriptions_api_response::GetSubscriptionsApiResponse; -pub mod get_tenant_200_response; -pub use self::get_tenant_200_response::GetTenant200Response; -pub mod get_tenant_daily_usages_200_response; -pub use self::get_tenant_daily_usages_200_response::GetTenantDailyUsages200Response; pub mod get_tenant_daily_usages_response; pub use self::get_tenant_daily_usages_response::GetTenantDailyUsagesResponse; -pub mod get_tenant_package_200_response; -pub use self::get_tenant_package_200_response::GetTenantPackage200Response; +pub mod get_tenant_manual_badges_response; +pub use self::get_tenant_manual_badges_response::GetTenantManualBadgesResponse; pub mod get_tenant_package_response; pub use self::get_tenant_package_response::GetTenantPackageResponse; -pub mod get_tenant_packages_200_response; -pub use self::get_tenant_packages_200_response::GetTenantPackages200Response; pub mod get_tenant_packages_response; pub use self::get_tenant_packages_response::GetTenantPackagesResponse; pub mod get_tenant_response; pub use self::get_tenant_response::GetTenantResponse; -pub mod get_tenant_user_200_response; -pub use self::get_tenant_user_200_response::GetTenantUser200Response; pub mod get_tenant_user_response; pub use self::get_tenant_user_response::GetTenantUserResponse; -pub mod get_tenant_users_200_response; -pub use self::get_tenant_users_200_response::GetTenantUsers200Response; pub mod get_tenant_users_response; pub use self::get_tenant_users_response::GetTenantUsersResponse; -pub mod get_tenants_200_response; -pub use self::get_tenants_200_response::GetTenants200Response; pub mod get_tenants_response; pub use self::get_tenants_response::GetTenantsResponse; -pub mod get_ticket_200_response; -pub use self::get_ticket_200_response::GetTicket200Response; pub mod get_ticket_response; pub use self::get_ticket_response::GetTicketResponse; -pub mod get_tickets_200_response; -pub use self::get_tickets_200_response::GetTickets200Response; pub mod get_tickets_response; pub use self::get_tickets_response::GetTicketsResponse; -pub mod get_user_200_response; -pub use self::get_user_200_response::GetUser200Response; -pub mod get_user_badge_200_response; -pub use self::get_user_badge_200_response::GetUserBadge200Response; -pub mod get_user_badge_progress_by_id_200_response; -pub use self::get_user_badge_progress_by_id_200_response::GetUserBadgeProgressById200Response; -pub mod get_user_badge_progress_list_200_response; -pub use self::get_user_badge_progress_list_200_response::GetUserBadgeProgressList200Response; -pub mod get_user_badges_200_response; -pub use self::get_user_badges_200_response::GetUserBadges200Response; -pub mod get_user_notification_count_200_response; -pub use self::get_user_notification_count_200_response::GetUserNotificationCount200Response; +pub mod get_translations_response; +pub use self::get_translations_response::GetTranslationsResponse; +pub mod get_user_internal_profile_response; +pub use self::get_user_internal_profile_response::GetUserInternalProfileResponse; +pub mod get_user_internal_profile_response_profile; +pub use self::get_user_internal_profile_response_profile::GetUserInternalProfileResponseProfile; +pub mod get_user_manual_badges_response; +pub use self::get_user_manual_badges_response::GetUserManualBadgesResponse; pub mod get_user_notification_count_response; pub use self::get_user_notification_count_response::GetUserNotificationCountResponse; -pub mod get_user_notifications_200_response; -pub use self::get_user_notifications_200_response::GetUserNotifications200Response; -pub mod get_user_presence_statuses_200_response; -pub use self::get_user_presence_statuses_200_response::GetUserPresenceStatuses200Response; pub mod get_user_presence_statuses_response; pub use self::get_user_presence_statuses_response::GetUserPresenceStatusesResponse; -pub mod get_user_reacts_public_200_response; -pub use self::get_user_reacts_public_200_response::GetUserReactsPublic200Response; pub mod get_user_response; pub use self::get_user_response::GetUserResponse; -pub mod get_votes_200_response; -pub use self::get_votes_200_response::GetVotes200Response; -pub mod get_votes_for_user_200_response; -pub use self::get_votes_for_user_200_response::GetVotesForUser200Response; +pub mod get_user_trust_factor_response; +pub use self::get_user_trust_factor_response::GetUserTrustFactorResponse; +pub mod get_v1_page_likes; +pub use self::get_v1_page_likes::GetV1PageLikes; +pub mod get_v2_page_react_users_response; +pub use self::get_v2_page_react_users_response::GetV2PageReactUsersResponse; +pub mod get_v2_page_reacts; +pub use self::get_v2_page_reacts::GetV2PageReacts; pub mod get_votes_for_user_response; pub use self::get_votes_for_user_response::GetVotesForUserResponse; pub mod get_votes_response; pub use self::get_votes_response::GetVotesResponse; +pub mod gif_get_large_response; +pub use self::gif_get_large_response::GifGetLargeResponse; pub mod gif_rating; pub use self::gif_rating::GifRating; +pub mod gif_search_internal_error; +pub use self::gif_search_internal_error::GifSearchInternalError; +pub mod gif_search_response; +pub use self::gif_search_response::GifSearchResponse; +pub mod gif_search_response_images_inner_inner; +pub use self::gif_search_response_images_inner_inner::GifSearchResponseImagesInnerInner; pub mod header_account_notification; pub use self::header_account_notification::HeaderAccountNotification; pub mod header_state; @@ -486,6 +434,8 @@ pub mod ignored_response; pub use self::ignored_response::IgnoredResponse; pub mod image_content_profanity_level; pub use self::image_content_profanity_level::ImageContentProfanityLevel; +pub mod imported_agent_approval_notification_frequency; +pub use self::imported_agent_approval_notification_frequency::ImportedAgentApprovalNotificationFrequency; pub mod imported_site_type; pub use self::imported_site_type::ImportedSiteType; pub mod live_event; @@ -494,14 +444,50 @@ pub mod live_event_extra_info; pub use self::live_event_extra_info::LiveEventExtraInfo; pub mod live_event_type; pub use self::live_event_type::LiveEventType; -pub mod lock_comment_200_response; -pub use self::lock_comment_200_response::LockComment200Response; pub mod media_asset; pub use self::media_asset::MediaAsset; pub mod mention_auto_complete_mode; pub use self::mention_auto_complete_mode::MentionAutoCompleteMode; pub mod meta_item; pub use self::meta_item::MetaItem; +pub mod moderation_api_child_comments_response; +pub use self::moderation_api_child_comments_response::ModerationApiChildCommentsResponse; +pub mod moderation_api_comment; +pub use self::moderation_api_comment::ModerationApiComment; +pub mod moderation_api_comment_log; +pub use self::moderation_api_comment_log::ModerationApiCommentLog; +pub mod moderation_api_comment_response; +pub use self::moderation_api_comment_response::ModerationApiCommentResponse; +pub mod moderation_api_count_comments_response; +pub use self::moderation_api_count_comments_response::ModerationApiCountCommentsResponse; +pub mod moderation_api_get_comment_ids_response; +pub use self::moderation_api_get_comment_ids_response::ModerationApiGetCommentIdsResponse; +pub mod moderation_api_get_comments_response; +pub use self::moderation_api_get_comments_response::ModerationApiGetCommentsResponse; +pub mod moderation_api_get_logs_response; +pub use self::moderation_api_get_logs_response::ModerationApiGetLogsResponse; +pub mod moderation_comment_search_response; +pub use self::moderation_comment_search_response::ModerationCommentSearchResponse; +pub mod moderation_export_response; +pub use self::moderation_export_response::ModerationExportResponse; +pub mod moderation_export_status_response; +pub use self::moderation_export_status_response::ModerationExportStatusResponse; +pub mod moderation_filter; +pub use self::moderation_filter::ModerationFilter; +pub mod moderation_page_search_projected; +pub use self::moderation_page_search_projected::ModerationPageSearchProjected; +pub mod moderation_page_search_response; +pub use self::moderation_page_search_response::ModerationPageSearchResponse; +pub mod moderation_site_search_projected; +pub use self::moderation_site_search_projected::ModerationSiteSearchProjected; +pub mod moderation_site_search_response; +pub use self::moderation_site_search_response::ModerationSiteSearchResponse; +pub mod moderation_suggest_response; +pub use self::moderation_suggest_response::ModerationSuggestResponse; +pub mod moderation_user_search_projected; +pub use self::moderation_user_search_projected::ModerationUserSearchProjected; +pub mod moderation_user_search_response; +pub use self::moderation_user_search_response::ModerationUserSearchResponse; pub mod moderator; pub use self::moderator::Moderator; pub mod notification_and_count; @@ -510,18 +496,30 @@ pub mod notification_object_type; pub use self::notification_object_type::NotificationObjectType; pub mod notification_type; pub use self::notification_type::NotificationType; +pub mod page_user_entry; +pub use self::page_user_entry::PageUserEntry; +pub mod page_users_info_response; +pub use self::page_users_info_response::PageUsersInfoResponse; +pub mod page_users_offline_response; +pub use self::page_users_offline_response::PageUsersOfflineResponse; +pub mod page_users_online_response; +pub use self::page_users_online_response::PageUsersOnlineResponse; +pub mod pages_sort_by; +pub use self::pages_sort_by::PagesSortBy; pub mod patch_domain_config_params; pub use self::patch_domain_config_params::PatchDomainConfigParams; -pub mod patch_hash_tag_200_response; -pub use self::patch_hash_tag_200_response::PatchHashTag200Response; +pub mod patch_domain_config_response; +pub use self::patch_domain_config_response::PatchDomainConfigResponse; pub mod patch_page_api_response; pub use self::patch_page_api_response::PatchPageApiResponse; 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 pin_comment_200_response; -pub use self::pin_comment_200_response::PinComment200Response; +pub mod post_remove_comment_response; +pub use self::post_remove_comment_response::PostRemoveCommentResponse; +pub mod pre_ban_summary; +pub use self::pre_ban_summary::PreBanSummary; pub mod pub_sub_comment; pub use self::pub_sub_comment::PubSubComment; pub mod pub_sub_comment_base; @@ -542,8 +540,12 @@ pub mod public_comment_base; pub use self::public_comment_base::PublicCommentBase; pub mod public_feed_posts_response; pub use self::public_feed_posts_response::PublicFeedPostsResponse; +pub mod public_page; +pub use self::public_page::PublicPage; pub mod public_vote; pub use self::public_vote::PublicVote; +pub mod put_domain_config_response; +pub use self::put_domain_config_response::PutDomainConfigResponse; pub mod put_sso_user_api_response; pub use self::put_sso_user_api_response::PutSsoUserApiResponse; pub mod query_predicate; @@ -568,16 +570,14 @@ pub mod question_when_save; pub use self::question_when_save::QuestionWhenSave; pub mod react_body_params; pub use self::react_body_params::ReactBodyParams; -pub mod react_feed_post_public_200_response; -pub use self::react_feed_post_public_200_response::ReactFeedPostPublic200Response; pub mod react_feed_post_response; pub use self::react_feed_post_response::ReactFeedPostResponse; pub mod record_string__before_string_or_null__after_string_or_null___value; pub use self::record_string__before_string_or_null__after_string_or_null___value::RecordStringBeforeStringOrNullAfterStringOrNullValue; -pub mod record_string_string_or_number__value; -pub use self::record_string_string_or_number__value::RecordStringStringOrNumberValue; -pub mod render_email_template_200_response; -pub use self::render_email_template_200_response::RenderEmailTemplate200Response; +pub mod remove_comment_action_response; +pub use self::remove_comment_action_response::RemoveCommentActionResponse; +pub mod remove_user_badge_response; +pub use self::remove_user_badge_response::RemoveUserBadgeResponse; pub mod render_email_template_body; pub use self::render_email_template_body::RenderEmailTemplateBody; pub mod render_email_template_response; @@ -592,28 +592,30 @@ pub mod replace_tenant_package_body; pub use self::replace_tenant_package_body::ReplaceTenantPackageBody; pub mod replace_tenant_user_body; pub use self::replace_tenant_user_body::ReplaceTenantUserBody; -pub mod reset_user_notifications_200_response; -pub use self::reset_user_notifications_200_response::ResetUserNotifications200Response; pub mod reset_user_notifications_response; pub use self::reset_user_notifications_response::ResetUserNotificationsResponse; -pub mod save_comment_200_response; -pub use self::save_comment_200_response::SaveComment200Response; -pub mod save_comment_response; -pub use self::save_comment_response::SaveCommentResponse; pub mod save_comment_response_optimized; pub use self::save_comment_response_optimized::SaveCommentResponseOptimized; +pub mod save_comments_bulk_response; +pub use self::save_comments_bulk_response::SaveCommentsBulkResponse; pub mod save_comments_response_with_presence; pub use self::save_comments_response_with_presence::SaveCommentsResponseWithPresence; -pub mod search_users_200_response; -pub use self::search_users_200_response::SearchUsers200Response; pub mod search_users_response; pub use self::search_users_response::SearchUsersResponse; +pub mod search_users_result; +pub use self::search_users_result::SearchUsersResult; pub mod search_users_sectioned_response; pub use self::search_users_sectioned_response::SearchUsersSectionedResponse; -pub mod set_comment_text_200_response; -pub use self::set_comment_text_200_response::SetCommentText200Response; +pub mod set_comment_approved_response; +pub use self::set_comment_approved_response::SetCommentApprovedResponse; +pub mod set_comment_text_params; +pub use self::set_comment_text_params::SetCommentTextParams; +pub mod set_comment_text_response; +pub use self::set_comment_text_response::SetCommentTextResponse; pub mod set_comment_text_result; pub use self::set_comment_text_result::SetCommentTextResult; +pub mod set_user_trust_factor_response; +pub use self::set_user_trust_factor_response::SetUserTrustFactorResponse; pub mod size_preset; pub use self::size_preset::SizePreset; pub mod sort_dir; @@ -624,14 +626,14 @@ pub mod spam_rule; pub use self::spam_rule::SpamRule; pub mod sso_security_level; pub use self::sso_security_level::SsoSecurityLevel; +pub mod tenant_badge; +pub use self::tenant_badge::TenantBadge; pub mod tenant_hash_tag; pub use self::tenant_hash_tag::TenantHashTag; pub mod tenant_package; pub use self::tenant_package::TenantPackage; pub mod tos_config; pub use self::tos_config::TosConfig; -pub mod un_block_comment_public_200_response; -pub use self::un_block_comment_public_200_response::UnBlockCommentPublic200Response; pub mod un_block_from_comment_params; pub use self::un_block_from_comment_params::UnBlockFromCommentParams; pub mod unblock_success; @@ -670,12 +672,14 @@ pub mod update_tenant_package_body; pub use self::update_tenant_package_body::UpdateTenantPackageBody; pub mod update_tenant_user_body; pub use self::update_tenant_user_body::UpdateTenantUserBody; -pub mod update_user_badge_200_response; -pub use self::update_user_badge_200_response::UpdateUserBadge200Response; pub mod update_user_badge_params; pub use self::update_user_badge_params::UpdateUserBadgeParams; -pub mod update_user_notification_status_200_response; -pub use self::update_user_notification_status_200_response::UpdateUserNotificationStatus200Response; +pub mod update_user_notification_comment_subscription_status_response; +pub use self::update_user_notification_comment_subscription_status_response::UpdateUserNotificationCommentSubscriptionStatusResponse; +pub mod update_user_notification_page_subscription_status_response; +pub use self::update_user_notification_page_subscription_status_response::UpdateUserNotificationPageSubscriptionStatusResponse; +pub mod update_user_notification_status_response; +pub use self::update_user_notification_status_response::UpdateUserNotificationStatusResponse; pub mod upload_image_response; pub use self::upload_image_response::UploadImageResponse; pub mod user; @@ -702,10 +706,10 @@ pub mod user_search_section_result; pub use self::user_search_section_result::UserSearchSectionResult; pub mod user_session_info; pub use self::user_session_info::UserSessionInfo; +pub mod users_list_location; +pub use self::users_list_location::UsersListLocation; pub mod vote_body_params; pub use self::vote_body_params::VoteBodyParams; -pub mod vote_comment_200_response; -pub use self::vote_comment_200_response::VoteComment200Response; pub mod vote_delete_response; pub use self::vote_delete_response::VoteDeleteResponse; pub mod vote_response; diff --git a/client/src/models/moderation_api_child_comments_response.rs b/client/src/models/moderation_api_child_comments_response.rs new file mode 100644 index 0000000..211520e --- /dev/null +++ b/client/src/models/moderation_api_child_comments_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationApiChildCommentsResponse { + #[serde(rename = "comments")] + pub comments: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ModerationApiChildCommentsResponse { + pub fn new(comments: Vec, status: models::ApiStatus) -> ModerationApiChildCommentsResponse { + ModerationApiChildCommentsResponse { + comments, + status, + } + } +} + diff --git a/client/src/models/moderation_api_comment.rs b/client/src/models/moderation_api_comment.rs new file mode 100644 index 0000000..c1985f6 --- /dev/null +++ b/client/src/models/moderation_api_comment.rs @@ -0,0 +1,150 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationApiComment { + #[serde(rename = "isLocalDeleted", skip_serializing_if = "Option::is_none")] + pub is_local_deleted: Option, + #[serde(rename = "replyCount", skip_serializing_if = "Option::is_none")] + pub reply_count: Option, + #[serde(rename = "feedbackResults", skip_serializing_if = "Option::is_none")] + pub feedback_results: Option>, + #[serde(rename = "isVotedUp", skip_serializing_if = "Option::is_none")] + pub is_voted_up: Option, + #[serde(rename = "isVotedDown", skip_serializing_if = "Option::is_none")] + pub is_voted_down: Option, + #[serde(rename = "myVoteId", skip_serializing_if = "Option::is_none")] + pub my_vote_id: Option, + #[serde(rename = "_id")] + pub _id: String, + #[serde(rename = "tenantId")] + pub tenant_id: String, + #[serde(rename = "urlId")] + pub url_id: String, + #[serde(rename = "url")] + pub url: String, + #[serde(rename = "pageTitle", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub page_title: Option>, + #[serde(rename = "userId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user_id: Option>, + #[serde(rename = "anonUserId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub anon_user_id: Option>, + #[serde(rename = "commenterName")] + pub commenter_name: String, + #[serde(rename = "commenterLink", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub commenter_link: Option>, + #[serde(rename = "commentHTML")] + pub comment_html: String, + #[serde(rename = "parentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub parent_id: Option>, + #[serde(rename = "date", deserialize_with = "Option::deserialize")] + pub date: Option>, + #[serde(rename = "localDateString", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub local_date_string: Option>, + #[serde(rename = "votes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub votes: Option>, + #[serde(rename = "votesUp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub votes_up: Option>, + #[serde(rename = "votesDown", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub votes_down: Option>, + #[serde(rename = "expireAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub expire_at: Option>>, + #[serde(rename = "reviewed", skip_serializing_if = "Option::is_none")] + pub reviewed: Option, + #[serde(rename = "avatarSrc", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar_src: Option>, + #[serde(rename = "isSpam", skip_serializing_if = "Option::is_none")] + pub is_spam: Option, + #[serde(rename = "permNotSpam", skip_serializing_if = "Option::is_none")] + pub perm_not_spam: Option, + #[serde(rename = "hasLinks", skip_serializing_if = "Option::is_none")] + pub has_links: Option, + #[serde(rename = "hasCode", skip_serializing_if = "Option::is_none")] + pub has_code: Option, + #[serde(rename = "approved")] + pub approved: bool, + #[serde(rename = "locale", deserialize_with = "Option::deserialize")] + pub locale: Option, + #[serde(rename = "isBannedUser", skip_serializing_if = "Option::is_none")] + pub is_banned_user: Option, + #[serde(rename = "isByAdmin", skip_serializing_if = "Option::is_none")] + pub is_by_admin: Option, + #[serde(rename = "isByModerator", skip_serializing_if = "Option::is_none")] + pub is_by_moderator: Option, + #[serde(rename = "isPinned", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_pinned: Option>, + #[serde(rename = "isLocked", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub is_locked: Option>, + #[serde(rename = "flagCount", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub flag_count: Option>, + #[serde(rename = "displayLabel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub display_label: Option>, + #[serde(rename = "badges", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub badges: Option>>, + #[serde(rename = "verified")] + pub verified: bool, + #[serde(rename = "feedbackIds", skip_serializing_if = "Option::is_none")] + pub feedback_ids: Option>, + #[serde(rename = "isDeleted", skip_serializing_if = "Option::is_none")] + pub is_deleted: Option, +} + +impl ModerationApiComment { + pub fn new(_id: String, tenant_id: String, url_id: String, url: String, commenter_name: String, comment_html: String, date: Option>, approved: bool, locale: Option, verified: bool) -> ModerationApiComment { + ModerationApiComment { + is_local_deleted: None, + reply_count: None, + feedback_results: None, + is_voted_up: None, + is_voted_down: None, + my_vote_id: None, + _id, + tenant_id, + url_id, + url, + page_title: None, + user_id: None, + anon_user_id: None, + commenter_name, + commenter_link: None, + comment_html, + parent_id: None, + date, + local_date_string: None, + votes: None, + votes_up: None, + votes_down: None, + expire_at: None, + reviewed: None, + avatar_src: None, + is_spam: None, + perm_not_spam: None, + has_links: None, + has_code: None, + approved, + locale, + is_banned_user: None, + is_by_admin: None, + is_by_moderator: None, + is_pinned: None, + is_locked: None, + flag_count: None, + display_label: None, + badges: None, + verified, + feedback_ids: None, + is_deleted: None, + } + } +} + diff --git a/client/src/models/moderation_api_comment_log.rs b/client/src/models/moderation_api_comment_log.rs new file mode 100644 index 0000000..9e700e2 --- /dev/null +++ b/client/src/models/moderation_api_comment_log.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationApiCommentLog { + #[serde(rename = "date")] + pub date: chrono::DateTime, + #[serde(rename = "username", skip_serializing_if = "Option::is_none")] + pub username: Option, + #[serde(rename = "actionName")] + pub action_name: String, + #[serde(rename = "messageHTML")] + pub message_html: String, +} + +impl ModerationApiCommentLog { + pub fn new(date: chrono::DateTime, action_name: String, message_html: String) -> ModerationApiCommentLog { + ModerationApiCommentLog { + date, + username: None, + action_name, + message_html, + } + } +} + diff --git a/client/src/models/moderation_api_comment_response.rs b/client/src/models/moderation_api_comment_response.rs new file mode 100644 index 0000000..a8a2bbf --- /dev/null +++ b/client/src/models/moderation_api_comment_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationApiCommentResponse { + #[serde(rename = "comment")] + pub comment: Box, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ModerationApiCommentResponse { + pub fn new(comment: models::ModerationApiComment, status: models::ApiStatus) -> ModerationApiCommentResponse { + ModerationApiCommentResponse { + comment: Box::new(comment), + status, + } + } +} + diff --git a/client/src/models/moderation_api_count_comments_response.rs b/client/src/models/moderation_api_count_comments_response.rs new file mode 100644 index 0000000..65c9bf0 --- /dev/null +++ b/client/src/models/moderation_api_count_comments_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationApiCountCommentsResponse { + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "count")] + pub count: f64, +} + +impl ModerationApiCountCommentsResponse { + pub fn new(status: models::ApiStatus, count: f64) -> ModerationApiCountCommentsResponse { + ModerationApiCountCommentsResponse { + status, + count, + } + } +} + diff --git a/client/src/models/moderation_api_get_comment_ids_response.rs b/client/src/models/moderation_api_get_comment_ids_response.rs new file mode 100644 index 0000000..0958b23 --- /dev/null +++ b/client/src/models/moderation_api_get_comment_ids_response.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationApiGetCommentIdsResponse { + #[serde(rename = "ids")] + pub ids: Vec, + #[serde(rename = "hasMore")] + pub has_more: bool, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ModerationApiGetCommentIdsResponse { + pub fn new(ids: Vec, has_more: bool, status: models::ApiStatus) -> ModerationApiGetCommentIdsResponse { + ModerationApiGetCommentIdsResponse { + ids, + has_more, + status, + } + } +} + diff --git a/client/src/models/moderation_api_get_comments_response.rs b/client/src/models/moderation_api_get_comments_response.rs new file mode 100644 index 0000000..52dcea7 --- /dev/null +++ b/client/src/models/moderation_api_get_comments_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationApiGetCommentsResponse { + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "translations")] + pub translations: serde_json::Value, + #[serde(rename = "comments")] + pub comments: Vec, + #[serde(rename = "moderationFilter", skip_serializing_if = "Option::is_none")] + pub moderation_filter: Option>, +} + +impl ModerationApiGetCommentsResponse { + pub fn new(status: models::ApiStatus, translations: serde_json::Value, comments: Vec) -> ModerationApiGetCommentsResponse { + ModerationApiGetCommentsResponse { + status, + translations, + comments, + moderation_filter: None, + } + } +} + diff --git a/client/src/models/moderation_api_get_logs_response.rs b/client/src/models/moderation_api_get_logs_response.rs new file mode 100644 index 0000000..7c7b978 --- /dev/null +++ b/client/src/models/moderation_api_get_logs_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationApiGetLogsResponse { + #[serde(rename = "logs")] + pub logs: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ModerationApiGetLogsResponse { + pub fn new(logs: Vec, status: models::ApiStatus) -> ModerationApiGetLogsResponse { + ModerationApiGetLogsResponse { + logs, + status, + } + } +} + diff --git a/client/src/models/moderation_comment_search_response.rs b/client/src/models/moderation_comment_search_response.rs new file mode 100644 index 0000000..7a271b6 --- /dev/null +++ b/client/src/models/moderation_comment_search_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationCommentSearchResponse { + #[serde(rename = "commentCount")] + pub comment_count: i32, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ModerationCommentSearchResponse { + pub fn new(comment_count: i32, status: models::ApiStatus) -> ModerationCommentSearchResponse { + ModerationCommentSearchResponse { + comment_count, + status, + } + } +} + diff --git a/client/src/models/moderation_export_response.rs b/client/src/models/moderation_export_response.rs new file mode 100644 index 0000000..a341c9b --- /dev/null +++ b/client/src/models/moderation_export_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationExportResponse { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "batchJobId")] + pub batch_job_id: String, +} + +impl ModerationExportResponse { + pub fn new(status: String, batch_job_id: String) -> ModerationExportResponse { + ModerationExportResponse { + status, + batch_job_id, + } + } +} + diff --git a/client/src/models/moderation_export_status_response.rs b/client/src/models/moderation_export_status_response.rs new file mode 100644 index 0000000..9f9949f --- /dev/null +++ b/client/src/models/moderation_export_status_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationExportStatusResponse { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "jobStatus")] + pub job_status: String, + #[serde(rename = "recordCount")] + pub record_count: i32, + #[serde(rename = "downloadUrl", skip_serializing_if = "Option::is_none")] + pub download_url: Option, +} + +impl ModerationExportStatusResponse { + pub fn new(status: String, job_status: String, record_count: i32) -> ModerationExportStatusResponse { + ModerationExportStatusResponse { + status, + job_status, + record_count, + download_url: None, + } + } +} + diff --git a/client/src/models/moderation_filter.rs b/client/src/models/moderation_filter.rs new file mode 100644 index 0000000..a501ed8 --- /dev/null +++ b/client/src/models/moderation_filter.rs @@ -0,0 +1,62 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationFilter { + #[serde(rename = "reviewed", skip_serializing_if = "Option::is_none")] + pub reviewed: Option, + #[serde(rename = "approved", skip_serializing_if = "Option::is_none")] + pub approved: Option, + #[serde(rename = "isSpam", skip_serializing_if = "Option::is_none")] + pub is_spam: Option, + #[serde(rename = "isBannedUser", skip_serializing_if = "Option::is_none")] + pub is_banned_user: Option, + #[serde(rename = "isLocked", skip_serializing_if = "Option::is_none")] + pub is_locked: Option, + #[serde(rename = "flagCountGt", skip_serializing_if = "Option::is_none")] + pub flag_count_gt: Option, + #[serde(rename = "userId", skip_serializing_if = "Option::is_none")] + pub user_id: Option, + #[serde(rename = "urlId", skip_serializing_if = "Option::is_none")] + pub url_id: Option, + #[serde(rename = "domain", skip_serializing_if = "Option::is_none")] + pub domain: Option, + #[serde(rename = "moderationGroupIds", skip_serializing_if = "Option::is_none")] + pub moderation_group_ids: Option>, + /// Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. + #[serde(rename = "commentTextSearch", skip_serializing_if = "Option::is_none")] + pub comment_text_search: Option>, + /// Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. + #[serde(rename = "exactCommentText", skip_serializing_if = "Option::is_none")] + pub exact_comment_text: Option, +} + +impl ModerationFilter { + pub fn new() -> ModerationFilter { + ModerationFilter { + reviewed: None, + approved: None, + is_spam: None, + is_banned_user: None, + is_locked: None, + flag_count_gt: None, + user_id: None, + url_id: None, + domain: None, + moderation_group_ids: None, + comment_text_search: None, + exact_comment_text: None, + } + } +} + diff --git a/client/src/models/moderation_page_search_projected.rs b/client/src/models/moderation_page_search_projected.rs new file mode 100644 index 0000000..3c351ce --- /dev/null +++ b/client/src/models/moderation_page_search_projected.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationPageSearchProjected { + #[serde(rename = "urlId")] + pub url_id: String, + #[serde(rename = "url")] + pub url: String, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "commentCount")] + pub comment_count: f64, +} + +impl ModerationPageSearchProjected { + pub fn new(url_id: String, url: String, title: String, comment_count: f64) -> ModerationPageSearchProjected { + ModerationPageSearchProjected { + url_id, + url, + title, + comment_count, + } + } +} + diff --git a/client/src/models/moderation_page_search_response.rs b/client/src/models/moderation_page_search_response.rs new file mode 100644 index 0000000..523fe72 --- /dev/null +++ b/client/src/models/moderation_page_search_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationPageSearchResponse { + #[serde(rename = "pages")] + pub pages: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ModerationPageSearchResponse { + pub fn new(pages: Vec, status: models::ApiStatus) -> ModerationPageSearchResponse { + ModerationPageSearchResponse { + pages, + status, + } + } +} + diff --git a/client/src/models/moderation_site_search_projected.rs b/client/src/models/moderation_site_search_projected.rs new file mode 100644 index 0000000..ddedff0 --- /dev/null +++ b/client/src/models/moderation_site_search_projected.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationSiteSearchProjected { + #[serde(rename = "domain")] + pub domain: String, + #[serde(rename = "logoSrc100px", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub logo_src100px: Option>, +} + +impl ModerationSiteSearchProjected { + pub fn new(domain: String) -> ModerationSiteSearchProjected { + ModerationSiteSearchProjected { + domain, + logo_src100px: None, + } + } +} + diff --git a/client/src/models/moderation_site_search_response.rs b/client/src/models/moderation_site_search_response.rs new file mode 100644 index 0000000..6808df1 --- /dev/null +++ b/client/src/models/moderation_site_search_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationSiteSearchResponse { + #[serde(rename = "sites")] + pub sites: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ModerationSiteSearchResponse { + pub fn new(sites: Vec, status: models::ApiStatus) -> ModerationSiteSearchResponse { + ModerationSiteSearchResponse { + sites, + status, + } + } +} + diff --git a/client/src/models/moderation_suggest_response.rs b/client/src/models/moderation_suggest_response.rs new file mode 100644 index 0000000..b980695 --- /dev/null +++ b/client/src/models/moderation_suggest_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationSuggestResponse { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "pages", skip_serializing_if = "Option::is_none")] + pub pages: Option>, + #[serde(rename = "users", skip_serializing_if = "Option::is_none")] + pub users: Option>, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, +} + +impl ModerationSuggestResponse { + pub fn new(status: String) -> ModerationSuggestResponse { + ModerationSuggestResponse { + status, + pages: None, + users: None, + code: None, + } + } +} + diff --git a/client/src/models/moderation_user_search_projected.rs b/client/src/models/moderation_user_search_projected.rs new file mode 100644 index 0000000..edbf4ac --- /dev/null +++ b/client/src/models/moderation_user_search_projected.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationUserSearchProjected { + #[serde(rename = "_id")] + pub _id: String, + #[serde(rename = "username")] + pub username: String, + #[serde(rename = "displayName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub display_name: Option>, + #[serde(rename = "avatarSrc", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub avatar_src: Option>, +} + +impl ModerationUserSearchProjected { + pub fn new(_id: String, username: String) -> ModerationUserSearchProjected { + ModerationUserSearchProjected { + _id, + username, + display_name: None, + avatar_src: None, + } + } +} + diff --git a/client/src/models/moderation_user_search_response.rs b/client/src/models/moderation_user_search_response.rs new file mode 100644 index 0000000..094d142 --- /dev/null +++ b/client/src/models/moderation_user_search_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct ModerationUserSearchResponse { + #[serde(rename = "users")] + pub users: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl ModerationUserSearchResponse { + pub fn new(users: Vec, status: models::ApiStatus) -> ModerationUserSearchResponse { + ModerationUserSearchResponse { + users, + status, + } + } +} + diff --git a/client/src/models/moderator.rs b/client/src/models/moderator.rs index 6926001..f10a4c0 100644 --- a/client/src/models/moderator.rs +++ b/client/src/models/moderator.rs @@ -46,7 +46,7 @@ pub struct Moderator { #[serde(rename = "verificationId", deserialize_with = "Option::deserialize")] pub verification_id: Option, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "moderationGroupIds", deserialize_with = "Option::deserialize")] pub moderation_group_ids: Option>, #[serde(rename = "isEmailSuppressed", skip_serializing_if = "Option::is_none")] @@ -54,7 +54,7 @@ pub struct Moderator { } impl Moderator { - pub fn new(_id: String, tenant_id: String, name: Option, user_id: Option, accepted_invite: bool, email: Option, mark_reviewed_count: f64, deleted_count: f64, marked_spam_count: f64, marked_not_spam_count: f64, approved_count: f64, un_approved_count: f64, edited_count: f64, banned_count: f64, un_flagged_count: f64, verification_id: Option, created_at: String, moderation_group_ids: Option>) -> Moderator { + pub fn new(_id: String, tenant_id: String, name: Option, user_id: Option, accepted_invite: bool, email: Option, mark_reviewed_count: f64, deleted_count: f64, marked_spam_count: f64, marked_not_spam_count: f64, approved_count: f64, un_approved_count: f64, edited_count: f64, banned_count: f64, un_flagged_count: f64, verification_id: Option, created_at: chrono::DateTime, moderation_group_ids: Option>) -> Moderator { Moderator { _id, tenant_id, diff --git a/client/src/models/page_user_entry.rs b/client/src/models/page_user_entry.rs new file mode 100644 index 0000000..884cf59 --- /dev/null +++ b/client/src/models/page_user_entry.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PageUserEntry { + #[serde(rename = "isPrivate", skip_serializing_if = "Option::is_none")] + pub is_private: Option, + #[serde(rename = "avatarSrc", skip_serializing_if = "Option::is_none")] + pub avatar_src: Option, + #[serde(rename = "displayName")] + pub display_name: String, + #[serde(rename = "id")] + pub id: String, +} + +impl PageUserEntry { + pub fn new(display_name: String, id: String) -> PageUserEntry { + PageUserEntry { + is_private: None, + avatar_src: None, + display_name, + id, + } + } +} + diff --git a/client/src/models/page_users_info_response.rs b/client/src/models/page_users_info_response.rs new file mode 100644 index 0000000..94201c1 --- /dev/null +++ b/client/src/models/page_users_info_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PageUsersInfoResponse { + #[serde(rename = "users")] + pub users: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl PageUsersInfoResponse { + pub fn new(users: Vec, status: models::ApiStatus) -> PageUsersInfoResponse { + PageUsersInfoResponse { + users, + status, + } + } +} + diff --git a/client/src/models/page_users_offline_response.rs b/client/src/models/page_users_offline_response.rs new file mode 100644 index 0000000..4c47c64 --- /dev/null +++ b/client/src/models/page_users_offline_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PageUsersOfflineResponse { + #[serde(rename = "nextAfterUserId", deserialize_with = "Option::deserialize")] + pub next_after_user_id: Option, + #[serde(rename = "nextAfterName", deserialize_with = "Option::deserialize")] + pub next_after_name: Option, + #[serde(rename = "users")] + pub users: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl PageUsersOfflineResponse { + pub fn new(next_after_user_id: Option, next_after_name: Option, users: Vec, status: models::ApiStatus) -> PageUsersOfflineResponse { + PageUsersOfflineResponse { + next_after_user_id, + next_after_name, + users, + status, + } + } +} + diff --git a/client/src/models/page_users_online_response.rs b/client/src/models/page_users_online_response.rs new file mode 100644 index 0000000..3caa6e4 --- /dev/null +++ b/client/src/models/page_users_online_response.rs @@ -0,0 +1,42 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PageUsersOnlineResponse { + #[serde(rename = "nextAfterUserId", deserialize_with = "Option::deserialize")] + pub next_after_user_id: Option, + #[serde(rename = "nextAfterName", deserialize_with = "Option::deserialize")] + pub next_after_name: Option, + #[serde(rename = "totalCount")] + pub total_count: f64, + #[serde(rename = "anonCount")] + pub anon_count: f64, + #[serde(rename = "users")] + pub users: Vec, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl PageUsersOnlineResponse { + pub fn new(next_after_user_id: Option, next_after_name: Option, total_count: f64, anon_count: f64, users: Vec, status: models::ApiStatus) -> PageUsersOnlineResponse { + PageUsersOnlineResponse { + next_after_user_id, + next_after_name, + total_count, + anon_count, + users, + status, + } + } +} + diff --git a/client/src/models/pages_sort_by.rs b/client/src/models/pages_sort_by.rs new file mode 100644 index 0000000..9a94e33 --- /dev/null +++ b/client/src/models/pages_sort_by.rs @@ -0,0 +1,41 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum PagesSortBy { + #[serde(rename = "updatedAt")] + UpdatedAt, + #[serde(rename = "commentCount")] + CommentCount, + #[serde(rename = "title")] + Title, + +} + +impl std::fmt::Display for PagesSortBy { + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + match self { + Self::UpdatedAt => write!(f, "updatedAt"), + Self::CommentCount => write!(f, "commentCount"), + Self::Title => write!(f, "title"), + } + } +} + +impl Default for PagesSortBy { + fn default() -> PagesSortBy { + Self::UpdatedAt + } +} + diff --git a/client/src/models/patch_domain_config_response.rs b/client/src/models/patch_domain_config_response.rs new file mode 100644 index 0000000..859ad86 --- /dev/null +++ b/client/src/models/patch_domain_config_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PatchDomainConfigResponse { + #[serde(rename = "configuration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub configuration: Option>, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, +} + +impl PatchDomainConfigResponse { + pub fn new(status: Option) -> PatchDomainConfigResponse { + PatchDomainConfigResponse { + configuration: None, + status, + reason: None, + code: None, + } + } +} + diff --git a/client/src/models/patch_hash_tag_200_response.rs b/client/src/models/patch_hash_tag_200_response.rs deleted file mode 100644 index 0a330e6..0000000 --- a/client/src/models/patch_hash_tag_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct PatchHashTag200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "hashTag")] - pub hash_tag: Box, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl PatchHashTag200Response { - pub fn new(status: models::ApiStatus, hash_tag: models::TenantHashTag, reason: String, code: String) -> PatchHashTag200Response { - PatchHashTag200Response { - status, - hash_tag: Box::new(hash_tag), - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/pending_comment_to_sync_outbound.rs b/client/src/models/pending_comment_to_sync_outbound.rs index a97e2b1..851d7e5 100644 --- a/client/src/models/pending_comment_to_sync_outbound.rs +++ b/client/src/models/pending_comment_to_sync_outbound.rs @@ -22,13 +22,13 @@ pub struct PendingCommentToSyncOutbound { #[serde(rename = "externalId", deserialize_with = "Option::deserialize")] pub external_id: Option, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "tenantId")] pub tenant_id: String, #[serde(rename = "attemptCount")] pub attempt_count: f64, #[serde(rename = "nextAttemptAt")] - pub next_attempt_at: String, + pub next_attempt_at: chrono::DateTime, #[serde(rename = "eventType")] pub event_type: f64, #[serde(rename = "type")] @@ -42,7 +42,7 @@ pub struct PendingCommentToSyncOutbound { } impl PendingCommentToSyncOutbound { - pub fn new(_id: String, comment_id: String, external_id: Option, created_at: String, tenant_id: String, attempt_count: f64, next_attempt_at: String, event_type: f64, r#type: f64, domain: String, last_error: serde_json::Value) -> PendingCommentToSyncOutbound { + pub fn new(_id: String, comment_id: String, external_id: Option, created_at: chrono::DateTime, tenant_id: String, attempt_count: f64, next_attempt_at: chrono::DateTime, event_type: f64, r#type: f64, domain: String, last_error: serde_json::Value) -> PendingCommentToSyncOutbound { PendingCommentToSyncOutbound { _id, comment_id, diff --git a/client/src/models/pin_comment_200_response.rs b/client/src/models/pin_comment_200_response.rs deleted file mode 100644 index 5f0559a..0000000 --- a/client/src/models/pin_comment_200_response.rs +++ /dev/null @@ -1,52 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct PinComment200Response { - /// Construct a type with a set of properties K of type T - #[serde(rename = "commentPositions")] - pub comment_positions: std::collections::HashMap, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl PinComment200Response { - pub fn new(comment_positions: std::collections::HashMap, status: models::ApiStatus, reason: String, code: String) -> PinComment200Response { - PinComment200Response { - comment_positions, - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/post_remove_comment_response.rs b/client/src/models/post_remove_comment_response.rs new file mode 100644 index 0000000..fef8ac3 --- /dev/null +++ b/client/src/models/post_remove_comment_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PostRemoveCommentResponse { + #[serde(rename = "action")] + pub action: String, + #[serde(rename = "status")] + pub status: String, +} + +impl PostRemoveCommentResponse { + pub fn new(action: String, status: String) -> PostRemoveCommentResponse { + PostRemoveCommentResponse { + action, + status, + } + } +} + diff --git a/client/src/models/pre_ban_summary.rs b/client/src/models/pre_ban_summary.rs new file mode 100644 index 0000000..f8c0626 --- /dev/null +++ b/client/src/models/pre_ban_summary.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PreBanSummary { + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "usernames")] + pub usernames: Vec, + #[serde(rename = "count")] + pub count: f64, +} + +impl PreBanSummary { + pub fn new(status: models::ApiStatus, usernames: Vec, count: f64) -> PreBanSummary { + PreBanSummary { + status, + usernames, + count, + } + } +} + diff --git a/client/src/models/pub_sub_comment.rs b/client/src/models/pub_sub_comment.rs index 4fa255e..fb851c5 100644 --- a/client/src/models/pub_sub_comment.rs +++ b/client/src/models/pub_sub_comment.rs @@ -80,7 +80,7 @@ pub struct PubSubComment { #[serde(rename = "pageTitle", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub page_title: Option>, #[serde(rename = "expireAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub expire_at: Option>, + pub expire_at: Option>>, #[serde(rename = "reviewed", skip_serializing_if = "Option::is_none")] pub reviewed: Option, #[serde(rename = "hasCode", skip_serializing_if = "Option::is_none")] diff --git a/client/src/models/pub_sub_comment_base.rs b/client/src/models/pub_sub_comment_base.rs index 5ec1608..04d8095 100644 --- a/client/src/models/pub_sub_comment_base.rs +++ b/client/src/models/pub_sub_comment_base.rs @@ -80,7 +80,7 @@ pub struct PubSubCommentBase { #[serde(rename = "pageTitle", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub page_title: Option>, #[serde(rename = "expireAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub expire_at: Option>, + pub expire_at: Option>>, #[serde(rename = "reviewed", skip_serializing_if = "Option::is_none")] pub reviewed: Option, #[serde(rename = "hasCode", skip_serializing_if = "Option::is_none")] diff --git a/client/src/models/public_comment.rs b/client/src/models/public_comment.rs index d214378..7ac6dd5 100644 --- a/client/src/models/public_comment.rs +++ b/client/src/models/public_comment.rs @@ -26,7 +26,7 @@ pub struct PublicComment { #[serde(rename = "parentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub parent_id: Option>, #[serde(rename = "date", deserialize_with = "Option::deserialize")] - pub date: Option, + pub date: Option>, #[serde(rename = "votes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub votes: Option>, #[serde(rename = "votesUp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -97,7 +97,7 @@ pub struct PublicComment { } impl PublicComment { - pub fn new(_id: String, commenter_name: String, comment_html: String, date: Option, verified: bool) -> PublicComment { + pub fn new(_id: String, commenter_name: String, comment_html: String, date: Option>, verified: bool) -> PublicComment { PublicComment { _id, user_id: None, diff --git a/client/src/models/public_comment_base.rs b/client/src/models/public_comment_base.rs index 6a91de4..f9c7231 100644 --- a/client/src/models/public_comment_base.rs +++ b/client/src/models/public_comment_base.rs @@ -26,7 +26,7 @@ pub struct PublicCommentBase { #[serde(rename = "parentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub parent_id: Option>, #[serde(rename = "date", deserialize_with = "Option::deserialize")] - pub date: Option, + pub date: Option>, #[serde(rename = "votes", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub votes: Option>, #[serde(rename = "votesUp", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -74,7 +74,7 @@ pub struct PublicCommentBase { } impl PublicCommentBase { - pub fn new(_id: String, commenter_name: String, comment_html: String, date: Option, verified: bool) -> PublicCommentBase { + pub fn new(_id: String, commenter_name: String, comment_html: String, date: Option>, verified: bool) -> PublicCommentBase { PublicCommentBase { _id, user_id: None, diff --git a/client/src/models/public_page.rs b/client/src/models/public_page.rs new file mode 100644 index 0000000..f90bb14 --- /dev/null +++ b/client/src/models/public_page.rs @@ -0,0 +1,39 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PublicPage { + #[serde(rename = "updatedAt")] + pub updated_at: i64, + #[serde(rename = "commentCount")] + pub comment_count: i32, + #[serde(rename = "title")] + pub title: String, + #[serde(rename = "url")] + pub url: String, + #[serde(rename = "urlId")] + pub url_id: String, +} + +impl PublicPage { + pub fn new(updated_at: i64, comment_count: i32, title: String, url: String, url_id: String) -> PublicPage { + PublicPage { + updated_at, + comment_count, + title, + url, + url_id, + } + } +} + diff --git a/client/src/models/public_vote.rs b/client/src/models/public_vote.rs index ad69b9e..18ae5bc 100644 --- a/client/src/models/public_vote.rs +++ b/client/src/models/public_vote.rs @@ -24,11 +24,11 @@ pub struct PublicVote { #[serde(rename = "direction")] pub direction: String, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, } impl PublicVote { - pub fn new(id: String, url_id: String, comment_id: String, user_id: String, direction: String, created_at: String) -> PublicVote { + pub fn new(id: String, url_id: String, comment_id: String, user_id: String, direction: String, created_at: chrono::DateTime) -> PublicVote { PublicVote { id, url_id, diff --git a/client/src/models/put_domain_config_response.rs b/client/src/models/put_domain_config_response.rs new file mode 100644 index 0000000..21d81f4 --- /dev/null +++ b/client/src/models/put_domain_config_response.rs @@ -0,0 +1,36 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct PutDomainConfigResponse { + #[serde(rename = "configuration", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub configuration: Option>, + #[serde(rename = "status", deserialize_with = "Option::deserialize")] + pub status: Option, + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, +} + +impl PutDomainConfigResponse { + pub fn new(status: Option) -> PutDomainConfigResponse { + PutDomainConfigResponse { + configuration: None, + status, + reason: None, + code: None, + } + } +} + diff --git a/client/src/models/question_config.rs b/client/src/models/question_config.rs index e589d2b..4579def 100644 --- a/client/src/models/question_config.rs +++ b/client/src/models/question_config.rs @@ -26,13 +26,13 @@ pub struct QuestionConfig { #[serde(rename = "helpText")] pub help_text: String, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "createdBy")] pub created_by: String, #[serde(rename = "usedCount")] pub used_count: f64, #[serde(rename = "lastUsed")] - pub last_used: String, + pub last_used: chrono::DateTime, #[serde(rename = "type")] pub r#type: String, #[serde(rename = "numStars")] @@ -58,7 +58,7 @@ pub struct QuestionConfig { } impl QuestionConfig { - pub fn new(_id: String, tenant_id: String, name: String, question: String, help_text: String, created_at: String, created_by: String, used_count: f64, last_used: String, r#type: String, num_stars: f64, min: f64, max: f64, default_value: f64, label_negative: String, label_positive: String, custom_options: Vec, sub_question_ids: Vec, always_show_sub_questions: bool, reporting_order: f64) -> QuestionConfig { + pub fn new(_id: String, tenant_id: String, name: String, question: String, help_text: String, created_at: chrono::DateTime, created_by: String, used_count: f64, last_used: chrono::DateTime, r#type: String, num_stars: f64, min: f64, max: f64, default_value: f64, label_negative: String, label_positive: String, custom_options: Vec, sub_question_ids: Vec, always_show_sub_questions: bool, reporting_order: f64) -> QuestionConfig { QuestionConfig { _id, tenant_id, diff --git a/client/src/models/question_result.rs b/client/src/models/question_result.rs index 7c3399d..d36f095 100644 --- a/client/src/models/question_result.rs +++ b/client/src/models/question_result.rs @@ -24,7 +24,7 @@ pub struct QuestionResult { #[serde(rename = "userId")] pub user_id: String, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "value")] pub value: i32, #[serde(rename = "commentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -38,7 +38,7 @@ pub struct QuestionResult { } impl QuestionResult { - pub fn new(_id: String, tenant_id: String, url_id: String, anon_user_id: String, user_id: String, created_at: String, value: i32, question_id: String, ip_hash: String) -> QuestionResult { + pub fn new(_id: String, tenant_id: String, url_id: String, anon_user_id: String, user_id: String, created_at: chrono::DateTime, value: i32, question_id: String, ip_hash: String) -> QuestionResult { QuestionResult { _id, tenant_id, diff --git a/client/src/models/question_result_aggregation_overall.rs b/client/src/models/question_result_aggregation_overall.rs index aa8257d..b16d298 100644 --- a/client/src/models/question_result_aggregation_overall.rs +++ b/client/src/models/question_result_aggregation_overall.rs @@ -26,11 +26,11 @@ pub struct QuestionResultAggregationOverall { #[serde(rename = "average", skip_serializing_if = "Option::is_none")] pub average: Option, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, } impl QuestionResultAggregationOverall { - pub fn new(total: i64, created_at: String) -> QuestionResultAggregationOverall { + pub fn new(total: i64, created_at: chrono::DateTime) -> QuestionResultAggregationOverall { QuestionResultAggregationOverall { data_by_date_bucket: None, data_by_url_id: None, diff --git a/client/src/models/react_feed_post_public_200_response.rs b/client/src/models/react_feed_post_public_200_response.rs deleted file mode 100644 index 9ead263..0000000 --- a/client/src/models/react_feed_post_public_200_response.rs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReactFeedPostPublic200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reactType")] - pub react_type: String, - #[serde(rename = "isUndo")] - pub is_undo: bool, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl ReactFeedPostPublic200Response { - pub fn new(status: models::ApiStatus, react_type: String, is_undo: bool, reason: String, code: String) -> ReactFeedPostPublic200Response { - ReactFeedPostPublic200Response { - status, - react_type, - is_undo, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/record_string__before_string_or_null__after_string_or_null___value.rs b/client/src/models/record_string__before_string_or_null__after_string_or_null___value.rs index 20182bb..26e3d41 100644 --- a/client/src/models/record_string__before_string_or_null__after_string_or_null___value.rs +++ b/client/src/models/record_string__before_string_or_null__after_string_or_null___value.rs @@ -13,14 +13,14 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RecordStringBeforeStringOrNullAfterStringOrNullValue { - #[serde(rename = "after")] - pub after: String, - #[serde(rename = "before")] - pub before: String, + #[serde(rename = "after", deserialize_with = "Option::deserialize")] + pub after: Option, + #[serde(rename = "before", deserialize_with = "Option::deserialize")] + pub before: Option, } impl RecordStringBeforeStringOrNullAfterStringOrNullValue { - pub fn new(after: String, before: String) -> RecordStringBeforeStringOrNullAfterStringOrNullValue { + pub fn new(after: Option, before: Option) -> RecordStringBeforeStringOrNullAfterStringOrNullValue { RecordStringBeforeStringOrNullAfterStringOrNullValue { after, before, diff --git a/client/src/models/remove_comment_action_response.rs b/client/src/models/remove_comment_action_response.rs new file mode 100644 index 0000000..52390e2 --- /dev/null +++ b/client/src/models/remove_comment_action_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RemoveCommentActionResponse { + #[serde(rename = "status")] + pub status: String, + #[serde(rename = "action")] + pub action: String, +} + +impl RemoveCommentActionResponse { + pub fn new(status: String, action: String) -> RemoveCommentActionResponse { + RemoveCommentActionResponse { + status, + action, + } + } +} + diff --git a/client/src/models/remove_user_badge_response.rs b/client/src/models/remove_user_badge_response.rs new file mode 100644 index 0000000..b10a870 --- /dev/null +++ b/client/src/models/remove_user_badge_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct RemoveUserBadgeResponse { + #[serde(rename = "badges", skip_serializing_if = "Option::is_none")] + pub badges: Option>, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl RemoveUserBadgeResponse { + pub fn new(status: models::ApiStatus) -> RemoveUserBadgeResponse { + RemoveUserBadgeResponse { + badges: None, + status, + } + } +} + diff --git a/client/src/models/render_email_template_200_response.rs b/client/src/models/render_email_template_200_response.rs deleted file mode 100644 index 1997b54..0000000 --- a/client/src/models/render_email_template_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct RenderEmailTemplate200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "html")] - pub html: String, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl RenderEmailTemplate200Response { - pub fn new(status: models::ApiStatus, html: String, reason: String, code: String) -> RenderEmailTemplate200Response { - RenderEmailTemplate200Response { - status, - html, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/reset_user_notifications_200_response.rs b/client/src/models/reset_user_notifications_200_response.rs deleted file mode 100644 index 0107e74..0000000 --- a/client/src/models/reset_user_notifications_200_response.rs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResetUserNotifications200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl ResetUserNotifications200Response { - pub fn new(status: models::ApiStatus, code: String, reason: String) -> ResetUserNotifications200Response { - ResetUserNotifications200Response { - status, - code, - reason, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/save_comment_200_response.rs b/client/src/models/save_comments_bulk_response.rs similarity index 66% rename from client/src/models/save_comment_200_response.rs rename to client/src/models/save_comments_bulk_response.rs index 4ac0a7c..e697099 100644 --- a/client/src/models/save_comment_200_response.rs +++ b/client/src/models/save_comments_bulk_response.rs @@ -12,20 +12,20 @@ use crate::client::models; use serde::{Deserialize, Serialize}; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SaveComment200Response { +pub struct SaveCommentsBulkResponse { #[serde(rename = "status")] pub status: models::ApiStatus, - #[serde(rename = "comment")] - pub comment: Box, - #[serde(rename = "user", deserialize_with = "Option::deserialize")] - pub user: Option>, + #[serde(rename = "comment", skip_serializing_if = "Option::is_none")] + pub comment: Option>, + #[serde(rename = "user", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub user: Option>>, /// Construct a type with a set of properties K of type T #[serde(rename = "moduleData", skip_serializing_if = "Option::is_none")] pub module_data: Option>, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, + #[serde(rename = "reason", skip_serializing_if = "Option::is_none")] + pub reason: Option, + #[serde(rename = "code", skip_serializing_if = "Option::is_none")] + pub code: Option, #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] pub secondary_code: Option, #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] @@ -38,15 +38,15 @@ pub struct SaveComment200Response { pub custom_config: Option>, } -impl SaveComment200Response { - pub fn new(status: models::ApiStatus, comment: models::FComment, user: Option, reason: String, code: String) -> SaveComment200Response { - SaveComment200Response { +impl SaveCommentsBulkResponse { + pub fn new(status: models::ApiStatus) -> SaveCommentsBulkResponse { + SaveCommentsBulkResponse { status, - comment: Box::new(comment), - user: if let Some(x) = user {Some(Box::new(x))} else {None}, + comment: None, + user: None, module_data: None, - reason, - code, + reason: None, + code: None, secondary_code: None, banned_until: None, max_character_length: None, diff --git a/client/src/models/search_users_200_response.rs b/client/src/models/search_users_200_response.rs deleted file mode 100644 index b215ade..0000000 --- a/client/src/models/search_users_200_response.rs +++ /dev/null @@ -1,54 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SearchUsers200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "sections")] - pub sections: Vec, - #[serde(rename = "users")] - pub users: Vec, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl SearchUsers200Response { - pub fn new(status: models::ApiStatus, sections: Vec, users: Vec, reason: String, code: String) -> SearchUsers200Response { - SearchUsers200Response { - status, - sections, - users, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/search_users_result.rs b/client/src/models/search_users_result.rs new file mode 100644 index 0000000..6e1edb2 --- /dev/null +++ b/client/src/models/search_users_result.rs @@ -0,0 +1,33 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SearchUsersResult { + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "sections", skip_serializing_if = "Option::is_none")] + pub sections: Option>, + #[serde(rename = "users", skip_serializing_if = "Option::is_none")] + pub users: Option>, +} + +impl SearchUsersResult { + pub fn new(status: models::ApiStatus) -> SearchUsersResult { + SearchUsersResult { + status, + sections: None, + users: None, + } + } +} + diff --git a/client/src/models/set_comment_approved_response.rs b/client/src/models/set_comment_approved_response.rs new file mode 100644 index 0000000..03fa7df --- /dev/null +++ b/client/src/models/set_comment_approved_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SetCommentApprovedResponse { + #[serde(rename = "didResetFlaggedCount", skip_serializing_if = "Option::is_none")] + pub did_reset_flagged_count: Option, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl SetCommentApprovedResponse { + pub fn new(status: models::ApiStatus) -> SetCommentApprovedResponse { + SetCommentApprovedResponse { + did_reset_flagged_count: None, + status, + } + } +} + diff --git a/client/src/models/set_comment_text_200_response.rs b/client/src/models/set_comment_text_200_response.rs deleted file mode 100644 index 8ddfcc0..0000000 --- a/client/src/models/set_comment_text_200_response.rs +++ /dev/null @@ -1,51 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct SetCommentText200Response { - #[serde(rename = "comment")] - pub comment: Box, - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl SetCommentText200Response { - pub fn new(comment: models::SetCommentTextResult, status: models::ApiStatus, reason: String, code: String) -> SetCommentText200Response { - SetCommentText200Response { - comment: Box::new(comment), - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/set_comment_text_params.rs b/client/src/models/set_comment_text_params.rs new file mode 100644 index 0000000..45b1217 --- /dev/null +++ b/client/src/models/set_comment_text_params.rs @@ -0,0 +1,27 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SetCommentTextParams { + #[serde(rename = "comment")] + pub comment: String, +} + +impl SetCommentTextParams { + pub fn new(comment: String) -> SetCommentTextParams { + SetCommentTextParams { + comment, + } + } +} + diff --git a/client/src/models/set_comment_text_response.rs b/client/src/models/set_comment_text_response.rs new file mode 100644 index 0000000..a62d82c --- /dev/null +++ b/client/src/models/set_comment_text_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SetCommentTextResponse { + #[serde(rename = "newCommentTextHTML")] + pub new_comment_text_html: String, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl SetCommentTextResponse { + pub fn new(new_comment_text_html: String, status: models::ApiStatus) -> SetCommentTextResponse { + SetCommentTextResponse { + new_comment_text_html, + status, + } + } +} + diff --git a/client/src/models/set_user_trust_factor_response.rs b/client/src/models/set_user_trust_factor_response.rs new file mode 100644 index 0000000..6a58558 --- /dev/null +++ b/client/src/models/set_user_trust_factor_response.rs @@ -0,0 +1,30 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct SetUserTrustFactorResponse { + #[serde(rename = "previousManualTrustFactor", skip_serializing_if = "Option::is_none")] + pub previous_manual_trust_factor: Option, + #[serde(rename = "status")] + pub status: models::ApiStatus, +} + +impl SetUserTrustFactorResponse { + pub fn new(status: models::ApiStatus) -> SetUserTrustFactorResponse { + SetUserTrustFactorResponse { + previous_manual_trust_factor: None, + status, + } + } +} + diff --git a/client/src/models/tenant_badge.rs b/client/src/models/tenant_badge.rs new file mode 100644 index 0000000..525e8c3 --- /dev/null +++ b/client/src/models/tenant_badge.rs @@ -0,0 +1,87 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct TenantBadge { + #[serde(rename = "_id")] + pub _id: String, + #[serde(rename = "tenantId")] + pub tenant_id: String, + #[serde(rename = "createdByUserId")] + pub created_by_user_id: String, + #[serde(rename = "createdAt")] + pub created_at: chrono::DateTime, + #[serde(rename = "enabled")] + pub enabled: bool, + #[serde(rename = "urlId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub url_id: Option>, + #[serde(rename = "type")] + pub r#type: f64, + #[serde(rename = "threshold")] + pub threshold: f64, + #[serde(rename = "uses")] + pub uses: f64, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "description")] + pub description: String, + #[serde(rename = "displayLabel")] + pub display_label: String, + #[serde(rename = "displaySrc", deserialize_with = "Option::deserialize")] + pub display_src: Option, + #[serde(rename = "backgroundColor", deserialize_with = "Option::deserialize")] + pub background_color: Option, + #[serde(rename = "borderColor", deserialize_with = "Option::deserialize")] + pub border_color: Option, + #[serde(rename = "textColor", deserialize_with = "Option::deserialize")] + pub text_color: Option, + #[serde(rename = "cssClass", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub css_class: Option>, + #[serde(rename = "veteranUserThresholdMillis", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub veteran_user_threshold_millis: Option>, + #[serde(rename = "isAwaitingReprocess")] + pub is_awaiting_reprocess: bool, + #[serde(rename = "isAwaitingDeletion")] + pub is_awaiting_deletion: bool, + #[serde(rename = "replacesBadgeId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] + pub replaces_badge_id: Option>, +} + +impl TenantBadge { + pub fn new(_id: String, tenant_id: String, created_by_user_id: String, created_at: chrono::DateTime, enabled: bool, r#type: f64, threshold: f64, uses: f64, name: String, description: String, display_label: String, display_src: Option, background_color: Option, border_color: Option, text_color: Option, is_awaiting_reprocess: bool, is_awaiting_deletion: bool) -> TenantBadge { + TenantBadge { + _id, + tenant_id, + created_by_user_id, + created_at, + enabled, + url_id: None, + r#type, + threshold, + uses, + name, + description, + display_label, + display_src, + background_color, + border_color, + text_color, + css_class: None, + veteran_user_threshold_millis: None, + is_awaiting_reprocess, + is_awaiting_deletion, + replaces_badge_id: None, + } + } +} + diff --git a/client/src/models/tenant_hash_tag.rs b/client/src/models/tenant_hash_tag.rs index e676cba..c174980 100644 --- a/client/src/models/tenant_hash_tag.rs +++ b/client/src/models/tenant_hash_tag.rs @@ -16,7 +16,7 @@ pub struct TenantHashTag { #[serde(rename = "_id")] pub _id: String, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "tenantId")] pub tenant_id: String, #[serde(rename = "tag")] @@ -26,7 +26,7 @@ pub struct TenantHashTag { } impl TenantHashTag { - pub fn new(_id: String, created_at: String, tenant_id: String, tag: String) -> TenantHashTag { + pub fn new(_id: String, created_at: chrono::DateTime, tenant_id: String, tag: String) -> TenantHashTag { TenantHashTag { _id, created_at, diff --git a/client/src/models/tenant_package.rs b/client/src/models/tenant_package.rs index 7c99609..8f73430 100644 --- a/client/src/models/tenant_package.rs +++ b/client/src/models/tenant_package.rs @@ -20,7 +20,9 @@ pub struct TenantPackage { #[serde(rename = "tenantId")] pub tenant_id: String, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, + #[serde(rename = "templateId", skip_serializing_if = "Option::is_none")] + pub template_id: Option, #[serde(rename = "monthlyCostUSD", deserialize_with = "Option::deserialize")] pub monthly_cost_usd: Option, #[serde(rename = "yearlyCostUSD", deserialize_with = "Option::deserialize")] @@ -107,6 +109,10 @@ pub struct TenantPackage { pub flex_chat_gpt_cost_cents: Option, #[serde(rename = "flexChatGPTUnit", skip_serializing_if = "Option::is_none")] pub flex_chat_gpt_unit: Option, + #[serde(rename = "flexLLMCostCents", skip_serializing_if = "Option::is_none")] + pub flex_llm_cost_cents: Option, + #[serde(rename = "flexLLMUnit", skip_serializing_if = "Option::is_none")] + pub flex_llm_unit: Option, #[serde(rename = "flexMinimumCostCents", skip_serializing_if = "Option::is_none")] pub flex_minimum_cost_cents: Option, #[serde(rename = "flexManagedTenantCostCents", skip_serializing_if = "Option::is_none")] @@ -121,15 +127,24 @@ pub struct TenantPackage { pub flex_sso_moderator_unit: Option, #[serde(rename = "isSSOBillingMonthlyActiveUsers", skip_serializing_if = "Option::is_none")] pub is_sso_billing_monthly_active_users: Option, + #[serde(rename = "hasAIAgents", skip_serializing_if = "Option::is_none")] + pub has_ai_agents: Option, + #[serde(rename = "maxAIAgents", skip_serializing_if = "Option::is_none")] + pub max_ai_agents: Option, + #[serde(rename = "aiAgentDailyBudgetCents", skip_serializing_if = "Option::is_none")] + pub ai_agent_daily_budget_cents: Option, + #[serde(rename = "aiAgentMonthlyBudgetCents", skip_serializing_if = "Option::is_none")] + pub ai_agent_monthly_budget_cents: Option, } impl TenantPackage { - pub fn new(_id: String, name: String, tenant_id: String, created_at: String, monthly_cost_usd: Option, yearly_cost_usd: Option, monthly_stripe_plan_id: Option, yearly_stripe_plan_id: Option, max_monthly_page_loads: f64, max_monthly_api_credits: f64, max_monthly_small_widgets_credits: f64, max_monthly_comments: f64, max_concurrent_users: f64, max_tenant_users: f64, max_sso_users: f64, max_moderators: f64, max_domains: f64, max_white_labeled_tenants: f64, max_monthly_event_log_requests: f64, max_custom_collection_size: f64, has_white_labeling: bool, has_debranding: bool, has_llm_spam_detection: bool, for_who_text: String, feature_taglines: Vec, has_auditing: bool, has_flex_pricing: bool) -> TenantPackage { + pub fn new(_id: String, name: String, tenant_id: String, created_at: chrono::DateTime, monthly_cost_usd: Option, yearly_cost_usd: Option, monthly_stripe_plan_id: Option, yearly_stripe_plan_id: Option, max_monthly_page_loads: f64, max_monthly_api_credits: f64, max_monthly_small_widgets_credits: f64, max_monthly_comments: f64, max_concurrent_users: f64, max_tenant_users: f64, max_sso_users: f64, max_moderators: f64, max_domains: f64, max_white_labeled_tenants: f64, max_monthly_event_log_requests: f64, max_custom_collection_size: f64, has_white_labeling: bool, has_debranding: bool, has_llm_spam_detection: bool, for_who_text: String, feature_taglines: Vec, has_auditing: bool, has_flex_pricing: bool) -> TenantPackage { TenantPackage { _id, name, tenant_id, created_at, + template_id: None, monthly_cost_usd, yearly_cost_usd, monthly_stripe_plan_id, @@ -173,6 +188,8 @@ impl TenantPackage { flex_domain_unit: None, flex_chat_gpt_cost_cents: None, flex_chat_gpt_unit: None, + flex_llm_cost_cents: None, + flex_llm_unit: None, flex_minimum_cost_cents: None, flex_managed_tenant_cost_cents: None, flex_sso_admin_cost_cents: None, @@ -180,6 +197,10 @@ impl TenantPackage { flex_sso_moderator_cost_cents: None, flex_sso_moderator_unit: None, is_sso_billing_monthly_active_users: None, + has_ai_agents: None, + max_ai_agents: None, + ai_agent_daily_budget_cents: None, + ai_agent_monthly_budget_cents: None, } } } diff --git a/client/src/models/tos_config.rs b/client/src/models/tos_config.rs index ad69421..1cf33b5 100644 --- a/client/src/models/tos_config.rs +++ b/client/src/models/tos_config.rs @@ -19,7 +19,7 @@ pub struct TosConfig { #[serde(rename = "textByLocale", skip_serializing_if = "Option::is_none")] pub text_by_locale: Option>, #[serde(rename = "lastUpdated", skip_serializing_if = "Option::is_none")] - pub last_updated: Option, + pub last_updated: Option>, } impl TosConfig { diff --git a/client/src/models/un_block_comment_public_200_response.rs b/client/src/models/un_block_comment_public_200_response.rs deleted file mode 100644 index 5354446..0000000 --- a/client/src/models/un_block_comment_public_200_response.rs +++ /dev/null @@ -1,52 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct UnBlockCommentPublic200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - /// Construct a type with a set of properties K of type T - #[serde(rename = "commentStatuses")] - pub comment_statuses: std::collections::HashMap, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl UnBlockCommentPublic200Response { - pub fn new(status: models::ApiStatus, comment_statuses: std::collections::HashMap, reason: String, code: String) -> UnBlockCommentPublic200Response { - UnBlockCommentPublic200Response { - status, - comment_statuses, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/updatable_comment_params.rs b/client/src/models/updatable_comment_params.rs index 6261295..3c829f4 100644 --- a/client/src/models/updatable_comment_params.rs +++ b/client/src/models/updatable_comment_params.rs @@ -48,11 +48,11 @@ pub struct UpdatableCommentParams { #[serde(rename = "votesDown", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] pub votes_down: Option>, #[serde(rename = "expireAt", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub expire_at: Option>, + pub expire_at: Option>>, #[serde(rename = "verified", skip_serializing_if = "Option::is_none")] pub verified: Option, #[serde(rename = "verifiedDate", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] - pub verified_date: Option>, + pub verified_date: Option>>, #[serde(rename = "notificationSentForParent", skip_serializing_if = "Option::is_none")] pub notification_sent_for_parent: Option, #[serde(rename = "notificationSentForParentTenant", skip_serializing_if = "Option::is_none")] diff --git a/client/src/models/update_user_badge_200_response.rs b/client/src/models/update_user_badge_200_response.rs deleted file mode 100644 index ab429e7..0000000 --- a/client/src/models/update_user_badge_200_response.rs +++ /dev/null @@ -1,48 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateUserBadge200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl UpdateUserBadge200Response { - pub fn new(status: models::ApiStatus, reason: String, code: String) -> UpdateUserBadge200Response { - UpdateUserBadge200Response { - status, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/client/src/models/update_user_notification_comment_subscription_status_response.rs b/client/src/models/update_user_notification_comment_subscription_status_response.rs new file mode 100644 index 0000000..0f0ce0c --- /dev/null +++ b/client/src/models/update_user_notification_comment_subscription_status_response.rs @@ -0,0 +1,50 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateUserNotificationCommentSubscriptionStatusResponse { + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "matchedCount", skip_serializing_if = "Option::is_none")] + pub matched_count: Option, + #[serde(rename = "modifiedCount", skip_serializing_if = "Option::is_none")] + pub modified_count: Option, + #[serde(rename = "note", skip_serializing_if = "Option::is_none")] + pub note: Option, +} + +impl UpdateUserNotificationCommentSubscriptionStatusResponse { + pub fn new(status: models::ApiStatus) -> UpdateUserNotificationCommentSubscriptionStatusResponse { + UpdateUserNotificationCommentSubscriptionStatusResponse { + status, + matched_count: None, + modified_count: None, + note: None, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Note { + #[serde(rename = "ignored-since-impersonated")] + IgnoredSinceImpersonated, + #[serde(rename = "demo-noop")] + DemoNoop, +} + +impl Default for Note { + fn default() -> Note { + Self::IgnoredSinceImpersonated + } +} + diff --git a/client/src/models/update_user_notification_page_subscription_status_response.rs b/client/src/models/update_user_notification_page_subscription_status_response.rs new file mode 100644 index 0000000..5aab0f1 --- /dev/null +++ b/client/src/models/update_user_notification_page_subscription_status_response.rs @@ -0,0 +1,50 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateUserNotificationPageSubscriptionStatusResponse { + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "matchedCount", skip_serializing_if = "Option::is_none")] + pub matched_count: Option, + #[serde(rename = "modifiedCount", skip_serializing_if = "Option::is_none")] + pub modified_count: Option, + #[serde(rename = "note", skip_serializing_if = "Option::is_none")] + pub note: Option, +} + +impl UpdateUserNotificationPageSubscriptionStatusResponse { + pub fn new(status: models::ApiStatus) -> UpdateUserNotificationPageSubscriptionStatusResponse { + UpdateUserNotificationPageSubscriptionStatusResponse { + status, + matched_count: None, + modified_count: None, + note: None, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Note { + #[serde(rename = "ignored-since-impersonated")] + IgnoredSinceImpersonated, + #[serde(rename = "demo-noop")] + DemoNoop, +} + +impl Default for Note { + fn default() -> Note { + Self::IgnoredSinceImpersonated + } +} + diff --git a/client/src/models/update_user_notification_status_200_response.rs b/client/src/models/update_user_notification_status_200_response.rs deleted file mode 100644 index 5e2aa92..0000000 --- a/client/src/models/update_user_notification_status_200_response.rs +++ /dev/null @@ -1,71 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateUserNotificationStatus200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "matchedCount")] - pub matched_count: i64, - #[serde(rename = "modifiedCount")] - pub modified_count: i64, - #[serde(rename = "note")] - pub note: Note, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl UpdateUserNotificationStatus200Response { - pub fn new(status: models::ApiStatus, matched_count: i64, modified_count: i64, note: Note, reason: String, code: String) -> UpdateUserNotificationStatus200Response { - UpdateUserNotificationStatus200Response { - status, - matched_count, - modified_count, - note, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} -/// -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum Note { - #[serde(rename = "ignored-since-impersonated")] - IgnoredSinceImpersonated, - #[serde(rename = "demo-noop")] - DemoNoop, -} - -impl Default for Note { - fn default() -> Note { - Self::IgnoredSinceImpersonated - } -} - diff --git a/client/src/models/update_user_notification_status_response.rs b/client/src/models/update_user_notification_status_response.rs new file mode 100644 index 0000000..0415d01 --- /dev/null +++ b/client/src/models/update_user_notification_status_response.rs @@ -0,0 +1,50 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateUserNotificationStatusResponse { + #[serde(rename = "status")] + pub status: models::ApiStatus, + #[serde(rename = "matchedCount", skip_serializing_if = "Option::is_none")] + pub matched_count: Option, + #[serde(rename = "modifiedCount", skip_serializing_if = "Option::is_none")] + pub modified_count: Option, + #[serde(rename = "note", skip_serializing_if = "Option::is_none")] + pub note: Option, +} + +impl UpdateUserNotificationStatusResponse { + pub fn new(status: models::ApiStatus) -> UpdateUserNotificationStatusResponse { + UpdateUserNotificationStatusResponse { + status, + matched_count: None, + modified_count: None, + note: None, + } + } +} +/// +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum Note { + #[serde(rename = "ignored-since-impersonated")] + IgnoredSinceImpersonated, + #[serde(rename = "demo-noop")] + DemoNoop, +} + +impl Default for Note { + fn default() -> Note { + Self::IgnoredSinceImpersonated + } +} + diff --git a/client/src/models/user.rs b/client/src/models/user.rs index 3270726..2515aff 100644 --- a/client/src/models/user.rs +++ b/client/src/models/user.rs @@ -91,14 +91,16 @@ pub struct User { pub notification_frequency: Option, #[serde(rename = "adminNotificationFrequency", skip_serializing_if = "Option::is_none")] pub admin_notification_frequency: Option, + #[serde(rename = "agentApprovalNotificationFrequency", skip_serializing_if = "Option::is_none")] + pub agent_approval_notification_frequency: Option, #[serde(rename = "lastTenantNotificationSentDate", skip_serializing_if = "Option::is_none")] - pub last_tenant_notification_sent_date: Option, + pub last_tenant_notification_sent_date: Option>, #[serde(rename = "lastReplyNotificationSentDate", skip_serializing_if = "Option::is_none")] - pub last_reply_notification_sent_date: Option, + pub last_reply_notification_sent_date: Option>, #[serde(rename = "ignoredAddToMySiteMessages", skip_serializing_if = "Option::is_none")] pub ignored_add_to_my_site_messages: Option, #[serde(rename = "lastLoginDate", skip_serializing_if = "Option::is_none")] - pub last_login_date: Option, + pub last_login_date: Option>, #[serde(rename = "displayLabel", skip_serializing_if = "Option::is_none")] pub display_label: Option, #[serde(rename = "isProfileActivityPrivate", skip_serializing_if = "Option::is_none")] @@ -175,6 +177,7 @@ impl User { digest_email_frequency: None, notification_frequency: None, admin_notification_frequency: None, + agent_approval_notification_frequency: None, last_tenant_notification_sent_date: None, last_reply_notification_sent_date: None, ignored_add_to_my_site_messages: None, diff --git a/client/src/models/user_badge.rs b/client/src/models/user_badge.rs index 9d51b76..057db91 100644 --- a/client/src/models/user_badge.rs +++ b/client/src/models/user_badge.rs @@ -22,7 +22,7 @@ pub struct UserBadge { #[serde(rename = "fromTenantId")] pub from_tenant_id: String, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "type")] pub r#type: i32, #[serde(rename = "threshold")] @@ -46,7 +46,7 @@ pub struct UserBadge { #[serde(rename = "displayedOnComments")] pub displayed_on_comments: bool, #[serde(rename = "receivedAt")] - pub received_at: String, + pub received_at: chrono::DateTime, #[serde(rename = "order", skip_serializing_if = "Option::is_none")] pub order: Option, #[serde(rename = "urlId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -54,7 +54,7 @@ pub struct UserBadge { } impl UserBadge { - pub fn new(_id: String, user_id: String, badge_id: String, from_tenant_id: String, created_at: String, r#type: i32, threshold: i64, description: String, display_label: String, veteran_user_threshold_millis: i64, displayed_on_comments: bool, received_at: String) -> UserBadge { + pub fn new(_id: String, user_id: String, badge_id: String, from_tenant_id: String, created_at: chrono::DateTime, r#type: i32, threshold: i64, description: String, display_label: String, veteran_user_threshold_millis: i64, displayed_on_comments: bool, received_at: chrono::DateTime) -> UserBadge { UserBadge { _id, user_id, diff --git a/client/src/models/user_badge_progress.rs b/client/src/models/user_badge_progress.rs index 29214cd..655a739 100644 --- a/client/src/models/user_badge_progress.rs +++ b/client/src/models/user_badge_progress.rs @@ -22,7 +22,7 @@ pub struct UserBadgeProgress { #[serde(rename = "firstCommentId")] pub first_comment_id: String, #[serde(rename = "firstCommentDate")] - pub first_comment_date: String, + pub first_comment_date: chrono::DateTime, #[serde(rename = "autoTrustFactor", skip_serializing_if = "Option::is_none")] pub auto_trust_factor: Option, #[serde(rename = "manualTrustFactor", skip_serializing_if = "Option::is_none")] @@ -31,11 +31,11 @@ pub struct UserBadgeProgress { #[serde(rename = "progress")] pub progress: std::collections::HashMap, #[serde(rename = "tosAcceptedAt", skip_serializing_if = "Option::is_none")] - pub tos_accepted_at: Option, + pub tos_accepted_at: Option>, } impl UserBadgeProgress { - pub fn new(_id: String, tenant_id: String, user_id: String, first_comment_id: String, first_comment_date: String, progress: std::collections::HashMap) -> UserBadgeProgress { + pub fn new(_id: String, tenant_id: String, user_id: String, first_comment_id: String, first_comment_date: chrono::DateTime, progress: std::collections::HashMap) -> UserBadgeProgress { UserBadgeProgress { _id, tenant_id, diff --git a/client/src/models/user_notification.rs b/client/src/models/user_notification.rs index d522fad..9f3db18 100644 --- a/client/src/models/user_notification.rs +++ b/client/src/models/user_notification.rs @@ -38,7 +38,7 @@ pub struct UserNotification { #[serde(rename = "sent")] pub sent: bool, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "type")] pub r#type: models::NotificationType, #[serde(rename = "fromCommentId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")] @@ -64,7 +64,7 @@ pub struct UserNotification { } impl UserNotification { - pub fn new(_id: String, tenant_id: String, url_id: String, url: String, related_object_type: models::NotificationObjectType, related_object_id: String, viewed: bool, is_unread_message: bool, sent: bool, created_at: String, r#type: models::NotificationType, opted_out: bool) -> UserNotification { + pub fn new(_id: String, tenant_id: String, url_id: String, url: String, related_object_type: models::NotificationObjectType, related_object_id: String, viewed: bool, is_unread_message: bool, sent: bool, created_at: chrono::DateTime, r#type: models::NotificationType, opted_out: bool) -> UserNotification { UserNotification { _id, tenant_id, diff --git a/client/src/models/user_notification_count.rs b/client/src/models/user_notification_count.rs index d0c56e7..7f125be 100644 --- a/client/src/models/user_notification_count.rs +++ b/client/src/models/user_notification_count.rs @@ -18,13 +18,13 @@ pub struct UserNotificationCount { #[serde(rename = "count")] pub count: f64, #[serde(rename = "createdAt")] - pub created_at: String, + pub created_at: chrono::DateTime, #[serde(rename = "expireAt")] - pub expire_at: String, + pub expire_at: chrono::DateTime, } impl UserNotificationCount { - pub fn new(_id: String, count: f64, created_at: String, expire_at: String) -> UserNotificationCount { + pub fn new(_id: String, count: f64, created_at: chrono::DateTime, expire_at: chrono::DateTime) -> UserNotificationCount { UserNotificationCount { _id, count, diff --git a/client/src/models/users_list_location.rs b/client/src/models/users_list_location.rs new file mode 100644 index 0000000..3e40cd1 --- /dev/null +++ b/client/src/models/users_list_location.rs @@ -0,0 +1,41 @@ +/* + * fastcomments + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::client::models; +use serde::{Deserialize, Serialize}; + +use serde_repr::{Serialize_repr,Deserialize_repr}; +/// +#[repr(i64)] +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize_repr, Deserialize_repr)] +pub enum UsersListLocation { + Variant0 = 0, + Variant1 = 1, + Variant2 = 2, + Variant3 = 3, + +} + +impl std::fmt::Display for UsersListLocation { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", match self { + Self::Variant0 => "0", + Self::Variant1 => "1", + Self::Variant2 => "2", + Self::Variant3 => "3", + }) + } +} +impl Default for UsersListLocation { + fn default() -> UsersListLocation { + Self::Variant0 + } +} + diff --git a/client/src/models/vote_comment_200_response.rs b/client/src/models/vote_comment_200_response.rs deleted file mode 100644 index 7e678f2..0000000 --- a/client/src/models/vote_comment_200_response.rs +++ /dev/null @@ -1,60 +0,0 @@ -/* - * fastcomments - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.0.0 - * - * Generated by: https://openapi-generator.tech - */ - -use crate::client::models; -use serde::{Deserialize, Serialize}; - -#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] -pub struct VoteComment200Response { - #[serde(rename = "status")] - pub status: models::ApiStatus, - #[serde(rename = "voteId", skip_serializing_if = "Option::is_none")] - pub vote_id: Option, - #[serde(rename = "isVerified", skip_serializing_if = "Option::is_none")] - pub is_verified: Option, - #[serde(rename = "user", skip_serializing_if = "Option::is_none")] - pub user: Option>, - #[serde(rename = "editKey", skip_serializing_if = "Option::is_none")] - pub edit_key: Option, - #[serde(rename = "reason")] - pub reason: String, - #[serde(rename = "code")] - pub code: String, - #[serde(rename = "secondaryCode", skip_serializing_if = "Option::is_none")] - pub secondary_code: Option, - #[serde(rename = "bannedUntil", skip_serializing_if = "Option::is_none")] - pub banned_until: Option, - #[serde(rename = "maxCharacterLength", skip_serializing_if = "Option::is_none")] - pub max_character_length: Option, - #[serde(rename = "translatedError", skip_serializing_if = "Option::is_none")] - pub translated_error: Option, - #[serde(rename = "customConfig", skip_serializing_if = "Option::is_none")] - pub custom_config: Option>, -} - -impl VoteComment200Response { - pub fn new(status: models::ApiStatus, reason: String, code: String) -> VoteComment200Response { - VoteComment200Response { - status, - vote_id: None, - is_verified: None, - user: None, - edit_key: None, - reason, - code, - secondary_code: None, - banned_until: None, - max_character_length: None, - translated_error: None, - custom_config: None, - } - } -} - diff --git a/openapi.json b/openapi.json index 7157da6..ca0225c 100644 --- a/openapi.json +++ b/openapi.json @@ -108,6 +108,16 @@ ], "type": "object" }, + "SearchUsersResult": { + "anyOf": [ + { + "$ref": "#/components/schemas/SearchUsersSectionedResponse" + }, + { + "$ref": "#/components/schemas/SearchUsersResponse" + } + ] + }, "CommentHTMLRenderingMode": { "enum": [ 0, @@ -249,6 +259,15 @@ ], "type": "integer" }, + "UsersListLocation": { + "enum": [ + 0, + 1, + 2, + 3 + ], + "type": "integer" + }, "TOSConfig": { "properties": { "enabled": { @@ -459,6 +478,16 @@ "noImageUploads": { "type": "boolean" }, + "allowEmbeds": { + "type": "boolean" + }, + "allowedEmbedDomains": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, "noStyles": { "type": "boolean" }, @@ -476,6 +505,9 @@ "requireSSO": { "type": "boolean" }, + "enableFChat": { + "type": "boolean" + }, "enableResizeHandle": { "type": "boolean" }, @@ -548,6 +580,12 @@ "wrap": { "type": "boolean" }, + "usersListLocation": { + "$ref": "#/components/schemas/UsersListLocation" + }, + "usersListIncludeOffline": { + "type": "boolean" + }, "ticketBaseUrl": { "type": "string" }, @@ -882,6 +920,11 @@ "createdAt": { "type": "string", "format": "date-time" + }, + "type": { + "type": "string", + "nullable": true, + "description": "Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\")." } }, "required": [ @@ -1034,550 +1077,742 @@ "CrossPlatform" ] }, - "APIEmptyResponse": { + "GetTranslationsResponse": { "properties": { + "translations": { + "$ref": "#/components/schemas/Record_string.string_" + }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "translations", "status" ], "type": "object" }, - "FeedPostMediaItemAsset": { + "PublicPage": { "properties": { - "w": { + "updatedAt": { "type": "integer", - "format": "int32" + "format": "int64" }, - "h": { + "commentCount": { "type": "integer", "format": "int32" }, - "src": { + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { "type": "string" } }, "required": [ - "w", - "h", - "src" + "updatedAt", + "commentCount", + "title", + "url", + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "FeedPostMediaItem": { + "GetPublicPagesResponse": { "properties": { - "title": { - "type": "string" - }, - "linkUrl": { - "type": "string" + "nextCursor": { + "type": "string", + "nullable": true }, - "sizes": { + "pages": { "items": { - "$ref": "#/components/schemas/FeedPostMediaItemAsset" + "$ref": "#/components/schemas/PublicPage" }, "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "sizes" + "nextCursor", + "pages", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "FeedPostLink": { + "PagesSortBy": { + "type": "string", + "enum": [ + "updatedAt", + "commentCount", + "title" + ] + }, + "PageUserEntry": { "properties": { - "text": { - "type": "string" + "isPrivate": { + "type": "boolean" }, - "title": { + "avatarSrc": { "type": "string" }, - "description": { + "displayName": { "type": "string" }, - "url": { + "id": { "type": "string" } }, - "type": "object", - "additionalProperties": false - }, - "Int32Map": { - "properties": {}, - "additionalProperties": { - "type": "integer", - "format": "int32" - }, + "required": [ + "displayName", + "id" + ], "type": "object" }, - "FeedPost": { + "PageUsersOnlineResponse": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "title": { - "type": "string" - }, - "fromUserId": { - "type": "string" - }, - "fromUserDisplayName": { + "nextAfterUserId": { "type": "string", "nullable": true }, - "fromUserAvatar": { + "nextAfterName": { "type": "string", "nullable": true }, - "fromIpHash": { - "type": "string" - }, - "tags": { - "items": { - "type": "string" - }, - "type": "array" - }, - "weight": { + "totalCount": { "type": "number", "format": "double" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "contentHTML": { - "type": "string" - }, - "media": { - "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" - }, - "type": "array" + "anonCount": { + "type": "number", + "format": "double" }, - "links": { + "users": { "items": { - "$ref": "#/components/schemas/FeedPostLink" + "$ref": "#/components/schemas/PageUserEntry" }, "type": "array" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "reacts": { - "$ref": "#/components/schemas/Int32Map" - }, - "commentCount": { - "type": "integer", - "format": "int32", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "_id", - "tenantId", - "createdAt" + "nextAfterUserId", + "nextAfterName", + "totalCount", + "anonCount", + "users", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CommentUserBadgeInfo": { + "PageUsersOfflineResponse": { "properties": { - "id": { - "type": "string" - }, - "type": { - "type": "integer", - "format": "int32" - }, - "description": { - "type": "string" - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "displaySrc": { + "nextAfterUserId": { "type": "string", "nullable": true }, - "backgroundColor": { + "nextAfterName": { "type": "string", "nullable": true }, - "borderColor": { - "type": "string", - "nullable": true + "users": { + "items": { + "$ref": "#/components/schemas/PageUserEntry" + }, + "type": "array" }, - "textColor": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "nextAfterUserId", + "nextAfterName", + "users", + "status" + ], + "type": "object" + }, + "PageUsersInfoResponse": { + "properties": { + "users": { + "items": { + "$ref": "#/components/schemas/PageUserEntry" + }, + "type": "array" }, - "cssClass": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "id", - "type", - "description" + "users", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "UserSessionInfo": { + "GetV1PageLikes": { "properties": { - "id": { + "urlIdWS": { "type": "string" }, - "authorized": { + "didLike": { "type": "boolean" }, - "avatarSrc": { - "type": "string", - "nullable": true + "commentCount": { + "type": "integer", + "format": "int32" }, - "badges": { + "likeCount": { + "type": "integer", + "format": "int32" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "urlIdWS", + "didLike", + "commentCount", + "likeCount", + "status" + ], + "type": "object" + }, + "GetV2PageReactUsersResponse": { + "properties": { + "userNames": { "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" + "type": "string" }, "type": "array" }, - "displayLabel": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "email": { - "type": "string", - "nullable": true - }, - "groupIds": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "userNames", + "status" + ], + "type": "object" + }, + "Record_string.number_": { + "properties": {}, + "additionalProperties": { + "type": "number", + "format": "double" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "GetV2PageReacts": { + "properties": { + "reactedIds": { "items": { "type": "string" }, "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" - }, - "isAnonSession": { - "type": "boolean" - }, - "needsTOS": { - "type": "boolean" - }, - "sessionId": { - "type": "string", - "nullable": true - }, - "username": { - "type": "string" + "counts": { + "$ref": "#/components/schemas/Record_string.number_" }, - "websiteUrl": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, - "type": "object", - "additionalProperties": false + "required": [ + "status" + ], + "type": "object" }, - "GetPublicFeedPostsResponse": { + "CreateV1PageReact": { "properties": { + "code": { + "type": "string" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "feedPosts": { - "items": { - "$ref": "#/components/schemas/FeedPost" - }, - "type": "array" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true } }, "required": [ - "status", - "feedPosts" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "TenantIdWS": { - "type": "string" + "CreateV2PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UserIdWS": { - "type": "string" + "DeleteV1PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UrlIdWS": { - "type": "string" + "DeleteV2PageReact": { + "$ref": "#/components/schemas/CreateV1PageReact" }, - "UserPresenceData": { + "ModerationFilter": { "properties": { - "urlIdWS": { - "$ref": "#/components/schemas/UrlIdWS" + "reviewed": { + "type": "boolean" }, - "userIdWS": { - "$ref": "#/components/schemas/UserIdWS" + "approved": { + "type": "boolean" }, - "tenantIdWS": { - "$ref": "#/components/schemas/TenantIdWS" - } - }, - "type": "object" - }, - "PublicFeedPostsResponse": { - "allOf": [ - { - "properties": { - "myReacts": { - "properties": {}, - "additionalProperties": { - "properties": {}, - "additionalProperties": { - "type": "boolean" - }, - "type": "object" - }, - "type": "object" - } + "isSpam": { + "type": "boolean" + }, + "isBannedUser": { + "type": "boolean" + }, + "isLocked": { + "type": "boolean" + }, + "flagCountGt": { + "type": "number", + "format": "double" + }, + "userId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" }, - "type": "object" + "type": "array" }, - { - "$ref": "#/components/schemas/GetPublicFeedPostsResponse" + "commentTextSearch": { + "items": { + "type": "string" + }, + "type": "array", + "description": "Text search terms. Each term is matched case-insensitively against the comment text.\nA term wrapped in quotes means exact phrase match." }, - { - "$ref": "#/components/schemas/UserPresenceData" + "exactCommentText": { + "type": "string", + "description": "Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly\n(case-sensitive, full-string), as opposed to the substring matching of commentTextSearch." } - ] + }, + "type": "object", + "additionalProperties": false }, - "ReactFeedPostResponse": { + "BuildModerationFilterResponse": { "properties": { "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "reactType": { "type": "string" }, - "isUndo": { - "type": "boolean" + "moderationFilter": { + "$ref": "#/components/schemas/ModerationFilter" } }, "required": [ "status", - "reactType", - "isUndo" + "moderationFilter" ], "type": "object", "additionalProperties": false }, - "ReactBodyParams": { + "BuildModerationFilterParams": { "properties": { - "reactType": { + "userId": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "filters": { + "type": "string" + }, + "searchFilters": { + "type": "string" + }, + "textSearch": { "type": "string" } }, + "required": [ + "userId", + "tenantId" + ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "UserReactsResponse": { + "ModerationAPICountCommentsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "reacts": { - "properties": {}, - "additionalProperties": { - "properties": {}, - "additionalProperties": { - "type": "boolean" - }, - "type": "object" - }, - "type": "object" + "count": { + "type": "number", + "format": "double" } }, "required": [ "status", - "reacts" + "count" ], "type": "object", "additionalProperties": false }, - "CreateFeedPostResponse": { + "ModerationAPIGetCommentIdsResponse": { "properties": { + "ids": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasMore": { + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" } }, "required": [ - "status", - "feedPost" + "ids", + "hasMore", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateFeedPostParams": { + "UserId": { + "type": "string" + }, + "CommentUserBadgeInfo": { "properties": { - "title": { + "id": { "type": "string" }, - "contentHTML": { + "type": { + "type": "integer", + "format": "int32" + }, + "description": { "type": "string" }, - "media": { - "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" - }, - "type": "array" + "displayLabel": { + "type": "string", + "nullable": true }, - "links": { - "items": { - "$ref": "#/components/schemas/FeedPostLink" - }, - "type": "array" + "displaySrc": { + "type": "string", + "nullable": true }, - "fromUserId": { - "type": "string" + "backgroundColor": { + "type": "string", + "nullable": true }, - "fromUserDisplayName": { - "type": "string" + "borderColor": { + "type": "string", + "nullable": true }, - "tags": { - "items": { - "type": "string" - }, - "type": "array" + "textColor": { + "type": "string", + "nullable": true }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "cssClass": { + "type": "string", + "nullable": true } }, + "required": [ + "id", + "type", + "description" + ], "type": "object", "additionalProperties": false }, - "UpdateFeedPostParams": { + "ModerationAPIComment": { "properties": { - "title": { - "type": "string" + "isLocalDeleted": { + "type": "boolean" }, - "contentHTML": { - "type": "string" + "replyCount": { + "type": "number", + "format": "double" }, - "media": { + "feedbackResults": { "items": { - "$ref": "#/components/schemas/FeedPostMediaItem" + "type": "string" }, "type": "array" }, - "links": { + "isVotedUp": { + "type": "boolean" + }, + "isVotedDown": { + "type": "boolean" + }, + "myVoteId": { + "type": "string" + }, + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "commentHTML": { + "type": "string" + }, + "parentId": { + "type": "string", + "nullable": true + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "votes": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUp": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDown": { + "type": "number", + "format": "double", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "permNotSpam": { + "type": "boolean" + }, + "hasLinks": { + "type": "boolean" + }, + "hasCode": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "locale": { + "type": "string", + "nullable": true + }, + "isBannedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "flagCount": { + "type": "number", + "format": "double", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "badges": { "items": { - "$ref": "#/components/schemas/FeedPostLink" + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true }, - "tags": { + "verified": { + "type": "boolean" + }, + "feedbackIds": { "items": { "type": "string" }, "type": "array" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "isDeleted": { + "type": "boolean" } }, + "required": [ + "_id", + "tenantId", + "urlId", + "url", + "commenterName", + "commentHTML", + "date", + "approved", + "locale", + "verified" + ], "type": "object", "additionalProperties": false }, - "FeedPostStats": { + "ModerationAPIGetCommentsResponse": { "properties": { - "reacts": { - "$ref": "#/components/schemas/Int32Map" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "commentCount": { - "type": "integer", - "format": "int32" + "translations": { + "additionalProperties": false, + "type": "object" + }, + "comments": { + "items": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, + "type": "array" + }, + "moderationFilter": { + "$ref": "#/components/schemas/ModerationFilter" } }, + "required": [ + "status", + "translations", + "comments" + ], "type": "object", "additionalProperties": false }, - "FeedPostsStatsResponse": { + "ModerationExportResponse": { "properties": { "status": { - "$ref": "#/components/schemas/APIStatus" + "type": "string" }, - "stats": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/FeedPostStats" - }, - "type": "object" + "batchJobId": { + "type": "string" } }, "required": [ "status", - "stats" + "batchJobId" ], "type": "object", "additionalProperties": false }, - "EventLogEntry": { + "ModerationExportStatusResponse": { "properties": { - "_id": { + "status": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "tenantId": { + "jobStatus": { "type": "string" }, - "urlId": { - "type": "string" + "recordCount": { + "type": "integer", + "format": "int32" }, - "broadcastId": { + "downloadUrl": { + "type": "string" + } + }, + "required": [ + "status", + "jobStatus", + "recordCount" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationUserSearchProjected": { + "properties": { + "_id": { "type": "string" }, - "data": { + "username": { "type": "string" + }, + "displayName": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true } }, "required": [ "_id", - "createdAt", - "tenantId", - "urlId", - "broadcastId", - "data" + "username" ], "type": "object", "additionalProperties": false }, - "GetEventLogResponse": { + "ModerationUserSearchResponse": { "properties": { - "events": { + "users": { "items": { - "$ref": "#/components/schemas/EventLogEntry" + "$ref": "#/components/schemas/ModerationUserSearchProjected" }, "type": "array" }, @@ -1586,124 +1821,183 @@ } }, "required": [ - "events", + "users", "status" ], "type": "object" }, - "LiveEventType": { - "enum": [ - "update-badges", - "notification", - "notification-update", - "p-u", - "new-vote", - "deleted-vote", - "new-comment", - "updated-comment", - "deleted-comment", - "cvc", - "new-config", - "thread-state-change", - "fr", - "dfr", - "new-feed-post", - "updated-feed-post", - "deleted-feed-post" - ], - "type": "string" - }, - "TenantId": { - "type": "string" - }, - "UserNotification": { + "ModerationPageSearchProjected": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "$ref": "#/components/schemas/TenantId" - }, - "userId": { - "type": "string", - "nullable": true - }, - "anonUserId": { - "type": "string", - "nullable": true - }, "urlId": { "type": "string" }, "url": { "type": "string" }, - "pageTitle": { - "type": "string", - "nullable": true - }, - "relatedObjectType": { - "$ref": "#/components/schemas/NotificationObjectType" - }, - "relatedObjectId": { + "title": { "type": "string" }, - "viewed": { - "type": "boolean" - }, - "isUnreadMessage": { - "type": "boolean" - }, - "sent": { - "type": "boolean" - }, - "createdAt": { - "type": "string", - "format": "date-time" + "commentCount": { + "type": "number", + "format": "double" + } + }, + "required": [ + "urlId", + "url", + "title", + "commentCount" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationPageSearchResponse": { + "properties": { + "pages": { + "items": { + "$ref": "#/components/schemas/ModerationPageSearchProjected" + }, + "type": "array" }, - "type": { - "$ref": "#/components/schemas/NotificationType" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "pages", + "status" + ], + "type": "object" + }, + "ModerationSiteSearchProjected": { + "properties": { + "domain": { + "type": "string" }, - "fromCommentId": { + "logoSrc100px": { "type": "string", "nullable": true + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationSiteSearchResponse": { + "properties": { + "sites": { + "items": { + "$ref": "#/components/schemas/ModerationSiteSearchProjected" + }, + "type": "array" }, - "fromVoteId": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "sites", + "status" + ], + "type": "object" + }, + "ModerationCommentSearchResponse": { + "properties": { + "commentCount": { + "type": "integer", + "format": "int32" }, - "fromUserName": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "commentCount", + "status" + ], + "type": "object" + }, + "ModerationSuggestResponse": { + "properties": { + "status": { + "type": "string" }, - "fromUserId": { - "type": "string", - "nullable": true + "pages": { + "items": { + "$ref": "#/components/schemas/ModerationPageSearchProjected" + }, + "type": "array" }, - "fromUserAvatarSrc": { - "type": "string", - "nullable": true + "users": { + "items": { + "$ref": "#/components/schemas/ModerationUserSearchProjected" + }, + "type": "array" }, - "optedOut": { - "type": "boolean" + "code": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "PreBanSummary": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "usernames": { + "items": { + "type": "string" + }, + "type": "array" }, "count": { + "type": "number", + "format": "double" + } + }, + "required": [ + "status", + "usernames", + "count" + ], + "type": "object", + "additionalProperties": false + }, + "BulkPreBanSummary": { + "properties": { + "status": { + "type": "string" + }, + "totalRelatedCommentCount": { "type": "integer", - "format": "int64" + "format": "int32" }, - "relatedIds": { + "emailDomains": { "items": { "type": "string" }, "type": "array" }, - "fromUserIds": { + "emails": { "items": { "type": "string" }, "type": "array" }, - "fromUserNames": { + "userIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ipHashes": { "items": { "type": "string" }, @@ -1711,23 +2005,32 @@ } }, "required": [ - "_id", - "tenantId", - "urlId", - "url", - "relatedObjectType", - "relatedObjectId", - "viewed", - "isUnreadMessage", - "sent", - "createdAt", - "type", - "optedOut" + "status", + "totalRelatedCommentCount", + "emailDomains", + "emails", + "userIds", + "ipHashes" ], "type": "object", "additionalProperties": false }, - "PubSubVote": { + "BulkPreBanParams": { + "properties": { + "commentIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "commentIds" + ], + "type": "object", + "additionalProperties": false + }, + "APIBannedUser": { "properties": { "_id": { "type": "string" @@ -1735,52 +2038,61 @@ "tenantId": { "type": "string" }, - "urlId": { + "userId": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "username": { + "type": "string", + "nullable": true + }, + "ipHash": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "bannedByUserId": { "type": "string" }, - "urlIdRaw": { + "bannedCommentText": { "type": "string" }, - "commentId": { + "banType": { "type": "string" }, - "userId": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "direction": { - "type": "integer", - "format": "int32" + "hasEmailWildcard": { + "type": "boolean" }, - "createdAt": { - "type": "integer", - "format": "int64" - }, - "verificationId": { - "type": "string", - "nullable": true + "banReason": { + "type": "string" } }, "required": [ "_id", "tenantId", - "urlId", - "urlIdRaw", - "commentId", - "direction", "createdAt", - "verificationId" + "bannedByUserId", + "bannedCommentText", + "banType", + "bannedUntil", + "hasEmailWildcard" ], "type": "object", "additionalProperties": false }, - "UserId": { - "type": "string" - }, - "FDomain": { - "type": "string" - }, - "PubSubCommentBase": { + "APIBanUserChangedValues": { "properties": { "_id": { "type": "string" @@ -1789,1355 +2101,1647 @@ "type": "string" }, "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true - }, - "urlId": { - "type": "string" - }, - "commenterName": { - "type": "string" - }, - "commenterLink": { "type": "string", "nullable": true }, - "commentHTML": { - "type": "string" - }, - "comment": { - "type": "string" - }, - "parentId": { + "email": { "type": "string", "nullable": true }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesDown": { - "type": "integer", - "format": "int32", + "username": { + "type": "string", "nullable": true }, - "verified": { - "type": "boolean" - }, - "avatarSrc": { + "ipHash": { "type": "string", "nullable": true }, - "hasImages": { - "type": "boolean" - }, - "hasLinks": { - "type": "boolean" - }, - "isByAdmin": { - "type": "boolean" + "createdAt": { + "type": "string", + "format": "date-time" }, - "isByModerator": { - "type": "boolean" + "bannedByUserId": { + "type": "string" }, - "isPinned": { - "type": "boolean", - "nullable": true + "bannedCommentText": { + "type": "string" }, - "isLocked": { - "type": "boolean", - "nullable": true + "banType": { + "type": "string" }, - "displayLabel": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "rating": { - "type": "number", - "format": "double", - "nullable": true - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true - }, - "viewCount": { - "type": "integer", - "format": "int64", - "nullable": true - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { + "hasEmailWildcard": { "type": "boolean" }, - "isSpam": { - "type": "boolean" + "banReason": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "APIBanUserChangeLog": { + "properties": { + "createdBannedUserId": { + "type": "string" }, - "anonUserId": { - "type": "string", - "nullable": true + "updatedBannedUserId": { + "type": "string" }, - "feedbackIds": { + "deletedBannedUsers": { "items": { - "type": "string" + "$ref": "#/components/schemas/APIBannedUser" }, "type": "array" }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "changedValuesBefore": { + "$ref": "#/components/schemas/APIBanUserChangedValues" + } + }, + "type": "object", + "additionalProperties": false + }, + "BanUserFromCommentResult": { + "properties": { + "status": { + "type": "string" }, - "domain": { - "allOf": [ + "changelog": { + "$ref": "#/components/schemas/APIBanUserChangeLog" + }, + "code": { + "type": "string" + }, + "reason": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "BannedUserMatchType": { + "type": "string", + "enum": [ + "userId", + "email", + "email-wildcard", + "IP" + ] + }, + "BannedUserMatch": { + "properties": { + "matchedOn": { + "$ref": "#/components/schemas/BannedUserMatchType" + }, + "matchedOnValue": { + "anyOf": [ { - "$ref": "#/components/schemas/FDomain" + "type": "string" + }, + { + "type": "number", + "format": "double" } ], "nullable": true - }, - "url": { + } + }, + "required": [ + "matchedOn", + "matchedOnValue" + ], + "type": "object", + "additionalProperties": false + }, + "APICommentCommonBannedUser": { + "properties": { + "_id": { "type": "string" }, - "pageTitle": { + "userId": { "type": "string", "nullable": true }, - "expireAt": { + "banType": { + "type": "string" + }, + "email": { "type": "string", - "format": "date-time", "nullable": true }, - "reviewed": { - "type": "boolean" - }, - "hasCode": { - "type": "boolean" - }, - "approved": { - "type": "boolean" + "ipHash": { + "type": "string", + "nullable": true }, - "locale": { + "bannedUntil": { "type": "string", + "format": "date-time", "nullable": true }, - "isBannedUser": { + "hasEmailWildcard": { "type": "boolean" }, - "groupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "banReason": { + "type": "string" } }, "required": [ "_id", - "tenantId", - "urlId", - "commenterName", - "commentHTML", - "comment", - "verified", - "url", - "approved", - "locale" + "banType", + "bannedUntil", + "hasEmailWildcard" ], "type": "object", "additionalProperties": false }, - "PubSubComment": { + "APIBannedUserWithMultiMatchInfo": { "allOf": [ - { - "$ref": "#/components/schemas/PubSubCommentBase" - }, { "properties": { - "isLive": { - "type": "boolean" - }, - "hidden": { - "type": "boolean" - }, - "date": { - "type": "string" + "matches": { + "items": { + "$ref": "#/components/schemas/BannedUserMatch" + }, + "type": "array" } }, "required": [ - "date" + "matches" ], "type": "object" + }, + { + "$ref": "#/components/schemas/APICommentCommonBannedUser" } ] }, - "Record_string._before-string-or-null--after-string-or-null__": { - "properties": {}, - "additionalProperties": { - "properties": { - "after": { - "type": "string" + "GetBannedUsersFromCommentResponse": { + "properties": { + "bannedUsers": { + "items": { + "$ref": "#/components/schemas/APIBannedUserWithMultiMatchInfo" }, - "before": { - "type": "string" - } + "type": "array" }, - "required": [ - "after", - "before" - ], - "type": "object" + "code": { + "type": "string", + "enum": [ + "not-found", + "not-logged-in" + ] + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } }, + "required": [ + "bannedUsers", + "status" + ], + "type": "object" + }, + "APIEmptyResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "BanUserUndoParams": { + "properties": { + "changelog": { + "$ref": "#/components/schemas/APIBanUserChangeLog" + } + }, + "required": [ + "changelog" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "CommentPositions": { - "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + "DeleteCommentAction": { + "type": "string", + "enum": [ + "already-deleted", + "hard-removed", + "anonymized" + ] }, - "LiveEvent": { + "DeleteCommentResult": { "properties": { - "type": { - "$ref": "#/components/schemas/LiveEventType" - }, - "timestamp": { - "type": "integer", - "format": "int64" - }, - "ts": { - "type": "integer", - "format": "int64" + "action": { + "$ref": "#/components/schemas/DeleteCommentAction" }, - "broadcastId": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "action", + "status" + ], + "type": "object" + }, + "RemoveCommentActionResponse": { + "properties": { + "status": { "type": "string" }, - "userId": { + "action": { "type": "string" + } + }, + "required": [ + "status", + "action" + ], + "type": "object", + "additionalProperties": false + }, + "SetCommentApprovedResponse": { + "properties": { + "didResetFlaggedCount": { + "type": "boolean" }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array" - }, - "notification": { - "$ref": "#/components/schemas/UserNotification" - }, - "vote": { - "$ref": "#/components/schemas/PubSubVote" - }, - "comment": { - "$ref": "#/components/schemas/PubSubComment" - }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" - }, - "extraInfo": { - "properties": { - "commentPositions": { - "$ref": "#/components/schemas/CommentPositions" - } - }, - "type": "object" - }, - "config": { - "additionalProperties": false, - "type": "object" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "ModerationAPICommentLog": { + "properties": { + "date": { + "type": "string", + "format": "date-time" }, - "isClosed": { - "type": "boolean" + "username": { + "type": "string" }, - "uj": { - "items": { - "type": "string" - }, - "type": "array" + "actionName": { + "type": "string" }, - "ul": { + "messageHTML": { + "type": "string" + } + }, + "required": [ + "date", + "actionName", + "messageHTML" + ], + "type": "object", + "additionalProperties": false + }, + "ModerationAPIGetLogsResponse": { + "properties": { + "logs": { "items": { - "type": "string" + "$ref": "#/components/schemas/ModerationAPICommentLog" }, "type": "array" }, - "changes": { - "$ref": "#/components/schemas/Int32Map" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "type" + "logs", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "PublicAPIGetCommentTextResponse": { + "ModerationAPICommentResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "commentText": { - "type": "string" - }, - "sanitizedCommentText": { - "type": "string" } }, "required": [ - "status", - "commentText", - "sanitizedCommentText" + "comment", + "status" ], "type": "object" }, - "SetCommentTextResult": { + "ModerationAPIChildCommentsResponse": { "properties": { - "approved": { - "type": "boolean" + "comments": { + "items": { + "$ref": "#/components/schemas/ModerationAPIComment" + }, + "type": "array" }, - "commentHTML": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "approved", - "commentHTML" + "comments", + "status" + ], + "type": "object" + }, + "CommentsByIdsParams": { + "properties": { + "ids": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "ids" ], "type": "object", "additionalProperties": false }, - "PublicAPISetCommentTextResponse": { + "GetCommentTextResponse": { "properties": { "comment": { - "$ref": "#/components/schemas/SetCommentTextResult" + "type": "string", + "nullable": true }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "comment", "status" ], "type": "object" }, - "CommentUserMentionInfo": { + "SetCommentTextResponse": { "properties": { - "id": { + "newCommentTextHTML": { "type": "string" }, - "tag": { - "type": "string" - }, - "rawTag": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "newCommentTextHTML", + "status" + ], + "type": "object" + }, + "SetCommentTextParams": { + "properties": { + "comment": { "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "user", - "sso" - ] - }, - "sent": { - "type": "boolean" } }, "required": [ - "id", - "tag" + "comment" ], "type": "object", "additionalProperties": false }, - "CommentUserHashTagInfo": { + "AdjustVotesResponse": { "properties": { - "id": { - "type": "string" - }, - "tag": { + "status": { "type": "string" }, - "url": { - "type": "string", - "nullable": true - }, - "retain": { - "type": "boolean" + "newCommentVotes": { + "type": "integer", + "format": "int32" } }, "required": [ - "id", - "tag", - "url" + "status", + "newCommentVotes" ], "type": "object", "additionalProperties": false }, - "CommentTextUpdateRequest": { + "AdjustCommentVotesParams": { "properties": { - "comment": { - "type": "string" - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "adjustVoteAmount": { + "type": "number", + "format": "double" } }, "required": [ - "comment" + "adjustVoteAmount" ], "type": "object", "additionalProperties": false }, - "PublicComment": { - "allOf": [ - { - "properties": { - "isUnread": { - "type": "boolean" - }, - "myVoteId": { - "type": "string" - }, - "isVotedDown": { - "type": "boolean" - }, - "isVotedUp": { - "type": "boolean" - }, - "hasChildren": { - "type": "boolean", - "description": "This is always set when asTree=true" - }, - "nestedChildrenCount": { - "type": "integer", - "format": "int32", - "description": "The total nested child count included in this response (may be more available w/ pagination) Only set with asTree=true, otherwise this will be null." - }, - "childCount": { - "type": "integer", - "format": "int32", - "description": "You must ask the API to count children (with asTree=true&countChildren=true), otherwise this will be null. This will be the complete direct child count, whereas children may only contain a subset based on pagination." - }, - "children": { - "items": { - "$ref": "#/components/schemas/PublicComment" - }, - "type": "array" - }, - "isFlagged": { - "type": "boolean" + "VoteResponseUser": { + "properties": { + "sessionId": { + "type": "string", + "nullable": true + } + }, + "type": "object", + "additionalProperties": false + }, + "VoteResponse": { + "properties": { + "status": { + "anyOf": [ + { + "$ref": "#/components/schemas/APIStatus" }, - "isBlocked": { - "type": "boolean" + { + "type": "string", + "enum": [ + "pending-verification" + ] } - }, - "type": "object" + ] }, - { - "$ref": "#/components/schemas/PublicCommentBase" + "voteId": { + "type": "string" + }, + "isVerified": { + "type": "boolean" + }, + "user": { + "$ref": "#/components/schemas/VoteResponseUser" + }, + "editKey": { + "type": "string" } - ] + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false }, - "PublicCommentBase": { + "VoteDeleteResponse": { "properties": { - "_id": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "wasPendingVote": { + "type": "boolean" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "GetCommentBanStatusResponse": { + "properties": { + "status": { "type": "string" }, - "userId": { + "emailDomain": { + "type": "string", + "nullable": true + }, + "canIPBan": { + "type": "boolean", + "nullable": true + } + }, + "required": [ + "status", + "emailDomain", + "canIPBan" + ], + "type": "object", + "additionalProperties": false + }, + "APIModerateUserBanPreferences": { + "properties": { + "shouldBanEmail": { + "type": "boolean" + }, + "shouldBanByIP": { + "type": "boolean" + }, + "lastBanType": { + "type": "string" + }, + "lastBanDuration": { + "type": "string" + } + }, + "required": [ + "shouldBanEmail", + "shouldBanByIP", + "lastBanType", + "lastBanDuration" + ], + "type": "object", + "additionalProperties": false + }, + "APIModerateGetUserBanPreferencesResponse": { + "properties": { + "preferences": { "allOf": [ { - "$ref": "#/components/schemas/UserId" + "$ref": "#/components/schemas/APIModerateUserBanPreferences" } ], "nullable": true }, - "commenterName": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "preferences", + "status" + ], + "type": "object" + }, + "TenantBadge": { + "properties": { + "_id": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "commentHTML": { + "tenantId": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "createdByUserId": { + "type": "string" }, - "date": { + "createdAt": { "type": "string", - "format": "date-time", - "nullable": true + "format": "date-time" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "enabled": { + "type": "boolean" }, - "votesUp": { - "type": "integer", - "format": "int32", + "urlId": { + "type": "string", "nullable": true }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "type": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "threshold": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "uses": { + "type": "number", + "format": "double" }, - "hasImages": { - "type": "boolean" + "name": { + "type": "string" }, - "isByAdmin": { - "type": "boolean" + "description": { + "type": "string" }, - "isByModerator": { - "type": "boolean" + "displayLabel": { + "type": "string" }, - "isPinned": { - "type": "boolean", + "displaySrc": { + "type": "string", "nullable": true }, - "isLocked": { - "type": "boolean", + "backgroundColor": { + "type": "string", "nullable": true }, - "displayLabel": { + "borderColor": { "type": "string", "nullable": true }, - "rating": { - "type": "number", - "format": "double", + "textColor": { + "type": "string", "nullable": true }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", + "cssClass": { + "type": "string", "nullable": true }, - "viewCount": { - "type": "integer", - "format": "int64", + "veteranUserThresholdMillis": { + "type": "number", + "format": "double", "nullable": true }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { + "isAwaitingReprocess": { "type": "boolean" }, - "isSpam": { + "isAwaitingDeletion": { "type": "boolean" }, - "anonUserId": { + "replacesBadgeId": { "type": "string", "nullable": true - }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "requiresVerification": { - "type": "boolean" - }, - "editKey": { - "type": "string" - }, - "approved": { - "type": "boolean" } }, "required": [ "_id", - "commenterName", - "commentHTML", - "date", - "verified" - ], - "type": "object", - "additionalProperties": false - }, - "Record_string.any_": { - "properties": {}, - "additionalProperties": {}, + "tenantId", + "createdByUserId", + "createdAt", + "enabled", + "type", + "threshold", + "uses", + "name", + "description", + "displayLabel", + "displaySrc", + "backgroundColor", + "borderColor", + "textColor", + "isAwaitingReprocess", + "isAwaitingDeletion" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "GetCommentsResponse_PublicComment_": { + "GetTenantManualBadgesResponse": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" + "badges": { + "items": { + "$ref": "#/components/schemas/TenantBadge" + }, + "type": "array" }, "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "badges", + "status" + ], + "type": "object" + }, + "UserBadge": { + "properties": { + "_id": { "type": "string" }, - "code": { + "userId": { "type": "string" }, - "reason": { + "badgeId": { "type": "string" }, - "translatedWarning": { + "fromTenantId": { "type": "string" }, - "comments": { - "items": { - "$ref": "#/components/schemas/PublicComment" - }, - "type": "array" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "urlIdClean": { - "type": "string" + "createdAt": { + "type": "string", + "format": "date-time" }, - "lastGenDate": { + "type": { "type": "integer", - "format": "int64", - "nullable": true - }, - "includesPastPages": { - "type": "boolean" - }, - "isDemo": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "format": "int32" }, - "commentCount": { + "threshold": { "type": "integer", - "format": "int32" + "format": "int64" }, - "isSiteAdmin": { - "type": "boolean" + "description": { + "type": "string" }, - "hasBillingIssue": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "displayLabel": { + "type": "string" }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" + "displaySrc": { + "type": "string", + "nullable": true }, - "pageNumber": { - "type": "integer", - "format": "int32" + "backgroundColor": { + "type": "string", + "nullable": true }, - "isWhiteLabeled": { - "type": "boolean" + "borderColor": { + "type": "string", + "nullable": true }, - "isProd": { - "type": "boolean", - "enum": [ - false - ], - "nullable": false + "textColor": { + "type": "string", + "nullable": true }, - "isCrawler": { - "type": "boolean", - "enum": [ - true - ], - "nullable": false + "cssClass": { + "type": "string", + "nullable": true }, - "notificationCount": { + "veteranUserThresholdMillis": { "type": "integer", - "format": "int32" + "format": "int64" }, - "hasMore": { + "displayedOnComments": { "type": "boolean" }, - "isClosed": { - "type": "boolean" + "receivedAt": { + "type": "string", + "format": "date-time" }, - "presencePollState": { + "order": { "type": "integer", "format": "int32" }, - "customConfig": { - "$ref": "#/components/schemas/CustomConfigParameters" + "urlId": { + "type": "string", + "nullable": true } }, "required": [ - "status", - "comments", - "user", - "pageNumber" + "_id", + "userId", + "badgeId", + "fromTenantId", + "createdAt", + "type", + "threshold", + "description", + "displayLabel", + "veteranUserThresholdMillis", + "displayedOnComments", + "receivedAt" ], "type": "object", "additionalProperties": false }, - "GetCommentsResponseWithPresence_PublicComment_": { - "allOf": [ - { - "$ref": "#/components/schemas/GetCommentsResponse_PublicComment_" - }, - { - "$ref": "#/components/schemas/UserPresenceData" - } - ] - }, - "SaveCommentResponseOptimized": { + "GetUserManualBadgesResponse": { "properties": { + "badges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "comment": { - "$ref": "#/components/schemas/PublicComment" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" } }, "required": [ - "status", - "comment", - "user" + "badges", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "SaveCommentsResponseWithPresence": { - "allOf": [ - { - "$ref": "#/components/schemas/SaveCommentResponseOptimized" + "AwardUserBadgeResponse": { + "properties": { + "notes": { + "items": { + "type": "string" + }, + "type": "array" }, - { - "properties": { - "userIdWS": { - "$ref": "#/components/schemas/UserIdWS" - } + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "object" + "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } - ] + }, + "required": [ + "status" + ], + "type": "object" }, - "Record_string.string-or-number_": { - "properties": {}, - "additionalProperties": { - "anyOf": [ - { - "type": "string" + "RemoveUserBadgeResponse": { + "properties": { + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - { - "type": "number", - "format": "double" - } - ] + "type": "array" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" + "required": [ + "status" + ], + "type": "object" }, - "CommentData": { + "GetUserTrustFactorResponse": { "properties": { - "date": { - "type": "integer", - "format": "int64" - }, - "localDateString": { - "type": "string" - }, - "localDateHours": { - "type": "integer", - "format": "int32" - }, - "commenterName": { - "type": "string" - }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "comment": { - "type": "string" - }, - "productId": { - "type": "integer", - "format": "int32" - }, - "userId": { - "type": "string", - "nullable": true - }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "parentId": { - "type": "string", - "nullable": true - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "pageTitle": { - "type": "string" - }, - "isFromMyAccountPage": { - "type": "boolean" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "meta": { - "additionalProperties": false, - "type": "object" - }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "rating": { + "manualTrustFactor": { "type": "number", "format": "double" }, - "fromOfflineRestore": { - "type": "boolean" + "autoTrustFactor": { + "type": "number", + "format": "double" }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "SetUserTrustFactorResponse": { + "properties": { + "previousManualTrustFactor": { + "type": "number", + "format": "double" }, - "feedbackIds": { - "items": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "GetUserInternalProfileResponse": { + "properties": { + "profile": { + "properties": { + "commenterName": { + "type": "string" + }, + "firstCommentDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "ipHash": { + "type": "string" + }, + "countryFlag": { + "type": "string" + }, + "countryCode": { + "type": "string" + }, + "websiteUrl": { + "type": "string", + "nullable": true + }, + "bio": { + "type": "string" + }, + "karma": { + "type": "number", + "format": "double" + }, + "locale": { + "type": "string" + }, + "verified": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "displayName": { + "type": "string" + }, + "username": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + } }, - "type": "array" - }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" + "type": "object" }, - "tos": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId" + "profile", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "DeletedCommentResultComment": { + "GetBannedUsersCountResponse": { "properties": { - "isDeleted": { - "type": "boolean" - }, - "commentHTML": { - "type": "string" + "totalCount": { + "type": "number", + "format": "double" }, - "commenterName": { + "status": { "type": "string" - }, - "userId": { - "type": "string", - "nullable": true } }, "required": [ - "commentHTML", - "commenterName" + "totalCount", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "PublicAPIDeleteCommentResponse": { + "GifSearchResponse": { "properties": { - "comment": { - "$ref": "#/components/schemas/DeletedCommentResultComment" - }, - "hardRemoved": { - "type": "boolean" + "images": { + "items": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ] + }, + "type": "array" + }, + "type": "array" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "hardRemoved", + "images", "status" ], "type": "object" }, - "CheckBlockedCommentsResponse": { + "GifSearchInternalError": { "properties": { - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "code": { + "type": "string" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentStatuses", + "code", "status" ], "type": "object" }, - "VoteResponseUser": { + "GifGetLargeResponse": { "properties": { - "sessionId": { - "type": "string", - "nullable": true + "src": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" } }, - "type": "object", - "additionalProperties": false + "required": [ + "src", + "status" + ], + "type": "object" }, - "VoteResponse": { + "FeedPostMediaItemAsset": { "properties": { - "status": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIStatus" - }, - { - "type": "string", - "enum": [ - "pending-verification" - ] - } - ] - }, - "voteId": { - "type": "string" - }, - "isVerified": { - "type": "boolean" + "w": { + "type": "integer", + "format": "int32" }, - "user": { - "$ref": "#/components/schemas/VoteResponseUser" + "h": { + "type": "integer", + "format": "int32" }, - "editKey": { + "src": { "type": "string" } }, "required": [ - "status" + "w", + "h", + "src" ], "type": "object", "additionalProperties": false }, - "VoteBodyParams": { + "FeedPostMediaItem": { "properties": { - "commenterEmail": { + "title": { + "type": "string" + }, + "linkUrl": { + "type": "string" + }, + "sizes": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItemAsset" + }, + "type": "array" + } + }, + "required": [ + "sizes" + ], + "type": "object", + "additionalProperties": false + }, + "FeedPostLink": { + "properties": { + "text": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "Int32Map": { + "properties": {}, + "additionalProperties": { + "type": "integer", + "format": "int32" + }, + "type": "object" + }, + "FeedPost": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "title": { + "type": "string" + }, + "fromUserId": { + "type": "string" + }, + "fromUserDisplayName": { "type": "string", "nullable": true }, - "commenterName": { + "fromUserAvatar": { "type": "string", "nullable": true }, - "voteDir": { - "type": "string", - "enum": [ - "up", - "down" - ] + "fromIpHash": { + "type": "string" }, - "url": { + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "weight": { + "type": "number", + "format": "double" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "contentHTML": { + "type": "string" + }, + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" + }, + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" + }, + "createdAt": { "type": "string", + "format": "date-time" + }, + "reacts": { + "$ref": "#/components/schemas/Int32Map" + }, + "commentCount": { + "type": "integer", + "format": "int32", "nullable": true } }, "required": [ - "commenterEmail", - "commenterName", - "voteDir", - "url" + "_id", + "tenantId", + "createdAt" ], "type": "object", "additionalProperties": false }, - "VoteDeleteResponse": { + "UserSessionInfo": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "id": { + "type": "string" }, - "wasPendingVote": { + "authorized": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" + }, + "displayLabel": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "email": { + "type": "string", + "nullable": true + }, + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasBlockedUsers": { + "type": "boolean" + }, + "isAnonSession": { + "type": "boolean" + }, + "needsTOS": { "type": "boolean" + }, + "sessionId": { + "type": "string", + "nullable": true + }, + "username": { + "type": "string" + }, + "websiteUrl": { + "type": "string" } }, - "required": [ - "status" - ], "type": "object", "additionalProperties": false }, - "GetCommentVoteUserNamesSuccessResponse": { + "GetPublicFeedPostsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "voteUserNames": { + "feedPosts": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPost" }, "type": "array" }, - "hasMore": { - "type": "boolean" + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true } }, "required": [ "status", - "voteUserNames", - "hasMore" + "feedPosts" ], "type": "object", "additionalProperties": false }, - "ChangeCommentPinStatusResponse": { + "TenantIdWS": { + "type": "string" + }, + "UserIdWS": { + "type": "string" + }, + "UrlIdWS": { + "type": "string" + }, + "UserPresenceData": { "properties": { - "commentPositions": { - "$ref": "#/components/schemas/CommentPositions" + "urlIdWS": { + "$ref": "#/components/schemas/UrlIdWS" }, - "status": { - "$ref": "#/components/schemas/APIStatus" + "userIdWS": { + "$ref": "#/components/schemas/UserIdWS" + }, + "tenantIdWS": { + "$ref": "#/components/schemas/TenantIdWS" } }, - "required": [ - "commentPositions", - "status" - ], "type": "object" }, - "BlockSuccess": { + "PublicFeedPostsResponse": { + "allOf": [ + { + "properties": { + "myReacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" + }, + "type": "object" + } + }, + "type": "object" + }, + { + "$ref": "#/components/schemas/GetPublicFeedPostsResponse" + }, + { + "$ref": "#/components/schemas/UserPresenceData" + } + ] + }, + "ReactFeedPostResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "reactType": { + "type": "string" + }, + "isUndo": { + "type": "boolean" } }, "required": [ "status", - "commentStatuses" + "reactType", + "isUndo" ], "type": "object", "additionalProperties": false }, - "PublicBlockFromCommentParams": { + "ReactBodyParams": { "properties": { - "commentIds": { - "items": { - "type": "string" + "reactType": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "UserReactsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "reacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" }, - "type": "array", - "nullable": true, - "description": "A list of comment ids to check if are blocked after performing the update." + "type": "object" } }, "required": [ - "commentIds" + "status", + "reacts" ], "type": "object", "additionalProperties": false }, - "UnblockSuccess": { + "CreateFeedPostResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "feedPost": { + "$ref": "#/components/schemas/FeedPost" } }, "required": [ "status", - "commentStatuses" + "feedPost" ], "type": "object", "additionalProperties": false }, - "APIUserSubscription": { + "CreateFeedPostParams": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "pageTitle": { + "title": { "type": "string" }, - "url": { + "contentHTML": { "type": "string" }, - "urlId": { - "type": "string" + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" }, - "anonUserId": { - "type": "string" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" }, - "userId": { + "fromUserId": { "type": "string" }, - "id": { + "fromUserDisplayName": { "type": "string" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, - "required": [ - "createdAt", - "urlId", - "id" - ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "GetSubscriptionsAPIResponse": { + "UpdateFeedPostParams": { "properties": { - "reason": { + "title": { "type": "string" }, - "code": { + "contentHTML": { "type": "string" }, - "subscriptions": { + "media": { "items": { - "$ref": "#/components/schemas/APIUserSubscription" + "$ref": "#/components/schemas/FeedPostMediaItem" }, "type": "array" }, - "status": { - "type": "string" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" + }, + "tags": { + "items": { + "type": "string" + }, + "type": "array" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, - "required": [ - "status" - ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "CreateSubscriptionAPIResponse": { + "FeedPostStats": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" + "reacts": { + "$ref": "#/components/schemas/Int32Map" }, + "commentCount": { + "type": "integer", + "format": "int32" + } + }, + "type": "object", + "additionalProperties": false + }, + "FeedPostsStatsResponse": { + "properties": { "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" + }, + "stats": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/FeedPostStats" + }, + "type": "object" } }, "required": [ - "status" + "status", + "stats" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "CreateAPIUserSubscriptionData": { + "EventLogEntry": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "pageTitle": { + "_id": { "type": "string" }, - "url": { + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { "type": "string" }, "urlId": { "type": "string" }, - "anonUserId": { + "broadcastId": { "type": "string" }, - "userId": { + "data": { "type": "string" } }, "required": [ - "urlId" + "_id", + "createdAt", + "tenantId", + "urlId", + "broadcastId", + "data" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "UpdateSubscriptionAPIResponse": { + "GetEventLogResponse": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" + "events": { + "items": { + "$ref": "#/components/schemas/EventLogEntry" + }, + "type": "array" }, "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "events", "status" ], "type": "object" }, - "UpdateAPIUserSubscriptionData": { - "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - } - }, - "type": "object" + "LiveEventType": { + "enum": [ + "update-badges", + "notification", + "notification-update", + "p-u", + "new-vote", + "deleted-vote", + "new-comment", + "updated-comment", + "deleted-comment", + "cvc", + "new-config", + "thread-state-change", + "fr", + "dfr", + "new-feed-post", + "updated-feed-post", + "deleted-feed-post", + "new-ticket", + "updated-ticket-state", + "updated-ticket-assignment", + "deleted-ticket", + "page-react", + "question-result" + ], + "type": "string" }, - "DeleteSubscriptionAPIResponse": { + "TenantId": { + "type": "string" + }, + "UserNotification": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { + "$ref": "#/components/schemas/TenantId" + }, + "userId": { + "type": "string", + "nullable": true + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "urlId": { "type": "string" }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "APISSOUser": { - "properties": { - "id": { - "type": "string" - }, - "username": { + "url": { "type": "string" }, - "websiteUrl": { - "type": "string" - }, - "email": { - "type": "string" + "pageTitle": { + "type": "string", + "nullable": true }, - "signUpDate": { - "type": "integer", - "format": "int64" + "relatedObjectType": { + "$ref": "#/components/schemas/NotificationObjectType" }, - "createdFromUrlId": { + "relatedObjectId": { "type": "string" }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "avatarSrc": { - "type": "string" + "viewed": { + "type": "boolean" }, - "optedInNotifications": { + "isUnreadMessage": { "type": "boolean" }, - "optedInSubscriptionNotifications": { + "sent": { "type": "boolean" }, - "displayLabel": { - "type": "string" + "createdAt": { + "type": "string", + "format": "date-time" }, - "displayName": { - "type": "string" + "type": { + "$ref": "#/components/schemas/NotificationType" }, - "isAccountOwner": { - "type": "boolean" + "fromCommentId": { + "type": "string", + "nullable": true }, - "isAdminAdmin": { - "type": "boolean" + "fromVoteId": { + "type": "string", + "nullable": true }, - "isCommentModeratorAdmin": { - "type": "boolean" + "fromUserName": { + "type": "string", + "nullable": true }, - "isProfileActivityPrivate": { - "type": "boolean" + "fromUserId": { + "type": "string", + "nullable": true }, - "isProfileCommentsPrivate": { - "type": "boolean" + "fromUserAvatarSrc": { + "type": "string", + "nullable": true }, - "isProfileDMDisabled": { + "optedOut": { "type": "boolean" }, - "hasBlockedUsers": { - "type": "boolean" + "count": { + "type": "integer", + "format": "int64" }, - "groupIds": { + "relatedIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fromUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fromUserNames": { "items": { "type": "string" }, @@ -3145,1908 +3749,2087 @@ } }, "required": [ - "id", - "username", - "websiteUrl", - "email", - "signUpDate", - "createdFromUrlId", - "loginCount", - "avatarSrc", - "optedInNotifications", - "optedInSubscriptionNotifications", - "displayLabel", - "displayName" + "_id", + "tenantId", + "urlId", + "url", + "relatedObjectType", + "relatedObjectId", + "viewed", + "isUnreadMessage", + "sent", + "createdAt", + "type", + "optedOut" ], "type": "object", "additionalProperties": false }, - "GetSSOUserByIdAPIResponse": { + "PubSubVote": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { + "urlId": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "GetSSOUserByEmailAPIResponse": { - "properties": { - "reason": { + }, + "urlIdRaw": { "type": "string" }, - "code": { + "commentId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "userId": { + "type": "string", + "nullable": true }, - "status": { - "type": "string" + "direction": { + "type": "integer", + "format": "int32" + }, + "createdAt": { + "type": "integer", + "format": "int64" + }, + "verificationId": { + "type": "string", + "nullable": true } }, "required": [ - "status" + "_id", + "tenantId", + "urlId", + "urlIdRaw", + "commentId", + "direction", + "createdAt", + "verificationId" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "DeleteSSOUserAPIResponse": { + "FDomain": { + "type": "string" + }, + "PubSubCommentBase": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "PatchSSOUserAPIResponse": { - "properties": { - "reason": { + "urlId": { "type": "string" }, - "code": { + "commenterName": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "commenterLink": { + "type": "string", + "nullable": true }, - "status": { + "commentHTML": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "UpdateAPISSOUserData": { - "properties": { - "groupIds": { - "items": { - "type": "string" - }, - "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" + "comment": { + "type": "string" }, - "isProfileDMDisabled": { - "type": "boolean" + "parentId": { + "type": "string", + "nullable": true }, - "isProfileCommentsPrivate": { - "type": "boolean" + "votes": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isProfileActivityPrivate": { - "type": "boolean" + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isCommentModeratorAdmin": { - "type": "boolean" + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isAdminAdmin": { + "verified": { "type": "boolean" }, - "isAccountOwner": { - "type": "boolean" + "avatarSrc": { + "type": "string", + "nullable": true }, - "displayName": { - "type": "string" + "hasImages": { + "type": "boolean" }, - "displayLabel": { - "type": "string" + "hasLinks": { + "type": "boolean" }, - "optedInSubscriptionNotifications": { + "isByAdmin": { "type": "boolean" }, - "optedInNotifications": { + "isByModerator": { "type": "boolean" }, - "avatarSrc": { - "type": "string" + "isPinned": { + "type": "boolean", + "nullable": true }, - "loginCount": { - "type": "integer", - "format": "int32" + "isLocked": { + "type": "boolean", + "nullable": true }, - "createdFromUrlId": { - "type": "string" + "displayLabel": { + "type": "string", + "nullable": true }, - "signUpDate": { + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "viewCount": { "type": "integer", - "format": "int64" + "format": "int64", + "nullable": true }, - "email": { - "type": "string" + "isDeleted": { + "type": "boolean" }, - "websiteUrl": { - "type": "string" + "isDeletedUser": { + "type": "boolean" }, - "username": { - "type": "string" + "isSpam": { + "type": "boolean" }, - "id": { - "type": "string" - } - }, - "type": "object" - }, - "PutSSOUserAPIResponse": { - "properties": { - "reason": { - "type": "string" + "anonUserId": { + "type": "string", + "nullable": true }, - "code": { - "type": "string" + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "user": { + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "domain": { "allOf": [ { - "$ref": "#/components/schemas/APISSOUser" + "$ref": "#/components/schemas/FDomain" } ], "nullable": true }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AddSSOUserAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { + "url": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateAPISSOUserData": { - "properties": { - "groupIds": { - "items": { - "type": "string" - }, - "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" + "pageTitle": { + "type": "string", + "nullable": true }, - "isProfileDMDisabled": { - "type": "boolean" + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true }, - "isProfileCommentsPrivate": { + "reviewed": { "type": "boolean" }, - "isProfileActivityPrivate": { + "hasCode": { "type": "boolean" }, - "isCommentModeratorAdmin": { + "approved": { "type": "boolean" }, - "isAdminAdmin": { - "type": "boolean" + "locale": { + "type": "string", + "nullable": true }, - "isAccountOwner": { + "isBannedUser": { "type": "boolean" }, - "displayName": { - "type": "string" - }, - "displayLabel": { - "type": "string" - }, - "optedInSubscriptionNotifications": { - "type": "boolean" + "groupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + } + }, + "required": [ + "_id", + "tenantId", + "urlId", + "commenterName", + "commentHTML", + "comment", + "verified", + "url", + "approved", + "locale" + ], + "type": "object", + "additionalProperties": false + }, + "PubSubComment": { + "allOf": [ + { + "$ref": "#/components/schemas/PubSubCommentBase" }, - "optedInNotifications": { - "type": "boolean" + { + "properties": { + "isLive": { + "type": "boolean" + }, + "hidden": { + "type": "boolean" + }, + "date": { + "type": "string" + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] + }, + "Record_string._before-string-or-null--after-string-or-null__": { + "properties": {}, + "additionalProperties": { + "properties": { + "after": { + "type": "string", + "nullable": true + }, + "before": { + "type": "string", + "nullable": true + } }, - "avatarSrc": { - "type": "string" + "required": [ + "after", + "before" + ], + "type": "object" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "CommentPositions": { + "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + }, + "LiveEvent": { + "properties": { + "type": { + "$ref": "#/components/schemas/LiveEventType" }, - "loginCount": { + "timestamp": { "type": "integer", - "format": "int32" - }, - "createdFromUrlId": { - "type": "string" + "format": "int64" }, - "signUpDate": { + "ts": { "type": "integer", "format": "int64" }, - "email": { + "broadcastId": { "type": "string" }, - "websiteUrl": { + "userId": { "type": "string" }, - "username": { - "type": "string" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" + }, + "notification": { + "$ref": "#/components/schemas/UserNotification" + }, + "vote": { + "$ref": "#/components/schemas/PubSubVote" + }, + "comment": { + "$ref": "#/components/schemas/PubSubComment" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" + }, + "extraInfo": { + "properties": { + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" + } + }, + "type": "object" + }, + "config": { + "additionalProperties": false, + "type": "object" }, - "id": { - "type": "string" - } - }, - "required": [ - "email", - "username", - "id" - ], - "type": "object" - }, - "APIPage": { - "properties": { "isClosed": { "type": "boolean" }, - "accessibleByGroupIds": { + "uj": { "items": { "type": "string" }, "type": "array" }, - "rootCommentCount": { - "type": "integer", - "format": "int64" + "ul": { + "items": { + "type": "string" + }, + "type": "array" }, - "commentCount": { + "sc": { "type": "integer", - "format": "int64" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" + "format": "int32" }, - "id": { - "type": "string" + "changes": { + "$ref": "#/components/schemas/Int32Map" } }, "required": [ - "rootCommentCount", - "commentCount", - "createdAt", - "title", - "urlId", - "id" + "type" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "GetPagesAPIResponse": { + "PublicAPIGetCommentTextResponse": { "properties": { - "reason": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "code": { + "commentText": { "type": "string" }, - "pages": { - "items": { - "$ref": "#/components/schemas/APIPage" - }, - "type": "array" - }, - "status": { + "sanitizedCommentText": { "type": "string" } }, "required": [ - "status" + "status", + "commentText", + "sanitizedCommentText" ], "type": "object" }, - "GetPageByURLIdAPIResponse": { + "SetCommentTextResult": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "approved": { + "type": "boolean" }, - "status": { + "commentHTML": { "type": "string" } }, "required": [ - "status" + "approved", + "commentHTML" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "AddPageAPIResponse": { + "PublicAPISetCommentTextResponse": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "comment": { + "$ref": "#/components/schemas/SetCommentTextResult" }, "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "comment", "status" ], "type": "object" }, - "CreateAPIPageData": { + "CommentUserMentionInfo": { "properties": { - "accessibleByGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "rootCommentCount": { - "type": "integer", - "format": "int64" - }, - "commentCount": { - "type": "integer", - "format": "int64" - }, - "title": { + "id": { "type": "string" }, - "url": { + "tag": { "type": "string" }, - "urlId": { + "rawTag": { "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "user", + "sso" + ] + }, + "sent": { + "type": "boolean" } }, "required": [ - "title", - "url", - "urlId" + "id", + "tag" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PatchPageAPIResponse": { + "CommentUserHashTagInfo": { "properties": { - "reason": { + "id": { "type": "string" }, - "code": { + "tag": { "type": "string" }, - "commentsUpdated": { - "type": "integer", - "format": "int64" - }, - "page": { - "$ref": "#/components/schemas/APIPage" + "url": { + "type": "string", + "nullable": true }, - "status": { - "type": "string" + "retain": { + "type": "boolean" } }, "required": [ - "status" + "id", + "tag", + "url" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "UpdateAPIPageData": { + "CommentTextUpdateRequest": { "properties": { - "isClosed": { - "type": "boolean" + "comment": { + "type": "string" }, - "accessibleByGroupIds": { + "mentions": { "items": { - "type": "string" + "$ref": "#/components/schemas/CommentUserMentionInfo" }, "type": "array" }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" - } - }, - "type": "object" - }, - "DeletePageAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "status": { - "type": "string" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" } }, "required": [ - "status" + "comment" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PublicVote": { - "properties": { - "id": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "commentId": { - "type": "string" + "Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "From T, pick a set of properties whose keys are in the union K" + }, + "Omit_GetCommentsResponse.lastGenDate-or-pageNumber_": { + "$ref": "#/components/schemas/Pick_GetCommentsResponse.Exclude_keyofGetCommentsResponse.lastGenDate-or-pageNumber__", + "description": "Construct a type with the properties of T except for those in type K." + }, + "GetCommentsForUserResponse": { + "allOf": [ + { + "$ref": "#/components/schemas/Omit_GetCommentsResponse.lastGenDate-or-pageNumber_" }, - "userId": { - "type": "string" - }, - "direction": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "id", - "urlId", - "commentId", - "userId", - "direction", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "GetVotesResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "appliedAuthorizedVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "appliedAnonymousVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "pendingVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" + { + "properties": { + "moderatingTenantIds": { + "items": { + "type": "string" + }, + "type": "array" + } }, - "type": "array" + "type": "object" } - }, - "required": [ - "status", - "appliedAuthorizedVotes", - "appliedAnonymousVotes", - "pendingVotes" - ], - "type": "object", - "additionalProperties": false + ] }, - "GetVotesForUserResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "appliedAuthorizedVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - }, - "appliedAnonymousVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" + "PublicComment": { + "allOf": [ + { + "properties": { + "isUnread": { + "type": "boolean" + }, + "myVoteId": { + "type": "string" + }, + "isVotedDown": { + "type": "boolean" + }, + "isVotedUp": { + "type": "boolean" + }, + "hasChildren": { + "type": "boolean", + "description": "This is always set when asTree=true" + }, + "nestedChildrenCount": { + "type": "integer", + "format": "int32", + "description": "The total nested child count included in this response (may be more available w/ pagination) Only set with asTree=true, otherwise this will be null." + }, + "childCount": { + "type": "integer", + "format": "int32", + "description": "You must ask the API to count children (with asTree=true&countChildren=true), otherwise this will be null. This will be the complete direct child count, whereas children may only contain a subset based on pagination." + }, + "children": { + "items": { + "$ref": "#/components/schemas/PublicComment" + }, + "type": "array" + }, + "isFlagged": { + "type": "boolean" + }, + "isBlocked": { + "type": "boolean" + } }, - "type": "array" + "type": "object" }, - "pendingVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" + { + "$ref": "#/components/schemas/PublicCommentBase" } - }, - "required": [ - "status", - "appliedAuthorizedVotes", - "appliedAnonymousVotes", - "pendingVotes" - ], - "type": "object", - "additionalProperties": false - }, - "DigestEmailFrequency": { - "enum": [ - -1, - 0, - 1, - 2 - ], - "type": "integer" + ] }, - "User": { + "PublicCommentBase": { "properties": { "_id": { "type": "string" }, - "tenantId": { - "type": "string", + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], "nullable": true }, - "username": { + "commenterName": { "type": "string" }, - "displayName": { + "commenterLink": { + "type": "string", + "nullable": true + }, + "commentHTML": { "type": "string" }, - "websiteUrl": { + "parentId": { "type": "string", "nullable": true }, - "email": { + "date": { "type": "string", + "format": "date-time", "nullable": true }, - "pendingEmail": { - "type": "string" - }, - "backupEmail": { - "type": "string" - }, - "pendingBackupEmail": { - "type": "string" - }, - "signUpDate": { + "votes": { "type": "integer", - "format": "int64" - }, - "createdFromUrlId": { - "type": "string", + "format": "int32", "nullable": true }, - "createdFromTenantId": { - "type": "string", + "votesUp": { + "type": "integer", + "format": "int32", "nullable": true }, - "createdFromIpHashed": { - "type": "string" + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true }, "verified": { "type": "boolean" }, - "loginId": { - "type": "string" - }, - "loginIdDate": { - "type": "integer", - "format": "int64" - }, - "loginCount": { - "type": "integer", - "format": "int32" + "avatarSrc": { + "type": "string", + "nullable": true }, - "optedInNotifications": { + "hasImages": { "type": "boolean" }, - "optedInTenantNotifications": { + "isByAdmin": { "type": "boolean" }, - "hideAccountCode": { + "isByModerator": { "type": "boolean" }, - "avatarSrc": { - "type": "string", + "isPinned": { + "type": "boolean", "nullable": true }, - "isFastCommentsHelpRequestAdmin": { - "type": "boolean" + "isLocked": { + "type": "boolean", + "nullable": true }, - "isHelpRequestAdmin": { - "type": "boolean" + "displayLabel": { + "type": "string", + "nullable": true }, - "isAccountOwner": { - "type": "boolean" + "rating": { + "type": "number", + "format": "double", + "nullable": true }, - "isAdminAdmin": { - "type": "boolean" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true }, - "isBillingAdmin": { - "type": "boolean" + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true }, - "isAnalyticsAdmin": { + "isDeleted": { "type": "boolean" }, - "isCustomizationAdmin": { + "isDeletedUser": { "type": "boolean" }, - "isManageDataAdmin": { + "isSpam": { "type": "boolean" }, - "isCommentModeratorAdmin": { - "type": "boolean" - }, - "isAPIAdmin": { - "type": "boolean" - }, - "isSiteAdmin": { - "type": "boolean" + "anonUserId": { + "type": "string", + "nullable": true }, - "moderatorIds": { + "feedbackIds": { "items": { "type": "string" }, "type": "array" }, - "isImpersonator": { - "type": "boolean" - }, - "isCouponManager": { + "requiresVerification": { "type": "boolean" }, - "locale": { + "editKey": { "type": "string" }, - "digestEmailFrequency": { - "$ref": "#/components/schemas/DigestEmailFrequency" + "approved": { + "type": "boolean" + } + }, + "required": [ + "_id", + "commenterName", + "commentHTML", + "date", + "verified" + ], + "type": "object", + "additionalProperties": false + }, + "Record_string.any_": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "GetCommentsResponse_PublicComment_": { + "properties": { + "statusCode": { + "type": "integer", + "format": "int32" }, - "notificationFrequency": { - "type": "number", - "format": "double" + "status": { + "type": "string" }, - "adminNotificationFrequency": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "lastTenantNotificationSentDate": { - "type": "string", - "format": "date-time" + "reason": { + "type": "string" }, - "lastReplyNotificationSentDate": { - "type": "string", - "format": "date-time" + "translatedWarning": { + "type": "string" }, - "ignoredAddToMySiteMessages": { - "type": "boolean" + "comments": { + "items": { + "$ref": "#/components/schemas/PublicComment" + }, + "type": "array" }, - "lastLoginDate": { - "type": "string", - "format": "date-time" + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true }, - "displayLabel": { + "urlIdClean": { "type": "string" }, - "isProfileActivityPrivate": { - "type": "boolean" - }, - "isProfileCommentsPrivate": { - "type": "boolean" + "lastGenDate": { + "type": "integer", + "format": "int64", + "nullable": true }, - "isProfileDMDisabled": { + "includesPastPages": { "type": "boolean" }, - "profileCommentApprovalMode": { - "type": "number", - "format": "double" + "isDemo": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "karma": { - "type": "number", - "format": "double" + "commentCount": { + "type": "integer", + "format": "int32" }, - "passwordHash": { - "type": "string" + "isSiteAdmin": { + "type": "boolean" }, - "averageTicketAckTimeMS": { - "type": "number", - "format": "double", - "nullable": true + "hasBillingIssue": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "hasBlockedUsers": { - "type": "boolean" + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" }, - "bio": { - "type": "string" + "pageNumber": { + "type": "integer", + "format": "int32" }, - "headerBackgroundSrc": { - "type": "string" + "isWhiteLabeled": { + "type": "boolean" }, - "countryCode": { - "type": "string" + "isProd": { + "type": "boolean", + "enum": [ + false + ], + "nullable": false }, - "countryFlag": { - "type": "string" + "isCrawler": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false }, - "socialLinks": { - "items": { - "type": "string" - }, - "type": "array" + "notificationCount": { + "type": "integer", + "format": "int32" }, - "hasTwoFactor": { + "hasMore": { "type": "boolean" }, - "isEmailSuppressed": { + "isClosed": { "type": "boolean" + }, + "presencePollState": { + "type": "integer", + "format": "int32" + }, + "customConfig": { + "$ref": "#/components/schemas/CustomConfigParameters" } }, "required": [ - "_id", - "username", - "email", - "signUpDate", - "createdFromTenantId", - "createdFromIpHashed", - "verified", - "loginId", - "loginIdDate" + "status", + "comments", + "user", + "pageNumber" ], "type": "object", "additionalProperties": false }, - "GetUserResponse": { + "GetCommentsResponseWithPresence_PublicComment_": { + "allOf": [ + { + "$ref": "#/components/schemas/GetCommentsResponse_PublicComment_" + }, + { + "$ref": "#/components/schemas/UserPresenceData" + } + ] + }, + "SaveCommentResponseOptimized": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, + "comment": { + "$ref": "#/components/schemas/PublicComment" + }, "user": { - "$ref": "#/components/schemas/User" + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" } }, "required": [ "status", + "comment", "user" ], "type": "object", "additionalProperties": false }, - "UserBadge": { + "SaveCommentsResponseWithPresence": { + "allOf": [ + { + "$ref": "#/components/schemas/SaveCommentResponseOptimized" + }, + { + "properties": { + "userIdWS": { + "$ref": "#/components/schemas/UserIdWS" + } + }, + "type": "object" + } + ] + }, + "Record_string.string-or-number_": { + "properties": {}, + "additionalProperties": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ] + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "CommentData": { "properties": { - "_id": { - "type": "string" + "date": { + "type": "integer", + "format": "int64" }, - "userId": { + "localDateString": { "type": "string" }, - "badgeId": { - "type": "string" + "localDateHours": { + "type": "integer", + "format": "int32" }, - "fromTenantId": { + "commenterName": { "type": "string" }, - "createdAt": { + "commenterEmail": { "type": "string", - "format": "date-time" - }, - "type": { - "type": "integer", - "format": "int32" + "nullable": true }, - "threshold": { - "type": "integer", - "format": "int64" + "commenterLink": { + "type": "string", + "nullable": true }, - "description": { + "comment": { "type": "string" }, - "displayLabel": { - "type": "string" + "productId": { + "type": "integer", + "format": "int32" }, - "displaySrc": { + "userId": { "type": "string", "nullable": true }, - "backgroundColor": { + "avatarSrc": { "type": "string", "nullable": true }, - "borderColor": { + "parentId": { "type": "string", "nullable": true }, - "textColor": { - "type": "string", - "nullable": true + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" }, - "cssClass": { - "type": "string", - "nullable": true + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "veteranUserThresholdMillis": { + "pageTitle": { + "type": "string" + }, + "isFromMyAccountPage": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "meta": { + "additionalProperties": false, + "type": "object" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rating": { + "type": "number", + "format": "double" + }, + "fromOfflineRestore": { + "type": "boolean" + }, + "autoplayDelayMS": { "type": "integer", "format": "int64" }, - "displayedOnComments": { + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" + }, + "tos": { "type": "boolean" }, - "receivedAt": { - "type": "string", - "format": "date-time" + "botId": { + "type": "string" + } + }, + "required": [ + "commenterName", + "comment", + "url", + "urlId" + ], + "type": "object", + "additionalProperties": false + }, + "DeletedCommentResultComment": { + "properties": { + "isDeleted": { + "type": "boolean" }, - "order": { - "type": "integer", - "format": "int32" + "commentHTML": { + "type": "string" }, - "urlId": { + "commenterName": { + "type": "string" + }, + "userId": { "type": "string", "nullable": true } }, "required": [ - "_id", - "userId", - "badgeId", - "fromTenantId", - "createdAt", - "type", - "threshold", - "description", - "displayLabel", - "veteranUserThresholdMillis", - "displayedOnComments", - "receivedAt" + "commentHTML", + "commenterName" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeResponse": { + "PublicAPIDeleteCommentResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/DeletedCommentResultComment" + }, + "hardRemoved": { + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" } }, "required": [ - "status", - "userBadge" + "hardRemoved", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIGetUserBadgesResponse": { + "CheckBlockedCommentsResponse": { "properties": { + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" + }, "status": { "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "commentStatuses", + "status" + ], + "type": "object" + }, + "VoteBodyParams": { + "properties": { + "commenterEmail": { + "type": "string", + "nullable": true }, - "userBadges": { - "items": { - "$ref": "#/components/schemas/UserBadge" - }, - "type": "array" + "commenterName": { + "type": "string", + "nullable": true + }, + "voteDir": { + "type": "string", + "enum": [ + "up", + "down" + ] + }, + "url": { + "type": "string", + "nullable": true } }, "required": [ - "status", - "userBadges" + "commenterEmail", + "commenterName", + "voteDir", + "url" ], "type": "object", "additionalProperties": false }, - "APICreateUserBadgeResponse": { + "GetCommentVoteUserNamesSuccessResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" - }, - "notes": { + "voteUserNames": { "items": { "type": "string" }, "type": "array" + }, + "hasMore": { + "type": "boolean" } }, "required": [ "status", - "userBadge" + "voteUserNames", + "hasMore" ], "type": "object", "additionalProperties": false }, - "CreateUserBadgeParams": { + "ChangeCommentPinStatusResponse": { "properties": { - "userId": { - "type": "string" - }, - "badgeId": { - "type": "string" + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" }, - "displayedOnComments": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "userId", - "badgeId" + "commentPositions", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIEmptySuccessResponse": { + "BlockSuccess": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" + }, + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ - "status" + "status", + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "UpdateUserBadgeParams": { + "PublicBlockFromCommentParams": { "properties": { - "displayedOnComments": { - "type": "boolean" + "commentIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true, + "description": "A list of comment ids to check if are blocked after performing the update." } }, + "required": [ + "commentIds" + ], "type": "object", "additionalProperties": false }, - "Record_string.number_": { - "properties": {}, - "additionalProperties": { - "type": "number", - "format": "double" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "UserBadgeProgress": { + "UnblockSuccess": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "firstCommentId": { - "type": "string" - }, - "firstCommentDate": { - "type": "string", - "format": "date-time" - }, - "autoTrustFactor": { - "type": "number", - "format": "double" - }, - "manualTrustFactor": { - "type": "number", - "format": "double" - }, - "progress": { - "$ref": "#/components/schemas/Record_string.number_" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ - "_id", - "tenantId", - "userId", - "firstCommentId", - "firstCommentDate", - "progress" + "status", + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeProgressResponse": { + "APIUserSubscription": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "notificationFrequency": { + "type": "number", + "format": "double" }, - "userBadgeProgress": { - "$ref": "#/components/schemas/UserBadgeProgress" + "createdAt": { + "type": "string", + "format": "date-time" + }, + "pageTitle": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "status", - "userBadgeProgress" + "createdAt", + "urlId", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APIGetUserBadgeProgressListResponse": { + "GetSubscriptionsAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "userBadgeProgresses": { + "code": { + "type": "string" + }, + "subscriptions": { "items": { - "$ref": "#/components/schemas/UserBadgeProgress" + "$ref": "#/components/schemas/APIUserSubscription" }, "type": "array" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "userBadgeProgresses" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITicket": { + "CreateSubscriptionAPIResponse": { "properties": { - "_id": { + "reason": { "type": "string" }, - "urlId": { + "code": { "type": "string" }, - "userId": { - "type": "string" + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" }, - "managedByTenantId": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIUserSubscriptionData": { + "properties": { + "notificationFrequency": { + "type": "number", + "format": "double" }, - "assignedUserIds": { - "items": { - "type": "string" - }, - "type": "array" + "pageTitle": { + "type": "string" }, - "subject": { + "url": { "type": "string" }, - "createdAt": { + "urlId": { "type": "string" }, - "state": { - "type": "integer", - "format": "int32" + "anonUserId": { + "type": "string" }, - "fileCount": { - "type": "integer", - "format": "int32" + "userId": { + "type": "string" } }, "required": [ - "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount" + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTicketsResponse": { + "UpdateSubscriptionAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tickets": { - "items": { - "$ref": "#/components/schemas/APITicket" - }, - "type": "array" + "code": { + "type": "string" + }, + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "tickets" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTicketResponse": { + "UpdateAPIUserSubscriptionData": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "ticket": { - "$ref": "#/components/schemas/APITicket" + "notificationFrequency": { + "type": "number", + "format": "double" } }, - "required": [ - "status", - "ticket" - ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTicketBody": { + "DeleteSubscriptionAPIResponse": { "properties": { - "subject": { + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "status": { "type": "string" } }, "required": [ - "subject" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITicketFile": { + "APISSOUser": { "properties": { "id": { "type": "string" }, - "s3Key": { + "username": { "type": "string" }, - "originalFileName": { + "websiteUrl": { "type": "string" }, - "sizeBytes": { + "email": { + "type": "string" + }, + "signUpDate": { "type": "integer", - "format": "int32" + "format": "int64" }, - "contentType": { + "createdFromUrlId": { "type": "string" }, - "uploadedByUserId": { - "type": "string" + "loginCount": { + "type": "integer", + "format": "int32" }, - "uploadedAt": { + "avatarSrc": { "type": "string" }, - "url": { + "optedInNotifications": { + "type": "boolean" + }, + "optedInSubscriptionNotifications": { + "type": "boolean" + }, + "displayLabel": { "type": "string" }, - "expiresAt": { + "displayName": { "type": "string" }, - "expired": { + "isAccountOwner": { "type": "boolean" - } - }, - "required": [ - "id", - "s3Key", - "originalFileName", - "sizeBytes", - "contentType", - "uploadedByUserId", - "uploadedAt", - "url", - "expiresAt" - ], - "type": "object", - "additionalProperties": false - }, - "APITicketDetail": { - "properties": { - "_id": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "userId": { - "type": "string" }, - "managedByTenantId": { - "type": "string" + "isAdminAdmin": { + "type": "boolean" }, - "assignedUserIds": { - "items": { - "type": "string" - }, - "type": "array" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "subject": { - "type": "string" + "isProfileActivityPrivate": { + "type": "boolean" }, - "createdAt": { - "type": "string" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "state": { - "type": "integer", - "format": "int32" + "isProfileDMDisabled": { + "type": "boolean" }, - "fileCount": { - "type": "integer", - "format": "int32" + "hasBlockedUsers": { + "type": "boolean" }, - "files": { + "groupIds": { "items": { - "$ref": "#/components/schemas/APITicketFile" + "type": "string" }, "type": "array" - }, - "reopenedAt": { - "type": "string", - "nullable": true - }, - "resolvedAt": { - "type": "string", - "nullable": true - }, - "ackAt": { - "type": "string", - "nullable": true } }, "required": [ - "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount", - "files" + "id", + "username", + "websiteUrl", + "email", + "signUpDate", + "createdFromUrlId", + "loginCount", + "avatarSrc", + "optedInNotifications", + "optedInSubscriptionNotifications", + "displayLabel", + "displayName" ], "type": "object", "additionalProperties": false }, - "GetTicketResponse": { + "GetSSOUserByIdAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "ticket": { - "$ref": "#/components/schemas/APITicketDetail" + "code": { + "type": "string" }, - "availableStates": { - "items": { - "type": "number", - "format": "double" - }, - "type": "array" + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "ticket", - "availableStates" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ChangeTicketStateResponse": { + "GetSSOUserByEmailAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "ticket": { - "$ref": "#/components/schemas/APITicket" + "code": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "ticket" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ChangeTicketStateBody": { + "DeleteSSOUserAPIResponse": { "properties": { - "state": { - "type": "integer", - "format": "int32" + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/APISSOUser" + }, + "status": { + "type": "string" } }, "required": [ - "state" - ], - "type": "object", - "additionalProperties": false - }, - "ImportedSiteType": { - "enum": [ - 0, - 1 + "status" ], - "type": "integer" - }, - "SiteType": { - "$ref": "#/components/schemas/ImportedSiteType" + "type": "object" }, - "APIDomainConfiguration": { + "PatchSSOUserAPIResponse": { "properties": { - "id": { + "reason": { "type": "string" }, - "domain": { + "code": { "type": "string" }, - "emailFromName": { - "type": "string", - "nullable": true - }, - "emailFromEmail": { - "type": "string", - "nullable": true + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPISSOUserData": { + "properties": { + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "wpSyncToken": { - "type": "string", - "nullable": true + "hasBlockedUsers": { + "type": "boolean" }, - "wpSynced": { + "isProfileDMDisabled": { "type": "boolean" }, - "wpURL": { - "type": "string", - "nullable": true + "isProfileCommentsPrivate": { + "type": "boolean" }, - "createdAt": { - "type": "string", - "format": "date-time" + "isProfileActivityPrivate": { + "type": "boolean" }, - "autoAddedDate": { - "type": "string", - "format": "date-time" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "siteType": { - "$ref": "#/components/schemas/SiteType" + "isAdminAdmin": { + "type": "boolean" }, - "logoSrc": { - "type": "string", - "nullable": true + "isAccountOwner": { + "type": "boolean" }, - "logoSrc100px": { - "type": "string", - "nullable": true + "displayName": { + "type": "string" }, - "footerUnsubscribeURL": { + "displayLabel": { "type": "string" }, - "disableUnsubscribeLinks": { + "optedInSubscriptionNotifications": { "type": "boolean" - } - }, - "required": [ - "id", - "domain", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "BillingInfo": { - "properties": { - "name": { - "type": "string" }, - "address": { + "optedInNotifications": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "city": { + "loginCount": { + "type": "integer", + "format": "int32" + }, + "createdFromUrlId": { "type": "string" }, - "state": { + "signUpDate": { + "type": "integer", + "format": "int64" + }, + "email": { "type": "string" }, - "zip": { + "websiteUrl": { "type": "string" }, - "country": { + "username": { "type": "string" }, - "currency": { - "type": "string", - "nullable": true, - "description": "Currency for invoices." + "id": { + "type": "string" + } + }, + "type": "object" + }, + "PutSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "email": { - "type": "string", - "description": "Email for invoices." + "code": { + "type": "string" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/APISSOUser" + } + ], + "nullable": true + }, + "status": { + "type": "string" } }, "required": [ - "name", - "address", - "city", - "state", - "zip", - "country" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "APITenant": { + "AddSSOUserAPIResponse": { "properties": { - "id": { - "type": "string" - }, - "name": { + "reason": { "type": "string" }, - "email": { + "code": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "packageId": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPISSOUserData": { + "properties": { + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { + "hasBlockedUsers": { "type": "boolean" }, - "billingHandledExternally": { + "isProfileDMDisabled": { "type": "boolean" }, - "createdBy": { - "type": "string" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "isSetup": { + "isProfileActivityPrivate": { "type": "boolean" }, - "domainConfiguration": { - "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" - }, - "type": "array" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" + "isAdminAdmin": { + "type": "boolean" }, - "stripeCustomerId": { - "type": "string" + "isAccountOwner": { + "type": "boolean" }, - "stripeSubscriptionId": { + "displayName": { "type": "string" }, - "stripePlanId": { + "displayLabel": { "type": "string" }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { + "optedInSubscriptionNotifications": { "type": "boolean" }, - "lastBillingIssueReminderDate": { - "type": "string", - "format": "date-time" - }, - "removeUnverifiedComments": { + "optedInNotifications": { "type": "boolean" }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double", - "nullable": true - }, - "commentsRequireApproval": { - "type": "boolean" + "avatarSrc": { + "type": "string" }, - "autoApproveCommentOnVerification": { - "type": "boolean" + "loginCount": { + "type": "integer", + "format": "int32" }, - "sendProfaneToSpam": { - "type": "boolean" + "createdFromUrlId": { + "type": "string" }, - "hasFlexPricing": { - "type": "boolean" + "signUpDate": { + "type": "integer", + "format": "int64" }, - "hasAuditing": { - "type": "boolean" + "email": { + "type": "string" }, - "flexLastBilledAmount": { - "type": "number", - "format": "double" + "websiteUrl": { + "type": "string" }, - "deAnonIpAddr": { - "type": "number", - "format": "double" + "username": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "id": { + "type": "string" } }, "required": [ - "id", - "name", - "signUpDate", - "packageId", - "paymentFrequency", - "billingInfoValid", - "createdBy", - "isSetup", - "domainConfiguration", - "enableProfanityFilter", - "enableSpamFilter" + "email", + "username", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantResponse": { + "APIPage": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isClosed": { + "type": "boolean" }, - "tenant": { - "$ref": "#/components/schemas/APITenant" + "accessibleByGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rootCommentCount": { + "type": "integer", + "format": "int64" + }, + "commentCount": { + "type": "integer", + "format": "int64" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "title": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "status", - "tenant" + "rootCommentCount", + "commentCount", + "createdAt", + "title", + "urlId", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantsResponse": { + "GetPagesAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tenants": { + "code": { + "type": "string" + }, + "pages": { "items": { - "$ref": "#/components/schemas/APITenant" + "$ref": "#/components/schemas/APIPage" }, "type": "array" - } - }, - "required": [ - "status", - "tenants" - ], - "type": "object", - "additionalProperties": false - }, - "CreateTenantResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "tenant": { - "$ref": "#/components/schemas/APITenant" + "status": { + "type": "string" } }, "required": [ - "status", - "tenant" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantBody": { + "GetPageByURLIdAPIResponse": { "properties": { - "name": { + "reason": { "type": "string" }, - "domainConfiguration": { - "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" - }, - "type": "array" - }, - "email": { + "code": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "packageId": { + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "AddPageAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { - "type": "boolean" + "code": { + "type": "string" }, - "billingHandledExternally": { - "type": "boolean" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "createdBy": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIPageData": { + "properties": { + "accessibleByGroupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "isSetup": { - "type": "boolean" + "rootCommentCount": { + "type": "integer", + "format": "int64" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" + "commentCount": { + "type": "integer", + "format": "int64" }, - "stripeCustomerId": { + "title": { "type": "string" }, - "stripeSubscriptionId": { + "url": { "type": "string" }, - "stripePlanId": { + "urlId": { "type": "string" - }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { - "type": "boolean" - }, - "removeUnverifiedComments": { - "type": "boolean" - }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double" - }, - "commentsRequireApproval": { - "type": "boolean" - }, - "autoApproveCommentOnVerification": { - "type": "boolean" - }, - "sendProfaneToSpam": { - "type": "boolean" - }, - "deAnonIpAddr": { - "type": "number", - "format": "double" - }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" } }, "required": [ - "name", - "domainConfiguration" + "title", + "url", + "urlId" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "UpdateTenantBody": { + "PatchPageAPIResponse": { "properties": { - "name": { - "type": "string" - }, - "email": { + "reason": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" - }, - "packageId": { + "code": { "type": "string" }, - "paymentFrequency": { - "type": "number", - "format": "double" - }, - "billingInfoValid": { - "type": "boolean" + "commentsUpdated": { + "type": "integer", + "format": "int64" }, - "billingHandledExternally": { - "type": "boolean" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "createdBy": { + "status": { "type": "string" - }, - "isSetup": { + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPIPageData": { + "properties": { + "isClosed": { "type": "boolean" }, - "domainConfiguration": { + "accessibleByGroupIds": { "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" + "type": "string" }, "type": "array" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" - }, - "stripeCustomerId": { + "title": { "type": "string" }, - "stripeSubscriptionId": { + "url": { "type": "string" }, - "stripePlanId": { + "urlId": { + "type": "string" + } + }, + "type": "object" + }, + "DeletePageAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { - "type": "boolean" - }, - "removeUnverifiedComments": { - "type": "boolean" - }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double" - }, - "commentsRequireApproval": { - "type": "boolean" + "code": { + "type": "string" }, - "autoApproveCommentOnVerification": { - "type": "boolean" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "PublicVote": { + "properties": { + "id": { + "type": "string" }, - "sendProfaneToSpam": { - "type": "boolean" + "urlId": { + "type": "string" }, - "deAnonIpAddr": { - "type": "number", - "format": "double" + "commentId": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "userId": { + "type": "string" }, - "managedByTenantId": { + "direction": { "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" } }, + "required": [ + "id", + "urlId", + "commentId", + "userId", + "direction", + "createdAt" + ], "type": "object", "additionalProperties": false }, - "GetTenantUserResponse": { + "GetVotesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUser": { - "$ref": "#/components/schemas/User" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" } }, "required": [ "status", - "tenantUser" + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" ], "type": "object", "additionalProperties": false }, - "GetTenantUsersResponse": { + "GetVotesForUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUsers": { + "appliedAuthorizedVotes": { "items": { - "$ref": "#/components/schemas/User" + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + }, + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" }, "type": "array" } }, "required": [ "status", - "tenantUsers" + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" ], "type": "object", "additionalProperties": false }, - "CreateTenantUserResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tenantUser": { - "$ref": "#/components/schemas/User" - } - }, - "required": [ - "status", - "tenantUser" + "DigestEmailFrequency": { + "enum": [ + -1, + 0, + 1, + 2 ], - "type": "object", - "additionalProperties": false + "type": "integer" }, - "CreateTenantUserBody": { + "ImportedAgentApprovalNotificationFrequency": { + "enum": [ + -1, + 0, + 1, + 2 + ], + "type": "integer" + }, + "AgentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/ImportedAgentApprovalNotificationFrequency" + }, + "User": { "properties": { - "username": { + "_id": { "type": "string" }, - "email": { + "tenantId": { + "type": "string", + "nullable": true + }, + "username": { "type": "string" }, "displayName": { "type": "string" }, "websiteUrl": { + "type": "string", + "nullable": true + }, + "email": { + "type": "string", + "nullable": true + }, + "pendingEmail": { + "type": "string" + }, + "backupEmail": { + "type": "string" + }, + "pendingBackupEmail": { "type": "string" }, "signUpDate": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int64" }, - "locale": { + "createdFromUrlId": { + "type": "string", + "nullable": true + }, + "createdFromTenantId": { + "type": "string", + "nullable": true + }, + "createdFromIpHashed": { "type": "string" }, "verified": { "type": "boolean" }, + "loginId": { + "type": "string" + }, + "loginIdDate": { + "type": "integer", + "format": "int64" + }, "loginCount": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int32" }, "optedInNotifications": { "type": "boolean" @@ -5058,7 +5841,11 @@ "type": "boolean" }, "avatarSrc": { - "type": "string" + "type": "string", + "nullable": true + }, + "isFastCommentsHelpRequestAdmin": { + "type": "boolean" }, "isHelpRequestAdmin": { "type": "boolean" @@ -5087,3452 +5874,2954 @@ "isAPIAdmin": { "type": "boolean" }, + "isSiteAdmin": { + "type": "boolean" + }, "moderatorIds": { "items": { "type": "string" }, "type": "array" }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" - } - }, - "required": [ - "username", - "email" - ], - "type": "object", - "additionalProperties": false - }, - "ReplaceTenantUserBody": { - "properties": { - "username": { - "type": "string" + "isImpersonator": { + "type": "boolean" }, - "email": { - "type": "string" + "isCouponManager": { + "type": "boolean" }, - "displayName": { + "locale": { "type": "string" }, - "websiteUrl": { - "type": "string" + "digestEmailFrequency": { + "$ref": "#/components/schemas/DigestEmailFrequency" }, - "signUpDate": { + "notificationFrequency": { "type": "number", "format": "double" }, - "locale": { - "type": "string" - }, - "verified": { - "type": "boolean" - }, - "loginCount": { + "adminNotificationFrequency": { "type": "number", "format": "double" }, - "optedInNotifications": { - "type": "boolean" + "agentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/AgentApprovalNotificationFrequency" }, - "optedInTenantNotifications": { - "type": "boolean" + "lastTenantNotificationSentDate": { + "type": "string", + "format": "date-time" }, - "hideAccountCode": { + "lastReplyNotificationSentDate": { + "type": "string", + "format": "date-time" + }, + "ignoredAddToMySiteMessages": { "type": "boolean" }, - "avatarSrc": { - "type": "string" + "lastLoginDate": { + "type": "string", + "format": "date-time" }, - "isHelpRequestAdmin": { - "type": "boolean" + "displayLabel": { + "type": "string" }, - "isAccountOwner": { + "isProfileActivityPrivate": { "type": "boolean" }, - "isAdminAdmin": { + "isProfileCommentsPrivate": { "type": "boolean" }, - "isBillingAdmin": { + "isProfileDMDisabled": { "type": "boolean" }, - "isAnalyticsAdmin": { - "type": "boolean" + "profileCommentApprovalMode": { + "type": "number", + "format": "double" }, - "isCustomizationAdmin": { - "type": "boolean" + "karma": { + "type": "number", + "format": "double" }, - "isManageDataAdmin": { - "type": "boolean" + "passwordHash": { + "type": "string" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "averageTicketAckTimeMS": { + "type": "number", + "format": "double", + "nullable": true }, - "isAPIAdmin": { + "hasBlockedUsers": { "type": "boolean" }, - "moderatorIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "digestEmailFrequency": { - "type": "number", - "format": "double" + "bio": { + "type": "string" }, - "displayLabel": { + "headerBackgroundSrc": { "type": "string" }, - "createdFromUrlId": { + "countryCode": { "type": "string" }, - "createdFromTenantId": { + "countryFlag": { "type": "string" }, - "lastLoginDate": { - "type": "number", - "format": "double" + "socialLinks": { + "items": { + "type": "string" + }, + "type": "array" }, - "karma": { - "type": "number", - "format": "double" + "hasTwoFactor": { + "type": "boolean" + }, + "isEmailSuppressed": { + "type": "boolean" } }, "required": [ + "_id", "username", - "email" + "email", + "signUpDate", + "createdFromTenantId", + "createdFromIpHashed", + "verified", + "loginId", + "loginIdDate" ], "type": "object", "additionalProperties": false }, - "UpdateTenantUserBody": { + "GetUserResponse": { "properties": { - "username": { - "type": "string" - }, - "displayName": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "websiteUrl": { - "type": "string" + "user": { + "$ref": "#/components/schemas/User" + } + }, + "required": [ + "status", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "email": { - "type": "string" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "signUpDate": { - "type": "number", - "format": "double" + "userBadges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadges" + ], + "type": "object", + "additionalProperties": false + }, + "APICreateUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "verified": { - "type": "boolean" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" }, - "loginCount": { - "type": "number", - "format": "double" + "notes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "CreateUserBadgeParams": { + "properties": { + "userId": { + "type": "string" }, - "optedInNotifications": { - "type": "boolean" + "badgeId": { + "type": "string" }, - "optedInTenantNotifications": { + "displayedOnComments": { "type": "boolean" - }, - "hideAccountCode": { + } + }, + "required": [ + "userId", + "badgeId" + ], + "type": "object", + "additionalProperties": false + }, + "APIEmptySuccessResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateUserBadgeParams": { + "properties": { + "displayedOnComments": { "type": "boolean" - }, - "avatarSrc": { + } + }, + "type": "object", + "additionalProperties": false + }, + "UserBadgeProgress": { + "properties": { + "_id": { "type": "string" }, - "isHelpRequestAdmin": { - "type": "boolean" + "tenantId": { + "type": "string" }, - "isAccountOwner": { - "type": "boolean" + "userId": { + "type": "string" }, - "isAdminAdmin": { - "type": "boolean" + "firstCommentId": { + "type": "string" }, - "isBillingAdmin": { - "type": "boolean" + "firstCommentDate": { + "type": "string", + "format": "date-time" }, - "isAnalyticsAdmin": { - "type": "boolean" + "autoTrustFactor": { + "type": "number", + "format": "double" }, - "isCustomizationAdmin": { - "type": "boolean" + "manualTrustFactor": { + "type": "number", + "format": "double" }, - "isManageDataAdmin": { - "type": "boolean" + "progress": { + "$ref": "#/components/schemas/Record_string.number_" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "tosAcceptedAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "_id", + "tenantId", + "userId", + "firstCommentId", + "firstCommentDate", + "progress" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeProgressResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "isAPIAdmin": { - "type": "boolean" + "userBadgeProgress": { + "$ref": "#/components/schemas/UserBadgeProgress" + } + }, + "required": [ + "status", + "userBadgeProgress" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeProgressListResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "moderatorIds": { + "userBadgeProgresses": { "items": { - "type": "string" + "$ref": "#/components/schemas/UserBadgeProgress" }, "type": "array" - }, - "locale": { - "type": "string" - }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" } }, + "required": [ + "status", + "userBadgeProgresses" + ], "type": "object", "additionalProperties": false }, - "TenantPackage": { + "APITicket": { "properties": { "_id": { "type": "string" }, - "name": { + "urlId": { "type": "string" }, - "tenantId": { + "userId": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" + "managedByTenantId": { + "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true + "assignedUserIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "yearlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true + "subject": { + "type": "string" }, - "monthlyStripePlanId": { - "type": "string", - "nullable": true - }, - "yearlyStripePlanId": { - "type": "string", - "nullable": true - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlySmallWidgetsCredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" - }, - "maxTenantUsers": { - "type": "number", - "format": "double" - }, - "maxSSOUsers": { - "type": "number", - "format": "double" - }, - "maxModerators": { - "type": "number", - "format": "double" - }, - "maxDomains": { - "type": "number", - "format": "double" - }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" - }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" - }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" - }, - "hasWhiteLabeling": { - "type": "boolean" - }, - "hasDebranding": { - "type": "boolean" - }, - "hasLLMSpamDetection": { - "type": "boolean" - }, - "forWhoText": { + "createdAt": { "type": "string" }, - "featureTaglines": { - "items": { - "type": "string" - }, - "type": "array" - }, - "hasAuditing": { - "type": "boolean" - }, - "hasFlexPricing": { - "type": "boolean" - }, - "enableSAML": { - "type": "boolean" - }, - "enableCanvasLTI": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" - }, - "flexChatGPTCostCents": { - "type": "number", - "format": "double" - }, - "flexChatGPTUnit": { - "type": "number", - "format": "double" - }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" - }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" - }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" + "state": { + "type": "integer", + "format": "int32" }, - "isSSOBillingMonthlyActiveUsers": { - "type": "boolean" + "fileCount": { + "type": "integer", + "format": "int32" } }, "required": [ "_id", - "name", - "tenantId", + "urlId", + "userId", + "managedByTenantId", + "assignedUserIds", + "subject", "createdAt", - "monthlyCostUSD", - "yearlyCostUSD", - "monthlyStripePlanId", - "yearlyStripePlanId", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlySmallWidgetsCredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "maxWhiteLabeledTenants", - "maxMonthlyEventLogRequests", - "maxCustomCollectionSize", - "hasWhiteLabeling", - "hasDebranding", - "hasLLMSpamDetection", - "forWhoText", - "featureTaglines", - "hasAuditing", - "hasFlexPricing" + "state", + "fileCount" ], "type": "object", "additionalProperties": false }, - "GetTenantPackageResponse": { + "GetTicketsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "tickets": { + "items": { + "$ref": "#/components/schemas/APITicket" + }, + "type": "array" } }, "required": [ "status", - "tenantPackage" + "tickets" ], "type": "object", "additionalProperties": false }, - "GetTenantPackagesResponse": { + "CreateTicketResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantPackages": { - "items": { - "$ref": "#/components/schemas/TenantPackage" - }, - "type": "array" + "ticket": { + "$ref": "#/components/schemas/APITicket" } }, "required": [ "status", - "tenantPackages" + "ticket" ], "type": "object", "additionalProperties": false }, - "CreateTenantPackageResponse": { + "CreateTicketBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "subject": { + "type": "string" } }, "required": [ - "status", - "tenantPackage" + "subject" ], "type": "object", "additionalProperties": false }, - "CreateTenantPackageBody": { + "APITicketFile": { "properties": { - "name": { + "id": { "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true - }, - "yearlyCostUSD": { - "type": "number", - "format": "double", - "nullable": true - }, - "monthlyStripePlanId": { - "type": "string", - "nullable": true - }, - "yearlyStripePlanId": { - "type": "string", - "nullable": true - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlySmallWidgetsCredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" + "s3Key": { + "type": "string" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "originalFileName": { + "type": "string" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "sizeBytes": { + "type": "integer", + "format": "int32" }, - "maxModerators": { - "type": "number", - "format": "double" + "contentType": { + "type": "string" }, - "maxDomains": { - "type": "number", - "format": "double" + "uploadedByUserId": { + "type": "string" }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" + "uploadedAt": { + "type": "string" }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" + "url": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "expiresAt": { + "type": "string" }, - "hasWhiteLabeling": { + "expired": { "type": "boolean" + } + }, + "required": [ + "id", + "s3Key", + "originalFileName", + "sizeBytes", + "contentType", + "uploadedByUserId", + "uploadedAt", + "url", + "expiresAt" + ], + "type": "object", + "additionalProperties": false + }, + "APITicketDetail": { + "properties": { + "_id": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "urlId": { + "type": "string" }, - "hasLLMSpamDetection": { - "type": "boolean" + "userId": { + "type": "string" }, - "forWhoText": { + "managedByTenantId": { "type": "string" }, - "featureTaglines": { + "assignedUserIds": { "items": { "type": "string" }, "type": "array" }, - "hasAuditing": { - "type": "boolean" - }, - "hasFlexPricing": { - "type": "boolean" - }, - "enableSAML": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" - }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" - }, - "flexChatGPTCostCents": { - "type": "number", - "format": "double" + "subject": { + "type": "string" }, - "flexChatGPTUnit": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "state": { + "type": "integer", + "format": "int32" }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" + "fileCount": { + "type": "integer", + "format": "int32" }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" + "files": { + "items": { + "$ref": "#/components/schemas/APITicketFile" + }, + "type": "array" }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" + "reopenedAt": { + "type": "string", + "nullable": true }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" + "resolvedAt": { + "type": "string", + "nullable": true }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" + "ackAt": { + "type": "string", + "nullable": true } }, "required": [ - "name", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" + "_id", + "urlId", + "userId", + "managedByTenantId", + "assignedUserIds", + "subject", + "createdAt", + "state", + "fileCount", + "files" ], "type": "object", "additionalProperties": false }, - "ReplaceTenantPackageBody": { + "GetTicketResponse": { "properties": { - "name": { - "type": "string" - }, - "monthlyCostUSD": { - "type": "number", - "format": "double" - }, - "yearlyCostUSD": { - "type": "number", - "format": "double" - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "ticket": { + "$ref": "#/components/schemas/APITicketDetail" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "availableStates": { + "items": { + "type": "number", + "format": "double" + }, + "type": "array" + } + }, + "required": [ + "status", + "ticket", + "availableStates" + ], + "type": "object", + "additionalProperties": false + }, + "ChangeTicketStateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "maxModerators": { - "type": "number", - "format": "double" + "ticket": { + "$ref": "#/components/schemas/APITicket" + } + }, + "required": [ + "status", + "ticket" + ], + "type": "object", + "additionalProperties": false + }, + "ChangeTicketStateBody": { + "properties": { + "state": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "state" + ], + "type": "object", + "additionalProperties": false + }, + "ImportedSiteType": { + "enum": [ + 0, + 1 + ], + "type": "integer" + }, + "SiteType": { + "$ref": "#/components/schemas/ImportedSiteType" + }, + "APIDomainConfiguration": { + "properties": { + "id": { + "type": "string" }, - "maxDomains": { - "type": "number", - "format": "double" + "domain": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "emailFromName": { + "type": "string", + "nullable": true }, - "hasDebranding": { - "type": "boolean" + "emailFromEmail": { + "type": "string", + "nullable": true }, - "forWhoText": { - "type": "string" + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" }, - "featureTaglines": { - "items": { - "type": "string" - }, - "type": "array" + "wpSyncToken": { + "type": "string", + "nullable": true }, - "hasFlexPricing": { + "wpSynced": { "type": "boolean" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "wpURL": { + "type": "string", + "nullable": true }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string", + "format": "date-time" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "autoAddedDate": { + "type": "string", + "format": "date-time" }, - "flexCommentUnit": { - "type": "number", - "format": "double" + "siteType": { + "$ref": "#/components/schemas/SiteType" }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" + "logoSrc": { + "type": "string", + "nullable": true }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "logoSrc100px": { + "type": "string", + "nullable": true }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "footerUnsubscribeURL": { + "type": "string" }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" + "disableUnsubscribeLinks": { + "type": "boolean" + } + }, + "required": [ + "id", + "domain", + "createdAt" + ], + "type": "object", + "additionalProperties": false + }, + "BillingInfo": { + "properties": { + "name": { + "type": "string" }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" + "address": { + "type": "string" }, - "flexModeratorUnit": { - "type": "number", - "format": "double" + "city": { + "type": "string" }, - "flexAdminCostCents": { - "type": "number", - "format": "double" + "state": { + "type": "string" }, - "flexAdminUnit": { - "type": "number", - "format": "double" + "zip": { + "type": "string" }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "country": { + "type": "string" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "currency": { + "type": "string", + "nullable": true, + "description": "Currency for invoices." }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "email": { + "type": "string", + "description": "Email for invoices." } }, "required": [ "name", - "monthlyCostUSD", - "yearlyCostUSD", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" + "address", + "city", + "state", + "zip", + "country" ], "type": "object", "additionalProperties": false }, - "UpdateTenantPackageBody": { + "APITenant": { "properties": { + "id": { + "type": "string" + }, "name": { "type": "string" }, - "monthlyCostUSD": { + "email": { + "type": "string" + }, + "signUpDate": { "type": "number", "format": "double" }, - "yearlyCostUSD": { + "packageId": { + "type": "string" + }, + "paymentFrequency": { "type": "number", "format": "double" }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" - }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" - }, - "maxMonthlyComments": { - "type": "number", - "format": "double" - }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" - }, - "maxTenantUsers": { - "type": "number", - "format": "double" - }, - "maxSSOUsers": { - "type": "number", - "format": "double" - }, - "maxModerators": { - "type": "number", - "format": "double" - }, - "maxDomains": { - "type": "number", - "format": "double" - }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" - }, - "hasDebranding": { + "billingInfoValid": { "type": "boolean" }, - "hasWhiteLabeling": { + "billingHandledExternally": { "type": "boolean" }, - "forWhoText": { + "createdBy": { "type": "string" }, - "featureTaglines": { + "isSetup": { + "type": "boolean" + }, + "domainConfiguration": { "items": { - "type": "string" + "$ref": "#/components/schemas/APIDomainConfiguration" }, "type": "array" }, - "hasFlexPricing": { - "type": "boolean" - }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" - }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" - }, - "flexCommentCostCents": { - "type": "number", - "format": "double" - }, - "flexCommentUnit": { - "type": "number", - "format": "double" - }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" - }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" - }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" - }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" - }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" - }, - "flexModeratorUnit": { - "type": "number", - "format": "double" - }, - "flexAdminCostCents": { - "type": "number", - "format": "double" - }, - "flexAdminUnit": { - "type": "number", - "format": "double" - }, - "flexDomainCostCents": { - "type": "number", - "format": "double" - }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" - } - }, - "type": "object", - "additionalProperties": false - }, - "APITenantDailyUsage": { - "properties": { - "id": { + "stripeCustomerId": { "type": "string" }, - "tenantId": { + "stripeSubscriptionId": { "type": "string" }, - "yearNumber": { - "type": "number", - "format": "double" + "stripePlanId": { + "type": "string" }, - "monthNumber": { - "type": "number", - "format": "double" + "enableProfanityFilter": { + "type": "boolean" }, - "dayNumber": { - "type": "number", - "format": "double" + "enableSpamFilter": { + "type": "boolean" }, - "commentFetchCount": { - "type": "number", - "format": "double" + "lastBillingIssueReminderDate": { + "type": "string", + "format": "date-time" }, - "commentCreateCount": { - "type": "number", - "format": "double" + "removeUnverifiedComments": { + "type": "boolean" }, - "conversationCreateCount": { + "unverifiedCommentsTTLms": { "type": "number", - "format": "double" + "format": "double", + "nullable": true }, - "voteCount": { - "type": "number", - "format": "double" + "commentsRequireApproval": { + "type": "boolean" }, - "accountCreatedCount": { - "type": "number", - "format": "double" + "autoApproveCommentOnVerification": { + "type": "boolean" }, - "userMentionSearch": { - "type": "number", - "format": "double" + "sendProfaneToSpam": { + "type": "boolean" }, - "hashTagSearch": { - "type": "number", - "format": "double" + "hasFlexPricing": { + "type": "boolean" }, - "gifSearchTrending": { - "type": "number", - "format": "double" + "hasAuditing": { + "type": "boolean" }, - "gifSearch": { + "flexLastBilledAmount": { "type": "number", "format": "double" }, - "apiCreditsUsed": { + "deAnonIpAddr": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "billed": { - "type": "boolean" - }, - "ignored": { - "type": "boolean" - }, - "apiErrorCount": { - "type": "number", - "format": "double" + "meta": { + "$ref": "#/components/schemas/Record_string.string_" } }, "required": [ "id", - "tenantId", - "yearNumber", - "monthNumber", - "dayNumber", - "commentFetchCount", - "commentCreateCount", - "conversationCreateCount", - "voteCount", - "accountCreatedCount", - "userMentionSearch", - "hashTagSearch", - "gifSearchTrending", - "gifSearch", - "apiCreditsUsed", - "createdAt", - "billed", - "ignored", - "apiErrorCount" + "name", + "signUpDate", + "packageId", + "paymentFrequency", + "billingInfoValid", + "createdBy", + "isSetup", + "domainConfiguration", + "enableProfanityFilter", + "enableSpamFilter" ], "type": "object", "additionalProperties": false }, - "GetTenantDailyUsagesResponse": { + "GetTenantResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantDailyUsages": { - "items": { - "$ref": "#/components/schemas/APITenantDailyUsage" - }, - "type": "array" + "tenant": { + "$ref": "#/components/schemas/APITenant" } }, "required": [ "status", - "tenantDailyUsages" + "tenant" ], "type": "object", "additionalProperties": false }, - "MetaItem": { + "GetTenantsResponse": { "properties": { - "name": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "values": { + "tenants": { "items": { - "type": "string" + "$ref": "#/components/schemas/APITenant" }, "type": "array" } }, "required": [ - "name", - "values" + "status", + "tenants" ], "type": "object", "additionalProperties": false }, - "QuestionResult": { + "CreateTenantResponse": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenant": { + "$ref": "#/components/schemas/APITenant" + } + }, + "required": [ + "status", + "tenant" + ], + "type": "object", + "additionalProperties": false + }, + "CreateTenantBody": { + "properties": { + "name": { "type": "string" }, - "urlId": { + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" + }, + "email": { "type": "string" }, - "anonUserId": { + "signUpDate": { + "type": "number", + "format": "double" + }, + "packageId": { "type": "string" }, - "userId": { + "paymentFrequency": { + "type": "number", + "format": "double" + }, + "billingInfoValid": { + "type": "boolean" + }, + "billingHandledExternally": { + "type": "boolean" + }, + "createdBy": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" + "isSetup": { + "type": "boolean" }, - "value": { - "type": "integer", - "format": "int32" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "commentId": { - "type": "string", - "nullable": true + "stripeCustomerId": { + "type": "string" }, - "questionId": { + "stripeSubscriptionId": { + "type": "string" + }, + "stripePlanId": { "type": "string" }, + "enableProfanityFilter": { + "type": "boolean" + }, + "enableSpamFilter": { + "type": "boolean" + }, + "removeUnverifiedComments": { + "type": "boolean" + }, + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" + }, + "commentsRequireApproval": { + "type": "boolean" + }, + "autoApproveCommentOnVerification": { + "type": "boolean" + }, + "sendProfaneToSpam": { + "type": "boolean" + }, + "deAnonIpAddr": { + "type": "number", + "format": "double" + }, "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "name", + "domainConfiguration" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateTenantBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "signUpDate": { + "type": "number", + "format": "double" + }, + "packageId": { + "type": "string" + }, + "paymentFrequency": { + "type": "number", + "format": "double" + }, + "billingInfoValid": { + "type": "boolean" + }, + "billingHandledExternally": { + "type": "boolean" + }, + "createdBy": { + "type": "string" + }, + "isSetup": { + "type": "boolean" + }, + "domainConfiguration": { "items": { - "$ref": "#/components/schemas/MetaItem" + "$ref": "#/components/schemas/APIDomainConfiguration" }, - "type": "array", - "nullable": true + "type": "array" }, - "ipHash": { + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" + }, + "stripeCustomerId": { + "type": "string" + }, + "stripeSubscriptionId": { + "type": "string" + }, + "stripePlanId": { + "type": "string" + }, + "enableProfanityFilter": { + "type": "boolean" + }, + "enableSpamFilter": { + "type": "boolean" + }, + "removeUnverifiedComments": { + "type": "boolean" + }, + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" + }, + "commentsRequireApproval": { + "type": "boolean" + }, + "autoApproveCommentOnVerification": { + "type": "boolean" + }, + "sendProfaneToSpam": { + "type": "boolean" + }, + "deAnonIpAddr": { + "type": "number", + "format": "double" + }, + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "managedByTenantId": { "type": "string" } }, - "required": [ - "_id", - "tenantId", - "urlId", - "anonUserId", - "userId", - "createdAt", - "value", - "questionId", - "ipHash" - ], "type": "object", "additionalProperties": false }, - "GetQuestionResultResponse": { + "GetTenantUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ "status", - "questionResult" + "tenantUser" ], "type": "object", "additionalProperties": false }, - "GetQuestionResultsResponse": { + "GetTenantUsersResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResults": { + "tenantUsers": { "items": { - "$ref": "#/components/schemas/QuestionResult" + "$ref": "#/components/schemas/User" }, "type": "array" } }, "required": [ "status", - "questionResults" + "tenantUsers" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultResponse": { + "CreateTenantUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ "status", - "questionResult" + "tenantUser" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultBody": { + "CreateTenantUserBody": { "properties": { - "urlId": { + "username": { "type": "string" }, - "value": { - "type": "number", - "format": "double" - }, - "questionId": { + "email": { "type": "string" }, - "anonUserId": { + "displayName": { "type": "string" }, - "userId": { + "websiteUrl": { "type": "string" }, - "commentId": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "meta": { - "items": { - "$ref": "#/components/schemas/MetaItem" - }, - "type": "array", - "nullable": true - } - }, - "required": [ - "urlId", - "value", - "questionId" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateQuestionResultBody": { - "properties": { - "urlId": { + "locale": { "type": "string" }, - "anonUserId": { - "type": "string" - }, - "userId": { - "type": "string" + "verified": { + "type": "boolean" }, - "value": { + "loginCount": { "type": "number", "format": "double" }, - "commentId": { - "type": "string" + "optedInNotifications": { + "type": "boolean" }, - "questionId": { + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "meta": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { - "$ref": "#/components/schemas/MetaItem" + "type": "string" }, - "type": "array", - "nullable": true - } - }, - "type": "object", - "additionalProperties": {} - }, - "Record_number.number_": { - "properties": {}, - "additionalProperties": { - "type": "number", - "format": "double" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "QuestionDatum": { - "properties": { - "v": { - "$ref": "#/components/schemas/Record_number.number_" + "type": "array" }, - "total": { - "type": "integer", - "format": "int64" + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { + "type": "string" } }, "required": [ - "v", - "total" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "Record_string.QuestionDatum_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/QuestionDatum" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "QuestionResultAggregationOverall": { + "ReplaceTenantUserBody": { "properties": { - "dataByDateBucket": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" + "username": { + "type": "string" }, - "dataByUrlId": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" + "email": { + "type": "string" }, - "countsByValue": { - "$ref": "#/components/schemas/Int32Map" + "displayName": { + "type": "string" }, - "total": { - "type": "integer", - "format": "int64" + "websiteUrl": { + "type": "string" }, - "average": { + "signUpDate": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "total", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "AggregateQuestionResultsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "locale": { + "type": "string" }, - "data": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "AggregateTimeBucket": { - "type": "string", - "enum": [ - "day", - "month", - "year" - ] - }, - "Record_string.QuestionResultAggregationOverall_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "BulkAggregateQuestionResultsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "verified": { + "type": "boolean" }, - "data": { - "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "BulkAggregateQuestionItem": { - "properties": { - "aggId": { - "type": "string" + "loginCount": { + "type": "number", + "format": "double" }, - "questionId": { + "optedInNotifications": { + "type": "boolean" + }, + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "questionIds": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { "type": "string" }, "type": "array" }, - "urlId": { + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { "type": "string" }, - "timeBucket": { - "$ref": "#/components/schemas/AggregateTimeBucket" + "createdFromUrlId": { + "type": "string" }, - "startDate": { - "type": "string", - "format": "date-time" + "createdFromTenantId": { + "type": "string" + }, + "lastLoginDate": { + "type": "number", + "format": "double" + }, + "karma": { + "type": "number", + "format": "double" } }, "required": [ - "aggId" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "BulkAggregateQuestionResultsRequest": { + "UpdateTenantUserBody": { "properties": { - "aggregations": { - "items": { - "$ref": "#/components/schemas/BulkAggregateQuestionItem" - }, - "type": "array" - } - }, - "required": [ - "aggregations" - ], - "type": "object", - "additionalProperties": false - }, - "CommentLogType": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 17, - 18, - 19, - 20, - 21, - 22, - 23, - 24, - 25, - 26, - 27, - 28, - 29, - 30, - 31, - 32, - 33, - 34, - 35, - 36, - 37, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 46, - 47, - 48, - 49, - 50, - 51, - 52, - 53, - 54, - 55 - ], - "type": "integer" - }, - "RepeatCommentHandlingAction": { - "enum": [ - 0, - 1, - 2 - ], - "type": "integer" - }, - "RepeatCommentCheckIgnoredReason": { - "enum": [ - 0, - 1, - 2, - 3, - 4, - 5, - 6 - ], - "type": "integer" - }, - "CommentLogData": { - "properties": { - "clearContent": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "phrase": { + "username": { "type": "string" }, - "badWord": { + "displayName": { "type": "string" }, - "word": { + "websiteUrl": { "type": "string" }, - "locale": { + "email": { "type": "string" }, - "tenantBadgeId": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "badgeId": { - "type": "string" + "verified": { + "type": "boolean" }, - "wasLoggedIn": { + "loginCount": { + "type": "number", + "format": "double" + }, + "optedInNotifications": { "type": "boolean" }, - "foundUser": { + "optedInTenantNotifications": { "type": "boolean" }, - "verified": { + "hideAccountCode": { "type": "boolean" }, - "engine": { + "avatarSrc": { "type": "string" }, - "engineResponse": { + "isHelpRequestAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "isAdminAdmin": { + "type": "boolean" + }, + "isBillingAdmin": { + "type": "boolean" + }, + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "moderatorIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "locale": { "type": "string" }, - "engineTokens": { + "digestEmailFrequency": { "type": "number", "format": "double" }, - "trustFactor": { - "type": "number", - "format": "double" + "displayLabel": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "TenantPackage": { + "properties": { + "_id": { + "type": "string" }, - "rule": { - "$ref": "#/components/schemas/SpamRule" + "name": { + "type": "string" }, - "userId": { + "tenantId": { "type": "string" }, - "subscribers": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string", + "format": "date-time" }, - "notificationCount": { - "type": "number", - "format": "double" + "templateId": { + "type": "string" }, - "votesBefore": { + "monthlyCostUSD": { "type": "number", "format": "double", "nullable": true }, - "votesUpBefore": { + "yearlyCostUSD": { "type": "number", "format": "double", "nullable": true }, - "votesDownBefore": { - "type": "number", - "format": "double", + "monthlyStripePlanId": { + "type": "string", "nullable": true }, - "votesAfter": { - "type": "number", - "format": "double", + "yearlyStripePlanId": { + "type": "string", "nullable": true }, - "votesUpAfter": { + "maxMonthlyPageLoads": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "votesDownAfter": { + "maxMonthlyAPICredits": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "repeatAction": { - "$ref": "#/components/schemas/RepeatCommentHandlingAction" + "maxMonthlySmallWidgetsCredits": { + "type": "number", + "format": "double" }, - "reason": { - "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "otherData": {}, - "spamBefore": { - "type": "boolean" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "spamAfter": { - "type": "boolean" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "permanentFlag": { - "type": "string", - "enum": [ - "permanent" - ], - "nullable": false + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "approvedBefore": { - "type": "boolean" + "maxModerators": { + "type": "number", + "format": "double" }, - "approvedAfter": { - "type": "boolean" + "maxDomains": { + "type": "number", + "format": "double" }, - "reviewedBefore": { - "type": "boolean" - }, - "reviewedAfter": { - "type": "boolean" - }, - "textBefore": { - "type": "string" - }, - "textAfter": { - "type": "string" - }, - "expireBefore": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "expireAfter": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "flagCountBefore": { + "maxWhiteLabeledTenants": { "type": "number", - "format": "double", - "nullable": true + "format": "double" }, - "trustFactorBefore": { + "maxMonthlyEventLogRequests": { "type": "number", "format": "double" }, - "trustFactorAfter": { + "maxCustomCollectionSize": { "type": "number", "format": "double" }, - "referencedCommentId": { - "type": "string" - }, - "invalidLocale": { - "type": "string" - }, - "detectedLocale": { - "type": "string" + "hasWhiteLabeling": { + "type": "boolean" }, - "detectedLanguage": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "CommentLogEntry": { - "properties": { - "d": { - "type": "string", - "format": "date-time" + "hasDebranding": { + "type": "boolean" }, - "t": { - "$ref": "#/components/schemas/CommentLogType" + "hasLLMSpamDetection": { + "type": "boolean" }, - "da": { - "$ref": "#/components/schemas/CommentLogData" - } - }, - "required": [ - "d", - "t" - ], - "type": "object", - "additionalProperties": false - }, - "FComment": { - "properties": { - "_id": { + "forWhoText": { "type": "string" }, - "tenantId": { - "type": "string" + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" }, - "urlId": { - "type": "string" + "hasAuditing": { + "type": "boolean" }, - "urlIdRaw": { - "type": "string" + "hasFlexPricing": { + "type": "boolean" }, - "url": { - "type": "string" + "enableSAML": { + "type": "boolean" }, - "pageTitle": { - "type": "string", - "nullable": true + "enableCanvasLTI": { + "type": "boolean" }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true + "flexPageLoadCostCents": { + "type": "number", + "format": "double" }, - "anonUserId": { - "type": "string", - "nullable": true + "flexPageLoadUnit": { + "type": "number", + "format": "double" }, - "commenterEmail": { - "type": "string", - "nullable": true + "flexCommentCostCents": { + "type": "number", + "format": "double" }, - "commenterName": { - "type": "string" + "flexCommentUnit": { + "type": "number", + "format": "double" }, - "commenterLink": { - "type": "string", - "nullable": true + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "comment": { - "type": "string" + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "commentHTML": { - "type": "string" + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "parentId": { - "type": "string", - "nullable": true + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "date": { - "type": "string", - "format": "date-time", - "nullable": true + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "localDateString": { - "type": "string", - "nullable": true + "flexSmallWidgetsCreditUnit": { + "type": "number", + "format": "double" }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "verified": { - "type": "boolean" + "flexDomainUnit": { + "type": "number", + "format": "double" }, - "verifiedDate": { - "type": "string", - "format": "date-time", - "nullable": true + "flexChatGPTCostCents": { + "type": "number", + "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true + "flexChatGPTUnit": { + "type": "number", + "format": "double" }, - "notificationSentForParent": { - "type": "boolean" + "flexLLMCostCents": { + "type": "number", + "format": "double" }, - "notificationSentForParentTenant": { - "type": "boolean" + "flexLLMUnit": { + "type": "number", + "format": "double" }, - "reviewed": { - "type": "boolean" + "flexMinimumCostCents": { + "type": "number", + "format": "double" }, - "imported": { - "type": "boolean" + "flexManagedTenantCostCents": { + "type": "number", + "format": "double" }, - "externalId": { - "type": "string" + "flexSSOAdminCostCents": { + "type": "number", + "format": "double" }, - "externalParentId": { - "type": "string", - "nullable": true + "flexSSOAdminUnit": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "flexSSOModeratorCostCents": { + "type": "number", + "format": "double" }, - "isSpam": { - "type": "boolean" + "flexSSOModeratorUnit": { + "type": "number", + "format": "double" }, - "permNotSpam": { + "isSSOBillingMonthlyActiveUsers": { "type": "boolean" }, - "aiDeterminedSpam": { + "hasAIAgents": { "type": "boolean" }, - "hasImages": { - "type": "boolean" - }, - "pageNumber": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "pageNumberOF": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "pageNumberNF": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "hasLinks": { - "type": "boolean" - }, - "hasCode": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "locale": { - "type": "string", - "nullable": true - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "isBannedUser": { - "type": "boolean" - }, - "isByAdmin": { - "type": "boolean" - }, - "isByModerator": { - "type": "boolean" - }, - "isPinned": { - "type": "boolean", - "nullable": true - }, - "isLocked": { - "type": "boolean", - "nullable": true - }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "rating": { + "maxAIAgents": { "type": "number", - "format": "double", - "nullable": true - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "fromProductId": { - "type": "integer", - "format": "int32" - }, - "meta": { - "properties": { - "wpId": { - "type": "string" - }, - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true - }, - "ipHash": { - "type": "string" - }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" - }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true - }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], - "nullable": true - }, - "veteranBadgeProcessed": { - "type": "string" - }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true - }, - "didProcessBadges": { - "type": "boolean" - }, - "fromOfflineRestore": { - "type": "boolean" - }, - "autoplayJobId": { - "type": "string" - }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" - }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "logs": { - "items": { - "$ref": "#/components/schemas/CommentLogEntry" - }, - "type": "array", - "nullable": true - }, - "groupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true - }, - "viewCount": { - "type": "integer", - "format": "int64", - "nullable": true - }, - "requiresVerification": { - "type": "boolean" + "format": "double" }, - "editKey": { - "type": "string" + "aiAgentDailyBudgetCents": { + "type": "number", + "format": "double" }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" + "aiAgentMonthlyBudgetCents": { + "type": "number", + "format": "double" } }, "required": [ "_id", + "name", "tenantId", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "date", - "verified", - "approved", - "locale" + "createdAt", + "monthlyCostUSD", + "yearlyCostUSD", + "monthlyStripePlanId", + "yearlyStripePlanId", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlySmallWidgetsCredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "maxWhiteLabeledTenants", + "maxMonthlyEventLogRequests", + "maxCustomCollectionSize", + "hasWhiteLabeling", + "hasDebranding", + "hasLLMSpamDetection", + "forWhoText", + "featureTaglines", + "hasAuditing", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeItem": { + "GetTenantPackageResponse": { "properties": { - "comment": { - "allOf": [ - { - "$ref": "#/components/schemas/FComment" - } - ], - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "result": { - "$ref": "#/components/schemas/QuestionResult" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ - "comment", - "result" + "status", + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeResponse": { + "GetTenantPackagesResponse": { "properties": { - "results": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenantPackages": { "items": { - "$ref": "#/components/schemas/FindCommentsByRangeItem" + "$ref": "#/components/schemas/TenantPackage" }, "type": "array" - }, - "createdAt": { - "type": "string", - "format": "date-time" } }, "required": [ - "results", - "createdAt" + "status", + "tenantPackages" ], "type": "object", "additionalProperties": false }, - "CombineQuestionResultsWithCommentsResponse": { + "CreateTenantPackageResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/FindCommentsByRangeResponse" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ "status", - "data" + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "QuestionConfig": { + "CreateTenantPackageBody": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, "name": { "type": "string" }, - "question": { - "type": "string" - }, - "summaryLabel": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true }, - "helpText": { - "type": "string" + "yearlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true }, - "createdAt": { + "monthlyStripePlanId": { "type": "string", - "format": "date-time" + "nullable": true }, - "createdBy": { - "type": "string" + "yearlyStripePlanId": { + "type": "string", + "nullable": true }, - "usedCount": { + "maxMonthlyPageLoads": { "type": "number", "format": "double" }, - "lastUsed": { - "type": "string", - "format": "date-time" - }, - "type": { - "type": "string" - }, - "numStars": { + "maxMonthlyAPICredits": { "type": "number", "format": "double" }, - "min": { + "maxMonthlySmallWidgetsCredits": { "type": "number", "format": "double" }, - "max": { + "maxMonthlyComments": { "type": "number", "format": "double" }, - "defaultValue": { + "maxConcurrentUsers": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" - }, - "labelPositive": { - "type": "string" - }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" - }, - "subQuestionIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "alwaysShowSubQuestions": { - "type": "boolean" - }, - "reportingOrder": { + "maxTenantUsers": { "type": "number", "format": "double" - } - }, - "required": [ - "_id", - "tenantId", - "name", - "question", - "helpText", - "createdAt", - "createdBy", - "usedCount", - "lastUsed", - "type", - "numStars", - "min", - "max", - "defaultValue", - "labelNegative", - "labelPositive", - "customOptions", - "subQuestionIds", - "alwaysShowSubQuestions", - "reportingOrder" - ], - "type": "object", - "additionalProperties": false - }, - "GetQuestionConfigResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" - } - }, - "required": [ - "status", - "questionConfig" - ], - "type": "object", - "additionalProperties": false - }, - "GetQuestionConfigsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfigs": { - "items": { - "$ref": "#/components/schemas/QuestionConfig" - }, - "type": "array" - } - }, - "required": [ - "status", - "questionConfigs" - ], - "type": "object", - "additionalProperties": false - }, - "CreateQuestionConfigResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" - } - }, - "required": [ - "status", - "questionConfig" - ], - "type": "object", - "additionalProperties": false - }, - "CreateQuestionConfigBody": { - "properties": { - "name": { - "type": "string" - }, - "question": { - "type": "string" }, - "helpText": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "type": { - "type": "string" + "maxModerators": { + "type": "number", + "format": "double" }, - "numStars": { + "maxDomains": { "type": "number", "format": "double" }, - "min": { + "maxWhiteLabeledTenants": { "type": "number", "format": "double" }, - "max": { + "maxMonthlyEventLogRequests": { "type": "number", "format": "double" }, - "defaultValue": { + "maxCustomCollectionSize": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" + "hasWhiteLabeling": { + "type": "boolean" }, - "labelPositive": { - "type": "string" + "hasDebranding": { + "type": "boolean" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "hasLLMSpamDetection": { + "type": "boolean" }, - "subQuestionIds": { + "forWhoText": { + "type": "string" + }, + "featureTaglines": { "items": { "type": "string" }, "type": "array" }, - "alwaysShowSubQuestions": { + "hasAuditing": { "type": "boolean" }, - "reportingOrder": { - "type": "number", - "format": "double" - } - }, - "required": [ - "name", - "question", - "type", - "reportingOrder" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateQuestionConfigBody": { - "properties": { - "name": { - "type": "string" - }, - "question": { - "type": "string" - }, - "helpText": { - "type": "string" + "hasFlexPricing": { + "type": "boolean" }, - "type": { - "type": "string" + "enableSAML": { + "type": "boolean" }, - "numStars": { + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "min": { + "flexPageLoadUnit": { "type": "number", "format": "double" }, - "max": { + "flexCommentCostCents": { "type": "number", "format": "double" }, - "defaultValue": { + "flexCommentUnit": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "labelPositive": { - "type": "string" + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "subQuestionIds": { - "items": { - "type": "string" - }, - "type": "array" + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "alwaysShowSubQuestions": { - "type": "boolean" + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "reportingOrder": { + "flexSmallWidgetsCreditUnit": { "type": "number", "format": "double" - } - }, - "type": "object", - "additionalProperties": {} - }, - "PendingCommentToSyncOutbound": { - "properties": { - "_id": { - "type": "string" }, - "commentId": { - "type": "string" + "flexModeratorCostCents": { + "type": "number", + "format": "double" }, - "comment": { - "$ref": "#/components/schemas/FComment" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "externalId": { - "type": "string", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "attemptCount": { + "flexDomainUnit": { "type": "number", "format": "double" }, - "nextAttemptAt": { - "type": "string", - "format": "date-time" + "flexLLMCostCents": { + "type": "number", + "format": "double" }, - "eventType": { + "flexLLMUnit": { "type": "number", "format": "double" }, - "type": { + "flexMinimumCostCents": { "type": "number", "format": "double" }, - "domain": { - "type": "string" + "flexManagedTenantCostCents": { + "type": "number", + "format": "double" }, - "lastError": { - "additionalProperties": false, - "type": "object" + "flexSSOAdminCostCents": { + "type": "number", + "format": "double" }, - "webhookId": { - "type": "string" - } - }, - "required": [ - "_id", - "commentId", - "externalId", - "createdAt", - "tenantId", - "attemptCount", - "nextAttemptAt", - "eventType", - "type", - "domain", - "lastError" - ], - "type": "object", - "additionalProperties": false - }, - "GetPendingWebhookEventsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexSSOAdminUnit": { + "type": "number", + "format": "double" }, - "pendingWebhookEvents": { - "items": { - "$ref": "#/components/schemas/PendingCommentToSyncOutbound" - }, - "type": "array" - } - }, - "required": [ - "status", - "pendingWebhookEvents" - ], - "type": "object", - "additionalProperties": false - }, - "GetPendingWebhookEventCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexSSOModeratorCostCents": { + "type": "number", + "format": "double" }, - "count": { + "flexSSOModeratorUnit": { "type": "number", "format": "double" } }, "required": [ - "status", - "count" + "name", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "GetNotificationsResponse": { + "ReplaceTenantPackageBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "name": { + "type": "string" }, - "notifications": { - "items": { - "$ref": "#/components/schemas/UserNotification" - }, - "type": "array" - } - }, - "required": [ - "status", - "notifications" - ], - "type": "object", - "additionalProperties": false - }, - "GetNotificationCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "count": { + "yearlyCostUSD": { "type": "number", "format": "double" - } - }, - "required": [ - "status", - "count" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateNotificationBody": { - "properties": { - "viewed": { - "type": "boolean" }, - "optedOut": { - "type": "boolean" - } - }, - "type": "object", - "additionalProperties": {} - }, - "UserNotificationCount": { - "properties": { - "_id": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "count": { + "maxMonthlyAPICredits": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "expireAt": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "_id", - "count", - "createdAt", - "expireAt" - ], - "type": "object", - "additionalProperties": false - }, - "GetCachedNotificationCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "data": { - "$ref": "#/components/schemas/UserNotificationCount" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "Moderator": { - "properties": { - "_id": { - "type": "string" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "name": { - "type": "string", - "nullable": true + "maxModerators": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "maxDomains": { + "type": "number", + "format": "double" }, - "acceptedInvite": { + "maxCustomCollectionSize": { + "type": "number", + "format": "double" + }, + "hasDebranding": { "type": "boolean" }, - "email": { - "type": "string", - "nullable": true + "forWhoText": { + "type": "string" }, - "markReviewedCount": { + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasFlexPricing": { + "type": "boolean" + }, + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "deletedCount": { + "flexPageLoadUnit": { "type": "number", "format": "double" }, - "markedSpamCount": { + "flexCommentCostCents": { "type": "number", "format": "double" }, - "markedNotSpamCount": { + "flexCommentUnit": { "type": "number", "format": "double" }, - "approvedCount": { + "flexSSOUserCostCents": { "type": "number", "format": "double" }, - "unApprovedCount": { + "flexSSOUserUnit": { "type": "number", "format": "double" }, - "editedCount": { + "flexAPICreditCostCents": { "type": "number", "format": "double" }, - "bannedCount": { + "flexAPICreditUnit": { "type": "number", "format": "double" }, - "unFlaggedCount": { + "flexModeratorCostCents": { "type": "number", "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true - }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexModeratorUnit": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "flexAdminCostCents": { + "type": "number", + "format": "double" }, - "isEmailSuppressed": { - "type": "boolean" - } - }, - "required": [ - "_id", - "tenantId", - "name", - "userId", - "acceptedInvite", - "email", - "markReviewedCount", - "deletedCount", - "markedSpamCount", - "markedNotSpamCount", - "approvedCount", - "unApprovedCount", - "editedCount", - "bannedCount", - "unFlaggedCount", - "verificationId", - "createdAt", - "moderationGroupIds" - ], - "type": "object", - "additionalProperties": false - }, - "GetModeratorResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexAdminUnit": { + "type": "number", + "format": "double" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" - } - }, - "required": [ - "status", - "moderator" - ], - "type": "object", - "additionalProperties": false - }, - "GetModeratorsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexDomainCostCents": { + "type": "number", + "format": "double" }, - "moderators": { - "items": { - "$ref": "#/components/schemas/Moderator" - }, - "type": "array" - } - }, - "required": [ - "status", - "moderators" - ], - "type": "object", - "additionalProperties": false - }, - "CreateModeratorResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "flexDomainUnit": { + "type": "number", + "format": "double" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, "required": [ - "status", - "moderator" + "name", + "monthlyCostUSD", + "yearlyCostUSD", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "CreateModeratorBody": { + "UpdateTenantPackageBody": { "properties": { "name": { "type": "string" }, - "email": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string" + "yearlyCostUSD": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "required": [ - "name", - "email" - ], - "type": "object", - "additionalProperties": {} - }, - "UpdateModeratorBody": { - "properties": { - "name": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "email": { - "type": "string" + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object", - "additionalProperties": {} - }, - "TenantHashTag": { - "properties": { - "_id": { - "type": "string" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" + "maxModerators": { + "type": "number", + "format": "double" }, - "url": { + "maxDomains": { + "type": "number", + "format": "double" + }, + "maxCustomCollectionSize": { + "type": "number", + "format": "double" + }, + "hasDebranding": { + "type": "boolean" + }, + "hasWhiteLabeling": { + "type": "boolean" + }, + "forWhoText": { "type": "string" - } - }, - "required": [ - "_id", - "createdAt", - "tenantId", - "tag" - ], - "type": "object", - "additionalProperties": false - }, - "GetHashTagsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "hashTags": { + "featureTaglines": { "items": { - "$ref": "#/components/schemas/TenantHashTag" + "type": "string" }, "type": "array" - } - }, - "required": [ - "status", - "hashTags" - ], - "type": "object", - "additionalProperties": false - }, - "CreateHashTagResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "hashTag": { - "$ref": "#/components/schemas/TenantHashTag" + "hasFlexPricing": { + "type": "boolean" + }, + "flexPageLoadCostCents": { + "type": "number", + "format": "double" + }, + "flexPageLoadUnit": { + "type": "number", + "format": "double" + }, + "flexCommentCostCents": { + "type": "number", + "format": "double" + }, + "flexCommentUnit": { + "type": "number", + "format": "double" + }, + "flexSSOUserCostCents": { + "type": "number", + "format": "double" + }, + "flexSSOUserUnit": { + "type": "number", + "format": "double" + }, + "flexAPICreditCostCents": { + "type": "number", + "format": "double" + }, + "flexAPICreditUnit": { + "type": "number", + "format": "double" + }, + "flexModeratorCostCents": { + "type": "number", + "format": "double" + }, + "flexModeratorUnit": { + "type": "number", + "format": "double" + }, + "flexAdminCostCents": { + "type": "number", + "format": "double" + }, + "flexAdminUnit": { + "type": "number", + "format": "double" + }, + "flexDomainCostCents": { + "type": "number", + "format": "double" + }, + "flexDomainUnit": { + "type": "number", + "format": "double" + }, + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, - "required": [ - "status", - "hashTag" - ], "type": "object", "additionalProperties": false }, - "CreateHashTagBody": { + "APITenantDailyUsage": { "properties": { - "tenantId": { + "id": { "type": "string" }, - "tag": { + "tenantId": { "type": "string" }, - "url": { - "type": "string" + "yearNumber": { + "type": "number", + "format": "double" + }, + "monthNumber": { + "type": "number", + "format": "double" + }, + "dayNumber": { + "type": "number", + "format": "double" + }, + "commentFetchCount": { + "type": "number", + "format": "double" + }, + "commentCreateCount": { + "type": "number", + "format": "double" + }, + "conversationCreateCount": { + "type": "number", + "format": "double" + }, + "voteCount": { + "type": "number", + "format": "double" + }, + "accountCreatedCount": { + "type": "number", + "format": "double" + }, + "userMentionSearch": { + "type": "number", + "format": "double" + }, + "hashTagSearch": { + "type": "number", + "format": "double" + }, + "gifSearchTrending": { + "type": "number", + "format": "double" + }, + "gifSearch": { + "type": "number", + "format": "double" + }, + "apiCreditsUsed": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "billed": { + "type": "boolean" + }, + "ignored": { + "type": "boolean" + }, + "apiErrorCount": { + "type": "number", + "format": "double" } }, "required": [ - "tag" + "id", + "tenantId", + "yearNumber", + "monthNumber", + "dayNumber", + "commentFetchCount", + "commentCreateCount", + "conversationCreateCount", + "voteCount", + "accountCreatedCount", + "userMentionSearch", + "hashTagSearch", + "gifSearchTrending", + "gifSearch", + "apiCreditsUsed", + "createdAt", + "billed", + "ignored", + "apiErrorCount" ], "type": "object", "additionalProperties": false }, - "BulkCreateHashTagsResponse": { + "GetTenantDailyUsagesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "results": { + "tenantDailyUsages": { "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APITenantDailyUsage" }, "type": "array" } }, "required": [ "status", - "results" + "tenantDailyUsages" ], "type": "object", "additionalProperties": false }, - "BulkCreateHashTagsBody": { + "MetaItem": { "properties": { - "tenantId": { + "name": { "type": "string" }, - "tags": { + "values": { "items": { - "properties": { - "url": { - "type": "string" - }, - "tag": { - "type": "string" - } - }, - "required": [ - "tag" - ], - "type": "object" + "type": "string" }, "type": "array" } }, "required": [ - "tags" + "name", + "values" ], "type": "object", "additionalProperties": false }, - "UpdateHashTagResponse": { + "QuestionResult": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "hashTag": { - "$ref": "#/components/schemas/TenantHashTag" + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "value": { + "type": "integer", + "format": "int32" + }, + "commentId": { + "type": "string", + "nullable": true + }, + "questionId": { + "type": "string" + }, + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true + }, + "ipHash": { + "type": "string" } }, "required": [ - "status", - "hashTag" + "_id", + "tenantId", + "urlId", + "anonUserId", + "userId", + "createdAt", + "value", + "questionId", + "ipHash" ], "type": "object", "additionalProperties": false }, - "UpdateHashTagBody": { + "GetQuestionResultResponse": { "properties": { - "tenantId": { - "type": "string" - }, - "url": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tag": { - "type": "string" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, + "required": [ + "status", + "questionResult" + ], "type": "object", "additionalProperties": false }, - "GetFeedPostsResponse": { + "GetQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "feedPosts": { + "questionResults": { "items": { - "$ref": "#/components/schemas/FeedPost" + "$ref": "#/components/schemas/QuestionResult" }, "type": "array" } }, "required": [ "status", - "feedPosts" + "questionResults" ], "type": "object", "additionalProperties": false }, - "CreateFeedPostsResponse": { + "CreateQuestionResultResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "feedPost": { - "$ref": "#/components/schemas/FeedPost" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, "required": [ "status", - "feedPost" + "questionResult" ], "type": "object", "additionalProperties": false }, - "Record_string.unknown_": { - "properties": {}, - "additionalProperties": {}, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "Record_string.Record_string.string__": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" - }, - "EmailTemplateDefinition": { + "CreateQuestionResultBody": { "properties": { - "emailTemplateId": { + "urlId": { "type": "string" }, - "defaultTestData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "value": { + "type": "number", + "format": "double" }, - "defaultTranslationsByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "questionId": { + "type": "string" }, - "defaultEJS": { + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "commentId": { "type": "string" + }, + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true } }, "required": [ - "emailTemplateId", - "defaultTestData", - "defaultTranslationsByLocale", - "defaultEJS" + "urlId", + "value", + "questionId" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "GetEmailTemplateDefinitionsResponse": { + "UpdateQuestionResultBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "urlId": { + "type": "string" }, - "definitions": { + "anonUserId": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "value": { + "type": "number", + "format": "double" + }, + "commentId": { + "type": "string" + }, + "questionId": { + "type": "string" + }, + "meta": { "items": { - "$ref": "#/components/schemas/EmailTemplateDefinition" + "$ref": "#/components/schemas/MetaItem" }, - "type": "array" + "type": "array", + "nullable": true + } + }, + "type": "object", + "additionalProperties": {} + }, + "Record_number.number_": { + "properties": {}, + "additionalProperties": { + "type": "number", + "format": "double" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "QuestionDatum": { + "properties": { + "v": { + "$ref": "#/components/schemas/Record_number.number_" + }, + "total": { + "type": "integer", + "format": "int64" } }, "required": [ - "status", - "definitions" + "v", + "total" ], "type": "object", "additionalProperties": false }, - "EmailTemplateRenderErrorResponse": { + "Record_string.QuestionDatum_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/QuestionDatum" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "QuestionResultAggregationOverall": { "properties": { - "id": { - "type": "string" + "dataByDateBucket": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "tenantId": { - "type": "string" + "dataByUrlId": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "customTemplateId": { - "type": "string" + "countsByValue": { + "$ref": "#/components/schemas/Int32Map" }, - "error": { - "type": "string" + "total": { + "type": "integer", + "format": "int64" }, - "count": { + "average": { "type": "number", "format": "double" }, "createdAt": { "type": "string", "format": "date-time" - }, - "lastOccurredAt": { - "type": "string", - "format": "date-time" } }, "required": [ - "id", - "tenantId", - "customTemplateId", - "error", - "count", - "createdAt", - "lastOccurredAt" + "total", + "createdAt" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplateRenderErrorsResponse": { + "AggregateQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "renderErrors": { - "items": { - "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" } }, "required": [ "status", - "renderErrors" + "data" ], "type": "object", "additionalProperties": false }, - "CustomEmailTemplate": { - "properties": { - "_id": { - "type": "string" - }, - "tenantId": { - "type": "string" - }, - "emailTemplateId": { - "type": "string" - }, - "displayName": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "updatedByUserId": { - "type": "string", - "nullable": true - }, - "domain": { - "type": "string", - "nullable": true - }, - "ejs": { - "type": "string" - }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" - }, - "testData": {} + "AggregateTimeBucket": { + "type": "string", + "enum": [ + "day", + "month", + "year" + ] + }, + "Record_string.QuestionResultAggregationOverall_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" }, - "required": [ - "_id", - "tenantId", - "emailTemplateId", - "displayName", - "createdAt", - "updatedAt", - "updatedByUserId", - "ejs", - "translationOverridesByLocale", - "testData" - ], "type": "object", - "additionalProperties": false + "description": "Construct a type with a set of properties K of type T" }, - "GetEmailTemplateResponse": { + "BulkAggregateQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "data": { + "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" } }, "required": [ "status", - "emailTemplate" + "data" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplatesResponse": { + "BulkAggregateQuestionItem": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "aggId": { + "type": "string" }, - "emailTemplates": { + "questionId": { + "type": "string" + }, + "questionIds": { "items": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "type": "string" }, "type": "array" + }, + "urlId": { + "type": "string" + }, + "timeBucket": { + "$ref": "#/components/schemas/AggregateTimeBucket" + }, + "startDate": { + "type": "string", + "format": "date-time" } }, "required": [ - "status", - "emailTemplates" + "aggId" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateResponse": { + "BulkAggregateQuestionResultsRequest": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "aggregations": { + "items": { + "$ref": "#/components/schemas/BulkAggregateQuestionItem" + }, + "type": "array" } }, "required": [ - "status", - "emailTemplate" + "aggregations" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateBody": { + "CommentLogType": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55 + ], + "type": "integer" + }, + "RepeatCommentHandlingAction": { + "enum": [ + 0, + 1, + 2 + ], + "type": "integer" + }, + "RepeatCommentCheckIgnoredReason": { + "enum": [ + 0, + 1, + 2, + 3, + 4, + 5, + 6 + ], + "type": "integer" + }, + "CommentLogData": { "properties": { - "emailTemplateId": { - "type": "string" + "clearContent": { + "type": "boolean" }, - "displayName": { + "isDeletedUser": { + "type": "boolean" + }, + "phrase": { "type": "string" }, - "ejs": { + "badWord": { "type": "string" }, - "domain": { + "word": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "locale": { + "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" - } - }, - "required": [ - "emailTemplateId", - "displayName", - "ejs" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateEmailTemplateBody": { - "properties": { - "emailTemplateId": { + "tenantBadgeId": { "type": "string" }, - "displayName": { + "badgeId": { "type": "string" }, - "ejs": { + "wasLoggedIn": { + "type": "boolean" + }, + "foundUser": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "engine": { "type": "string" }, - "domain": { + "engineResponse": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "engineTokens": { + "type": "number", + "format": "double" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" - } - }, - "type": "object", - "additionalProperties": false - }, - "RenderEmailTemplateResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "trustFactor": { + "type": "number", + "format": "double" }, - "html": { - "type": "string" - } - }, - "required": [ - "status", - "html" - ], - "type": "object", - "additionalProperties": false - }, - "RenderEmailTemplateBody": { - "properties": { - "emailTemplateId": { + "source": { "type": "string" }, - "ejs": { + "rule": { + "$ref": "#/components/schemas/SpamRule" + }, + "userId": { "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "subscribers": { + "type": "number", + "format": "double" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" - } - }, - "required": [ - "emailTemplateId", - "ejs" - ], - "type": "object", - "additionalProperties": false - }, - "AddDomainConfigParams": { - "properties": { - "domain": { - "type": "string" + "notificationCount": { + "type": "number", + "format": "double" }, - "emailFromName": { + "votesBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesUpAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "votesDownAfter": { + "type": "number", + "format": "double", + "nullable": true + }, + "repeatAction": { + "$ref": "#/components/schemas/RepeatCommentHandlingAction" + }, + "reason": { + "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + }, + "otherData": {}, + "spamBefore": { + "type": "boolean" + }, + "spamAfter": { + "type": "boolean" + }, + "permanentFlag": { + "type": "string", + "enum": [ + "permanent" + ], + "nullable": false + }, + "approvedBefore": { + "type": "boolean" + }, + "approvedAfter": { + "type": "boolean" + }, + "reviewedBefore": { + "type": "boolean" + }, + "reviewedAfter": { + "type": "boolean" + }, + "textBefore": { "type": "string" }, - "emailFromEmail": { + "textAfter": { "type": "string" }, - "logoSrc": { + "expireBefore": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "expireAfter": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "flagCountBefore": { + "type": "number", + "format": "double", + "nullable": true + }, + "trustFactorBefore": { + "type": "number", + "format": "double" + }, + "trustFactorAfter": { + "type": "number", + "format": "double" + }, + "referencedCommentId": { "type": "string" }, - "logoSrc100px": { + "invalidLocale": { "type": "string" }, - "footerUnsubscribeURL": { + "detectedLocale": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "detectedLanguage": { + "type": "string" } }, - "required": [ - "domain" - ], "type": "object", "additionalProperties": false }, - "UpdateDomainConfigParams": { + "CommentLogEntry": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { - "type": "string" - }, - "emailFromEmail": { - "type": "string" - }, - "logoSrc": { - "type": "string" - }, - "logoSrc100px": { - "type": "string" + "d": { + "type": "string", + "format": "date-time" }, - "footerUnsubscribeURL": { - "type": "string" + "t": { + "$ref": "#/components/schemas/CommentLogType" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "da": { + "$ref": "#/components/schemas/CommentLogData" } }, "required": [ - "domain" + "d", + "t" ], "type": "object", "additionalProperties": false }, - "PatchDomainConfigParams": { + "FComment": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { + "_id": { "type": "string" }, - "emailFromEmail": { + "tenantId": { "type": "string" }, - "logoSrc": { + "urlId": { "type": "string" }, - "logoSrc100px": { + "urlIdRaw": { "type": "string" }, - "footerUnsubscribeURL": { + "url": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" - } - }, - "type": "object", - "additionalProperties": false - }, - "APICommentBase": { - "properties": { - "_id": { - "type": "string" + "pageTitle": { + "type": "string", + "nullable": true }, - "aiDeterminedSpam": { - "type": "boolean" + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, "anonUserId": { "type": "string", "nullable": true }, - "approved": { - "type": "boolean" - }, - "avatarSrc": { + "commenterEmail": { "type": "string", "nullable": true }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", "nullable": true }, "comment": { @@ -8541,88 +8830,134 @@ "commentHTML": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterLink": { + "parentId": { "type": "string", "nullable": true }, - "commenterName": { - "type": "string" - }, "date": { "type": "string", "format": "date-time", "nullable": true }, - "displayLabel": { + "localDateString": { "type": "string", "nullable": true }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], + "localDateHours": { + "type": "integer", + "format": "int32", "nullable": true }, - "externalId": { - "type": "string" - }, - "externalParentId": { - "type": "string", + "votes": { + "type": "integer", + "format": "int32", "nullable": true }, - "expireAt": { - "type": "string", - "format": "date-time", + "votesUp": { + "type": "integer", + "format": "int32", "nullable": true }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "flagCount": { + "votesDown": { "type": "integer", "format": "int32", "nullable": true }, - "fromProductId": { - "type": "integer", - "format": "int32" + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true }, - "hasCode": { + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verificationId": { + "type": "string", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "reviewed": { + "type": "boolean" + }, + "imported": { + "type": "boolean" + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "permNotSpam": { + "type": "boolean" + }, + "aiDeterminedSpam": { "type": "boolean" }, "hasImages": { "type": "boolean" }, + "pageNumber": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "pageNumberOF": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "pageNumberNF": { + "type": "integer", + "format": "int32", + "nullable": true + }, "hasLinks": { "type": "boolean" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" - }, - "isByAdmin": { + "hasCode": { "type": "boolean" }, - "isByModerator": { + "approved": { "type": "boolean" }, + "locale": { + "type": "string", + "nullable": true + }, "isDeleted": { "type": "boolean" }, "isDeletedUser": { "type": "boolean" }, + "isBannedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, "isPinned": { "type": "boolean", "nullable": true @@ -8631,30 +8966,29 @@ "type": "boolean", "nullable": true }, - "isSpam": { - "type": "boolean" - }, - "localDateHours": { + "flagCount": { "type": "integer", "format": "int32", "nullable": true }, - "localDateString": { - "type": "string", + "rating": { + "type": "number", + "format": "double", "nullable": true }, - "locale": { + "displayLabel": { "type": "string", "nullable": true }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" + "fromProductId": { + "type": "integer", + "format": "int32" }, "meta": { "properties": { + "wpId": { + "type": "string" + }, "wpUserId": { "type": "string" }, @@ -8666,956 +9000,6140 @@ "type": "object", "nullable": true }, - "moderationGroupIds": { + "ipHash": { + "type": "string" + }, + "mentions": { "items": { - "type": "string" + "$ref": "#/components/schemas/CommentUserMentionInfo" }, - "type": "array", - "nullable": true - }, - "notificationSentForParent": { - "type": "boolean" + "type": "array" }, - "notificationSentForParentTenant": { - "type": "boolean" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "pageTitle": { - "type": "string", + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", "nullable": true }, - "parentId": { - "type": "string", + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], "nullable": true }, - "rating": { - "type": "number", - "format": "double", + "veteranBadgeProcessed": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", "nullable": true }, - "reviewed": { + "didProcessBadges": { "type": "boolean" }, - "tenantId": { - "type": "string" + "fromOfflineRestore": { + "type": "boolean" }, - "url": { + "autoplayJobId": { "type": "string" }, - "urlId": { - "type": "string" + "autoplayDelayMS": { + "type": "integer", + "format": "int64" }, - "urlIdRaw": { - "type": "string" + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], + "logs": { + "items": { + "$ref": "#/components/schemas/CommentLogEntry" + }, + "type": "array", "nullable": true }, - "verified": { - "type": "boolean" - }, - "verifiedDate": { - "type": "string", - "format": "date-time", + "groupIds": { + "items": { + "type": "string" + }, + "type": "array", "nullable": true }, - "votes": { + "viewCount": { "type": "integer", - "format": "int32", + "format": "int64", "nullable": true }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "requiresVerification": { + "type": "boolean" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "editKey": { + "type": "string" + }, + "tosAcceptedAt": { + "type": "string", + "format": "date-time" + }, + "botId": { + "type": "string" } }, "required": [ "_id", - "approved", + "tenantId", + "urlId", + "url", + "commenterName", "comment", "commentHTML", - "commenterName", "date", - "locale", - "tenantId", - "url", - "urlId", - "verified" + "verified", + "approved", + "locale" ], "type": "object", "additionalProperties": false }, - "APIComment": { - "allOf": [ - { - "$ref": "#/components/schemas/APICommentBase" + "FindCommentsByRangeItem": { + "properties": { + "comment": { + "allOf": [ + { + "$ref": "#/components/schemas/FComment" + } + ], + "nullable": true }, - { - "properties": { - "date": { - "type": "number", - "format": "double", - "nullable": true - } - }, - "required": [ - "date" - ], - "type": "object" + "result": { + "$ref": "#/components/schemas/QuestionResult" } - ] + }, + "required": [ + "comment", + "result" + ], + "type": "object", + "additionalProperties": false }, - "APIGetCommentResponse": { + "FindCommentsByRangeResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "results": { + "items": { + "$ref": "#/components/schemas/FindCommentsByRangeItem" + }, + "type": "array" }, - "comment": { - "$ref": "#/components/schemas/APIComment" + "createdAt": { + "type": "string", + "format": "date-time" } }, "required": [ - "status", - "comment" + "results", + "createdAt" ], "type": "object", "additionalProperties": false }, - "APIGetCommentsResponse": { + "CombineQuestionResultsWithCommentsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "comments": { - "items": { - "$ref": "#/components/schemas/APIComment" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/FindCommentsByRangeResponse" } }, "required": [ "status", - "comments" + "data" ], "type": "object", "additionalProperties": false }, - "UpdatableCommentParams": { + "QuestionConfig": { "properties": { - "urlId": { + "_id": { "type": "string" }, - "urlIdRaw": { + "tenantId": { "type": "string" }, - "url": { + "name": { "type": "string" }, - "pageTitle": { - "type": "string", - "nullable": true - }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true - }, - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterName": { + "question": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true - }, - "comment": { + "summaryLabel": { "type": "string" }, - "commentHTML": { + "helpText": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true - }, - "date": { - "type": "number", - "format": "double", - "nullable": true - }, - "localDateString": { - "type": "string", - "nullable": true - }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "verified": { - "type": "boolean" - }, - "verifiedDate": { + "createdAt": { "type": "string", - "format": "date-time", - "nullable": true - }, - "notificationSentForParent": { - "type": "boolean" - }, - "notificationSentForParentTenant": { - "type": "boolean" - }, - "reviewed": { - "type": "boolean" + "format": "date-time" }, - "externalId": { + "createdBy": { "type": "string" }, - "externalParentId": { - "type": "string", - "nullable": true + "usedCount": { + "type": "number", + "format": "double" }, - "avatarSrc": { + "lastUsed": { "type": "string", - "nullable": true - }, - "isSpam": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "isDeleted": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" + "format": "date-time" }, - "isByAdmin": { - "type": "boolean" + "type": { + "type": "string" }, - "isByModerator": { - "type": "boolean" + "numStars": { + "type": "number", + "format": "double" }, - "isPinned": { - "type": "boolean", - "nullable": true + "min": { + "type": "number", + "format": "double" }, - "isLocked": { - "type": "boolean", - "nullable": true + "max": { + "type": "number", + "format": "double" }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true + "defaultValue": { + "type": "number", + "format": "double" }, - "displayLabel": { - "type": "string", - "nullable": true + "labelNegative": { + "type": "string" }, - "meta": { - "properties": { - "wpUserId": { - "type": "string" - }, - "wpPostId": { - "type": "string" - } - }, - "additionalProperties": {}, - "type": "object", - "nullable": true + "labelPositive": { + "type": "string" }, - "moderationGroupIds": { + "customOptions": { "items": { - "type": "string" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, - "type": "array", - "nullable": true + "type": "array" }, - "feedbackIds": { + "subQuestionIds": { "items": { "type": "string" }, "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" } }, - "type": "object", - "additionalProperties": false - }, - "DeleteCommentAction": { - "type": "string", - "enum": [ - "already-deleted", - "hard-removed", - "anonymized" - ] - }, - "DeleteCommentResult": { - "properties": { - "action": { - "$ref": "#/components/schemas/DeleteCommentAction" - }, - "status": { + "required": [ + "_id", + "tenantId", + "name", + "question", + "helpText", + "createdAt", + "createdBy", + "usedCount", + "lastUsed", + "type", + "numStars", + "min", + "max", + "defaultValue", + "labelNegative", + "labelPositive", + "customOptions", + "subQuestionIds", + "alwaysShowSubQuestions", + "reportingOrder" + ], + "type": "object", + "additionalProperties": false + }, + "GetQuestionConfigResponse": { + "properties": { + "status": { "$ref": "#/components/schemas/APIStatus" + }, + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" } }, "required": [ - "action", - "status" + "status", + "questionConfig" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "SaveCommentResponse": { + "GetQuestionConfigsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "comment": { - "$ref": "#/components/schemas/FComment" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/UserSessionInfo" - } - ], - "nullable": true - }, - "moduleData": { - "$ref": "#/components/schemas/Record_string.any_" + "questionConfigs": { + "items": { + "$ref": "#/components/schemas/QuestionConfig" + }, + "type": "array" } }, "required": [ "status", - "comment", - "user" + "questionConfigs" ], "type": "object", "additionalProperties": false }, - "CreateCommentParams": { + "CreateQuestionConfigResponse": { "properties": { - "date": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "localDateString": { + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" + } + }, + "required": [ + "status", + "questionConfig" + ], + "type": "object", + "additionalProperties": false + }, + "CreateQuestionConfigBody": { + "properties": { + "name": { "type": "string" }, - "localDateHours": { - "type": "integer", - "format": "int32" + "question": { + "type": "string" }, - "commenterName": { + "helpText": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true + "type": { + "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true + "numStars": { + "type": "number", + "format": "double" }, - "comment": { - "type": "string" + "min": { + "type": "number", + "format": "double" }, - "productId": { - "type": "integer", - "format": "int32" + "max": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "defaultValue": { + "type": "number", + "format": "double" }, - "avatarSrc": { - "type": "string", - "nullable": true + "labelNegative": { + "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "labelPositive": { + "type": "string" }, - "mentions": { + "customOptions": { "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" }, - "hashTags": { + "subQuestionIds": { "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" + "type": "string" }, "type": "array" }, - "pageTitle": { + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "required": [ + "name", + "question", + "type", + "reportingOrder" + ], + "type": "object", + "additionalProperties": {} + }, + "UpdateQuestionConfigBody": { + "properties": { + "name": { "type": "string" }, - "isFromMyAccountPage": { - "type": "boolean" + "question": { + "type": "string" }, - "url": { + "helpText": { "type": "string" }, - "urlId": { + "type": { "type": "string" }, - "meta": { - "additionalProperties": false, - "type": "object" + "numStars": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array" + "min": { + "type": "number", + "format": "double" }, - "rating": { + "max": { "type": "number", "format": "double" }, - "fromOfflineRestore": { - "type": "boolean" + "defaultValue": { + "type": "number", + "format": "double" }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" + "labelNegative": { + "type": "string" }, - "feedbackIds": { + "labelPositive": { + "type": "string" + }, + "customOptions": { "items": { - "type": "string" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" - }, - "tos": { - "type": "boolean" + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "approved": { + "alwaysShowSubQuestions": { "type": "boolean" }, - "domain": { + "reportingOrder": { + "type": "number", + "format": "double" + } + }, + "type": "object", + "additionalProperties": {} + }, + "PendingCommentToSyncOutbound": { + "properties": { + "_id": { "type": "string" }, - "ip": { + "commentId": { "type": "string" }, - "isPinned": { - "type": "boolean" + "comment": { + "$ref": "#/components/schemas/FComment" }, - "locale": { + "externalId": { "type": "string", - "description": "Example: en_us" + "nullable": true }, - "reviewed": { - "type": "boolean" + "createdAt": { + "type": "string", + "format": "date-time" }, - "verified": { - "type": "boolean" + "tenantId": { + "type": "string" }, - "votes": { - "type": "integer", - "format": "int32" + "attemptCount": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32" + "nextAttemptAt": { + "type": "string", + "format": "date-time" }, - "votesUp": { - "type": "integer", - "format": "int32" + "eventType": { + "type": "number", + "format": "double" + }, + "type": { + "type": "number", + "format": "double" + }, + "domain": { + "type": "string" + }, + "lastError": { + "additionalProperties": false, + "type": "object" + }, + "webhookId": { + "type": "string" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId", - "locale" + "_id", + "commentId", + "externalId", + "createdAt", + "tenantId", + "attemptCount", + "nextAttemptAt", + "eventType", + "type", + "domain", + "lastError" ], "type": "object", "additionalProperties": false }, - "FlagCommentResponse": { + "GetPendingWebhookEventsResponse": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" - }, "status": { "$ref": "#/components/schemas/APIStatus" }, - "code": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "wasUnapproved": { - "type": "boolean" + "pendingWebhookEvents": { + "items": { + "$ref": "#/components/schemas/PendingCommentToSyncOutbound" + }, + "type": "array" } }, "required": [ - "status" + "status", + "pendingWebhookEvents" ], "type": "object", "additionalProperties": false }, - "BlockFromCommentParams": { + "GetPendingWebhookEventCountResponse": { "properties": { - "commentIdsToCheck": { - "items": { - "type": "string" - }, - "type": "array" + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "count": { + "type": "number", + "format": "double" } }, + "required": [ + "status", + "count" + ], "type": "object", "additionalProperties": false }, - "UnBlockFromCommentParams": { + "GetNotificationsResponse": { "properties": { - "commentIdsToCheck": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "notifications": { "items": { - "type": "string" + "$ref": "#/components/schemas/UserNotification" }, "type": "array" } }, + "required": [ + "status", + "notifications" + ], "type": "object", "additionalProperties": false }, - "APIAuditLog": { + "GetNotificationCountResponse": { "properties": { - "_id": { - "type": "string" - }, - "userId": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "username": { - "type": "string" + "count": { + "type": "number", + "format": "double" + } + }, + "required": [ + "status", + "count" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateNotificationBody": { + "properties": { + "viewed": { + "type": "boolean" }, - "resourceName": { + "optedOut": { + "type": "boolean" + } + }, + "type": "object", + "additionalProperties": {} + }, + "UserNotificationCount": { + "properties": { + "_id": { "type": "string" }, - "crudType": { - "type": "string", - "enum": [ - "c", - "r", - "u", - "d", - "login" - ] - }, - "from": { - "type": "string", - "enum": [ - "ui", - "api", - "cron" - ] - }, - "url": { - "type": "string", - "nullable": true - }, - "ip": { - "type": "string", - "nullable": true + "count": { + "type": "number", + "format": "double" }, - "when": { + "createdAt": { "type": "string", "format": "date-time" }, - "description": { - "type": "string" - }, - "serverStartDate": { + "expireAt": { "type": "string", "format": "date-time" - }, - "objectDetails": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.any_" - } - ], - "nullable": true } }, "required": [ "_id", - "resourceName", - "crudType" + "count", + "createdAt", + "expireAt" ], "type": "object", "additionalProperties": false }, - "GetAuditLogsResponse": { + "GetCachedNotificationCountResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "auditLogs": { - "items": { - "$ref": "#/components/schemas/APIAuditLog" - }, - "type": "array" + "data": { + "$ref": "#/components/schemas/UserNotificationCount" } }, "required": [ "status", - "auditLogs" + "data" ], "type": "object", "additionalProperties": false }, - "SORT_DIR": { - "type": "string", - "enum": [ - "ASC", - "DESC" - ] - }, - "DistinctAccumulator": { - "$ref": "#/components/schemas/Record_string.number_" - }, - "GroupValues": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "AggregationValue": { + "Moderator": { "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" + "_id": { + "type": "string" }, - "stringValue": { + "tenantId": { "type": "string" }, - "numericValue": { + "name": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + }, + "acceptedInvite": { + "type": "boolean" + }, + "email": { + "type": "string", + "nullable": true + }, + "markReviewedCount": { "type": "number", "format": "double" }, - "distinctCount": { - "type": "integer", - "format": "int64" + "deletedCount": { + "type": "number", + "format": "double" }, - "distinctCounts": { - "$ref": "#/components/schemas/DistinctAccumulator" - } - }, - "type": "object" - }, - "Record_string.AggregationValue_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/AggregationValue" + "markedSpamCount": { + "type": "number", + "format": "double" + }, + "markedNotSpamCount": { + "type": "number", + "format": "double" + }, + "approvedCount": { + "type": "number", + "format": "double" + }, + "unApprovedCount": { + "type": "number", + "format": "double" + }, + "editedCount": { + "type": "number", + "format": "double" + }, + "bannedCount": { + "type": "number", + "format": "double" + }, + "unFlaggedCount": { + "type": "number", + "format": "double" + }, + "verificationId": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "isEmailSuppressed": { + "type": "boolean" + } }, + "required": [ + "_id", + "tenantId", + "name", + "userId", + "acceptedInvite", + "email", + "markReviewedCount", + "deletedCount", + "markedSpamCount", + "markedNotSpamCount", + "approvedCount", + "unApprovedCount", + "editedCount", + "bannedCount", + "unFlaggedCount", + "verificationId", + "createdAt", + "moderationGroupIds" + ], "type": "object", - "description": "Construct a type with a set of properties K of type T" + "additionalProperties": false }, - "AggregationItem": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.AggregationValue_" + "GetModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - { - "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" - } - }, - "type": "object" + "moderator": { + "$ref": "#/components/schemas/Moderator" } - ] + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false }, - "AggregationResponse": { - "description": "The API response returns the aggregated data along with simple stats", + "GetModeratorsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { + "moderators": { "items": { - "$ref": "#/components/schemas/AggregationItem" + "$ref": "#/components/schemas/Moderator" }, "type": "array" - }, - "stats": { - "properties": { - "timeMS": { - "type": "integer", - "format": "int64" - }, - "scanned": { - "type": "integer", - "format": "int64" - } - }, - "required": [ - "timeMS", - "scanned" - ], - "type": "object" } }, "required": [ "status", - "data" + "moderators" ], "type": "object", "additionalProperties": false }, - "QueryPredicate": { + "CreateModeratorResponse": { "properties": { - "key": { - "type": "string" - }, - "value": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "number", - "format": "double" - }, - { - "type": "boolean" - } - ] + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "operator": { - "type": "string", - "enum": [ - "eq", - "not_eq", - "greater_than", - "less_than", - "contains" - ] + "moderator": { + "$ref": "#/components/schemas/Moderator" } }, "required": [ - "key", - "value", - "operator" + "status", + "moderator" ], "type": "object", "additionalProperties": false }, - "AggregationOpType": { - "type": "string", - "enum": [ - "sum", - "countDistinct", - "distinct", - "avg", - "min", - "max", - "count" - ], - "description": "The supported aggregation operation types" - }, - "AggregationOperation": { - "description": "An operation that will be applied on a field", + "CreateModeratorBody": { "properties": { - "field": { - "type": "string", - "description": "The field to operate on" + "name": { + "type": "string" }, - "op": { - "$ref": "#/components/schemas/AggregationOpType", - "description": "The type of operation" + "email": { + "type": "string" }, - "alias": { - "type": "string", - "description": "Optional alias for the output; if not provided, a default alias is computed" + "userId": { + "type": "string" }, - "expandArray": { - "type": "boolean" + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ - "field", - "op" + "name", + "email" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "AggregationRequest": { - "description": "The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort", + "UpdateModeratorBody": { "properties": { - "query": { - "items": { - "$ref": "#/components/schemas/QueryPredicate" - }, - "type": "array" + "name": { + "type": "string" }, - "resourceName": { + "email": { "type": "string" }, - "groupBy": { - "items": { - "type": "string" - }, - "type": "array" + "userId": { + "type": "string" }, - "operations": { + "moderationGroupIds": { "items": { - "$ref": "#/components/schemas/AggregationOperation" + "type": "string" }, "type": "array" - }, - "sort": { - "properties": { - "dir": { - "type": "string", - "enum": [ - "asc", - "desc" - ] - }, - "field": { - "type": "string" - } - }, - "required": [ - "dir", - "field" - ], - "type": "object" } }, - "required": [ - "resourceName", - "operations" - ], "type": "object", - "additionalProperties": false - } - }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "x-api-key", - "in": "header" + "additionalProperties": {} + }, + "TenantHashTag": { + "properties": { + "_id": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "_id", + "createdAt", + "tenantId", + "tag" + ], + "type": "object", + "additionalProperties": false + }, + "GetHashTagsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/TenantHashTag" + }, + "type": "array" + } + }, + "required": [ + "status", + "hashTags" + ], + "type": "object", + "additionalProperties": false + }, + "CreateHashTagResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTag": { + "$ref": "#/components/schemas/TenantHashTag" + } + }, + "required": [ + "status", + "hashTag" + ], + "type": "object", + "additionalProperties": false + }, + "CreateHashTagBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "tag": { + "type": "string" + }, + "url": { + "type": "string" + } + }, + "required": [ + "tag" + ], + "type": "object", + "additionalProperties": false + }, + "BulkCreateHashTagsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "results": { + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/CreateHashTagResponse" + }, + { + "$ref": "#/components/schemas/APIError" + } + ] + }, + "type": "array" + } + }, + "required": [ + "status", + "results" + ], + "type": "object", + "additionalProperties": false + }, + "BulkCreateHashTagsBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "tags": { + "items": { + "properties": { + "url": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "required": [ + "tag" + ], + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "tags" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateHashTagResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "hashTag": { + "$ref": "#/components/schemas/TenantHashTag" + } + }, + "required": [ + "status", + "hashTag" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateHashTagBody": { + "properties": { + "tenantId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "tag": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "GetFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "feedPosts": { + "items": { + "$ref": "#/components/schemas/FeedPost" + }, + "type": "array" + } + }, + "required": [ + "status", + "feedPosts" + ], + "type": "object", + "additionalProperties": false + }, + "CreateFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" + } + }, + "required": [ + "status", + "feedPost" + ], + "type": "object", + "additionalProperties": false + }, + "Record_string.unknown_": { + "properties": {}, + "additionalProperties": {}, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "Record_string.Record_string.string__": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "EmailTemplateDefinition": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "defaultTestData": { + "$ref": "#/components/schemas/Record_string.unknown_" + }, + "defaultTranslationsByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "defaultEJS": { + "type": "string" + } + }, + "required": [ + "emailTemplateId", + "defaultTestData", + "defaultTranslationsByLocale", + "defaultEJS" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateDefinitionsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "definitions": { + "items": { + "$ref": "#/components/schemas/EmailTemplateDefinition" + }, + "type": "array" + } + }, + "required": [ + "status", + "definitions" + ], + "type": "object", + "additionalProperties": false + }, + "EmailTemplateRenderErrorResponse": { + "properties": { + "id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "customTemplateId": { + "type": "string" + }, + "error": { + "type": "string" + }, + "count": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "lastOccurredAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "tenantId", + "customTemplateId", + "error", + "count", + "createdAt", + "lastOccurredAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateRenderErrorsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "renderErrors": { + "items": { + "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" + }, + "type": "array" + } + }, + "required": [ + "status", + "renderErrors" + ], + "type": "object", + "additionalProperties": false + }, + "CustomEmailTemplate": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "updatedByUserId": { + "type": "string", + "nullable": true + }, + "domain": { + "type": "string", + "nullable": true + }, + "ejs": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": {} + }, + "required": [ + "_id", + "tenantId", + "emailTemplateId", + "displayName", + "createdAt", + "updatedAt", + "updatedByUserId", + "ejs", + "translationOverridesByLocale", + "testData" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplate": { + "$ref": "#/components/schemas/CustomEmailTemplate" + } + }, + "required": [ + "status", + "emailTemplate" + ], + "type": "object", + "additionalProperties": false + }, + "GetEmailTemplatesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplates": { + "items": { + "$ref": "#/components/schemas/CustomEmailTemplate" + }, + "type": "array" + } + }, + "required": [ + "status", + "emailTemplates" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "emailTemplate": { + "$ref": "#/components/schemas/CustomEmailTemplate" + } + }, + "required": [ + "status", + "emailTemplate" + ], + "type": "object", + "additionalProperties": false + }, + "CreateEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + } + }, + "required": [ + "emailTemplateId", + "displayName", + "ejs" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "domain": { + "type": "string" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + } + }, + "type": "object", + "additionalProperties": false + }, + "RenderEmailTemplateResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "html": { + "type": "string" + } + }, + "required": [ + "status", + "html" + ], + "type": "object", + "additionalProperties": false + }, + "RenderEmailTemplateBody": { + "properties": { + "emailTemplateId": { + "type": "string" + }, + "ejs": { + "type": "string" + }, + "testData": { + "$ref": "#/components/schemas/Record_string.unknown_" + }, + "translationOverridesByLocale": { + "$ref": "#/components/schemas/Record_string.Record_string.string__" + } + }, + "required": [ + "emailTemplateId", + "ejs" + ], + "type": "object", + "additionalProperties": false + }, + "AddDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "domain" + ], + "type": "object", + "additionalProperties": false + }, + "PatchDomainConfigParams": { + "properties": { + "domain": { + "type": "string" + }, + "emailFromName": { + "type": "string" + }, + "emailFromEmail": { + "type": "string" + }, + "logoSrc": { + "type": "string" + }, + "logoSrc100px": { + "type": "string" + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "type": "object", + "additionalProperties": false + }, + "APICommentBase": { + "properties": { + "id": { + "type": "string" + }, + "aiDeterminedSpam": { + "type": "boolean" + }, + "anonUserId": { + "type": "string", + "nullable": true + }, + "approved": { + "type": "boolean" + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "date": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, + "hasCode": { + "type": "boolean" + }, + "hasImages": { + "type": "boolean" + }, + "hasLinks": { + "type": "boolean" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "locale": { + "type": "string", + "nullable": true + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, + "reviewed": { + "type": "boolean" + }, + "tenantId": { + "type": "string" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + } + }, + "required": [ + "id", + "approved", + "comment", + "commentHTML", + "commenterName", + "date", + "locale", + "tenantId", + "url", + "urlId", + "verified" + ], + "type": "object", + "additionalProperties": false + }, + "APIComment": { + "allOf": [ + { + "$ref": "#/components/schemas/APICommentBase" + }, + { + "properties": { + "date": { + "type": "number", + "format": "double", + "nullable": true + } + }, + "required": [ + "date" + ], + "type": "object" + } + ] + }, + "APIGetCommentResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comment": { + "$ref": "#/components/schemas/APIComment" + } + }, + "required": [ + "status", + "comment" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetCommentsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comments": { + "items": { + "$ref": "#/components/schemas/APIComment" + }, + "type": "array" + } + }, + "required": [ + "status", + "comments" + ], + "type": "object", + "additionalProperties": false + }, + "UpdatableCommentParams": { + "properties": { + "urlId": { + "type": "string" + }, + "urlIdRaw": { + "type": "string" + }, + "url": { + "type": "string" + }, + "pageTitle": { + "type": "string", + "nullable": true + }, + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterName": { + "type": "string" + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "commentHTML": { + "type": "string" + }, + "parentId": { + "type": "string", + "nullable": true + }, + "date": { + "type": "number", + "format": "double", + "nullable": true + }, + "localDateString": { + "type": "string", + "nullable": true + }, + "localDateHours": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votes": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "expireAt": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "verified": { + "type": "boolean" + }, + "verifiedDate": { + "type": "string", + "format": "date-time", + "nullable": true + }, + "notificationSentForParent": { + "type": "boolean" + }, + "notificationSentForParentTenant": { + "type": "boolean" + }, + "reviewed": { + "type": "boolean" + }, + "externalId": { + "type": "string" + }, + "externalParentId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "isSpam": { + "type": "boolean" + }, + "approved": { + "type": "boolean" + }, + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isByAdmin": { + "type": "boolean" + }, + "isByModerator": { + "type": "boolean" + }, + "isPinned": { + "type": "boolean", + "nullable": true + }, + "isLocked": { + "type": "boolean", + "nullable": true + }, + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "displayLabel": { + "type": "string", + "nullable": true + }, + "meta": { + "properties": { + "wpUserId": { + "type": "string" + }, + "wpPostId": { + "type": "string" + } + }, + "additionalProperties": {}, + "type": "object", + "nullable": true + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array", + "nullable": true + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "APISaveCommentResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "comment": { + "$ref": "#/components/schemas/APIComment" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" + } + }, + "required": [ + "status", + "comment", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "CreateCommentParams": { + "properties": { + "date": { + "type": "integer", + "format": "int64" + }, + "localDateString": { + "type": "string" + }, + "localDateHours": { + "type": "integer", + "format": "int32" + }, + "commenterName": { + "type": "string" + }, + "commenterEmail": { + "type": "string", + "nullable": true + }, + "commenterLink": { + "type": "string", + "nullable": true + }, + "comment": { + "type": "string" + }, + "productId": { + "type": "integer", + "format": "int32" + }, + "userId": { + "type": "string", + "nullable": true + }, + "avatarSrc": { + "type": "string", + "nullable": true + }, + "parentId": { + "type": "string", + "nullable": true + }, + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" + }, + "pageTitle": { + "type": "string" + }, + "isFromMyAccountPage": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "urlId": { + "type": "string" + }, + "meta": { + "additionalProperties": false, + "type": "object" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "rating": { + "type": "number", + "format": "double" + }, + "fromOfflineRestore": { + "type": "boolean" + }, + "autoplayDelayMS": { + "type": "integer", + "format": "int64" + }, + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" + }, + "tos": { + "type": "boolean" + }, + "botId": { + "type": "string" + }, + "approved": { + "type": "boolean" + }, + "domain": { + "type": "string" + }, + "ip": { + "type": "string" + }, + "isPinned": { + "type": "boolean" + }, + "locale": { + "type": "string", + "description": "Example: en_us" + }, + "reviewed": { + "type": "boolean" + }, + "verified": { + "type": "boolean" + }, + "votes": { + "type": "integer", + "format": "int32" + }, + "votesDown": { + "type": "integer", + "format": "int32" + }, + "votesUp": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "commenterName", + "comment", + "url", + "urlId", + "locale" + ], + "type": "object", + "additionalProperties": false + }, + "FlagCommentResponse": { + "properties": { + "statusCode": { + "type": "integer", + "format": "int32" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "code": { + "type": "string" + }, + "reason": { + "type": "string" + }, + "wasUnapproved": { + "type": "boolean" + } + }, + "required": [ + "status" + ], + "type": "object", + "additionalProperties": false + }, + "BlockFromCommentParams": { + "properties": { + "commentIdsToCheck": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "UnBlockFromCommentParams": { + "properties": { + "commentIdsToCheck": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "additionalProperties": false + }, + "APIAuditLog": { + "properties": { + "_id": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "username": { + "type": "string" + }, + "resourceName": { + "type": "string" + }, + "crudType": { + "type": "string", + "enum": [ + "c", + "r", + "u", + "d", + "login" + ] + }, + "from": { + "type": "string", + "enum": [ + "ui", + "api", + "cron" + ] + }, + "url": { + "type": "string", + "nullable": true + }, + "ip": { + "type": "string", + "nullable": true + }, + "when": { + "type": "string", + "format": "date-time" + }, + "description": { + "type": "string" + }, + "serverStartDate": { + "type": "string", + "format": "date-time" + }, + "objectDetails": { + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.any_" + } + ], + "nullable": true + } + }, + "required": [ + "_id", + "resourceName", + "crudType" + ], + "type": "object", + "additionalProperties": false + }, + "GetAuditLogsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "auditLogs": { + "items": { + "$ref": "#/components/schemas/APIAuditLog" + }, + "type": "array" + } + }, + "required": [ + "status", + "auditLogs" + ], + "type": "object", + "additionalProperties": false + }, + "SORT_DIR": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "DistinctAccumulator": { + "$ref": "#/components/schemas/Record_string.number_" + }, + "GroupValues": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "AggregationValue": { + "properties": { + "groups": { + "$ref": "#/components/schemas/GroupValues" + }, + "stringValue": { + "type": "string" + }, + "numericValue": { + "type": "number", + "format": "double" + }, + "distinctCount": { + "type": "integer", + "format": "int64" + }, + "distinctCounts": { + "$ref": "#/components/schemas/DistinctAccumulator" + } + }, + "type": "object" + }, + "Record_string.AggregationValue_": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/AggregationValue" + }, + "type": "object", + "description": "Construct a type with a set of properties K of type T" + }, + "AggregationItem": { + "allOf": [ + { + "$ref": "#/components/schemas/Record_string.AggregationValue_" + }, + { + "properties": { + "groups": { + "$ref": "#/components/schemas/GroupValues" + } + }, + "type": "object" + } + ] + }, + "AggregationResponse": { + "description": "The API response returns the aggregated data along with simple stats", + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "data": { + "items": { + "$ref": "#/components/schemas/AggregationItem" + }, + "type": "array" + }, + "stats": { + "properties": { + "timeMS": { + "type": "integer", + "format": "int64" + }, + "scanned": { + "type": "integer", + "format": "int64" + } + }, + "required": [ + "timeMS", + "scanned" + ], + "type": "object" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationAPIError": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "reason": { + "type": "string" + }, + "code": { + "type": "string" + }, + "validResourceNames": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "status", + "reason", + "code" + ], + "type": "object", + "additionalProperties": false + }, + "QueryPredicate": { + "properties": { + "key": { + "type": "string" + }, + "value": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + }, + { + "type": "boolean" + } + ] + }, + "operator": { + "type": "string", + "enum": [ + "eq", + "not_eq", + "greater_than", + "less_than", + "contains" + ] + } + }, + "required": [ + "key", + "value", + "operator" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationOpType": { + "type": "string", + "enum": [ + "sum", + "countDistinct", + "distinct", + "avg", + "min", + "max", + "count" + ], + "description": "The supported aggregation operation types" + }, + "AggregationOperation": { + "description": "An operation that will be applied on a field", + "properties": { + "field": { + "type": "string", + "description": "The field to operate on" + }, + "op": { + "$ref": "#/components/schemas/AggregationOpType", + "description": "The type of operation" + }, + "alias": { + "type": "string", + "description": "Optional alias for the output; if not provided, a default alias is computed" + }, + "expandArray": { + "type": "boolean" + } + }, + "required": [ + "field", + "op" + ], + "type": "object", + "additionalProperties": false + }, + "AggregationRequest": { + "description": "The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort", + "properties": { + "query": { + "items": { + "$ref": "#/components/schemas/QueryPredicate" + }, + "type": "array" + }, + "resourceName": { + "type": "string" + }, + "groupBy": { + "items": { + "type": "string" + }, + "type": "array" + }, + "operations": { + "items": { + "$ref": "#/components/schemas/AggregationOperation" + }, + "type": "array" + }, + "sort": { + "properties": { + "dir": { + "type": "string", + "enum": [ + "asc", + "desc" + ] + }, + "field": { + "type": "string" + } + }, + "required": [ + "dir", + "field" + ], + "type": "object" + } + }, + "required": [ + "resourceName", + "operations" + ], + "type": "object", + "additionalProperties": false + } + }, + "securitySchemes": { + "api_key": { + "type": "apiKey", + "name": "x-api-key", + "in": "header" + } + } + }, + "info": { + "title": "fastcomments", + "version": "0.0.0", + "contact": {} + }, + "paths": { + "/user-search/{tenantId}": { + "get": { + "operationId": "SearchUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SearchUsersResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "usernameStartsWith", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "mentionGroupIds", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchSection", + "required": false, + "schema": { + "type": "string", + "enum": [ + "fast", + "site" + ] + } + } + ] + } + }, + "/user-presence-status": { + "get": { + "operationId": "GetUserPresenceStatuses", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlIdWS", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "userIds", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications": { + "get": { + "operationId": "GetUserNotifications", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetMyNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Used to determine whether the current page is subscribed.", + "in": "query", + "name": "urlId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pageSize", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeContext", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "afterCreatedAt", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "unreadOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "dmOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "noDm", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeTranslations", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeTenantNotifications", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/reset": { + "post": { + "operationId": "ResetUserNotifications", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterCreatedAt", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "unreadOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "dmOnly", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "noDm", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/get-count": { + "get": { + "operationId": "GetUserNotificationCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/reset-count": { + "post": { + "operationId": "ResetUserNotificationCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ResetUserNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/{notificationId}/mark/{newStatus}": { + "post": { + "operationId": "UpdateUserNotificationStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "notificationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "newStatus", + "required": true, + "schema": { + "type": "string", + "enum": [ + "read", + "unread" + ] + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}": { + "post": { + "operationId": "UpdateUserNotificationCommentSubscriptionStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationCommentSubscriptionStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Enable or disable notifications for a specific comment.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "notificationId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "optedInOrOut", + "required": true, + "schema": { + "type": "string", + "enum": [ + "in", + "out" + ] + } + }, + { + "in": "query", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}": { + "post": { + "operationId": "UpdateUserNotificationPageSubscriptionStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "UpdateUserNotificationPageSubscriptionStatusResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/UserNotificationWriteResponse" + }, + { + "$ref": "#/components/schemas/IgnoredResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "url", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "pageTitle", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "subscribedOrUnsubscribed", + "required": true, + "schema": { + "type": "string", + "enum": [ + "subscribe", + "unsubscribe" + ] + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/upload-image/{tenantId}": { + "post": { + "operationId": "UploadImage", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadImageResponse" + } + } + } + } + }, + "description": "Upload and resize an image", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)", + "in": "query", + "name": "sizePreset", + "required": false, + "schema": { + "$ref": "#/components/schemas/SizePreset" + } + }, + { + "description": "Page id that upload is happening from, to configure", + "in": "query", + "name": "urlId", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "file": { + "type": "string", + "format": "binary" + } + }, + "required": [ + "file" + ] + } + } + } + } + } + }, + "/translations/{namespace}/{component}": { + "get": { + "operationId": "GetTranslations", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTranslationsResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "500": { + "description": "Internal", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "namespace", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "component", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "locale", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "useFullTranslationIds", + "required": false, + "schema": { + "type": "boolean" + } + } + ] + } + }, + "/pages/{tenantId}": { + "get": { + "operationId": "GetPagesPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetPublicPagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "List pages for a tenant. Used by the FChat desktop client to populate its room list.\nRequires `enableFChat` to be true on the resolved custom config for each page.\nPages that require SSO are filtered against the requesting user's group access.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`.", + "in": "query", + "name": "cursor", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "1..200, default 50", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "format": "int32", + "type": "integer" + } + }, + { + "description": "Optional case-insensitive title prefix filter.", + "in": "query", + "name": "q", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical).", + "in": "query", + "name": "sortBy", + "required": false, + "schema": { + "$ref": "#/components/schemas/PagesSortBy" + } + }, + { + "description": "If true, only return pages with at least one comment.", + "in": "query", + "name": "hasComments", + "required": false, + "schema": { + "type": "boolean" + } + } + ] + } + }, + "/pages/{tenantId}/users/online": { + "get": { + "operationId": "GetOnlineUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersOnlineResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Currently-online viewers of a page: people whose websocket session is subscribed to the page right now.\nReturns anonCount + totalCount (room-wide subscribers, including anon viewers we don't enumerate).", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page URL identifier (cleaned server-side).", + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor: pass nextAfterName from the previous response.", + "in": "query", + "name": "afterName", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.", + "in": "query", + "name": "afterUserId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/pages/{tenantId}/users/offline": { + "get": { + "operationId": "GetOfflineUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersOfflineResponse" + } + } + } + }, + "403": { + "description": "Forbidden", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Past commenters on the page who are NOT currently online. Sorted by displayName.\nUse this after exhausting /users/online to render a \"Members\" section.\nCursor pagination on commenterName: server walks the partial {tenantId, urlId, commenterName}\nindex from afterName forward via $gt, no $skip cost.", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Page URL identifier (cleaned server-side).", + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor: pass nextAfterName from the previous response.", + "in": "query", + "name": "afterName", + "required": false, + "schema": { + "type": "string" + } + }, + { + "description": "Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.", + "in": "query", + "name": "afterUserId", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/pages/{tenantId}/users/info": { + "get": { + "operationId": "GetUsersInfo", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PageUsersInfoResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "description": "Bulk user info for a tenant. Given userIds, return display info from User / SSOUser.\nUsed by the comment widget to enrich users that just appeared via a presence event.\nNo page context: privacy is enforced uniformly (private profiles are masked).", + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "description": "Comma-delimited userIds.", + "in": "query", + "name": "ids", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v1/likes/{tenantId}": { + "get": { + "operationId": "GetV1PageLikes", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV1PageLikes" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateV1PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "title", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "operationId": "DeleteV1PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteV1PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v2/{tenantId}/list": { + "get": { + "operationId": "GetV2PageReactUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV2PageReactUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/page-reacts/v2/{tenantId}": { + "get": { + "operationId": "GetV2PageReacts", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetV2PageReacts" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + } + ] + }, + "post": { + "operationId": "CreateV2PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "title", + "required": false, + "schema": { + "type": "string" + } + } + ] + }, + "delete": { + "operationId": "DeleteV2PageReact", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteV2PageReact" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "urlId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "id", + "required": true, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/count": { + "get": { + "operationId": "GetCount", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPICountCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filter", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/ids": { + "get": { + "operationId": "GetApiIds", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetCommentIdsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "afterId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/comments": { + "get": { + "operationId": "GetApiComments", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "page", + "required": false, + "schema": { + "format": "double", + "type": "number" + } + }, + { + "in": "query", + "name": "count", + "required": false, + "schema": { + "format": "double", + "type": "number" + } + }, + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sorts", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "demo", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/export": { + "post": { + "operationId": "PostApiExport", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationExportResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "byIPFromComment", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sorts", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/api/export/status": { + "get": { + "operationId": "GetApiExportStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationExportStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "batchJobId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/users": { + "get": { + "operationId": "GetSearchUsers", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationUserSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/pages": { + "get": { + "operationId": "GetSearchPages", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationPageSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/sites": { + "get": { + "operationId": "GetSearchSites", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationSiteSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/comments/summary": { + "get": { + "operationId": "GetSearchCommentsSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationCommentSearchResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "value", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "filters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "searchFilters", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/search/suggest": { + "get": { + "operationId": "GetSearchSuggest", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationSuggestResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "text-search", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "get": { + "operationId": "GetPreBanSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeByUserIdAndEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "post": { + "operationId": "PostBulkPreBanSummary", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkPreBanSummary" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "includeByUserIdAndEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeByEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BulkPreBanParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "post": { + "operationId": "PostBanUserFromComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BanUserFromCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "banEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "banEmailDomain", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "banIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "deleteAllUsersComments", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "bannedUntil", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "isShadowBan", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "updateId", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "banReason", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "get": { + "operationId": "GetBanUsersFromComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetBannedUsersFromCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/ban-user/undo": { + "post": { + "operationId": "PostBanUserUndo", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BanUserUndoParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "post": { + "operationId": "PostRemoveComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "title": "PostRemoveCommentResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/DeleteCommentResult" + }, + { + "$ref": "#/components/schemas/RemoveCommentActionResponse" + } + ] + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "post": { + "operationId": "PostRestoreDeletedComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "post": { + "operationId": "PostFlagComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "post": { + "operationId": "PostUnFlagComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "post": { + "operationId": "PostSetCommentReviewStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "reviewed", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "post": { + "operationId": "PostSetCommentSpamStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "spam", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "permNotSpam", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "post": { + "operationId": "PostSetCommentApprovalStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentApprovedResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "approved", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/logs/{commentId}": { + "get": { + "operationId": "GetLogs", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIGetLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/comment/{commentId}": { + "get": { + "operationId": "GetModerationComment", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPICommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "includeEmail", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "includeIP", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/comments-by-ids": { + "post": { + "operationId": "PostCommentsByIds", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentsByIdsParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "get": { + "operationId": "GetCommentChildren", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ModerationAPIChildCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "get": { + "operationId": "GetModerationCommentText", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "post": { + "operationId": "PostSetCommentText", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetCommentTextParams" + } + } + } + } } - } - }, - "info": { - "title": "fastcomments", - "version": "0.0.0", - "contact": {} - }, - "paths": { - "/user-search/{tenantId}": { + }, + "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "post": { + "operationId": "PostAdjustCommentVotes", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdjustVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AdjustCommentVotesParams" + } + } + } + } + } + }, + "/auth/my-account/moderate-comments/vote/{commentId}": { + "post": { + "operationId": "PostVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "direction", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "delete": { + "operationId": "DeleteModerationVote", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "voteId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { "get": { - "operationId": "SearchUsers", + "operationId": "GetCommentBanStatus", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SearchUsersSectionedResponse" - }, - { - "$ref": "#/components/schemas/SearchUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/user-ban-preference": { + "get": { + "operationId": "GetUserBanPreference", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIModerateGetUserBanPreferencesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ - { - "in": "path", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "query", - "name": "urlId", - "required": true, - "schema": { - "type": "string" - } - }, { "in": "query", - "name": "usernameStartsWith", + "name": "sso", "required": false, "schema": { "type": "string" } - }, - { - "in": "query", - "name": "mentionGroupIds", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" + } + ] + } + }, + "/auth/my-account/moderate-comments/get-manual-badges": { + "get": { + "operationId": "GetManualBadges", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetTenantManualBadgesResponse" + } } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", "name": "sso", @@ -9623,45 +15141,26 @@ "schema": { "type": "string" } - }, - { - "in": "query", - "name": "searchSection", - "required": false, - "schema": { - "type": "string", - "enum": [ - "fast", - "site" - ] - } } ] } }, - "/user-presence-status": { + "/auth/my-account/moderate-comments/get-manual-badges-for-user": { "get": { - "operationId": "GetUserPresenceStatuses", + "operationId": "GetManualBadgesForUser", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserPresenceStatusesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserManualBadgesResponse" } } } }, - "422": { - "description": "Validation Failed", + "default": { + "description": "Error", "content": { "application/json": { "schema": { @@ -9672,30 +15171,30 @@ } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", - "required": true, + "name": "badgesUserId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "urlIdWS", - "required": true, + "name": "commentId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "userIds", - "required": true, + "name": "sso", + "required": false, "schema": { "type": "string" } @@ -9703,36 +15202,39 @@ ] } }, - "/user-notifications": { - "get": { - "operationId": "GetUserNotifications", + "/auth/my-account/moderate-comments/award-badge": { + "put": { + "operationId": "PutAwardBadge", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetMyNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AwardUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "badgeId", "required": true, "schema": { "type": "string" @@ -9740,16 +15242,15 @@ }, { "in": "query", - "name": "pageSize", + "name": "userId", "required": false, "schema": { - "format": "int32", - "type": "integer" + "type": "string" } }, { "in": "query", - "name": "afterId", + "name": "commentId", "required": false, "schema": { "type": "string" @@ -9757,51 +15258,83 @@ }, { "in": "query", - "name": "includeContext", + "name": "broadcastId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "afterCreatedAt", + "name": "sso", "required": false, "schema": { - "format": "int64", - "type": "integer" + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/remove-badge": { + "put": { + "operationId": "PutRemoveBadge", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RemoveUserBadgeResponse" + } + } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "unreadOnly", - "required": false, + "name": "badgeId", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "dmOnly", + "name": "userId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "noDm", + "name": "commentId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "includeTranslations", + "name": "broadcastId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { @@ -9815,80 +15348,148 @@ ] } }, - "/user-notifications/reset": { - "post": { - "operationId": "ResetUserNotifications", + "/auth/my-account/moderate-comments/get-trust-factor": { + "get": { + "operationId": "GetTrustFactor", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserTrustFactorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", - "required": true, + "name": "userId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "afterId", + "name": "sso", "required": false, "schema": { "type": "string" } + } + ] + } + }, + "/auth/my-account/moderate-comments/set-trust-factor": { + "put": { + "operationId": "SetTrustFactor", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SetUserTrustFactorResponse" + } + } + } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "afterCreatedAt", + "name": "userId", "required": false, "schema": { - "format": "int64", - "type": "integer" + "type": "string" } }, { "in": "query", - "name": "unreadOnly", + "name": "trustFactor", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { "in": "query", - "name": "dmOnly", + "name": "sso", "required": false, "schema": { - "type": "boolean" + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-user-internal-profile": { + "get": { + "operationId": "GetUserInternalProfile", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetUserInternalProfileResponse" + } + } } }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Moderation" + ], + "security": [], + "parameters": [ { "in": "query", - "name": "noDm", + "name": "commentId", "required": false, "schema": { - "type": "boolean" + "type": "string" } }, { @@ -9902,36 +15503,39 @@ ] } }, - "/user-notifications/get-count": { - "get": { - "operationId": "GetUserNotificationCount", + "/auth/my-account/moderate-comments/reopen-thread": { + "put": { + "operationId": "PutReopenThread", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "urlId", "required": true, "schema": { "type": "string" @@ -9948,36 +15552,39 @@ ] } }, - "/user-notifications/reset-count": { - "post": { - "operationId": "ResetUserNotificationCount", + "/auth/my-account/moderate-comments/close-thread": { + "put": { + "operationId": "PutCloseThread", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ResetUserNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ { "in": "query", - "name": "tenantId", + "name": "urlId", "required": true, "schema": { "type": "string" @@ -9994,64 +15601,36 @@ ] } }, - "/user-notifications/{notificationId}/mark/{newStatus}": { - "post": { - "operationId": "UpdateUserNotificationStatus", + "/auth/my-account/moderate-comments/banned-users/counts": { + "get": { + "operationId": "GetCounts", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetBannedUsersCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, "tags": [ - "Public" + "Moderation" ], "security": [], "parameters": [ - { - "in": "query", - "name": "tenantId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "notificationId", - "required": true, - "schema": { - "type": "string" - } - }, - { - "in": "path", - "name": "newStatus", - "required": true, - "schema": { - "type": "string", - "enum": [ - "read", - "unread" - ] - } - }, { "in": "query", "name": "sso", @@ -10063,24 +15642,22 @@ ] } }, - "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}": { - "post": { - "operationId": "UpdateUserNotificationCommentSubscriptionStatus", + "/gifs/trending/{tenantId}": { + "get": { + "operationId": "GetGifsTrending", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { + "title": "GetGifsTrendingResponse", "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/GifSearchResponse" }, { - "$ref": "#/components/schemas/APIError" + "$ref": "#/components/schemas/GifSearchInternalError" } ] } @@ -10088,14 +15665,13 @@ } } }, - "description": "Enable or disable notifications for a specific comment.", "tags": [ "Public" ], "security": [], "parameters": [ { - "in": "query", + "in": "path", "name": "tenantId", "required": true, "schema": { @@ -10103,77 +15679,83 @@ } }, { - "in": "path", - "name": "notificationId", - "required": true, + "in": "query", + "name": "locale", + "required": false, "schema": { "type": "string" } }, - { - "in": "path", - "name": "optedInOrOut", - "required": true, - "schema": { - "type": "string", - "enum": [ - "in", - "out" - ] - } - }, { "in": "query", - "name": "commentId", - "required": true, + "name": "rating", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "sso", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] } }, - "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}": { - "post": { - "operationId": "UpdateUserNotificationPageSubscriptionStatus", + "/gifs/search/{tenantId}": { + "get": { + "operationId": "GetGifsSearch", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { + "title": "GetGifsSearchResponse", "anyOf": [ { - "$ref": "#/components/schemas/UserNotificationWriteResponse" - }, - { - "$ref": "#/components/schemas/IgnoredResponse" + "$ref": "#/components/schemas/GifSearchResponse" }, { - "$ref": "#/components/schemas/APIError" + "$ref": "#/components/schemas/GifSearchInternalError" } ] } } } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, - "description": "Enable or disable notifications for a page. When users are subscribed to a page, notifications are created\nfor new root comments, and also", "tags": [ "Public" ], "security": [], "parameters": [ { - "in": "query", + "in": "path", "name": "tenantId", "required": true, "schema": { @@ -10182,7 +15764,7 @@ }, { "in": "query", - "name": "urlId", + "name": "search", "required": true, "schema": { "type": "string" @@ -10190,59 +15772,67 @@ }, { "in": "query", - "name": "url", - "required": true, + "name": "locale", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "pageTitle", - "required": true, + "name": "rating", + "required": false, "schema": { "type": "string" } }, - { - "in": "path", - "name": "subscribedOrUnsubscribed", - "required": true, - "schema": { - "type": "string", - "enum": [ - "subscribe", - "unsubscribe" - ] - } - }, { "in": "query", - "name": "sso", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } } ] } }, - "/upload-image/{tenantId}": { - "post": { - "operationId": "UploadImage", + "/gifs/get-large/{tenantId}": { + "get": { + "operationId": "GetGifLarge", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadImageResponse" + "$ref": "#/components/schemas/GifGetLargeResponse" + } + } + } + }, + "422": { + "description": "Validation Failed", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } } }, - "description": "Upload and resize an image", "tags": [ "Public" ], @@ -10257,43 +15847,14 @@ } }, { - "description": "Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices)", - "in": "query", - "name": "sizePreset", - "required": false, - "schema": { - "$ref": "#/components/schemas/SizePreset" - } - }, - { - "description": "Page id that upload is happening from, to configure", "in": "query", - "name": "urlId", - "required": false, + "name": "largeInternalURLSanitized", + "required": true, "schema": { "type": "string" } } - ], - "requestBody": { - "required": true, - "content": { - "multipart/form-data": { - "schema": { - "type": "object", - "properties": { - "file": { - "type": "string", - "format": "binary" - } - }, - "required": [ - "file" - ] - } - } - } - } + ] } }, "/flag-comment/{commentId}": { @@ -10305,14 +15866,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10367,14 +15931,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10456,14 +16023,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10520,14 +16090,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ReactFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ReactFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10600,14 +16173,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UserReactsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UserReactsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10657,14 +16233,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10727,22 +16306,26 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - { - "$ref": "#/components/schemas/APIError" + "title": "DeleteFeedPostPublicResponse", + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" } - ] + }, + "required": [ + "status" + ], + "type": "object" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10797,14 +16380,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FeedPostsStatsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FeedPostsStatsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10854,14 +16440,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10909,7 +16498,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -10927,14 +16516,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEventLogResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEventLogResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -10982,7 +16574,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -11000,14 +16592,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIGetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11062,14 +16657,100 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPISetCommentTextResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [ + { + "in": "path", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "broadcastId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "editKey", + "required": false, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ], + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommentTextUpdateRequest" + } + } + } + } + } + }, + "/comments-for-user": { + "get": { + "operationId": "GetCommentsForUser", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCommentsForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11081,56 +16762,63 @@ "security": [], "parameters": [ { - "in": "path", - "name": "tenantId", - "required": true, + "in": "query", + "name": "userId", + "required": false, "schema": { "type": "string" } }, { - "in": "path", - "name": "commentId", - "required": true, + "in": "query", + "name": "direction", + "required": false, "schema": { - "type": "string" + "$ref": "#/components/schemas/SortDirections" } }, { "in": "query", - "name": "broadcastId", - "required": true, + "name": "repliesToUserId", + "required": false, "schema": { "type": "string" } }, { "in": "query", - "name": "editKey", + "name": "page", "required": false, "schema": { - "type": "string" + "format": "double", + "type": "number" } }, { "in": "query", - "name": "sso", + "name": "includei10n", + "required": false, + "schema": { + "type": "boolean" + } + }, + { + "in": "query", + "name": "locale", "required": false, "schema": { "type": "string" } - } - ], - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CommentTextUpdateRequest" - } + }, + { + "in": "query", + "name": "isCrawler", + "required": false, + "schema": { + "type": "boolean" } } - } + ] } }, "/comments/{tenantId}": { @@ -11142,14 +16830,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentsResponseWithPresence_PublicComment_" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11404,14 +17095,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/SaveCommentsResponseWithPresence" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11484,14 +17178,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/PublicAPIDeleteCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11554,14 +17251,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CheckBlockedCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CheckBlockedCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11609,14 +17309,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11697,14 +17400,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11783,14 +17489,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCommentVoteUserNamesSuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11846,14 +17555,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11908,14 +17620,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeCommentPinStatusResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -11970,14 +17685,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12032,14 +17750,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIError" - }, - { - "$ref": "#/components/schemas/APIEmptyResponse" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12094,14 +17815,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12156,14 +17880,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12211,6 +17938,28 @@ } } }, + "/auth/logout": { + "put": { + "operationId": "LogoutPublic", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + } + }, + "tags": [ + "Public" + ], + "security": [], + "parameters": [] + } + }, "/api/v1/subscriptions": { "get": { "operationId": "GetSubscriptions", @@ -12404,6 +18153,7 @@ "content": { "application/json": { "schema": { + "title": "GetSSOUsersResponse", "properties": { "users": { "items": { @@ -12948,14 +18698,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -12993,14 +18746,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13068,14 +18824,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetVotesForUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetVotesForUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13131,14 +18890,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/VoteDeleteResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/VoteDeleteResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13186,14 +18948,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13233,14 +18998,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13278,14 +19046,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13333,14 +19104,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptySuccessResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptySuccessResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13380,14 +19154,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13468,14 +19245,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APICreateUserBadgeResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APICreateUserBadgeResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13517,14 +19297,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13564,14 +19347,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressListResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13629,14 +19415,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetUserBadgeProgressResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13676,14 +19465,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13748,14 +19540,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13805,14 +19600,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTicketResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTicketResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13860,14 +19658,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/ChangeTicketStateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/ChangeTicketStateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13925,14 +19726,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -13970,14 +19774,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14025,14 +19832,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14080,14 +19890,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14134,14 +19947,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14183,14 +19999,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14228,14 +20047,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14291,14 +20113,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14354,14 +20179,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14417,14 +20245,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantUsersResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14463,14 +20294,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantUserResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantUserResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14512,14 +20346,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14567,14 +20404,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14612,14 +20452,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14667,14 +20510,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14722,14 +20568,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14769,14 +20618,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantPackagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantPackagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14815,14 +20667,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateTenantPackageResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateTenantPackageResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14864,14 +20719,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetTenantDailyUsagesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14939,14 +20797,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -14984,14 +20845,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15039,14 +20903,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15086,14 +20953,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15172,14 +21042,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionResultResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionResultResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15221,14 +21094,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/AggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/AggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15312,14 +21188,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkAggregateQuestionResultsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15369,14 +21248,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CombineQuestionResultsWithCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15479,14 +21361,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15524,14 +21409,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15579,14 +21467,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15626,14 +21517,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetQuestionConfigsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetQuestionConfigsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15672,14 +21566,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateQuestionConfigResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateQuestionConfigResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15721,14 +21618,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15818,14 +21718,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetPendingWebhookEventCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15906,14 +21809,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -15953,14 +21859,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16041,14 +21950,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16120,14 +22032,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16185,14 +22100,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetCachedNotificationCountResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetCachedNotificationCountResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16230,14 +22148,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16277,14 +22198,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16322,14 +22246,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16377,14 +22304,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16432,14 +22362,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetModeratorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetModeratorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16478,14 +22411,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateModeratorResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateModeratorResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16527,14 +22463,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16582,14 +22521,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16628,14 +22570,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16677,14 +22622,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BulkCreateHashTagsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BulkCreateHashTagsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16726,14 +22674,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UpdateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UpdateHashTagResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16781,14 +22732,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16822,6 +22776,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteHashTagRequestBody", "properties": { "tenantId": { "type": "string" @@ -16843,14 +22798,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16909,14 +22867,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateFeedPostsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateFeedPostsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -16990,14 +22951,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17047,14 +23011,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateDefinitionsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17086,14 +23053,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateRenderErrorsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17142,14 +23112,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17197,14 +23170,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17242,14 +23218,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17297,14 +23276,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17344,14 +23326,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetEmailTemplatesResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetEmailTemplatesResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17390,14 +23375,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/CreateEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17439,14 +23427,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/RenderEmailTemplateResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/RenderEmailTemplateResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17496,6 +23487,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigsResponse", "anyOf": [ { "properties": { @@ -17555,6 +23547,7 @@ "content": { "application/json": { "schema": { + "title": "AddDomainConfigResponse", "anyOf": [ { "properties": { @@ -17626,6 +23619,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigResponse", "anyOf": [ { "properties": { @@ -17693,6 +23687,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteDomainConfigResponse", "properties": { "status": {} }, @@ -17739,6 +23734,7 @@ "content": { "application/json": { "schema": { + "title": "PutDomainConfigResponse", "anyOf": [ { "properties": { @@ -17816,6 +23812,7 @@ "content": { "application/json": { "schema": { + "title": "PatchDomainConfigResponse", "anyOf": [ { "properties": { @@ -17895,14 +23892,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -17940,14 +23940,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIEmptyResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIEmptyResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18019,14 +24022,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/DeleteCommentResult" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/DeleteCommentResult" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18082,14 +24088,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIGetCommentsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APIGetCommentsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18226,6 +24235,24 @@ "schema": { "$ref": "#/components/schemas/SortDirections" } + }, + { + "in": "query", + "name": "fromDate", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } + }, + { + "in": "query", + "name": "toDate", + "required": false, + "schema": { + "format": "int64", + "type": "integer" + } } ] }, @@ -18237,14 +24264,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SaveCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APISaveCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18319,9 +24349,10 @@ "application/json": { "schema": { "items": { + "title": "SaveCommentsBulkResponse", "anyOf": [ { - "$ref": "#/components/schemas/SaveCommentResponse" + "$ref": "#/components/schemas/APISaveCommentResponse" }, { "$ref": "#/components/schemas/APIError" @@ -18405,14 +24436,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18468,14 +24502,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/FlagCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/FlagCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18531,14 +24568,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/BlockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/BlockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18604,14 +24644,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/UnblockSuccess" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/UnblockSuccess" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18677,14 +24720,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/GetAuditLogsResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/GetAuditLogsResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18760,7 +24806,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AggregationResponse" + "title": "AggregateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AggregationResponse" + }, + { + "$ref": "#/components/schemas/AggregationAPIError" + } + ] } } }