diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..302185e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +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: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Install dependencies + run: pip install -e ".[dev]" + - name: Run tests + run: pytest tests/ -v + env: + FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} + FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} diff --git a/README.md b/README.md index 1a89983..520afb1 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ This library contains two modules: the generated API client and the core Python ### Public vs Secured APIs -For the API client, there are two classes, `DefaultApi` and `PublicApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains API calls that can be made directly from a browser/mobile device/etc without authentication. +For the API client, there are three classes, `DefaultApi`, `PublicApi`, and `ModerationApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains methods that can be made directly from a browser/mobile device/etc without authentication. The `ModerationApi` powers the moderator dashboard and contains methods for moderating comments (list, count, search, logs, export), moderation actions (remove/restore, flag, set review/spam/approval status, votes, reopen/close thread), bans (ban from comment, undo, pre-ban summaries, ban status/preferences, banned-user counts), and badges & trust (award/remove badge, manual badges, get/set trust factor, user internal profile). Every `ModerationApi` method accepts an `sso` parameter so it can be called on behalf of an SSO-authenticated moderator. ## Quick Start @@ -86,6 +86,27 @@ except Exception as e: print(f"Error: {e}") ``` +### Using the Moderation Dashboard (ModerationApi) + +The `ModerationApi` powers the moderator dashboard. Methods are called on behalf of a moderator by passing an `sso` token: + +```python +from client import ApiClient, Configuration, ModerationApi + +config = Configuration() +config.host = "https://fastcomments.com/api" + +api_client = ApiClient(configuration=config) +moderation_api = ModerationApi(api_client) + +try: + # Count the comments awaiting moderation + response = moderation_api.get_count(sso="SSO_TOKEN") + print(response) +except Exception as e: + print(f"Error: {e}") +``` + ### Using SSO (Single Sign-On) The SDK includes utilities for generating secure SSO tokens: @@ -131,7 +152,7 @@ sso_token = sso.create_token() ### Common Issues 1. **401 "missing-api-key" error**: Make sure you set `config.api_key = {"ApiKeyAuth": "YOUR_KEY"}` before creating the DefaultApi instance. -2. **Wrong API class**: Use `DefaultApi` for server-side authenticated requests, `PublicApi` for client-side/public requests. +2. **Wrong API class**: Use `DefaultApi` for server-side authenticated requests, `PublicApi` for client-side/public requests, and `ModerationApi` for moderator dashboard requests. 3. **Import errors**: Make sure you're importing from the correct module: - API client: `from client import ...` - SSO utilities: `from sso import ...` diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index a808b63..7ab6732 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -7,22 +7,24 @@ README.md client/__init__.py client/api/__init__.py client/api/default_api.py +client/api/moderation_api.py client/api/public_api.py client/api_client.py client/api_response.py client/configuration.py client/exceptions.py client/models/__init__.py -client/models/add_domain_config200_response.py -client/models/add_domain_config200_response_any_of.py client/models/add_domain_config_params.py -client/models/add_hash_tag200_response.py -client/models/add_hash_tags_bulk200_response.py +client/models/add_domain_config_response.py +client/models/add_domain_config_response_any_of.py client/models/add_page_api_response.py client/models/add_sso_user_api_response.py -client/models/aggregate_question_results200_response.py +client/models/adjust_comment_votes_params.py +client/models/adjust_votes_response.py client/models/aggregate_question_results_response.py +client/models/aggregate_response.py client/models/aggregate_time_bucket.py +client/models/aggregation_api_error.py client/models/aggregation_item.py client/models/aggregation_op_type.py client/models/aggregation_operation.py @@ -32,9 +34,14 @@ client/models/aggregation_response.py client/models/aggregation_response_stats.py client/models/aggregation_value.py client/models/api_audit_log.py +client/models/api_ban_user_change_log.py +client/models/api_ban_user_changed_values.py +client/models/api_banned_user.py +client/models/api_banned_user_with_multi_match_info.py client/models/api_comment.py client/models/api_comment_base.py client/models/api_comment_base_meta.py +client/models/api_comment_common_banned_user.py client/models/api_create_user_badge_response.py client/models/api_domain_configuration.py client/models/api_empty_response.py @@ -46,7 +53,10 @@ client/models/api_get_user_badge_progress_list_response.py client/models/api_get_user_badge_progress_response.py client/models/api_get_user_badge_response.py client/models/api_get_user_badges_response.py +client/models/api_moderate_get_user_ban_preferences_response.py +client/models/api_moderate_user_ban_preferences.py client/models/api_page.py +client/models/api_save_comment_response.py client/models/api_status.py client/models/api_tenant.py client/models/api_tenant_daily_usage.py @@ -55,24 +65,30 @@ client/models/api_ticket_detail.py client/models/api_ticket_file.py client/models/api_user_subscription.py client/models/apisso_user.py +client/models/award_user_badge_response.py +client/models/ban_user_from_comment_result.py +client/models/ban_user_undo_params.py +client/models/banned_user_match.py +client/models/banned_user_match_matched_on_value.py +client/models/banned_user_match_type.py client/models/billing_info.py client/models/block_from_comment_params.py -client/models/block_from_comment_public200_response.py client/models/block_success.py +client/models/build_moderation_filter_params.py +client/models/build_moderation_filter_response.py client/models/bulk_aggregate_question_item.py -client/models/bulk_aggregate_question_results200_response.py client/models/bulk_aggregate_question_results_request.py client/models/bulk_aggregate_question_results_response.py client/models/bulk_create_hash_tags_body.py client/models/bulk_create_hash_tags_body_tags_inner.py client/models/bulk_create_hash_tags_response.py +client/models/bulk_create_hash_tags_response_results_inner.py +client/models/bulk_pre_ban_params.py +client/models/bulk_pre_ban_summary.py client/models/change_comment_pin_status_response.py -client/models/change_ticket_state200_response.py client/models/change_ticket_state_body.py client/models/change_ticket_state_response.py client/models/check_blocked_comments_response.py -client/models/checked_comments_for_blocked200_response.py -client/models/combine_comments_with_question_results200_response.py client/models/combine_question_results_with_comments_response.py client/models/comment_data.py client/models/comment_html_rendering_mode.py @@ -87,56 +103,42 @@ client/models/comment_user_badge_info.py client/models/comment_user_hash_tag_info.py client/models/comment_user_mention_info.py client/models/commenter_name_formats.py +client/models/comments_by_ids_params.py client/models/create_api_page_data.py client/models/create_api_user_subscription_data.py client/models/create_apisso_user_data.py client/models/create_comment_params.py -client/models/create_comment_public200_response.py -client/models/create_email_template200_response.py client/models/create_email_template_body.py client/models/create_email_template_response.py -client/models/create_feed_post200_response.py client/models/create_feed_post_params.py -client/models/create_feed_post_public200_response.py client/models/create_feed_post_response.py client/models/create_feed_posts_response.py client/models/create_hash_tag_body.py client/models/create_hash_tag_response.py -client/models/create_moderator200_response.py client/models/create_moderator_body.py client/models/create_moderator_response.py -client/models/create_question_config200_response.py client/models/create_question_config_body.py client/models/create_question_config_response.py -client/models/create_question_result200_response.py client/models/create_question_result_body.py client/models/create_question_result_response.py client/models/create_subscription_api_response.py -client/models/create_tenant200_response.py client/models/create_tenant_body.py -client/models/create_tenant_package200_response.py client/models/create_tenant_package_body.py client/models/create_tenant_package_response.py client/models/create_tenant_response.py -client/models/create_tenant_user200_response.py client/models/create_tenant_user_body.py client/models/create_tenant_user_response.py -client/models/create_ticket200_response.py client/models/create_ticket_body.py client/models/create_ticket_response.py -client/models/create_user_badge200_response.py client/models/create_user_badge_params.py +client/models/create_v1_page_react.py client/models/custom_config_parameters.py client/models/custom_email_template.py -client/models/delete_comment200_response.py client/models/delete_comment_action.py -client/models/delete_comment_public200_response.py client/models/delete_comment_result.py -client/models/delete_comment_vote200_response.py -client/models/delete_domain_config200_response.py -client/models/delete_feed_post_public200_response.py -client/models/delete_feed_post_public200_response_any_of.py -client/models/delete_hash_tag_request.py +client/models/delete_domain_config_response.py +client/models/delete_feed_post_public_response.py +client/models/delete_hash_tag_request_body.py client/models/delete_page_api_response.py client/models/delete_sso_user_api_response.py client/models/delete_subscription_api_response.py @@ -155,126 +157,124 @@ client/models/feed_post_stats.py client/models/feed_posts_stats_response.py client/models/find_comments_by_range_item.py client/models/find_comments_by_range_response.py -client/models/flag_comment200_response.py -client/models/flag_comment_public200_response.py client/models/flag_comment_response.py -client/models/get_audit_logs200_response.py client/models/get_audit_logs_response.py -client/models/get_cached_notification_count200_response.py +client/models/get_banned_users_count_response.py +client/models/get_banned_users_from_comment_response.py client/models/get_cached_notification_count_response.py -client/models/get_comment200_response.py -client/models/get_comment_text200_response.py -client/models/get_comment_vote_user_names200_response.py +client/models/get_comment_ban_status_response.py +client/models/get_comment_text_response.py client/models/get_comment_vote_user_names_success_response.py -client/models/get_comments200_response.py -client/models/get_comments_public200_response.py +client/models/get_comments_for_user_response.py client/models/get_comments_response_public_comment.py client/models/get_comments_response_with_presence_public_comment.py -client/models/get_domain_config200_response.py -client/models/get_domain_configs200_response.py -client/models/get_domain_configs200_response_any_of.py -client/models/get_domain_configs200_response_any_of1.py -client/models/get_email_template200_response.py -client/models/get_email_template_definitions200_response.py +client/models/get_domain_config_response.py +client/models/get_domain_configs_response.py +client/models/get_domain_configs_response_any_of.py +client/models/get_domain_configs_response_any_of1.py client/models/get_email_template_definitions_response.py -client/models/get_email_template_render_errors200_response.py client/models/get_email_template_render_errors_response.py client/models/get_email_template_response.py -client/models/get_email_templates200_response.py client/models/get_email_templates_response.py -client/models/get_event_log200_response.py client/models/get_event_log_response.py -client/models/get_feed_posts200_response.py -client/models/get_feed_posts_public200_response.py client/models/get_feed_posts_response.py -client/models/get_feed_posts_stats200_response.py -client/models/get_hash_tags200_response.py +client/models/get_gifs_search_response.py +client/models/get_gifs_trending_response.py client/models/get_hash_tags_response.py -client/models/get_moderator200_response.py client/models/get_moderator_response.py -client/models/get_moderators200_response.py client/models/get_moderators_response.py client/models/get_my_notifications_response.py -client/models/get_notification_count200_response.py client/models/get_notification_count_response.py -client/models/get_notifications200_response.py client/models/get_notifications_response.py client/models/get_page_by_urlid_api_response.py client/models/get_pages_api_response.py -client/models/get_pending_webhook_event_count200_response.py client/models/get_pending_webhook_event_count_response.py -client/models/get_pending_webhook_events200_response.py client/models/get_pending_webhook_events_response.py client/models/get_public_feed_posts_response.py -client/models/get_question_config200_response.py +client/models/get_public_pages_response.py client/models/get_question_config_response.py -client/models/get_question_configs200_response.py client/models/get_question_configs_response.py -client/models/get_question_result200_response.py client/models/get_question_result_response.py -client/models/get_question_results200_response.py client/models/get_question_results_response.py client/models/get_sso_user_by_email_api_response.py client/models/get_sso_user_by_id_api_response.py -client/models/get_sso_users200_response.py +client/models/get_sso_users_response.py client/models/get_subscriptions_api_response.py -client/models/get_tenant200_response.py -client/models/get_tenant_daily_usages200_response.py client/models/get_tenant_daily_usages_response.py -client/models/get_tenant_package200_response.py +client/models/get_tenant_manual_badges_response.py client/models/get_tenant_package_response.py -client/models/get_tenant_packages200_response.py client/models/get_tenant_packages_response.py client/models/get_tenant_response.py -client/models/get_tenant_user200_response.py client/models/get_tenant_user_response.py -client/models/get_tenant_users200_response.py client/models/get_tenant_users_response.py -client/models/get_tenants200_response.py client/models/get_tenants_response.py -client/models/get_ticket200_response.py client/models/get_ticket_response.py -client/models/get_tickets200_response.py client/models/get_tickets_response.py -client/models/get_user200_response.py -client/models/get_user_badge200_response.py -client/models/get_user_badge_progress_by_id200_response.py -client/models/get_user_badge_progress_list200_response.py -client/models/get_user_badges200_response.py -client/models/get_user_notification_count200_response.py +client/models/get_translations_response.py +client/models/get_user_internal_profile_response.py +client/models/get_user_internal_profile_response_profile.py +client/models/get_user_manual_badges_response.py client/models/get_user_notification_count_response.py -client/models/get_user_notifications200_response.py -client/models/get_user_presence_statuses200_response.py client/models/get_user_presence_statuses_response.py -client/models/get_user_reacts_public200_response.py client/models/get_user_response.py -client/models/get_votes200_response.py -client/models/get_votes_for_user200_response.py +client/models/get_user_trust_factor_response.py +client/models/get_v1_page_likes.py +client/models/get_v2_page_react_users_response.py +client/models/get_v2_page_reacts.py client/models/get_votes_for_user_response.py client/models/get_votes_response.py +client/models/gif_get_large_response.py client/models/gif_rating.py +client/models/gif_search_internal_error.py +client/models/gif_search_response.py +client/models/gif_search_response_images_inner_inner.py client/models/header_account_notification.py client/models/header_state.py client/models/ignored_response.py client/models/image_content_profanity_level.py +client/models/imported_agent_approval_notification_frequency.py client/models/imported_site_type.py client/models/live_event.py client/models/live_event_extra_info.py client/models/live_event_type.py -client/models/lock_comment200_response.py client/models/media_asset.py client/models/mention_auto_complete_mode.py client/models/meta_item.py +client/models/moderation_api_child_comments_response.py +client/models/moderation_api_comment.py +client/models/moderation_api_comment_log.py +client/models/moderation_api_comment_response.py +client/models/moderation_api_count_comments_response.py +client/models/moderation_api_get_comment_ids_response.py +client/models/moderation_api_get_comments_response.py +client/models/moderation_api_get_logs_response.py +client/models/moderation_comment_search_response.py +client/models/moderation_export_response.py +client/models/moderation_export_status_response.py +client/models/moderation_filter.py +client/models/moderation_page_search_projected.py +client/models/moderation_page_search_response.py +client/models/moderation_site_search_projected.py +client/models/moderation_site_search_response.py +client/models/moderation_suggest_response.py +client/models/moderation_user_search_projected.py +client/models/moderation_user_search_response.py client/models/moderator.py client/models/notification_and_count.py client/models/notification_object_type.py client/models/notification_type.py +client/models/page_user_entry.py +client/models/page_users_info_response.py +client/models/page_users_offline_response.py +client/models/page_users_online_response.py +client/models/pages_sort_by.py client/models/patch_domain_config_params.py -client/models/patch_hash_tag200_response.py +client/models/patch_domain_config_response.py client/models/patch_page_api_response.py client/models/patch_sso_user_api_response.py client/models/pending_comment_to_sync_outbound.py -client/models/pin_comment200_response.py +client/models/post_remove_comment_response.py +client/models/pre_ban_summary.py client/models/pub_sub_comment.py client/models/pub_sub_comment_base.py client/models/pub_sub_vote.py @@ -285,7 +285,9 @@ client/models/public_block_from_comment_params.py client/models/public_comment.py client/models/public_comment_base.py client/models/public_feed_posts_response.py +client/models/public_page.py client/models/public_vote.py +client/models/put_domain_config_response.py client/models/put_sso_user_api_response.py client/models/query_predicate.py client/models/query_predicate_value.py @@ -298,11 +300,10 @@ client/models/question_result_aggregation_overall.py client/models/question_sub_question_visibility.py client/models/question_when_save.py client/models/react_body_params.py -client/models/react_feed_post_public200_response.py client/models/react_feed_post_response.py client/models/record_string_before_string_or_null_after_string_or_null_value.py -client/models/record_string_string_or_number_value.py -client/models/render_email_template200_response.py +client/models/remove_comment_action_response.py +client/models/remove_user_badge_response.py client/models/render_email_template_body.py client/models/render_email_template_response.py client/models/renderable_user_notification.py @@ -310,26 +311,27 @@ client/models/repeat_comment_check_ignored_reason.py client/models/repeat_comment_handling_action.py client/models/replace_tenant_package_body.py client/models/replace_tenant_user_body.py -client/models/reset_user_notifications200_response.py client/models/reset_user_notifications_response.py -client/models/save_comment200_response.py -client/models/save_comment_response.py client/models/save_comment_response_optimized.py +client/models/save_comments_bulk_response.py client/models/save_comments_response_with_presence.py -client/models/search_users200_response.py client/models/search_users_response.py +client/models/search_users_result.py client/models/search_users_sectioned_response.py -client/models/set_comment_text200_response.py +client/models/set_comment_approved_response.py +client/models/set_comment_text_params.py +client/models/set_comment_text_response.py client/models/set_comment_text_result.py +client/models/set_user_trust_factor_response.py client/models/size_preset.py client/models/sort_directions.py client/models/sortdir.py client/models/spam_rule.py client/models/sso_security_level.py +client/models/tenant_badge.py client/models/tenant_hash_tag.py client/models/tenant_package.py client/models/tos_config.py -client/models/un_block_comment_public200_response.py client/models/un_block_from_comment_params.py client/models/unblock_success.py client/models/updatable_comment_params.py @@ -349,9 +351,10 @@ client/models/update_subscription_api_response.py client/models/update_tenant_body.py client/models/update_tenant_package_body.py client/models/update_tenant_user_body.py -client/models/update_user_badge200_response.py client/models/update_user_badge_params.py -client/models/update_user_notification_status200_response.py +client/models/update_user_notification_comment_subscription_status_response.py +client/models/update_user_notification_page_subscription_status_response.py +client/models/update_user_notification_status_response.py client/models/upload_image_response.py client/models/user.py client/models/user_badge.py @@ -365,8 +368,8 @@ client/models/user_search_result.py client/models/user_search_section.py client/models/user_search_section_result.py client/models/user_session_info.py +client/models/users_list_location.py client/models/vote_body_params.py -client/models/vote_comment200_response.py client/models/vote_delete_response.py client/models/vote_response.py client/models/vote_response_status.py @@ -375,9 +378,14 @@ client/models/vote_style.py client/py.typed client/rest.py 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 @@ -389,8 +397,11 @@ docs/APIGetUserBadgeProgressListResponse.md docs/APIGetUserBadgeProgressResponse.md docs/APIGetUserBadgeResponse.md docs/APIGetUserBadgesResponse.md +docs/APIModerateGetUserBanPreferencesResponse.md +docs/APIModerateUserBanPreferences.md docs/APIPage.md docs/APISSOUser.md +docs/APISaveCommentResponse.md docs/APIStatus.md docs/APITenant.md docs/APITenantDailyUsage.md @@ -398,16 +409,17 @@ docs/APITicket.md docs/APITicketDetail.md docs/APITicketFile.md docs/APIUserSubscription.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 @@ -416,24 +428,30 @@ docs/AggregationRequestSort.md docs/AggregationResponse.md docs/AggregationResponseStats.md docs/AggregationValue.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 @@ -448,57 +466,43 @@ docs/CommentUserBadgeInfo.md docs/CommentUserHashTagInfo.md docs/CommentUserMentionInfo.md docs/CommenterNameFormats.md +docs/CommentsByIdsParams.md docs/CreateAPIPageData.md docs/CreateAPISSOUserData.md docs/CreateAPIUserSubscriptionData.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 @@ -517,126 +521,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/ModerationAPIChildCommentsResponse.md +docs/ModerationAPIComment.md +docs/ModerationAPICommentLog.md +docs/ModerationAPICommentResponse.md +docs/ModerationAPICountCommentsResponse.md +docs/ModerationAPIGetCommentIdsResponse.md +docs/ModerationAPIGetCommentsResponse.md +docs/ModerationAPIGetLogsResponse.md +docs/ModerationApi.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 @@ -648,7 +651,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 @@ -661,11 +666,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 @@ -673,26 +677,27 @@ docs/RepeatCommentCheckIgnoredReason.md docs/RepeatCommentHandlingAction.md docs/ReplaceTenantPackageBody.md docs/ReplaceTenantUserBody.md -docs/ResetUserNotifications200Response.md docs/ResetUserNotificationsResponse.md docs/SORTDIR.md docs/SSOSecurityLevel.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/SortDirections.md docs/SpamRule.md docs/TOSConfig.md +docs/TenantBadge.md docs/TenantHashTag.md docs/TenantPackage.md -docs/UnBlockCommentPublic200Response.md docs/UnBlockFromCommentParams.md docs/UnblockSuccess.md docs/UpdatableCommentParams.md @@ -712,9 +717,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 @@ -728,8 +734,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/VoteResponseStatus.md @@ -742,16 +748,17 @@ setup.cfg setup.py test-requirements.txt test/__init__.py -test/test_add_domain_config200_response.py -test/test_add_domain_config200_response_any_of.py test/test_add_domain_config_params.py -test/test_add_hash_tag200_response.py -test/test_add_hash_tags_bulk200_response.py +test/test_add_domain_config_response.py +test/test_add_domain_config_response_any_of.py test/test_add_page_api_response.py test/test_add_sso_user_api_response.py -test/test_aggregate_question_results200_response.py +test/test_adjust_comment_votes_params.py +test/test_adjust_votes_response.py test/test_aggregate_question_results_response.py +test/test_aggregate_response.py test/test_aggregate_time_bucket.py +test/test_aggregation_api_error.py test/test_aggregation_item.py test/test_aggregation_op_type.py test/test_aggregation_operation.py @@ -761,9 +768,14 @@ test/test_aggregation_response.py test/test_aggregation_response_stats.py test/test_aggregation_value.py test/test_api_audit_log.py +test/test_api_ban_user_change_log.py +test/test_api_ban_user_changed_values.py +test/test_api_banned_user.py +test/test_api_banned_user_with_multi_match_info.py test/test_api_comment.py test/test_api_comment_base.py test/test_api_comment_base_meta.py +test/test_api_comment_common_banned_user.py test/test_api_create_user_badge_response.py test/test_api_domain_configuration.py test/test_api_empty_response.py @@ -775,7 +787,10 @@ test/test_api_get_user_badge_progress_list_response.py test/test_api_get_user_badge_progress_response.py test/test_api_get_user_badge_response.py test/test_api_get_user_badges_response.py +test/test_api_moderate_get_user_ban_preferences_response.py +test/test_api_moderate_user_ban_preferences.py test/test_api_page.py +test/test_api_save_comment_response.py test/test_api_status.py test/test_api_tenant.py test/test_api_tenant_daily_usage.py @@ -784,24 +799,30 @@ test/test_api_ticket_detail.py test/test_api_ticket_file.py test/test_api_user_subscription.py test/test_apisso_user.py +test/test_award_user_badge_response.py +test/test_ban_user_from_comment_result.py +test/test_ban_user_undo_params.py +test/test_banned_user_match.py +test/test_banned_user_match_matched_on_value.py +test/test_banned_user_match_type.py test/test_billing_info.py test/test_block_from_comment_params.py -test/test_block_from_comment_public200_response.py test/test_block_success.py +test/test_build_moderation_filter_params.py +test/test_build_moderation_filter_response.py test/test_bulk_aggregate_question_item.py -test/test_bulk_aggregate_question_results200_response.py test/test_bulk_aggregate_question_results_request.py test/test_bulk_aggregate_question_results_response.py test/test_bulk_create_hash_tags_body.py test/test_bulk_create_hash_tags_body_tags_inner.py test/test_bulk_create_hash_tags_response.py +test/test_bulk_create_hash_tags_response_results_inner.py +test/test_bulk_pre_ban_params.py +test/test_bulk_pre_ban_summary.py test/test_change_comment_pin_status_response.py -test/test_change_ticket_state200_response.py test/test_change_ticket_state_body.py test/test_change_ticket_state_response.py test/test_check_blocked_comments_response.py -test/test_checked_comments_for_blocked200_response.py -test/test_combine_comments_with_question_results200_response.py test/test_combine_question_results_with_comments_response.py test/test_comment_data.py test/test_comment_html_rendering_mode.py @@ -816,57 +837,43 @@ test/test_comment_user_badge_info.py test/test_comment_user_hash_tag_info.py test/test_comment_user_mention_info.py test/test_commenter_name_formats.py +test/test_comments_by_ids_params.py test/test_create_api_page_data.py test/test_create_api_user_subscription_data.py test/test_create_apisso_user_data.py test/test_create_comment_params.py -test/test_create_comment_public200_response.py -test/test_create_email_template200_response.py test/test_create_email_template_body.py test/test_create_email_template_response.py -test/test_create_feed_post200_response.py test/test_create_feed_post_params.py -test/test_create_feed_post_public200_response.py test/test_create_feed_post_response.py test/test_create_feed_posts_response.py test/test_create_hash_tag_body.py test/test_create_hash_tag_response.py -test/test_create_moderator200_response.py test/test_create_moderator_body.py test/test_create_moderator_response.py -test/test_create_question_config200_response.py test/test_create_question_config_body.py test/test_create_question_config_response.py -test/test_create_question_result200_response.py test/test_create_question_result_body.py test/test_create_question_result_response.py test/test_create_subscription_api_response.py -test/test_create_tenant200_response.py test/test_create_tenant_body.py -test/test_create_tenant_package200_response.py test/test_create_tenant_package_body.py test/test_create_tenant_package_response.py test/test_create_tenant_response.py -test/test_create_tenant_user200_response.py test/test_create_tenant_user_body.py test/test_create_tenant_user_response.py -test/test_create_ticket200_response.py test/test_create_ticket_body.py test/test_create_ticket_response.py -test/test_create_user_badge200_response.py test/test_create_user_badge_params.py +test/test_create_v1_page_react.py test/test_custom_config_parameters.py test/test_custom_email_template.py test/test_default_api.py -test/test_delete_comment200_response.py test/test_delete_comment_action.py -test/test_delete_comment_public200_response.py test/test_delete_comment_result.py -test/test_delete_comment_vote200_response.py -test/test_delete_domain_config200_response.py -test/test_delete_feed_post_public200_response.py -test/test_delete_feed_post_public200_response_any_of.py -test/test_delete_hash_tag_request.py +test/test_delete_domain_config_response.py +test/test_delete_feed_post_public_response.py +test/test_delete_hash_tag_request_body.py test/test_delete_page_api_response.py test/test_delete_sso_user_api_response.py test/test_delete_subscription_api_response.py @@ -885,126 +892,125 @@ test/test_feed_post_stats.py test/test_feed_posts_stats_response.py test/test_find_comments_by_range_item.py test/test_find_comments_by_range_response.py -test/test_flag_comment200_response.py -test/test_flag_comment_public200_response.py test/test_flag_comment_response.py -test/test_get_audit_logs200_response.py test/test_get_audit_logs_response.py -test/test_get_cached_notification_count200_response.py +test/test_get_banned_users_count_response.py +test/test_get_banned_users_from_comment_response.py test/test_get_cached_notification_count_response.py -test/test_get_comment200_response.py -test/test_get_comment_text200_response.py -test/test_get_comment_vote_user_names200_response.py +test/test_get_comment_ban_status_response.py +test/test_get_comment_text_response.py test/test_get_comment_vote_user_names_success_response.py -test/test_get_comments200_response.py -test/test_get_comments_public200_response.py +test/test_get_comments_for_user_response.py test/test_get_comments_response_public_comment.py test/test_get_comments_response_with_presence_public_comment.py -test/test_get_domain_config200_response.py -test/test_get_domain_configs200_response.py -test/test_get_domain_configs200_response_any_of.py -test/test_get_domain_configs200_response_any_of1.py -test/test_get_email_template200_response.py -test/test_get_email_template_definitions200_response.py +test/test_get_domain_config_response.py +test/test_get_domain_configs_response.py +test/test_get_domain_configs_response_any_of.py +test/test_get_domain_configs_response_any_of1.py test/test_get_email_template_definitions_response.py -test/test_get_email_template_render_errors200_response.py test/test_get_email_template_render_errors_response.py test/test_get_email_template_response.py -test/test_get_email_templates200_response.py test/test_get_email_templates_response.py -test/test_get_event_log200_response.py test/test_get_event_log_response.py -test/test_get_feed_posts200_response.py -test/test_get_feed_posts_public200_response.py test/test_get_feed_posts_response.py -test/test_get_feed_posts_stats200_response.py -test/test_get_hash_tags200_response.py +test/test_get_gifs_search_response.py +test/test_get_gifs_trending_response.py test/test_get_hash_tags_response.py -test/test_get_moderator200_response.py test/test_get_moderator_response.py -test/test_get_moderators200_response.py test/test_get_moderators_response.py test/test_get_my_notifications_response.py -test/test_get_notification_count200_response.py test/test_get_notification_count_response.py -test/test_get_notifications200_response.py test/test_get_notifications_response.py test/test_get_page_by_urlid_api_response.py test/test_get_pages_api_response.py -test/test_get_pending_webhook_event_count200_response.py test/test_get_pending_webhook_event_count_response.py -test/test_get_pending_webhook_events200_response.py test/test_get_pending_webhook_events_response.py test/test_get_public_feed_posts_response.py -test/test_get_question_config200_response.py +test/test_get_public_pages_response.py test/test_get_question_config_response.py -test/test_get_question_configs200_response.py test/test_get_question_configs_response.py -test/test_get_question_result200_response.py test/test_get_question_result_response.py -test/test_get_question_results200_response.py test/test_get_question_results_response.py test/test_get_sso_user_by_email_api_response.py test/test_get_sso_user_by_id_api_response.py -test/test_get_sso_users200_response.py +test/test_get_sso_users_response.py test/test_get_subscriptions_api_response.py -test/test_get_tenant200_response.py -test/test_get_tenant_daily_usages200_response.py test/test_get_tenant_daily_usages_response.py -test/test_get_tenant_package200_response.py +test/test_get_tenant_manual_badges_response.py test/test_get_tenant_package_response.py -test/test_get_tenant_packages200_response.py test/test_get_tenant_packages_response.py test/test_get_tenant_response.py -test/test_get_tenant_user200_response.py test/test_get_tenant_user_response.py -test/test_get_tenant_users200_response.py test/test_get_tenant_users_response.py -test/test_get_tenants200_response.py test/test_get_tenants_response.py -test/test_get_ticket200_response.py test/test_get_ticket_response.py -test/test_get_tickets200_response.py test/test_get_tickets_response.py -test/test_get_user200_response.py -test/test_get_user_badge200_response.py -test/test_get_user_badge_progress_by_id200_response.py -test/test_get_user_badge_progress_list200_response.py -test/test_get_user_badges200_response.py -test/test_get_user_notification_count200_response.py +test/test_get_translations_response.py +test/test_get_user_internal_profile_response.py +test/test_get_user_internal_profile_response_profile.py +test/test_get_user_manual_badges_response.py test/test_get_user_notification_count_response.py -test/test_get_user_notifications200_response.py -test/test_get_user_presence_statuses200_response.py test/test_get_user_presence_statuses_response.py -test/test_get_user_reacts_public200_response.py test/test_get_user_response.py -test/test_get_votes200_response.py -test/test_get_votes_for_user200_response.py +test/test_get_user_trust_factor_response.py +test/test_get_v1_page_likes.py +test/test_get_v2_page_react_users_response.py +test/test_get_v2_page_reacts.py test/test_get_votes_for_user_response.py test/test_get_votes_response.py +test/test_gif_get_large_response.py test/test_gif_rating.py +test/test_gif_search_internal_error.py +test/test_gif_search_response.py +test/test_gif_search_response_images_inner_inner.py test/test_header_account_notification.py test/test_header_state.py test/test_ignored_response.py test/test_image_content_profanity_level.py +test/test_imported_agent_approval_notification_frequency.py test/test_imported_site_type.py test/test_live_event.py test/test_live_event_extra_info.py test/test_live_event_type.py -test/test_lock_comment200_response.py test/test_media_asset.py test/test_mention_auto_complete_mode.py test/test_meta_item.py +test/test_moderation_api.py +test/test_moderation_api_child_comments_response.py +test/test_moderation_api_comment.py +test/test_moderation_api_comment_log.py +test/test_moderation_api_comment_response.py +test/test_moderation_api_count_comments_response.py +test/test_moderation_api_get_comment_ids_response.py +test/test_moderation_api_get_comments_response.py +test/test_moderation_api_get_logs_response.py +test/test_moderation_comment_search_response.py +test/test_moderation_export_response.py +test/test_moderation_export_status_response.py +test/test_moderation_filter.py +test/test_moderation_page_search_projected.py +test/test_moderation_page_search_response.py +test/test_moderation_site_search_projected.py +test/test_moderation_site_search_response.py +test/test_moderation_suggest_response.py +test/test_moderation_user_search_projected.py +test/test_moderation_user_search_response.py test/test_moderator.py test/test_notification_and_count.py test/test_notification_object_type.py test/test_notification_type.py +test/test_page_user_entry.py +test/test_page_users_info_response.py +test/test_page_users_offline_response.py +test/test_page_users_online_response.py +test/test_pages_sort_by.py test/test_patch_domain_config_params.py -test/test_patch_hash_tag200_response.py +test/test_patch_domain_config_response.py test/test_patch_page_api_response.py test/test_patch_sso_user_api_response.py test/test_pending_comment_to_sync_outbound.py -test/test_pin_comment200_response.py +test/test_post_remove_comment_response.py +test/test_pre_ban_summary.py test/test_pub_sub_comment.py test/test_pub_sub_comment_base.py test/test_pub_sub_vote.py @@ -1016,7 +1022,9 @@ test/test_public_block_from_comment_params.py test/test_public_comment.py test/test_public_comment_base.py test/test_public_feed_posts_response.py +test/test_public_page.py test/test_public_vote.py +test/test_put_domain_config_response.py test/test_put_sso_user_api_response.py test/test_query_predicate.py test/test_query_predicate_value.py @@ -1029,11 +1037,10 @@ test/test_question_result_aggregation_overall.py test/test_question_sub_question_visibility.py test/test_question_when_save.py test/test_react_body_params.py -test/test_react_feed_post_public200_response.py test/test_react_feed_post_response.py test/test_record_string_before_string_or_null_after_string_or_null_value.py -test/test_record_string_string_or_number_value.py -test/test_render_email_template200_response.py +test/test_remove_comment_action_response.py +test/test_remove_user_badge_response.py test/test_render_email_template_body.py test/test_render_email_template_response.py test/test_renderable_user_notification.py @@ -1041,26 +1048,27 @@ test/test_repeat_comment_check_ignored_reason.py test/test_repeat_comment_handling_action.py test/test_replace_tenant_package_body.py test/test_replace_tenant_user_body.py -test/test_reset_user_notifications200_response.py test/test_reset_user_notifications_response.py -test/test_save_comment200_response.py -test/test_save_comment_response.py test/test_save_comment_response_optimized.py +test/test_save_comments_bulk_response.py test/test_save_comments_response_with_presence.py -test/test_search_users200_response.py test/test_search_users_response.py +test/test_search_users_result.py test/test_search_users_sectioned_response.py -test/test_set_comment_text200_response.py +test/test_set_comment_approved_response.py +test/test_set_comment_text_params.py +test/test_set_comment_text_response.py test/test_set_comment_text_result.py +test/test_set_user_trust_factor_response.py test/test_size_preset.py test/test_sort_directions.py test/test_sortdir.py test/test_spam_rule.py test/test_sso_security_level.py +test/test_tenant_badge.py test/test_tenant_hash_tag.py test/test_tenant_package.py test/test_tos_config.py -test/test_un_block_comment_public200_response.py test/test_un_block_from_comment_params.py test/test_unblock_success.py test/test_updatable_comment_params.py @@ -1080,9 +1088,10 @@ test/test_update_subscription_api_response.py test/test_update_tenant_body.py test/test_update_tenant_package_body.py test/test_update_tenant_user_body.py -test/test_update_user_badge200_response.py test/test_update_user_badge_params.py -test/test_update_user_notification_status200_response.py +test/test_update_user_notification_comment_subscription_status_response.py +test/test_update_user_notification_page_subscription_status_response.py +test/test_update_user_notification_status_response.py test/test_upload_image_response.py test/test_user.py test/test_user_badge.py @@ -1096,8 +1105,8 @@ test/test_user_search_result.py test/test_user_search_section.py test/test_user_search_section_result.py test/test_user_session_info.py +test/test_users_list_location.py test/test_vote_body_params.py -test/test_vote_comment200_response.py test/test_vote_delete_response.py test/test_vote_response.py test/test_vote_response_status.py diff --git a/client/README.md b/client/README.md index a8252a8..94be8b1 100644 --- a/client/README.md +++ b/client/README.md @@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 0.0.0 -- Package version: 1.2.0 +- Package version: 1.2.1 - Generator version: 7.11.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -66,18 +66,17 @@ configuration = client.Configuration( # Enter a context with an instance of the API client with client.ApiClient(configuration) as api_client: # Create an instance of the API class - api_instance = client.PublicApi(api_client) - tenant_id = 'tenant_id_example' # str | + api_instance = client.ModerationApi(api_client) comment_id = 'comment_id_example' # str | - public_block_from_comment_params = client.PublicBlockFromCommentParams() # PublicBlockFromCommentParams | + vote_id = 'vote_id_example' # str | sso = 'sso_example' # str | (optional) try: - api_response = api_instance.block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso=sso) - print("The response of PublicApi->block_from_comment_public:\n") + api_response = api_instance.delete_moderation_vote(comment_id, vote_id, sso=sso) + print("The response of ModerationApi->delete_moderation_vote:\n") pprint(api_response) except ApiException as e: - print("Exception when calling PublicApi->block_from_comment_public: %s\n" % e) + print("Exception when calling ModerationApi->delete_moderation_vote: %s\n" % e) ``` @@ -87,26 +86,86 @@ All URIs are relative to *https://fastcomments.com* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*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 | @@ -241,9 +300,14 @@ Class | Method | HTTP request | Description ## Documentation For Models - [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) @@ -255,8 +319,11 @@ 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) - [APISSOUser](docs/APISSOUser.md) + - [APISaveCommentResponse](docs/APISaveCommentResponse.md) - [APIStatus](docs/APIStatus.md) - [APITenant](docs/APITenant.md) - [APITenantDailyUsage](docs/APITenantDailyUsage.md) @@ -264,16 +331,17 @@ Class | Method | HTTP request | Description - [APITicketDetail](docs/APITicketDetail.md) - [APITicketFile](docs/APITicketFile.md) - [APIUserSubscription](docs/APIUserSubscription.md) - - [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) @@ -282,24 +350,30 @@ Class | Method | HTTP request | Description - [AggregationResponse](docs/AggregationResponse.md) - [AggregationResponseStats](docs/AggregationResponseStats.md) - [AggregationValue](docs/AggregationValue.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) @@ -314,56 +388,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) - [CreateAPISSOUserData](docs/CreateAPISSOUserData.md) - [CreateAPIUserSubscriptionData](docs/CreateAPIUserSubscriptionData.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) @@ -382,126 +442,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) @@ -512,7 +570,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) @@ -525,11 +585,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) @@ -537,26 +596,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) - [SORTDIR](docs/SORTDIR.md) - [SSOSecurityLevel](docs/SSOSecurityLevel.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) - [SortDirections](docs/SortDirections.md) - [SpamRule](docs/SpamRule.md) - [TOSConfig](docs/TOSConfig.md) + - [TenantBadge](docs/TenantBadge.md) - [TenantHashTag](docs/TenantHashTag.md) - [TenantPackage](docs/TenantPackage.md) - - [UnBlockCommentPublic200Response](docs/UnBlockCommentPublic200Response.md) - [UnBlockFromCommentParams](docs/UnBlockFromCommentParams.md) - [UnblockSuccess](docs/UnblockSuccess.md) - [UpdatableCommentParams](docs/UpdatableCommentParams.md) @@ -576,9 +636,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) @@ -592,8 +653,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) - [VoteResponseStatus](docs/VoteResponseStatus.md) diff --git a/client/__init__.py b/client/__init__.py index 6070f5e..f907b19 100644 --- a/client/__init__.py +++ b/client/__init__.py @@ -14,9 +14,10 @@ """ # noqa: E501 -__version__ = "1.2.0" +__version__ = "1.2.1" # import apis into sdk package +from client.api.moderation_api import ModerationApi from client.api.public_api import PublicApi from client.api.default_api import DefaultApi @@ -33,9 +34,14 @@ # import models into sdk package from client.models.api_audit_log import APIAuditLog +from client.models.api_ban_user_change_log import APIBanUserChangeLog +from client.models.api_ban_user_changed_values import APIBanUserChangedValues +from client.models.api_banned_user import APIBannedUser +from client.models.api_banned_user_with_multi_match_info import APIBannedUserWithMultiMatchInfo from client.models.api_comment import APIComment from client.models.api_comment_base import APICommentBase from client.models.api_comment_base_meta import APICommentBaseMeta +from client.models.api_comment_common_banned_user import APICommentCommonBannedUser from client.models.api_create_user_badge_response import APICreateUserBadgeResponse from client.models.api_domain_configuration import APIDomainConfiguration from client.models.api_empty_response import APIEmptyResponse @@ -47,8 +53,11 @@ from client.models.api_get_user_badge_progress_response import APIGetUserBadgeProgressResponse from client.models.api_get_user_badge_response import APIGetUserBadgeResponse from client.models.api_get_user_badges_response import APIGetUserBadgesResponse +from client.models.api_moderate_get_user_ban_preferences_response import APIModerateGetUserBanPreferencesResponse +from client.models.api_moderate_user_ban_preferences import APIModerateUserBanPreferences from client.models.api_page import APIPage from client.models.apisso_user import APISSOUser +from client.models.api_save_comment_response import APISaveCommentResponse from client.models.api_status import APIStatus from client.models.api_tenant import APITenant from client.models.api_tenant_daily_usage import APITenantDailyUsage @@ -56,16 +65,17 @@ from client.models.api_ticket_detail import APITicketDetail from client.models.api_ticket_file import APITicketFile from client.models.api_user_subscription import APIUserSubscription -from client.models.add_domain_config200_response import AddDomainConfig200Response -from client.models.add_domain_config200_response_any_of import AddDomainConfig200ResponseAnyOf from client.models.add_domain_config_params import AddDomainConfigParams -from client.models.add_hash_tag200_response import AddHashTag200Response -from client.models.add_hash_tags_bulk200_response import AddHashTagsBulk200Response +from client.models.add_domain_config_response import AddDomainConfigResponse +from client.models.add_domain_config_response_any_of import AddDomainConfigResponseAnyOf from client.models.add_page_api_response import AddPageAPIResponse from client.models.add_sso_user_api_response import AddSSOUserAPIResponse -from client.models.aggregate_question_results200_response import AggregateQuestionResults200Response +from client.models.adjust_comment_votes_params import AdjustCommentVotesParams +from client.models.adjust_votes_response import AdjustVotesResponse from client.models.aggregate_question_results_response import AggregateQuestionResultsResponse +from client.models.aggregate_response import AggregateResponse from client.models.aggregate_time_bucket import AggregateTimeBucket +from client.models.aggregation_api_error import AggregationAPIError from client.models.aggregation_item import AggregationItem from client.models.aggregation_op_type import AggregationOpType from client.models.aggregation_operation import AggregationOperation @@ -74,24 +84,30 @@ from client.models.aggregation_response import AggregationResponse from client.models.aggregation_response_stats import AggregationResponseStats from client.models.aggregation_value import AggregationValue +from client.models.award_user_badge_response import AwardUserBadgeResponse +from client.models.ban_user_from_comment_result import BanUserFromCommentResult +from client.models.ban_user_undo_params import BanUserUndoParams +from client.models.banned_user_match import BannedUserMatch +from client.models.banned_user_match_matched_on_value import BannedUserMatchMatchedOnValue +from client.models.banned_user_match_type import BannedUserMatchType from client.models.billing_info import BillingInfo from client.models.block_from_comment_params import BlockFromCommentParams -from client.models.block_from_comment_public200_response import BlockFromCommentPublic200Response from client.models.block_success import BlockSuccess +from client.models.build_moderation_filter_params import BuildModerationFilterParams +from client.models.build_moderation_filter_response import BuildModerationFilterResponse from client.models.bulk_aggregate_question_item import BulkAggregateQuestionItem -from client.models.bulk_aggregate_question_results200_response import BulkAggregateQuestionResults200Response from client.models.bulk_aggregate_question_results_request import BulkAggregateQuestionResultsRequest from client.models.bulk_aggregate_question_results_response import BulkAggregateQuestionResultsResponse from client.models.bulk_create_hash_tags_body import BulkCreateHashTagsBody from client.models.bulk_create_hash_tags_body_tags_inner import BulkCreateHashTagsBodyTagsInner from client.models.bulk_create_hash_tags_response import BulkCreateHashTagsResponse +from client.models.bulk_create_hash_tags_response_results_inner import BulkCreateHashTagsResponseResultsInner +from client.models.bulk_pre_ban_params import BulkPreBanParams +from client.models.bulk_pre_ban_summary import BulkPreBanSummary from client.models.change_comment_pin_status_response import ChangeCommentPinStatusResponse -from client.models.change_ticket_state200_response import ChangeTicketState200Response from client.models.change_ticket_state_body import ChangeTicketStateBody from client.models.change_ticket_state_response import ChangeTicketStateResponse from client.models.check_blocked_comments_response import CheckBlockedCommentsResponse -from client.models.checked_comments_for_blocked200_response import CheckedCommentsForBlocked200Response -from client.models.combine_comments_with_question_results200_response import CombineCommentsWithQuestionResults200Response from client.models.combine_question_results_with_comments_response import CombineQuestionResultsWithCommentsResponse from client.models.comment_data import CommentData from client.models.comment_html_rendering_mode import CommentHTMLRenderingMode @@ -106,56 +122,42 @@ from client.models.comment_user_hash_tag_info import CommentUserHashTagInfo from client.models.comment_user_mention_info import CommentUserMentionInfo from client.models.commenter_name_formats import CommenterNameFormats +from client.models.comments_by_ids_params import CommentsByIdsParams from client.models.create_api_page_data import CreateAPIPageData from client.models.create_apisso_user_data import CreateAPISSOUserData from client.models.create_api_user_subscription_data import CreateAPIUserSubscriptionData from client.models.create_comment_params import CreateCommentParams -from client.models.create_comment_public200_response import CreateCommentPublic200Response -from client.models.create_email_template200_response import CreateEmailTemplate200Response from client.models.create_email_template_body import CreateEmailTemplateBody from client.models.create_email_template_response import CreateEmailTemplateResponse -from client.models.create_feed_post200_response import CreateFeedPost200Response from client.models.create_feed_post_params import CreateFeedPostParams -from client.models.create_feed_post_public200_response import CreateFeedPostPublic200Response from client.models.create_feed_post_response import CreateFeedPostResponse from client.models.create_feed_posts_response import CreateFeedPostsResponse from client.models.create_hash_tag_body import CreateHashTagBody from client.models.create_hash_tag_response import CreateHashTagResponse -from client.models.create_moderator200_response import CreateModerator200Response from client.models.create_moderator_body import CreateModeratorBody from client.models.create_moderator_response import CreateModeratorResponse -from client.models.create_question_config200_response import CreateQuestionConfig200Response from client.models.create_question_config_body import CreateQuestionConfigBody from client.models.create_question_config_response import CreateQuestionConfigResponse -from client.models.create_question_result200_response import CreateQuestionResult200Response from client.models.create_question_result_body import CreateQuestionResultBody from client.models.create_question_result_response import CreateQuestionResultResponse from client.models.create_subscription_api_response import CreateSubscriptionAPIResponse -from client.models.create_tenant200_response import CreateTenant200Response from client.models.create_tenant_body import CreateTenantBody -from client.models.create_tenant_package200_response import CreateTenantPackage200Response from client.models.create_tenant_package_body import CreateTenantPackageBody from client.models.create_tenant_package_response import CreateTenantPackageResponse from client.models.create_tenant_response import CreateTenantResponse -from client.models.create_tenant_user200_response import CreateTenantUser200Response from client.models.create_tenant_user_body import CreateTenantUserBody from client.models.create_tenant_user_response import CreateTenantUserResponse -from client.models.create_ticket200_response import CreateTicket200Response from client.models.create_ticket_body import CreateTicketBody from client.models.create_ticket_response import CreateTicketResponse -from client.models.create_user_badge200_response import CreateUserBadge200Response from client.models.create_user_badge_params import CreateUserBadgeParams +from client.models.create_v1_page_react import CreateV1PageReact from client.models.custom_config_parameters import CustomConfigParameters from client.models.custom_email_template import CustomEmailTemplate -from client.models.delete_comment200_response import DeleteComment200Response from client.models.delete_comment_action import DeleteCommentAction -from client.models.delete_comment_public200_response import DeleteCommentPublic200Response from client.models.delete_comment_result import DeleteCommentResult -from client.models.delete_comment_vote200_response import DeleteCommentVote200Response -from client.models.delete_domain_config200_response import DeleteDomainConfig200Response -from client.models.delete_feed_post_public200_response import DeleteFeedPostPublic200Response -from client.models.delete_feed_post_public200_response_any_of import DeleteFeedPostPublic200ResponseAnyOf -from client.models.delete_hash_tag_request import DeleteHashTagRequest +from client.models.delete_domain_config_response import DeleteDomainConfigResponse +from client.models.delete_feed_post_public_response import DeleteFeedPostPublicResponse +from client.models.delete_hash_tag_request_body import DeleteHashTagRequestBody from client.models.delete_page_api_response import DeletePageAPIResponse from client.models.delete_sso_user_api_response import DeleteSSOUserAPIResponse from client.models.delete_subscription_api_response import DeleteSubscriptionAPIResponse @@ -174,126 +176,124 @@ from client.models.feed_posts_stats_response import FeedPostsStatsResponse from client.models.find_comments_by_range_item import FindCommentsByRangeItem from client.models.find_comments_by_range_response import FindCommentsByRangeResponse -from client.models.flag_comment200_response import FlagComment200Response -from client.models.flag_comment_public200_response import FlagCommentPublic200Response from client.models.flag_comment_response import FlagCommentResponse -from client.models.get_audit_logs200_response import GetAuditLogs200Response from client.models.get_audit_logs_response import GetAuditLogsResponse -from client.models.get_cached_notification_count200_response import GetCachedNotificationCount200Response +from client.models.get_banned_users_count_response import GetBannedUsersCountResponse +from client.models.get_banned_users_from_comment_response import GetBannedUsersFromCommentResponse from client.models.get_cached_notification_count_response import GetCachedNotificationCountResponse -from client.models.get_comment200_response import GetComment200Response -from client.models.get_comment_text200_response import GetCommentText200Response -from client.models.get_comment_vote_user_names200_response import GetCommentVoteUserNames200Response +from client.models.get_comment_ban_status_response import GetCommentBanStatusResponse +from client.models.get_comment_text_response import GetCommentTextResponse from client.models.get_comment_vote_user_names_success_response import GetCommentVoteUserNamesSuccessResponse -from client.models.get_comments200_response import GetComments200Response -from client.models.get_comments_public200_response import GetCommentsPublic200Response +from client.models.get_comments_for_user_response import GetCommentsForUserResponse from client.models.get_comments_response_public_comment import GetCommentsResponsePublicComment from client.models.get_comments_response_with_presence_public_comment import GetCommentsResponseWithPresencePublicComment -from client.models.get_domain_config200_response import GetDomainConfig200Response -from client.models.get_domain_configs200_response import GetDomainConfigs200Response -from client.models.get_domain_configs200_response_any_of import GetDomainConfigs200ResponseAnyOf -from client.models.get_domain_configs200_response_any_of1 import GetDomainConfigs200ResponseAnyOf1 -from client.models.get_email_template200_response import GetEmailTemplate200Response -from client.models.get_email_template_definitions200_response import GetEmailTemplateDefinitions200Response +from client.models.get_domain_config_response import GetDomainConfigResponse +from client.models.get_domain_configs_response import GetDomainConfigsResponse +from client.models.get_domain_configs_response_any_of import GetDomainConfigsResponseAnyOf +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 from client.models.get_email_template_definitions_response import GetEmailTemplateDefinitionsResponse -from client.models.get_email_template_render_errors200_response import GetEmailTemplateRenderErrors200Response from client.models.get_email_template_render_errors_response import GetEmailTemplateRenderErrorsResponse from client.models.get_email_template_response import GetEmailTemplateResponse -from client.models.get_email_templates200_response import GetEmailTemplates200Response from client.models.get_email_templates_response import GetEmailTemplatesResponse -from client.models.get_event_log200_response import GetEventLog200Response from client.models.get_event_log_response import GetEventLogResponse -from client.models.get_feed_posts200_response import GetFeedPosts200Response -from client.models.get_feed_posts_public200_response import GetFeedPostsPublic200Response from client.models.get_feed_posts_response import GetFeedPostsResponse -from client.models.get_feed_posts_stats200_response import GetFeedPostsStats200Response -from client.models.get_hash_tags200_response import GetHashTags200Response +from client.models.get_gifs_search_response import GetGifsSearchResponse +from client.models.get_gifs_trending_response import GetGifsTrendingResponse from client.models.get_hash_tags_response import GetHashTagsResponse -from client.models.get_moderator200_response import GetModerator200Response from client.models.get_moderator_response import GetModeratorResponse -from client.models.get_moderators200_response import GetModerators200Response from client.models.get_moderators_response import GetModeratorsResponse from client.models.get_my_notifications_response import GetMyNotificationsResponse -from client.models.get_notification_count200_response import GetNotificationCount200Response from client.models.get_notification_count_response import GetNotificationCountResponse -from client.models.get_notifications200_response import GetNotifications200Response from client.models.get_notifications_response import GetNotificationsResponse from client.models.get_page_by_urlid_api_response import GetPageByURLIdAPIResponse from client.models.get_pages_api_response import GetPagesAPIResponse -from client.models.get_pending_webhook_event_count200_response import GetPendingWebhookEventCount200Response from client.models.get_pending_webhook_event_count_response import GetPendingWebhookEventCountResponse -from client.models.get_pending_webhook_events200_response import GetPendingWebhookEvents200Response from client.models.get_pending_webhook_events_response import GetPendingWebhookEventsResponse from client.models.get_public_feed_posts_response import GetPublicFeedPostsResponse -from client.models.get_question_config200_response import GetQuestionConfig200Response +from client.models.get_public_pages_response import GetPublicPagesResponse from client.models.get_question_config_response import GetQuestionConfigResponse -from client.models.get_question_configs200_response import GetQuestionConfigs200Response from client.models.get_question_configs_response import GetQuestionConfigsResponse -from client.models.get_question_result200_response import GetQuestionResult200Response from client.models.get_question_result_response import GetQuestionResultResponse -from client.models.get_question_results200_response import GetQuestionResults200Response from client.models.get_question_results_response import GetQuestionResultsResponse from client.models.get_sso_user_by_email_api_response import GetSSOUserByEmailAPIResponse from client.models.get_sso_user_by_id_api_response import GetSSOUserByIdAPIResponse -from client.models.get_sso_users200_response import GetSSOUsers200Response +from client.models.get_sso_users_response import GetSSOUsersResponse from client.models.get_subscriptions_api_response import GetSubscriptionsAPIResponse -from client.models.get_tenant200_response import GetTenant200Response -from client.models.get_tenant_daily_usages200_response import GetTenantDailyUsages200Response from client.models.get_tenant_daily_usages_response import GetTenantDailyUsagesResponse -from client.models.get_tenant_package200_response import GetTenantPackage200Response +from client.models.get_tenant_manual_badges_response import GetTenantManualBadgesResponse from client.models.get_tenant_package_response import GetTenantPackageResponse -from client.models.get_tenant_packages200_response import GetTenantPackages200Response from client.models.get_tenant_packages_response import GetTenantPackagesResponse from client.models.get_tenant_response import GetTenantResponse -from client.models.get_tenant_user200_response import GetTenantUser200Response from client.models.get_tenant_user_response import GetTenantUserResponse -from client.models.get_tenant_users200_response import GetTenantUsers200Response from client.models.get_tenant_users_response import GetTenantUsersResponse -from client.models.get_tenants200_response import GetTenants200Response from client.models.get_tenants_response import GetTenantsResponse -from client.models.get_ticket200_response import GetTicket200Response from client.models.get_ticket_response import GetTicketResponse -from client.models.get_tickets200_response import GetTickets200Response from client.models.get_tickets_response import GetTicketsResponse -from client.models.get_user200_response import GetUser200Response -from client.models.get_user_badge200_response import GetUserBadge200Response -from client.models.get_user_badge_progress_by_id200_response import GetUserBadgeProgressById200Response -from client.models.get_user_badge_progress_list200_response import GetUserBadgeProgressList200Response -from client.models.get_user_badges200_response import GetUserBadges200Response -from client.models.get_user_notification_count200_response import GetUserNotificationCount200Response +from client.models.get_translations_response import GetTranslationsResponse +from client.models.get_user_internal_profile_response import GetUserInternalProfileResponse +from client.models.get_user_internal_profile_response_profile import GetUserInternalProfileResponseProfile +from client.models.get_user_manual_badges_response import GetUserManualBadgesResponse from client.models.get_user_notification_count_response import GetUserNotificationCountResponse -from client.models.get_user_notifications200_response import GetUserNotifications200Response -from client.models.get_user_presence_statuses200_response import GetUserPresenceStatuses200Response from client.models.get_user_presence_statuses_response import GetUserPresenceStatusesResponse -from client.models.get_user_reacts_public200_response import GetUserReactsPublic200Response from client.models.get_user_response import GetUserResponse -from client.models.get_votes200_response import GetVotes200Response -from client.models.get_votes_for_user200_response import GetVotesForUser200Response +from client.models.get_user_trust_factor_response import GetUserTrustFactorResponse +from client.models.get_v1_page_likes import GetV1PageLikes +from client.models.get_v2_page_react_users_response import GetV2PageReactUsersResponse +from client.models.get_v2_page_reacts import GetV2PageReacts from client.models.get_votes_for_user_response import GetVotesForUserResponse from client.models.get_votes_response import GetVotesResponse +from client.models.gif_get_large_response import GifGetLargeResponse from client.models.gif_rating import GifRating +from client.models.gif_search_internal_error import GifSearchInternalError +from client.models.gif_search_response import GifSearchResponse +from client.models.gif_search_response_images_inner_inner import GifSearchResponseImagesInnerInner from client.models.header_account_notification import HeaderAccountNotification from client.models.header_state import HeaderState from client.models.ignored_response import IgnoredResponse from client.models.image_content_profanity_level import ImageContentProfanityLevel +from client.models.imported_agent_approval_notification_frequency import ImportedAgentApprovalNotificationFrequency from client.models.imported_site_type import ImportedSiteType from client.models.live_event import LiveEvent from client.models.live_event_extra_info import LiveEventExtraInfo from client.models.live_event_type import LiveEventType -from client.models.lock_comment200_response import LockComment200Response from client.models.media_asset import MediaAsset from client.models.mention_auto_complete_mode import MentionAutoCompleteMode from client.models.meta_item import MetaItem +from client.models.moderation_api_child_comments_response import ModerationAPIChildCommentsResponse +from client.models.moderation_api_comment import ModerationAPIComment +from client.models.moderation_api_comment_log import ModerationAPICommentLog +from client.models.moderation_api_comment_response import ModerationAPICommentResponse +from client.models.moderation_api_count_comments_response import ModerationAPICountCommentsResponse +from client.models.moderation_api_get_comment_ids_response import ModerationAPIGetCommentIdsResponse +from client.models.moderation_api_get_comments_response import ModerationAPIGetCommentsResponse +from client.models.moderation_api_get_logs_response import ModerationAPIGetLogsResponse +from client.models.moderation_comment_search_response import ModerationCommentSearchResponse +from client.models.moderation_export_response import ModerationExportResponse +from client.models.moderation_export_status_response import ModerationExportStatusResponse +from client.models.moderation_filter import ModerationFilter +from client.models.moderation_page_search_projected import ModerationPageSearchProjected +from client.models.moderation_page_search_response import ModerationPageSearchResponse +from client.models.moderation_site_search_projected import ModerationSiteSearchProjected +from client.models.moderation_site_search_response import ModerationSiteSearchResponse +from client.models.moderation_suggest_response import ModerationSuggestResponse +from client.models.moderation_user_search_projected import ModerationUserSearchProjected +from client.models.moderation_user_search_response import ModerationUserSearchResponse from client.models.moderator import Moderator from client.models.notification_and_count import NotificationAndCount from client.models.notification_object_type import NotificationObjectType from client.models.notification_type import NotificationType +from client.models.page_user_entry import PageUserEntry +from client.models.page_users_info_response import PageUsersInfoResponse +from client.models.page_users_offline_response import PageUsersOfflineResponse +from client.models.page_users_online_response import PageUsersOnlineResponse +from client.models.pages_sort_by import PagesSortBy from client.models.patch_domain_config_params import PatchDomainConfigParams -from client.models.patch_hash_tag200_response import PatchHashTag200Response +from client.models.patch_domain_config_response import PatchDomainConfigResponse from client.models.patch_page_api_response import PatchPageAPIResponse from client.models.patch_sso_user_api_response import PatchSSOUserAPIResponse from client.models.pending_comment_to_sync_outbound import PendingCommentToSyncOutbound -from client.models.pin_comment200_response import PinComment200Response +from client.models.post_remove_comment_response import PostRemoveCommentResponse +from client.models.pre_ban_summary import PreBanSummary from client.models.pub_sub_comment import PubSubComment from client.models.pub_sub_comment_base import PubSubCommentBase from client.models.pub_sub_vote import PubSubVote @@ -304,7 +304,9 @@ from client.models.public_comment import PublicComment from client.models.public_comment_base import PublicCommentBase from client.models.public_feed_posts_response import PublicFeedPostsResponse +from client.models.public_page import PublicPage from client.models.public_vote import PublicVote +from client.models.put_domain_config_response import PutDomainConfigResponse from client.models.put_sso_user_api_response import PutSSOUserAPIResponse from client.models.query_predicate import QueryPredicate from client.models.query_predicate_value import QueryPredicateValue @@ -317,11 +319,10 @@ from client.models.question_sub_question_visibility import QuestionSubQuestionVisibility from client.models.question_when_save import QuestionWhenSave from client.models.react_body_params import ReactBodyParams -from client.models.react_feed_post_public200_response import ReactFeedPostPublic200Response from client.models.react_feed_post_response import ReactFeedPostResponse from client.models.record_string_before_string_or_null_after_string_or_null_value import RecordStringBeforeStringOrNullAfterStringOrNullValue -from client.models.record_string_string_or_number_value import RecordStringStringOrNumberValue -from client.models.render_email_template200_response import RenderEmailTemplate200Response +from client.models.remove_comment_action_response import RemoveCommentActionResponse +from client.models.remove_user_badge_response import RemoveUserBadgeResponse from client.models.render_email_template_body import RenderEmailTemplateBody from client.models.render_email_template_response import RenderEmailTemplateResponse from client.models.renderable_user_notification import RenderableUserNotification @@ -329,26 +330,27 @@ from client.models.repeat_comment_handling_action import RepeatCommentHandlingAction from client.models.replace_tenant_package_body import ReplaceTenantPackageBody from client.models.replace_tenant_user_body import ReplaceTenantUserBody -from client.models.reset_user_notifications200_response import ResetUserNotifications200Response from client.models.reset_user_notifications_response import ResetUserNotificationsResponse from client.models.sortdir import SORTDIR from client.models.sso_security_level import SSOSecurityLevel -from client.models.save_comment200_response import SaveComment200Response -from client.models.save_comment_response import SaveCommentResponse from client.models.save_comment_response_optimized import SaveCommentResponseOptimized +from client.models.save_comments_bulk_response import SaveCommentsBulkResponse from client.models.save_comments_response_with_presence import SaveCommentsResponseWithPresence -from client.models.search_users200_response import SearchUsers200Response from client.models.search_users_response import SearchUsersResponse +from client.models.search_users_result import SearchUsersResult from client.models.search_users_sectioned_response import SearchUsersSectionedResponse -from client.models.set_comment_text200_response import SetCommentText200Response +from client.models.set_comment_approved_response import SetCommentApprovedResponse +from client.models.set_comment_text_params import SetCommentTextParams +from client.models.set_comment_text_response import SetCommentTextResponse from client.models.set_comment_text_result import SetCommentTextResult +from client.models.set_user_trust_factor_response import SetUserTrustFactorResponse from client.models.size_preset import SizePreset from client.models.sort_directions import SortDirections from client.models.spam_rule import SpamRule from client.models.tos_config import TOSConfig +from client.models.tenant_badge import TenantBadge from client.models.tenant_hash_tag import TenantHashTag from client.models.tenant_package import TenantPackage -from client.models.un_block_comment_public200_response import UnBlockCommentPublic200Response from client.models.un_block_from_comment_params import UnBlockFromCommentParams from client.models.unblock_success import UnblockSuccess from client.models.updatable_comment_params import UpdatableCommentParams @@ -368,9 +370,10 @@ from client.models.update_tenant_body import UpdateTenantBody from client.models.update_tenant_package_body import UpdateTenantPackageBody from client.models.update_tenant_user_body import UpdateTenantUserBody -from client.models.update_user_badge200_response import UpdateUserBadge200Response from client.models.update_user_badge_params import UpdateUserBadgeParams -from client.models.update_user_notification_status200_response import UpdateUserNotificationStatus200Response +from client.models.update_user_notification_comment_subscription_status_response import UpdateUserNotificationCommentSubscriptionStatusResponse +from client.models.update_user_notification_page_subscription_status_response import UpdateUserNotificationPageSubscriptionStatusResponse +from client.models.update_user_notification_status_response import UpdateUserNotificationStatusResponse from client.models.upload_image_response import UploadImageResponse from client.models.user import User from client.models.user_badge import UserBadge @@ -384,8 +387,8 @@ from client.models.user_search_section import UserSearchSection from client.models.user_search_section_result import UserSearchSectionResult from client.models.user_session_info import UserSessionInfo +from client.models.users_list_location import UsersListLocation from client.models.vote_body_params import VoteBodyParams -from client.models.vote_comment200_response import VoteComment200Response from client.models.vote_delete_response import VoteDeleteResponse from client.models.vote_response import VoteResponse from client.models.vote_response_status import VoteResponseStatus diff --git a/client/api/__init__.py b/client/api/__init__.py index 2c03893..101c62d 100644 --- a/client/api/__init__.py +++ b/client/api/__init__.py @@ -1,6 +1,7 @@ # flake8: noqa # import apis into api package +from client.api.moderation_api import ModerationApi from client.api.public_api import PublicApi from client.api.default_api import DefaultApi diff --git a/client/api/default_api.py b/client/api/default_api.py index 9675341..c449689 100644 --- a/client/api/default_api.py +++ b/client/api/default_api.py @@ -19,118 +19,120 @@ from datetime import datetime from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr, field_validator from typing import List, Optional, Union -from client.models.add_domain_config200_response import AddDomainConfig200Response +from client.models.api_create_user_badge_response import APICreateUserBadgeResponse +from client.models.api_empty_response import APIEmptyResponse +from client.models.api_empty_success_response import APIEmptySuccessResponse +from client.models.api_get_comment_response import APIGetCommentResponse +from client.models.api_get_comments_response import APIGetCommentsResponse +from client.models.api_get_user_badge_progress_list_response import APIGetUserBadgeProgressListResponse +from client.models.api_get_user_badge_progress_response import APIGetUserBadgeProgressResponse +from client.models.api_get_user_badge_response import APIGetUserBadgeResponse +from client.models.api_get_user_badges_response import APIGetUserBadgesResponse +from client.models.api_save_comment_response import APISaveCommentResponse from client.models.add_domain_config_params import AddDomainConfigParams -from client.models.add_hash_tag200_response import AddHashTag200Response -from client.models.add_hash_tags_bulk200_response import AddHashTagsBulk200Response +from client.models.add_domain_config_response import AddDomainConfigResponse from client.models.add_page_api_response import AddPageAPIResponse from client.models.add_sso_user_api_response import AddSSOUserAPIResponse -from client.models.aggregate_question_results200_response import AggregateQuestionResults200Response +from client.models.aggregate_question_results_response import AggregateQuestionResultsResponse +from client.models.aggregate_response import AggregateResponse from client.models.aggregate_time_bucket import AggregateTimeBucket from client.models.aggregation_request import AggregationRequest -from client.models.aggregation_response import AggregationResponse from client.models.block_from_comment_params import BlockFromCommentParams -from client.models.block_from_comment_public200_response import BlockFromCommentPublic200Response -from client.models.bulk_aggregate_question_results200_response import BulkAggregateQuestionResults200Response +from client.models.block_success import BlockSuccess from client.models.bulk_aggregate_question_results_request import BulkAggregateQuestionResultsRequest +from client.models.bulk_aggregate_question_results_response import BulkAggregateQuestionResultsResponse from client.models.bulk_create_hash_tags_body import BulkCreateHashTagsBody -from client.models.change_ticket_state200_response import ChangeTicketState200Response +from client.models.bulk_create_hash_tags_response import BulkCreateHashTagsResponse from client.models.change_ticket_state_body import ChangeTicketStateBody -from client.models.combine_comments_with_question_results200_response import CombineCommentsWithQuestionResults200Response +from client.models.change_ticket_state_response import ChangeTicketStateResponse +from client.models.combine_question_results_with_comments_response import CombineQuestionResultsWithCommentsResponse from client.models.create_api_page_data import CreateAPIPageData from client.models.create_apisso_user_data import CreateAPISSOUserData from client.models.create_api_user_subscription_data import CreateAPIUserSubscriptionData from client.models.create_comment_params import CreateCommentParams -from client.models.create_email_template200_response import CreateEmailTemplate200Response from client.models.create_email_template_body import CreateEmailTemplateBody -from client.models.create_feed_post200_response import CreateFeedPost200Response +from client.models.create_email_template_response import CreateEmailTemplateResponse from client.models.create_feed_post_params import CreateFeedPostParams +from client.models.create_feed_posts_response import CreateFeedPostsResponse from client.models.create_hash_tag_body import CreateHashTagBody -from client.models.create_moderator200_response import CreateModerator200Response +from client.models.create_hash_tag_response import CreateHashTagResponse from client.models.create_moderator_body import CreateModeratorBody -from client.models.create_question_config200_response import CreateQuestionConfig200Response +from client.models.create_moderator_response import CreateModeratorResponse from client.models.create_question_config_body import CreateQuestionConfigBody -from client.models.create_question_result200_response import CreateQuestionResult200Response +from client.models.create_question_config_response import CreateQuestionConfigResponse from client.models.create_question_result_body import CreateQuestionResultBody +from client.models.create_question_result_response import CreateQuestionResultResponse from client.models.create_subscription_api_response import CreateSubscriptionAPIResponse -from client.models.create_tenant200_response import CreateTenant200Response from client.models.create_tenant_body import CreateTenantBody -from client.models.create_tenant_package200_response import CreateTenantPackage200Response from client.models.create_tenant_package_body import CreateTenantPackageBody -from client.models.create_tenant_user200_response import CreateTenantUser200Response +from client.models.create_tenant_package_response import CreateTenantPackageResponse +from client.models.create_tenant_response import CreateTenantResponse from client.models.create_tenant_user_body import CreateTenantUserBody -from client.models.create_ticket200_response import CreateTicket200Response +from client.models.create_tenant_user_response import CreateTenantUserResponse from client.models.create_ticket_body import CreateTicketBody -from client.models.create_user_badge200_response import CreateUserBadge200Response +from client.models.create_ticket_response import CreateTicketResponse from client.models.create_user_badge_params import CreateUserBadgeParams -from client.models.delete_comment200_response import DeleteComment200Response -from client.models.delete_comment_vote200_response import DeleteCommentVote200Response -from client.models.delete_domain_config200_response import DeleteDomainConfig200Response -from client.models.delete_hash_tag_request import DeleteHashTagRequest +from client.models.delete_comment_result import DeleteCommentResult +from client.models.delete_domain_config_response import DeleteDomainConfigResponse +from client.models.delete_hash_tag_request_body import DeleteHashTagRequestBody from client.models.delete_page_api_response import DeletePageAPIResponse from client.models.delete_sso_user_api_response import DeleteSSOUserAPIResponse from client.models.delete_subscription_api_response import DeleteSubscriptionAPIResponse from client.models.feed_post import FeedPost -from client.models.flag_comment200_response import FlagComment200Response -from client.models.flag_comment_public200_response import FlagCommentPublic200Response -from client.models.get_audit_logs200_response import GetAuditLogs200Response -from client.models.get_cached_notification_count200_response import GetCachedNotificationCount200Response -from client.models.get_comment200_response import GetComment200Response -from client.models.get_comments200_response import GetComments200Response -from client.models.get_domain_config200_response import GetDomainConfig200Response -from client.models.get_domain_configs200_response import GetDomainConfigs200Response -from client.models.get_email_template200_response import GetEmailTemplate200Response -from client.models.get_email_template_definitions200_response import GetEmailTemplateDefinitions200Response -from client.models.get_email_template_render_errors200_response import GetEmailTemplateRenderErrors200Response -from client.models.get_email_templates200_response import GetEmailTemplates200Response -from client.models.get_feed_posts200_response import GetFeedPosts200Response -from client.models.get_hash_tags200_response import GetHashTags200Response -from client.models.get_moderator200_response import GetModerator200Response -from client.models.get_moderators200_response import GetModerators200Response -from client.models.get_notification_count200_response import GetNotificationCount200Response -from client.models.get_notifications200_response import GetNotifications200Response +from client.models.flag_comment_response import FlagCommentResponse +from client.models.get_audit_logs_response import GetAuditLogsResponse +from client.models.get_cached_notification_count_response import GetCachedNotificationCountResponse +from client.models.get_domain_config_response import GetDomainConfigResponse +from client.models.get_domain_configs_response import GetDomainConfigsResponse +from client.models.get_email_template_definitions_response import GetEmailTemplateDefinitionsResponse +from client.models.get_email_template_render_errors_response import GetEmailTemplateRenderErrorsResponse +from client.models.get_email_template_response import GetEmailTemplateResponse +from client.models.get_email_templates_response import GetEmailTemplatesResponse +from client.models.get_feed_posts_response import GetFeedPostsResponse +from client.models.get_hash_tags_response import GetHashTagsResponse +from client.models.get_moderator_response import GetModeratorResponse +from client.models.get_moderators_response import GetModeratorsResponse +from client.models.get_notification_count_response import GetNotificationCountResponse +from client.models.get_notifications_response import GetNotificationsResponse from client.models.get_page_by_urlid_api_response import GetPageByURLIdAPIResponse from client.models.get_pages_api_response import GetPagesAPIResponse -from client.models.get_pending_webhook_event_count200_response import GetPendingWebhookEventCount200Response -from client.models.get_pending_webhook_events200_response import GetPendingWebhookEvents200Response -from client.models.get_question_config200_response import GetQuestionConfig200Response -from client.models.get_question_configs200_response import GetQuestionConfigs200Response -from client.models.get_question_result200_response import GetQuestionResult200Response -from client.models.get_question_results200_response import GetQuestionResults200Response +from client.models.get_pending_webhook_event_count_response import GetPendingWebhookEventCountResponse +from client.models.get_pending_webhook_events_response import GetPendingWebhookEventsResponse +from client.models.get_question_config_response import GetQuestionConfigResponse +from client.models.get_question_configs_response import GetQuestionConfigsResponse +from client.models.get_question_result_response import GetQuestionResultResponse +from client.models.get_question_results_response import GetQuestionResultsResponse from client.models.get_sso_user_by_email_api_response import GetSSOUserByEmailAPIResponse from client.models.get_sso_user_by_id_api_response import GetSSOUserByIdAPIResponse -from client.models.get_sso_users200_response import GetSSOUsers200Response +from client.models.get_sso_users_response import GetSSOUsersResponse from client.models.get_subscriptions_api_response import GetSubscriptionsAPIResponse -from client.models.get_tenant200_response import GetTenant200Response -from client.models.get_tenant_daily_usages200_response import GetTenantDailyUsages200Response -from client.models.get_tenant_package200_response import GetTenantPackage200Response -from client.models.get_tenant_packages200_response import GetTenantPackages200Response -from client.models.get_tenant_user200_response import GetTenantUser200Response -from client.models.get_tenant_users200_response import GetTenantUsers200Response -from client.models.get_tenants200_response import GetTenants200Response -from client.models.get_ticket200_response import GetTicket200Response -from client.models.get_tickets200_response import GetTickets200Response -from client.models.get_user200_response import GetUser200Response -from client.models.get_user_badge200_response import GetUserBadge200Response -from client.models.get_user_badge_progress_by_id200_response import GetUserBadgeProgressById200Response -from client.models.get_user_badge_progress_list200_response import GetUserBadgeProgressList200Response -from client.models.get_user_badges200_response import GetUserBadges200Response -from client.models.get_votes200_response import GetVotes200Response -from client.models.get_votes_for_user200_response import GetVotesForUser200Response +from client.models.get_tenant_daily_usages_response import GetTenantDailyUsagesResponse +from client.models.get_tenant_package_response import GetTenantPackageResponse +from client.models.get_tenant_packages_response import GetTenantPackagesResponse +from client.models.get_tenant_response import GetTenantResponse +from client.models.get_tenant_user_response import GetTenantUserResponse +from client.models.get_tenant_users_response import GetTenantUsersResponse +from client.models.get_tenants_response import GetTenantsResponse +from client.models.get_ticket_response import GetTicketResponse +from client.models.get_tickets_response import GetTicketsResponse +from client.models.get_user_response import GetUserResponse +from client.models.get_votes_for_user_response import GetVotesForUserResponse +from client.models.get_votes_response import GetVotesResponse from client.models.patch_domain_config_params import PatchDomainConfigParams -from client.models.patch_hash_tag200_response import PatchHashTag200Response +from client.models.patch_domain_config_response import PatchDomainConfigResponse from client.models.patch_page_api_response import PatchPageAPIResponse from client.models.patch_sso_user_api_response import PatchSSOUserAPIResponse +from client.models.put_domain_config_response import PutDomainConfigResponse from client.models.put_sso_user_api_response import PutSSOUserAPIResponse -from client.models.render_email_template200_response import RenderEmailTemplate200Response from client.models.render_email_template_body import RenderEmailTemplateBody +from client.models.render_email_template_response import RenderEmailTemplateResponse from client.models.replace_tenant_package_body import ReplaceTenantPackageBody from client.models.replace_tenant_user_body import ReplaceTenantUserBody from client.models.sortdir import SORTDIR -from client.models.save_comment200_response import SaveComment200Response +from client.models.save_comments_bulk_response import SaveCommentsBulkResponse from client.models.sort_directions import SortDirections -from client.models.un_block_comment_public200_response import UnBlockCommentPublic200Response from client.models.un_block_from_comment_params import UnBlockFromCommentParams +from client.models.unblock_success import UnblockSuccess from client.models.updatable_comment_params import UpdatableCommentParams from client.models.update_api_page_data import UpdateAPIPageData from client.models.update_apisso_user_data import UpdateAPISSOUserData @@ -138,6 +140,7 @@ from client.models.update_domain_config_params import UpdateDomainConfigParams from client.models.update_email_template_body import UpdateEmailTemplateBody from client.models.update_hash_tag_body import UpdateHashTagBody +from client.models.update_hash_tag_response import UpdateHashTagResponse from client.models.update_moderator_body import UpdateModeratorBody from client.models.update_notification_body import UpdateNotificationBody from client.models.update_question_config_body import UpdateQuestionConfigBody @@ -146,9 +149,9 @@ from client.models.update_tenant_body import UpdateTenantBody from client.models.update_tenant_package_body import UpdateTenantPackageBody from client.models.update_tenant_user_body import UpdateTenantUserBody -from client.models.update_user_badge200_response import UpdateUserBadge200Response from client.models.update_user_badge_params import UpdateUserBadgeParams -from client.models.vote_comment200_response import VoteComment200Response +from client.models.vote_delete_response import VoteDeleteResponse +from client.models.vote_response import VoteResponse from client.api_client import ApiClient, RequestSerialized from client.api_response import ApiResponse @@ -185,7 +188,7 @@ def add_domain_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AddDomainConfig200Response: + ) -> AddDomainConfigResponse: """add_domain_config @@ -225,7 +228,7 @@ def add_domain_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddDomainConfig200Response", + '200': "AddDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -255,7 +258,7 @@ def add_domain_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AddDomainConfig200Response]: + ) -> ApiResponse[AddDomainConfigResponse]: """add_domain_config @@ -295,7 +298,7 @@ def add_domain_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddDomainConfig200Response", + '200': "AddDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -365,7 +368,7 @@ def add_domain_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddDomainConfig200Response", + '200': "AddDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -473,7 +476,7 @@ def add_hash_tag( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AddHashTag200Response: + ) -> CreateHashTagResponse: """add_hash_tag @@ -513,7 +516,7 @@ def add_hash_tag( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddHashTag200Response", + '200': "CreateHashTagResponse", } response_data = self.api_client.call_api( *_param, @@ -543,7 +546,7 @@ def add_hash_tag_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AddHashTag200Response]: + ) -> ApiResponse[CreateHashTagResponse]: """add_hash_tag @@ -583,7 +586,7 @@ def add_hash_tag_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddHashTag200Response", + '200': "CreateHashTagResponse", } response_data = self.api_client.call_api( *_param, @@ -653,7 +656,7 @@ def add_hash_tag_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddHashTag200Response", + '200': "CreateHashTagResponse", } response_data = self.api_client.call_api( *_param, @@ -761,7 +764,7 @@ def add_hash_tags_bulk( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AddHashTagsBulk200Response: + ) -> BulkCreateHashTagsResponse: """add_hash_tags_bulk @@ -801,7 +804,7 @@ def add_hash_tags_bulk( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddHashTagsBulk200Response", + '200': "BulkCreateHashTagsResponse", } response_data = self.api_client.call_api( *_param, @@ -831,7 +834,7 @@ def add_hash_tags_bulk_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AddHashTagsBulk200Response]: + ) -> ApiResponse[BulkCreateHashTagsResponse]: """add_hash_tags_bulk @@ -871,7 +874,7 @@ def add_hash_tags_bulk_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddHashTagsBulk200Response", + '200': "BulkCreateHashTagsResponse", } response_data = self.api_client.call_api( *_param, @@ -941,7 +944,7 @@ def add_hash_tags_bulk_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AddHashTagsBulk200Response", + '200': "BulkCreateHashTagsResponse", } response_data = self.api_client.call_api( *_param, @@ -1627,7 +1630,7 @@ def aggregate( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AggregationResponse: + ) -> AggregateResponse: """aggregate Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. @@ -1674,7 +1677,7 @@ def aggregate( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AggregationResponse", + '200': "AggregateResponse", } response_data = self.api_client.call_api( *_param, @@ -1706,7 +1709,7 @@ def aggregate_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AggregationResponse]: + ) -> ApiResponse[AggregateResponse]: """aggregate Aggregates documents by grouping them (if groupBy is provided) and applying multiple operations. Different operations (e.g. sum, countDistinct, avg, etc.) are supported. @@ -1753,7 +1756,7 @@ def aggregate_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AggregationResponse", + '200': "AggregateResponse", } response_data = self.api_client.call_api( *_param, @@ -1832,7 +1835,7 @@ def aggregate_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AggregationResponse", + '200': "AggregateResponse", } response_data = self.api_client.call_api( *_param, @@ -1955,7 +1958,7 @@ def aggregate_question_results( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> AggregateQuestionResults200Response: + ) -> AggregateQuestionResultsResponse: """aggregate_question_results @@ -2010,7 +2013,7 @@ def aggregate_question_results( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AggregateQuestionResults200Response", + '200': "AggregateQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -2045,7 +2048,7 @@ def aggregate_question_results_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[AggregateQuestionResults200Response]: + ) -> ApiResponse[AggregateQuestionResultsResponse]: """aggregate_question_results @@ -2100,7 +2103,7 @@ def aggregate_question_results_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AggregateQuestionResults200Response", + '200': "AggregateQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -2190,7 +2193,7 @@ def aggregate_question_results_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AggregateQuestionResults200Response", + '200': "AggregateQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -2325,7 +2328,7 @@ def block_user_from_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BlockFromCommentPublic200Response: + ) -> BlockSuccess: """block_user_from_comment @@ -2374,7 +2377,7 @@ def block_user_from_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BlockFromCommentPublic200Response", + '200': "BlockSuccess", } response_data = self.api_client.call_api( *_param, @@ -2407,7 +2410,7 @@ def block_user_from_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BlockFromCommentPublic200Response]: + ) -> ApiResponse[BlockSuccess]: """block_user_from_comment @@ -2456,7 +2459,7 @@ def block_user_from_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BlockFromCommentPublic200Response", + '200': "BlockSuccess", } response_data = self.api_client.call_api( *_param, @@ -2538,7 +2541,7 @@ def block_user_from_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BlockFromCommentPublic200Response", + '200': "BlockSuccess", } response_data = self.api_client.call_api( *_param, @@ -2660,7 +2663,7 @@ def bulk_aggregate_question_results( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BulkAggregateQuestionResults200Response: + ) -> BulkAggregateQuestionResultsResponse: """bulk_aggregate_question_results @@ -2703,7 +2706,7 @@ def bulk_aggregate_question_results( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BulkAggregateQuestionResults200Response", + '200': "BulkAggregateQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -2734,7 +2737,7 @@ def bulk_aggregate_question_results_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BulkAggregateQuestionResults200Response]: + ) -> ApiResponse[BulkAggregateQuestionResultsResponse]: """bulk_aggregate_question_results @@ -2777,7 +2780,7 @@ def bulk_aggregate_question_results_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BulkAggregateQuestionResults200Response", + '200': "BulkAggregateQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -2851,7 +2854,7 @@ def bulk_aggregate_question_results_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BulkAggregateQuestionResults200Response", + '200': "BulkAggregateQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -2966,7 +2969,7 @@ def change_ticket_state( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ChangeTicketState200Response: + ) -> ChangeTicketStateResponse: """change_ticket_state @@ -3012,7 +3015,7 @@ def change_ticket_state( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ChangeTicketState200Response", + '200': "ChangeTicketStateResponse", } response_data = self.api_client.call_api( *_param, @@ -3044,7 +3047,7 @@ def change_ticket_state_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ChangeTicketState200Response]: + ) -> ApiResponse[ChangeTicketStateResponse]: """change_ticket_state @@ -3090,7 +3093,7 @@ def change_ticket_state_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ChangeTicketState200Response", + '200': "ChangeTicketStateResponse", } response_data = self.api_client.call_api( *_param, @@ -3168,7 +3171,7 @@ def change_ticket_state_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ChangeTicketState200Response", + '200': "ChangeTicketStateResponse", } response_data = self.api_client.call_api( *_param, @@ -3291,7 +3294,7 @@ def combine_comments_with_question_results( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CombineCommentsWithQuestionResults200Response: + ) -> CombineQuestionResultsWithCommentsResponse: """combine_comments_with_question_results @@ -3352,7 +3355,7 @@ def combine_comments_with_question_results( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CombineCommentsWithQuestionResults200Response", + '200': "CombineQuestionResultsWithCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -3389,7 +3392,7 @@ def combine_comments_with_question_results_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CombineCommentsWithQuestionResults200Response]: + ) -> ApiResponse[CombineQuestionResultsWithCommentsResponse]: """combine_comments_with_question_results @@ -3450,7 +3453,7 @@ def combine_comments_with_question_results_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CombineCommentsWithQuestionResults200Response", + '200': "CombineQuestionResultsWithCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -3548,7 +3551,7 @@ def combine_comments_with_question_results_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CombineCommentsWithQuestionResults200Response", + '200': "CombineQuestionResultsWithCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -3690,7 +3693,7 @@ def create_email_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateEmailTemplate200Response: + ) -> CreateEmailTemplateResponse: """create_email_template @@ -3730,7 +3733,7 @@ def create_email_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateEmailTemplate200Response", + '200': "CreateEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -3760,7 +3763,7 @@ def create_email_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateEmailTemplate200Response]: + ) -> ApiResponse[CreateEmailTemplateResponse]: """create_email_template @@ -3800,7 +3803,7 @@ def create_email_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateEmailTemplate200Response", + '200': "CreateEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -3870,7 +3873,7 @@ def create_email_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateEmailTemplate200Response", + '200': "CreateEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -3982,7 +3985,7 @@ def create_feed_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateFeedPost200Response: + ) -> CreateFeedPostsResponse: """create_feed_post @@ -4034,7 +4037,7 @@ def create_feed_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPost200Response", + '200': "CreateFeedPostsResponse", } response_data = self.api_client.call_api( *_param, @@ -4068,7 +4071,7 @@ def create_feed_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateFeedPost200Response]: + ) -> ApiResponse[CreateFeedPostsResponse]: """create_feed_post @@ -4120,7 +4123,7 @@ def create_feed_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPost200Response", + '200': "CreateFeedPostsResponse", } response_data = self.api_client.call_api( *_param, @@ -4206,7 +4209,7 @@ def create_feed_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPost200Response", + '200': "CreateFeedPostsResponse", } response_data = self.api_client.call_api( *_param, @@ -4334,7 +4337,7 @@ def create_moderator( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateModerator200Response: + ) -> CreateModeratorResponse: """create_moderator @@ -4374,7 +4377,7 @@ def create_moderator( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateModerator200Response", + '200': "CreateModeratorResponse", } response_data = self.api_client.call_api( *_param, @@ -4404,7 +4407,7 @@ def create_moderator_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateModerator200Response]: + ) -> ApiResponse[CreateModeratorResponse]: """create_moderator @@ -4444,7 +4447,7 @@ def create_moderator_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateModerator200Response", + '200': "CreateModeratorResponse", } response_data = self.api_client.call_api( *_param, @@ -4514,7 +4517,7 @@ def create_moderator_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateModerator200Response", + '200': "CreateModeratorResponse", } response_data = self.api_client.call_api( *_param, @@ -4622,7 +4625,7 @@ def create_question_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateQuestionConfig200Response: + ) -> CreateQuestionConfigResponse: """create_question_config @@ -4662,7 +4665,7 @@ def create_question_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateQuestionConfig200Response", + '200': "CreateQuestionConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -4692,7 +4695,7 @@ def create_question_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateQuestionConfig200Response]: + ) -> ApiResponse[CreateQuestionConfigResponse]: """create_question_config @@ -4732,7 +4735,7 @@ def create_question_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateQuestionConfig200Response", + '200': "CreateQuestionConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -4802,7 +4805,7 @@ def create_question_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateQuestionConfig200Response", + '200': "CreateQuestionConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -4910,7 +4913,7 @@ def create_question_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateQuestionResult200Response: + ) -> CreateQuestionResultResponse: """create_question_result @@ -4950,7 +4953,7 @@ def create_question_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateQuestionResult200Response", + '200': "CreateQuestionResultResponse", } response_data = self.api_client.call_api( *_param, @@ -4980,7 +4983,7 @@ def create_question_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateQuestionResult200Response]: + ) -> ApiResponse[CreateQuestionResultResponse]: """create_question_result @@ -5020,7 +5023,7 @@ def create_question_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateQuestionResult200Response", + '200': "CreateQuestionResultResponse", } response_data = self.api_client.call_api( *_param, @@ -5090,7 +5093,7 @@ def create_question_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateQuestionResult200Response", + '200': "CreateQuestionResultResponse", } response_data = self.api_client.call_api( *_param, @@ -5486,7 +5489,7 @@ def create_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateTenant200Response: + ) -> CreateTenantResponse: """create_tenant @@ -5526,7 +5529,7 @@ def create_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenant200Response", + '200': "CreateTenantResponse", } response_data = self.api_client.call_api( *_param, @@ -5556,7 +5559,7 @@ def create_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateTenant200Response]: + ) -> ApiResponse[CreateTenantResponse]: """create_tenant @@ -5596,7 +5599,7 @@ def create_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenant200Response", + '200': "CreateTenantResponse", } response_data = self.api_client.call_api( *_param, @@ -5666,7 +5669,7 @@ def create_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenant200Response", + '200': "CreateTenantResponse", } response_data = self.api_client.call_api( *_param, @@ -5774,7 +5777,7 @@ def create_tenant_package( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateTenantPackage200Response: + ) -> CreateTenantPackageResponse: """create_tenant_package @@ -5814,7 +5817,7 @@ def create_tenant_package( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenantPackage200Response", + '200': "CreateTenantPackageResponse", } response_data = self.api_client.call_api( *_param, @@ -5844,7 +5847,7 @@ def create_tenant_package_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateTenantPackage200Response]: + ) -> ApiResponse[CreateTenantPackageResponse]: """create_tenant_package @@ -5884,7 +5887,7 @@ def create_tenant_package_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenantPackage200Response", + '200': "CreateTenantPackageResponse", } response_data = self.api_client.call_api( *_param, @@ -5954,7 +5957,7 @@ def create_tenant_package_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenantPackage200Response", + '200': "CreateTenantPackageResponse", } response_data = self.api_client.call_api( *_param, @@ -6062,7 +6065,7 @@ def create_tenant_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateTenantUser200Response: + ) -> CreateTenantUserResponse: """create_tenant_user @@ -6102,7 +6105,7 @@ def create_tenant_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenantUser200Response", + '200': "CreateTenantUserResponse", } response_data = self.api_client.call_api( *_param, @@ -6132,7 +6135,7 @@ def create_tenant_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateTenantUser200Response]: + ) -> ApiResponse[CreateTenantUserResponse]: """create_tenant_user @@ -6172,7 +6175,7 @@ def create_tenant_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenantUser200Response", + '200': "CreateTenantUserResponse", } response_data = self.api_client.call_api( *_param, @@ -6242,7 +6245,7 @@ def create_tenant_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTenantUser200Response", + '200': "CreateTenantUserResponse", } response_data = self.api_client.call_api( *_param, @@ -6351,7 +6354,7 @@ def create_ticket( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateTicket200Response: + ) -> CreateTicketResponse: """create_ticket @@ -6394,7 +6397,7 @@ def create_ticket( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTicket200Response", + '200': "CreateTicketResponse", } response_data = self.api_client.call_api( *_param, @@ -6425,7 +6428,7 @@ def create_ticket_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateTicket200Response]: + ) -> ApiResponse[CreateTicketResponse]: """create_ticket @@ -6468,7 +6471,7 @@ def create_ticket_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTicket200Response", + '200': "CreateTicketResponse", } response_data = self.api_client.call_api( *_param, @@ -6542,7 +6545,7 @@ def create_ticket_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateTicket200Response", + '200': "CreateTicketResponse", } response_data = self.api_client.call_api( *_param, @@ -6655,7 +6658,7 @@ def create_user_badge( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateUserBadge200Response: + ) -> APICreateUserBadgeResponse: """create_user_badge @@ -6695,7 +6698,7 @@ def create_user_badge( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUserBadge200Response", + '200': "APICreateUserBadgeResponse", } response_data = self.api_client.call_api( *_param, @@ -6725,7 +6728,7 @@ def create_user_badge_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateUserBadge200Response]: + ) -> ApiResponse[APICreateUserBadgeResponse]: """create_user_badge @@ -6765,7 +6768,7 @@ def create_user_badge_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUserBadge200Response", + '200': "APICreateUserBadgeResponse", } response_data = self.api_client.call_api( *_param, @@ -6835,7 +6838,7 @@ def create_user_badge_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateUserBadge200Response", + '200': "APICreateUserBadgeResponse", } response_data = self.api_client.call_api( *_param, @@ -6946,7 +6949,7 @@ def create_vote( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> VoteComment200Response: + ) -> VoteResponse: """create_vote @@ -6995,7 +6998,7 @@ def create_vote( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VoteComment200Response", + '200': "VoteResponse", } response_data = self.api_client.call_api( *_param, @@ -7028,7 +7031,7 @@ def create_vote_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[VoteComment200Response]: + ) -> ApiResponse[VoteResponse]: """create_vote @@ -7077,7 +7080,7 @@ def create_vote_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VoteComment200Response", + '200': "VoteResponse", } response_data = self.api_client.call_api( *_param, @@ -7159,7 +7162,7 @@ def create_vote_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VoteComment200Response", + '200': "VoteResponse", } response_data = self.api_client.call_api( *_param, @@ -7273,7 +7276,7 @@ def delete_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteComment200Response: + ) -> DeleteCommentResult: """delete_comment @@ -7319,7 +7322,7 @@ def delete_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteComment200Response", + '200': "DeleteCommentResult", } response_data = self.api_client.call_api( *_param, @@ -7351,7 +7354,7 @@ def delete_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteComment200Response]: + ) -> ApiResponse[DeleteCommentResult]: """delete_comment @@ -7397,7 +7400,7 @@ def delete_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteComment200Response", + '200': "DeleteCommentResult", } response_data = self.api_client.call_api( *_param, @@ -7475,7 +7478,7 @@ def delete_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteComment200Response", + '200': "DeleteCommentResult", } response_data = self.api_client.call_api( *_param, @@ -7580,7 +7583,7 @@ def delete_domain_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteDomainConfig200Response: + ) -> DeleteDomainConfigResponse: """delete_domain_config @@ -7620,7 +7623,7 @@ def delete_domain_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDomainConfig200Response", + '200': "DeleteDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -7650,7 +7653,7 @@ def delete_domain_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteDomainConfig200Response]: + ) -> ApiResponse[DeleteDomainConfigResponse]: """delete_domain_config @@ -7690,7 +7693,7 @@ def delete_domain_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDomainConfig200Response", + '200': "DeleteDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -7760,7 +7763,7 @@ def delete_domain_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteDomainConfig200Response", + '200': "DeleteDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -7855,7 +7858,7 @@ def delete_email_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_email_template @@ -7895,7 +7898,7 @@ def delete_email_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -7925,7 +7928,7 @@ def delete_email_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_email_template @@ -7965,7 +7968,7 @@ def delete_email_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8035,7 +8038,7 @@ def delete_email_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8131,7 +8134,7 @@ def delete_email_template_render_error( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_email_template_render_error @@ -8174,7 +8177,7 @@ def delete_email_template_render_error( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8205,7 +8208,7 @@ def delete_email_template_render_error_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_email_template_render_error @@ -8248,7 +8251,7 @@ def delete_email_template_render_error_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8322,7 +8325,7 @@ def delete_email_template_render_error_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8408,7 +8411,7 @@ def delete_hash_tag( self, tag: StrictStr, tenant_id: Optional[StrictStr] = None, - delete_hash_tag_request: Optional[DeleteHashTagRequest] = None, + delete_hash_tag_request_body: Optional[DeleteHashTagRequestBody] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8421,7 +8424,7 @@ def delete_hash_tag( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_hash_tag @@ -8429,8 +8432,8 @@ def delete_hash_tag( :type tag: str :param tenant_id: :type tenant_id: str - :param delete_hash_tag_request: - :type delete_hash_tag_request: DeleteHashTagRequest + :param delete_hash_tag_request_body: + :type delete_hash_tag_request_body: DeleteHashTagRequestBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8456,7 +8459,7 @@ def delete_hash_tag( _param = self._delete_hash_tag_serialize( tag=tag, tenant_id=tenant_id, - delete_hash_tag_request=delete_hash_tag_request, + delete_hash_tag_request_body=delete_hash_tag_request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8464,7 +8467,7 @@ def delete_hash_tag( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8482,7 +8485,7 @@ def delete_hash_tag_with_http_info( self, tag: StrictStr, tenant_id: Optional[StrictStr] = None, - delete_hash_tag_request: Optional[DeleteHashTagRequest] = None, + delete_hash_tag_request_body: Optional[DeleteHashTagRequestBody] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8495,7 +8498,7 @@ def delete_hash_tag_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_hash_tag @@ -8503,8 +8506,8 @@ def delete_hash_tag_with_http_info( :type tag: str :param tenant_id: :type tenant_id: str - :param delete_hash_tag_request: - :type delete_hash_tag_request: DeleteHashTagRequest + :param delete_hash_tag_request_body: + :type delete_hash_tag_request_body: DeleteHashTagRequestBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8530,7 +8533,7 @@ def delete_hash_tag_with_http_info( _param = self._delete_hash_tag_serialize( tag=tag, tenant_id=tenant_id, - delete_hash_tag_request=delete_hash_tag_request, + delete_hash_tag_request_body=delete_hash_tag_request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8538,7 +8541,7 @@ def delete_hash_tag_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8556,7 +8559,7 @@ def delete_hash_tag_without_preload_content( self, tag: StrictStr, tenant_id: Optional[StrictStr] = None, - delete_hash_tag_request: Optional[DeleteHashTagRequest] = None, + delete_hash_tag_request_body: Optional[DeleteHashTagRequestBody] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -8577,8 +8580,8 @@ def delete_hash_tag_without_preload_content( :type tag: str :param tenant_id: :type tenant_id: str - :param delete_hash_tag_request: - :type delete_hash_tag_request: DeleteHashTagRequest + :param delete_hash_tag_request_body: + :type delete_hash_tag_request_body: DeleteHashTagRequestBody :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -8604,7 +8607,7 @@ def delete_hash_tag_without_preload_content( _param = self._delete_hash_tag_serialize( tag=tag, tenant_id=tenant_id, - delete_hash_tag_request=delete_hash_tag_request, + delete_hash_tag_request_body=delete_hash_tag_request_body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -8612,7 +8615,7 @@ def delete_hash_tag_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8625,7 +8628,7 @@ def _delete_hash_tag_serialize( self, tag, tenant_id, - delete_hash_tag_request, + delete_hash_tag_request_body, _request_auth, _content_type, _headers, @@ -8657,8 +8660,8 @@ def _delete_hash_tag_serialize( # process the header parameters # process the form parameters # process the body parameter - if delete_hash_tag_request is not None: - _body_params = delete_hash_tag_request + if delete_hash_tag_request_body is not None: + _body_params = delete_hash_tag_request_body # set the HTTP header `Accept` @@ -8724,7 +8727,7 @@ def delete_moderator( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_moderator @@ -8767,7 +8770,7 @@ def delete_moderator( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8798,7 +8801,7 @@ def delete_moderator_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_moderator @@ -8841,7 +8844,7 @@ def delete_moderator_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -8915,7 +8918,7 @@ def delete_moderator_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9015,7 +9018,7 @@ def delete_notification_count( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_notification_count @@ -9055,7 +9058,7 @@ def delete_notification_count( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9085,7 +9088,7 @@ def delete_notification_count_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_notification_count @@ -9125,7 +9128,7 @@ def delete_notification_count_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9195,7 +9198,7 @@ def delete_notification_count_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9565,7 +9568,7 @@ def delete_pending_webhook_event( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_pending_webhook_event @@ -9605,7 +9608,7 @@ def delete_pending_webhook_event( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9635,7 +9638,7 @@ def delete_pending_webhook_event_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_pending_webhook_event @@ -9675,7 +9678,7 @@ def delete_pending_webhook_event_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9745,7 +9748,7 @@ def delete_pending_webhook_event_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9840,7 +9843,7 @@ def delete_question_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_question_config @@ -9880,7 +9883,7 @@ def delete_question_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9910,7 +9913,7 @@ def delete_question_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_question_config @@ -9950,7 +9953,7 @@ def delete_question_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -10020,7 +10023,7 @@ def delete_question_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -10115,7 +10118,7 @@ def delete_question_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_question_result @@ -10155,7 +10158,7 @@ def delete_question_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -10185,7 +10188,7 @@ def delete_question_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_question_result @@ -10225,7 +10228,7 @@ def delete_question_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -10295,7 +10298,7 @@ def delete_question_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -10992,7 +10995,7 @@ def delete_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_tenant @@ -11035,7 +11038,7 @@ def delete_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11066,7 +11069,7 @@ def delete_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_tenant @@ -11109,7 +11112,7 @@ def delete_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11183,7 +11186,7 @@ def delete_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11283,7 +11286,7 @@ def delete_tenant_package( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_tenant_package @@ -11323,7 +11326,7 @@ def delete_tenant_package( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11353,7 +11356,7 @@ def delete_tenant_package_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_tenant_package @@ -11393,7 +11396,7 @@ def delete_tenant_package_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11463,7 +11466,7 @@ def delete_tenant_package_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11560,7 +11563,7 @@ def delete_tenant_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """delete_tenant_user @@ -11606,7 +11609,7 @@ def delete_tenant_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11638,7 +11641,7 @@ def delete_tenant_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """delete_tenant_user @@ -11684,7 +11687,7 @@ def delete_tenant_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11762,7 +11765,7 @@ def delete_tenant_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -11867,7 +11870,7 @@ def delete_user_badge( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateUserBadge200Response: + ) -> APIEmptySuccessResponse: """delete_user_badge @@ -11907,7 +11910,7 @@ def delete_user_badge( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserBadge200Response", + '200': "APIEmptySuccessResponse", } response_data = self.api_client.call_api( *_param, @@ -11937,7 +11940,7 @@ def delete_user_badge_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateUserBadge200Response]: + ) -> ApiResponse[APIEmptySuccessResponse]: """delete_user_badge @@ -11977,7 +11980,7 @@ def delete_user_badge_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserBadge200Response", + '200': "APIEmptySuccessResponse", } response_data = self.api_client.call_api( *_param, @@ -12047,7 +12050,7 @@ def delete_user_badge_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserBadge200Response", + '200': "APIEmptySuccessResponse", } response_data = self.api_client.call_api( *_param, @@ -12143,7 +12146,7 @@ def delete_vote( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteCommentVote200Response: + ) -> VoteDeleteResponse: """delete_vote @@ -12186,7 +12189,7 @@ def delete_vote( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentVote200Response", + '200': "VoteDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -12217,7 +12220,7 @@ def delete_vote_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteCommentVote200Response]: + ) -> ApiResponse[VoteDeleteResponse]: """delete_vote @@ -12260,7 +12263,7 @@ def delete_vote_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentVote200Response", + '200': "VoteDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -12334,7 +12337,7 @@ def delete_vote_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentVote200Response", + '200': "VoteDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -12436,7 +12439,7 @@ def flag_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagComment200Response: + ) -> FlagCommentResponse: """flag_comment @@ -12482,7 +12485,7 @@ def flag_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagComment200Response", + '200': "FlagCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -12514,7 +12517,7 @@ def flag_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagComment200Response]: + ) -> ApiResponse[FlagCommentResponse]: """flag_comment @@ -12560,7 +12563,7 @@ def flag_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagComment200Response", + '200': "FlagCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -12638,7 +12641,7 @@ def flag_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagComment200Response", + '200': "FlagCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -12747,7 +12750,7 @@ def get_audit_logs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetAuditLogs200Response: + ) -> GetAuditLogsResponse: """get_audit_logs @@ -12799,7 +12802,7 @@ def get_audit_logs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAuditLogs200Response", + '200': "GetAuditLogsResponse", } response_data = self.api_client.call_api( *_param, @@ -12833,7 +12836,7 @@ def get_audit_logs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetAuditLogs200Response]: + ) -> ApiResponse[GetAuditLogsResponse]: """get_audit_logs @@ -12885,7 +12888,7 @@ def get_audit_logs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAuditLogs200Response", + '200': "GetAuditLogsResponse", } response_data = self.api_client.call_api( *_param, @@ -12971,7 +12974,7 @@ def get_audit_logs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetAuditLogs200Response", + '200': "GetAuditLogsResponse", } response_data = self.api_client.call_api( *_param, @@ -13088,7 +13091,7 @@ def get_cached_notification_count( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetCachedNotificationCount200Response: + ) -> GetCachedNotificationCountResponse: """get_cached_notification_count @@ -13128,7 +13131,7 @@ def get_cached_notification_count( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCachedNotificationCount200Response", + '200': "GetCachedNotificationCountResponse", } response_data = self.api_client.call_api( *_param, @@ -13158,7 +13161,7 @@ def get_cached_notification_count_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetCachedNotificationCount200Response]: + ) -> ApiResponse[GetCachedNotificationCountResponse]: """get_cached_notification_count @@ -13198,7 +13201,7 @@ def get_cached_notification_count_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCachedNotificationCount200Response", + '200': "GetCachedNotificationCountResponse", } response_data = self.api_client.call_api( *_param, @@ -13268,7 +13271,7 @@ def get_cached_notification_count_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCachedNotificationCount200Response", + '200': "GetCachedNotificationCountResponse", } response_data = self.api_client.call_api( *_param, @@ -13363,7 +13366,7 @@ def get_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetComment200Response: + ) -> APIGetCommentResponse: """get_comment @@ -13403,7 +13406,7 @@ def get_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComment200Response", + '200': "APIGetCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -13433,7 +13436,7 @@ def get_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetComment200Response]: + ) -> ApiResponse[APIGetCommentResponse]: """get_comment @@ -13473,7 +13476,7 @@ def get_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComment200Response", + '200': "APIGetCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -13543,7 +13546,7 @@ def get_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComment200Response", + '200': "APIGetCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -13639,6 +13642,8 @@ def get_comments( hash_tag: Optional[StrictStr] = None, parent_id: Optional[StrictStr] = None, direction: Optional[SortDirections] = None, + from_date: Optional[StrictInt] = None, + to_date: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13651,7 +13656,7 @@ def get_comments( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetComments200Response: + ) -> APIGetCommentsResponse: """get_comments @@ -13685,6 +13690,10 @@ def get_comments( :type parent_id: str :param direction: :type direction: SortDirections + :param from_date: + :type from_date: int + :param to_date: + :type to_date: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13723,6 +13732,8 @@ def get_comments( hash_tag=hash_tag, parent_id=parent_id, direction=direction, + from_date=from_date, + to_date=to_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13730,7 +13741,7 @@ def get_comments( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComments200Response", + '200': "APIGetCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -13761,6 +13772,8 @@ def get_comments_with_http_info( hash_tag: Optional[StrictStr] = None, parent_id: Optional[StrictStr] = None, direction: Optional[SortDirections] = None, + from_date: Optional[StrictInt] = None, + to_date: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13773,7 +13786,7 @@ def get_comments_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetComments200Response]: + ) -> ApiResponse[APIGetCommentsResponse]: """get_comments @@ -13807,6 +13820,10 @@ def get_comments_with_http_info( :type parent_id: str :param direction: :type direction: SortDirections + :param from_date: + :type from_date: int + :param to_date: + :type to_date: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13845,6 +13862,8 @@ def get_comments_with_http_info( hash_tag=hash_tag, parent_id=parent_id, direction=direction, + from_date=from_date, + to_date=to_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13852,7 +13871,7 @@ def get_comments_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComments200Response", + '200': "APIGetCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -13883,6 +13902,8 @@ def get_comments_without_preload_content( hash_tag: Optional[StrictStr] = None, parent_id: Optional[StrictStr] = None, direction: Optional[SortDirections] = None, + from_date: Optional[StrictInt] = None, + to_date: Optional[StrictInt] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -13929,6 +13950,10 @@ def get_comments_without_preload_content( :type parent_id: str :param direction: :type direction: SortDirections + :param from_date: + :type from_date: int + :param to_date: + :type to_date: int :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -13967,6 +13992,8 @@ def get_comments_without_preload_content( hash_tag=hash_tag, parent_id=parent_id, direction=direction, + from_date=from_date, + to_date=to_date, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -13974,7 +14001,7 @@ def get_comments_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetComments200Response", + '200': "APIGetCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -14000,6 +14027,8 @@ def _get_comments_serialize( hash_tag, parent_id, direction, + from_date, + to_date, _request_auth, _content_type, _headers, @@ -14082,6 +14111,14 @@ def _get_comments_serialize( _query_params.append(('direction', direction.value)) + if from_date is not None: + + _query_params.append(('fromDate', from_date)) + + if to_date is not None: + + _query_params.append(('toDate', to_date)) + # process the header parameters # process the form parameters # process the body parameter @@ -14136,7 +14173,7 @@ def get_domain_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDomainConfig200Response: + ) -> GetDomainConfigResponse: """get_domain_config @@ -14176,7 +14213,7 @@ def get_domain_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "GetDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -14206,7 +14243,7 @@ def get_domain_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetDomainConfig200Response]: + ) -> ApiResponse[GetDomainConfigResponse]: """get_domain_config @@ -14246,7 +14283,7 @@ def get_domain_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "GetDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -14316,7 +14353,7 @@ def get_domain_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "GetDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -14410,7 +14447,7 @@ def get_domain_configs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDomainConfigs200Response: + ) -> GetDomainConfigsResponse: """get_domain_configs @@ -14447,7 +14484,7 @@ def get_domain_configs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfigs200Response", + '200': "GetDomainConfigsResponse", } response_data = self.api_client.call_api( *_param, @@ -14476,7 +14513,7 @@ def get_domain_configs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetDomainConfigs200Response]: + ) -> ApiResponse[GetDomainConfigsResponse]: """get_domain_configs @@ -14513,7 +14550,7 @@ def get_domain_configs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfigs200Response", + '200': "GetDomainConfigsResponse", } response_data = self.api_client.call_api( *_param, @@ -14579,7 +14616,7 @@ def get_domain_configs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfigs200Response", + '200': "GetDomainConfigsResponse", } response_data = self.api_client.call_api( *_param, @@ -14671,7 +14708,7 @@ def get_email_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetEmailTemplate200Response: + ) -> GetEmailTemplateResponse: """get_email_template @@ -14711,7 +14748,7 @@ def get_email_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplate200Response", + '200': "GetEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -14741,7 +14778,7 @@ def get_email_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetEmailTemplate200Response]: + ) -> ApiResponse[GetEmailTemplateResponse]: """get_email_template @@ -14781,7 +14818,7 @@ def get_email_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplate200Response", + '200': "GetEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -14851,7 +14888,7 @@ def get_email_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplate200Response", + '200': "GetEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -14945,7 +14982,7 @@ def get_email_template_definitions( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetEmailTemplateDefinitions200Response: + ) -> GetEmailTemplateDefinitionsResponse: """get_email_template_definitions @@ -14982,7 +15019,7 @@ def get_email_template_definitions( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplateDefinitions200Response", + '200': "GetEmailTemplateDefinitionsResponse", } response_data = self.api_client.call_api( *_param, @@ -15011,7 +15048,7 @@ def get_email_template_definitions_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetEmailTemplateDefinitions200Response]: + ) -> ApiResponse[GetEmailTemplateDefinitionsResponse]: """get_email_template_definitions @@ -15048,7 +15085,7 @@ def get_email_template_definitions_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplateDefinitions200Response", + '200': "GetEmailTemplateDefinitionsResponse", } response_data = self.api_client.call_api( *_param, @@ -15114,7 +15151,7 @@ def get_email_template_definitions_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplateDefinitions200Response", + '200': "GetEmailTemplateDefinitionsResponse", } response_data = self.api_client.call_api( *_param, @@ -15207,7 +15244,7 @@ def get_email_template_render_errors( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetEmailTemplateRenderErrors200Response: + ) -> GetEmailTemplateRenderErrorsResponse: """get_email_template_render_errors @@ -15250,7 +15287,7 @@ def get_email_template_render_errors( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplateRenderErrors200Response", + '200': "GetEmailTemplateRenderErrorsResponse", } response_data = self.api_client.call_api( *_param, @@ -15281,7 +15318,7 @@ def get_email_template_render_errors_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetEmailTemplateRenderErrors200Response]: + ) -> ApiResponse[GetEmailTemplateRenderErrorsResponse]: """get_email_template_render_errors @@ -15324,7 +15361,7 @@ def get_email_template_render_errors_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplateRenderErrors200Response", + '200': "GetEmailTemplateRenderErrorsResponse", } response_data = self.api_client.call_api( *_param, @@ -15398,7 +15435,7 @@ def get_email_template_render_errors_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplateRenderErrors200Response", + '200': "GetEmailTemplateRenderErrorsResponse", } response_data = self.api_client.call_api( *_param, @@ -15498,7 +15535,7 @@ def get_email_templates( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetEmailTemplates200Response: + ) -> GetEmailTemplatesResponse: """get_email_templates @@ -15538,7 +15575,7 @@ def get_email_templates( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplates200Response", + '200': "GetEmailTemplatesResponse", } response_data = self.api_client.call_api( *_param, @@ -15568,7 +15605,7 @@ def get_email_templates_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetEmailTemplates200Response]: + ) -> ApiResponse[GetEmailTemplatesResponse]: """get_email_templates @@ -15608,7 +15645,7 @@ def get_email_templates_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplates200Response", + '200': "GetEmailTemplatesResponse", } response_data = self.api_client.call_api( *_param, @@ -15678,7 +15715,7 @@ def get_email_templates_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEmailTemplates200Response", + '200': "GetEmailTemplatesResponse", } response_data = self.api_client.call_api( *_param, @@ -15777,7 +15814,7 @@ def get_feed_posts( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetFeedPosts200Response: + ) -> GetFeedPostsResponse: """get_feed_posts req tenantId afterId @@ -15824,7 +15861,7 @@ def get_feed_posts( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPosts200Response", + '200': "GetFeedPostsResponse", } response_data = self.api_client.call_api( *_param, @@ -15856,7 +15893,7 @@ def get_feed_posts_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetFeedPosts200Response]: + ) -> ApiResponse[GetFeedPostsResponse]: """get_feed_posts req tenantId afterId @@ -15903,7 +15940,7 @@ def get_feed_posts_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPosts200Response", + '200': "GetFeedPostsResponse", } response_data = self.api_client.call_api( *_param, @@ -15982,7 +16019,7 @@ def get_feed_posts_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPosts200Response", + '200': "GetFeedPostsResponse", } response_data = self.api_client.call_api( *_param, @@ -16090,7 +16127,7 @@ def get_hash_tags( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetHashTags200Response: + ) -> GetHashTagsResponse: """get_hash_tags @@ -16130,7 +16167,7 @@ def get_hash_tags( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHashTags200Response", + '200': "GetHashTagsResponse", } response_data = self.api_client.call_api( *_param, @@ -16160,7 +16197,7 @@ def get_hash_tags_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetHashTags200Response]: + ) -> ApiResponse[GetHashTagsResponse]: """get_hash_tags @@ -16200,7 +16237,7 @@ def get_hash_tags_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHashTags200Response", + '200': "GetHashTagsResponse", } response_data = self.api_client.call_api( *_param, @@ -16270,7 +16307,7 @@ def get_hash_tags_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetHashTags200Response", + '200': "GetHashTagsResponse", } response_data = self.api_client.call_api( *_param, @@ -16367,7 +16404,7 @@ def get_moderator( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetModerator200Response: + ) -> GetModeratorResponse: """get_moderator @@ -16407,7 +16444,7 @@ def get_moderator( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetModerator200Response", + '200': "GetModeratorResponse", } response_data = self.api_client.call_api( *_param, @@ -16437,7 +16474,7 @@ def get_moderator_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetModerator200Response]: + ) -> ApiResponse[GetModeratorResponse]: """get_moderator @@ -16477,7 +16514,7 @@ def get_moderator_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetModerator200Response", + '200': "GetModeratorResponse", } response_data = self.api_client.call_api( *_param, @@ -16547,7 +16584,7 @@ def get_moderator_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetModerator200Response", + '200': "GetModeratorResponse", } response_data = self.api_client.call_api( *_param, @@ -16642,7 +16679,7 @@ def get_moderators( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetModerators200Response: + ) -> GetModeratorsResponse: """get_moderators @@ -16682,7 +16719,7 @@ def get_moderators( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetModerators200Response", + '200': "GetModeratorsResponse", } response_data = self.api_client.call_api( *_param, @@ -16712,7 +16749,7 @@ def get_moderators_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetModerators200Response]: + ) -> ApiResponse[GetModeratorsResponse]: """get_moderators @@ -16752,7 +16789,7 @@ def get_moderators_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetModerators200Response", + '200': "GetModeratorsResponse", } response_data = self.api_client.call_api( *_param, @@ -16822,7 +16859,7 @@ def get_moderators_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetModerators200Response", + '200': "GetModeratorsResponse", } response_data = self.api_client.call_api( *_param, @@ -16923,7 +16960,7 @@ def get_notification_count( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetNotificationCount200Response: + ) -> GetNotificationCountResponse: """get_notification_count @@ -16975,7 +17012,7 @@ def get_notification_count( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetNotificationCount200Response", + '200': "GetNotificationCountResponse", } response_data = self.api_client.call_api( *_param, @@ -17009,7 +17046,7 @@ def get_notification_count_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetNotificationCount200Response]: + ) -> ApiResponse[GetNotificationCountResponse]: """get_notification_count @@ -17061,7 +17098,7 @@ def get_notification_count_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetNotificationCount200Response", + '200': "GetNotificationCountResponse", } response_data = self.api_client.call_api( *_param, @@ -17147,7 +17184,7 @@ def get_notification_count_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetNotificationCount200Response", + '200': "GetNotificationCountResponse", } response_data = self.api_client.call_api( *_param, @@ -17269,7 +17306,7 @@ def get_notifications( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetNotifications200Response: + ) -> GetNotificationsResponse: """get_notifications @@ -17324,7 +17361,7 @@ def get_notifications( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetNotifications200Response", + '200': "GetNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -17359,7 +17396,7 @@ def get_notifications_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetNotifications200Response]: + ) -> ApiResponse[GetNotificationsResponse]: """get_notifications @@ -17414,7 +17451,7 @@ def get_notifications_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetNotifications200Response", + '200': "GetNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -17504,7 +17541,7 @@ def get_notifications_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetNotifications200Response", + '200': "GetNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -18168,7 +18205,7 @@ def get_pending_webhook_event_count( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPendingWebhookEventCount200Response: + ) -> GetPendingWebhookEventCountResponse: """get_pending_webhook_event_count @@ -18223,7 +18260,7 @@ def get_pending_webhook_event_count( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingWebhookEventCount200Response", + '200': "GetPendingWebhookEventCountResponse", } response_data = self.api_client.call_api( *_param, @@ -18258,7 +18295,7 @@ def get_pending_webhook_event_count_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPendingWebhookEventCount200Response]: + ) -> ApiResponse[GetPendingWebhookEventCountResponse]: """get_pending_webhook_event_count @@ -18313,7 +18350,7 @@ def get_pending_webhook_event_count_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingWebhookEventCount200Response", + '200': "GetPendingWebhookEventCountResponse", } response_data = self.api_client.call_api( *_param, @@ -18403,7 +18440,7 @@ def get_pending_webhook_event_count_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingWebhookEventCount200Response", + '200': "GetPendingWebhookEventCountResponse", } response_data = self.api_client.call_api( *_param, @@ -18531,7 +18568,7 @@ def get_pending_webhook_events( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetPendingWebhookEvents200Response: + ) -> GetPendingWebhookEventsResponse: """get_pending_webhook_events @@ -18589,7 +18626,7 @@ def get_pending_webhook_events( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingWebhookEvents200Response", + '200': "GetPendingWebhookEventsResponse", } response_data = self.api_client.call_api( *_param, @@ -18625,7 +18662,7 @@ def get_pending_webhook_events_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetPendingWebhookEvents200Response]: + ) -> ApiResponse[GetPendingWebhookEventsResponse]: """get_pending_webhook_events @@ -18683,7 +18720,7 @@ def get_pending_webhook_events_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingWebhookEvents200Response", + '200': "GetPendingWebhookEventsResponse", } response_data = self.api_client.call_api( *_param, @@ -18777,7 +18814,7 @@ def get_pending_webhook_events_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetPendingWebhookEvents200Response", + '200': "GetPendingWebhookEventsResponse", } response_data = self.api_client.call_api( *_param, @@ -18904,7 +18941,7 @@ def get_question_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetQuestionConfig200Response: + ) -> GetQuestionConfigResponse: """get_question_config @@ -18944,7 +18981,7 @@ def get_question_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionConfig200Response", + '200': "GetQuestionConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -18974,7 +19011,7 @@ def get_question_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetQuestionConfig200Response]: + ) -> ApiResponse[GetQuestionConfigResponse]: """get_question_config @@ -19014,7 +19051,7 @@ def get_question_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionConfig200Response", + '200': "GetQuestionConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -19084,7 +19121,7 @@ def get_question_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionConfig200Response", + '200': "GetQuestionConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -19179,7 +19216,7 @@ def get_question_configs( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetQuestionConfigs200Response: + ) -> GetQuestionConfigsResponse: """get_question_configs @@ -19219,7 +19256,7 @@ def get_question_configs( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionConfigs200Response", + '200': "GetQuestionConfigsResponse", } response_data = self.api_client.call_api( *_param, @@ -19249,7 +19286,7 @@ def get_question_configs_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetQuestionConfigs200Response]: + ) -> ApiResponse[GetQuestionConfigsResponse]: """get_question_configs @@ -19289,7 +19326,7 @@ def get_question_configs_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionConfigs200Response", + '200': "GetQuestionConfigsResponse", } response_data = self.api_client.call_api( *_param, @@ -19359,7 +19396,7 @@ def get_question_configs_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionConfigs200Response", + '200': "GetQuestionConfigsResponse", } response_data = self.api_client.call_api( *_param, @@ -19456,7 +19493,7 @@ def get_question_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetQuestionResult200Response: + ) -> GetQuestionResultResponse: """get_question_result @@ -19496,7 +19533,7 @@ def get_question_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionResult200Response", + '200': "GetQuestionResultResponse", } response_data = self.api_client.call_api( *_param, @@ -19526,7 +19563,7 @@ def get_question_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetQuestionResult200Response]: + ) -> ApiResponse[GetQuestionResultResponse]: """get_question_result @@ -19566,7 +19603,7 @@ def get_question_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionResult200Response", + '200': "GetQuestionResultResponse", } response_data = self.api_client.call_api( *_param, @@ -19636,7 +19673,7 @@ def get_question_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionResult200Response", + '200': "GetQuestionResultResponse", } response_data = self.api_client.call_api( *_param, @@ -19736,7 +19773,7 @@ def get_question_results( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetQuestionResults200Response: + ) -> GetQuestionResultsResponse: """get_question_results @@ -19791,7 +19828,7 @@ def get_question_results( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionResults200Response", + '200': "GetQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -19826,7 +19863,7 @@ def get_question_results_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetQuestionResults200Response]: + ) -> ApiResponse[GetQuestionResultsResponse]: """get_question_results @@ -19881,7 +19918,7 @@ def get_question_results_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionResults200Response", + '200': "GetQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -19971,7 +20008,7 @@ def get_question_results_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetQuestionResults200Response", + '200': "GetQuestionResultsResponse", } response_data = self.api_client.call_api( *_param, @@ -20643,7 +20680,7 @@ def get_sso_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetSSOUsers200Response: + ) -> GetSSOUsersResponse: """get_sso_users @@ -20683,7 +20720,7 @@ def get_sso_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSSOUsers200Response", + '200': "GetSSOUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -20713,7 +20750,7 @@ def get_sso_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetSSOUsers200Response]: + ) -> ApiResponse[GetSSOUsersResponse]: """get_sso_users @@ -20753,7 +20790,7 @@ def get_sso_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSSOUsers200Response", + '200': "GetSSOUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -20823,7 +20860,7 @@ def get_sso_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetSSOUsers200Response", + '200': "GetSSOUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -21197,7 +21234,7 @@ def get_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTenant200Response: + ) -> GetTenantResponse: """get_tenant @@ -21237,7 +21274,7 @@ def get_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenant200Response", + '200': "GetTenantResponse", } response_data = self.api_client.call_api( *_param, @@ -21267,7 +21304,7 @@ def get_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTenant200Response]: + ) -> ApiResponse[GetTenantResponse]: """get_tenant @@ -21307,7 +21344,7 @@ def get_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenant200Response", + '200': "GetTenantResponse", } response_data = self.api_client.call_api( *_param, @@ -21377,7 +21414,7 @@ def get_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenant200Response", + '200': "GetTenantResponse", } response_data = self.api_client.call_api( *_param, @@ -21475,7 +21512,7 @@ def get_tenant_daily_usages( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTenantDailyUsages200Response: + ) -> GetTenantDailyUsagesResponse: """get_tenant_daily_usages @@ -21524,7 +21561,7 @@ def get_tenant_daily_usages( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantDailyUsages200Response", + '200': "GetTenantDailyUsagesResponse", } response_data = self.api_client.call_api( *_param, @@ -21557,7 +21594,7 @@ def get_tenant_daily_usages_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTenantDailyUsages200Response]: + ) -> ApiResponse[GetTenantDailyUsagesResponse]: """get_tenant_daily_usages @@ -21606,7 +21643,7 @@ def get_tenant_daily_usages_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantDailyUsages200Response", + '200': "GetTenantDailyUsagesResponse", } response_data = self.api_client.call_api( *_param, @@ -21688,7 +21725,7 @@ def get_tenant_daily_usages_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantDailyUsages200Response", + '200': "GetTenantDailyUsagesResponse", } response_data = self.api_client.call_api( *_param, @@ -21800,7 +21837,7 @@ def get_tenant_package( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTenantPackage200Response: + ) -> GetTenantPackageResponse: """get_tenant_package @@ -21840,7 +21877,7 @@ def get_tenant_package( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantPackage200Response", + '200': "GetTenantPackageResponse", } response_data = self.api_client.call_api( *_param, @@ -21870,7 +21907,7 @@ def get_tenant_package_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTenantPackage200Response]: + ) -> ApiResponse[GetTenantPackageResponse]: """get_tenant_package @@ -21910,7 +21947,7 @@ def get_tenant_package_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantPackage200Response", + '200': "GetTenantPackageResponse", } response_data = self.api_client.call_api( *_param, @@ -21980,7 +22017,7 @@ def get_tenant_package_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantPackage200Response", + '200': "GetTenantPackageResponse", } response_data = self.api_client.call_api( *_param, @@ -22075,7 +22112,7 @@ def get_tenant_packages( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTenantPackages200Response: + ) -> GetTenantPackagesResponse: """get_tenant_packages @@ -22115,7 +22152,7 @@ def get_tenant_packages( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantPackages200Response", + '200': "GetTenantPackagesResponse", } response_data = self.api_client.call_api( *_param, @@ -22145,7 +22182,7 @@ def get_tenant_packages_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTenantPackages200Response]: + ) -> ApiResponse[GetTenantPackagesResponse]: """get_tenant_packages @@ -22185,7 +22222,7 @@ def get_tenant_packages_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantPackages200Response", + '200': "GetTenantPackagesResponse", } response_data = self.api_client.call_api( *_param, @@ -22255,7 +22292,7 @@ def get_tenant_packages_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantPackages200Response", + '200': "GetTenantPackagesResponse", } response_data = self.api_client.call_api( *_param, @@ -22352,7 +22389,7 @@ def get_tenant_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTenantUser200Response: + ) -> GetTenantUserResponse: """get_tenant_user @@ -22392,7 +22429,7 @@ def get_tenant_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantUser200Response", + '200': "GetTenantUserResponse", } response_data = self.api_client.call_api( *_param, @@ -22422,7 +22459,7 @@ def get_tenant_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTenantUser200Response]: + ) -> ApiResponse[GetTenantUserResponse]: """get_tenant_user @@ -22462,7 +22499,7 @@ def get_tenant_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantUser200Response", + '200': "GetTenantUserResponse", } response_data = self.api_client.call_api( *_param, @@ -22532,7 +22569,7 @@ def get_tenant_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantUser200Response", + '200': "GetTenantUserResponse", } response_data = self.api_client.call_api( *_param, @@ -22627,7 +22664,7 @@ def get_tenant_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTenantUsers200Response: + ) -> GetTenantUsersResponse: """get_tenant_users @@ -22667,7 +22704,7 @@ def get_tenant_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantUsers200Response", + '200': "GetTenantUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -22697,7 +22734,7 @@ def get_tenant_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTenantUsers200Response]: + ) -> ApiResponse[GetTenantUsersResponse]: """get_tenant_users @@ -22737,7 +22774,7 @@ def get_tenant_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantUsers200Response", + '200': "GetTenantUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -22807,7 +22844,7 @@ def get_tenant_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenantUsers200Response", + '200': "GetTenantUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -22905,7 +22942,7 @@ def get_tenants( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTenants200Response: + ) -> GetTenantsResponse: """get_tenants @@ -22948,7 +22985,7 @@ def get_tenants( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenants200Response", + '200': "GetTenantsResponse", } response_data = self.api_client.call_api( *_param, @@ -22979,7 +23016,7 @@ def get_tenants_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTenants200Response]: + ) -> ApiResponse[GetTenantsResponse]: """get_tenants @@ -23022,7 +23059,7 @@ def get_tenants_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenants200Response", + '200': "GetTenantsResponse", } response_data = self.api_client.call_api( *_param, @@ -23096,7 +23133,7 @@ def get_tenants_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTenants200Response", + '200': "GetTenantsResponse", } response_data = self.api_client.call_api( *_param, @@ -23199,7 +23236,7 @@ def get_ticket( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTicket200Response: + ) -> GetTicketResponse: """get_ticket @@ -23242,7 +23279,7 @@ def get_ticket( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTicket200Response", + '200': "GetTicketResponse", } response_data = self.api_client.call_api( *_param, @@ -23273,7 +23310,7 @@ def get_ticket_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTicket200Response]: + ) -> ApiResponse[GetTicketResponse]: """get_ticket @@ -23316,7 +23353,7 @@ def get_ticket_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTicket200Response", + '200': "GetTicketResponse", } response_data = self.api_client.call_api( *_param, @@ -23390,7 +23427,7 @@ def get_ticket_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTicket200Response", + '200': "GetTicketResponse", } response_data = self.api_client.call_api( *_param, @@ -23493,7 +23530,7 @@ def get_tickets( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetTickets200Response: + ) -> GetTicketsResponse: """get_tickets @@ -23542,7 +23579,7 @@ def get_tickets( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTickets200Response", + '200': "GetTicketsResponse", } response_data = self.api_client.call_api( *_param, @@ -23575,7 +23612,7 @@ def get_tickets_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetTickets200Response]: + ) -> ApiResponse[GetTicketsResponse]: """get_tickets @@ -23624,7 +23661,7 @@ def get_tickets_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTickets200Response", + '200': "GetTicketsResponse", } response_data = self.api_client.call_api( *_param, @@ -23706,7 +23743,7 @@ def get_tickets_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetTickets200Response", + '200': "GetTicketsResponse", } response_data = self.api_client.call_api( *_param, @@ -23818,7 +23855,7 @@ def get_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUser200Response: + ) -> GetUserResponse: """get_user @@ -23858,7 +23895,7 @@ def get_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUser200Response", + '200': "GetUserResponse", } response_data = self.api_client.call_api( *_param, @@ -23888,7 +23925,7 @@ def get_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUser200Response]: + ) -> ApiResponse[GetUserResponse]: """get_user @@ -23928,7 +23965,7 @@ def get_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUser200Response", + '200': "GetUserResponse", } response_data = self.api_client.call_api( *_param, @@ -23998,7 +24035,7 @@ def get_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUser200Response", + '200': "GetUserResponse", } response_data = self.api_client.call_api( *_param, @@ -24093,7 +24130,7 @@ def get_user_badge( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserBadge200Response: + ) -> APIGetUserBadgeResponse: """get_user_badge @@ -24133,7 +24170,7 @@ def get_user_badge( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadge200Response", + '200': "APIGetUserBadgeResponse", } response_data = self.api_client.call_api( *_param, @@ -24163,7 +24200,7 @@ def get_user_badge_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserBadge200Response]: + ) -> ApiResponse[APIGetUserBadgeResponse]: """get_user_badge @@ -24203,7 +24240,7 @@ def get_user_badge_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadge200Response", + '200': "APIGetUserBadgeResponse", } response_data = self.api_client.call_api( *_param, @@ -24273,7 +24310,7 @@ def get_user_badge_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadge200Response", + '200': "APIGetUserBadgeResponse", } response_data = self.api_client.call_api( *_param, @@ -24368,7 +24405,7 @@ def get_user_badge_progress_by_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserBadgeProgressById200Response: + ) -> APIGetUserBadgeProgressResponse: """get_user_badge_progress_by_id @@ -24408,7 +24445,7 @@ def get_user_badge_progress_by_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressById200Response", + '200': "APIGetUserBadgeProgressResponse", } response_data = self.api_client.call_api( *_param, @@ -24438,7 +24475,7 @@ def get_user_badge_progress_by_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserBadgeProgressById200Response]: + ) -> ApiResponse[APIGetUserBadgeProgressResponse]: """get_user_badge_progress_by_id @@ -24478,7 +24515,7 @@ def get_user_badge_progress_by_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressById200Response", + '200': "APIGetUserBadgeProgressResponse", } response_data = self.api_client.call_api( *_param, @@ -24548,7 +24585,7 @@ def get_user_badge_progress_by_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressById200Response", + '200': "APIGetUserBadgeProgressResponse", } response_data = self.api_client.call_api( *_param, @@ -24643,7 +24680,7 @@ def get_user_badge_progress_by_user_id( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserBadgeProgressById200Response: + ) -> APIGetUserBadgeProgressResponse: """get_user_badge_progress_by_user_id @@ -24683,7 +24720,7 @@ def get_user_badge_progress_by_user_id( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressById200Response", + '200': "APIGetUserBadgeProgressResponse", } response_data = self.api_client.call_api( *_param, @@ -24713,7 +24750,7 @@ def get_user_badge_progress_by_user_id_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserBadgeProgressById200Response]: + ) -> ApiResponse[APIGetUserBadgeProgressResponse]: """get_user_badge_progress_by_user_id @@ -24753,7 +24790,7 @@ def get_user_badge_progress_by_user_id_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressById200Response", + '200': "APIGetUserBadgeProgressResponse", } response_data = self.api_client.call_api( *_param, @@ -24823,7 +24860,7 @@ def get_user_badge_progress_by_user_id_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressById200Response", + '200': "APIGetUserBadgeProgressResponse", } response_data = self.api_client.call_api( *_param, @@ -24920,7 +24957,7 @@ def get_user_badge_progress_list( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserBadgeProgressList200Response: + ) -> APIGetUserBadgeProgressListResponse: """get_user_badge_progress_list @@ -24966,7 +25003,7 @@ def get_user_badge_progress_list( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressList200Response", + '200': "APIGetUserBadgeProgressListResponse", } response_data = self.api_client.call_api( *_param, @@ -24998,7 +25035,7 @@ def get_user_badge_progress_list_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserBadgeProgressList200Response]: + ) -> ApiResponse[APIGetUserBadgeProgressListResponse]: """get_user_badge_progress_list @@ -25044,7 +25081,7 @@ def get_user_badge_progress_list_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressList200Response", + '200': "APIGetUserBadgeProgressListResponse", } response_data = self.api_client.call_api( *_param, @@ -25122,7 +25159,7 @@ def get_user_badge_progress_list_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadgeProgressList200Response", + '200': "APIGetUserBadgeProgressListResponse", } response_data = self.api_client.call_api( *_param, @@ -25234,7 +25271,7 @@ def get_user_badges( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserBadges200Response: + ) -> APIGetUserBadgesResponse: """get_user_badges @@ -25289,7 +25326,7 @@ def get_user_badges( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadges200Response", + '200': "APIGetUserBadgesResponse", } response_data = self.api_client.call_api( *_param, @@ -25324,7 +25361,7 @@ def get_user_badges_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserBadges200Response]: + ) -> ApiResponse[APIGetUserBadgesResponse]: """get_user_badges @@ -25379,7 +25416,7 @@ def get_user_badges_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadges200Response", + '200': "APIGetUserBadgesResponse", } response_data = self.api_client.call_api( *_param, @@ -25469,7 +25506,7 @@ def get_user_badges_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserBadges200Response", + '200': "APIGetUserBadgesResponse", } response_data = self.api_client.call_api( *_param, @@ -25591,7 +25628,7 @@ def get_votes( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetVotes200Response: + ) -> GetVotesResponse: """get_votes @@ -25631,7 +25668,7 @@ def get_votes( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetVotes200Response", + '200': "GetVotesResponse", } response_data = self.api_client.call_api( *_param, @@ -25661,7 +25698,7 @@ def get_votes_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetVotes200Response]: + ) -> ApiResponse[GetVotesResponse]: """get_votes @@ -25701,7 +25738,7 @@ def get_votes_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetVotes200Response", + '200': "GetVotesResponse", } response_data = self.api_client.call_api( *_param, @@ -25771,7 +25808,7 @@ def get_votes_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetVotes200Response", + '200': "GetVotesResponse", } response_data = self.api_client.call_api( *_param, @@ -25870,7 +25907,7 @@ def get_votes_for_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetVotesForUser200Response: + ) -> GetVotesForUserResponse: """get_votes_for_user @@ -25916,7 +25953,7 @@ def get_votes_for_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetVotesForUser200Response", + '200': "GetVotesForUserResponse", } response_data = self.api_client.call_api( *_param, @@ -25948,7 +25985,7 @@ def get_votes_for_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetVotesForUser200Response]: + ) -> ApiResponse[GetVotesForUserResponse]: """get_votes_for_user @@ -25994,7 +26031,7 @@ def get_votes_for_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetVotesForUser200Response", + '200': "GetVotesForUserResponse", } response_data = self.api_client.call_api( *_param, @@ -26072,7 +26109,7 @@ def get_votes_for_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetVotesForUser200Response", + '200': "GetVotesForUserResponse", } response_data = self.api_client.call_api( *_param, @@ -26180,7 +26217,7 @@ def patch_domain_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDomainConfig200Response: + ) -> PatchDomainConfigResponse: """patch_domain_config @@ -26223,7 +26260,7 @@ def patch_domain_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "PatchDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -26254,7 +26291,7 @@ def patch_domain_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetDomainConfig200Response]: + ) -> ApiResponse[PatchDomainConfigResponse]: """patch_domain_config @@ -26297,7 +26334,7 @@ def patch_domain_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "PatchDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -26371,7 +26408,7 @@ def patch_domain_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "PatchDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -26483,7 +26520,7 @@ def patch_hash_tag( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PatchHashTag200Response: + ) -> UpdateHashTagResponse: """patch_hash_tag @@ -26526,7 +26563,7 @@ def patch_hash_tag( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PatchHashTag200Response", + '200': "UpdateHashTagResponse", } response_data = self.api_client.call_api( *_param, @@ -26557,7 +26594,7 @@ def patch_hash_tag_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PatchHashTag200Response]: + ) -> ApiResponse[UpdateHashTagResponse]: """patch_hash_tag @@ -26600,7 +26637,7 @@ def patch_hash_tag_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PatchHashTag200Response", + '200': "UpdateHashTagResponse", } response_data = self.api_client.call_api( *_param, @@ -26674,7 +26711,7 @@ def patch_hash_tag_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PatchHashTag200Response", + '200': "UpdateHashTagResponse", } response_data = self.api_client.call_api( *_param, @@ -27409,7 +27446,7 @@ def put_domain_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetDomainConfig200Response: + ) -> PutDomainConfigResponse: """put_domain_config @@ -27452,7 +27489,7 @@ def put_domain_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "PutDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -27483,7 +27520,7 @@ def put_domain_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetDomainConfig200Response]: + ) -> ApiResponse[PutDomainConfigResponse]: """put_domain_config @@ -27526,7 +27563,7 @@ def put_domain_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "PutDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -27600,7 +27637,7 @@ def put_domain_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDomainConfig200Response", + '200': "PutDomainConfigResponse", } response_data = self.api_client.call_api( *_param, @@ -28032,7 +28069,7 @@ def render_email_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> RenderEmailTemplate200Response: + ) -> RenderEmailTemplateResponse: """render_email_template @@ -28075,7 +28112,7 @@ def render_email_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RenderEmailTemplate200Response", + '200': "RenderEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -28106,7 +28143,7 @@ def render_email_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[RenderEmailTemplate200Response]: + ) -> ApiResponse[RenderEmailTemplateResponse]: """render_email_template @@ -28149,7 +28186,7 @@ def render_email_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RenderEmailTemplate200Response", + '200': "RenderEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -28223,7 +28260,7 @@ def render_email_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RenderEmailTemplate200Response", + '200': "RenderEmailTemplateResponse", } response_data = self.api_client.call_api( *_param, @@ -28337,7 +28374,7 @@ def replace_tenant_package( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """replace_tenant_package @@ -28380,7 +28417,7 @@ def replace_tenant_package( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -28411,7 +28448,7 @@ def replace_tenant_package_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """replace_tenant_package @@ -28454,7 +28491,7 @@ def replace_tenant_package_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -28528,7 +28565,7 @@ def replace_tenant_package_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -28641,7 +28678,7 @@ def replace_tenant_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """replace_tenant_user @@ -28687,7 +28724,7 @@ def replace_tenant_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -28719,7 +28756,7 @@ def replace_tenant_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """replace_tenant_user @@ -28765,7 +28802,7 @@ def replace_tenant_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -28843,7 +28880,7 @@ def replace_tenant_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -28963,7 +29000,7 @@ def save_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SaveComment200Response: + ) -> APISaveCommentResponse: """save_comment @@ -29015,7 +29052,7 @@ def save_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SaveComment200Response", + '200': "APISaveCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -29049,7 +29086,7 @@ def save_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SaveComment200Response]: + ) -> ApiResponse[APISaveCommentResponse]: """save_comment @@ -29101,7 +29138,7 @@ def save_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SaveComment200Response", + '200': "APISaveCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -29187,7 +29224,7 @@ def save_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SaveComment200Response", + '200': "APISaveCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -29319,7 +29356,7 @@ def save_comments_bulk( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> List[SaveComment200Response]: + ) -> List[SaveCommentsBulkResponse]: """save_comments_bulk @@ -29371,7 +29408,7 @@ def save_comments_bulk( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[SaveComment200Response]", + '200': "List[SaveCommentsBulkResponse]", } response_data = self.api_client.call_api( *_param, @@ -29405,7 +29442,7 @@ def save_comments_bulk_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[List[SaveComment200Response]]: + ) -> ApiResponse[List[SaveCommentsBulkResponse]]: """save_comments_bulk @@ -29457,7 +29494,7 @@ def save_comments_bulk_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[SaveComment200Response]", + '200': "List[SaveCommentsBulkResponse]", } response_data = self.api_client.call_api( *_param, @@ -29543,7 +29580,7 @@ def save_comments_bulk_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "List[SaveComment200Response]", + '200': "List[SaveCommentsBulkResponse]", } response_data = self.api_client.call_api( *_param, @@ -29673,7 +29710,7 @@ def send_invite( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """send_invite @@ -29716,7 +29753,7 @@ def send_invite( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -29747,7 +29784,7 @@ def send_invite_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """send_invite @@ -29790,7 +29827,7 @@ def send_invite_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -29864,7 +29901,7 @@ def send_invite_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -29965,7 +30002,7 @@ def send_login_link( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """send_login_link @@ -30008,7 +30045,7 @@ def send_login_link( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -30039,7 +30076,7 @@ def send_login_link_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """send_login_link @@ -30082,7 +30119,7 @@ def send_login_link_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -30156,7 +30193,7 @@ def send_login_link_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -30259,7 +30296,7 @@ def un_block_user_from_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UnBlockCommentPublic200Response: + ) -> UnblockSuccess: """un_block_user_from_comment @@ -30308,7 +30345,7 @@ def un_block_user_from_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UnBlockCommentPublic200Response", + '200': "UnblockSuccess", } response_data = self.api_client.call_api( *_param, @@ -30341,7 +30378,7 @@ def un_block_user_from_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UnBlockCommentPublic200Response]: + ) -> ApiResponse[UnblockSuccess]: """un_block_user_from_comment @@ -30390,7 +30427,7 @@ def un_block_user_from_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UnBlockCommentPublic200Response", + '200': "UnblockSuccess", } response_data = self.api_client.call_api( *_param, @@ -30472,7 +30509,7 @@ def un_block_user_from_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UnBlockCommentPublic200Response", + '200': "UnblockSuccess", } response_data = self.api_client.call_api( *_param, @@ -30595,7 +30632,7 @@ def un_flag_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagComment200Response: + ) -> FlagCommentResponse: """un_flag_comment @@ -30641,7 +30678,7 @@ def un_flag_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagComment200Response", + '200': "FlagCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -30673,7 +30710,7 @@ def un_flag_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagComment200Response]: + ) -> ApiResponse[FlagCommentResponse]: """un_flag_comment @@ -30719,7 +30756,7 @@ def un_flag_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagComment200Response", + '200': "FlagCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -30797,7 +30834,7 @@ def un_flag_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagComment200Response", + '200': "FlagCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -30906,7 +30943,7 @@ def update_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_comment @@ -30958,7 +30995,7 @@ def update_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -30992,7 +31029,7 @@ def update_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_comment @@ -31044,7 +31081,7 @@ def update_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31130,7 +31167,7 @@ def update_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31257,7 +31294,7 @@ def update_email_template( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_email_template @@ -31300,7 +31337,7 @@ def update_email_template( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31331,7 +31368,7 @@ def update_email_template_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_email_template @@ -31374,7 +31411,7 @@ def update_email_template_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31448,7 +31485,7 @@ def update_email_template_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31560,7 +31597,7 @@ def update_feed_post( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_feed_post @@ -31603,7 +31640,7 @@ def update_feed_post( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31634,7 +31671,7 @@ def update_feed_post_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_feed_post @@ -31677,7 +31714,7 @@ def update_feed_post_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31751,7 +31788,7 @@ def update_feed_post_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31863,7 +31900,7 @@ def update_moderator( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_moderator @@ -31906,7 +31943,7 @@ def update_moderator( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -31937,7 +31974,7 @@ def update_moderator_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_moderator @@ -31980,7 +32017,7 @@ def update_moderator_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32054,7 +32091,7 @@ def update_moderator_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32167,7 +32204,7 @@ def update_notification( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_notification @@ -32213,7 +32250,7 @@ def update_notification( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32245,7 +32282,7 @@ def update_notification_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_notification @@ -32291,7 +32328,7 @@ def update_notification_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32369,7 +32406,7 @@ def update_notification_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32486,7 +32523,7 @@ def update_question_config( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_question_config @@ -32529,7 +32566,7 @@ def update_question_config( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32560,7 +32597,7 @@ def update_question_config_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_question_config @@ -32603,7 +32640,7 @@ def update_question_config_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32677,7 +32714,7 @@ def update_question_config_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32789,7 +32826,7 @@ def update_question_result( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_question_result @@ -32832,7 +32869,7 @@ def update_question_result( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32863,7 +32900,7 @@ def update_question_result_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_question_result @@ -32906,7 +32943,7 @@ def update_question_result_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -32980,7 +33017,7 @@ def update_question_result_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -33412,7 +33449,7 @@ def update_tenant( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_tenant @@ -33455,7 +33492,7 @@ def update_tenant( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -33486,7 +33523,7 @@ def update_tenant_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_tenant @@ -33529,7 +33566,7 @@ def update_tenant_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -33603,7 +33640,7 @@ def update_tenant_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -33715,7 +33752,7 @@ def update_tenant_package( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_tenant_package @@ -33758,7 +33795,7 @@ def update_tenant_package( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -33789,7 +33826,7 @@ def update_tenant_package_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_tenant_package @@ -33832,7 +33869,7 @@ def update_tenant_package_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -33906,7 +33943,7 @@ def update_tenant_package_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -34019,7 +34056,7 @@ def update_tenant_user( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: + ) -> APIEmptyResponse: """update_tenant_user @@ -34065,7 +34102,7 @@ def update_tenant_user( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -34097,7 +34134,7 @@ def update_tenant_user_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: + ) -> ApiResponse[APIEmptyResponse]: """update_tenant_user @@ -34143,7 +34180,7 @@ def update_tenant_user_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -34221,7 +34258,7 @@ def update_tenant_user_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -34338,7 +34375,7 @@ def update_user_badge( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateUserBadge200Response: + ) -> APIEmptySuccessResponse: """update_user_badge @@ -34381,7 +34418,7 @@ def update_user_badge( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserBadge200Response", + '200': "APIEmptySuccessResponse", } response_data = self.api_client.call_api( *_param, @@ -34412,7 +34449,7 @@ def update_user_badge_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateUserBadge200Response]: + ) -> ApiResponse[APIEmptySuccessResponse]: """update_user_badge @@ -34455,7 +34492,7 @@ def update_user_badge_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserBadge200Response", + '200': "APIEmptySuccessResponse", } response_data = self.api_client.call_api( *_param, @@ -34529,7 +34566,7 @@ def update_user_badge_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserBadge200Response", + '200': "APIEmptySuccessResponse", } response_data = self.api_client.call_api( *_param, diff --git a/client/api/moderation_api.py b/client/api/moderation_api.py new file mode 100644 index 0000000..96360cb --- /dev/null +++ b/client/api/moderation_api.py @@ -0,0 +1,12827 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + +import warnings +from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt +from typing import Any, Dict, List, Optional, Tuple, Union +from typing_extensions import Annotated + +from pydantic import StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Optional, Union +from client.models.api_empty_response import APIEmptyResponse +from client.models.api_moderate_get_user_ban_preferences_response import APIModerateGetUserBanPreferencesResponse +from client.models.adjust_comment_votes_params import AdjustCommentVotesParams +from client.models.adjust_votes_response import AdjustVotesResponse +from client.models.award_user_badge_response import AwardUserBadgeResponse +from client.models.ban_user_from_comment_result import BanUserFromCommentResult +from client.models.ban_user_undo_params import BanUserUndoParams +from client.models.bulk_pre_ban_params import BulkPreBanParams +from client.models.bulk_pre_ban_summary import BulkPreBanSummary +from client.models.comments_by_ids_params import CommentsByIdsParams +from client.models.get_banned_users_count_response import GetBannedUsersCountResponse +from client.models.get_banned_users_from_comment_response import GetBannedUsersFromCommentResponse +from client.models.get_comment_ban_status_response import GetCommentBanStatusResponse +from client.models.get_comment_text_response import GetCommentTextResponse +from client.models.get_tenant_manual_badges_response import GetTenantManualBadgesResponse +from client.models.get_user_internal_profile_response import GetUserInternalProfileResponse +from client.models.get_user_manual_badges_response import GetUserManualBadgesResponse +from client.models.get_user_trust_factor_response import GetUserTrustFactorResponse +from client.models.moderation_api_child_comments_response import ModerationAPIChildCommentsResponse +from client.models.moderation_api_comment_response import ModerationAPICommentResponse +from client.models.moderation_api_count_comments_response import ModerationAPICountCommentsResponse +from client.models.moderation_api_get_comment_ids_response import ModerationAPIGetCommentIdsResponse +from client.models.moderation_api_get_comments_response import ModerationAPIGetCommentsResponse +from client.models.moderation_api_get_logs_response import ModerationAPIGetLogsResponse +from client.models.moderation_comment_search_response import ModerationCommentSearchResponse +from client.models.moderation_export_response import ModerationExportResponse +from client.models.moderation_export_status_response import ModerationExportStatusResponse +from client.models.moderation_page_search_response import ModerationPageSearchResponse +from client.models.moderation_site_search_response import ModerationSiteSearchResponse +from client.models.moderation_suggest_response import ModerationSuggestResponse +from client.models.moderation_user_search_response import ModerationUserSearchResponse +from client.models.post_remove_comment_response import PostRemoveCommentResponse +from client.models.pre_ban_summary import PreBanSummary +from client.models.remove_user_badge_response import RemoveUserBadgeResponse +from client.models.set_comment_approved_response import SetCommentApprovedResponse +from client.models.set_comment_text_params import SetCommentTextParams +from client.models.set_comment_text_response import SetCommentTextResponse +from client.models.set_user_trust_factor_response import SetUserTrustFactorResponse +from client.models.vote_delete_response import VoteDeleteResponse +from client.models.vote_response import VoteResponse + +from client.api_client import ApiClient, RequestSerialized +from client.api_response import ApiResponse +from client.rest import RESTResponseType + + +class ModerationApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + + @validate_call + def delete_moderation_vote( + self, + comment_id: StrictStr, + vote_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VoteDeleteResponse: + """delete_moderation_vote + + + :param comment_id: (required) + :type comment_id: str + :param vote_id: (required) + :type vote_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_moderation_vote_serialize( + comment_id=comment_id, + vote_id=vote_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VoteDeleteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def delete_moderation_vote_with_http_info( + self, + comment_id: StrictStr, + vote_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VoteDeleteResponse]: + """delete_moderation_vote + + + :param comment_id: (required) + :type comment_id: str + :param vote_id: (required) + :type vote_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_moderation_vote_serialize( + comment_id=comment_id, + vote_id=vote_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VoteDeleteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def delete_moderation_vote_without_preload_content( + self, + comment_id: StrictStr, + vote_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """delete_moderation_vote + + + :param comment_id: (required) + :type comment_id: str + :param vote_id: (required) + :type vote_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._delete_moderation_vote_serialize( + comment_id=comment_id, + vote_id=vote_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VoteDeleteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_moderation_vote_serialize( + self, + comment_id, + vote_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + if vote_id is not None: + _path_params['voteId'] = vote_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/auth/my-account/moderate-comments/vote/{commentId}/{voteId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_api_comments( + self, + page: Optional[Union[StrictFloat, StrictInt]] = None, + count: Optional[Union[StrictFloat, StrictInt]] = None, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sorts: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationAPIGetCommentsResponse: + """get_api_comments + + + :param page: + :type page: float + :param count: + :type count: float + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sorts: + :type sorts: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_comments_serialize( + page=page, + count=count, + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + sorts=sorts, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_api_comments_with_http_info( + self, + page: Optional[Union[StrictFloat, StrictInt]] = None, + count: Optional[Union[StrictFloat, StrictInt]] = None, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sorts: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationAPIGetCommentsResponse]: + """get_api_comments + + + :param page: + :type page: float + :param count: + :type count: float + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sorts: + :type sorts: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_comments_serialize( + page=page, + count=count, + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + sorts=sorts, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_api_comments_without_preload_content( + self, + page: Optional[Union[StrictFloat, StrictInt]] = None, + count: Optional[Union[StrictFloat, StrictInt]] = None, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sorts: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_api_comments + + + :param page: + :type page: float + :param count: + :type count: float + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sorts: + :type sorts: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_comments_serialize( + page=page, + count=count, + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + sorts=sorts, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_api_comments_serialize( + self, + page, + count, + text_search, + by_ip_from_comment, + filters, + search_filters, + sorts, + demo, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if page is not None: + + _query_params.append(('page', page)) + + if count is not None: + + _query_params.append(('count', count)) + + if text_search is not None: + + _query_params.append(('text-search', text_search)) + + if by_ip_from_comment is not None: + + _query_params.append(('byIPFromComment', by_ip_from_comment)) + + if filters is not None: + + _query_params.append(('filters', filters)) + + if search_filters is not None: + + _query_params.append(('searchFilters', search_filters)) + + if sorts is not None: + + _query_params.append(('sorts', sorts)) + + if demo is not None: + + _query_params.append(('demo', demo)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/api/comments', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_api_export_status( + self, + batch_job_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationExportStatusResponse: + """get_api_export_status + + + :param batch_job_id: + :type batch_job_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_export_status_serialize( + batch_job_id=batch_job_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationExportStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_api_export_status_with_http_info( + self, + batch_job_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationExportStatusResponse]: + """get_api_export_status + + + :param batch_job_id: + :type batch_job_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_export_status_serialize( + batch_job_id=batch_job_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationExportStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_api_export_status_without_preload_content( + self, + batch_job_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_api_export_status + + + :param batch_job_id: + :type batch_job_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_export_status_serialize( + batch_job_id=batch_job_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationExportStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_api_export_status_serialize( + self, + batch_job_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if batch_job_id is not None: + + _query_params.append(('batchJobId', batch_job_id)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/api/export/status', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_api_ids( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + after_id: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationAPIGetCommentIdsResponse: + """get_api_ids + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param after_id: + :type after_id: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_ids_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + after_id=after_id, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetCommentIdsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_api_ids_with_http_info( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + after_id: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationAPIGetCommentIdsResponse]: + """get_api_ids + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param after_id: + :type after_id: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_ids_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + after_id=after_id, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetCommentIdsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_api_ids_without_preload_content( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + after_id: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_api_ids + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param after_id: + :type after_id: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_api_ids_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + after_id=after_id, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetCommentIdsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_api_ids_serialize( + self, + text_search, + by_ip_from_comment, + filters, + search_filters, + after_id, + demo, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if text_search is not None: + + _query_params.append(('text-search', text_search)) + + if by_ip_from_comment is not None: + + _query_params.append(('byIPFromComment', by_ip_from_comment)) + + if filters is not None: + + _query_params.append(('filters', filters)) + + if search_filters is not None: + + _query_params.append(('searchFilters', search_filters)) + + if after_id is not None: + + _query_params.append(('afterId', after_id)) + + if demo is not None: + + _query_params.append(('demo', demo)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/api/ids', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_ban_users_from_comment( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetBannedUsersFromCommentResponse: + """get_ban_users_from_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ban_users_from_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetBannedUsersFromCommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_ban_users_from_comment_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetBannedUsersFromCommentResponse]: + """get_ban_users_from_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ban_users_from_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetBannedUsersFromCommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_ban_users_from_comment_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_ban_users_from_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_ban_users_from_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetBannedUsersFromCommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_ban_users_from_comment_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_comment_ban_status( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCommentBanStatusResponse: + """get_comment_ban_status + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_ban_status_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentBanStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_comment_ban_status_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCommentBanStatusResponse]: + """get_comment_ban_status + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_ban_status_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentBanStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_comment_ban_status_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_comment_ban_status + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_ban_status_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentBanStatusResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_comment_ban_status_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_comment_children( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationAPIChildCommentsResponse: + """get_comment_children + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_children_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIChildCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_comment_children_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationAPIChildCommentsResponse]: + """get_comment_children + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_children_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIChildCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_comment_children_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_comment_children + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_children_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIChildCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_comment_children_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/comment-children/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_count( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filter: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationAPICountCommentsResponse: + """get_count + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filter: + :type filter: str + :param search_filters: + :type search_filters: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_count_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filter=filter, + search_filters=search_filters, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPICountCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_count_with_http_info( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filter: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationAPICountCommentsResponse]: + """get_count + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filter: + :type filter: str + :param search_filters: + :type search_filters: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_count_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filter=filter, + search_filters=search_filters, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPICountCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_count_without_preload_content( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filter: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + demo: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_count + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filter: + :type filter: str + :param search_filters: + :type search_filters: str + :param demo: + :type demo: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_count_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filter=filter, + search_filters=search_filters, + demo=demo, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPICountCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_count_serialize( + self, + text_search, + by_ip_from_comment, + filter, + search_filters, + demo, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if text_search is not None: + + _query_params.append(('text-search', text_search)) + + if by_ip_from_comment is not None: + + _query_params.append(('byIPFromComment', by_ip_from_comment)) + + if filter is not None: + + _query_params.append(('filter', filter)) + + if search_filters is not None: + + _query_params.append(('searchFilters', search_filters)) + + if demo is not None: + + _query_params.append(('demo', demo)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/count', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_counts( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetBannedUsersCountResponse: + """get_counts + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_counts_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetBannedUsersCountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_counts_with_http_info( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetBannedUsersCountResponse]: + """get_counts + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_counts_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetBannedUsersCountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_counts_without_preload_content( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_counts + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_counts_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetBannedUsersCountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_counts_serialize( + self, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/banned-users/counts', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_logs( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationAPIGetLogsResponse: + """get_logs + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_logs_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetLogsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_logs_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationAPIGetLogsResponse]: + """get_logs + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_logs_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetLogsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_logs_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_logs + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_logs_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIGetLogsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_logs_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/logs/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_manual_badges( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetTenantManualBadgesResponse: + """get_manual_badges + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_manual_badges_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTenantManualBadgesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_manual_badges_with_http_info( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetTenantManualBadgesResponse]: + """get_manual_badges + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_manual_badges_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTenantManualBadgesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_manual_badges_without_preload_content( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_manual_badges + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_manual_badges_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTenantManualBadgesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_manual_badges_serialize( + self, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/get-manual-badges', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_manual_badges_for_user( + self, + badges_user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetUserManualBadgesResponse: + """get_manual_badges_for_user + + + :param badges_user_id: + :type badges_user_id: str + :param comment_id: + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_manual_badges_for_user_serialize( + badges_user_id=badges_user_id, + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserManualBadgesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_manual_badges_for_user_with_http_info( + self, + badges_user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetUserManualBadgesResponse]: + """get_manual_badges_for_user + + + :param badges_user_id: + :type badges_user_id: str + :param comment_id: + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_manual_badges_for_user_serialize( + badges_user_id=badges_user_id, + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserManualBadgesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_manual_badges_for_user_without_preload_content( + self, + badges_user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_manual_badges_for_user + + + :param badges_user_id: + :type badges_user_id: str + :param comment_id: + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_manual_badges_for_user_serialize( + badges_user_id=badges_user_id, + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserManualBadgesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_manual_badges_for_user_serialize( + self, + badges_user_id, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if badges_user_id is not None: + + _query_params.append(('badgesUserId', badges_user_id)) + + if comment_id is not None: + + _query_params.append(('commentId', comment_id)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/get-manual-badges-for-user', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_moderation_comment( + self, + comment_id: StrictStr, + include_email: Optional[StrictBool] = None, + include_ip: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationAPICommentResponse: + """get_moderation_comment + + + :param comment_id: (required) + :type comment_id: str + :param include_email: + :type include_email: bool + :param include_ip: + :type include_ip: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_moderation_comment_serialize( + comment_id=comment_id, + include_email=include_email, + include_ip=include_ip, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPICommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_moderation_comment_with_http_info( + self, + comment_id: StrictStr, + include_email: Optional[StrictBool] = None, + include_ip: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationAPICommentResponse]: + """get_moderation_comment + + + :param comment_id: (required) + :type comment_id: str + :param include_email: + :type include_email: bool + :param include_ip: + :type include_ip: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_moderation_comment_serialize( + comment_id=comment_id, + include_email=include_email, + include_ip=include_ip, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPICommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_moderation_comment_without_preload_content( + self, + comment_id: StrictStr, + include_email: Optional[StrictBool] = None, + include_ip: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_moderation_comment + + + :param comment_id: (required) + :type comment_id: str + :param include_email: + :type include_email: bool + :param include_ip: + :type include_ip: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_moderation_comment_serialize( + comment_id=comment_id, + include_email=include_email, + include_ip=include_ip, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPICommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_moderation_comment_serialize( + self, + comment_id, + include_email, + include_ip, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if include_email is not None: + + _query_params.append(('includeEmail', include_email)) + + if include_ip is not None: + + _query_params.append(('includeIP', include_ip)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/comment/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_moderation_comment_text( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCommentTextResponse: + """get_moderation_comment_text + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_moderation_comment_text_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_moderation_comment_text_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCommentTextResponse]: + """get_moderation_comment_text + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_moderation_comment_text_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_moderation_comment_text_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_moderation_comment_text + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_moderation_comment_text_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_moderation_comment_text_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/get-comment-text/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_pre_ban_summary( + self, + comment_id: StrictStr, + include_by_user_id_and_email: Optional[StrictBool] = None, + include_by_ip: Optional[StrictBool] = None, + include_by_email_domain: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PreBanSummary: + """get_pre_ban_summary + + + :param comment_id: (required) + :type comment_id: str + :param include_by_user_id_and_email: + :type include_by_user_id_and_email: bool + :param include_by_ip: + :type include_by_ip: bool + :param include_by_email_domain: + :type include_by_email_domain: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pre_ban_summary_serialize( + comment_id=comment_id, + include_by_user_id_and_email=include_by_user_id_and_email, + include_by_ip=include_by_ip, + include_by_email_domain=include_by_email_domain, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PreBanSummary", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_pre_ban_summary_with_http_info( + self, + comment_id: StrictStr, + include_by_user_id_and_email: Optional[StrictBool] = None, + include_by_ip: Optional[StrictBool] = None, + include_by_email_domain: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PreBanSummary]: + """get_pre_ban_summary + + + :param comment_id: (required) + :type comment_id: str + :param include_by_user_id_and_email: + :type include_by_user_id_and_email: bool + :param include_by_ip: + :type include_by_ip: bool + :param include_by_email_domain: + :type include_by_email_domain: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pre_ban_summary_serialize( + comment_id=comment_id, + include_by_user_id_and_email=include_by_user_id_and_email, + include_by_ip=include_by_ip, + include_by_email_domain=include_by_email_domain, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PreBanSummary", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_pre_ban_summary_without_preload_content( + self, + comment_id: StrictStr, + include_by_user_id_and_email: Optional[StrictBool] = None, + include_by_ip: Optional[StrictBool] = None, + include_by_email_domain: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_pre_ban_summary + + + :param comment_id: (required) + :type comment_id: str + :param include_by_user_id_and_email: + :type include_by_user_id_and_email: bool + :param include_by_ip: + :type include_by_ip: bool + :param include_by_email_domain: + :type include_by_email_domain: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pre_ban_summary_serialize( + comment_id=comment_id, + include_by_user_id_and_email=include_by_user_id_and_email, + include_by_ip=include_by_ip, + include_by_email_domain=include_by_email_domain, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PreBanSummary", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_pre_ban_summary_serialize( + self, + comment_id, + include_by_user_id_and_email, + include_by_ip, + include_by_email_domain, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if include_by_user_id_and_email is not None: + + _query_params.append(('includeByUserIdAndEmail', include_by_user_id_and_email)) + + if include_by_ip is not None: + + _query_params.append(('includeByIP', include_by_ip)) + + if include_by_email_domain is not None: + + _query_params.append(('includeByEmailDomain', include_by_email_domain)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/pre-ban-summary/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_search_comments_summary( + self, + value: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationCommentSearchResponse: + """get_search_comments_summary + + + :param value: + :type value: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_comments_summary_serialize( + value=value, + filters=filters, + search_filters=search_filters, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationCommentSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_search_comments_summary_with_http_info( + self, + value: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationCommentSearchResponse]: + """get_search_comments_summary + + + :param value: + :type value: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_comments_summary_serialize( + value=value, + filters=filters, + search_filters=search_filters, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationCommentSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_search_comments_summary_without_preload_content( + self, + value: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_search_comments_summary + + + :param value: + :type value: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_comments_summary_serialize( + value=value, + filters=filters, + search_filters=search_filters, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationCommentSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_search_comments_summary_serialize( + self, + value, + filters, + search_filters, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if value is not None: + + _query_params.append(('value', value)) + + if filters is not None: + + _query_params.append(('filters', filters)) + + if search_filters is not None: + + _query_params.append(('searchFilters', search_filters)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/search/comments/summary', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_search_pages( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationPageSearchResponse: + """get_search_pages + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_pages_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationPageSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_search_pages_with_http_info( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationPageSearchResponse]: + """get_search_pages + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_pages_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationPageSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_search_pages_without_preload_content( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_search_pages + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_pages_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationPageSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_search_pages_serialize( + self, + value, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if value is not None: + + _query_params.append(('value', value)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/search/pages', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_search_sites( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationSiteSearchResponse: + """get_search_sites + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_sites_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationSiteSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_search_sites_with_http_info( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationSiteSearchResponse]: + """get_search_sites + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_sites_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationSiteSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_search_sites_without_preload_content( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_search_sites + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_sites_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationSiteSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_search_sites_serialize( + self, + value, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if value is not None: + + _query_params.append(('value', value)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/search/sites', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_search_suggest( + self, + text_search: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationSuggestResponse: + """get_search_suggest + + + :param text_search: + :type text_search: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_suggest_serialize( + text_search=text_search, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationSuggestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_search_suggest_with_http_info( + self, + text_search: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationSuggestResponse]: + """get_search_suggest + + + :param text_search: + :type text_search: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_suggest_serialize( + text_search=text_search, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationSuggestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_search_suggest_without_preload_content( + self, + text_search: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_search_suggest + + + :param text_search: + :type text_search: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_suggest_serialize( + text_search=text_search, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationSuggestResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_search_suggest_serialize( + self, + text_search, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if text_search is not None: + + _query_params.append(('text-search', text_search)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/search/suggest', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_search_users( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationUserSearchResponse: + """get_search_users + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_users_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationUserSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_search_users_with_http_info( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationUserSearchResponse]: + """get_search_users + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_users_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationUserSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_search_users_without_preload_content( + self, + value: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_search_users + + + :param value: + :type value: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_search_users_serialize( + value=value, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationUserSearchResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_search_users_serialize( + self, + value, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if value is not None: + + _query_params.append(('value', value)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/search/users', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_trust_factor( + self, + user_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetUserTrustFactorResponse: + """get_trust_factor + + + :param user_id: + :type user_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_trust_factor_serialize( + user_id=user_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserTrustFactorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_trust_factor_with_http_info( + self, + user_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetUserTrustFactorResponse]: + """get_trust_factor + + + :param user_id: + :type user_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_trust_factor_serialize( + user_id=user_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserTrustFactorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_trust_factor_without_preload_content( + self, + user_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_trust_factor + + + :param user_id: + :type user_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_trust_factor_serialize( + user_id=user_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserTrustFactorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_trust_factor_serialize( + self, + user_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/get-trust-factor', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_user_ban_preference( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIModerateGetUserBanPreferencesResponse: + """get_user_ban_preference + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_ban_preference_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIModerateGetUserBanPreferencesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_user_ban_preference_with_http_info( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIModerateGetUserBanPreferencesResponse]: + """get_user_ban_preference + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_ban_preference_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIModerateGetUserBanPreferencesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_user_ban_preference_without_preload_content( + self, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_user_ban_preference + + + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_ban_preference_serialize( + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIModerateGetUserBanPreferencesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_user_ban_preference_serialize( + self, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/user-ban-preference', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_user_internal_profile( + self, + comment_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetUserInternalProfileResponse: + """get_user_internal_profile + + + :param comment_id: + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_internal_profile_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserInternalProfileResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_user_internal_profile_with_http_info( + self, + comment_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetUserInternalProfileResponse]: + """get_user_internal_profile + + + :param comment_id: + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_internal_profile_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserInternalProfileResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_user_internal_profile_without_preload_content( + self, + comment_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_user_internal_profile + + + :param comment_id: + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_internal_profile_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserInternalProfileResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_user_internal_profile_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if comment_id is not None: + + _query_params.append(('commentId', comment_id)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/auth/my-account/moderate-comments/get-user-internal-profile', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_adjust_comment_votes( + self, + comment_id: StrictStr, + adjust_comment_votes_params: AdjustCommentVotesParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AdjustVotesResponse: + """post_adjust_comment_votes + + + :param comment_id: (required) + :type comment_id: str + :param adjust_comment_votes_params: (required) + :type adjust_comment_votes_params: AdjustCommentVotesParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjust_comment_votes_serialize( + comment_id=comment_id, + adjust_comment_votes_params=adjust_comment_votes_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdjustVotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_adjust_comment_votes_with_http_info( + self, + comment_id: StrictStr, + adjust_comment_votes_params: AdjustCommentVotesParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AdjustVotesResponse]: + """post_adjust_comment_votes + + + :param comment_id: (required) + :type comment_id: str + :param adjust_comment_votes_params: (required) + :type adjust_comment_votes_params: AdjustCommentVotesParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjust_comment_votes_serialize( + comment_id=comment_id, + adjust_comment_votes_params=adjust_comment_votes_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdjustVotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_adjust_comment_votes_without_preload_content( + self, + comment_id: StrictStr, + adjust_comment_votes_params: AdjustCommentVotesParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_adjust_comment_votes + + + :param comment_id: (required) + :type comment_id: str + :param adjust_comment_votes_params: (required) + :type adjust_comment_votes_params: AdjustCommentVotesParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_adjust_comment_votes_serialize( + comment_id=comment_id, + adjust_comment_votes_params=adjust_comment_votes_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AdjustVotesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_adjust_comment_votes_serialize( + self, + comment_id, + adjust_comment_votes_params, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + if adjust_comment_votes_params is not None: + _body_params = adjust_comment_votes_params + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_api_export( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sorts: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationExportResponse: + """post_api_export + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sorts: + :type sorts: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_api_export_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + sorts=sorts, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationExportResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_api_export_with_http_info( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sorts: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationExportResponse]: + """post_api_export + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sorts: + :type sorts: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_api_export_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + sorts=sorts, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationExportResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_api_export_without_preload_content( + self, + text_search: Optional[StrictStr] = None, + by_ip_from_comment: Optional[StrictStr] = None, + filters: Optional[StrictStr] = None, + search_filters: Optional[StrictStr] = None, + sorts: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_api_export + + + :param text_search: + :type text_search: str + :param by_ip_from_comment: + :type by_ip_from_comment: str + :param filters: + :type filters: str + :param search_filters: + :type search_filters: str + :param sorts: + :type sorts: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_api_export_serialize( + text_search=text_search, + by_ip_from_comment=by_ip_from_comment, + filters=filters, + search_filters=search_filters, + sorts=sorts, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationExportResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_api_export_serialize( + self, + text_search, + by_ip_from_comment, + filters, + search_filters, + sorts, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if text_search is not None: + + _query_params.append(('text-search', text_search)) + + if by_ip_from_comment is not None: + + _query_params.append(('byIPFromComment', by_ip_from_comment)) + + if filters is not None: + + _query_params.append(('filters', filters)) + + if search_filters is not None: + + _query_params.append(('searchFilters', search_filters)) + + if sorts is not None: + + _query_params.append(('sorts', sorts)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/api/export', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_ban_user_from_comment( + self, + comment_id: StrictStr, + ban_email: Optional[StrictBool] = None, + ban_email_domain: Optional[StrictBool] = None, + ban_ip: Optional[StrictBool] = None, + delete_all_users_comments: Optional[StrictBool] = None, + banned_until: Optional[StrictStr] = None, + is_shadow_ban: Optional[StrictBool] = None, + update_id: Optional[StrictStr] = None, + ban_reason: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BanUserFromCommentResult: + """post_ban_user_from_comment + + + :param comment_id: (required) + :type comment_id: str + :param ban_email: + :type ban_email: bool + :param ban_email_domain: + :type ban_email_domain: bool + :param ban_ip: + :type ban_ip: bool + :param delete_all_users_comments: + :type delete_all_users_comments: bool + :param banned_until: + :type banned_until: str + :param is_shadow_ban: + :type is_shadow_ban: bool + :param update_id: + :type update_id: str + :param ban_reason: + :type ban_reason: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_ban_user_from_comment_serialize( + comment_id=comment_id, + ban_email=ban_email, + ban_email_domain=ban_email_domain, + ban_ip=ban_ip, + delete_all_users_comments=delete_all_users_comments, + banned_until=banned_until, + is_shadow_ban=is_shadow_ban, + update_id=update_id, + ban_reason=ban_reason, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BanUserFromCommentResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_ban_user_from_comment_with_http_info( + self, + comment_id: StrictStr, + ban_email: Optional[StrictBool] = None, + ban_email_domain: Optional[StrictBool] = None, + ban_ip: Optional[StrictBool] = None, + delete_all_users_comments: Optional[StrictBool] = None, + banned_until: Optional[StrictStr] = None, + is_shadow_ban: Optional[StrictBool] = None, + update_id: Optional[StrictStr] = None, + ban_reason: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BanUserFromCommentResult]: + """post_ban_user_from_comment + + + :param comment_id: (required) + :type comment_id: str + :param ban_email: + :type ban_email: bool + :param ban_email_domain: + :type ban_email_domain: bool + :param ban_ip: + :type ban_ip: bool + :param delete_all_users_comments: + :type delete_all_users_comments: bool + :param banned_until: + :type banned_until: str + :param is_shadow_ban: + :type is_shadow_ban: bool + :param update_id: + :type update_id: str + :param ban_reason: + :type ban_reason: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_ban_user_from_comment_serialize( + comment_id=comment_id, + ban_email=ban_email, + ban_email_domain=ban_email_domain, + ban_ip=ban_ip, + delete_all_users_comments=delete_all_users_comments, + banned_until=banned_until, + is_shadow_ban=is_shadow_ban, + update_id=update_id, + ban_reason=ban_reason, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BanUserFromCommentResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_ban_user_from_comment_without_preload_content( + self, + comment_id: StrictStr, + ban_email: Optional[StrictBool] = None, + ban_email_domain: Optional[StrictBool] = None, + ban_ip: Optional[StrictBool] = None, + delete_all_users_comments: Optional[StrictBool] = None, + banned_until: Optional[StrictStr] = None, + is_shadow_ban: Optional[StrictBool] = None, + update_id: Optional[StrictStr] = None, + ban_reason: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_ban_user_from_comment + + + :param comment_id: (required) + :type comment_id: str + :param ban_email: + :type ban_email: bool + :param ban_email_domain: + :type ban_email_domain: bool + :param ban_ip: + :type ban_ip: bool + :param delete_all_users_comments: + :type delete_all_users_comments: bool + :param banned_until: + :type banned_until: str + :param is_shadow_ban: + :type is_shadow_ban: bool + :param update_id: + :type update_id: str + :param ban_reason: + :type ban_reason: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_ban_user_from_comment_serialize( + comment_id=comment_id, + ban_email=ban_email, + ban_email_domain=ban_email_domain, + ban_ip=ban_ip, + delete_all_users_comments=delete_all_users_comments, + banned_until=banned_until, + is_shadow_ban=is_shadow_ban, + update_id=update_id, + ban_reason=ban_reason, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BanUserFromCommentResult", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_ban_user_from_comment_serialize( + self, + comment_id, + ban_email, + ban_email_domain, + ban_ip, + delete_all_users_comments, + banned_until, + is_shadow_ban, + update_id, + ban_reason, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if ban_email is not None: + + _query_params.append(('banEmail', ban_email)) + + if ban_email_domain is not None: + + _query_params.append(('banEmailDomain', ban_email_domain)) + + if ban_ip is not None: + + _query_params.append(('banIP', ban_ip)) + + if delete_all_users_comments is not None: + + _query_params.append(('deleteAllUsersComments', delete_all_users_comments)) + + if banned_until is not None: + + _query_params.append(('bannedUntil', banned_until)) + + if is_shadow_ban is not None: + + _query_params.append(('isShadowBan', is_shadow_ban)) + + if update_id is not None: + + _query_params.append(('updateId', update_id)) + + if ban_reason is not None: + + _query_params.append(('banReason', ban_reason)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_ban_user_undo( + self, + ban_user_undo_params: BanUserUndoParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """post_ban_user_undo + + + :param ban_user_undo_params: (required) + :type ban_user_undo_params: BanUserUndoParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_ban_user_undo_serialize( + ban_user_undo_params=ban_user_undo_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_ban_user_undo_with_http_info( + self, + ban_user_undo_params: BanUserUndoParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """post_ban_user_undo + + + :param ban_user_undo_params: (required) + :type ban_user_undo_params: BanUserUndoParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_ban_user_undo_serialize( + ban_user_undo_params=ban_user_undo_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_ban_user_undo_without_preload_content( + self, + ban_user_undo_params: BanUserUndoParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_ban_user_undo + + + :param ban_user_undo_params: (required) + :type ban_user_undo_params: BanUserUndoParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_ban_user_undo_serialize( + ban_user_undo_params=ban_user_undo_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_ban_user_undo_serialize( + self, + ban_user_undo_params, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + if ban_user_undo_params is not None: + _body_params = ban_user_undo_params + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/ban-user/undo', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_bulk_pre_ban_summary( + self, + bulk_pre_ban_params: BulkPreBanParams, + include_by_user_id_and_email: Optional[StrictBool] = None, + include_by_ip: Optional[StrictBool] = None, + include_by_email_domain: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> BulkPreBanSummary: + """post_bulk_pre_ban_summary + + + :param bulk_pre_ban_params: (required) + :type bulk_pre_ban_params: BulkPreBanParams + :param include_by_user_id_and_email: + :type include_by_user_id_and_email: bool + :param include_by_ip: + :type include_by_ip: bool + :param include_by_email_domain: + :type include_by_email_domain: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_bulk_pre_ban_summary_serialize( + bulk_pre_ban_params=bulk_pre_ban_params, + include_by_user_id_and_email=include_by_user_id_and_email, + include_by_ip=include_by_ip, + include_by_email_domain=include_by_email_domain, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BulkPreBanSummary", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_bulk_pre_ban_summary_with_http_info( + self, + bulk_pre_ban_params: BulkPreBanParams, + include_by_user_id_and_email: Optional[StrictBool] = None, + include_by_ip: Optional[StrictBool] = None, + include_by_email_domain: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[BulkPreBanSummary]: + """post_bulk_pre_ban_summary + + + :param bulk_pre_ban_params: (required) + :type bulk_pre_ban_params: BulkPreBanParams + :param include_by_user_id_and_email: + :type include_by_user_id_and_email: bool + :param include_by_ip: + :type include_by_ip: bool + :param include_by_email_domain: + :type include_by_email_domain: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_bulk_pre_ban_summary_serialize( + bulk_pre_ban_params=bulk_pre_ban_params, + include_by_user_id_and_email=include_by_user_id_and_email, + include_by_ip=include_by_ip, + include_by_email_domain=include_by_email_domain, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BulkPreBanSummary", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_bulk_pre_ban_summary_without_preload_content( + self, + bulk_pre_ban_params: BulkPreBanParams, + include_by_user_id_and_email: Optional[StrictBool] = None, + include_by_ip: Optional[StrictBool] = None, + include_by_email_domain: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_bulk_pre_ban_summary + + + :param bulk_pre_ban_params: (required) + :type bulk_pre_ban_params: BulkPreBanParams + :param include_by_user_id_and_email: + :type include_by_user_id_and_email: bool + :param include_by_ip: + :type include_by_ip: bool + :param include_by_email_domain: + :type include_by_email_domain: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_bulk_pre_ban_summary_serialize( + bulk_pre_ban_params=bulk_pre_ban_params, + include_by_user_id_and_email=include_by_user_id_and_email, + include_by_ip=include_by_ip, + include_by_email_domain=include_by_email_domain, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "BulkPreBanSummary", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_bulk_pre_ban_summary_serialize( + self, + bulk_pre_ban_params, + include_by_user_id_and_email, + include_by_ip, + include_by_email_domain, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if include_by_user_id_and_email is not None: + + _query_params.append(('includeByUserIdAndEmail', include_by_user_id_and_email)) + + if include_by_ip is not None: + + _query_params.append(('includeByIP', include_by_ip)) + + if include_by_email_domain is not None: + + _query_params.append(('includeByEmailDomain', include_by_email_domain)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + if bulk_pre_ban_params is not None: + _body_params = bulk_pre_ban_params + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/bulk-pre-ban-summary', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_comments_by_ids( + self, + comments_by_ids_params: CommentsByIdsParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ModerationAPIChildCommentsResponse: + """post_comments_by_ids + + + :param comments_by_ids_params: (required) + :type comments_by_ids_params: CommentsByIdsParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_comments_by_ids_serialize( + comments_by_ids_params=comments_by_ids_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIChildCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_comments_by_ids_with_http_info( + self, + comments_by_ids_params: CommentsByIdsParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[ModerationAPIChildCommentsResponse]: + """post_comments_by_ids + + + :param comments_by_ids_params: (required) + :type comments_by_ids_params: CommentsByIdsParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_comments_by_ids_serialize( + comments_by_ids_params=comments_by_ids_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIChildCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_comments_by_ids_without_preload_content( + self, + comments_by_ids_params: CommentsByIdsParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_comments_by_ids + + + :param comments_by_ids_params: (required) + :type comments_by_ids_params: CommentsByIdsParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_comments_by_ids_serialize( + comments_by_ids_params=comments_by_ids_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "ModerationAPIChildCommentsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_comments_by_ids_serialize( + self, + comments_by_ids_params, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + if comments_by_ids_params is not None: + _body_params = comments_by_ids_params + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/comments-by-ids', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_flag_comment( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """post_flag_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_flag_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_flag_comment_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """post_flag_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_flag_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_flag_comment_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_flag_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_flag_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_flag_comment_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/flag-comment/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_remove_comment( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PostRemoveCommentResponse: + """post_remove_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_remove_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRemoveCommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_remove_comment_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PostRemoveCommentResponse]: + """post_remove_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_remove_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRemoveCommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_remove_comment_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_remove_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_remove_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PostRemoveCommentResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_remove_comment_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/remove-comment/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_restore_deleted_comment( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """post_restore_deleted_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_restore_deleted_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_restore_deleted_comment_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """post_restore_deleted_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_restore_deleted_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_restore_deleted_comment_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_restore_deleted_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_restore_deleted_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_restore_deleted_comment_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_set_comment_approval_status( + self, + comment_id: StrictStr, + approved: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetCommentApprovedResponse: + """post_set_comment_approval_status + + + :param comment_id: (required) + :type comment_id: str + :param approved: + :type approved: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_approval_status_serialize( + comment_id=comment_id, + approved=approved, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetCommentApprovedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_set_comment_approval_status_with_http_info( + self, + comment_id: StrictStr, + approved: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetCommentApprovedResponse]: + """post_set_comment_approval_status + + + :param comment_id: (required) + :type comment_id: str + :param approved: + :type approved: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_approval_status_serialize( + comment_id=comment_id, + approved=approved, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetCommentApprovedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_set_comment_approval_status_without_preload_content( + self, + comment_id: StrictStr, + approved: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_set_comment_approval_status + + + :param comment_id: (required) + :type comment_id: str + :param approved: + :type approved: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_approval_status_serialize( + comment_id=comment_id, + approved=approved, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetCommentApprovedResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_set_comment_approval_status_serialize( + self, + comment_id, + approved, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if approved is not None: + + _query_params.append(('approved', approved)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_set_comment_review_status( + self, + comment_id: StrictStr, + reviewed: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """post_set_comment_review_status + + + :param comment_id: (required) + :type comment_id: str + :param reviewed: + :type reviewed: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_review_status_serialize( + comment_id=comment_id, + reviewed=reviewed, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_set_comment_review_status_with_http_info( + self, + comment_id: StrictStr, + reviewed: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """post_set_comment_review_status + + + :param comment_id: (required) + :type comment_id: str + :param reviewed: + :type reviewed: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_review_status_serialize( + comment_id=comment_id, + reviewed=reviewed, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_set_comment_review_status_without_preload_content( + self, + comment_id: StrictStr, + reviewed: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_set_comment_review_status + + + :param comment_id: (required) + :type comment_id: str + :param reviewed: + :type reviewed: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_review_status_serialize( + comment_id=comment_id, + reviewed=reviewed, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_set_comment_review_status_serialize( + self, + comment_id, + reviewed, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if reviewed is not None: + + _query_params.append(('reviewed', reviewed)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/set-comment-review-status/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_set_comment_spam_status( + self, + comment_id: StrictStr, + spam: Optional[StrictBool] = None, + perm_not_spam: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """post_set_comment_spam_status + + + :param comment_id: (required) + :type comment_id: str + :param spam: + :type spam: bool + :param perm_not_spam: + :type perm_not_spam: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_spam_status_serialize( + comment_id=comment_id, + spam=spam, + perm_not_spam=perm_not_spam, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_set_comment_spam_status_with_http_info( + self, + comment_id: StrictStr, + spam: Optional[StrictBool] = None, + perm_not_spam: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """post_set_comment_spam_status + + + :param comment_id: (required) + :type comment_id: str + :param spam: + :type spam: bool + :param perm_not_spam: + :type perm_not_spam: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_spam_status_serialize( + comment_id=comment_id, + spam=spam, + perm_not_spam=perm_not_spam, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_set_comment_spam_status_without_preload_content( + self, + comment_id: StrictStr, + spam: Optional[StrictBool] = None, + perm_not_spam: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_set_comment_spam_status + + + :param comment_id: (required) + :type comment_id: str + :param spam: + :type spam: bool + :param perm_not_spam: + :type perm_not_spam: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_spam_status_serialize( + comment_id=comment_id, + spam=spam, + perm_not_spam=perm_not_spam, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_set_comment_spam_status_serialize( + self, + comment_id, + spam, + perm_not_spam, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if spam is not None: + + _query_params.append(('spam', spam)) + + if perm_not_spam is not None: + + _query_params.append(('permNotSpam', perm_not_spam)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_set_comment_text( + self, + comment_id: StrictStr, + set_comment_text_params: SetCommentTextParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetCommentTextResponse: + """post_set_comment_text + + + :param comment_id: (required) + :type comment_id: str + :param set_comment_text_params: (required) + :type set_comment_text_params: SetCommentTextParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_text_serialize( + comment_id=comment_id, + set_comment_text_params=set_comment_text_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_set_comment_text_with_http_info( + self, + comment_id: StrictStr, + set_comment_text_params: SetCommentTextParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetCommentTextResponse]: + """post_set_comment_text + + + :param comment_id: (required) + :type comment_id: str + :param set_comment_text_params: (required) + :type set_comment_text_params: SetCommentTextParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_text_serialize( + comment_id=comment_id, + set_comment_text_params=set_comment_text_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_set_comment_text_without_preload_content( + self, + comment_id: StrictStr, + set_comment_text_params: SetCommentTextParams, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_set_comment_text + + + :param comment_id: (required) + :type comment_id: str + :param set_comment_text_params: (required) + :type set_comment_text_params: SetCommentTextParams + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_set_comment_text_serialize( + comment_id=comment_id, + set_comment_text_params=set_comment_text_params, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_set_comment_text_serialize( + self, + comment_id, + set_comment_text_params, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + if set_comment_text_params is not None: + _body_params = set_comment_text_params + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + # set the HTTP header `Content-Type` + if _content_type: + _header_params['Content-Type'] = _content_type + else: + _default_content_type = ( + self.api_client.select_header_content_type( + [ + 'application/json' + ] + ) + ) + if _default_content_type is not None: + _header_params['Content-Type'] = _default_content_type + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/set-comment-text/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_un_flag_comment( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """post_un_flag_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_un_flag_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_un_flag_comment_with_http_info( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """post_un_flag_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_un_flag_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_un_flag_comment_without_preload_content( + self, + comment_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_un_flag_comment + + + :param comment_id: (required) + :type comment_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_un_flag_comment_serialize( + comment_id=comment_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_un_flag_comment_serialize( + self, + comment_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/un-flag-comment/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def post_vote( + self, + comment_id: StrictStr, + direction: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> VoteResponse: + """post_vote + + + :param comment_id: (required) + :type comment_id: str + :param direction: + :type direction: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_vote_serialize( + comment_id=comment_id, + direction=direction, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def post_vote_with_http_info( + self, + comment_id: StrictStr, + direction: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[VoteResponse]: + """post_vote + + + :param comment_id: (required) + :type comment_id: str + :param direction: + :type direction: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_vote_serialize( + comment_id=comment_id, + direction=direction, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def post_vote_without_preload_content( + self, + comment_id: StrictStr, + direction: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """post_vote + + + :param comment_id: (required) + :type comment_id: str + :param direction: + :type direction: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._post_vote_serialize( + comment_id=comment_id, + direction=direction, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "VoteResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _post_vote_serialize( + self, + comment_id, + direction, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if direction is not None: + + _query_params.append(('direction', direction)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/auth/my-account/moderate-comments/vote/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_award_badge( + self, + badge_id: StrictStr, + user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + broadcast_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> AwardUserBadgeResponse: + """put_award_badge + + + :param badge_id: (required) + :type badge_id: str + :param user_id: + :type user_id: str + :param comment_id: + :type comment_id: str + :param broadcast_id: + :type broadcast_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_award_badge_serialize( + badge_id=badge_id, + user_id=user_id, + comment_id=comment_id, + broadcast_id=broadcast_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AwardUserBadgeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_award_badge_with_http_info( + self, + badge_id: StrictStr, + user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + broadcast_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[AwardUserBadgeResponse]: + """put_award_badge + + + :param badge_id: (required) + :type badge_id: str + :param user_id: + :type user_id: str + :param comment_id: + :type comment_id: str + :param broadcast_id: + :type broadcast_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_award_badge_serialize( + badge_id=badge_id, + user_id=user_id, + comment_id=comment_id, + broadcast_id=broadcast_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AwardUserBadgeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_award_badge_without_preload_content( + self, + badge_id: StrictStr, + user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + broadcast_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """put_award_badge + + + :param badge_id: (required) + :type badge_id: str + :param user_id: + :type user_id: str + :param comment_id: + :type comment_id: str + :param broadcast_id: + :type broadcast_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_award_badge_serialize( + badge_id=badge_id, + user_id=user_id, + comment_id=comment_id, + broadcast_id=broadcast_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AwardUserBadgeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_award_badge_serialize( + self, + badge_id, + user_id, + comment_id, + broadcast_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if badge_id is not None: + + _query_params.append(('badgeId', badge_id)) + + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if comment_id is not None: + + _query_params.append(('commentId', comment_id)) + + if broadcast_id is not None: + + _query_params.append(('broadcastId', broadcast_id)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/auth/my-account/moderate-comments/award-badge', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_close_thread( + self, + url_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """put_close_thread + + + :param url_id: (required) + :type url_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_close_thread_serialize( + url_id=url_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_close_thread_with_http_info( + self, + url_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """put_close_thread + + + :param url_id: (required) + :type url_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_close_thread_serialize( + url_id=url_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_close_thread_without_preload_content( + self, + url_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """put_close_thread + + + :param url_id: (required) + :type url_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_close_thread_serialize( + url_id=url_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_close_thread_serialize( + self, + url_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if url_id is not None: + + _query_params.append(('urlId', url_id)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/auth/my-account/moderate-comments/close-thread', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_remove_badge( + self, + badge_id: StrictStr, + user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + broadcast_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RemoveUserBadgeResponse: + """put_remove_badge + + + :param badge_id: (required) + :type badge_id: str + :param user_id: + :type user_id: str + :param comment_id: + :type comment_id: str + :param broadcast_id: + :type broadcast_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_remove_badge_serialize( + badge_id=badge_id, + user_id=user_id, + comment_id=comment_id, + broadcast_id=broadcast_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RemoveUserBadgeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_remove_badge_with_http_info( + self, + badge_id: StrictStr, + user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + broadcast_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[RemoveUserBadgeResponse]: + """put_remove_badge + + + :param badge_id: (required) + :type badge_id: str + :param user_id: + :type user_id: str + :param comment_id: + :type comment_id: str + :param broadcast_id: + :type broadcast_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_remove_badge_serialize( + badge_id=badge_id, + user_id=user_id, + comment_id=comment_id, + broadcast_id=broadcast_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RemoveUserBadgeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_remove_badge_without_preload_content( + self, + badge_id: StrictStr, + user_id: Optional[StrictStr] = None, + comment_id: Optional[StrictStr] = None, + broadcast_id: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """put_remove_badge + + + :param badge_id: (required) + :type badge_id: str + :param user_id: + :type user_id: str + :param comment_id: + :type comment_id: str + :param broadcast_id: + :type broadcast_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_remove_badge_serialize( + badge_id=badge_id, + user_id=user_id, + comment_id=comment_id, + broadcast_id=broadcast_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "RemoveUserBadgeResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_remove_badge_serialize( + self, + badge_id, + user_id, + comment_id, + broadcast_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if badge_id is not None: + + _query_params.append(('badgeId', badge_id)) + + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if comment_id is not None: + + _query_params.append(('commentId', comment_id)) + + if broadcast_id is not None: + + _query_params.append(('broadcastId', broadcast_id)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/auth/my-account/moderate-comments/remove-badge', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def put_reopen_thread( + self, + url_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """put_reopen_thread + + + :param url_id: (required) + :type url_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reopen_thread_serialize( + url_id=url_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def put_reopen_thread_with_http_info( + self, + url_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """put_reopen_thread + + + :param url_id: (required) + :type url_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reopen_thread_serialize( + url_id=url_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def put_reopen_thread_without_preload_content( + self, + url_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """put_reopen_thread + + + :param url_id: (required) + :type url_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._put_reopen_thread_serialize( + url_id=url_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _put_reopen_thread_serialize( + self, + url_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if url_id is not None: + + _query_params.append(('urlId', url_id)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/auth/my-account/moderate-comments/reopen-thread', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def set_trust_factor( + self, + user_id: Optional[StrictStr] = None, + trust_factor: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> SetUserTrustFactorResponse: + """set_trust_factor + + + :param user_id: + :type user_id: str + :param trust_factor: + :type trust_factor: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_trust_factor_serialize( + user_id=user_id, + trust_factor=trust_factor, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetUserTrustFactorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def set_trust_factor_with_http_info( + self, + user_id: Optional[StrictStr] = None, + trust_factor: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[SetUserTrustFactorResponse]: + """set_trust_factor + + + :param user_id: + :type user_id: str + :param trust_factor: + :type trust_factor: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_trust_factor_serialize( + user_id=user_id, + trust_factor=trust_factor, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetUserTrustFactorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def set_trust_factor_without_preload_content( + self, + user_id: Optional[StrictStr] = None, + trust_factor: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """set_trust_factor + + + :param user_id: + :type user_id: str + :param trust_factor: + :type trust_factor: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._set_trust_factor_serialize( + user_id=user_id, + trust_factor=trust_factor, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SetUserTrustFactorResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _set_trust_factor_serialize( + self, + user_id, + trust_factor, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if trust_factor is not None: + + _query_params.append(('trustFactor', trust_factor)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='PUT', + resource_path='/auth/my-account/moderate-comments/set-trust-factor', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + diff --git a/client/api/public_api.py b/client/api/public_api.py index 21b0e7c..98d966b 100644 --- a/client/api/public_api.py +++ b/client/api/public_api.py @@ -16,46 +16,61 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictBytes, StrictFloat, StrictInt, StrictStr, field_validator from typing import List, Optional, Tuple, Union from typing_extensions import Annotated -from client.models.block_from_comment_public200_response import BlockFromCommentPublic200Response -from client.models.checked_comments_for_blocked200_response import CheckedCommentsForBlocked200Response +from client.models.api_empty_response import APIEmptyResponse +from client.models.block_success import BlockSuccess +from client.models.change_comment_pin_status_response import ChangeCommentPinStatusResponse +from client.models.check_blocked_comments_response import CheckBlockedCommentsResponse from client.models.comment_data import CommentData from client.models.comment_text_update_request import CommentTextUpdateRequest -from client.models.create_comment_public200_response import CreateCommentPublic200Response from client.models.create_feed_post_params import CreateFeedPostParams -from client.models.create_feed_post_public200_response import CreateFeedPostPublic200Response -from client.models.delete_comment_public200_response import DeleteCommentPublic200Response -from client.models.delete_comment_vote200_response import DeleteCommentVote200Response -from client.models.delete_feed_post_public200_response import DeleteFeedPostPublic200Response -from client.models.flag_comment_public200_response import FlagCommentPublic200Response -from client.models.get_comment_text200_response import GetCommentText200Response -from client.models.get_comment_vote_user_names200_response import GetCommentVoteUserNames200Response -from client.models.get_comments_public200_response import GetCommentsPublic200Response -from client.models.get_event_log200_response import GetEventLog200Response -from client.models.get_feed_posts_public200_response import GetFeedPostsPublic200Response -from client.models.get_feed_posts_stats200_response import GetFeedPostsStats200Response -from client.models.get_user_notification_count200_response import GetUserNotificationCount200Response -from client.models.get_user_notifications200_response import GetUserNotifications200Response -from client.models.get_user_presence_statuses200_response import GetUserPresenceStatuses200Response -from client.models.get_user_reacts_public200_response import GetUserReactsPublic200Response -from client.models.lock_comment200_response import LockComment200Response -from client.models.pin_comment200_response import PinComment200Response +from client.models.create_feed_post_response import CreateFeedPostResponse +from client.models.create_v1_page_react import CreateV1PageReact +from client.models.delete_feed_post_public_response import DeleteFeedPostPublicResponse +from client.models.feed_posts_stats_response import FeedPostsStatsResponse +from client.models.get_comment_vote_user_names_success_response import GetCommentVoteUserNamesSuccessResponse +from client.models.get_comments_for_user_response import GetCommentsForUserResponse +from client.models.get_comments_response_with_presence_public_comment import GetCommentsResponseWithPresencePublicComment +from client.models.get_event_log_response import GetEventLogResponse +from client.models.get_gifs_search_response import GetGifsSearchResponse +from client.models.get_gifs_trending_response import GetGifsTrendingResponse +from client.models.get_my_notifications_response import GetMyNotificationsResponse +from client.models.get_public_pages_response import GetPublicPagesResponse +from client.models.get_translations_response import GetTranslationsResponse +from client.models.get_user_notification_count_response import GetUserNotificationCountResponse +from client.models.get_user_presence_statuses_response import GetUserPresenceStatusesResponse +from client.models.get_v1_page_likes import GetV1PageLikes +from client.models.get_v2_page_react_users_response import GetV2PageReactUsersResponse +from client.models.get_v2_page_reacts import GetV2PageReacts +from client.models.gif_get_large_response import GifGetLargeResponse +from client.models.page_users_info_response import PageUsersInfoResponse +from client.models.page_users_offline_response import PageUsersOfflineResponse +from client.models.page_users_online_response import PageUsersOnlineResponse +from client.models.pages_sort_by import PagesSortBy +from client.models.public_api_delete_comment_response import PublicAPIDeleteCommentResponse +from client.models.public_api_get_comment_text_response import PublicAPIGetCommentTextResponse +from client.models.public_api_set_comment_text_response import PublicAPISetCommentTextResponse from client.models.public_block_from_comment_params import PublicBlockFromCommentParams +from client.models.public_feed_posts_response import PublicFeedPostsResponse from client.models.react_body_params import ReactBodyParams -from client.models.react_feed_post_public200_response import ReactFeedPostPublic200Response -from client.models.reset_user_notifications200_response import ResetUserNotifications200Response -from client.models.search_users200_response import SearchUsers200Response -from client.models.set_comment_text200_response import SetCommentText200Response +from client.models.react_feed_post_response import ReactFeedPostResponse +from client.models.reset_user_notifications_response import ResetUserNotificationsResponse +from client.models.save_comments_response_with_presence import SaveCommentsResponseWithPresence +from client.models.search_users_result import SearchUsersResult from client.models.size_preset import SizePreset from client.models.sort_directions import SortDirections -from client.models.un_block_comment_public200_response import UnBlockCommentPublic200Response +from client.models.unblock_success import UnblockSuccess from client.models.update_feed_post_params import UpdateFeedPostParams -from client.models.update_user_notification_status200_response import UpdateUserNotificationStatus200Response +from client.models.update_user_notification_comment_subscription_status_response import UpdateUserNotificationCommentSubscriptionStatusResponse +from client.models.update_user_notification_page_subscription_status_response import UpdateUserNotificationPageSubscriptionStatusResponse +from client.models.update_user_notification_status_response import UpdateUserNotificationStatusResponse from client.models.upload_image_response import UploadImageResponse +from client.models.user_reacts_response import UserReactsResponse from client.models.vote_body_params import VoteBodyParams -from client.models.vote_comment200_response import VoteComment200Response +from client.models.vote_delete_response import VoteDeleteResponse +from client.models.vote_response import VoteResponse from client.api_client import ApiClient, RequestSerialized from client.api_response import ApiResponse @@ -94,7 +109,7 @@ def block_from_comment_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> BlockFromCommentPublic200Response: + ) -> BlockSuccess: """block_from_comment_public @@ -140,7 +155,7 @@ def block_from_comment_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BlockFromCommentPublic200Response", + '200': "BlockSuccess", } response_data = self.api_client.call_api( *_param, @@ -172,7 +187,7 @@ def block_from_comment_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[BlockFromCommentPublic200Response]: + ) -> ApiResponse[BlockSuccess]: """block_from_comment_public @@ -218,7 +233,7 @@ def block_from_comment_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BlockFromCommentPublic200Response", + '200': "BlockSuccess", } response_data = self.api_client.call_api( *_param, @@ -296,7 +311,7 @@ def block_from_comment_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "BlockFromCommentPublic200Response", + '200': "BlockSuccess", } response_data = self.api_client.call_api( *_param, @@ -412,7 +427,7 @@ def checked_comments_for_blocked( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CheckedCommentsForBlocked200Response: + ) -> CheckBlockedCommentsResponse: """checked_comments_for_blocked @@ -455,7 +470,7 @@ def checked_comments_for_blocked( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CheckedCommentsForBlocked200Response", + '200': "CheckBlockedCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -486,7 +501,7 @@ def checked_comments_for_blocked_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CheckedCommentsForBlocked200Response]: + ) -> ApiResponse[CheckBlockedCommentsResponse]: """checked_comments_for_blocked @@ -529,7 +544,7 @@ def checked_comments_for_blocked_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CheckedCommentsForBlocked200Response", + '200': "CheckBlockedCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -603,7 +618,7 @@ def checked_comments_for_blocked_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CheckedCommentsForBlocked200Response", + '200': "CheckBlockedCommentsResponse", } response_data = self.api_client.call_api( *_param, @@ -708,7 +723,7 @@ def create_comment_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateCommentPublic200Response: + ) -> SaveCommentsResponseWithPresence: """create_comment_public @@ -760,7 +775,7 @@ def create_comment_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCommentPublic200Response", + '200': "SaveCommentsResponseWithPresence", } response_data = self.api_client.call_api( *_param, @@ -794,7 +809,7 @@ def create_comment_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateCommentPublic200Response]: + ) -> ApiResponse[SaveCommentsResponseWithPresence]: """create_comment_public @@ -846,7 +861,7 @@ def create_comment_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCommentPublic200Response", + '200': "SaveCommentsResponseWithPresence", } response_data = self.api_client.call_api( *_param, @@ -932,7 +947,7 @@ def create_comment_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateCommentPublic200Response", + '200': "SaveCommentsResponseWithPresence", } response_data = self.api_client.call_api( *_param, @@ -1059,7 +1074,7 @@ def create_feed_post_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateFeedPostPublic200Response: + ) -> CreateFeedPostResponse: """create_feed_post_public @@ -1105,7 +1120,7 @@ def create_feed_post_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPostPublic200Response", + '200': "CreateFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -1137,7 +1152,7 @@ def create_feed_post_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateFeedPostPublic200Response]: + ) -> ApiResponse[CreateFeedPostResponse]: """create_feed_post_public @@ -1183,7 +1198,7 @@ def create_feed_post_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPostPublic200Response", + '200': "CreateFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -1261,7 +1276,7 @@ def create_feed_post_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPostPublic200Response", + '200': "CreateFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -1360,13 +1375,11 @@ def _create_feed_post_public_serialize( @validate_call - def delete_comment_public( + def create_v1_page_react( self, tenant_id: StrictStr, - comment_id: StrictStr, - broadcast_id: StrictStr, - edit_key: Optional[StrictStr] = None, - sso: Optional[StrictStr] = None, + url_id: StrictStr, + title: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1379,20 +1392,16 @@ def delete_comment_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteCommentPublic200Response: - """delete_comment_public + ) -> CreateV1PageReact: + """create_v1_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param edit_key: - :type edit_key: str - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str + :param title: + :type title: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1415,12 +1424,10 @@ def delete_comment_public( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_comment_public_serialize( + _param = self._create_v1_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - broadcast_id=broadcast_id, - edit_key=edit_key, - sso=sso, + url_id=url_id, + title=title, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1428,7 +1435,7 @@ def delete_comment_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentPublic200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -1442,13 +1449,11 @@ def delete_comment_public( @validate_call - def delete_comment_public_with_http_info( + def create_v1_page_react_with_http_info( self, tenant_id: StrictStr, - comment_id: StrictStr, - broadcast_id: StrictStr, - edit_key: Optional[StrictStr] = None, - sso: Optional[StrictStr] = None, + url_id: StrictStr, + title: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1461,20 +1466,16 @@ def delete_comment_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteCommentPublic200Response]: - """delete_comment_public + ) -> ApiResponse[CreateV1PageReact]: + """create_v1_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param edit_key: - :type edit_key: str - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str + :param title: + :type title: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1497,12 +1498,10 @@ def delete_comment_public_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_comment_public_serialize( + _param = self._create_v1_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - broadcast_id=broadcast_id, - edit_key=edit_key, - sso=sso, + url_id=url_id, + title=title, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1510,7 +1509,7 @@ def delete_comment_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentPublic200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -1524,13 +1523,11 @@ def delete_comment_public_with_http_info( @validate_call - def delete_comment_public_without_preload_content( + def create_v1_page_react_without_preload_content( self, tenant_id: StrictStr, - comment_id: StrictStr, - broadcast_id: StrictStr, - edit_key: Optional[StrictStr] = None, - sso: Optional[StrictStr] = None, + url_id: StrictStr, + title: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1544,19 +1541,15 @@ def delete_comment_public_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_comment_public + """create_v1_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param edit_key: - :type edit_key: str - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str + :param title: + :type title: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1579,12 +1572,10 @@ def delete_comment_public_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_comment_public_serialize( + _param = self._create_v1_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - broadcast_id=broadcast_id, - edit_key=edit_key, - sso=sso, + url_id=url_id, + title=title, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1592,7 +1583,7 @@ def delete_comment_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentPublic200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -1601,13 +1592,11 @@ def delete_comment_public_without_preload_content( return response_data.response - def _delete_comment_public_serialize( + def _create_v1_page_react_serialize( self, tenant_id, - comment_id, - broadcast_id, - edit_key, - sso, + url_id, + title, _request_auth, _content_type, _headers, @@ -1631,20 +1620,14 @@ def _delete_comment_public_serialize( # process the path parameters if tenant_id is not None: _path_params['tenantId'] = tenant_id - if comment_id is not None: - _path_params['commentId'] = comment_id # process the query parameters - if broadcast_id is not None: - - _query_params.append(('broadcastId', broadcast_id)) - - if edit_key is not None: + if url_id is not None: - _query_params.append(('editKey', edit_key)) + _query_params.append(('urlId', url_id)) - if sso is not None: + if title is not None: - _query_params.append(('sso', sso)) + _query_params.append(('title', title)) # process the header parameters # process the form parameters @@ -1665,8 +1648,8 @@ def _delete_comment_public_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/comments/{tenantId}/{commentId}', + method='POST', + resource_path='/page-reacts/v1/likes/{tenantId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1683,15 +1666,12 @@ def _delete_comment_public_serialize( @validate_call - def delete_comment_vote( + def create_v2_page_react( self, tenant_id: StrictStr, - comment_id: StrictStr, - vote_id: StrictStr, url_id: StrictStr, - broadcast_id: StrictStr, - edit_key: Optional[StrictStr] = None, - sso: Optional[StrictStr] = None, + id: StrictStr, + title: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1704,24 +1684,18 @@ def delete_comment_vote( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteCommentVote200Response: - """delete_comment_vote + ) -> CreateV1PageReact: + """create_v2_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param vote_id: (required) - :type vote_id: str :param url_id: (required) :type url_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param edit_key: - :type edit_key: str - :param sso: - :type sso: str + :param id: (required) + :type id: str + :param title: + :type title: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1744,14 +1718,11 @@ def delete_comment_vote( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_comment_vote_serialize( + _param = self._create_v2_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - vote_id=vote_id, url_id=url_id, - broadcast_id=broadcast_id, - edit_key=edit_key, - sso=sso, + id=id, + title=title, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1759,7 +1730,7 @@ def delete_comment_vote( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentVote200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -1773,15 +1744,12 @@ def delete_comment_vote( @validate_call - def delete_comment_vote_with_http_info( + def create_v2_page_react_with_http_info( self, tenant_id: StrictStr, - comment_id: StrictStr, - vote_id: StrictStr, url_id: StrictStr, - broadcast_id: StrictStr, - edit_key: Optional[StrictStr] = None, - sso: Optional[StrictStr] = None, + id: StrictStr, + title: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1794,24 +1762,18 @@ def delete_comment_vote_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteCommentVote200Response]: - """delete_comment_vote + ) -> ApiResponse[CreateV1PageReact]: + """create_v2_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param vote_id: (required) - :type vote_id: str :param url_id: (required) :type url_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param edit_key: - :type edit_key: str - :param sso: - :type sso: str + :param id: (required) + :type id: str + :param title: + :type title: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1834,14 +1796,11 @@ def delete_comment_vote_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_comment_vote_serialize( + _param = self._create_v2_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - vote_id=vote_id, url_id=url_id, - broadcast_id=broadcast_id, - edit_key=edit_key, - sso=sso, + id=id, + title=title, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1849,7 +1808,7 @@ def delete_comment_vote_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentVote200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -1863,15 +1822,12 @@ def delete_comment_vote_with_http_info( @validate_call - def delete_comment_vote_without_preload_content( + def create_v2_page_react_without_preload_content( self, tenant_id: StrictStr, - comment_id: StrictStr, - vote_id: StrictStr, url_id: StrictStr, - broadcast_id: StrictStr, - edit_key: Optional[StrictStr] = None, - sso: Optional[StrictStr] = None, + id: StrictStr, + title: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -1885,23 +1841,17 @@ def delete_comment_vote_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_comment_vote + """create_v2_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param vote_id: (required) - :type vote_id: str :param url_id: (required) :type url_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param edit_key: - :type edit_key: str - :param sso: - :type sso: str + :param id: (required) + :type id: str + :param title: + :type title: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -1924,14 +1874,11 @@ def delete_comment_vote_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_comment_vote_serialize( + _param = self._create_v2_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - vote_id=vote_id, url_id=url_id, - broadcast_id=broadcast_id, - edit_key=edit_key, - sso=sso, + id=id, + title=title, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -1939,7 +1886,7 @@ def delete_comment_vote_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteCommentVote200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -1948,15 +1895,12 @@ def delete_comment_vote_without_preload_content( return response_data.response - def _delete_comment_vote_serialize( + def _create_v2_page_react_serialize( self, tenant_id, - comment_id, - vote_id, url_id, - broadcast_id, - edit_key, - sso, + id, + title, _request_auth, _content_type, _headers, @@ -1980,26 +1924,18 @@ def _delete_comment_vote_serialize( # process the path parameters if tenant_id is not None: _path_params['tenantId'] = tenant_id - if comment_id is not None: - _path_params['commentId'] = comment_id - if vote_id is not None: - _path_params['voteId'] = vote_id # process the query parameters if url_id is not None: _query_params.append(('urlId', url_id)) - if broadcast_id is not None: - - _query_params.append(('broadcastId', broadcast_id)) - - if edit_key is not None: + if id is not None: - _query_params.append(('editKey', edit_key)) + _query_params.append(('id', id)) - if sso is not None: + if title is not None: - _query_params.append(('sso', sso)) + _query_params.append(('title', title)) # process the header parameters # process the form parameters @@ -2020,8 +1956,8 @@ def _delete_comment_vote_serialize( ] return self.api_client.param_serialize( - method='DELETE', - resource_path='/comments/{tenantId}/{commentId}/vote/{voteId}', + method='POST', + resource_path='/page-reacts/v2/{tenantId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2038,11 +1974,12 @@ def _delete_comment_vote_serialize( @validate_call - def delete_feed_post_public( + def delete_comment_public( self, tenant_id: StrictStr, - post_id: StrictStr, - broadcast_id: Optional[StrictStr] = None, + comment_id: StrictStr, + broadcast_id: StrictStr, + edit_key: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2056,16 +1993,18 @@ def delete_feed_post_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> DeleteFeedPostPublic200Response: - """delete_feed_post_public + ) -> PublicAPIDeleteCommentResponse: + """delete_comment_public :param tenant_id: (required) :type tenant_id: str - :param post_id: (required) - :type post_id: str - :param broadcast_id: + :param comment_id: (required) + :type comment_id: str + :param broadcast_id: (required) :type broadcast_id: str + :param edit_key: + :type edit_key: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2090,10 +2029,11 @@ def delete_feed_post_public( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_feed_post_public_serialize( + _param = self._delete_comment_public_serialize( tenant_id=tenant_id, - post_id=post_id, + comment_id=comment_id, broadcast_id=broadcast_id, + edit_key=edit_key, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2102,7 +2042,7 @@ def delete_feed_post_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteFeedPostPublic200Response", + '200': "PublicAPIDeleteCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -2116,11 +2056,12 @@ def delete_feed_post_public( @validate_call - def delete_feed_post_public_with_http_info( + def delete_comment_public_with_http_info( self, tenant_id: StrictStr, - post_id: StrictStr, - broadcast_id: Optional[StrictStr] = None, + comment_id: StrictStr, + broadcast_id: StrictStr, + edit_key: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2134,16 +2075,18 @@ def delete_feed_post_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[DeleteFeedPostPublic200Response]: - """delete_feed_post_public + ) -> ApiResponse[PublicAPIDeleteCommentResponse]: + """delete_comment_public :param tenant_id: (required) :type tenant_id: str - :param post_id: (required) - :type post_id: str - :param broadcast_id: + :param comment_id: (required) + :type comment_id: str + :param broadcast_id: (required) :type broadcast_id: str + :param edit_key: + :type edit_key: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2168,10 +2111,11 @@ def delete_feed_post_public_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_feed_post_public_serialize( + _param = self._delete_comment_public_serialize( tenant_id=tenant_id, - post_id=post_id, + comment_id=comment_id, broadcast_id=broadcast_id, + edit_key=edit_key, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2180,7 +2124,7 @@ def delete_feed_post_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteFeedPostPublic200Response", + '200': "PublicAPIDeleteCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -2194,11 +2138,12 @@ def delete_feed_post_public_with_http_info( @validate_call - def delete_feed_post_public_without_preload_content( + def delete_comment_public_without_preload_content( self, tenant_id: StrictStr, - post_id: StrictStr, - broadcast_id: Optional[StrictStr] = None, + comment_id: StrictStr, + broadcast_id: StrictStr, + edit_key: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2213,15 +2158,17 @@ def delete_feed_post_public_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """delete_feed_post_public + """delete_comment_public :param tenant_id: (required) :type tenant_id: str - :param post_id: (required) - :type post_id: str - :param broadcast_id: + :param comment_id: (required) + :type comment_id: str + :param broadcast_id: (required) :type broadcast_id: str + :param edit_key: + :type edit_key: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2246,10 +2193,11 @@ def delete_feed_post_public_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._delete_feed_post_public_serialize( + _param = self._delete_comment_public_serialize( tenant_id=tenant_id, - post_id=post_id, + comment_id=comment_id, broadcast_id=broadcast_id, + edit_key=edit_key, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2258,7 +2206,7 @@ def delete_feed_post_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeleteFeedPostPublic200Response", + '200': "PublicAPIDeleteCommentResponse", } response_data = self.api_client.call_api( *_param, @@ -2267,11 +2215,12 @@ def delete_feed_post_public_without_preload_content( return response_data.response - def _delete_feed_post_public_serialize( + def _delete_comment_public_serialize( self, tenant_id, - post_id, + comment_id, broadcast_id, + edit_key, sso, _request_auth, _content_type, @@ -2296,14 +2245,18 @@ def _delete_feed_post_public_serialize( # process the path parameters if tenant_id is not None: _path_params['tenantId'] = tenant_id - if post_id is not None: - _path_params['postId'] = post_id + if comment_id is not None: + _path_params['commentId'] = comment_id # process the query parameters if broadcast_id is not None: _query_params.append(('broadcastId', broadcast_id)) - if sso is not None: + if edit_key is not None: + + _query_params.append(('editKey', edit_key)) + + if sso is not None: _query_params.append(('sso', sso)) @@ -2327,7 +2280,7 @@ def _delete_feed_post_public_serialize( return self.api_client.param_serialize( method='DELETE', - resource_path='/feed-posts/{tenantId}/{postId}', + resource_path='/comments/{tenantId}/{commentId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2344,11 +2297,14 @@ def _delete_feed_post_public_serialize( @validate_call - def flag_comment_public( + def delete_comment_vote( self, tenant_id: StrictStr, comment_id: StrictStr, - is_flagged: StrictBool, + vote_id: StrictStr, + url_id: StrictStr, + broadcast_id: StrictStr, + edit_key: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2362,16 +2318,22 @@ def flag_comment_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> FlagCommentPublic200Response: - """flag_comment_public + ) -> VoteDeleteResponse: + """delete_comment_vote :param tenant_id: (required) :type tenant_id: str :param comment_id: (required) :type comment_id: str - :param is_flagged: (required) - :type is_flagged: bool + :param vote_id: (required) + :type vote_id: str + :param url_id: (required) + :type url_id: str + :param broadcast_id: (required) + :type broadcast_id: str + :param edit_key: + :type edit_key: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2396,10 +2358,13 @@ def flag_comment_public( :return: Returns the result object. """ # noqa: E501 - _param = self._flag_comment_public_serialize( + _param = self._delete_comment_vote_serialize( tenant_id=tenant_id, comment_id=comment_id, - is_flagged=is_flagged, + vote_id=vote_id, + url_id=url_id, + broadcast_id=broadcast_id, + edit_key=edit_key, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2408,7 +2373,7 @@ def flag_comment_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "VoteDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -2422,11 +2387,14 @@ def flag_comment_public( @validate_call - def flag_comment_public_with_http_info( + def delete_comment_vote_with_http_info( self, tenant_id: StrictStr, comment_id: StrictStr, - is_flagged: StrictBool, + vote_id: StrictStr, + url_id: StrictStr, + broadcast_id: StrictStr, + edit_key: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2440,16 +2408,22 @@ def flag_comment_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[FlagCommentPublic200Response]: - """flag_comment_public + ) -> ApiResponse[VoteDeleteResponse]: + """delete_comment_vote :param tenant_id: (required) :type tenant_id: str :param comment_id: (required) :type comment_id: str - :param is_flagged: (required) - :type is_flagged: bool + :param vote_id: (required) + :type vote_id: str + :param url_id: (required) + :type url_id: str + :param broadcast_id: (required) + :type broadcast_id: str + :param edit_key: + :type edit_key: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2474,10 +2448,13 @@ def flag_comment_public_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._flag_comment_public_serialize( + _param = self._delete_comment_vote_serialize( tenant_id=tenant_id, comment_id=comment_id, - is_flagged=is_flagged, + vote_id=vote_id, + url_id=url_id, + broadcast_id=broadcast_id, + edit_key=edit_key, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2486,7 +2463,7 @@ def flag_comment_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "VoteDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -2500,11 +2477,14 @@ def flag_comment_public_with_http_info( @validate_call - def flag_comment_public_without_preload_content( + def delete_comment_vote_without_preload_content( self, tenant_id: StrictStr, comment_id: StrictStr, - is_flagged: StrictBool, + vote_id: StrictStr, + url_id: StrictStr, + broadcast_id: StrictStr, + edit_key: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2519,15 +2499,21 @@ def flag_comment_public_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """flag_comment_public + """delete_comment_vote :param tenant_id: (required) :type tenant_id: str :param comment_id: (required) :type comment_id: str - :param is_flagged: (required) - :type is_flagged: bool + :param vote_id: (required) + :type vote_id: str + :param url_id: (required) + :type url_id: str + :param broadcast_id: (required) + :type broadcast_id: str + :param edit_key: + :type edit_key: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2552,10 +2538,13 @@ def flag_comment_public_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._flag_comment_public_serialize( + _param = self._delete_comment_vote_serialize( tenant_id=tenant_id, comment_id=comment_id, - is_flagged=is_flagged, + vote_id=vote_id, + url_id=url_id, + broadcast_id=broadcast_id, + edit_key=edit_key, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2564,7 +2553,7 @@ def flag_comment_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "FlagCommentPublic200Response", + '200': "VoteDeleteResponse", } response_data = self.api_client.call_api( *_param, @@ -2573,11 +2562,14 @@ def flag_comment_public_without_preload_content( return response_data.response - def _flag_comment_public_serialize( + def _delete_comment_vote_serialize( self, tenant_id, comment_id, - is_flagged, + vote_id, + url_id, + broadcast_id, + edit_key, sso, _request_auth, _content_type, @@ -2600,16 +2592,24 @@ def _flag_comment_public_serialize( _body_params: Optional[bytes] = None # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id if comment_id is not None: _path_params['commentId'] = comment_id + if vote_id is not None: + _path_params['voteId'] = vote_id # process the query parameters - if tenant_id is not None: + if url_id is not None: - _query_params.append(('tenantId', tenant_id)) + _query_params.append(('urlId', url_id)) - if is_flagged is not None: + if broadcast_id is not None: - _query_params.append(('isFlagged', is_flagged)) + _query_params.append(('broadcastId', broadcast_id)) + + if edit_key is not None: + + _query_params.append(('editKey', edit_key)) if sso is not None: @@ -2634,8 +2634,8 @@ def _flag_comment_public_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/flag-comment/{commentId}', + method='DELETE', + resource_path='/comments/{tenantId}/{commentId}/vote/{voteId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2652,11 +2652,11 @@ def _flag_comment_public_serialize( @validate_call - def get_comment_text( + def delete_feed_post_public( self, tenant_id: StrictStr, - comment_id: StrictStr, - edit_key: Optional[StrictStr] = None, + post_id: StrictStr, + broadcast_id: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2670,16 +2670,16 @@ def get_comment_text( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetCommentText200Response: - """get_comment_text + ) -> DeleteFeedPostPublicResponse: + """delete_feed_post_public :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param edit_key: - :type edit_key: str + :param post_id: (required) + :type post_id: str + :param broadcast_id: + :type broadcast_id: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2704,10 +2704,10 @@ def get_comment_text( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comment_text_serialize( + _param = self._delete_feed_post_public_serialize( tenant_id=tenant_id, - comment_id=comment_id, - edit_key=edit_key, + post_id=post_id, + broadcast_id=broadcast_id, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2716,7 +2716,7 @@ def get_comment_text( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentText200Response", + '200': "DeleteFeedPostPublicResponse", } response_data = self.api_client.call_api( *_param, @@ -2730,11 +2730,11 @@ def get_comment_text( @validate_call - def get_comment_text_with_http_info( + def delete_feed_post_public_with_http_info( self, tenant_id: StrictStr, - comment_id: StrictStr, - edit_key: Optional[StrictStr] = None, + post_id: StrictStr, + broadcast_id: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2748,16 +2748,16 @@ def get_comment_text_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetCommentText200Response]: - """get_comment_text + ) -> ApiResponse[DeleteFeedPostPublicResponse]: + """delete_feed_post_public :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param edit_key: - :type edit_key: str + :param post_id: (required) + :type post_id: str + :param broadcast_id: + :type broadcast_id: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2782,10 +2782,10 @@ def get_comment_text_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comment_text_serialize( + _param = self._delete_feed_post_public_serialize( tenant_id=tenant_id, - comment_id=comment_id, - edit_key=edit_key, + post_id=post_id, + broadcast_id=broadcast_id, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2794,7 +2794,7 @@ def get_comment_text_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentText200Response", + '200': "DeleteFeedPostPublicResponse", } response_data = self.api_client.call_api( *_param, @@ -2808,11 +2808,11 @@ def get_comment_text_with_http_info( @validate_call - def get_comment_text_without_preload_content( + def delete_feed_post_public_without_preload_content( self, tenant_id: StrictStr, - comment_id: StrictStr, - edit_key: Optional[StrictStr] = None, + post_id: StrictStr, + broadcast_id: Optional[StrictStr] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -2827,15 +2827,15 @@ def get_comment_text_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_comment_text + """delete_feed_post_public :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param edit_key: - :type edit_key: str + :param post_id: (required) + :type post_id: str + :param broadcast_id: + :type broadcast_id: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -2860,10 +2860,10 @@ def get_comment_text_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comment_text_serialize( + _param = self._delete_feed_post_public_serialize( tenant_id=tenant_id, - comment_id=comment_id, - edit_key=edit_key, + post_id=post_id, + broadcast_id=broadcast_id, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -2872,7 +2872,7 @@ def get_comment_text_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentText200Response", + '200': "DeleteFeedPostPublicResponse", } response_data = self.api_client.call_api( *_param, @@ -2881,11 +2881,11 @@ def get_comment_text_without_preload_content( return response_data.response - def _get_comment_text_serialize( + def _delete_feed_post_public_serialize( self, tenant_id, - comment_id, - edit_key, + post_id, + broadcast_id, sso, _request_auth, _content_type, @@ -2910,12 +2910,12 @@ def _get_comment_text_serialize( # process the path parameters if tenant_id is not None: _path_params['tenantId'] = tenant_id - if comment_id is not None: - _path_params['commentId'] = comment_id + if post_id is not None: + _path_params['postId'] = post_id # process the query parameters - if edit_key is not None: + if broadcast_id is not None: - _query_params.append(('editKey', edit_key)) + _query_params.append(('broadcastId', broadcast_id)) if sso is not None: @@ -2940,8 +2940,8 @@ def _get_comment_text_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/comments/{tenantId}/{commentId}/text', + method='DELETE', + resource_path='/feed-posts/{tenantId}/{postId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2958,12 +2958,10 @@ def _get_comment_text_serialize( @validate_call - def get_comment_vote_user_names( + def delete_v1_page_react( self, tenant_id: StrictStr, - comment_id: StrictStr, - dir: StrictInt, - sso: Optional[StrictStr] = None, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -2976,18 +2974,14 @@ def get_comment_vote_user_names( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetCommentVoteUserNames200Response: - """get_comment_vote_user_names + ) -> CreateV1PageReact: + """delete_v1_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param dir: (required) - :type dir: int - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3010,11 +3004,9 @@ def get_comment_vote_user_names( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comment_vote_user_names_serialize( + _param = self._delete_v1_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - dir=dir, - sso=sso, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3022,7 +3014,7 @@ def get_comment_vote_user_names( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentVoteUserNames200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -3036,12 +3028,10 @@ def get_comment_vote_user_names( @validate_call - def get_comment_vote_user_names_with_http_info( + def delete_v1_page_react_with_http_info( self, tenant_id: StrictStr, - comment_id: StrictStr, - dir: StrictInt, - sso: Optional[StrictStr] = None, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3054,18 +3044,14 @@ def get_comment_vote_user_names_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetCommentVoteUserNames200Response]: - """get_comment_vote_user_names + ) -> ApiResponse[CreateV1PageReact]: + """delete_v1_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param dir: (required) - :type dir: int - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3088,11 +3074,9 @@ def get_comment_vote_user_names_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comment_vote_user_names_serialize( + _param = self._delete_v1_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - dir=dir, - sso=sso, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3100,7 +3084,7 @@ def get_comment_vote_user_names_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentVoteUserNames200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -3114,12 +3098,10 @@ def get_comment_vote_user_names_with_http_info( @validate_call - def get_comment_vote_user_names_without_preload_content( + def delete_v1_page_react_without_preload_content( self, tenant_id: StrictStr, - comment_id: StrictStr, - dir: StrictInt, - sso: Optional[StrictStr] = None, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3133,17 +3115,13 @@ def get_comment_vote_user_names_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_comment_vote_user_names + """delete_v1_page_react :param tenant_id: (required) :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param dir: (required) - :type dir: int - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3166,11 +3144,9 @@ def get_comment_vote_user_names_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comment_vote_user_names_serialize( + _param = self._delete_v1_page_react_serialize( tenant_id=tenant_id, - comment_id=comment_id, - dir=dir, - sso=sso, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3178,7 +3154,7 @@ def get_comment_vote_user_names_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentVoteUserNames200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -3187,12 +3163,10 @@ def get_comment_vote_user_names_without_preload_content( return response_data.response - def _get_comment_vote_user_names_serialize( + def _delete_v1_page_react_serialize( self, tenant_id, - comment_id, - dir, - sso, + url_id, _request_auth, _content_type, _headers, @@ -3216,16 +3190,10 @@ def _get_comment_vote_user_names_serialize( # process the path parameters if tenant_id is not None: _path_params['tenantId'] = tenant_id - if comment_id is not None: - _path_params['commentId'] = comment_id # process the query parameters - if dir is not None: - - _query_params.append(('dir', dir)) - - if sso is not None: + if url_id is not None: - _query_params.append(('sso', sso)) + _query_params.append(('urlId', url_id)) # process the header parameters # process the form parameters @@ -3246,8 +3214,8 @@ def _get_comment_vote_user_names_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/comments/{tenantId}/{commentId}/votes', + method='DELETE', + resource_path='/page-reacts/v1/likes/{tenantId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3264,36 +3232,11 @@ def _get_comment_vote_user_names_serialize( @validate_call - def get_comments_public( + def delete_v2_page_react( self, tenant_id: StrictStr, url_id: StrictStr, - page: Optional[StrictInt] = None, - direction: Optional[SortDirections] = None, - sso: Optional[StrictStr] = None, - skip: Optional[StrictInt] = None, - skip_children: Optional[StrictInt] = None, - limit: Optional[StrictInt] = None, - limit_children: Optional[StrictInt] = None, - count_children: Optional[StrictBool] = None, - fetch_page_for_comment_id: Optional[StrictStr] = None, - include_config: Optional[StrictBool] = None, - count_all: Optional[StrictBool] = None, - includei10n: Optional[StrictBool] = None, - locale: Optional[StrictStr] = None, - modules: Optional[StrictStr] = None, - is_crawler: Optional[StrictBool] = None, - include_notification_count: Optional[StrictBool] = None, - as_tree: Optional[StrictBool] = None, - max_tree_depth: Optional[StrictInt] = None, - use_full_translation_ids: Optional[StrictBool] = None, - parent_id: Optional[StrictStr] = None, - search_text: Optional[StrictStr] = None, - hash_tags: Optional[List[StrictStr]] = None, - user_id: Optional[StrictStr] = None, - custom_config_str: Optional[StrictStr] = None, - after_comment_id: Optional[StrictStr] = None, - before_comment_id: Optional[StrictStr] = None, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3306,67 +3249,16 @@ def get_comments_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetCommentsPublic200Response: - """get_comments_public + ) -> CreateV1PageReact: + """delete_v2_page_react - req tenantId urlId :param tenant_id: (required) :type tenant_id: str :param url_id: (required) :type url_id: str - :param page: - :type page: int - :param direction: - :type direction: SortDirections - :param sso: - :type sso: str - :param skip: - :type skip: int - :param skip_children: - :type skip_children: int - :param limit: - :type limit: int - :param limit_children: - :type limit_children: int - :param count_children: - :type count_children: bool - :param fetch_page_for_comment_id: - :type fetch_page_for_comment_id: str - :param include_config: - :type include_config: bool - :param count_all: - :type count_all: bool - :param includei10n: - :type includei10n: bool - :param locale: - :type locale: str - :param modules: - :type modules: str - :param is_crawler: - :type is_crawler: bool - :param include_notification_count: - :type include_notification_count: bool - :param as_tree: - :type as_tree: bool - :param max_tree_depth: - :type max_tree_depth: int - :param use_full_translation_ids: - :type use_full_translation_ids: bool - :param parent_id: - :type parent_id: str - :param search_text: - :type search_text: str - :param hash_tags: - :type hash_tags: List[str] - :param user_id: - :type user_id: str - :param custom_config_str: - :type custom_config_str: str - :param after_comment_id: - :type after_comment_id: str - :param before_comment_id: - :type before_comment_id: str + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3389,35 +3281,10 @@ def get_comments_public( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comments_public_serialize( + _param = self._delete_v2_page_react_serialize( tenant_id=tenant_id, url_id=url_id, - page=page, - direction=direction, - sso=sso, - skip=skip, - skip_children=skip_children, - limit=limit, - limit_children=limit_children, - count_children=count_children, - fetch_page_for_comment_id=fetch_page_for_comment_id, - include_config=include_config, - count_all=count_all, - includei10n=includei10n, - locale=locale, - modules=modules, - is_crawler=is_crawler, - include_notification_count=include_notification_count, - as_tree=as_tree, - max_tree_depth=max_tree_depth, - use_full_translation_ids=use_full_translation_ids, - parent_id=parent_id, - search_text=search_text, - hash_tags=hash_tags, - user_id=user_id, - custom_config_str=custom_config_str, - after_comment_id=after_comment_id, - before_comment_id=before_comment_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3425,7 +3292,7 @@ def get_comments_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentsPublic200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -3439,36 +3306,11 @@ def get_comments_public( @validate_call - def get_comments_public_with_http_info( + def delete_v2_page_react_with_http_info( self, tenant_id: StrictStr, url_id: StrictStr, - page: Optional[StrictInt] = None, - direction: Optional[SortDirections] = None, - sso: Optional[StrictStr] = None, - skip: Optional[StrictInt] = None, - skip_children: Optional[StrictInt] = None, - limit: Optional[StrictInt] = None, - limit_children: Optional[StrictInt] = None, - count_children: Optional[StrictBool] = None, - fetch_page_for_comment_id: Optional[StrictStr] = None, - include_config: Optional[StrictBool] = None, - count_all: Optional[StrictBool] = None, - includei10n: Optional[StrictBool] = None, - locale: Optional[StrictStr] = None, - modules: Optional[StrictStr] = None, - is_crawler: Optional[StrictBool] = None, - include_notification_count: Optional[StrictBool] = None, - as_tree: Optional[StrictBool] = None, - max_tree_depth: Optional[StrictInt] = None, - use_full_translation_ids: Optional[StrictBool] = None, - parent_id: Optional[StrictStr] = None, - search_text: Optional[StrictStr] = None, - hash_tags: Optional[List[StrictStr]] = None, - user_id: Optional[StrictStr] = None, - custom_config_str: Optional[StrictStr] = None, - after_comment_id: Optional[StrictStr] = None, - before_comment_id: Optional[StrictStr] = None, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3481,67 +3323,16 @@ def get_comments_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetCommentsPublic200Response]: - """get_comments_public + ) -> ApiResponse[CreateV1PageReact]: + """delete_v2_page_react - req tenantId urlId :param tenant_id: (required) :type tenant_id: str :param url_id: (required) :type url_id: str - :param page: - :type page: int - :param direction: - :type direction: SortDirections - :param sso: - :type sso: str - :param skip: - :type skip: int - :param skip_children: - :type skip_children: int - :param limit: - :type limit: int - :param limit_children: - :type limit_children: int - :param count_children: - :type count_children: bool - :param fetch_page_for_comment_id: - :type fetch_page_for_comment_id: str - :param include_config: - :type include_config: bool - :param count_all: - :type count_all: bool - :param includei10n: - :type includei10n: bool - :param locale: - :type locale: str - :param modules: - :type modules: str - :param is_crawler: - :type is_crawler: bool - :param include_notification_count: - :type include_notification_count: bool - :param as_tree: - :type as_tree: bool - :param max_tree_depth: - :type max_tree_depth: int - :param use_full_translation_ids: - :type use_full_translation_ids: bool - :param parent_id: - :type parent_id: str - :param search_text: - :type search_text: str - :param hash_tags: - :type hash_tags: List[str] - :param user_id: - :type user_id: str - :param custom_config_str: - :type custom_config_str: str - :param after_comment_id: - :type after_comment_id: str - :param before_comment_id: - :type before_comment_id: str + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3564,35 +3355,10 @@ def get_comments_public_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comments_public_serialize( + _param = self._delete_v2_page_react_serialize( tenant_id=tenant_id, url_id=url_id, - page=page, - direction=direction, - sso=sso, - skip=skip, - skip_children=skip_children, - limit=limit, - limit_children=limit_children, - count_children=count_children, - fetch_page_for_comment_id=fetch_page_for_comment_id, - include_config=include_config, - count_all=count_all, - includei10n=includei10n, - locale=locale, - modules=modules, - is_crawler=is_crawler, - include_notification_count=include_notification_count, - as_tree=as_tree, - max_tree_depth=max_tree_depth, - use_full_translation_ids=use_full_translation_ids, - parent_id=parent_id, - search_text=search_text, - hash_tags=hash_tags, - user_id=user_id, - custom_config_str=custom_config_str, - after_comment_id=after_comment_id, - before_comment_id=before_comment_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3600,7 +3366,7 @@ def get_comments_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentsPublic200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -3614,36 +3380,11 @@ def get_comments_public_with_http_info( @validate_call - def get_comments_public_without_preload_content( + def delete_v2_page_react_without_preload_content( self, tenant_id: StrictStr, url_id: StrictStr, - page: Optional[StrictInt] = None, - direction: Optional[SortDirections] = None, - sso: Optional[StrictStr] = None, - skip: Optional[StrictInt] = None, - skip_children: Optional[StrictInt] = None, - limit: Optional[StrictInt] = None, - limit_children: Optional[StrictInt] = None, - count_children: Optional[StrictBool] = None, - fetch_page_for_comment_id: Optional[StrictStr] = None, - include_config: Optional[StrictBool] = None, - count_all: Optional[StrictBool] = None, - includei10n: Optional[StrictBool] = None, - locale: Optional[StrictStr] = None, - modules: Optional[StrictStr] = None, - is_crawler: Optional[StrictBool] = None, - include_notification_count: Optional[StrictBool] = None, - as_tree: Optional[StrictBool] = None, - max_tree_depth: Optional[StrictInt] = None, - use_full_translation_ids: Optional[StrictBool] = None, - parent_id: Optional[StrictStr] = None, - search_text: Optional[StrictStr] = None, - hash_tags: Optional[List[StrictStr]] = None, - user_id: Optional[StrictStr] = None, - custom_config_str: Optional[StrictStr] = None, - after_comment_id: Optional[StrictStr] = None, - before_comment_id: Optional[StrictStr] = None, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -3657,66 +3398,15 @@ def get_comments_public_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_comments_public + """delete_v2_page_react - req tenantId urlId :param tenant_id: (required) :type tenant_id: str :param url_id: (required) :type url_id: str - :param page: - :type page: int - :param direction: - :type direction: SortDirections - :param sso: - :type sso: str - :param skip: - :type skip: int - :param skip_children: - :type skip_children: int - :param limit: - :type limit: int - :param limit_children: - :type limit_children: int - :param count_children: - :type count_children: bool - :param fetch_page_for_comment_id: - :type fetch_page_for_comment_id: str - :param include_config: - :type include_config: bool - :param count_all: - :type count_all: bool - :param includei10n: - :type includei10n: bool - :param locale: - :type locale: str - :param modules: - :type modules: str - :param is_crawler: - :type is_crawler: bool - :param include_notification_count: - :type include_notification_count: bool - :param as_tree: - :type as_tree: bool - :param max_tree_depth: - :type max_tree_depth: int - :param use_full_translation_ids: - :type use_full_translation_ids: bool - :param parent_id: - :type parent_id: str - :param search_text: - :type search_text: str - :param hash_tags: - :type hash_tags: List[str] - :param user_id: - :type user_id: str - :param custom_config_str: - :type custom_config_str: str - :param after_comment_id: - :type after_comment_id: str - :param before_comment_id: - :type before_comment_id: str + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -3739,35 +3429,10 @@ def get_comments_public_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_comments_public_serialize( + _param = self._delete_v2_page_react_serialize( tenant_id=tenant_id, url_id=url_id, - page=page, - direction=direction, - sso=sso, - skip=skip, - skip_children=skip_children, - limit=limit, - limit_children=limit_children, - count_children=count_children, - fetch_page_for_comment_id=fetch_page_for_comment_id, - include_config=include_config, - count_all=count_all, - includei10n=includei10n, - locale=locale, - modules=modules, - is_crawler=is_crawler, - include_notification_count=include_notification_count, - as_tree=as_tree, - max_tree_depth=max_tree_depth, - use_full_translation_ids=use_full_translation_ids, - parent_id=parent_id, - search_text=search_text, - hash_tags=hash_tags, - user_id=user_id, - custom_config_str=custom_config_str, - after_comment_id=after_comment_id, - before_comment_id=before_comment_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -3775,7 +3440,7 @@ def get_comments_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetCommentsPublic200Response", + '200': "CreateV1PageReact", } response_data = self.api_client.call_api( *_param, @@ -3784,36 +3449,11 @@ def get_comments_public_without_preload_content( return response_data.response - def _get_comments_public_serialize( + def _delete_v2_page_react_serialize( self, 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, + id, _request_auth, _content_type, _headers, @@ -3823,7 +3463,6 @@ def _get_comments_public_serialize( _host = None _collection_formats: Dict[str, str] = { - 'hashTags': 'multi', } _path_params: Dict[str, str] = {} @@ -3843,109 +3482,5801 @@ def _get_comments_public_serialize( _query_params.append(('urlId', url_id)) - if page is not None: - - _query_params.append(('page', page)) - - if direction is not None: - - _query_params.append(('direction', direction.value)) - - if sso is not None: - - _query_params.append(('sso', sso)) - - if skip is not None: - - _query_params.append(('skip', skip)) - - if skip_children is not None: - - _query_params.append(('skipChildren', skip_children)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if limit_children is not None: - - _query_params.append(('limitChildren', limit_children)) - - if count_children is not None: - - _query_params.append(('countChildren', count_children)) - - if fetch_page_for_comment_id is not None: - - _query_params.append(('fetchPageForCommentId', fetch_page_for_comment_id)) - - if include_config is not None: - - _query_params.append(('includeConfig', include_config)) - - if count_all is not None: - - _query_params.append(('countAll', count_all)) - - if includei10n is not None: - - _query_params.append(('includei10n', includei10n)) - - if locale is not None: - - _query_params.append(('locale', locale)) - - if modules is not None: - - _query_params.append(('modules', modules)) - - if is_crawler is not None: - - _query_params.append(('isCrawler', is_crawler)) - - if include_notification_count is not None: - - _query_params.append(('includeNotificationCount', include_notification_count)) - - if as_tree is not None: - - _query_params.append(('asTree', as_tree)) - - if max_tree_depth is not None: - - _query_params.append(('maxTreeDepth', max_tree_depth)) - - if use_full_translation_ids is not None: - - _query_params.append(('useFullTranslationIds', use_full_translation_ids)) - - if parent_id is not None: - - _query_params.append(('parentId', parent_id)) - - if search_text is not None: - - _query_params.append(('searchText', search_text)) - - if hash_tags is not None: - - _query_params.append(('hashTags', hash_tags)) - - if user_id is not None: - - _query_params.append(('userId', user_id)) - - if custom_config_str is not None: + if id is not None: - _query_params.append(('customConfigStr', custom_config_str)) + _query_params.append(('id', id)) - if after_comment_id is not None: + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='DELETE', + resource_path='/page-reacts/v2/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def flag_comment_public( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + is_flagged: StrictBool, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> APIEmptyResponse: + """flag_comment_public + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param is_flagged: (required) + :type is_flagged: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._flag_comment_public_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + is_flagged=is_flagged, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def flag_comment_public_with_http_info( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + is_flagged: StrictBool, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[APIEmptyResponse]: + """flag_comment_public + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param is_flagged: (required) + :type is_flagged: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._flag_comment_public_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + is_flagged=is_flagged, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def flag_comment_public_without_preload_content( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + is_flagged: StrictBool, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """flag_comment_public + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param is_flagged: (required) + :type is_flagged: bool + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._flag_comment_public_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + is_flagged=is_flagged, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "APIEmptyResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _flag_comment_public_serialize( + self, + tenant_id, + comment_id, + is_flagged, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if tenant_id is not None: + + _query_params.append(('tenantId', tenant_id)) + + if is_flagged is not None: + + _query_params.append(('isFlagged', is_flagged)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/flag-comment/{commentId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_comment_text( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + edit_key: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PublicAPIGetCommentTextResponse: + """get_comment_text + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param edit_key: + :type edit_key: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_text_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + edit_key=edit_key, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicAPIGetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_comment_text_with_http_info( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + edit_key: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PublicAPIGetCommentTextResponse]: + """get_comment_text + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param edit_key: + :type edit_key: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_text_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + edit_key=edit_key, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicAPIGetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_comment_text_without_preload_content( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + edit_key: Optional[StrictStr] = None, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_comment_text + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param edit_key: + :type edit_key: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_text_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + edit_key=edit_key, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicAPIGetCommentTextResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_comment_text_serialize( + self, + tenant_id, + comment_id, + edit_key, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if edit_key is not None: + + _query_params.append(('editKey', edit_key)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/comments/{tenantId}/{commentId}/text', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_comment_vote_user_names( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + dir: StrictInt, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCommentVoteUserNamesSuccessResponse: + """get_comment_vote_user_names + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param dir: (required) + :type dir: int + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_vote_user_names_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + dir=dir, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentVoteUserNamesSuccessResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_comment_vote_user_names_with_http_info( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + dir: StrictInt, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCommentVoteUserNamesSuccessResponse]: + """get_comment_vote_user_names + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param dir: (required) + :type dir: int + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_vote_user_names_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + dir=dir, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentVoteUserNamesSuccessResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_comment_vote_user_names_without_preload_content( + self, + tenant_id: StrictStr, + comment_id: StrictStr, + dir: StrictInt, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_comment_vote_user_names + + + :param tenant_id: (required) + :type tenant_id: str + :param comment_id: (required) + :type comment_id: str + :param dir: (required) + :type dir: int + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comment_vote_user_names_serialize( + tenant_id=tenant_id, + comment_id=comment_id, + dir=dir, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentVoteUserNamesSuccessResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_comment_vote_user_names_serialize( + self, + tenant_id, + comment_id, + dir, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + if comment_id is not None: + _path_params['commentId'] = comment_id + # process the query parameters + if dir is not None: + + _query_params.append(('dir', dir)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/comments/{tenantId}/{commentId}/votes', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_comments_for_user( + self, + user_id: Optional[StrictStr] = None, + direction: Optional[SortDirections] = None, + replies_to_user_id: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + includei10n: Optional[StrictBool] = None, + locale: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCommentsForUserResponse: + """get_comments_for_user + + + :param user_id: + :type user_id: str + :param direction: + :type direction: SortDirections + :param replies_to_user_id: + :type replies_to_user_id: str + :param page: + :type page: float + :param includei10n: + :type includei10n: bool + :param locale: + :type locale: str + :param is_crawler: + :type is_crawler: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comments_for_user_serialize( + user_id=user_id, + direction=direction, + replies_to_user_id=replies_to_user_id, + page=page, + includei10n=includei10n, + locale=locale, + is_crawler=is_crawler, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentsForUserResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_comments_for_user_with_http_info( + self, + user_id: Optional[StrictStr] = None, + direction: Optional[SortDirections] = None, + replies_to_user_id: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + includei10n: Optional[StrictBool] = None, + locale: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCommentsForUserResponse]: + """get_comments_for_user + + + :param user_id: + :type user_id: str + :param direction: + :type direction: SortDirections + :param replies_to_user_id: + :type replies_to_user_id: str + :param page: + :type page: float + :param includei10n: + :type includei10n: bool + :param locale: + :type locale: str + :param is_crawler: + :type is_crawler: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comments_for_user_serialize( + user_id=user_id, + direction=direction, + replies_to_user_id=replies_to_user_id, + page=page, + includei10n=includei10n, + locale=locale, + is_crawler=is_crawler, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentsForUserResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_comments_for_user_without_preload_content( + self, + user_id: Optional[StrictStr] = None, + direction: Optional[SortDirections] = None, + replies_to_user_id: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + includei10n: Optional[StrictBool] = None, + locale: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_comments_for_user + + + :param user_id: + :type user_id: str + :param direction: + :type direction: SortDirections + :param replies_to_user_id: + :type replies_to_user_id: str + :param page: + :type page: float + :param includei10n: + :type includei10n: bool + :param locale: + :type locale: str + :param is_crawler: + :type is_crawler: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comments_for_user_serialize( + user_id=user_id, + direction=direction, + replies_to_user_id=replies_to_user_id, + page=page, + includei10n=includei10n, + locale=locale, + is_crawler=is_crawler, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentsForUserResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_comments_for_user_serialize( + self, + user_id, + direction, + replies_to_user_id, + page, + includei10n, + locale, + is_crawler, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if direction is not None: + + _query_params.append(('direction', direction.value)) + + if replies_to_user_id is not None: + + _query_params.append(('repliesToUserId', replies_to_user_id)) + + if page is not None: + + _query_params.append(('page', page)) + + if includei10n is not None: + + _query_params.append(('includei10n', includei10n)) + + if locale is not None: + + _query_params.append(('locale', locale)) + + if is_crawler is not None: + + _query_params.append(('isCrawler', is_crawler)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/comments-for-user', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_comments_public( + self, + tenant_id: StrictStr, + url_id: StrictStr, + page: Optional[StrictInt] = None, + direction: Optional[SortDirections] = None, + sso: Optional[StrictStr] = None, + skip: Optional[StrictInt] = None, + skip_children: Optional[StrictInt] = None, + limit: Optional[StrictInt] = None, + limit_children: Optional[StrictInt] = None, + count_children: Optional[StrictBool] = None, + fetch_page_for_comment_id: Optional[StrictStr] = None, + include_config: Optional[StrictBool] = None, + count_all: Optional[StrictBool] = None, + includei10n: Optional[StrictBool] = None, + locale: Optional[StrictStr] = None, + modules: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + include_notification_count: Optional[StrictBool] = None, + as_tree: Optional[StrictBool] = None, + max_tree_depth: Optional[StrictInt] = None, + use_full_translation_ids: Optional[StrictBool] = None, + parent_id: Optional[StrictStr] = None, + search_text: Optional[StrictStr] = None, + hash_tags: Optional[List[StrictStr]] = None, + user_id: Optional[StrictStr] = None, + custom_config_str: Optional[StrictStr] = None, + after_comment_id: Optional[StrictStr] = None, + before_comment_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetCommentsResponseWithPresencePublicComment: + """get_comments_public + + req tenantId urlId + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param page: + :type page: int + :param direction: + :type direction: SortDirections + :param sso: + :type sso: str + :param skip: + :type skip: int + :param skip_children: + :type skip_children: int + :param limit: + :type limit: int + :param limit_children: + :type limit_children: int + :param count_children: + :type count_children: bool + :param fetch_page_for_comment_id: + :type fetch_page_for_comment_id: str + :param include_config: + :type include_config: bool + :param count_all: + :type count_all: bool + :param includei10n: + :type includei10n: bool + :param locale: + :type locale: str + :param modules: + :type modules: str + :param is_crawler: + :type is_crawler: bool + :param include_notification_count: + :type include_notification_count: bool + :param as_tree: + :type as_tree: bool + :param max_tree_depth: + :type max_tree_depth: int + :param use_full_translation_ids: + :type use_full_translation_ids: bool + :param parent_id: + :type parent_id: str + :param search_text: + :type search_text: str + :param hash_tags: + :type hash_tags: List[str] + :param user_id: + :type user_id: str + :param custom_config_str: + :type custom_config_str: str + :param after_comment_id: + :type after_comment_id: str + :param before_comment_id: + :type before_comment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comments_public_serialize( + tenant_id=tenant_id, + url_id=url_id, + page=page, + direction=direction, + sso=sso, + skip=skip, + skip_children=skip_children, + limit=limit, + limit_children=limit_children, + count_children=count_children, + fetch_page_for_comment_id=fetch_page_for_comment_id, + include_config=include_config, + count_all=count_all, + includei10n=includei10n, + locale=locale, + modules=modules, + is_crawler=is_crawler, + include_notification_count=include_notification_count, + as_tree=as_tree, + max_tree_depth=max_tree_depth, + use_full_translation_ids=use_full_translation_ids, + parent_id=parent_id, + search_text=search_text, + hash_tags=hash_tags, + user_id=user_id, + custom_config_str=custom_config_str, + after_comment_id=after_comment_id, + before_comment_id=before_comment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentsResponseWithPresencePublicComment", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_comments_public_with_http_info( + self, + tenant_id: StrictStr, + url_id: StrictStr, + page: Optional[StrictInt] = None, + direction: Optional[SortDirections] = None, + sso: Optional[StrictStr] = None, + skip: Optional[StrictInt] = None, + skip_children: Optional[StrictInt] = None, + limit: Optional[StrictInt] = None, + limit_children: Optional[StrictInt] = None, + count_children: Optional[StrictBool] = None, + fetch_page_for_comment_id: Optional[StrictStr] = None, + include_config: Optional[StrictBool] = None, + count_all: Optional[StrictBool] = None, + includei10n: Optional[StrictBool] = None, + locale: Optional[StrictStr] = None, + modules: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + include_notification_count: Optional[StrictBool] = None, + as_tree: Optional[StrictBool] = None, + max_tree_depth: Optional[StrictInt] = None, + use_full_translation_ids: Optional[StrictBool] = None, + parent_id: Optional[StrictStr] = None, + search_text: Optional[StrictStr] = None, + hash_tags: Optional[List[StrictStr]] = None, + user_id: Optional[StrictStr] = None, + custom_config_str: Optional[StrictStr] = None, + after_comment_id: Optional[StrictStr] = None, + before_comment_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetCommentsResponseWithPresencePublicComment]: + """get_comments_public + + req tenantId urlId + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param page: + :type page: int + :param direction: + :type direction: SortDirections + :param sso: + :type sso: str + :param skip: + :type skip: int + :param skip_children: + :type skip_children: int + :param limit: + :type limit: int + :param limit_children: + :type limit_children: int + :param count_children: + :type count_children: bool + :param fetch_page_for_comment_id: + :type fetch_page_for_comment_id: str + :param include_config: + :type include_config: bool + :param count_all: + :type count_all: bool + :param includei10n: + :type includei10n: bool + :param locale: + :type locale: str + :param modules: + :type modules: str + :param is_crawler: + :type is_crawler: bool + :param include_notification_count: + :type include_notification_count: bool + :param as_tree: + :type as_tree: bool + :param max_tree_depth: + :type max_tree_depth: int + :param use_full_translation_ids: + :type use_full_translation_ids: bool + :param parent_id: + :type parent_id: str + :param search_text: + :type search_text: str + :param hash_tags: + :type hash_tags: List[str] + :param user_id: + :type user_id: str + :param custom_config_str: + :type custom_config_str: str + :param after_comment_id: + :type after_comment_id: str + :param before_comment_id: + :type before_comment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comments_public_serialize( + tenant_id=tenant_id, + url_id=url_id, + page=page, + direction=direction, + sso=sso, + skip=skip, + skip_children=skip_children, + limit=limit, + limit_children=limit_children, + count_children=count_children, + fetch_page_for_comment_id=fetch_page_for_comment_id, + include_config=include_config, + count_all=count_all, + includei10n=includei10n, + locale=locale, + modules=modules, + is_crawler=is_crawler, + include_notification_count=include_notification_count, + as_tree=as_tree, + max_tree_depth=max_tree_depth, + use_full_translation_ids=use_full_translation_ids, + parent_id=parent_id, + search_text=search_text, + hash_tags=hash_tags, + user_id=user_id, + custom_config_str=custom_config_str, + after_comment_id=after_comment_id, + before_comment_id=before_comment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentsResponseWithPresencePublicComment", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_comments_public_without_preload_content( + self, + tenant_id: StrictStr, + url_id: StrictStr, + page: Optional[StrictInt] = None, + direction: Optional[SortDirections] = None, + sso: Optional[StrictStr] = None, + skip: Optional[StrictInt] = None, + skip_children: Optional[StrictInt] = None, + limit: Optional[StrictInt] = None, + limit_children: Optional[StrictInt] = None, + count_children: Optional[StrictBool] = None, + fetch_page_for_comment_id: Optional[StrictStr] = None, + include_config: Optional[StrictBool] = None, + count_all: Optional[StrictBool] = None, + includei10n: Optional[StrictBool] = None, + locale: Optional[StrictStr] = None, + modules: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + include_notification_count: Optional[StrictBool] = None, + as_tree: Optional[StrictBool] = None, + max_tree_depth: Optional[StrictInt] = None, + use_full_translation_ids: Optional[StrictBool] = None, + parent_id: Optional[StrictStr] = None, + search_text: Optional[StrictStr] = None, + hash_tags: Optional[List[StrictStr]] = None, + user_id: Optional[StrictStr] = None, + custom_config_str: Optional[StrictStr] = None, + after_comment_id: Optional[StrictStr] = None, + before_comment_id: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_comments_public + + req tenantId urlId + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param page: + :type page: int + :param direction: + :type direction: SortDirections + :param sso: + :type sso: str + :param skip: + :type skip: int + :param skip_children: + :type skip_children: int + :param limit: + :type limit: int + :param limit_children: + :type limit_children: int + :param count_children: + :type count_children: bool + :param fetch_page_for_comment_id: + :type fetch_page_for_comment_id: str + :param include_config: + :type include_config: bool + :param count_all: + :type count_all: bool + :param includei10n: + :type includei10n: bool + :param locale: + :type locale: str + :param modules: + :type modules: str + :param is_crawler: + :type is_crawler: bool + :param include_notification_count: + :type include_notification_count: bool + :param as_tree: + :type as_tree: bool + :param max_tree_depth: + :type max_tree_depth: int + :param use_full_translation_ids: + :type use_full_translation_ids: bool + :param parent_id: + :type parent_id: str + :param search_text: + :type search_text: str + :param hash_tags: + :type hash_tags: List[str] + :param user_id: + :type user_id: str + :param custom_config_str: + :type custom_config_str: str + :param after_comment_id: + :type after_comment_id: str + :param before_comment_id: + :type before_comment_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_comments_public_serialize( + tenant_id=tenant_id, + url_id=url_id, + page=page, + direction=direction, + sso=sso, + skip=skip, + skip_children=skip_children, + limit=limit, + limit_children=limit_children, + count_children=count_children, + fetch_page_for_comment_id=fetch_page_for_comment_id, + include_config=include_config, + count_all=count_all, + includei10n=includei10n, + locale=locale, + modules=modules, + is_crawler=is_crawler, + include_notification_count=include_notification_count, + as_tree=as_tree, + max_tree_depth=max_tree_depth, + use_full_translation_ids=use_full_translation_ids, + parent_id=parent_id, + search_text=search_text, + hash_tags=hash_tags, + user_id=user_id, + custom_config_str=custom_config_str, + after_comment_id=after_comment_id, + before_comment_id=before_comment_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetCommentsResponseWithPresencePublicComment", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_comments_public_serialize( + self, + 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, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'hashTags': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if url_id is not None: + + _query_params.append(('urlId', url_id)) + + if page is not None: + + _query_params.append(('page', page)) + + if direction is not None: + + _query_params.append(('direction', direction.value)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + if skip is not None: + + _query_params.append(('skip', skip)) + + if skip_children is not None: + + _query_params.append(('skipChildren', skip_children)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if limit_children is not None: + + _query_params.append(('limitChildren', limit_children)) + + if count_children is not None: + + _query_params.append(('countChildren', count_children)) + + if fetch_page_for_comment_id is not None: + + _query_params.append(('fetchPageForCommentId', fetch_page_for_comment_id)) + + if include_config is not None: + + _query_params.append(('includeConfig', include_config)) + + if count_all is not None: + + _query_params.append(('countAll', count_all)) + + if includei10n is not None: + + _query_params.append(('includei10n', includei10n)) + + if locale is not None: + + _query_params.append(('locale', locale)) + + if modules is not None: + + _query_params.append(('modules', modules)) + + if is_crawler is not None: + + _query_params.append(('isCrawler', is_crawler)) + + if include_notification_count is not None: + + _query_params.append(('includeNotificationCount', include_notification_count)) + + if as_tree is not None: + + _query_params.append(('asTree', as_tree)) + + if max_tree_depth is not None: + + _query_params.append(('maxTreeDepth', max_tree_depth)) + + if use_full_translation_ids is not None: + + _query_params.append(('useFullTranslationIds', use_full_translation_ids)) + + if parent_id is not None: + + _query_params.append(('parentId', parent_id)) + + if search_text is not None: + + _query_params.append(('searchText', search_text)) + + if hash_tags is not None: + + _query_params.append(('hashTags', hash_tags)) + + if user_id is not None: + + _query_params.append(('userId', user_id)) + + if custom_config_str is not None: + + _query_params.append(('customConfigStr', custom_config_str)) + + if after_comment_id is not None: + + _query_params.append(('afterCommentId', after_comment_id)) + + if before_comment_id is not None: + + _query_params.append(('beforeCommentId', before_comment_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/comments/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_event_log( + self, + tenant_id: StrictStr, + url_id: StrictStr, + user_id_ws: StrictStr, + start_time: StrictInt, + end_time: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetEventLogResponse: + """get_event_log + + req tenantId urlId userIdWS + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param user_id_ws: (required) + :type user_id_ws: str + :param start_time: (required) + :type start_time: int + :param end_time: + :type end_time: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_event_log_serialize( + tenant_id=tenant_id, + url_id=url_id, + user_id_ws=user_id_ws, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEventLogResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_event_log_with_http_info( + self, + tenant_id: StrictStr, + url_id: StrictStr, + user_id_ws: StrictStr, + start_time: StrictInt, + end_time: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetEventLogResponse]: + """get_event_log + + req tenantId urlId userIdWS + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param user_id_ws: (required) + :type user_id_ws: str + :param start_time: (required) + :type start_time: int + :param end_time: + :type end_time: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_event_log_serialize( + tenant_id=tenant_id, + url_id=url_id, + user_id_ws=user_id_ws, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEventLogResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_event_log_without_preload_content( + self, + tenant_id: StrictStr, + url_id: StrictStr, + user_id_ws: StrictStr, + start_time: StrictInt, + end_time: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_event_log + + req tenantId urlId userIdWS + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param user_id_ws: (required) + :type user_id_ws: str + :param start_time: (required) + :type start_time: int + :param end_time: + :type end_time: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_event_log_serialize( + tenant_id=tenant_id, + url_id=url_id, + user_id_ws=user_id_ws, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEventLogResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_event_log_serialize( + self, + tenant_id, + url_id, + user_id_ws, + start_time, + end_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if url_id is not None: + + _query_params.append(('urlId', url_id)) + + if user_id_ws is not None: + + _query_params.append(('userIdWS', user_id_ws)) + + if start_time is not None: + + _query_params.append(('startTime', start_time)) + + if end_time is not None: + + _query_params.append(('endTime', end_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/event-log/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_feed_posts_public( + self, + tenant_id: StrictStr, + after_id: Optional[StrictStr] = None, + limit: Optional[StrictInt] = None, + tags: Optional[List[StrictStr]] = None, + sso: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + include_user_info: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PublicFeedPostsResponse: + """get_feed_posts_public + + req tenantId afterId + + :param tenant_id: (required) + :type tenant_id: str + :param after_id: + :type after_id: str + :param limit: + :type limit: int + :param tags: + :type tags: List[str] + :param sso: + :type sso: str + :param is_crawler: + :type is_crawler: bool + :param include_user_info: + :type include_user_info: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_feed_posts_public_serialize( + tenant_id=tenant_id, + after_id=after_id, + limit=limit, + tags=tags, + sso=sso, + is_crawler=is_crawler, + include_user_info=include_user_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicFeedPostsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_feed_posts_public_with_http_info( + self, + tenant_id: StrictStr, + after_id: Optional[StrictStr] = None, + limit: Optional[StrictInt] = None, + tags: Optional[List[StrictStr]] = None, + sso: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + include_user_info: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PublicFeedPostsResponse]: + """get_feed_posts_public + + req tenantId afterId + + :param tenant_id: (required) + :type tenant_id: str + :param after_id: + :type after_id: str + :param limit: + :type limit: int + :param tags: + :type tags: List[str] + :param sso: + :type sso: str + :param is_crawler: + :type is_crawler: bool + :param include_user_info: + :type include_user_info: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_feed_posts_public_serialize( + tenant_id=tenant_id, + after_id=after_id, + limit=limit, + tags=tags, + sso=sso, + is_crawler=is_crawler, + include_user_info=include_user_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicFeedPostsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_feed_posts_public_without_preload_content( + self, + tenant_id: StrictStr, + after_id: Optional[StrictStr] = None, + limit: Optional[StrictInt] = None, + tags: Optional[List[StrictStr]] = None, + sso: Optional[StrictStr] = None, + is_crawler: Optional[StrictBool] = None, + include_user_info: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_feed_posts_public + + req tenantId afterId + + :param tenant_id: (required) + :type tenant_id: str + :param after_id: + :type after_id: str + :param limit: + :type limit: int + :param tags: + :type tags: List[str] + :param sso: + :type sso: str + :param is_crawler: + :type is_crawler: bool + :param include_user_info: + :type include_user_info: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_feed_posts_public_serialize( + tenant_id=tenant_id, + after_id=after_id, + limit=limit, + tags=tags, + sso=sso, + is_crawler=is_crawler, + include_user_info=include_user_info, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PublicFeedPostsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_feed_posts_public_serialize( + self, + tenant_id, + after_id, + limit, + tags, + sso, + is_crawler, + include_user_info, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'tags': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if after_id is not None: + + _query_params.append(('afterId', after_id)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if tags is not None: + + _query_params.append(('tags', tags)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + if is_crawler is not None: + + _query_params.append(('isCrawler', is_crawler)) + + if include_user_info is not None: + + _query_params.append(('includeUserInfo', include_user_info)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/feed-posts/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_feed_posts_stats( + self, + tenant_id: StrictStr, + post_ids: List[StrictStr], + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> FeedPostsStatsResponse: + """get_feed_posts_stats + + + :param tenant_id: (required) + :type tenant_id: str + :param post_ids: (required) + :type post_ids: List[str] + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_feed_posts_stats_serialize( + tenant_id=tenant_id, + post_ids=post_ids, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FeedPostsStatsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_feed_posts_stats_with_http_info( + self, + tenant_id: StrictStr, + post_ids: List[StrictStr], + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[FeedPostsStatsResponse]: + """get_feed_posts_stats + + + :param tenant_id: (required) + :type tenant_id: str + :param post_ids: (required) + :type post_ids: List[str] + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_feed_posts_stats_serialize( + tenant_id=tenant_id, + post_ids=post_ids, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FeedPostsStatsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_feed_posts_stats_without_preload_content( + self, + tenant_id: StrictStr, + post_ids: List[StrictStr], + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_feed_posts_stats + + + :param tenant_id: (required) + :type tenant_id: str + :param post_ids: (required) + :type post_ids: List[str] + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_feed_posts_stats_serialize( + tenant_id=tenant_id, + post_ids=post_ids, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "FeedPostsStatsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_feed_posts_stats_serialize( + self, + tenant_id, + post_ids, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + 'postIds': 'multi', + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if post_ids is not None: + + _query_params.append(('postIds', post_ids)) + + if sso is not None: + + _query_params.append(('sso', sso)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/feed-posts/{tenantId}/stats', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_gif_large( + self, + tenant_id: StrictStr, + large_internal_url_sanitized: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GifGetLargeResponse: + """get_gif_large + + + :param tenant_id: (required) + :type tenant_id: str + :param large_internal_url_sanitized: (required) + :type large_internal_url_sanitized: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gif_large_serialize( + tenant_id=tenant_id, + large_internal_url_sanitized=large_internal_url_sanitized, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GifGetLargeResponse", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_gif_large_with_http_info( + self, + tenant_id: StrictStr, + large_internal_url_sanitized: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GifGetLargeResponse]: + """get_gif_large + + + :param tenant_id: (required) + :type tenant_id: str + :param large_internal_url_sanitized: (required) + :type large_internal_url_sanitized: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gif_large_serialize( + tenant_id=tenant_id, + large_internal_url_sanitized=large_internal_url_sanitized, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GifGetLargeResponse", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_gif_large_without_preload_content( + self, + tenant_id: StrictStr, + large_internal_url_sanitized: StrictStr, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_gif_large + + + :param tenant_id: (required) + :type tenant_id: str + :param large_internal_url_sanitized: (required) + :type large_internal_url_sanitized: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gif_large_serialize( + tenant_id=tenant_id, + large_internal_url_sanitized=large_internal_url_sanitized, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GifGetLargeResponse", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_gif_large_serialize( + self, + tenant_id, + large_internal_url_sanitized, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if large_internal_url_sanitized is not None: + + _query_params.append(('largeInternalURLSanitized', large_internal_url_sanitized)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/gifs/get-large/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_gifs_search( + self, + tenant_id: StrictStr, + search: StrictStr, + locale: Optional[StrictStr] = None, + rating: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGifsSearchResponse: + """get_gifs_search + + + :param tenant_id: (required) + :type tenant_id: str + :param search: (required) + :type search: str + :param locale: + :type locale: str + :param rating: + :type rating: str + :param page: + :type page: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gifs_search_serialize( + tenant_id=tenant_id, + search=search, + locale=locale, + rating=rating, + page=page, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGifsSearchResponse", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_gifs_search_with_http_info( + self, + tenant_id: StrictStr, + search: StrictStr, + locale: Optional[StrictStr] = None, + rating: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGifsSearchResponse]: + """get_gifs_search + + + :param tenant_id: (required) + :type tenant_id: str + :param search: (required) + :type search: str + :param locale: + :type locale: str + :param rating: + :type rating: str + :param page: + :type page: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gifs_search_serialize( + tenant_id=tenant_id, + search=search, + locale=locale, + rating=rating, + page=page, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGifsSearchResponse", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_gifs_search_without_preload_content( + self, + tenant_id: StrictStr, + search: StrictStr, + locale: Optional[StrictStr] = None, + rating: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_gifs_search + + + :param tenant_id: (required) + :type tenant_id: str + :param search: (required) + :type search: str + :param locale: + :type locale: str + :param rating: + :type rating: str + :param page: + :type page: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gifs_search_serialize( + tenant_id=tenant_id, + search=search, + locale=locale, + rating=rating, + page=page, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGifsSearchResponse", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_gifs_search_serialize( + self, + tenant_id, + search, + locale, + rating, + page, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if search is not None: + + _query_params.append(('search', search)) + + if locale is not None: + + _query_params.append(('locale', locale)) + + if rating is not None: + + _query_params.append(('rating', rating)) + + if page is not None: + + _query_params.append(('page', page)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/gifs/search/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_gifs_trending( + self, + tenant_id: StrictStr, + locale: Optional[StrictStr] = None, + rating: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetGifsTrendingResponse: + """get_gifs_trending + + + :param tenant_id: (required) + :type tenant_id: str + :param locale: + :type locale: str + :param rating: + :type rating: str + :param page: + :type page: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gifs_trending_serialize( + tenant_id=tenant_id, + locale=locale, + rating=rating, + page=page, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGifsTrendingResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_gifs_trending_with_http_info( + self, + tenant_id: StrictStr, + locale: Optional[StrictStr] = None, + rating: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetGifsTrendingResponse]: + """get_gifs_trending + + + :param tenant_id: (required) + :type tenant_id: str + :param locale: + :type locale: str + :param rating: + :type rating: str + :param page: + :type page: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gifs_trending_serialize( + tenant_id=tenant_id, + locale=locale, + rating=rating, + page=page, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGifsTrendingResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_gifs_trending_without_preload_content( + self, + tenant_id: StrictStr, + locale: Optional[StrictStr] = None, + rating: Optional[StrictStr] = None, + page: Optional[Union[StrictFloat, StrictInt]] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_gifs_trending + + + :param tenant_id: (required) + :type tenant_id: str + :param locale: + :type locale: str + :param rating: + :type rating: str + :param page: + :type page: float + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_gifs_trending_serialize( + tenant_id=tenant_id, + locale=locale, + rating=rating, + page=page, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetGifsTrendingResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_gifs_trending_serialize( + self, + tenant_id, + locale, + rating, + page, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if locale is not None: + + _query_params.append(('locale', locale)) + + if rating is not None: + + _query_params.append(('rating', rating)) + + if page is not None: + + _query_params.append(('page', page)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/gifs/trending/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_global_event_log( + self, + tenant_id: StrictStr, + url_id: StrictStr, + user_id_ws: StrictStr, + start_time: StrictInt, + end_time: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetEventLogResponse: + """get_global_event_log + + req tenantId urlId userIdWS + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param user_id_ws: (required) + :type user_id_ws: str + :param start_time: (required) + :type start_time: int + :param end_time: + :type end_time: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_global_event_log_serialize( + tenant_id=tenant_id, + url_id=url_id, + user_id_ws=user_id_ws, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEventLogResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_global_event_log_with_http_info( + self, + tenant_id: StrictStr, + url_id: StrictStr, + user_id_ws: StrictStr, + start_time: StrictInt, + end_time: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetEventLogResponse]: + """get_global_event_log + + req tenantId urlId userIdWS + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param user_id_ws: (required) + :type user_id_ws: str + :param start_time: (required) + :type start_time: int + :param end_time: + :type end_time: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_global_event_log_serialize( + tenant_id=tenant_id, + url_id=url_id, + user_id_ws=user_id_ws, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEventLogResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_global_event_log_without_preload_content( + self, + tenant_id: StrictStr, + url_id: StrictStr, + user_id_ws: StrictStr, + start_time: StrictInt, + end_time: Optional[StrictInt] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_global_event_log + + req tenantId urlId userIdWS + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: (required) + :type url_id: str + :param user_id_ws: (required) + :type user_id_ws: str + :param start_time: (required) + :type start_time: int + :param end_time: + :type end_time: int + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_global_event_log_serialize( + tenant_id=tenant_id, + url_id=url_id, + user_id_ws=user_id_ws, + start_time=start_time, + end_time=end_time, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetEventLogResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_global_event_log_serialize( + self, + tenant_id, + url_id, + user_id_ws, + start_time, + end_time, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if url_id is not None: + + _query_params.append(('urlId', url_id)) + + if user_id_ws is not None: + + _query_params.append(('userIdWS', user_id_ws)) + + if start_time is not None: + + _query_params.append(('startTime', start_time)) + + if end_time is not None: + + _query_params.append(('endTime', end_time)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/event-log/global/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_offline_users( + self, + tenant_id: StrictStr, + url_id: Annotated[StrictStr, Field(description="Page URL identifier (cleaned server-side).")], + after_name: Annotated[Optional[StrictStr], Field(description="Cursor: pass nextAfterName from the previous response.")] = None, + after_user_id: Annotated[Optional[StrictStr], Field(description="Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PageUsersOfflineResponse: + """get_offline_users + + 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. + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: Page URL identifier (cleaned server-side). (required) + :type url_id: str + :param after_name: Cursor: pass nextAfterName from the previous response. + :type after_name: str + :param after_user_id: Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + :type after_user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_offline_users_serialize( + tenant_id=tenant_id, + url_id=url_id, + after_name=after_name, + after_user_id=after_user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PageUsersOfflineResponse", + '403': "APIError", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_offline_users_with_http_info( + self, + tenant_id: StrictStr, + url_id: Annotated[StrictStr, Field(description="Page URL identifier (cleaned server-side).")], + after_name: Annotated[Optional[StrictStr], Field(description="Cursor: pass nextAfterName from the previous response.")] = None, + after_user_id: Annotated[Optional[StrictStr], Field(description="Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PageUsersOfflineResponse]: + """get_offline_users + + 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. + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: Page URL identifier (cleaned server-side). (required) + :type url_id: str + :param after_name: Cursor: pass nextAfterName from the previous response. + :type after_name: str + :param after_user_id: Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + :type after_user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_offline_users_serialize( + tenant_id=tenant_id, + url_id=url_id, + after_name=after_name, + after_user_id=after_user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PageUsersOfflineResponse", + '403': "APIError", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_offline_users_without_preload_content( + self, + tenant_id: StrictStr, + url_id: Annotated[StrictStr, Field(description="Page URL identifier (cleaned server-side).")], + after_name: Annotated[Optional[StrictStr], Field(description="Cursor: pass nextAfterName from the previous response.")] = None, + after_user_id: Annotated[Optional[StrictStr], Field(description="Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_offline_users + + 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. + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: Page URL identifier (cleaned server-side). (required) + :type url_id: str + :param after_name: Cursor: pass nextAfterName from the previous response. + :type after_name: str + :param after_user_id: Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + :type after_user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_offline_users_serialize( + tenant_id=tenant_id, + url_id=url_id, + after_name=after_name, + after_user_id=after_user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PageUsersOfflineResponse", + '403': "APIError", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_offline_users_serialize( + self, + tenant_id, + url_id, + after_name, + after_user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if url_id is not None: + + _query_params.append(('urlId', url_id)) + + if after_name is not None: + + _query_params.append(('afterName', after_name)) + + if after_user_id is not None: + + _query_params.append(('afterUserId', after_user_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/pages/{tenantId}/users/offline', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_online_users( + self, + tenant_id: StrictStr, + url_id: Annotated[StrictStr, Field(description="Page URL identifier (cleaned server-side).")], + after_name: Annotated[Optional[StrictStr], Field(description="Cursor: pass nextAfterName from the previous response.")] = None, + after_user_id: Annotated[Optional[StrictStr], Field(description="Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PageUsersOnlineResponse: + """get_online_users + + 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). + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: Page URL identifier (cleaned server-side). (required) + :type url_id: str + :param after_name: Cursor: pass nextAfterName from the previous response. + :type after_name: str + :param after_user_id: Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + :type after_user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_online_users_serialize( + tenant_id=tenant_id, + url_id=url_id, + after_name=after_name, + after_user_id=after_user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PageUsersOnlineResponse", + '403': "APIError", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_online_users_with_http_info( + self, + tenant_id: StrictStr, + url_id: Annotated[StrictStr, Field(description="Page URL identifier (cleaned server-side).")], + after_name: Annotated[Optional[StrictStr], Field(description="Cursor: pass nextAfterName from the previous response.")] = None, + after_user_id: Annotated[Optional[StrictStr], Field(description="Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[PageUsersOnlineResponse]: + """get_online_users + + 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). + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: Page URL identifier (cleaned server-side). (required) + :type url_id: str + :param after_name: Cursor: pass nextAfterName from the previous response. + :type after_name: str + :param after_user_id: Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + :type after_user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_online_users_serialize( + tenant_id=tenant_id, + url_id=url_id, + after_name=after_name, + after_user_id=after_user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PageUsersOnlineResponse", + '403': "APIError", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_online_users_without_preload_content( + self, + tenant_id: StrictStr, + url_id: Annotated[StrictStr, Field(description="Page URL identifier (cleaned server-side).")], + after_name: Annotated[Optional[StrictStr], Field(description="Cursor: pass nextAfterName from the previous response.")] = None, + after_user_id: Annotated[Optional[StrictStr], Field(description="Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_online_users + + 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). + + :param tenant_id: (required) + :type tenant_id: str + :param url_id: Page URL identifier (cleaned server-side). (required) + :type url_id: str + :param after_name: Cursor: pass nextAfterName from the previous response. + :type after_name: str + :param after_user_id: Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. + :type after_user_id: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_online_users_serialize( + tenant_id=tenant_id, + url_id=url_id, + after_name=after_name, + after_user_id=after_user_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "PageUsersOnlineResponse", + '403': "APIError", + '422': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_online_users_serialize( + self, + tenant_id, + url_id, + after_name, + after_user_id, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if url_id is not None: + + _query_params.append(('urlId', url_id)) + + if after_name is not None: + + _query_params.append(('afterName', after_name)) + + if after_user_id is not None: + + _query_params.append(('afterUserId', after_user_id)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/pages/{tenantId}/users/online', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_pages_public( + self, + tenant_id: StrictStr, + cursor: Annotated[Optional[StrictStr], Field(description="Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="1..200, default 50")] = None, + q: Annotated[Optional[StrictStr], Field(description="Optional case-insensitive title prefix filter.")] = None, + sort_by: Annotated[Optional[PagesSortBy], Field(description="Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical).")] = None, + has_comments: Annotated[Optional[StrictBool], Field(description="If true, only return pages with at least one comment.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetPublicPagesResponse: + """get_pages_public + + 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. + + :param tenant_id: (required) + :type tenant_id: str + :param cursor: Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + :type cursor: str + :param limit: 1..200, default 50 + :type limit: int + :param q: Optional case-insensitive title prefix filter. + :type q: str + :param sort_by: Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + :type sort_by: PagesSortBy + :param has_comments: If true, only return pages with at least one comment. + :type has_comments: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pages_public_serialize( + tenant_id=tenant_id, + cursor=cursor, + limit=limit, + q=q, + sort_by=sort_by, + has_comments=has_comments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPublicPagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_pages_public_with_http_info( + self, + tenant_id: StrictStr, + cursor: Annotated[Optional[StrictStr], Field(description="Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="1..200, default 50")] = None, + q: Annotated[Optional[StrictStr], Field(description="Optional case-insensitive title prefix filter.")] = None, + sort_by: Annotated[Optional[PagesSortBy], Field(description="Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical).")] = None, + has_comments: Annotated[Optional[StrictBool], Field(description="If true, only return pages with at least one comment.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetPublicPagesResponse]: + """get_pages_public + + 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. + + :param tenant_id: (required) + :type tenant_id: str + :param cursor: Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + :type cursor: str + :param limit: 1..200, default 50 + :type limit: int + :param q: Optional case-insensitive title prefix filter. + :type q: str + :param sort_by: Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + :type sort_by: PagesSortBy + :param has_comments: If true, only return pages with at least one comment. + :type has_comments: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pages_public_serialize( + tenant_id=tenant_id, + cursor=cursor, + limit=limit, + q=q, + sort_by=sort_by, + has_comments=has_comments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPublicPagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_pages_public_without_preload_content( + self, + tenant_id: StrictStr, + cursor: Annotated[Optional[StrictStr], Field(description="Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`.")] = None, + limit: Annotated[Optional[StrictInt], Field(description="1..200, default 50")] = None, + q: Annotated[Optional[StrictStr], Field(description="Optional case-insensitive title prefix filter.")] = None, + sort_by: Annotated[Optional[PagesSortBy], Field(description="Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical).")] = None, + has_comments: Annotated[Optional[StrictBool], Field(description="If true, only return pages with at least one comment.")] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_pages_public + + 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. + + :param tenant_id: (required) + :type tenant_id: str + :param cursor: Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. + :type cursor: str + :param limit: 1..200, default 50 + :type limit: int + :param q: Optional case-insensitive title prefix filter. + :type q: str + :param sort_by: Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). + :type sort_by: PagesSortBy + :param has_comments: If true, only return pages with at least one comment. + :type has_comments: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_pages_public_serialize( + tenant_id=tenant_id, + cursor=cursor, + limit=limit, + q=q, + sort_by=sort_by, + has_comments=has_comments, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetPublicPagesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_pages_public_serialize( + self, + tenant_id, + cursor, + limit, + q, + sort_by, + has_comments, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if cursor is not None: + + _query_params.append(('cursor', cursor)) + + if limit is not None: + + _query_params.append(('limit', limit)) + + if q is not None: + + _query_params.append(('q', q)) + + if sort_by is not None: + + _query_params.append(('sortBy', sort_by.value)) + + if has_comments is not None: + + _query_params.append(('hasComments', has_comments)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/pages/{tenantId}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_translations( + self, + namespace: StrictStr, + component: StrictStr, + locale: Optional[StrictStr] = None, + use_full_translation_ids: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetTranslationsResponse: + """get_translations + + + :param namespace: (required) + :type namespace: str + :param component: (required) + :type component: str + :param locale: + :type locale: str + :param use_full_translation_ids: + :type use_full_translation_ids: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_translations_serialize( + namespace=namespace, + component=component, + locale=locale, + use_full_translation_ids=use_full_translation_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTranslationsResponse", + '422': "APIError", + '500': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_translations_with_http_info( + self, + namespace: StrictStr, + component: StrictStr, + locale: Optional[StrictStr] = None, + use_full_translation_ids: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetTranslationsResponse]: + """get_translations + + + :param namespace: (required) + :type namespace: str + :param component: (required) + :type component: str + :param locale: + :type locale: str + :param use_full_translation_ids: + :type use_full_translation_ids: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_translations_serialize( + namespace=namespace, + component=component, + locale=locale, + use_full_translation_ids=use_full_translation_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTranslationsResponse", + '422': "APIError", + '500': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_translations_without_preload_content( + self, + namespace: StrictStr, + component: StrictStr, + locale: Optional[StrictStr] = None, + use_full_translation_ids: Optional[StrictBool] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_translations + + + :param namespace: (required) + :type namespace: str + :param component: (required) + :type component: str + :param locale: + :type locale: str + :param use_full_translation_ids: + :type use_full_translation_ids: bool + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_translations_serialize( + namespace=namespace, + component=component, + locale=locale, + use_full_translation_ids=use_full_translation_ids, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetTranslationsResponse", + '422': "APIError", + '500': "APIError", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_translations_serialize( + self, + namespace, + component, + locale, + use_full_translation_ids, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + if namespace is not None: + _path_params['namespace'] = namespace + if component is not None: + _path_params['component'] = component + # process the query parameters + if locale is not None: + + _query_params.append(('locale', locale)) + + if use_full_translation_ids is not None: + + _query_params.append(('useFullTranslationIds', use_full_translation_ids)) + + # process the header parameters + # process the form parameters + # process the body parameter + + + # set the HTTP header `Accept` + if 'Accept' not in _header_params: + _header_params['Accept'] = self.api_client.select_header_accept( + [ + 'application/json' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/translations/{namespace}/{component}', + path_params=_path_params, + query_params=_query_params, + header_params=_header_params, + body=_body_params, + post_params=_form_params, + files=_files, + auth_settings=_auth_settings, + collection_formats=_collection_formats, + _host=_host, + _request_auth=_request_auth + ) + + + + + @validate_call + def get_user_notification_count( + self, + tenant_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> GetUserNotificationCountResponse: + """get_user_notification_count + + + :param tenant_id: (required) + :type tenant_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_notification_count_serialize( + tenant_id=tenant_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserNotificationCountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ).data + + + @validate_call + def get_user_notification_count_with_http_info( + self, + tenant_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> ApiResponse[GetUserNotificationCountResponse]: + """get_user_notification_count + + + :param tenant_id: (required) + :type tenant_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_notification_count_serialize( + tenant_id=tenant_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserNotificationCountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + response_data.read() + return self.api_client.response_deserialize( + response_data=response_data, + response_types_map=_response_types_map, + ) + + + @validate_call + def get_user_notification_count_without_preload_content( + self, + tenant_id: StrictStr, + sso: Optional[StrictStr] = None, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], + Annotated[StrictFloat, Field(gt=0)] + ] + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> RESTResponseType: + """get_user_notification_count + + + :param tenant_id: (required) + :type tenant_id: str + :param sso: + :type sso: str + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores the host_index + in the spec for a single request. + :type _host_index: int, optional + :return: Returns the result object. + """ # noqa: E501 + + _param = self._get_user_notification_count_serialize( + tenant_id=tenant_id, + sso=sso, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GetUserNotificationCountResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_user_notification_count_serialize( + self, + tenant_id, + sso, + _request_auth, + _content_type, + _headers, + _host_index, + ) -> RequestSerialized: + + _host = None + + _collection_formats: Dict[str, str] = { + } + + _path_params: Dict[str, str] = {} + _query_params: List[Tuple[str, str]] = [] + _header_params: Dict[str, Optional[str]] = _headers or {} + _form_params: List[Tuple[str, str]] = [] + _files: Dict[ + str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]] + ] = {} + _body_params: Optional[bytes] = None + + # process the path parameters + # process the query parameters + if tenant_id is not None: - _query_params.append(('afterCommentId', after_comment_id)) + _query_params.append(('tenantId', tenant_id)) - if before_comment_id is not None: + if sso is not None: - _query_params.append(('beforeCommentId', before_comment_id)) + _query_params.append(('sso', sso)) # process the header parameters # process the form parameters @@ -3967,7 +9298,7 @@ def _get_comments_public_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/comments/{tenantId}', + resource_path='/user-notifications/get-count', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3984,13 +9315,20 @@ def _get_comments_public_serialize( @validate_call - def get_event_log( + def get_user_notifications( self, tenant_id: StrictStr, - url_id: StrictStr, - user_id_ws: StrictStr, - start_time: StrictInt, - end_time: StrictInt, + url_id: Annotated[Optional[StrictStr], Field(description="Used to determine whether the current page is subscribed.")] = None, + page_size: Optional[StrictInt] = None, + after_id: Optional[StrictStr] = None, + include_context: Optional[StrictBool] = None, + after_created_at: Optional[StrictInt] = None, + unread_only: Optional[StrictBool] = None, + dm_only: Optional[StrictBool] = None, + no_dm: Optional[StrictBool] = None, + include_translations: Optional[StrictBool] = None, + include_tenant_notifications: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4003,21 +9341,34 @@ def get_event_log( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetEventLog200Response: - """get_event_log + ) -> GetMyNotificationsResponse: + """get_user_notifications - req tenantId urlId userIdWS :param tenant_id: (required) :type tenant_id: str - :param url_id: (required) + :param url_id: Used to determine whether the current page is subscribed. :type url_id: str - :param user_id_ws: (required) - :type user_id_ws: str - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int + :param page_size: + :type page_size: int + :param after_id: + :type after_id: str + :param include_context: + :type include_context: bool + :param after_created_at: + :type after_created_at: int + :param unread_only: + :type unread_only: bool + :param dm_only: + :type dm_only: bool + :param no_dm: + :type no_dm: bool + :param include_translations: + :type include_translations: bool + :param include_tenant_notifications: + :type include_tenant_notifications: bool + :param sso: + :type sso: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4040,12 +9391,19 @@ def get_event_log( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_log_serialize( + _param = self._get_user_notifications_serialize( tenant_id=tenant_id, url_id=url_id, - user_id_ws=user_id_ws, - start_time=start_time, - end_time=end_time, + page_size=page_size, + after_id=after_id, + include_context=include_context, + after_created_at=after_created_at, + unread_only=unread_only, + dm_only=dm_only, + no_dm=no_dm, + include_translations=include_translations, + include_tenant_notifications=include_tenant_notifications, + sso=sso, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4053,7 +9411,7 @@ def get_event_log( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEventLog200Response", + '200': "GetMyNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -4067,13 +9425,20 @@ def get_event_log( @validate_call - def get_event_log_with_http_info( + def get_user_notifications_with_http_info( self, tenant_id: StrictStr, - url_id: StrictStr, - user_id_ws: StrictStr, - start_time: StrictInt, - end_time: StrictInt, + url_id: Annotated[Optional[StrictStr], Field(description="Used to determine whether the current page is subscribed.")] = None, + page_size: Optional[StrictInt] = None, + after_id: Optional[StrictStr] = None, + include_context: Optional[StrictBool] = None, + after_created_at: Optional[StrictInt] = None, + unread_only: Optional[StrictBool] = None, + dm_only: Optional[StrictBool] = None, + no_dm: Optional[StrictBool] = None, + include_translations: Optional[StrictBool] = None, + include_tenant_notifications: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4086,21 +9451,34 @@ def get_event_log_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetEventLog200Response]: - """get_event_log + ) -> ApiResponse[GetMyNotificationsResponse]: + """get_user_notifications - req tenantId urlId userIdWS :param tenant_id: (required) :type tenant_id: str - :param url_id: (required) + :param url_id: Used to determine whether the current page is subscribed. :type url_id: str - :param user_id_ws: (required) - :type user_id_ws: str - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int + :param page_size: + :type page_size: int + :param after_id: + :type after_id: str + :param include_context: + :type include_context: bool + :param after_created_at: + :type after_created_at: int + :param unread_only: + :type unread_only: bool + :param dm_only: + :type dm_only: bool + :param no_dm: + :type no_dm: bool + :param include_translations: + :type include_translations: bool + :param include_tenant_notifications: + :type include_tenant_notifications: bool + :param sso: + :type sso: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4123,12 +9501,19 @@ def get_event_log_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_log_serialize( + _param = self._get_user_notifications_serialize( tenant_id=tenant_id, url_id=url_id, - user_id_ws=user_id_ws, - start_time=start_time, - end_time=end_time, + page_size=page_size, + after_id=after_id, + include_context=include_context, + after_created_at=after_created_at, + unread_only=unread_only, + dm_only=dm_only, + no_dm=no_dm, + include_translations=include_translations, + include_tenant_notifications=include_tenant_notifications, + sso=sso, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4136,7 +9521,7 @@ def get_event_log_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEventLog200Response", + '200': "GetMyNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -4150,13 +9535,20 @@ def get_event_log_with_http_info( @validate_call - def get_event_log_without_preload_content( + def get_user_notifications_without_preload_content( self, tenant_id: StrictStr, - url_id: StrictStr, - user_id_ws: StrictStr, - start_time: StrictInt, - end_time: StrictInt, + url_id: Annotated[Optional[StrictStr], Field(description="Used to determine whether the current page is subscribed.")] = None, + page_size: Optional[StrictInt] = None, + after_id: Optional[StrictStr] = None, + include_context: Optional[StrictBool] = None, + after_created_at: Optional[StrictInt] = None, + unread_only: Optional[StrictBool] = None, + dm_only: Optional[StrictBool] = None, + no_dm: Optional[StrictBool] = None, + include_translations: Optional[StrictBool] = None, + include_tenant_notifications: Optional[StrictBool] = None, + sso: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4170,20 +9562,33 @@ def get_event_log_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_event_log + """get_user_notifications - req tenantId urlId userIdWS :param tenant_id: (required) :type tenant_id: str - :param url_id: (required) + :param url_id: Used to determine whether the current page is subscribed. :type url_id: str - :param user_id_ws: (required) - :type user_id_ws: str - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int + :param page_size: + :type page_size: int + :param after_id: + :type after_id: str + :param include_context: + :type include_context: bool + :param after_created_at: + :type after_created_at: int + :param unread_only: + :type unread_only: bool + :param dm_only: + :type dm_only: bool + :param no_dm: + :type no_dm: bool + :param include_translations: + :type include_translations: bool + :param include_tenant_notifications: + :type include_tenant_notifications: bool + :param sso: + :type sso: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4206,12 +9611,19 @@ def get_event_log_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_event_log_serialize( + _param = self._get_user_notifications_serialize( tenant_id=tenant_id, url_id=url_id, - user_id_ws=user_id_ws, - start_time=start_time, - end_time=end_time, + page_size=page_size, + after_id=after_id, + include_context=include_context, + after_created_at=after_created_at, + unread_only=unread_only, + dm_only=dm_only, + no_dm=no_dm, + include_translations=include_translations, + include_tenant_notifications=include_tenant_notifications, + sso=sso, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4219,7 +9631,7 @@ def get_event_log_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEventLog200Response", + '200': "GetMyNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -4228,13 +9640,20 @@ def get_event_log_without_preload_content( return response_data.response - def _get_event_log_serialize( + def _get_user_notifications_serialize( self, tenant_id, url_id, - user_id_ws, - start_time, - end_time, + page_size, + after_id, + include_context, + after_created_at, + unread_only, + dm_only, + no_dm, + include_translations, + include_tenant_notifications, + sso, _request_auth, _content_type, _headers, @@ -4256,24 +9675,54 @@ def _get_event_log_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tenant_id is not None: - _path_params['tenantId'] = tenant_id # process the query parameters + if tenant_id is not None: + + _query_params.append(('tenantId', tenant_id)) + if url_id is not None: _query_params.append(('urlId', url_id)) - if user_id_ws is not None: + if page_size is not None: - _query_params.append(('userIdWS', user_id_ws)) + _query_params.append(('pageSize', page_size)) - if start_time is not None: + if after_id is not None: - _query_params.append(('startTime', start_time)) + _query_params.append(('afterId', after_id)) - if end_time is not None: + if include_context is not None: - _query_params.append(('endTime', end_time)) + _query_params.append(('includeContext', include_context)) + + if after_created_at is not None: + + _query_params.append(('afterCreatedAt', after_created_at)) + + if unread_only is not None: + + _query_params.append(('unreadOnly', unread_only)) + + if dm_only is not None: + + _query_params.append(('dmOnly', dm_only)) + + if no_dm is not None: + + _query_params.append(('noDm', no_dm)) + + if include_translations is not None: + + _query_params.append(('includeTranslations', include_translations)) + + if include_tenant_notifications is not None: + + _query_params.append(('includeTenantNotifications', include_tenant_notifications)) + + if sso is not None: + + _query_params.append(('sso', sso)) # process the header parameters # process the form parameters @@ -4295,7 +9744,7 @@ def _get_event_log_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/event-log/{tenantId}', + resource_path='/user-notifications', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4312,15 +9761,11 @@ def _get_event_log_serialize( @validate_call - def get_feed_posts_public( + def get_user_presence_statuses( self, tenant_id: StrictStr, - after_id: Optional[StrictStr] = None, - limit: Optional[StrictInt] = None, - tags: Optional[List[StrictStr]] = None, - sso: Optional[StrictStr] = None, - is_crawler: Optional[StrictBool] = None, - include_user_info: Optional[StrictBool] = None, + url_id_ws: StrictStr, + user_ids: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4333,25 +9778,16 @@ def get_feed_posts_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetFeedPostsPublic200Response: - """get_feed_posts_public + ) -> GetUserPresenceStatusesResponse: + """get_user_presence_statuses - req tenantId afterId :param tenant_id: (required) :type tenant_id: str - :param after_id: - :type after_id: str - :param limit: - :type limit: int - :param tags: - :type tags: List[str] - :param sso: - :type sso: str - :param is_crawler: - :type is_crawler: bool - :param include_user_info: - :type include_user_info: bool + :param url_id_ws: (required) + :type url_id_ws: str + :param user_ids: (required) + :type user_ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4374,14 +9810,10 @@ def get_feed_posts_public( :return: Returns the result object. """ # noqa: E501 - _param = self._get_feed_posts_public_serialize( + _param = self._get_user_presence_statuses_serialize( tenant_id=tenant_id, - after_id=after_id, - limit=limit, - tags=tags, - sso=sso, - is_crawler=is_crawler, - include_user_info=include_user_info, + url_id_ws=url_id_ws, + user_ids=user_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4389,7 +9821,8 @@ def get_feed_posts_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPostsPublic200Response", + '200': "GetUserPresenceStatusesResponse", + '422': "APIError", } response_data = self.api_client.call_api( *_param, @@ -4403,15 +9836,11 @@ def get_feed_posts_public( @validate_call - def get_feed_posts_public_with_http_info( + def get_user_presence_statuses_with_http_info( self, tenant_id: StrictStr, - after_id: Optional[StrictStr] = None, - limit: Optional[StrictInt] = None, - tags: Optional[List[StrictStr]] = None, - sso: Optional[StrictStr] = None, - is_crawler: Optional[StrictBool] = None, - include_user_info: Optional[StrictBool] = None, + url_id_ws: StrictStr, + user_ids: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4424,25 +9853,16 @@ def get_feed_posts_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetFeedPostsPublic200Response]: - """get_feed_posts_public + ) -> ApiResponse[GetUserPresenceStatusesResponse]: + """get_user_presence_statuses - req tenantId afterId :param tenant_id: (required) :type tenant_id: str - :param after_id: - :type after_id: str - :param limit: - :type limit: int - :param tags: - :type tags: List[str] - :param sso: - :type sso: str - :param is_crawler: - :type is_crawler: bool - :param include_user_info: - :type include_user_info: bool + :param url_id_ws: (required) + :type url_id_ws: str + :param user_ids: (required) + :type user_ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4465,14 +9885,10 @@ def get_feed_posts_public_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_feed_posts_public_serialize( + _param = self._get_user_presence_statuses_serialize( tenant_id=tenant_id, - after_id=after_id, - limit=limit, - tags=tags, - sso=sso, - is_crawler=is_crawler, - include_user_info=include_user_info, + url_id_ws=url_id_ws, + user_ids=user_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4480,7 +9896,8 @@ def get_feed_posts_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPostsPublic200Response", + '200': "GetUserPresenceStatusesResponse", + '422': "APIError", } response_data = self.api_client.call_api( *_param, @@ -4494,15 +9911,11 @@ def get_feed_posts_public_with_http_info( @validate_call - def get_feed_posts_public_without_preload_content( + def get_user_presence_statuses_without_preload_content( self, tenant_id: StrictStr, - after_id: Optional[StrictStr] = None, - limit: Optional[StrictInt] = None, - tags: Optional[List[StrictStr]] = None, - sso: Optional[StrictStr] = None, - is_crawler: Optional[StrictBool] = None, - include_user_info: Optional[StrictBool] = None, + url_id_ws: StrictStr, + user_ids: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4516,24 +9929,15 @@ def get_feed_posts_public_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_feed_posts_public + """get_user_presence_statuses - req tenantId afterId :param tenant_id: (required) :type tenant_id: str - :param after_id: - :type after_id: str - :param limit: - :type limit: int - :param tags: - :type tags: List[str] - :param sso: - :type sso: str - :param is_crawler: - :type is_crawler: bool - :param include_user_info: - :type include_user_info: bool + :param url_id_ws: (required) + :type url_id_ws: str + :param user_ids: (required) + :type user_ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -4556,14 +9960,10 @@ def get_feed_posts_public_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_feed_posts_public_serialize( + _param = self._get_user_presence_statuses_serialize( tenant_id=tenant_id, - after_id=after_id, - limit=limit, - tags=tags, - sso=sso, - is_crawler=is_crawler, - include_user_info=include_user_info, + url_id_ws=url_id_ws, + user_ids=user_ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -4571,7 +9971,8 @@ def get_feed_posts_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPostsPublic200Response", + '200': "GetUserPresenceStatusesResponse", + '422': "APIError", } response_data = self.api_client.call_api( *_param, @@ -4580,15 +9981,11 @@ def get_feed_posts_public_without_preload_content( return response_data.response - def _get_feed_posts_public_serialize( + def _get_user_presence_statuses_serialize( self, tenant_id, - after_id, - limit, - tags, - sso, - is_crawler, - include_user_info, + url_id_ws, + user_ids, _request_auth, _content_type, _headers, @@ -4598,7 +9995,6 @@ def _get_feed_posts_public_serialize( _host = None _collection_formats: Dict[str, str] = { - 'tags': 'multi', } _path_params: Dict[str, str] = {} @@ -4611,32 +10007,18 @@ def _get_feed_posts_public_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tenant_id is not None: - _path_params['tenantId'] = tenant_id # process the query parameters - if after_id is not None: - - _query_params.append(('afterId', after_id)) - - if limit is not None: - - _query_params.append(('limit', limit)) - - if tags is not None: - - _query_params.append(('tags', tags)) - - if sso is not None: + if tenant_id is not None: - _query_params.append(('sso', sso)) + _query_params.append(('tenantId', tenant_id)) - if is_crawler is not None: + if url_id_ws is not None: - _query_params.append(('isCrawler', is_crawler)) + _query_params.append(('urlIdWS', url_id_ws)) - if include_user_info is not None: + if user_ids is not None: - _query_params.append(('includeUserInfo', include_user_info)) + _query_params.append(('userIds', user_ids)) # process the header parameters # process the form parameters @@ -4658,7 +10040,7 @@ def _get_feed_posts_public_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/feed-posts/{tenantId}', + resource_path='/user-presence-status', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4675,10 +10057,10 @@ def _get_feed_posts_public_serialize( @validate_call - def get_feed_posts_stats( + def get_user_reacts_public( self, tenant_id: StrictStr, - post_ids: List[StrictStr], + post_ids: Optional[List[StrictStr]] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4692,13 +10074,13 @@ def get_feed_posts_stats( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetFeedPostsStats200Response: - """get_feed_posts_stats + ) -> UserReactsResponse: + """get_user_reacts_public :param tenant_id: (required) :type tenant_id: str - :param post_ids: (required) + :param post_ids: :type post_ids: List[str] :param sso: :type sso: str @@ -4724,7 +10106,7 @@ def get_feed_posts_stats( :return: Returns the result object. """ # noqa: E501 - _param = self._get_feed_posts_stats_serialize( + _param = self._get_user_reacts_public_serialize( tenant_id=tenant_id, post_ids=post_ids, sso=sso, @@ -4735,7 +10117,7 @@ def get_feed_posts_stats( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPostsStats200Response", + '200': "UserReactsResponse", } response_data = self.api_client.call_api( *_param, @@ -4749,10 +10131,10 @@ def get_feed_posts_stats( @validate_call - def get_feed_posts_stats_with_http_info( + def get_user_reacts_public_with_http_info( self, tenant_id: StrictStr, - post_ids: List[StrictStr], + post_ids: Optional[List[StrictStr]] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4766,13 +10148,13 @@ def get_feed_posts_stats_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetFeedPostsStats200Response]: - """get_feed_posts_stats + ) -> ApiResponse[UserReactsResponse]: + """get_user_reacts_public :param tenant_id: (required) :type tenant_id: str - :param post_ids: (required) + :param post_ids: :type post_ids: List[str] :param sso: :type sso: str @@ -4798,7 +10180,7 @@ def get_feed_posts_stats_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_feed_posts_stats_serialize( + _param = self._get_user_reacts_public_serialize( tenant_id=tenant_id, post_ids=post_ids, sso=sso, @@ -4809,7 +10191,7 @@ def get_feed_posts_stats_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPostsStats200Response", + '200': "UserReactsResponse", } response_data = self.api_client.call_api( *_param, @@ -4823,10 +10205,10 @@ def get_feed_posts_stats_with_http_info( @validate_call - def get_feed_posts_stats_without_preload_content( + def get_user_reacts_public_without_preload_content( self, tenant_id: StrictStr, - post_ids: List[StrictStr], + post_ids: Optional[List[StrictStr]] = None, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -4841,12 +10223,12 @@ def get_feed_posts_stats_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_feed_posts_stats + """get_user_reacts_public :param tenant_id: (required) :type tenant_id: str - :param post_ids: (required) + :param post_ids: :type post_ids: List[str] :param sso: :type sso: str @@ -4872,7 +10254,7 @@ def get_feed_posts_stats_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_feed_posts_stats_serialize( + _param = self._get_user_reacts_public_serialize( tenant_id=tenant_id, post_ids=post_ids, sso=sso, @@ -4883,7 +10265,7 @@ def get_feed_posts_stats_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetFeedPostsStats200Response", + '200': "UserReactsResponse", } response_data = self.api_client.call_api( *_param, @@ -4892,7 +10274,7 @@ def get_feed_posts_stats_without_preload_content( return response_data.response - def _get_feed_posts_stats_serialize( + def _get_user_reacts_public_serialize( self, tenant_id, post_ids, @@ -4950,7 +10332,7 @@ def _get_feed_posts_stats_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/feed-posts/{tenantId}/stats', + resource_path='/feed-posts/{tenantId}/user-reacts', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4967,13 +10349,10 @@ def _get_feed_posts_stats_serialize( @validate_call - def get_global_event_log( + def get_users_info( self, tenant_id: StrictStr, - url_id: StrictStr, - user_id_ws: StrictStr, - start_time: StrictInt, - end_time: StrictInt, + ids: Annotated[StrictStr, Field(description="Comma-delimited userIds.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -4984,23 +10363,17 @@ def get_global_event_log( ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, - _headers: Optional[Dict[StrictStr, Any]] = None, - _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetEventLog200Response: - """get_global_event_log - - req tenantId urlId userIdWS - - :param tenant_id: (required) - :type tenant_id: str - :param url_id: (required) - :type url_id: str - :param user_id_ws: (required) - :type user_id_ws: str - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> PageUsersInfoResponse: + """get_users_info + + 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). + + :param tenant_id: (required) + :type tenant_id: str + :param ids: Comma-delimited userIds. (required) + :type ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5023,12 +10396,9 @@ def get_global_event_log( :return: Returns the result object. """ # noqa: E501 - _param = self._get_global_event_log_serialize( + _param = self._get_users_info_serialize( tenant_id=tenant_id, - url_id=url_id, - user_id_ws=user_id_ws, - start_time=start_time, - end_time=end_time, + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5036,7 +10406,8 @@ def get_global_event_log( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEventLog200Response", + '200': "PageUsersInfoResponse", + '422': "APIError", } response_data = self.api_client.call_api( *_param, @@ -5050,13 +10421,10 @@ def get_global_event_log( @validate_call - def get_global_event_log_with_http_info( + def get_users_info_with_http_info( self, tenant_id: StrictStr, - url_id: StrictStr, - user_id_ws: StrictStr, - start_time: StrictInt, - end_time: StrictInt, + ids: Annotated[StrictStr, Field(description="Comma-delimited userIds.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5069,21 +10437,15 @@ def get_global_event_log_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetEventLog200Response]: - """get_global_event_log + ) -> ApiResponse[PageUsersInfoResponse]: + """get_users_info - req tenantId urlId userIdWS + 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). :param tenant_id: (required) :type tenant_id: str - :param url_id: (required) - :type url_id: str - :param user_id_ws: (required) - :type user_id_ws: str - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int + :param ids: Comma-delimited userIds. (required) + :type ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5106,12 +10468,9 @@ def get_global_event_log_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_global_event_log_serialize( + _param = self._get_users_info_serialize( tenant_id=tenant_id, - url_id=url_id, - user_id_ws=user_id_ws, - start_time=start_time, - end_time=end_time, + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5119,7 +10478,8 @@ def get_global_event_log_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEventLog200Response", + '200': "PageUsersInfoResponse", + '422': "APIError", } response_data = self.api_client.call_api( *_param, @@ -5133,13 +10493,10 @@ def get_global_event_log_with_http_info( @validate_call - def get_global_event_log_without_preload_content( + def get_users_info_without_preload_content( self, tenant_id: StrictStr, - url_id: StrictStr, - user_id_ws: StrictStr, - start_time: StrictInt, - end_time: StrictInt, + ids: Annotated[StrictStr, Field(description="Comma-delimited userIds.")], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5153,20 +10510,14 @@ def get_global_event_log_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_global_event_log + """get_users_info - req tenantId urlId userIdWS + 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). :param tenant_id: (required) :type tenant_id: str - :param url_id: (required) - :type url_id: str - :param user_id_ws: (required) - :type user_id_ws: str - :param start_time: (required) - :type start_time: int - :param end_time: (required) - :type end_time: int + :param ids: Comma-delimited userIds. (required) + :type ids: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5189,12 +10540,9 @@ def get_global_event_log_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_global_event_log_serialize( + _param = self._get_users_info_serialize( tenant_id=tenant_id, - url_id=url_id, - user_id_ws=user_id_ws, - start_time=start_time, - end_time=end_time, + ids=ids, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5202,7 +10550,8 @@ def get_global_event_log_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetEventLog200Response", + '200': "PageUsersInfoResponse", + '422': "APIError", } response_data = self.api_client.call_api( *_param, @@ -5211,13 +10560,10 @@ def get_global_event_log_without_preload_content( return response_data.response - def _get_global_event_log_serialize( + def _get_users_info_serialize( self, tenant_id, - url_id, - user_id_ws, - start_time, - end_time, + ids, _request_auth, _content_type, _headers, @@ -5242,21 +10588,9 @@ def _get_global_event_log_serialize( if tenant_id is not None: _path_params['tenantId'] = tenant_id # process the query parameters - if url_id is not None: - - _query_params.append(('urlId', url_id)) - - if user_id_ws is not None: - - _query_params.append(('userIdWS', user_id_ws)) - - if start_time is not None: + if ids is not None: - _query_params.append(('startTime', start_time)) - - if end_time is not None: - - _query_params.append(('endTime', end_time)) + _query_params.append(('ids', ids)) # process the header parameters # process the form parameters @@ -5278,7 +10612,7 @@ def _get_global_event_log_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/event-log/global/{tenantId}', + resource_path='/pages/{tenantId}/users/info', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5295,10 +10629,10 @@ def _get_global_event_log_serialize( @validate_call - def get_user_notification_count( + def get_v1_page_likes( self, tenant_id: StrictStr, - sso: Optional[StrictStr] = None, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5311,14 +10645,14 @@ def get_user_notification_count( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserNotificationCount200Response: - """get_user_notification_count + ) -> GetV1PageLikes: + """get_v1_page_likes :param tenant_id: (required) :type tenant_id: str - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5341,9 +10675,9 @@ def get_user_notification_count( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_notification_count_serialize( + _param = self._get_v1_page_likes_serialize( tenant_id=tenant_id, - sso=sso, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5351,7 +10685,7 @@ def get_user_notification_count( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserNotificationCount200Response", + '200': "GetV1PageLikes", } response_data = self.api_client.call_api( *_param, @@ -5365,10 +10699,10 @@ def get_user_notification_count( @validate_call - def get_user_notification_count_with_http_info( + def get_v1_page_likes_with_http_info( self, tenant_id: StrictStr, - sso: Optional[StrictStr] = None, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5381,14 +10715,14 @@ def get_user_notification_count_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserNotificationCount200Response]: - """get_user_notification_count + ) -> ApiResponse[GetV1PageLikes]: + """get_v1_page_likes :param tenant_id: (required) :type tenant_id: str - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5411,9 +10745,9 @@ def get_user_notification_count_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_notification_count_serialize( + _param = self._get_v1_page_likes_serialize( tenant_id=tenant_id, - sso=sso, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5421,7 +10755,7 @@ def get_user_notification_count_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserNotificationCount200Response", + '200': "GetV1PageLikes", } response_data = self.api_client.call_api( *_param, @@ -5435,10 +10769,10 @@ def get_user_notification_count_with_http_info( @validate_call - def get_user_notification_count_without_preload_content( + def get_v1_page_likes_without_preload_content( self, tenant_id: StrictStr, - sso: Optional[StrictStr] = None, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5452,13 +10786,13 @@ def get_user_notification_count_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_user_notification_count + """get_v1_page_likes :param tenant_id: (required) :type tenant_id: str - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5481,9 +10815,9 @@ def get_user_notification_count_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_notification_count_serialize( + _param = self._get_v1_page_likes_serialize( tenant_id=tenant_id, - sso=sso, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5491,7 +10825,7 @@ def get_user_notification_count_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserNotificationCount200Response", + '200': "GetV1PageLikes", } response_data = self.api_client.call_api( *_param, @@ -5500,10 +10834,10 @@ def get_user_notification_count_without_preload_content( return response_data.response - def _get_user_notification_count_serialize( + def _get_v1_page_likes_serialize( self, tenant_id, - sso, + url_id, _request_auth, _content_type, _headers, @@ -5525,14 +10859,12 @@ def _get_user_notification_count_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if url_id is not None: - _query_params.append(('tenantId', tenant_id)) - - if sso is not None: - - _query_params.append(('sso', sso)) + _query_params.append(('urlId', url_id)) # process the header parameters # process the form parameters @@ -5554,7 +10886,7 @@ def _get_user_notification_count_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/user-notifications/get-count', + resource_path='/page-reacts/v1/likes/{tenantId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5571,18 +10903,11 @@ def _get_user_notification_count_serialize( @validate_call - def get_user_notifications( + def get_v2_page_react_users( self, tenant_id: StrictStr, - page_size: Optional[StrictInt] = None, - after_id: Optional[StrictStr] = None, - include_context: Optional[StrictBool] = None, - after_created_at: Optional[StrictInt] = None, - unread_only: Optional[StrictBool] = None, - dm_only: Optional[StrictBool] = None, - no_dm: Optional[StrictBool] = None, - include_translations: Optional[StrictBool] = None, - sso: Optional[StrictStr] = None, + url_id: StrictStr, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5595,30 +10920,16 @@ def get_user_notifications( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserNotifications200Response: - """get_user_notifications + ) -> GetV2PageReactUsersResponse: + """get_v2_page_react_users :param tenant_id: (required) :type tenant_id: str - :param page_size: - :type page_size: int - :param after_id: - :type after_id: str - :param include_context: - :type include_context: bool - :param after_created_at: - :type after_created_at: int - :param unread_only: - :type unread_only: bool - :param dm_only: - :type dm_only: bool - :param no_dm: - :type no_dm: bool - :param include_translations: - :type include_translations: bool - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5641,17 +10952,10 @@ def get_user_notifications( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_notifications_serialize( + _param = self._get_v2_page_react_users_serialize( tenant_id=tenant_id, - page_size=page_size, - after_id=after_id, - include_context=include_context, - after_created_at=after_created_at, - unread_only=unread_only, - dm_only=dm_only, - no_dm=no_dm, - include_translations=include_translations, - sso=sso, + url_id=url_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5659,7 +10963,7 @@ def get_user_notifications( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserNotifications200Response", + '200': "GetV2PageReactUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -5673,18 +10977,11 @@ def get_user_notifications( @validate_call - def get_user_notifications_with_http_info( + def get_v2_page_react_users_with_http_info( self, tenant_id: StrictStr, - page_size: Optional[StrictInt] = None, - after_id: Optional[StrictStr] = None, - include_context: Optional[StrictBool] = None, - after_created_at: Optional[StrictInt] = None, - unread_only: Optional[StrictBool] = None, - dm_only: Optional[StrictBool] = None, - no_dm: Optional[StrictBool] = None, - include_translations: Optional[StrictBool] = None, - sso: Optional[StrictStr] = None, + url_id: StrictStr, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5697,30 +10994,16 @@ def get_user_notifications_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserNotifications200Response]: - """get_user_notifications + ) -> ApiResponse[GetV2PageReactUsersResponse]: + """get_v2_page_react_users :param tenant_id: (required) :type tenant_id: str - :param page_size: - :type page_size: int - :param after_id: - :type after_id: str - :param include_context: - :type include_context: bool - :param after_created_at: - :type after_created_at: int - :param unread_only: - :type unread_only: bool - :param dm_only: - :type dm_only: bool - :param no_dm: - :type no_dm: bool - :param include_translations: - :type include_translations: bool - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5743,17 +11026,10 @@ def get_user_notifications_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_notifications_serialize( + _param = self._get_v2_page_react_users_serialize( tenant_id=tenant_id, - page_size=page_size, - after_id=after_id, - include_context=include_context, - after_created_at=after_created_at, - unread_only=unread_only, - dm_only=dm_only, - no_dm=no_dm, - include_translations=include_translations, - sso=sso, + url_id=url_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5761,7 +11037,7 @@ def get_user_notifications_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserNotifications200Response", + '200': "GetV2PageReactUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -5775,18 +11051,11 @@ def get_user_notifications_with_http_info( @validate_call - def get_user_notifications_without_preload_content( + def get_v2_page_react_users_without_preload_content( self, tenant_id: StrictStr, - page_size: Optional[StrictInt] = None, - after_id: Optional[StrictStr] = None, - include_context: Optional[StrictBool] = None, - after_created_at: Optional[StrictInt] = None, - unread_only: Optional[StrictBool] = None, - dm_only: Optional[StrictBool] = None, - no_dm: Optional[StrictBool] = None, - include_translations: Optional[StrictBool] = None, - sso: Optional[StrictStr] = None, + url_id: StrictStr, + id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -5800,29 +11069,15 @@ def get_user_notifications_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_user_notifications + """get_v2_page_react_users :param tenant_id: (required) :type tenant_id: str - :param page_size: - :type page_size: int - :param after_id: - :type after_id: str - :param include_context: - :type include_context: bool - :param after_created_at: - :type after_created_at: int - :param unread_only: - :type unread_only: bool - :param dm_only: - :type dm_only: bool - :param no_dm: - :type no_dm: bool - :param include_translations: - :type include_translations: bool - :param sso: - :type sso: str + :param url_id: (required) + :type url_id: str + :param id: (required) + :type id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -5845,17 +11100,10 @@ def get_user_notifications_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_notifications_serialize( + _param = self._get_v2_page_react_users_serialize( tenant_id=tenant_id, - page_size=page_size, - after_id=after_id, - include_context=include_context, - after_created_at=after_created_at, - unread_only=unread_only, - dm_only=dm_only, - no_dm=no_dm, - include_translations=include_translations, - sso=sso, + url_id=url_id, + id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -5863,7 +11111,7 @@ def get_user_notifications_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserNotifications200Response", + '200': "GetV2PageReactUsersResponse", } response_data = self.api_client.call_api( *_param, @@ -5872,18 +11120,11 @@ def get_user_notifications_without_preload_content( return response_data.response - def _get_user_notifications_serialize( + def _get_v2_page_react_users_serialize( self, tenant_id, - page_size, - after_id, - include_context, - after_created_at, - unread_only, - dm_only, - no_dm, - include_translations, - sso, + url_id, + id, _request_auth, _content_type, _headers, @@ -5905,46 +11146,16 @@ def _get_user_notifications_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if url_id is not None: - _query_params.append(('tenantId', tenant_id)) - - if page_size is not None: - - _query_params.append(('pageSize', page_size)) - - if after_id is not None: - - _query_params.append(('afterId', after_id)) - - if include_context is not None: - - _query_params.append(('includeContext', include_context)) - - if after_created_at is not None: - - _query_params.append(('afterCreatedAt', after_created_at)) - - if unread_only is not None: - - _query_params.append(('unreadOnly', unread_only)) - - if dm_only is not None: - - _query_params.append(('dmOnly', dm_only)) - - if no_dm is not None: - - _query_params.append(('noDm', no_dm)) - - if include_translations is not None: - - _query_params.append(('includeTranslations', include_translations)) + _query_params.append(('urlId', url_id)) - if sso is not None: + if id is not None: - _query_params.append(('sso', sso)) + _query_params.append(('id', id)) # process the header parameters # process the form parameters @@ -5966,7 +11177,7 @@ def _get_user_notifications_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/user-notifications', + resource_path='/page-reacts/v2/{tenantId}/list', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5983,11 +11194,10 @@ def _get_user_notifications_serialize( @validate_call - def get_user_presence_statuses( + def get_v2_page_reacts( self, tenant_id: StrictStr, - url_id_ws: StrictStr, - user_ids: StrictStr, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6000,16 +11210,14 @@ def get_user_presence_statuses( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserPresenceStatuses200Response: - """get_user_presence_statuses + ) -> GetV2PageReacts: + """get_v2_page_reacts :param tenant_id: (required) :type tenant_id: str - :param url_id_ws: (required) - :type url_id_ws: str - :param user_ids: (required) - :type user_ids: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6032,10 +11240,9 @@ def get_user_presence_statuses( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_presence_statuses_serialize( + _param = self._get_v2_page_reacts_serialize( tenant_id=tenant_id, - url_id_ws=url_id_ws, - user_ids=user_ids, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6043,8 +11250,7 @@ def get_user_presence_statuses( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserPresenceStatuses200Response", - '422': "APIError", + '200': "GetV2PageReacts", } response_data = self.api_client.call_api( *_param, @@ -6058,11 +11264,10 @@ def get_user_presence_statuses( @validate_call - def get_user_presence_statuses_with_http_info( + def get_v2_page_reacts_with_http_info( self, tenant_id: StrictStr, - url_id_ws: StrictStr, - user_ids: StrictStr, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6075,16 +11280,14 @@ def get_user_presence_statuses_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserPresenceStatuses200Response]: - """get_user_presence_statuses + ) -> ApiResponse[GetV2PageReacts]: + """get_v2_page_reacts :param tenant_id: (required) :type tenant_id: str - :param url_id_ws: (required) - :type url_id_ws: str - :param user_ids: (required) - :type user_ids: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6107,10 +11310,9 @@ def get_user_presence_statuses_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_presence_statuses_serialize( + _param = self._get_v2_page_reacts_serialize( tenant_id=tenant_id, - url_id_ws=url_id_ws, - user_ids=user_ids, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6118,8 +11320,7 @@ def get_user_presence_statuses_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserPresenceStatuses200Response", - '422': "APIError", + '200': "GetV2PageReacts", } response_data = self.api_client.call_api( *_param, @@ -6133,11 +11334,10 @@ def get_user_presence_statuses_with_http_info( @validate_call - def get_user_presence_statuses_without_preload_content( + def get_v2_page_reacts_without_preload_content( self, tenant_id: StrictStr, - url_id_ws: StrictStr, - user_ids: StrictStr, + url_id: StrictStr, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6151,15 +11351,13 @@ def get_user_presence_statuses_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_user_presence_statuses + """get_v2_page_reacts :param tenant_id: (required) :type tenant_id: str - :param url_id_ws: (required) - :type url_id_ws: str - :param user_ids: (required) - :type user_ids: str + :param url_id: (required) + :type url_id: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6182,10 +11380,9 @@ def get_user_presence_statuses_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_presence_statuses_serialize( + _param = self._get_v2_page_reacts_serialize( tenant_id=tenant_id, - url_id_ws=url_id_ws, - user_ids=user_ids, + url_id=url_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6193,8 +11390,7 @@ def get_user_presence_statuses_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserPresenceStatuses200Response", - '422': "APIError", + '200': "GetV2PageReacts", } response_data = self.api_client.call_api( *_param, @@ -6203,11 +11399,10 @@ def get_user_presence_statuses_without_preload_content( return response_data.response - def _get_user_presence_statuses_serialize( + def _get_v2_page_reacts_serialize( self, tenant_id, - url_id_ws, - user_ids, + url_id, _request_auth, _content_type, _headers, @@ -6229,18 +11424,12 @@ def _get_user_presence_statuses_serialize( _body_params: Optional[bytes] = None # process the path parameters - # process the query parameters if tenant_id is not None: + _path_params['tenantId'] = tenant_id + # process the query parameters + if url_id is not None: - _query_params.append(('tenantId', tenant_id)) - - if url_id_ws is not None: - - _query_params.append(('urlIdWS', url_id_ws)) - - if user_ids is not None: - - _query_params.append(('userIds', user_ids)) + _query_params.append(('urlId', url_id)) # process the header parameters # process the form parameters @@ -6262,7 +11451,7 @@ def _get_user_presence_statuses_serialize( return self.api_client.param_serialize( method='GET', - resource_path='/user-presence-status', + resource_path='/page-reacts/v2/{tenantId}', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6279,10 +11468,11 @@ def _get_user_presence_statuses_serialize( @validate_call - def get_user_reacts_public( + def lock_comment( self, tenant_id: StrictStr, - post_ids: Optional[List[StrictStr]] = None, + comment_id: StrictStr, + broadcast_id: StrictStr, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -6296,14 +11486,16 @@ def get_user_reacts_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> GetUserReactsPublic200Response: - """get_user_reacts_public + ) -> APIEmptyResponse: + """lock_comment :param tenant_id: (required) :type tenant_id: str - :param post_ids: - :type post_ids: List[str] + :param comment_id: (required) + :type comment_id: str + :param broadcast_id: (required) + :type broadcast_id: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -6328,9 +11520,10 @@ def get_user_reacts_public( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_reacts_public_serialize( + _param = self._lock_comment_serialize( tenant_id=tenant_id, - post_ids=post_ids, + comment_id=comment_id, + broadcast_id=broadcast_id, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -6339,7 +11532,7 @@ def get_user_reacts_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserReactsPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -6353,10 +11546,11 @@ def get_user_reacts_public( @validate_call - def get_user_reacts_public_with_http_info( + def lock_comment_with_http_info( self, tenant_id: StrictStr, - post_ids: Optional[List[StrictStr]] = None, + comment_id: StrictStr, + broadcast_id: StrictStr, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -6370,14 +11564,16 @@ def get_user_reacts_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[GetUserReactsPublic200Response]: - """get_user_reacts_public + ) -> ApiResponse[APIEmptyResponse]: + """lock_comment :param tenant_id: (required) :type tenant_id: str - :param post_ids: - :type post_ids: List[str] + :param comment_id: (required) + :type comment_id: str + :param broadcast_id: (required) + :type broadcast_id: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -6402,9 +11598,10 @@ def get_user_reacts_public_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_reacts_public_serialize( + _param = self._lock_comment_serialize( tenant_id=tenant_id, - post_ids=post_ids, + comment_id=comment_id, + broadcast_id=broadcast_id, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -6413,7 +11610,7 @@ def get_user_reacts_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserReactsPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -6427,10 +11624,11 @@ def get_user_reacts_public_with_http_info( @validate_call - def get_user_reacts_public_without_preload_content( + def lock_comment_without_preload_content( self, tenant_id: StrictStr, - post_ids: Optional[List[StrictStr]] = None, + comment_id: StrictStr, + broadcast_id: StrictStr, sso: Optional[StrictStr] = None, _request_timeout: Union[ None, @@ -6445,13 +11643,15 @@ def get_user_reacts_public_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_user_reacts_public + """lock_comment :param tenant_id: (required) :type tenant_id: str - :param post_ids: - :type post_ids: List[str] + :param comment_id: (required) + :type comment_id: str + :param broadcast_id: (required) + :type broadcast_id: str :param sso: :type sso: str :param _request_timeout: timeout setting for this request. If one @@ -6476,9 +11676,10 @@ def get_user_reacts_public_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_reacts_public_serialize( + _param = self._lock_comment_serialize( tenant_id=tenant_id, - post_ids=post_ids, + comment_id=comment_id, + broadcast_id=broadcast_id, sso=sso, _request_auth=_request_auth, _content_type=_content_type, @@ -6487,7 +11688,7 @@ def get_user_reacts_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserReactsPublic200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -6496,10 +11697,11 @@ def get_user_reacts_public_without_preload_content( return response_data.response - def _get_user_reacts_public_serialize( + def _lock_comment_serialize( self, tenant_id, - post_ids, + comment_id, + broadcast_id, sso, _request_auth, _content_type, @@ -6510,7 +11712,6 @@ def _get_user_reacts_public_serialize( _host = None _collection_formats: Dict[str, str] = { - 'postIds': 'multi', } _path_params: Dict[str, str] = {} @@ -6525,10 +11726,12 @@ def _get_user_reacts_public_serialize( # process the path parameters if tenant_id is not None: _path_params['tenantId'] = tenant_id + if comment_id is not None: + _path_params['commentId'] = comment_id # process the query parameters - if post_ids is not None: + if broadcast_id is not None: - _query_params.append(('postIds', post_ids)) + _query_params.append(('broadcastId', broadcast_id)) if sso is not None: @@ -6553,8 +11756,8 @@ def _get_user_reacts_public_serialize( ] return self.api_client.param_serialize( - method='GET', - resource_path='/feed-posts/{tenantId}/user-reacts', + method='POST', + resource_path='/comments/{tenantId}/{commentId}/lock', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6571,12 +11774,8 @@ def _get_user_reacts_public_serialize( @validate_call - def lock_comment( + def logout_public( self, - tenant_id: StrictStr, - comment_id: StrictStr, - broadcast_id: StrictStr, - sso: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6589,18 +11788,10 @@ def lock_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> LockComment200Response: - """lock_comment + ) -> APIEmptyResponse: + """logout_public - :param tenant_id: (required) - :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param sso: - :type sso: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6623,11 +11814,7 @@ def lock_comment( :return: Returns the result object. """ # noqa: E501 - _param = self._lock_comment_serialize( - tenant_id=tenant_id, - comment_id=comment_id, - broadcast_id=broadcast_id, - sso=sso, + _param = self._logout_public_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6635,7 +11822,7 @@ def lock_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LockComment200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -6649,12 +11836,8 @@ def lock_comment( @validate_call - def lock_comment_with_http_info( + def logout_public_with_http_info( self, - tenant_id: StrictStr, - comment_id: StrictStr, - broadcast_id: StrictStr, - sso: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6667,18 +11850,10 @@ def lock_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[LockComment200Response]: - """lock_comment + ) -> ApiResponse[APIEmptyResponse]: + """logout_public - :param tenant_id: (required) - :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param sso: - :type sso: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6701,11 +11876,7 @@ def lock_comment_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._lock_comment_serialize( - tenant_id=tenant_id, - comment_id=comment_id, - broadcast_id=broadcast_id, - sso=sso, + _param = self._logout_public_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6713,7 +11884,7 @@ def lock_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LockComment200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -6727,12 +11898,8 @@ def lock_comment_with_http_info( @validate_call - def lock_comment_without_preload_content( + def logout_public_without_preload_content( self, - tenant_id: StrictStr, - comment_id: StrictStr, - broadcast_id: StrictStr, - sso: Optional[StrictStr] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], @@ -6746,17 +11913,9 @@ def lock_comment_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """lock_comment + """logout_public - :param tenant_id: (required) - :type tenant_id: str - :param comment_id: (required) - :type comment_id: str - :param broadcast_id: (required) - :type broadcast_id: str - :param sso: - :type sso: str :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of @@ -6779,11 +11938,7 @@ def lock_comment_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._lock_comment_serialize( - tenant_id=tenant_id, - comment_id=comment_id, - broadcast_id=broadcast_id, - sso=sso, + _param = self._logout_public_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, @@ -6791,7 +11946,7 @@ def lock_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LockComment200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -6800,12 +11955,8 @@ def lock_comment_without_preload_content( return response_data.response - def _lock_comment_serialize( + def _logout_public_serialize( self, - tenant_id, - comment_id, - broadcast_id, - sso, _request_auth, _content_type, _headers, @@ -6827,19 +11978,7 @@ def _lock_comment_serialize( _body_params: Optional[bytes] = None # process the path parameters - if tenant_id is not None: - _path_params['tenantId'] = tenant_id - if comment_id is not None: - _path_params['commentId'] = comment_id # process the query parameters - if broadcast_id is not None: - - _query_params.append(('broadcastId', broadcast_id)) - - if sso is not None: - - _query_params.append(('sso', sso)) - # process the header parameters # process the form parameters # process the body parameter @@ -6859,8 +11998,8 @@ def _lock_comment_serialize( ] return self.api_client.param_serialize( - method='POST', - resource_path='/comments/{tenantId}/{commentId}/lock', + method='PUT', + resource_path='/auth/logout', path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6895,7 +12034,7 @@ def pin_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PinComment200Response: + ) -> ChangeCommentPinStatusResponse: """pin_comment @@ -6941,7 +12080,7 @@ def pin_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PinComment200Response", + '200': "ChangeCommentPinStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -6973,7 +12112,7 @@ def pin_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PinComment200Response]: + ) -> ApiResponse[ChangeCommentPinStatusResponse]: """pin_comment @@ -7019,7 +12158,7 @@ def pin_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PinComment200Response", + '200': "ChangeCommentPinStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -7097,7 +12236,7 @@ def pin_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PinComment200Response", + '200': "ChangeCommentPinStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -7203,7 +12342,7 @@ def react_feed_post_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ReactFeedPostPublic200Response: + ) -> ReactFeedPostResponse: """react_feed_post_public @@ -7255,7 +12394,7 @@ def react_feed_post_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReactFeedPostPublic200Response", + '200': "ReactFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -7289,7 +12428,7 @@ def react_feed_post_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ReactFeedPostPublic200Response]: + ) -> ApiResponse[ReactFeedPostResponse]: """react_feed_post_public @@ -7341,7 +12480,7 @@ def react_feed_post_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReactFeedPostPublic200Response", + '200': "ReactFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -7427,7 +12566,7 @@ def react_feed_post_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ReactFeedPostPublic200Response", + '200': "ReactFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -7550,7 +12689,7 @@ def reset_user_notification_count( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResetUserNotifications200Response: + ) -> ResetUserNotificationsResponse: """reset_user_notification_count @@ -7590,7 +12729,7 @@ def reset_user_notification_count( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResetUserNotifications200Response", + '200': "ResetUserNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -7620,7 +12759,7 @@ def reset_user_notification_count_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResetUserNotifications200Response]: + ) -> ApiResponse[ResetUserNotificationsResponse]: """reset_user_notification_count @@ -7660,7 +12799,7 @@ def reset_user_notification_count_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResetUserNotifications200Response", + '200': "ResetUserNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -7730,7 +12869,7 @@ def reset_user_notification_count_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResetUserNotifications200Response", + '200': "ResetUserNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -7831,7 +12970,7 @@ def reset_user_notifications( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ResetUserNotifications200Response: + ) -> ResetUserNotificationsResponse: """reset_user_notifications @@ -7886,7 +13025,7 @@ def reset_user_notifications( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResetUserNotifications200Response", + '200': "ResetUserNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -7921,7 +13060,7 @@ def reset_user_notifications_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[ResetUserNotifications200Response]: + ) -> ApiResponse[ResetUserNotificationsResponse]: """reset_user_notifications @@ -7976,7 +13115,7 @@ def reset_user_notifications_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResetUserNotifications200Response", + '200': "ResetUserNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -8066,7 +13205,7 @@ def reset_user_notifications_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ResetUserNotifications200Response", + '200': "ResetUserNotificationsResponse", } response_data = self.api_client.call_api( *_param, @@ -8191,7 +13330,7 @@ def search_users( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SearchUsers200Response: + ) -> SearchUsersResult: """search_users @@ -8243,7 +13382,7 @@ def search_users( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchUsers200Response", + '200': "SearchUsersResult", } response_data = self.api_client.call_api( *_param, @@ -8277,7 +13416,7 @@ def search_users_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SearchUsers200Response]: + ) -> ApiResponse[SearchUsersResult]: """search_users @@ -8329,7 +13468,7 @@ def search_users_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchUsers200Response", + '200': "SearchUsersResult", } response_data = self.api_client.call_api( *_param, @@ -8415,7 +13554,7 @@ def search_users_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SearchUsers200Response", + '200': "SearchUsersResult", } response_data = self.api_client.call_api( *_param, @@ -8534,7 +13673,7 @@ def set_comment_text( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> SetCommentText200Response: + ) -> PublicAPISetCommentTextResponse: """set_comment_text @@ -8586,7 +13725,7 @@ def set_comment_text( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SetCommentText200Response", + '200': "PublicAPISetCommentTextResponse", } response_data = self.api_client.call_api( *_param, @@ -8620,7 +13759,7 @@ def set_comment_text_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[SetCommentText200Response]: + ) -> ApiResponse[PublicAPISetCommentTextResponse]: """set_comment_text @@ -8672,7 +13811,7 @@ def set_comment_text_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SetCommentText200Response", + '200': "PublicAPISetCommentTextResponse", } response_data = self.api_client.call_api( *_param, @@ -8758,7 +13897,7 @@ def set_comment_text_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "SetCommentText200Response", + '200': "PublicAPISetCommentTextResponse", } response_data = self.api_client.call_api( *_param, @@ -8883,7 +14022,7 @@ def un_block_comment_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UnBlockCommentPublic200Response: + ) -> UnblockSuccess: """un_block_comment_public @@ -8929,7 +14068,7 @@ def un_block_comment_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UnBlockCommentPublic200Response", + '200': "UnblockSuccess", } response_data = self.api_client.call_api( *_param, @@ -8961,7 +14100,7 @@ def un_block_comment_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UnBlockCommentPublic200Response]: + ) -> ApiResponse[UnblockSuccess]: """un_block_comment_public @@ -9007,7 +14146,7 @@ def un_block_comment_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UnBlockCommentPublic200Response", + '200': "UnblockSuccess", } response_data = self.api_client.call_api( *_param, @@ -9085,7 +14224,7 @@ def un_block_comment_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UnBlockCommentPublic200Response", + '200': "UnblockSuccess", } response_data = self.api_client.call_api( *_param, @@ -9202,7 +14341,7 @@ def un_lock_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> LockComment200Response: + ) -> APIEmptyResponse: """un_lock_comment @@ -9248,7 +14387,7 @@ def un_lock_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LockComment200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9280,7 +14419,7 @@ def un_lock_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[LockComment200Response]: + ) -> ApiResponse[APIEmptyResponse]: """un_lock_comment @@ -9326,7 +14465,7 @@ def un_lock_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LockComment200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9404,7 +14543,7 @@ def un_lock_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LockComment200Response", + '200': "APIEmptyResponse", } response_data = self.api_client.call_api( *_param, @@ -9508,7 +14647,7 @@ def un_pin_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> PinComment200Response: + ) -> ChangeCommentPinStatusResponse: """un_pin_comment @@ -9554,7 +14693,7 @@ def un_pin_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PinComment200Response", + '200': "ChangeCommentPinStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -9586,7 +14725,7 @@ def un_pin_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[PinComment200Response]: + ) -> ApiResponse[ChangeCommentPinStatusResponse]: """un_pin_comment @@ -9632,7 +14771,7 @@ def un_pin_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PinComment200Response", + '200': "ChangeCommentPinStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -9710,7 +14849,7 @@ def un_pin_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "PinComment200Response", + '200': "ChangeCommentPinStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -9815,7 +14954,7 @@ def update_feed_post_public( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> CreateFeedPostPublic200Response: + ) -> CreateFeedPostResponse: """update_feed_post_public @@ -9864,7 +15003,7 @@ def update_feed_post_public( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPostPublic200Response", + '200': "CreateFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -9897,7 +15036,7 @@ def update_feed_post_public_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[CreateFeedPostPublic200Response]: + ) -> ApiResponse[CreateFeedPostResponse]: """update_feed_post_public @@ -9946,7 +15085,7 @@ def update_feed_post_public_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPostPublic200Response", + '200': "CreateFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10028,7 +15167,7 @@ def update_feed_post_public_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "CreateFeedPostPublic200Response", + '200': "CreateFeedPostResponse", } response_data = self.api_client.call_api( *_param, @@ -10149,7 +15288,7 @@ def update_user_notification_comment_subscription_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateUserNotificationStatus200Response: + ) -> UpdateUserNotificationCommentSubscriptionStatusResponse: """update_user_notification_comment_subscription_status Enable or disable notifications for a specific comment. @@ -10199,7 +15338,7 @@ def update_user_notification_comment_subscription_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationCommentSubscriptionStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -10232,7 +15371,7 @@ def update_user_notification_comment_subscription_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateUserNotificationStatus200Response]: + ) -> ApiResponse[UpdateUserNotificationCommentSubscriptionStatusResponse]: """update_user_notification_comment_subscription_status Enable or disable notifications for a specific comment. @@ -10282,7 +15421,7 @@ def update_user_notification_comment_subscription_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationCommentSubscriptionStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -10365,7 +15504,7 @@ def update_user_notification_comment_subscription_status_without_preload_content ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationCommentSubscriptionStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -10476,7 +15615,7 @@ def update_user_notification_page_subscription_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateUserNotificationStatus200Response: + ) -> UpdateUserNotificationPageSubscriptionStatusResponse: """update_user_notification_page_subscription_status Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also @@ -10529,7 +15668,7 @@ def update_user_notification_page_subscription_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationPageSubscriptionStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -10563,7 +15702,7 @@ def update_user_notification_page_subscription_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateUserNotificationStatus200Response]: + ) -> ApiResponse[UpdateUserNotificationPageSubscriptionStatusResponse]: """update_user_notification_page_subscription_status Enable or disable notifications for a page. When users are subscribed to a page, notifications are created for new root comments, and also @@ -10616,7 +15755,7 @@ def update_user_notification_page_subscription_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationPageSubscriptionStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -10703,7 +15842,7 @@ def update_user_notification_page_subscription_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationPageSubscriptionStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -10819,7 +15958,7 @@ def update_user_notification_status( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> UpdateUserNotificationStatus200Response: + ) -> UpdateUserNotificationStatusResponse: """update_user_notification_status @@ -10865,7 +16004,7 @@ def update_user_notification_status( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -10897,7 +16036,7 @@ def update_user_notification_status_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[UpdateUserNotificationStatus200Response]: + ) -> ApiResponse[UpdateUserNotificationStatusResponse]: """update_user_notification_status @@ -10943,7 +16082,7 @@ def update_user_notification_status_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -11021,7 +16160,7 @@ def update_user_notification_status_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserNotificationStatus200Response", + '200': "UpdateUserNotificationStatusResponse", } response_data = self.api_client.call_api( *_param, @@ -11450,7 +16589,7 @@ def vote_comment( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> VoteComment200Response: + ) -> VoteResponse: """vote_comment @@ -11505,7 +16644,7 @@ def vote_comment( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VoteComment200Response", + '200': "VoteResponse", } response_data = self.api_client.call_api( *_param, @@ -11540,7 +16679,7 @@ def vote_comment_with_http_info( _content_type: Optional[StrictStr] = None, _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, - ) -> ApiResponse[VoteComment200Response]: + ) -> ApiResponse[VoteResponse]: """vote_comment @@ -11595,7 +16734,7 @@ def vote_comment_with_http_info( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VoteComment200Response", + '200': "VoteResponse", } response_data = self.api_client.call_api( *_param, @@ -11685,7 +16824,7 @@ def vote_comment_without_preload_content( ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VoteComment200Response", + '200': "VoteResponse", } response_data = self.api_client.call_api( *_param, diff --git a/client/api_client.py b/client/api_client.py index 8f0ade0..4e34acf 100644 --- a/client/api_client.py +++ b/client/api_client.py @@ -90,7 +90,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.2.0/python' + self.user_agent = 'OpenAPI-Generator/1.2.1/python' self.client_side_validation = configuration.client_side_validation def __enter__(self): diff --git a/client/configuration.py b/client/configuration.py index b3df8a6..7a4e6ef 100644 --- a/client/configuration.py +++ b/client/configuration.py @@ -524,7 +524,7 @@ def to_debug_report(self) -> str: "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 0.0.0\n"\ - "SDK Package Version: 1.2.0".\ + "SDK Package Version: 1.2.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self) -> List[HostSetting]: diff --git a/client/docs/APIBanUserChangeLog.md b/client/docs/APIBanUserChangeLog.md new file mode 100644 index 0000000..e096397 --- /dev/null +++ b/client/docs/APIBanUserChangeLog.md @@ -0,0 +1,32 @@ +# APIBanUserChangeLog + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_banned_user_id** | **str** | | [optional] +**updated_banned_user_id** | **str** | | [optional] +**deleted_banned_users** | [**List[APIBannedUser]**](APIBannedUser.md) | | [optional] +**changed_values_before** | [**APIBanUserChangedValues**](APIBanUserChangedValues.md) | | [optional] + +## Example + +```python +from client.models.api_ban_user_change_log import APIBanUserChangeLog + +# TODO update the JSON string below +json = "{}" +# create an instance of APIBanUserChangeLog from a JSON string +api_ban_user_change_log_instance = APIBanUserChangeLog.from_json(json) +# print the JSON string representation of the object +print(APIBanUserChangeLog.to_json()) + +# convert the object into a dict +api_ban_user_change_log_dict = api_ban_user_change_log_instance.to_dict() +# create an instance of APIBanUserChangeLog from a dict +api_ban_user_change_log_from_dict = APIBanUserChangeLog.from_dict(api_ban_user_change_log_dict) +``` +[[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..5163202 --- /dev/null +++ b/client/docs/APIBanUserChangedValues.md @@ -0,0 +1,41 @@ +# APIBanUserChangedValues + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**tenant_id** | **str** | | [optional] +**user_id** | **str** | | [optional] +**email** | **str** | | [optional] +**username** | **str** | | [optional] +**ip_hash** | **str** | | [optional] +**created_at** | **datetime** | | [optional] +**banned_by_user_id** | **str** | | [optional] +**banned_comment_text** | **str** | | [optional] +**ban_type** | **str** | | [optional] +**banned_until** | **datetime** | | [optional] +**has_email_wildcard** | **bool** | | [optional] +**ban_reason** | **str** | | [optional] + +## Example + +```python +from client.models.api_ban_user_changed_values import APIBanUserChangedValues + +# TODO update the JSON string below +json = "{}" +# create an instance of APIBanUserChangedValues from a JSON string +api_ban_user_changed_values_instance = APIBanUserChangedValues.from_json(json) +# print the JSON string representation of the object +print(APIBanUserChangedValues.to_json()) + +# convert the object into a dict +api_ban_user_changed_values_dict = api_ban_user_changed_values_instance.to_dict() +# create an instance of APIBanUserChangedValues from a dict +api_ban_user_changed_values_from_dict = APIBanUserChangedValues.from_dict(api_ban_user_changed_values_dict) +``` +[[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..01d371e --- /dev/null +++ b/client/docs/APIBannedUser.md @@ -0,0 +1,41 @@ +# APIBannedUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**tenant_id** | **str** | | +**user_id** | **str** | | [optional] +**email** | **str** | | [optional] +**username** | **str** | | [optional] +**ip_hash** | **str** | | [optional] +**created_at** | **datetime** | | +**banned_by_user_id** | **str** | | +**banned_comment_text** | **str** | | +**ban_type** | **str** | | +**banned_until** | **datetime** | | +**has_email_wildcard** | **bool** | | +**ban_reason** | **str** | | [optional] + +## Example + +```python +from client.models.api_banned_user import APIBannedUser + +# TODO update the JSON string below +json = "{}" +# create an instance of APIBannedUser from a JSON string +api_banned_user_instance = APIBannedUser.from_json(json) +# print the JSON string representation of the object +print(APIBannedUser.to_json()) + +# convert the object into a dict +api_banned_user_dict = api_banned_user_instance.to_dict() +# create an instance of APIBannedUser from a dict +api_banned_user_from_dict = APIBannedUser.from_dict(api_banned_user_dict) +``` +[[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..7afda1d --- /dev/null +++ b/client/docs/APIBannedUserWithMultiMatchInfo.md @@ -0,0 +1,37 @@ +# APIBannedUserWithMultiMatchInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**user_id** | **str** | | [optional] +**ban_type** | **str** | | +**email** | **str** | | [optional] +**ip_hash** | **str** | | [optional] +**banned_until** | **datetime** | | +**has_email_wildcard** | **bool** | | +**ban_reason** | **str** | | [optional] +**matches** | [**List[BannedUserMatch]**](BannedUserMatch.md) | | + +## Example + +```python +from client.models.api_banned_user_with_multi_match_info import APIBannedUserWithMultiMatchInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of APIBannedUserWithMultiMatchInfo from a JSON string +api_banned_user_with_multi_match_info_instance = APIBannedUserWithMultiMatchInfo.from_json(json) +# print the JSON string representation of the object +print(APIBannedUserWithMultiMatchInfo.to_json()) + +# convert the object into a dict +api_banned_user_with_multi_match_info_dict = api_banned_user_with_multi_match_info_instance.to_dict() +# create an instance of APIBannedUserWithMultiMatchInfo from a dict +api_banned_user_with_multi_match_info_from_dict = APIBannedUserWithMultiMatchInfo.from_dict(api_banned_user_with_multi_match_info_dict) +``` +[[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/APICommentCommonBannedUser.md b/client/docs/APICommentCommonBannedUser.md new file mode 100644 index 0000000..d37c124 --- /dev/null +++ b/client/docs/APICommentCommonBannedUser.md @@ -0,0 +1,36 @@ +# APICommentCommonBannedUser + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**user_id** | **str** | | [optional] +**ban_type** | **str** | | +**email** | **str** | | [optional] +**ip_hash** | **str** | | [optional] +**banned_until** | **datetime** | | +**has_email_wildcard** | **bool** | | +**ban_reason** | **str** | | [optional] + +## Example + +```python +from client.models.api_comment_common_banned_user import APICommentCommonBannedUser + +# TODO update the JSON string below +json = "{}" +# create an instance of APICommentCommonBannedUser from a JSON string +api_comment_common_banned_user_instance = APICommentCommonBannedUser.from_json(json) +# print the JSON string representation of the object +print(APICommentCommonBannedUser.to_json()) + +# convert the object into a dict +api_comment_common_banned_user_dict = api_comment_common_banned_user_instance.to_dict() +# create an instance of APICommentCommonBannedUser from a dict +api_comment_common_banned_user_from_dict = APICommentCommonBannedUser.from_dict(api_comment_common_banned_user_dict) +``` +[[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/APIModerateGetUserBanPreferencesResponse.md b/client/docs/APIModerateGetUserBanPreferencesResponse.md new file mode 100644 index 0000000..8ee2334 --- /dev/null +++ b/client/docs/APIModerateGetUserBanPreferencesResponse.md @@ -0,0 +1,30 @@ +# APIModerateGetUserBanPreferencesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.api_moderate_get_user_ban_preferences_response import APIModerateGetUserBanPreferencesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of APIModerateGetUserBanPreferencesResponse from a JSON string +api_moderate_get_user_ban_preferences_response_instance = APIModerateGetUserBanPreferencesResponse.from_json(json) +# print the JSON string representation of the object +print(APIModerateGetUserBanPreferencesResponse.to_json()) + +# convert the object into a dict +api_moderate_get_user_ban_preferences_response_dict = api_moderate_get_user_ban_preferences_response_instance.to_dict() +# create an instance of APIModerateGetUserBanPreferencesResponse from a dict +api_moderate_get_user_ban_preferences_response_from_dict = APIModerateGetUserBanPreferencesResponse.from_dict(api_moderate_get_user_ban_preferences_response_dict) +``` +[[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..a0e2d85 --- /dev/null +++ b/client/docs/APIModerateUserBanPreferences.md @@ -0,0 +1,32 @@ +# APIModerateUserBanPreferences + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**should_ban_email** | **bool** | | +**should_ban_by_ip** | **bool** | | +**last_ban_type** | **str** | | +**last_ban_duration** | **str** | | + +## Example + +```python +from client.models.api_moderate_user_ban_preferences import APIModerateUserBanPreferences + +# TODO update the JSON string below +json = "{}" +# create an instance of APIModerateUserBanPreferences from a JSON string +api_moderate_user_ban_preferences_instance = APIModerateUserBanPreferences.from_json(json) +# print the JSON string representation of the object +print(APIModerateUserBanPreferences.to_json()) + +# convert the object into a dict +api_moderate_user_ban_preferences_dict = api_moderate_user_ban_preferences_instance.to_dict() +# create an instance of APIModerateUserBanPreferences from a dict +api_moderate_user_ban_preferences_from_dict = APIModerateUserBanPreferences.from_dict(api_moderate_user_ban_preferences_dict) +``` +[[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/SaveCommentResponse.md b/client/docs/APISaveCommentResponse.md similarity index 53% rename from client/docs/SaveCommentResponse.md rename to client/docs/APISaveCommentResponse.md index 449ab33..a860a36 100644 --- a/client/docs/SaveCommentResponse.md +++ b/client/docs/APISaveCommentResponse.md @@ -1,4 +1,4 @@ -# SaveCommentResponse +# APISaveCommentResponse ## Properties @@ -6,26 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**FComment**](FComment.md) | | +**comment** | [**APIComment**](APIComment.md) | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | **module_data** | **Dict[str, object]** | Construct a type with a set of properties K of type T | [optional] ## Example ```python -from client.models.save_comment_response import SaveCommentResponse +from client.models.api_save_comment_response import APISaveCommentResponse # TODO update the JSON string below json = "{}" -# create an instance of SaveCommentResponse from a JSON string -save_comment_response_instance = SaveCommentResponse.from_json(json) +# create an instance of APISaveCommentResponse from a JSON string +api_save_comment_response_instance = APISaveCommentResponse.from_json(json) # print the JSON string representation of the object -print(SaveCommentResponse.to_json()) +print(APISaveCommentResponse.to_json()) # convert the object into a dict -save_comment_response_dict = save_comment_response_instance.to_dict() -# create an instance of SaveCommentResponse from a dict -save_comment_response_from_dict = SaveCommentResponse.from_dict(save_comment_response_dict) +api_save_comment_response_dict = api_save_comment_response_instance.to_dict() +# create an instance of APISaveCommentResponse from a dict +api_save_comment_response_from_dict = APISaveCommentResponse.from_dict(api_save_comment_response_dict) ``` [[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/AddDomainConfig200Response.md deleted file mode 100644 index 47b9b40..0000000 --- a/client/docs/AddDomainConfig200Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# AddDomainConfig200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reason** | **str** | | -**code** | **str** | | -**status** | **object** | | -**configuration** | **object** | | - -## Example - -```python -from client.models.add_domain_config200_response import AddDomainConfig200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of AddDomainConfig200Response from a JSON string -add_domain_config200_response_instance = AddDomainConfig200Response.from_json(json) -# print the JSON string representation of the object -print(AddDomainConfig200Response.to_json()) - -# convert the object into a dict -add_domain_config200_response_dict = add_domain_config200_response_instance.to_dict() -# create an instance of AddDomainConfig200Response from a dict -add_domain_config200_response_from_dict = AddDomainConfig200Response.from_dict(add_domain_config200_response_dict) -``` -[[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/AddDomainConfig200ResponseAnyOf.md deleted file mode 100644 index 5181ffd..0000000 --- a/client/docs/AddDomainConfig200ResponseAnyOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# AddDomainConfig200ResponseAnyOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configuration** | **object** | | -**status** | **object** | | - -## Example - -```python -from client.models.add_domain_config200_response_any_of import AddDomainConfig200ResponseAnyOf - -# TODO update the JSON string below -json = "{}" -# create an instance of AddDomainConfig200ResponseAnyOf from a JSON string -add_domain_config200_response_any_of_instance = AddDomainConfig200ResponseAnyOf.from_json(json) -# print the JSON string representation of the object -print(AddDomainConfig200ResponseAnyOf.to_json()) - -# convert the object into a dict -add_domain_config200_response_any_of_dict = add_domain_config200_response_any_of_instance.to_dict() -# create an instance of AddDomainConfig200ResponseAnyOf from a dict -add_domain_config200_response_any_of_from_dict = AddDomainConfig200ResponseAnyOf.from_dict(add_domain_config200_response_any_of_dict) -``` -[[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/AddDomainConfigResponse.md b/client/docs/AddDomainConfigResponse.md new file mode 100644 index 0000000..2700d18 --- /dev/null +++ b/client/docs/AddDomainConfigResponse.md @@ -0,0 +1,32 @@ +# AddDomainConfigResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**code** | **str** | | +**status** | **object** | | +**configuration** | **object** | | + +## Example + +```python +from client.models.add_domain_config_response import AddDomainConfigResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AddDomainConfigResponse from a JSON string +add_domain_config_response_instance = AddDomainConfigResponse.from_json(json) +# print the JSON string representation of the object +print(AddDomainConfigResponse.to_json()) + +# convert the object into a dict +add_domain_config_response_dict = add_domain_config_response_instance.to_dict() +# create an instance of AddDomainConfigResponse from a dict +add_domain_config_response_from_dict = AddDomainConfigResponse.from_dict(add_domain_config_response_dict) +``` +[[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..5aef417 --- /dev/null +++ b/client/docs/AddDomainConfigResponseAnyOf.md @@ -0,0 +1,30 @@ +# AddDomainConfigResponseAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **object** | | +**status** | **object** | | + +## Example + +```python +from client.models.add_domain_config_response_any_of import AddDomainConfigResponseAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of AddDomainConfigResponseAnyOf from a JSON string +add_domain_config_response_any_of_instance = AddDomainConfigResponseAnyOf.from_json(json) +# print the JSON string representation of the object +print(AddDomainConfigResponseAnyOf.to_json()) + +# convert the object into a dict +add_domain_config_response_any_of_dict = add_domain_config_response_any_of_instance.to_dict() +# create an instance of AddDomainConfigResponseAnyOf from a dict +add_domain_config_response_any_of_from_dict = AddDomainConfigResponseAnyOf.from_dict(add_domain_config_response_any_of_dict) +``` +[[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 d6a410d..0000000 --- a/client/docs/AddHashTagsBulk200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# AddHashTagsBulk200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**results** | [**List[AddHashTag200Response]**](AddHashTag200Response.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.add_hash_tags_bulk200_response import AddHashTagsBulk200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of AddHashTagsBulk200Response from a JSON string -add_hash_tags_bulk200_response_instance = AddHashTagsBulk200Response.from_json(json) -# print the JSON string representation of the object -print(AddHashTagsBulk200Response.to_json()) - -# convert the object into a dict -add_hash_tags_bulk200_response_dict = add_hash_tags_bulk200_response_instance.to_dict() -# create an instance of AddHashTagsBulk200Response from a dict -add_hash_tags_bulk200_response_from_dict = AddHashTagsBulk200Response.from_dict(add_hash_tags_bulk200_response_dict) -``` -[[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/AdjustCommentVotesParams.md b/client/docs/AdjustCommentVotesParams.md new file mode 100644 index 0000000..441c568 --- /dev/null +++ b/client/docs/AdjustCommentVotesParams.md @@ -0,0 +1,29 @@ +# AdjustCommentVotesParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjust_vote_amount** | **float** | | + +## Example + +```python +from client.models.adjust_comment_votes_params import AdjustCommentVotesParams + +# TODO update the JSON string below +json = "{}" +# create an instance of AdjustCommentVotesParams from a JSON string +adjust_comment_votes_params_instance = AdjustCommentVotesParams.from_json(json) +# print the JSON string representation of the object +print(AdjustCommentVotesParams.to_json()) + +# convert the object into a dict +adjust_comment_votes_params_dict = adjust_comment_votes_params_instance.to_dict() +# create an instance of AdjustCommentVotesParams from a dict +adjust_comment_votes_params_from_dict = AdjustCommentVotesParams.from_dict(adjust_comment_votes_params_dict) +``` +[[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..2c8d9f2 --- /dev/null +++ b/client/docs/AdjustVotesResponse.md @@ -0,0 +1,30 @@ +# AdjustVotesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**new_comment_votes** | **int** | | + +## Example + +```python +from client.models.adjust_votes_response import AdjustVotesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AdjustVotesResponse from a JSON string +adjust_votes_response_instance = AdjustVotesResponse.from_json(json) +# print the JSON string representation of the object +print(AdjustVotesResponse.to_json()) + +# convert the object into a dict +adjust_votes_response_dict = adjust_votes_response_instance.to_dict() +# create an instance of AdjustVotesResponse from a dict +adjust_votes_response_from_dict = AdjustVotesResponse.from_dict(adjust_votes_response_dict) +``` +[[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 47023ba..0000000 --- a/client/docs/AggregateQuestionResults200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# AggregateQuestionResults200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.aggregate_question_results200_response import AggregateQuestionResults200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of AggregateQuestionResults200Response from a JSON string -aggregate_question_results200_response_instance = AggregateQuestionResults200Response.from_json(json) -# print the JSON string representation of the object -print(AggregateQuestionResults200Response.to_json()) - -# convert the object into a dict -aggregate_question_results200_response_dict = aggregate_question_results200_response_instance.to_dict() -# create an instance of AggregateQuestionResults200Response from a dict -aggregate_question_results200_response_from_dict = AggregateQuestionResults200Response.from_dict(aggregate_question_results200_response_dict) -``` -[[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..1ca29ca --- /dev/null +++ b/client/docs/AggregateResponse.md @@ -0,0 +1,34 @@ +# AggregateResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**data** | [**List[AggregationItem]**](AggregationItem.md) | | +**stats** | [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] +**reason** | **str** | | +**code** | **str** | | +**valid_resource_names** | **List[str]** | | [optional] + +## Example + +```python +from client.models.aggregate_response import AggregateResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AggregateResponse from a JSON string +aggregate_response_instance = AggregateResponse.from_json(json) +# print the JSON string representation of the object +print(AggregateResponse.to_json()) + +# convert the object into a dict +aggregate_response_dict = aggregate_response_instance.to_dict() +# create an instance of AggregateResponse from a dict +aggregate_response_from_dict = AggregateResponse.from_dict(aggregate_response_dict) +``` +[[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/AggregationAPIError.md b/client/docs/AggregationAPIError.md new file mode 100644 index 0000000..47ec4a1 --- /dev/null +++ b/client/docs/AggregationAPIError.md @@ -0,0 +1,32 @@ +# AggregationAPIError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**reason** | **str** | | +**code** | **str** | | +**valid_resource_names** | **List[str]** | | [optional] + +## Example + +```python +from client.models.aggregation_api_error import AggregationAPIError + +# TODO update the JSON string below +json = "{}" +# create an instance of AggregationAPIError from a JSON string +aggregation_api_error_instance = AggregationAPIError.from_json(json) +# print the JSON string representation of the object +print(AggregationAPIError.to_json()) + +# convert the object into a dict +aggregation_api_error_dict = aggregation_api_error_instance.to_dict() +# create an instance of AggregationAPIError from a dict +aggregation_api_error_from_dict = AggregationAPIError.from_dict(aggregation_api_error_dict) +``` +[[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/AwardUserBadgeResponse.md b/client/docs/AwardUserBadgeResponse.md new file mode 100644 index 0000000..62aa4c2 --- /dev/null +++ b/client/docs/AwardUserBadgeResponse.md @@ -0,0 +1,31 @@ +# AwardUserBadgeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notes** | **List[str]** | | [optional] +**badges** | [**List[CommentUserBadgeInfo]**](CommentUserBadgeInfo.md) | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.award_user_badge_response import AwardUserBadgeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AwardUserBadgeResponse from a JSON string +award_user_badge_response_instance = AwardUserBadgeResponse.from_json(json) +# print the JSON string representation of the object +print(AwardUserBadgeResponse.to_json()) + +# convert the object into a dict +award_user_badge_response_dict = award_user_badge_response_instance.to_dict() +# create an instance of AwardUserBadgeResponse from a dict +award_user_badge_response_from_dict = AwardUserBadgeResponse.from_dict(award_user_badge_response_dict) +``` +[[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..faa42ba --- /dev/null +++ b/client/docs/BanUserFromCommentResult.md @@ -0,0 +1,32 @@ +# BanUserFromCommentResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] +**code** | **str** | | [optional] +**reason** | **str** | | [optional] + +## Example + +```python +from client.models.ban_user_from_comment_result import BanUserFromCommentResult + +# TODO update the JSON string below +json = "{}" +# create an instance of BanUserFromCommentResult from a JSON string +ban_user_from_comment_result_instance = BanUserFromCommentResult.from_json(json) +# print the JSON string representation of the object +print(BanUserFromCommentResult.to_json()) + +# convert the object into a dict +ban_user_from_comment_result_dict = ban_user_from_comment_result_instance.to_dict() +# create an instance of BanUserFromCommentResult from a dict +ban_user_from_comment_result_from_dict = BanUserFromCommentResult.from_dict(ban_user_from_comment_result_dict) +``` +[[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..ab6fdbf --- /dev/null +++ b/client/docs/BanUserUndoParams.md @@ -0,0 +1,29 @@ +# BanUserUndoParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | + +## Example + +```python +from client.models.ban_user_undo_params import BanUserUndoParams + +# TODO update the JSON string below +json = "{}" +# create an instance of BanUserUndoParams from a JSON string +ban_user_undo_params_instance = BanUserUndoParams.from_json(json) +# print the JSON string representation of the object +print(BanUserUndoParams.to_json()) + +# convert the object into a dict +ban_user_undo_params_dict = ban_user_undo_params_instance.to_dict() +# create an instance of BanUserUndoParams from a dict +ban_user_undo_params_from_dict = BanUserUndoParams.from_dict(ban_user_undo_params_dict) +``` +[[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..8965ac8 --- /dev/null +++ b/client/docs/BannedUserMatch.md @@ -0,0 +1,30 @@ +# BannedUserMatch + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matched_on** | [**BannedUserMatchType**](BannedUserMatchType.md) | | +**matched_on_value** | [**BannedUserMatchMatchedOnValue**](BannedUserMatchMatchedOnValue.md) | | + +## Example + +```python +from client.models.banned_user_match import BannedUserMatch + +# TODO update the JSON string below +json = "{}" +# create an instance of BannedUserMatch from a JSON string +banned_user_match_instance = BannedUserMatch.from_json(json) +# print the JSON string representation of the object +print(BannedUserMatch.to_json()) + +# convert the object into a dict +banned_user_match_dict = banned_user_match_instance.to_dict() +# create an instance of BannedUserMatch from a dict +banned_user_match_from_dict = BannedUserMatch.from_dict(banned_user_match_dict) +``` +[[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/BannedUserMatchMatchedOnValue.md b/client/docs/BannedUserMatchMatchedOnValue.md new file mode 100644 index 0000000..cbae70b --- /dev/null +++ b/client/docs/BannedUserMatchMatchedOnValue.md @@ -0,0 +1,28 @@ +# BannedUserMatchMatchedOnValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from client.models.banned_user_match_matched_on_value import BannedUserMatchMatchedOnValue + +# TODO update the JSON string below +json = "{}" +# create an instance of BannedUserMatchMatchedOnValue from a JSON string +banned_user_match_matched_on_value_instance = BannedUserMatchMatchedOnValue.from_json(json) +# print the JSON string representation of the object +print(BannedUserMatchMatchedOnValue.to_json()) + +# convert the object into a dict +banned_user_match_matched_on_value_dict = banned_user_match_matched_on_value_instance.to_dict() +# create an instance of BannedUserMatchMatchedOnValue from a dict +banned_user_match_matched_on_value_from_dict = BannedUserMatchMatchedOnValue.from_dict(banned_user_match_matched_on_value_dict) +``` +[[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/BannedUserMatchType.md b/client/docs/BannedUserMatchType.md new file mode 100644 index 0000000..e982f05 --- /dev/null +++ b/client/docs/BannedUserMatchType.md @@ -0,0 +1,16 @@ +# BannedUserMatchType + + +## Enum + +* `USERID` (value: `'userId'`) + +* `EMAIL` (value: `'email'`) + +* `EMAIL_MINUS_WILDCARD` (value: `'email-wildcard'`) + +* `IP` (value: `'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/BlockFromCommentPublic200Response.md b/client/docs/BlockFromCommentPublic200Response.md deleted file mode 100644 index 9df559a..0000000 --- a/client/docs/BlockFromCommentPublic200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# BlockFromCommentPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment_statuses** | **Dict[str, bool]** | Construct a type with a set of properties K of type T | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.block_from_comment_public200_response import BlockFromCommentPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of BlockFromCommentPublic200Response from a JSON string -block_from_comment_public200_response_instance = BlockFromCommentPublic200Response.from_json(json) -# print the JSON string representation of the object -print(BlockFromCommentPublic200Response.to_json()) - -# convert the object into a dict -block_from_comment_public200_response_dict = block_from_comment_public200_response_instance.to_dict() -# create an instance of BlockFromCommentPublic200Response from a dict -block_from_comment_public200_response_from_dict = BlockFromCommentPublic200Response.from_dict(block_from_comment_public200_response_dict) -``` -[[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..ecd1501 --- /dev/null +++ b/client/docs/BuildModerationFilterParams.md @@ -0,0 +1,33 @@ +# BuildModerationFilterParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_id** | **str** | | +**tenant_id** | **str** | | +**filters** | **str** | | [optional] +**search_filters** | **str** | | [optional] +**text_search** | **str** | | [optional] + +## Example + +```python +from client.models.build_moderation_filter_params import BuildModerationFilterParams + +# TODO update the JSON string below +json = "{}" +# create an instance of BuildModerationFilterParams from a JSON string +build_moderation_filter_params_instance = BuildModerationFilterParams.from_json(json) +# print the JSON string representation of the object +print(BuildModerationFilterParams.to_json()) + +# convert the object into a dict +build_moderation_filter_params_dict = build_moderation_filter_params_instance.to_dict() +# create an instance of BuildModerationFilterParams from a dict +build_moderation_filter_params_from_dict = BuildModerationFilterParams.from_dict(build_moderation_filter_params_dict) +``` +[[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..e19335c --- /dev/null +++ b/client/docs/BuildModerationFilterResponse.md @@ -0,0 +1,30 @@ +# BuildModerationFilterResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**moderation_filter** | [**ModerationFilter**](ModerationFilter.md) | | + +## Example + +```python +from client.models.build_moderation_filter_response import BuildModerationFilterResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of BuildModerationFilterResponse from a JSON string +build_moderation_filter_response_instance = BuildModerationFilterResponse.from_json(json) +# print the JSON string representation of the object +print(BuildModerationFilterResponse.to_json()) + +# convert the object into a dict +build_moderation_filter_response_dict = build_moderation_filter_response_instance.to_dict() +# create an instance of BuildModerationFilterResponse from a dict +build_moderation_filter_response_from_dict = BuildModerationFilterResponse.from_dict(build_moderation_filter_response_dict) +``` +[[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 27c88fa..0000000 --- a/client/docs/BulkAggregateQuestionResults200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# BulkAggregateQuestionResults200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**Dict[str, QuestionResultAggregationOverall]**](QuestionResultAggregationOverall.md) | Construct a type with a set of properties K of type T | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.bulk_aggregate_question_results200_response import BulkAggregateQuestionResults200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of BulkAggregateQuestionResults200Response from a JSON string -bulk_aggregate_question_results200_response_instance = BulkAggregateQuestionResults200Response.from_json(json) -# print the JSON string representation of the object -print(BulkAggregateQuestionResults200Response.to_json()) - -# convert the object into a dict -bulk_aggregate_question_results200_response_dict = bulk_aggregate_question_results200_response_instance.to_dict() -# create an instance of BulkAggregateQuestionResults200Response from a dict -bulk_aggregate_question_results200_response_from_dict = BulkAggregateQuestionResults200Response.from_dict(bulk_aggregate_question_results200_response_dict) -``` -[[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 24907e3..f9f69a3 100644 --- a/client/docs/BulkCreateHashTagsResponse.md +++ b/client/docs/BulkCreateHashTagsResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**results** | [**List[AddHashTag200Response]**](AddHashTag200Response.md) | | +**results** | [**List[BulkCreateHashTagsResponseResultsInner]**](BulkCreateHashTagsResponseResultsInner.md) | | ## Example diff --git a/client/docs/AddHashTag200Response.md b/client/docs/BulkCreateHashTagsResponseResultsInner.md similarity index 54% rename from client/docs/AddHashTag200Response.md rename to client/docs/BulkCreateHashTagsResponseResultsInner.md index b5cf28f..7632112 100644 --- a/client/docs/AddHashTag200Response.md +++ b/client/docs/BulkCreateHashTagsResponseResultsInner.md @@ -1,4 +1,4 @@ -# AddHashTag200Response +# BulkCreateHashTagsResponseResultsInner ## Properties @@ -18,19 +18,19 @@ Name | Type | Description | Notes ## Example ```python -from client.models.add_hash_tag200_response import AddHashTag200Response +from client.models.bulk_create_hash_tags_response_results_inner import BulkCreateHashTagsResponseResultsInner # TODO update the JSON string below json = "{}" -# create an instance of AddHashTag200Response from a JSON string -add_hash_tag200_response_instance = AddHashTag200Response.from_json(json) +# create an instance of BulkCreateHashTagsResponseResultsInner from a JSON string +bulk_create_hash_tags_response_results_inner_instance = BulkCreateHashTagsResponseResultsInner.from_json(json) # print the JSON string representation of the object -print(AddHashTag200Response.to_json()) +print(BulkCreateHashTagsResponseResultsInner.to_json()) # convert the object into a dict -add_hash_tag200_response_dict = add_hash_tag200_response_instance.to_dict() -# create an instance of AddHashTag200Response from a dict -add_hash_tag200_response_from_dict = AddHashTag200Response.from_dict(add_hash_tag200_response_dict) +bulk_create_hash_tags_response_results_inner_dict = bulk_create_hash_tags_response_results_inner_instance.to_dict() +# create an instance of BulkCreateHashTagsResponseResultsInner from a dict +bulk_create_hash_tags_response_results_inner_from_dict = BulkCreateHashTagsResponseResultsInner.from_dict(bulk_create_hash_tags_response_results_inner_dict) ``` [[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/BulkPreBanParams.md b/client/docs/BulkPreBanParams.md new file mode 100644 index 0000000..8668f80 --- /dev/null +++ b/client/docs/BulkPreBanParams.md @@ -0,0 +1,29 @@ +# BulkPreBanParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment_ids** | **List[str]** | | + +## Example + +```python +from client.models.bulk_pre_ban_params import BulkPreBanParams + +# TODO update the JSON string below +json = "{}" +# create an instance of BulkPreBanParams from a JSON string +bulk_pre_ban_params_instance = BulkPreBanParams.from_json(json) +# print the JSON string representation of the object +print(BulkPreBanParams.to_json()) + +# convert the object into a dict +bulk_pre_ban_params_dict = bulk_pre_ban_params_instance.to_dict() +# create an instance of BulkPreBanParams from a dict +bulk_pre_ban_params_from_dict = BulkPreBanParams.from_dict(bulk_pre_ban_params_dict) +``` +[[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..f4134b9 --- /dev/null +++ b/client/docs/BulkPreBanSummary.md @@ -0,0 +1,34 @@ +# BulkPreBanSummary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**total_related_comment_count** | **int** | | +**email_domains** | **List[str]** | | +**emails** | **List[str]** | | +**user_ids** | **List[str]** | | +**ip_hashes** | **List[str]** | | + +## Example + +```python +from client.models.bulk_pre_ban_summary import BulkPreBanSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of BulkPreBanSummary from a JSON string +bulk_pre_ban_summary_instance = BulkPreBanSummary.from_json(json) +# print the JSON string representation of the object +print(BulkPreBanSummary.to_json()) + +# convert the object into a dict +bulk_pre_ban_summary_dict = bulk_pre_ban_summary_instance.to_dict() +# create an instance of BulkPreBanSummary from a dict +bulk_pre_ban_summary_from_dict = BulkPreBanSummary.from_dict(bulk_pre_ban_summary_dict) +``` +[[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 0083213..0000000 --- a/client/docs/ChangeTicketState200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# ChangeTicketState200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicket**](APITicket.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.change_ticket_state200_response import ChangeTicketState200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of ChangeTicketState200Response from a JSON string -change_ticket_state200_response_instance = ChangeTicketState200Response.from_json(json) -# print the JSON string representation of the object -print(ChangeTicketState200Response.to_json()) - -# convert the object into a dict -change_ticket_state200_response_dict = change_ticket_state200_response_instance.to_dict() -# create an instance of ChangeTicketState200Response from a dict -change_ticket_state200_response_from_dict = ChangeTicketState200Response.from_dict(change_ticket_state200_response_dict) -``` -[[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 c236dbf..0000000 --- a/client/docs/CheckedCommentsForBlocked200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CheckedCommentsForBlocked200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment_statuses** | **Dict[str, bool]** | Construct a type with a set of properties K of type T | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.checked_comments_for_blocked200_response import CheckedCommentsForBlocked200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CheckedCommentsForBlocked200Response from a JSON string -checked_comments_for_blocked200_response_instance = CheckedCommentsForBlocked200Response.from_json(json) -# print the JSON string representation of the object -print(CheckedCommentsForBlocked200Response.to_json()) - -# convert the object into a dict -checked_comments_for_blocked200_response_dict = checked_comments_for_blocked200_response_instance.to_dict() -# create an instance of CheckedCommentsForBlocked200Response from a dict -checked_comments_for_blocked200_response_from_dict = CheckedCommentsForBlocked200Response.from_dict(checked_comments_for_blocked200_response_dict) -``` -[[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 0acbcaf..0000000 --- a/client/docs/CombineCommentsWithQuestionResults200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CombineCommentsWithQuestionResults200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.combine_comments_with_question_results200_response import CombineCommentsWithQuestionResults200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CombineCommentsWithQuestionResults200Response from a JSON string -combine_comments_with_question_results200_response_instance = CombineCommentsWithQuestionResults200Response.from_json(json) -# print the JSON string representation of the object -print(CombineCommentsWithQuestionResults200Response.to_json()) - -# convert the object into a dict -combine_comments_with_question_results200_response_dict = combine_comments_with_question_results200_response_instance.to_dict() -# create an instance of CombineCommentsWithQuestionResults200Response from a dict -combine_comments_with_question_results200_response_from_dict = CombineCommentsWithQuestionResults200Response.from_dict(combine_comments_with_question_results200_response_dict) -``` -[[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 69e9af4..c969af9 100644 --- a/client/docs/CommentData.md +++ b/client/docs/CommentData.md @@ -28,8 +28,9 @@ Name | Type | Description | Notes **from_offline_restore** | **bool** | | [optional] **autoplay_delay_ms** | **int** | | [optional] **feedback_ids** | **List[str]** | | [optional] -**question_values** | [**Dict[str, RecordStringStringOrNumberValue]**](RecordStringStringOrNumberValue.md) | Construct a type with a set of properties K of type T | [optional] +**question_values** | [**Dict[str, GifSearchResponseImagesInnerInner]**](GifSearchResponseImagesInnerInner.md) | Construct a type with a set of properties K of type T | [optional] **tos** | **bool** | | [optional] +**bot_id** | **str** | | [optional] ## Example diff --git a/client/docs/CommentLogData.md b/client/docs/CommentLogData.md index a88ac28..329e351 100644 --- a/client/docs/CommentLogData.md +++ b/client/docs/CommentLogData.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **engine_response** | **str** | | [optional] **engine_tokens** | **float** | | [optional] **trust_factor** | **float** | | [optional] +**source** | **str** | | [optional] **rule** | [**SpamRule**](SpamRule.md) | | [optional] **user_id** | **str** | | [optional] **subscribers** | **float** | | [optional] diff --git a/client/docs/CommentsByIdsParams.md b/client/docs/CommentsByIdsParams.md new file mode 100644 index 0000000..1fe72e3 --- /dev/null +++ b/client/docs/CommentsByIdsParams.md @@ -0,0 +1,29 @@ +# CommentsByIdsParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List[str]** | | + +## Example + +```python +from client.models.comments_by_ids_params import CommentsByIdsParams + +# TODO update the JSON string below +json = "{}" +# create an instance of CommentsByIdsParams from a JSON string +comments_by_ids_params_instance = CommentsByIdsParams.from_json(json) +# print the JSON string representation of the object +print(CommentsByIdsParams.to_json()) + +# convert the object into a dict +comments_by_ids_params_dict = comments_by_ids_params_instance.to_dict() +# create an instance of CommentsByIdsParams from a dict +comments_by_ids_params_from_dict = CommentsByIdsParams.from_dict(comments_by_ids_params_dict) +``` +[[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 af84dd5..849d882 100644 --- a/client/docs/CreateCommentParams.md +++ b/client/docs/CreateCommentParams.md @@ -28,8 +28,9 @@ Name | Type | Description | Notes **from_offline_restore** | **bool** | | [optional] **autoplay_delay_ms** | **int** | | [optional] **feedback_ids** | **List[str]** | | [optional] -**question_values** | [**Dict[str, RecordStringStringOrNumberValue]**](RecordStringStringOrNumberValue.md) | Construct a type with a set of properties K of type T | [optional] +**question_values** | [**Dict[str, GifSearchResponseImagesInnerInner]**](GifSearchResponseImagesInnerInner.md) | Construct a type with a set of properties K of type T | [optional] **tos** | **bool** | | [optional] +**bot_id** | **str** | | [optional] **approved** | **bool** | | [optional] **domain** | **str** | | [optional] **ip** | **str** | | [optional] diff --git a/client/docs/CreateCommentPublic200Response.md b/client/docs/CreateCommentPublic200Response.md deleted file mode 100644 index 06770ad..0000000 --- a/client/docs/CreateCommentPublic200Response.md +++ /dev/null @@ -1,40 +0,0 @@ -# CreateCommentPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**PublicComment**](PublicComment.md) | | -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**module_data** | **Dict[str, object]** | Construct a type with a set of properties K of type T | [optional] -**user_id_ws** | **str** | | [optional] -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_comment_public200_response import CreateCommentPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateCommentPublic200Response from a JSON string -create_comment_public200_response_instance = CreateCommentPublic200Response.from_json(json) -# print the JSON string representation of the object -print(CreateCommentPublic200Response.to_json()) - -# convert the object into a dict -create_comment_public200_response_dict = create_comment_public200_response_instance.to_dict() -# create an instance of CreateCommentPublic200Response from a dict -create_comment_public200_response_from_dict = CreateCommentPublic200Response.from_dict(create_comment_public200_response_dict) -``` -[[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 dbd44dc..0000000 --- a/client/docs/CreateEmailTemplate200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateEmailTemplate200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_email_template200_response import CreateEmailTemplate200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateEmailTemplate200Response from a JSON string -create_email_template200_response_instance = CreateEmailTemplate200Response.from_json(json) -# print the JSON string representation of the object -print(CreateEmailTemplate200Response.to_json()) - -# convert the object into a dict -create_email_template200_response_dict = create_email_template200_response_instance.to_dict() -# create an instance of CreateEmailTemplate200Response from a dict -create_email_template200_response_from_dict = CreateEmailTemplate200Response.from_dict(create_email_template200_response_dict) -``` -[[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 ca97f0f..0000000 --- a/client/docs/CreateFeedPost200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateFeedPost200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feed_post** | [**FeedPost**](FeedPost.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_feed_post200_response import CreateFeedPost200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateFeedPost200Response from a JSON string -create_feed_post200_response_instance = CreateFeedPost200Response.from_json(json) -# print the JSON string representation of the object -print(CreateFeedPost200Response.to_json()) - -# convert the object into a dict -create_feed_post200_response_dict = create_feed_post200_response_instance.to_dict() -# create an instance of CreateFeedPost200Response from a dict -create_feed_post200_response_from_dict = CreateFeedPost200Response.from_dict(create_feed_post200_response_dict) -``` -[[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 719ffc4..0000000 --- a/client/docs/CreateFeedPostPublic200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateFeedPostPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feed_post** | [**FeedPost**](FeedPost.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_feed_post_public200_response import CreateFeedPostPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateFeedPostPublic200Response from a JSON string -create_feed_post_public200_response_instance = CreateFeedPostPublic200Response.from_json(json) -# print the JSON string representation of the object -print(CreateFeedPostPublic200Response.to_json()) - -# convert the object into a dict -create_feed_post_public200_response_dict = create_feed_post_public200_response_instance.to_dict() -# create an instance of CreateFeedPostPublic200Response from a dict -create_feed_post_public200_response_from_dict = CreateFeedPostPublic200Response.from_dict(create_feed_post_public200_response_dict) -``` -[[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 4383d8b..0000000 --- a/client/docs/CreateModerator200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateModerator200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderator** | [**Moderator**](Moderator.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_moderator200_response import CreateModerator200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateModerator200Response from a JSON string -create_moderator200_response_instance = CreateModerator200Response.from_json(json) -# print the JSON string representation of the object -print(CreateModerator200Response.to_json()) - -# convert the object into a dict -create_moderator200_response_dict = create_moderator200_response_instance.to_dict() -# create an instance of CreateModerator200Response from a dict -create_moderator200_response_from_dict = CreateModerator200Response.from_dict(create_moderator200_response_dict) -``` -[[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 b9e397b..0000000 --- a/client/docs/CreateQuestionConfig200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateQuestionConfig200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**question_config** | [**QuestionConfig**](QuestionConfig.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_question_config200_response import CreateQuestionConfig200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateQuestionConfig200Response from a JSON string -create_question_config200_response_instance = CreateQuestionConfig200Response.from_json(json) -# print the JSON string representation of the object -print(CreateQuestionConfig200Response.to_json()) - -# convert the object into a dict -create_question_config200_response_dict = create_question_config200_response_instance.to_dict() -# create an instance of CreateQuestionConfig200Response from a dict -create_question_config200_response_from_dict = CreateQuestionConfig200Response.from_dict(create_question_config200_response_dict) -``` -[[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/CreateQuestionResult200Response.md b/client/docs/CreateQuestionResult200Response.md deleted file mode 100644 index 360f517..0000000 --- a/client/docs/CreateQuestionResult200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateQuestionResult200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**question_result** | [**QuestionResult**](QuestionResult.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_question_result200_response import CreateQuestionResult200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateQuestionResult200Response from a JSON string -create_question_result200_response_instance = CreateQuestionResult200Response.from_json(json) -# print the JSON string representation of the object -print(CreateQuestionResult200Response.to_json()) - -# convert the object into a dict -create_question_result200_response_dict = create_question_result200_response_instance.to_dict() -# create an instance of CreateQuestionResult200Response from a dict -create_question_result200_response_from_dict = CreateQuestionResult200Response.from_dict(create_question_result200_response_dict) -``` -[[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 1a137c3..0000000 --- a/client/docs/CreateTenant200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateTenant200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant** | [**APITenant**](APITenant.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_tenant200_response import CreateTenant200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateTenant200Response from a JSON string -create_tenant200_response_instance = CreateTenant200Response.from_json(json) -# print the JSON string representation of the object -print(CreateTenant200Response.to_json()) - -# convert the object into a dict -create_tenant200_response_dict = create_tenant200_response_instance.to_dict() -# create an instance of CreateTenant200Response from a dict -create_tenant200_response_from_dict = CreateTenant200Response.from_dict(create_tenant200_response_dict) -``` -[[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 5d55f7f..0000000 --- a/client/docs/CreateTenantPackage200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateTenantPackage200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant_package** | [**TenantPackage**](TenantPackage.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_tenant_package200_response import CreateTenantPackage200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateTenantPackage200Response from a JSON string -create_tenant_package200_response_instance = CreateTenantPackage200Response.from_json(json) -# print the JSON string representation of the object -print(CreateTenantPackage200Response.to_json()) - -# convert the object into a dict -create_tenant_package200_response_dict = create_tenant_package200_response_instance.to_dict() -# create an instance of CreateTenantPackage200Response from a dict -create_tenant_package200_response_from_dict = CreateTenantPackage200Response.from_dict(create_tenant_package200_response_dict) -``` -[[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 d2d54a4..6125ec6 100644 --- a/client/docs/CreateTenantPackageBody.md +++ b/client/docs/CreateTenantPackageBody.md @@ -46,8 +46,8 @@ Name | Type | Description | Notes **flex_admin_unit** | **float** | | [optional] **flex_domain_cost_cents** | **float** | | [optional] **flex_domain_unit** | **float** | | [optional] -**flex_chat_gpt_cost_cents** | **float** | | [optional] -**flex_chat_gpt_unit** | **float** | | [optional] +**flex_llm_cost_cents** | **float** | | [optional] +**flex_llm_unit** | **float** | | [optional] **flex_minimum_cost_cents** | **float** | | [optional] **flex_managed_tenant_cost_cents** | **float** | | [optional] **flex_sso_admin_cost_cents** | **float** | | [optional] diff --git a/client/docs/CreateTenantUser200Response.md b/client/docs/CreateTenantUser200Response.md deleted file mode 100644 index 16d1467..0000000 --- a/client/docs/CreateTenantUser200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateTenantUser200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant_user** | [**User**](User.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_tenant_user200_response import CreateTenantUser200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateTenantUser200Response from a JSON string -create_tenant_user200_response_instance = CreateTenantUser200Response.from_json(json) -# print the JSON string representation of the object -print(CreateTenantUser200Response.to_json()) - -# convert the object into a dict -create_tenant_user200_response_dict = create_tenant_user200_response_instance.to_dict() -# create an instance of CreateTenantUser200Response from a dict -create_tenant_user200_response_from_dict = CreateTenantUser200Response.from_dict(create_tenant_user200_response_dict) -``` -[[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 2d7e83e..0000000 --- a/client/docs/CreateTicket200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# CreateTicket200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicket**](APITicket.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_ticket200_response import CreateTicket200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateTicket200Response from a JSON string -create_ticket200_response_instance = CreateTicket200Response.from_json(json) -# print the JSON string representation of the object -print(CreateTicket200Response.to_json()) - -# convert the object into a dict -create_ticket200_response_dict = create_ticket200_response_instance.to_dict() -# create an instance of CreateTicket200Response from a dict -create_ticket200_response_from_dict = CreateTicket200Response.from_dict(create_ticket200_response_dict) -``` -[[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 c27ca3a..0000000 --- a/client/docs/CreateUserBadge200Response.md +++ /dev/null @@ -1,38 +0,0 @@ -# CreateUserBadge200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user_badge** | [**UserBadge**](UserBadge.md) | | -**notes** | **List[str]** | | [optional] -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.create_user_badge200_response import CreateUserBadge200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of CreateUserBadge200Response from a JSON string -create_user_badge200_response_instance = CreateUserBadge200Response.from_json(json) -# print the JSON string representation of the object -print(CreateUserBadge200Response.to_json()) - -# convert the object into a dict -create_user_badge200_response_dict = create_user_badge200_response_instance.to_dict() -# create an instance of CreateUserBadge200Response from a dict -create_user_badge200_response_from_dict = CreateUserBadge200Response.from_dict(create_user_badge200_response_dict) -``` -[[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..77f36f0 --- /dev/null +++ b/client/docs/CreateV1PageReact.md @@ -0,0 +1,30 @@ +# CreateV1PageReact + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.create_v1_page_react import CreateV1PageReact + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateV1PageReact from a JSON string +create_v1_page_react_instance = CreateV1PageReact.from_json(json) +# print the JSON string representation of the object +print(CreateV1PageReact.to_json()) + +# convert the object into a dict +create_v1_page_react_dict = create_v1_page_react_instance.to_dict() +# create an instance of CreateV1PageReact from a dict +create_v1_page_react_from_dict = CreateV1PageReact.from_dict(create_v1_page_react_dict) +``` +[[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 a98b08e..c9751e4 100644 --- a/client/docs/CustomConfigParameters.md +++ b/client/docs/CustomConfigParameters.md @@ -57,11 +57,14 @@ Name | Type | Description | Notes **no_custom_config** | **bool** | | [optional] **mention_auto_complete_mode** | [**MentionAutoCompleteMode**](MentionAutoCompleteMode.md) | | [optional] **no_image_uploads** | **bool** | | [optional] +**allow_embeds** | **bool** | | [optional] +**allowed_embed_domains** | **List[str]** | | [optional] **no_styles** | **bool** | | [optional] **page_size** | **int** | | [optional] **readonly** | **bool** | | [optional] **no_new_root_comments** | **bool** | | [optional] **require_sso** | **bool** | | [optional] +**enable_f_chat** | **bool** | | [optional] **enable_resize_handle** | **bool** | | [optional] **restricted_link_domains** | **List[str]** | | [optional] **show_badges_in_top_bar** | **bool** | | [optional] @@ -82,6 +85,8 @@ Name | Type | Description | Notes **widget_questions_required** | [**CommentQuestionsRequired**](CommentQuestionsRequired.md) | | [optional] **widget_sub_question_visibility** | [**QuestionSubQuestionVisibility**](QuestionSubQuestionVisibility.md) | | [optional] **wrap** | **bool** | | [optional] +**users_list_location** | [**UsersListLocation**](UsersListLocation.md) | | [optional] +**users_list_include_offline** | **bool** | | [optional] **ticket_base_url** | **str** | | [optional] **ticket_kb_search_endpoint** | **str** | | [optional] **ticket_file_uploads_enabled** | **bool** | | [optional] diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md index d4f0c09..035d8d0 100644 --- a/client/docs/DefaultApi.md +++ b/client/docs/DefaultApi.md @@ -121,7 +121,7 @@ Method | HTTP request | Description # **add_domain_config** -> AddDomainConfig200Response add_domain_config(tenant_id, add_domain_config_params) +> AddDomainConfigResponse add_domain_config(tenant_id, add_domain_config_params) @@ -131,8 +131,8 @@ Method | HTTP request | Description ```python import client -from client.models.add_domain_config200_response import AddDomainConfig200Response from client.models.add_domain_config_params import AddDomainConfigParams +from client.models.add_domain_config_response import AddDomainConfigResponse from client.rest import ApiException from pprint import pprint @@ -180,7 +180,7 @@ Name | Type | Description | Notes ### Return type -[**AddDomainConfig200Response**](AddDomainConfig200Response.md) +[**AddDomainConfigResponse**](AddDomainConfigResponse.md) ### Authorization @@ -200,7 +200,7 @@ Name | Type | Description | Notes [[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) # **add_hash_tag** -> AddHashTag200Response add_hash_tag(tenant_id=tenant_id, create_hash_tag_body=create_hash_tag_body) +> CreateHashTagResponse add_hash_tag(tenant_id=tenant_id, create_hash_tag_body=create_hash_tag_body) @@ -210,8 +210,8 @@ Name | Type | Description | Notes ```python import client -from client.models.add_hash_tag200_response import AddHashTag200Response from client.models.create_hash_tag_body import CreateHashTagBody +from client.models.create_hash_tag_response import CreateHashTagResponse from client.rest import ApiException from pprint import pprint @@ -259,7 +259,7 @@ Name | Type | Description | Notes ### Return type -[**AddHashTag200Response**](AddHashTag200Response.md) +[**CreateHashTagResponse**](CreateHashTagResponse.md) ### Authorization @@ -275,11 +275,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **add_hash_tags_bulk** -> AddHashTagsBulk200Response add_hash_tags_bulk(tenant_id=tenant_id, bulk_create_hash_tags_body=bulk_create_hash_tags_body) +> BulkCreateHashTagsResponse add_hash_tags_bulk(tenant_id=tenant_id, bulk_create_hash_tags_body=bulk_create_hash_tags_body) @@ -289,8 +290,8 @@ Name | Type | Description | Notes ```python import client -from client.models.add_hash_tags_bulk200_response import AddHashTagsBulk200Response from client.models.bulk_create_hash_tags_body import BulkCreateHashTagsBody +from client.models.bulk_create_hash_tags_response import BulkCreateHashTagsResponse from client.rest import ApiException from pprint import pprint @@ -338,7 +339,7 @@ Name | Type | Description | Notes ### Return type -[**AddHashTagsBulk200Response**](AddHashTagsBulk200Response.md) +[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) ### Authorization @@ -354,6 +355,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -516,7 +518,7 @@ Name | Type | Description | Notes [[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) # **aggregate** -> AggregationResponse aggregate(tenant_id, aggregation_request, parent_tenant_id=parent_tenant_id, include_stats=include_stats) +> AggregateResponse aggregate(tenant_id, aggregation_request, parent_tenant_id=parent_tenant_id, include_stats=include_stats) @@ -528,8 +530,8 @@ Aggregates documents by grouping them (if groupBy is provided) and applying mult ```python import client +from client.models.aggregate_response import AggregateResponse from client.models.aggregation_request import AggregationRequest -from client.models.aggregation_response import AggregationResponse from client.rest import ApiException from pprint import pprint @@ -581,7 +583,7 @@ Name | Type | Description | Notes ### Return type -[**AggregationResponse**](AggregationResponse.md) +[**AggregateResponse**](AggregateResponse.md) ### Authorization @@ -601,7 +603,7 @@ Name | Type | Description | Notes [[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) # **aggregate_question_results** -> AggregateQuestionResults200Response aggregate_question_results(tenant_id, question_id=question_id, question_ids=question_ids, url_id=url_id, time_bucket=time_bucket, start_date=start_date, force_recalculate=force_recalculate) +> AggregateQuestionResultsResponse aggregate_question_results(tenant_id, question_id=question_id, question_ids=question_ids, url_id=url_id, time_bucket=time_bucket, start_date=start_date, force_recalculate=force_recalculate) @@ -611,7 +613,7 @@ Name | Type | Description | Notes ```python import client -from client.models.aggregate_question_results200_response import AggregateQuestionResults200Response +from client.models.aggregate_question_results_response import AggregateQuestionResultsResponse from client.models.aggregate_time_bucket import AggregateTimeBucket from client.rest import ApiException from pprint import pprint @@ -670,7 +672,7 @@ Name | Type | Description | Notes ### Return type -[**AggregateQuestionResults200Response**](AggregateQuestionResults200Response.md) +[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) ### Authorization @@ -686,11 +688,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **block_user_from_comment** -> BlockFromCommentPublic200Response block_user_from_comment(tenant_id, id, block_from_comment_params, user_id=user_id, anon_user_id=anon_user_id) +> BlockSuccess block_user_from_comment(tenant_id, id, block_from_comment_params, user_id=user_id, anon_user_id=anon_user_id) @@ -701,7 +704,7 @@ Name | Type | Description | Notes ```python import client from client.models.block_from_comment_params import BlockFromCommentParams -from client.models.block_from_comment_public200_response import BlockFromCommentPublic200Response +from client.models.block_success import BlockSuccess from client.rest import ApiException from pprint import pprint @@ -755,7 +758,7 @@ Name | Type | Description | Notes ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -771,11 +774,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **bulk_aggregate_question_results** -> BulkAggregateQuestionResults200Response bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, force_recalculate=force_recalculate) +> BulkAggregateQuestionResultsResponse bulk_aggregate_question_results(tenant_id, bulk_aggregate_question_results_request, force_recalculate=force_recalculate) @@ -785,8 +789,8 @@ Name | Type | Description | Notes ```python import client -from client.models.bulk_aggregate_question_results200_response import BulkAggregateQuestionResults200Response from client.models.bulk_aggregate_question_results_request import BulkAggregateQuestionResultsRequest +from client.models.bulk_aggregate_question_results_response import BulkAggregateQuestionResultsResponse from client.rest import ApiException from pprint import pprint @@ -836,7 +840,7 @@ Name | Type | Description | Notes ### Return type -[**BulkAggregateQuestionResults200Response**](BulkAggregateQuestionResults200Response.md) +[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -852,11 +856,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **change_ticket_state** -> ChangeTicketState200Response change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) +> ChangeTicketStateResponse change_ticket_state(tenant_id, user_id, id, change_ticket_state_body) @@ -866,8 +871,8 @@ Name | Type | Description | Notes ```python import client -from client.models.change_ticket_state200_response import ChangeTicketState200Response from client.models.change_ticket_state_body import ChangeTicketStateBody +from client.models.change_ticket_state_response import ChangeTicketStateResponse from client.rest import ApiException from pprint import pprint @@ -919,7 +924,7 @@ Name | Type | Description | Notes ### Return type -[**ChangeTicketState200Response**](ChangeTicketState200Response.md) +[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) ### Authorization @@ -935,11 +940,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **combine_comments_with_question_results** -> CombineCommentsWithQuestionResults200Response combine_comments_with_question_results(tenant_id, question_id=question_id, question_ids=question_ids, url_id=url_id, start_date=start_date, force_recalculate=force_recalculate, min_value=min_value, max_value=max_value, limit=limit) +> CombineQuestionResultsWithCommentsResponse combine_comments_with_question_results(tenant_id, question_id=question_id, question_ids=question_ids, url_id=url_id, start_date=start_date, force_recalculate=force_recalculate, min_value=min_value, max_value=max_value, limit=limit) @@ -949,7 +955,7 @@ Name | Type | Description | Notes ```python import client -from client.models.combine_comments_with_question_results200_response import CombineCommentsWithQuestionResults200Response +from client.models.combine_question_results_with_comments_response import CombineQuestionResultsWithCommentsResponse from client.rest import ApiException from pprint import pprint @@ -1011,7 +1017,7 @@ Name | Type | Description | Notes ### Return type -[**CombineCommentsWithQuestionResults200Response**](CombineCommentsWithQuestionResults200Response.md) +[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -1027,11 +1033,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_email_template** -> CreateEmailTemplate200Response create_email_template(tenant_id, create_email_template_body) +> CreateEmailTemplateResponse create_email_template(tenant_id, create_email_template_body) @@ -1041,8 +1048,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_email_template200_response import CreateEmailTemplate200Response from client.models.create_email_template_body import CreateEmailTemplateBody +from client.models.create_email_template_response import CreateEmailTemplateResponse from client.rest import ApiException from pprint import pprint @@ -1090,7 +1097,7 @@ Name | Type | Description | Notes ### Return type -[**CreateEmailTemplate200Response**](CreateEmailTemplate200Response.md) +[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) ### Authorization @@ -1106,11 +1113,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_feed_post** -> CreateFeedPost200Response create_feed_post(tenant_id, create_feed_post_params, broadcast_id=broadcast_id, is_live=is_live, do_spam_check=do_spam_check, skip_dup_check=skip_dup_check) +> CreateFeedPostsResponse create_feed_post(tenant_id, create_feed_post_params, broadcast_id=broadcast_id, is_live=is_live, do_spam_check=do_spam_check, skip_dup_check=skip_dup_check) @@ -1120,8 +1128,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_feed_post200_response import CreateFeedPost200Response from client.models.create_feed_post_params import CreateFeedPostParams +from client.models.create_feed_posts_response import CreateFeedPostsResponse from client.rest import ApiException from pprint import pprint @@ -1177,7 +1185,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPost200Response**](CreateFeedPost200Response.md) +[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) ### Authorization @@ -1193,11 +1201,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_moderator** -> CreateModerator200Response create_moderator(tenant_id, create_moderator_body) +> CreateModeratorResponse create_moderator(tenant_id, create_moderator_body) @@ -1207,8 +1216,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_moderator200_response import CreateModerator200Response from client.models.create_moderator_body import CreateModeratorBody +from client.models.create_moderator_response import CreateModeratorResponse from client.rest import ApiException from pprint import pprint @@ -1256,7 +1265,7 @@ Name | Type | Description | Notes ### Return type -[**CreateModerator200Response**](CreateModerator200Response.md) +[**CreateModeratorResponse**](CreateModeratorResponse.md) ### Authorization @@ -1272,11 +1281,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_question_config** -> CreateQuestionConfig200Response create_question_config(tenant_id, create_question_config_body) +> CreateQuestionConfigResponse create_question_config(tenant_id, create_question_config_body) @@ -1286,8 +1296,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_question_config200_response import CreateQuestionConfig200Response from client.models.create_question_config_body import CreateQuestionConfigBody +from client.models.create_question_config_response import CreateQuestionConfigResponse from client.rest import ApiException from pprint import pprint @@ -1335,7 +1345,7 @@ Name | Type | Description | Notes ### Return type -[**CreateQuestionConfig200Response**](CreateQuestionConfig200Response.md) +[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) ### Authorization @@ -1351,11 +1361,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_question_result** -> CreateQuestionResult200Response create_question_result(tenant_id, create_question_result_body) +> CreateQuestionResultResponse create_question_result(tenant_id, create_question_result_body) @@ -1365,8 +1376,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_question_result200_response import CreateQuestionResult200Response from client.models.create_question_result_body import CreateQuestionResultBody +from client.models.create_question_result_response import CreateQuestionResultResponse from client.rest import ApiException from pprint import pprint @@ -1414,7 +1425,7 @@ Name | Type | Description | Notes ### Return type -[**CreateQuestionResult200Response**](CreateQuestionResult200Response.md) +[**CreateQuestionResultResponse**](CreateQuestionResultResponse.md) ### Authorization @@ -1430,6 +1441,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -1513,7 +1525,7 @@ Name | Type | Description | Notes [[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_tenant** -> CreateTenant200Response create_tenant(tenant_id, create_tenant_body) +> CreateTenantResponse create_tenant(tenant_id, create_tenant_body) @@ -1523,8 +1535,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_tenant200_response import CreateTenant200Response from client.models.create_tenant_body import CreateTenantBody +from client.models.create_tenant_response import CreateTenantResponse from client.rest import ApiException from pprint import pprint @@ -1572,7 +1584,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenant200Response**](CreateTenant200Response.md) +[**CreateTenantResponse**](CreateTenantResponse.md) ### Authorization @@ -1588,11 +1600,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_package** -> CreateTenantPackage200Response create_tenant_package(tenant_id, create_tenant_package_body) +> CreateTenantPackageResponse create_tenant_package(tenant_id, create_tenant_package_body) @@ -1602,8 +1615,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_tenant_package200_response import CreateTenantPackage200Response from client.models.create_tenant_package_body import CreateTenantPackageBody +from client.models.create_tenant_package_response import CreateTenantPackageResponse from client.rest import ApiException from pprint import pprint @@ -1651,7 +1664,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenantPackage200Response**](CreateTenantPackage200Response.md) +[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) ### Authorization @@ -1667,11 +1680,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_user** -> CreateTenantUser200Response create_tenant_user(tenant_id, create_tenant_user_body) +> CreateTenantUserResponse create_tenant_user(tenant_id, create_tenant_user_body) @@ -1681,8 +1695,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_tenant_user200_response import CreateTenantUser200Response from client.models.create_tenant_user_body import CreateTenantUserBody +from client.models.create_tenant_user_response import CreateTenantUserResponse from client.rest import ApiException from pprint import pprint @@ -1730,7 +1744,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenantUser200Response**](CreateTenantUser200Response.md) +[**CreateTenantUserResponse**](CreateTenantUserResponse.md) ### Authorization @@ -1746,11 +1760,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_ticket** -> CreateTicket200Response create_ticket(tenant_id, user_id, create_ticket_body) +> CreateTicketResponse create_ticket(tenant_id, user_id, create_ticket_body) @@ -1760,8 +1775,8 @@ Name | Type | Description | Notes ```python import client -from client.models.create_ticket200_response import CreateTicket200Response from client.models.create_ticket_body import CreateTicketBody +from client.models.create_ticket_response import CreateTicketResponse from client.rest import ApiException from pprint import pprint @@ -1811,7 +1826,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTicket200Response**](CreateTicket200Response.md) +[**CreateTicketResponse**](CreateTicketResponse.md) ### Authorization @@ -1827,11 +1842,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_user_badge** -> CreateUserBadge200Response create_user_badge(tenant_id, create_user_badge_params) +> APICreateUserBadgeResponse create_user_badge(tenant_id, create_user_badge_params) @@ -1841,7 +1857,7 @@ Name | Type | Description | Notes ```python import client -from client.models.create_user_badge200_response import CreateUserBadge200Response +from client.models.api_create_user_badge_response import APICreateUserBadgeResponse from client.models.create_user_badge_params import CreateUserBadgeParams from client.rest import ApiException from pprint import pprint @@ -1890,7 +1906,7 @@ Name | Type | Description | Notes ### Return type -[**CreateUserBadge200Response**](CreateUserBadge200Response.md) +[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) ### Authorization @@ -1906,11 +1922,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_vote** -> VoteComment200Response create_vote(tenant_id, comment_id, direction, user_id=user_id, anon_user_id=anon_user_id) +> VoteResponse create_vote(tenant_id, comment_id, direction, user_id=user_id, anon_user_id=anon_user_id) @@ -1920,7 +1937,7 @@ Name | Type | Description | Notes ```python import client -from client.models.vote_comment200_response import VoteComment200Response +from client.models.vote_response import VoteResponse from client.rest import ApiException from pprint import pprint @@ -1974,7 +1991,7 @@ Name | Type | Description | Notes ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -1990,11 +2007,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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** -> DeleteComment200Response delete_comment(tenant_id, id, context_user_id=context_user_id, is_live=is_live) +> DeleteCommentResult delete_comment(tenant_id, id, context_user_id=context_user_id, is_live=is_live) @@ -2004,7 +2022,7 @@ Name | Type | Description | Notes ```python import client -from client.models.delete_comment200_response import DeleteComment200Response +from client.models.delete_comment_result import DeleteCommentResult from client.rest import ApiException from pprint import pprint @@ -2056,7 +2074,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteComment200Response**](DeleteComment200Response.md) +[**DeleteCommentResult**](DeleteCommentResult.md) ### Authorization @@ -2072,11 +2090,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_domain_config** -> DeleteDomainConfig200Response delete_domain_config(tenant_id, domain) +> DeleteDomainConfigResponse delete_domain_config(tenant_id, domain) @@ -2086,7 +2105,7 @@ Name | Type | Description | Notes ```python import client -from client.models.delete_domain_config200_response import DeleteDomainConfig200Response +from client.models.delete_domain_config_response import DeleteDomainConfigResponse from client.rest import ApiException from pprint import pprint @@ -2134,7 +2153,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteDomainConfig200Response**](DeleteDomainConfig200Response.md) +[**DeleteDomainConfigResponse**](DeleteDomainConfigResponse.md) ### Authorization @@ -2154,7 +2173,7 @@ Name | Type | Description | Notes [[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_email_template** -> FlagCommentPublic200Response delete_email_template(tenant_id, id) +> APIEmptyResponse delete_email_template(tenant_id, id) @@ -2164,7 +2183,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -2212,7 +2231,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2228,11 +2247,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_email_template_render_error** -> FlagCommentPublic200Response delete_email_template_render_error(tenant_id, id, error_id) +> APIEmptyResponse delete_email_template_render_error(tenant_id, id, error_id) @@ -2242,7 +2262,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -2292,7 +2312,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2308,11 +2328,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_hash_tag** -> FlagCommentPublic200Response delete_hash_tag(tag, tenant_id=tenant_id, delete_hash_tag_request=delete_hash_tag_request) +> APIEmptyResponse delete_hash_tag(tag, tenant_id=tenant_id, delete_hash_tag_request_body=delete_hash_tag_request_body) @@ -2322,8 +2343,8 @@ Name | Type | Description | Notes ```python import client -from client.models.delete_hash_tag_request import DeleteHashTagRequest -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse +from client.models.delete_hash_tag_request_body import DeleteHashTagRequestBody from client.rest import ApiException from pprint import pprint @@ -2350,10 +2371,10 @@ with client.ApiClient(configuration) as api_client: api_instance = client.DefaultApi(api_client) tag = 'tag_example' # str | tenant_id = 'tenant_id_example' # str | (optional) - delete_hash_tag_request = client.DeleteHashTagRequest() # DeleteHashTagRequest | (optional) + delete_hash_tag_request_body = client.DeleteHashTagRequestBody() # DeleteHashTagRequestBody | (optional) try: - api_response = api_instance.delete_hash_tag(tag, tenant_id=tenant_id, delete_hash_tag_request=delete_hash_tag_request) + api_response = api_instance.delete_hash_tag(tag, tenant_id=tenant_id, delete_hash_tag_request_body=delete_hash_tag_request_body) print("The response of DefaultApi->delete_hash_tag:\n") pprint(api_response) except Exception as e: @@ -2369,11 +2390,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tag** | **str**| | **tenant_id** | **str**| | [optional] - **delete_hash_tag_request** | [**DeleteHashTagRequest**](DeleteHashTagRequest.md)| | [optional] + **delete_hash_tag_request_body** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md)| | [optional] ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2389,11 +2410,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_moderator** -> FlagCommentPublic200Response delete_moderator(tenant_id, id, send_email=send_email) +> APIEmptyResponse delete_moderator(tenant_id, id, send_email=send_email) @@ -2403,7 +2425,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -2453,7 +2475,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2469,11 +2491,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_notification_count** -> FlagCommentPublic200Response delete_notification_count(tenant_id, id) +> APIEmptyResponse delete_notification_count(tenant_id, id) @@ -2483,7 +2506,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -2531,7 +2554,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2547,6 +2570,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -2629,7 +2653,7 @@ Name | Type | Description | Notes [[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_pending_webhook_event** -> FlagCommentPublic200Response delete_pending_webhook_event(tenant_id, id) +> APIEmptyResponse delete_pending_webhook_event(tenant_id, id) @@ -2639,7 +2663,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -2687,7 +2711,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2703,11 +2727,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_question_config** -> FlagCommentPublic200Response delete_question_config(tenant_id, id) +> APIEmptyResponse delete_question_config(tenant_id, id) @@ -2717,7 +2742,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -2765,7 +2790,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2781,11 +2806,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_question_result** -> FlagCommentPublic200Response delete_question_result(tenant_id, id) +> APIEmptyResponse delete_question_result(tenant_id, id) @@ -2795,7 +2821,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -2843,7 +2869,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2859,6 +2885,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -3025,7 +3052,7 @@ Name | Type | Description | Notes [[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_tenant** -> FlagCommentPublic200Response delete_tenant(tenant_id, id, sure=sure) +> APIEmptyResponse delete_tenant(tenant_id, id, sure=sure) @@ -3035,7 +3062,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -3085,7 +3112,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3101,11 +3128,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_package** -> FlagCommentPublic200Response delete_tenant_package(tenant_id, id) +> APIEmptyResponse delete_tenant_package(tenant_id, id) @@ -3115,7 +3143,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -3163,7 +3191,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3179,11 +3207,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_user** -> FlagCommentPublic200Response delete_tenant_user(tenant_id, id, delete_comments=delete_comments, comment_delete_mode=comment_delete_mode) +> APIEmptyResponse delete_tenant_user(tenant_id, id, delete_comments=delete_comments, comment_delete_mode=comment_delete_mode) @@ -3193,7 +3222,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -3245,7 +3274,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -3261,11 +3290,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_user_badge** -> UpdateUserBadge200Response delete_user_badge(tenant_id, id) +> APIEmptySuccessResponse delete_user_badge(tenant_id, id) @@ -3275,7 +3305,7 @@ Name | Type | Description | Notes ```python import client -from client.models.update_user_badge200_response import UpdateUserBadge200Response +from client.models.api_empty_success_response import APIEmptySuccessResponse from client.rest import ApiException from pprint import pprint @@ -3323,7 +3353,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -3339,11 +3369,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_vote** -> DeleteCommentVote200Response delete_vote(tenant_id, id, edit_key=edit_key) +> VoteDeleteResponse delete_vote(tenant_id, id, edit_key=edit_key) @@ -3353,7 +3384,7 @@ Name | Type | Description | Notes ```python import client -from client.models.delete_comment_vote200_response import DeleteCommentVote200Response +from client.models.vote_delete_response import VoteDeleteResponse from client.rest import ApiException from pprint import pprint @@ -3403,7 +3434,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -3419,11 +3450,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **flag_comment** -> FlagComment200Response flag_comment(tenant_id, id, user_id=user_id, anon_user_id=anon_user_id) +> FlagCommentResponse flag_comment(tenant_id, id, user_id=user_id, anon_user_id=anon_user_id) @@ -3433,7 +3465,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment200_response import FlagComment200Response +from client.models.flag_comment_response import FlagCommentResponse from client.rest import ApiException from pprint import pprint @@ -3485,7 +3517,7 @@ Name | Type | Description | Notes ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -3501,11 +3533,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_audit_logs** -> GetAuditLogs200Response get_audit_logs(tenant_id, limit=limit, skip=skip, order=order, after=after, before=before) +> GetAuditLogsResponse get_audit_logs(tenant_id, limit=limit, skip=skip, order=order, after=after, before=before) @@ -3515,7 +3548,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_audit_logs200_response import GetAuditLogs200Response +from client.models.get_audit_logs_response import GetAuditLogsResponse from client.models.sortdir import SORTDIR from client.rest import ApiException from pprint import pprint @@ -3572,7 +3605,7 @@ Name | Type | Description | Notes ### Return type -[**GetAuditLogs200Response**](GetAuditLogs200Response.md) +[**GetAuditLogsResponse**](GetAuditLogsResponse.md) ### Authorization @@ -3588,11 +3621,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_cached_notification_count** -> GetCachedNotificationCount200Response get_cached_notification_count(tenant_id, id) +> GetCachedNotificationCountResponse get_cached_notification_count(tenant_id, id) @@ -3602,7 +3636,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_cached_notification_count200_response import GetCachedNotificationCount200Response +from client.models.get_cached_notification_count_response import GetCachedNotificationCountResponse from client.rest import ApiException from pprint import pprint @@ -3650,7 +3684,7 @@ Name | Type | Description | Notes ### Return type -[**GetCachedNotificationCount200Response**](GetCachedNotificationCount200Response.md) +[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) ### Authorization @@ -3666,11 +3700,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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** -> GetComment200Response get_comment(tenant_id, id) +> APIGetCommentResponse get_comment(tenant_id, id) @@ -3680,7 +3715,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_comment200_response import GetComment200Response +from client.models.api_get_comment_response import APIGetCommentResponse from client.rest import ApiException from pprint import pprint @@ -3728,7 +3763,7 @@ Name | Type | Description | Notes ### Return type -[**GetComment200Response**](GetComment200Response.md) +[**APIGetCommentResponse**](APIGetCommentResponse.md) ### Authorization @@ -3744,11 +3779,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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** -> GetComments200Response get_comments(tenant_id, page=page, limit=limit, skip=skip, as_tree=as_tree, skip_children=skip_children, limit_children=limit_children, max_tree_depth=max_tree_depth, url_id=url_id, user_id=user_id, anon_user_id=anon_user_id, context_user_id=context_user_id, hash_tag=hash_tag, parent_id=parent_id, direction=direction) +> APIGetCommentsResponse get_comments(tenant_id, page=page, limit=limit, skip=skip, as_tree=as_tree, skip_children=skip_children, limit_children=limit_children, max_tree_depth=max_tree_depth, url_id=url_id, user_id=user_id, anon_user_id=anon_user_id, context_user_id=context_user_id, hash_tag=hash_tag, parent_id=parent_id, direction=direction, from_date=from_date, to_date=to_date) @@ -3758,7 +3794,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_comments200_response import GetComments200Response +from client.models.api_get_comments_response import APIGetCommentsResponse from client.models.sort_directions import SortDirections from client.rest import ApiException from pprint import pprint @@ -3799,9 +3835,11 @@ with client.ApiClient(configuration) as api_client: hash_tag = 'hash_tag_example' # str | (optional) parent_id = 'parent_id_example' # str | (optional) direction = client.SortDirections() # SortDirections | (optional) + from_date = 56 # int | (optional) + to_date = 56 # int | (optional) try: - api_response = api_instance.get_comments(tenant_id, page=page, limit=limit, skip=skip, as_tree=as_tree, skip_children=skip_children, limit_children=limit_children, max_tree_depth=max_tree_depth, url_id=url_id, user_id=user_id, anon_user_id=anon_user_id, context_user_id=context_user_id, hash_tag=hash_tag, parent_id=parent_id, direction=direction) + api_response = api_instance.get_comments(tenant_id, page=page, limit=limit, skip=skip, as_tree=as_tree, skip_children=skip_children, limit_children=limit_children, max_tree_depth=max_tree_depth, url_id=url_id, user_id=user_id, anon_user_id=anon_user_id, context_user_id=context_user_id, hash_tag=hash_tag, parent_id=parent_id, direction=direction, from_date=from_date, to_date=to_date) print("The response of DefaultApi->get_comments:\n") pprint(api_response) except Exception as e: @@ -3830,10 +3868,12 @@ Name | Type | Description | Notes **hash_tag** | **str**| | [optional] **parent_id** | **str**| | [optional] **direction** | [**SortDirections**](.md)| | [optional] + **from_date** | **int**| | [optional] + **to_date** | **int**| | [optional] ### Return type -[**GetComments200Response**](GetComments200Response.md) +[**APIGetCommentsResponse**](APIGetCommentsResponse.md) ### Authorization @@ -3849,11 +3889,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_domain_config** -> GetDomainConfig200Response get_domain_config(tenant_id, domain) +> GetDomainConfigResponse get_domain_config(tenant_id, domain) @@ -3863,7 +3904,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_domain_config200_response import GetDomainConfig200Response +from client.models.get_domain_config_response import GetDomainConfigResponse from client.rest import ApiException from pprint import pprint @@ -3911,7 +3952,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**GetDomainConfigResponse**](GetDomainConfigResponse.md) ### Authorization @@ -3931,7 +3972,7 @@ Name | Type | Description | Notes [[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_domain_configs** -> GetDomainConfigs200Response get_domain_configs(tenant_id) +> GetDomainConfigsResponse get_domain_configs(tenant_id) @@ -3941,7 +3982,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_domain_configs200_response import GetDomainConfigs200Response +from client.models.get_domain_configs_response import GetDomainConfigsResponse from client.rest import ApiException from pprint import pprint @@ -3987,7 +4028,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfigs200Response**](GetDomainConfigs200Response.md) +[**GetDomainConfigsResponse**](GetDomainConfigsResponse.md) ### Authorization @@ -4007,7 +4048,7 @@ Name | Type | Description | Notes [[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_email_template** -> GetEmailTemplate200Response get_email_template(tenant_id, id) +> GetEmailTemplateResponse get_email_template(tenant_id, id) @@ -4017,7 +4058,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_email_template200_response import GetEmailTemplate200Response +from client.models.get_email_template_response import GetEmailTemplateResponse from client.rest import ApiException from pprint import pprint @@ -4065,7 +4106,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplate200Response**](GetEmailTemplate200Response.md) +[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) ### Authorization @@ -4081,11 +4122,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_email_template_definitions** -> GetEmailTemplateDefinitions200Response get_email_template_definitions(tenant_id) +> GetEmailTemplateDefinitionsResponse get_email_template_definitions(tenant_id) @@ -4095,7 +4137,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_email_template_definitions200_response import GetEmailTemplateDefinitions200Response +from client.models.get_email_template_definitions_response import GetEmailTemplateDefinitionsResponse from client.rest import ApiException from pprint import pprint @@ -4141,7 +4183,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplateDefinitions200Response**](GetEmailTemplateDefinitions200Response.md) +[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -4157,11 +4199,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_email_template_render_errors** -> GetEmailTemplateRenderErrors200Response get_email_template_render_errors(tenant_id, id, skip=skip) +> GetEmailTemplateRenderErrorsResponse get_email_template_render_errors(tenant_id, id, skip=skip) @@ -4171,7 +4214,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_email_template_render_errors200_response import GetEmailTemplateRenderErrors200Response +from client.models.get_email_template_render_errors_response import GetEmailTemplateRenderErrorsResponse from client.rest import ApiException from pprint import pprint @@ -4221,7 +4264,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplateRenderErrors200Response**](GetEmailTemplateRenderErrors200Response.md) +[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -4237,11 +4280,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_email_templates** -> GetEmailTemplates200Response get_email_templates(tenant_id, skip=skip) +> GetEmailTemplatesResponse get_email_templates(tenant_id, skip=skip) @@ -4251,7 +4295,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_email_templates200_response import GetEmailTemplates200Response +from client.models.get_email_templates_response import GetEmailTemplatesResponse from client.rest import ApiException from pprint import pprint @@ -4299,7 +4343,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplates200Response**](GetEmailTemplates200Response.md) +[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) ### Authorization @@ -4315,11 +4359,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_feed_posts** -> GetFeedPosts200Response get_feed_posts(tenant_id, after_id=after_id, limit=limit, tags=tags) +> GetFeedPostsResponse get_feed_posts(tenant_id, after_id=after_id, limit=limit, tags=tags) @@ -4331,7 +4376,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_feed_posts200_response import GetFeedPosts200Response +from client.models.get_feed_posts_response import GetFeedPostsResponse from client.rest import ApiException from pprint import pprint @@ -4383,7 +4428,7 @@ Name | Type | Description | Notes ### Return type -[**GetFeedPosts200Response**](GetFeedPosts200Response.md) +[**GetFeedPostsResponse**](GetFeedPostsResponse.md) ### Authorization @@ -4399,11 +4444,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_hash_tags** -> GetHashTags200Response get_hash_tags(tenant_id, page=page) +> GetHashTagsResponse get_hash_tags(tenant_id, page=page) @@ -4413,7 +4459,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_hash_tags200_response import GetHashTags200Response +from client.models.get_hash_tags_response import GetHashTagsResponse from client.rest import ApiException from pprint import pprint @@ -4461,7 +4507,7 @@ Name | Type | Description | Notes ### Return type -[**GetHashTags200Response**](GetHashTags200Response.md) +[**GetHashTagsResponse**](GetHashTagsResponse.md) ### Authorization @@ -4477,11 +4523,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_moderator** -> GetModerator200Response get_moderator(tenant_id, id) +> GetModeratorResponse get_moderator(tenant_id, id) @@ -4491,7 +4538,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_moderator200_response import GetModerator200Response +from client.models.get_moderator_response import GetModeratorResponse from client.rest import ApiException from pprint import pprint @@ -4539,7 +4586,7 @@ Name | Type | Description | Notes ### Return type -[**GetModerator200Response**](GetModerator200Response.md) +[**GetModeratorResponse**](GetModeratorResponse.md) ### Authorization @@ -4555,11 +4602,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_moderators** -> GetModerators200Response get_moderators(tenant_id, skip=skip) +> GetModeratorsResponse get_moderators(tenant_id, skip=skip) @@ -4569,7 +4617,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_moderators200_response import GetModerators200Response +from client.models.get_moderators_response import GetModeratorsResponse from client.rest import ApiException from pprint import pprint @@ -4617,7 +4665,7 @@ Name | Type | Description | Notes ### Return type -[**GetModerators200Response**](GetModerators200Response.md) +[**GetModeratorsResponse**](GetModeratorsResponse.md) ### Authorization @@ -4633,11 +4681,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_notification_count** -> GetNotificationCount200Response get_notification_count(tenant_id, user_id=user_id, url_id=url_id, from_comment_id=from_comment_id, viewed=viewed, type=type) +> GetNotificationCountResponse get_notification_count(tenant_id, user_id=user_id, url_id=url_id, from_comment_id=from_comment_id, viewed=viewed, type=type) @@ -4647,7 +4696,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_notification_count200_response import GetNotificationCount200Response +from client.models.get_notification_count_response import GetNotificationCountResponse from client.rest import ApiException from pprint import pprint @@ -4703,7 +4752,7 @@ Name | Type | Description | Notes ### Return type -[**GetNotificationCount200Response**](GetNotificationCount200Response.md) +[**GetNotificationCountResponse**](GetNotificationCountResponse.md) ### Authorization @@ -4719,11 +4768,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_notifications** -> GetNotifications200Response get_notifications(tenant_id, user_id=user_id, url_id=url_id, from_comment_id=from_comment_id, viewed=viewed, type=type, skip=skip) +> GetNotificationsResponse get_notifications(tenant_id, user_id=user_id, url_id=url_id, from_comment_id=from_comment_id, viewed=viewed, type=type, skip=skip) @@ -4733,7 +4783,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_notifications200_response import GetNotifications200Response +from client.models.get_notifications_response import GetNotificationsResponse from client.rest import ApiException from pprint import pprint @@ -4791,7 +4841,7 @@ Name | Type | Description | Notes ### Return type -[**GetNotifications200Response**](GetNotifications200Response.md) +[**GetNotificationsResponse**](GetNotificationsResponse.md) ### Authorization @@ -4807,6 +4857,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -4965,7 +5016,7 @@ Name | Type | Description | Notes [[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_pending_webhook_event_count** -> GetPendingWebhookEventCount200Response get_pending_webhook_event_count(tenant_id, comment_id=comment_id, external_id=external_id, event_type=event_type, type=type, domain=domain, attempt_count_gt=attempt_count_gt) +> GetPendingWebhookEventCountResponse get_pending_webhook_event_count(tenant_id, comment_id=comment_id, external_id=external_id, event_type=event_type, type=type, domain=domain, attempt_count_gt=attempt_count_gt) @@ -4975,7 +5026,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_pending_webhook_event_count200_response import GetPendingWebhookEventCount200Response +from client.models.get_pending_webhook_event_count_response import GetPendingWebhookEventCountResponse from client.rest import ApiException from pprint import pprint @@ -5033,7 +5084,7 @@ Name | Type | Description | Notes ### Return type -[**GetPendingWebhookEventCount200Response**](GetPendingWebhookEventCount200Response.md) +[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) ### Authorization @@ -5049,11 +5100,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_pending_webhook_events** -> GetPendingWebhookEvents200Response get_pending_webhook_events(tenant_id, comment_id=comment_id, external_id=external_id, event_type=event_type, type=type, domain=domain, attempt_count_gt=attempt_count_gt, skip=skip) +> GetPendingWebhookEventsResponse get_pending_webhook_events(tenant_id, comment_id=comment_id, external_id=external_id, event_type=event_type, type=type, domain=domain, attempt_count_gt=attempt_count_gt, skip=skip) @@ -5063,7 +5115,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_pending_webhook_events200_response import GetPendingWebhookEvents200Response +from client.models.get_pending_webhook_events_response import GetPendingWebhookEventsResponse from client.rest import ApiException from pprint import pprint @@ -5123,7 +5175,7 @@ Name | Type | Description | Notes ### Return type -[**GetPendingWebhookEvents200Response**](GetPendingWebhookEvents200Response.md) +[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) ### Authorization @@ -5139,11 +5191,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_question_config** -> GetQuestionConfig200Response get_question_config(tenant_id, id) +> GetQuestionConfigResponse get_question_config(tenant_id, id) @@ -5153,7 +5206,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_question_config200_response import GetQuestionConfig200Response +from client.models.get_question_config_response import GetQuestionConfigResponse from client.rest import ApiException from pprint import pprint @@ -5201,7 +5254,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionConfig200Response**](GetQuestionConfig200Response.md) +[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) ### Authorization @@ -5217,11 +5270,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_question_configs** -> GetQuestionConfigs200Response get_question_configs(tenant_id, skip=skip) +> GetQuestionConfigsResponse get_question_configs(tenant_id, skip=skip) @@ -5231,7 +5285,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_question_configs200_response import GetQuestionConfigs200Response +from client.models.get_question_configs_response import GetQuestionConfigsResponse from client.rest import ApiException from pprint import pprint @@ -5279,7 +5333,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionConfigs200Response**](GetQuestionConfigs200Response.md) +[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) ### Authorization @@ -5295,11 +5349,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_question_result** -> GetQuestionResult200Response get_question_result(tenant_id, id) +> GetQuestionResultResponse get_question_result(tenant_id, id) @@ -5309,7 +5364,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_question_result200_response import GetQuestionResult200Response +from client.models.get_question_result_response import GetQuestionResultResponse from client.rest import ApiException from pprint import pprint @@ -5357,7 +5412,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionResult200Response**](GetQuestionResult200Response.md) +[**GetQuestionResultResponse**](GetQuestionResultResponse.md) ### Authorization @@ -5373,11 +5428,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_question_results** -> GetQuestionResults200Response get_question_results(tenant_id, url_id=url_id, user_id=user_id, start_date=start_date, question_id=question_id, question_ids=question_ids, skip=skip) +> GetQuestionResultsResponse get_question_results(tenant_id, url_id=url_id, user_id=user_id, start_date=start_date, question_id=question_id, question_ids=question_ids, skip=skip) @@ -5387,7 +5443,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_question_results200_response import GetQuestionResults200Response +from client.models.get_question_results_response import GetQuestionResultsResponse from client.rest import ApiException from pprint import pprint @@ -5445,7 +5501,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionResults200Response**](GetQuestionResults200Response.md) +[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) ### Authorization @@ -5461,6 +5517,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -5621,7 +5678,7 @@ Name | Type | Description | Notes [[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_sso_users** -> GetSSOUsers200Response get_sso_users(tenant_id, skip=skip) +> GetSSOUsersResponse get_sso_users(tenant_id, skip=skip) @@ -5631,7 +5688,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_sso_users200_response import GetSSOUsers200Response +from client.models.get_sso_users_response import GetSSOUsersResponse from client.rest import ApiException from pprint import pprint @@ -5679,7 +5736,7 @@ Name | Type | Description | Notes ### Return type -[**GetSSOUsers200Response**](GetSSOUsers200Response.md) +[**GetSSOUsersResponse**](GetSSOUsersResponse.md) ### Authorization @@ -5777,7 +5834,7 @@ Name | Type | Description | Notes [[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_tenant** -> GetTenant200Response get_tenant(tenant_id, id) +> GetTenantResponse get_tenant(tenant_id, id) @@ -5787,7 +5844,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_tenant200_response import GetTenant200Response +from client.models.get_tenant_response import GetTenantResponse from client.rest import ApiException from pprint import pprint @@ -5835,7 +5892,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenant200Response**](GetTenant200Response.md) +[**GetTenantResponse**](GetTenantResponse.md) ### Authorization @@ -5851,11 +5908,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_daily_usages** -> GetTenantDailyUsages200Response get_tenant_daily_usages(tenant_id, year_number=year_number, month_number=month_number, day_number=day_number, skip=skip) +> GetTenantDailyUsagesResponse get_tenant_daily_usages(tenant_id, year_number=year_number, month_number=month_number, day_number=day_number, skip=skip) @@ -5865,7 +5923,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_tenant_daily_usages200_response import GetTenantDailyUsages200Response +from client.models.get_tenant_daily_usages_response import GetTenantDailyUsagesResponse from client.rest import ApiException from pprint import pprint @@ -5919,7 +5977,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantDailyUsages200Response**](GetTenantDailyUsages200Response.md) +[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) ### Authorization @@ -5935,11 +5993,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_package** -> GetTenantPackage200Response get_tenant_package(tenant_id, id) +> GetTenantPackageResponse get_tenant_package(tenant_id, id) @@ -5949,7 +6008,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_tenant_package200_response import GetTenantPackage200Response +from client.models.get_tenant_package_response import GetTenantPackageResponse from client.rest import ApiException from pprint import pprint @@ -5997,7 +6056,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantPackage200Response**](GetTenantPackage200Response.md) +[**GetTenantPackageResponse**](GetTenantPackageResponse.md) ### Authorization @@ -6013,11 +6072,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_packages** -> GetTenantPackages200Response get_tenant_packages(tenant_id, skip=skip) +> GetTenantPackagesResponse get_tenant_packages(tenant_id, skip=skip) @@ -6027,7 +6087,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_tenant_packages200_response import GetTenantPackages200Response +from client.models.get_tenant_packages_response import GetTenantPackagesResponse from client.rest import ApiException from pprint import pprint @@ -6075,7 +6135,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantPackages200Response**](GetTenantPackages200Response.md) +[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) ### Authorization @@ -6091,11 +6151,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_user** -> GetTenantUser200Response get_tenant_user(tenant_id, id) +> GetTenantUserResponse get_tenant_user(tenant_id, id) @@ -6105,7 +6166,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_tenant_user200_response import GetTenantUser200Response +from client.models.get_tenant_user_response import GetTenantUserResponse from client.rest import ApiException from pprint import pprint @@ -6153,7 +6214,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantUser200Response**](GetTenantUser200Response.md) +[**GetTenantUserResponse**](GetTenantUserResponse.md) ### Authorization @@ -6169,11 +6230,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenant_users** -> GetTenantUsers200Response get_tenant_users(tenant_id, skip=skip) +> GetTenantUsersResponse get_tenant_users(tenant_id, skip=skip) @@ -6183,7 +6245,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_tenant_users200_response import GetTenantUsers200Response +from client.models.get_tenant_users_response import GetTenantUsersResponse from client.rest import ApiException from pprint import pprint @@ -6231,7 +6293,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantUsers200Response**](GetTenantUsers200Response.md) +[**GetTenantUsersResponse**](GetTenantUsersResponse.md) ### Authorization @@ -6247,11 +6309,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tenants** -> GetTenants200Response get_tenants(tenant_id, meta=meta, skip=skip) +> GetTenantsResponse get_tenants(tenant_id, meta=meta, skip=skip) @@ -6261,7 +6324,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_tenants200_response import GetTenants200Response +from client.models.get_tenants_response import GetTenantsResponse from client.rest import ApiException from pprint import pprint @@ -6311,7 +6374,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenants200Response**](GetTenants200Response.md) +[**GetTenantsResponse**](GetTenantsResponse.md) ### Authorization @@ -6327,11 +6390,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_ticket** -> GetTicket200Response get_ticket(tenant_id, id, user_id=user_id) +> GetTicketResponse get_ticket(tenant_id, id, user_id=user_id) @@ -6341,7 +6405,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_ticket200_response import GetTicket200Response +from client.models.get_ticket_response import GetTicketResponse from client.rest import ApiException from pprint import pprint @@ -6391,7 +6455,7 @@ Name | Type | Description | Notes ### Return type -[**GetTicket200Response**](GetTicket200Response.md) +[**GetTicketResponse**](GetTicketResponse.md) ### Authorization @@ -6407,11 +6471,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_tickets** -> GetTickets200Response get_tickets(tenant_id, user_id=user_id, state=state, skip=skip, limit=limit) +> GetTicketsResponse get_tickets(tenant_id, user_id=user_id, state=state, skip=skip, limit=limit) @@ -6421,7 +6486,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_tickets200_response import GetTickets200Response +from client.models.get_tickets_response import GetTicketsResponse from client.rest import ApiException from pprint import pprint @@ -6475,7 +6540,7 @@ Name | Type | Description | Notes ### Return type -[**GetTickets200Response**](GetTickets200Response.md) +[**GetTicketsResponse**](GetTicketsResponse.md) ### Authorization @@ -6491,11 +6556,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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** -> GetUser200Response get_user(tenant_id, id) +> GetUserResponse get_user(tenant_id, id) @@ -6505,7 +6571,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_user200_response import GetUser200Response +from client.models.get_user_response import GetUserResponse from client.rest import ApiException from pprint import pprint @@ -6553,7 +6619,7 @@ Name | Type | Description | Notes ### Return type -[**GetUser200Response**](GetUser200Response.md) +[**GetUserResponse**](GetUserResponse.md) ### Authorization @@ -6569,11 +6635,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_badge** -> GetUserBadge200Response get_user_badge(tenant_id, id) +> APIGetUserBadgeResponse get_user_badge(tenant_id, id) @@ -6583,7 +6650,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_user_badge200_response import GetUserBadge200Response +from client.models.api_get_user_badge_response import APIGetUserBadgeResponse from client.rest import ApiException from pprint import pprint @@ -6631,7 +6698,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadge200Response**](GetUserBadge200Response.md) +[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) ### Authorization @@ -6647,11 +6714,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_badge_progress_by_id** -> GetUserBadgeProgressById200Response get_user_badge_progress_by_id(tenant_id, id) +> APIGetUserBadgeProgressResponse get_user_badge_progress_by_id(tenant_id, id) @@ -6661,7 +6729,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_user_badge_progress_by_id200_response import GetUserBadgeProgressById200Response +from client.models.api_get_user_badge_progress_response import APIGetUserBadgeProgressResponse from client.rest import ApiException from pprint import pprint @@ -6709,7 +6777,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -6725,11 +6793,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_badge_progress_by_user_id** -> GetUserBadgeProgressById200Response get_user_badge_progress_by_user_id(tenant_id, user_id) +> APIGetUserBadgeProgressResponse get_user_badge_progress_by_user_id(tenant_id, user_id) @@ -6739,7 +6808,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_user_badge_progress_by_id200_response import GetUserBadgeProgressById200Response +from client.models.api_get_user_badge_progress_response import APIGetUserBadgeProgressResponse from client.rest import ApiException from pprint import pprint @@ -6787,7 +6856,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -6803,11 +6872,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_badge_progress_list** -> GetUserBadgeProgressList200Response get_user_badge_progress_list(tenant_id, user_id=user_id, limit=limit, skip=skip) +> APIGetUserBadgeProgressListResponse get_user_badge_progress_list(tenant_id, user_id=user_id, limit=limit, skip=skip) @@ -6817,7 +6887,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_user_badge_progress_list200_response import GetUserBadgeProgressList200Response +from client.models.api_get_user_badge_progress_list_response import APIGetUserBadgeProgressListResponse from client.rest import ApiException from pprint import pprint @@ -6869,7 +6939,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressList200Response**](GetUserBadgeProgressList200Response.md) +[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -6885,11 +6955,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_badges** -> GetUserBadges200Response get_user_badges(tenant_id, user_id=user_id, badge_id=badge_id, type=type, displayed_on_comments=displayed_on_comments, limit=limit, skip=skip) +> APIGetUserBadgesResponse get_user_badges(tenant_id, user_id=user_id, badge_id=badge_id, type=type, displayed_on_comments=displayed_on_comments, limit=limit, skip=skip) @@ -6899,7 +6970,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_user_badges200_response import GetUserBadges200Response +from client.models.api_get_user_badges_response import APIGetUserBadgesResponse from client.rest import ApiException from pprint import pprint @@ -6957,7 +7028,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadges200Response**](GetUserBadges200Response.md) +[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) ### Authorization @@ -6973,11 +7044,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_votes** -> GetVotes200Response get_votes(tenant_id, url_id) +> GetVotesResponse get_votes(tenant_id, url_id) @@ -6987,7 +7059,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_votes200_response import GetVotes200Response +from client.models.get_votes_response import GetVotesResponse from client.rest import ApiException from pprint import pprint @@ -7035,7 +7107,7 @@ Name | Type | Description | Notes ### Return type -[**GetVotes200Response**](GetVotes200Response.md) +[**GetVotesResponse**](GetVotesResponse.md) ### Authorization @@ -7051,11 +7123,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_votes_for_user** -> GetVotesForUser200Response get_votes_for_user(tenant_id, url_id, user_id=user_id, anon_user_id=anon_user_id) +> GetVotesForUserResponse get_votes_for_user(tenant_id, url_id, user_id=user_id, anon_user_id=anon_user_id) @@ -7065,7 +7138,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_votes_for_user200_response import GetVotesForUser200Response +from client.models.get_votes_for_user_response import GetVotesForUserResponse from client.rest import ApiException from pprint import pprint @@ -7117,7 +7190,7 @@ Name | Type | Description | Notes ### Return type -[**GetVotesForUser200Response**](GetVotesForUser200Response.md) +[**GetVotesForUserResponse**](GetVotesForUserResponse.md) ### Authorization @@ -7133,11 +7206,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **patch_domain_config** -> GetDomainConfig200Response patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) +> PatchDomainConfigResponse patch_domain_config(tenant_id, domain_to_update, patch_domain_config_params) @@ -7147,8 +7221,8 @@ Name | Type | Description | Notes ```python import client -from client.models.get_domain_config200_response import GetDomainConfig200Response from client.models.patch_domain_config_params import PatchDomainConfigParams +from client.models.patch_domain_config_response import PatchDomainConfigResponse from client.rest import ApiException from pprint import pprint @@ -7198,7 +7272,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PatchDomainConfigResponse**](PatchDomainConfigResponse.md) ### Authorization @@ -7218,7 +7292,7 @@ Name | Type | Description | Notes [[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) # **patch_hash_tag** -> PatchHashTag200Response patch_hash_tag(tag, tenant_id=tenant_id, update_hash_tag_body=update_hash_tag_body) +> UpdateHashTagResponse patch_hash_tag(tag, tenant_id=tenant_id, update_hash_tag_body=update_hash_tag_body) @@ -7228,8 +7302,8 @@ Name | Type | Description | Notes ```python import client -from client.models.patch_hash_tag200_response import PatchHashTag200Response from client.models.update_hash_tag_body import UpdateHashTagBody +from client.models.update_hash_tag_response import UpdateHashTagResponse from client.rest import ApiException from pprint import pprint @@ -7279,7 +7353,7 @@ Name | Type | Description | Notes ### Return type -[**PatchHashTag200Response**](PatchHashTag200Response.md) +[**UpdateHashTagResponse**](UpdateHashTagResponse.md) ### Authorization @@ -7295,6 +7369,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -7463,7 +7538,7 @@ Name | Type | Description | Notes [[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_domain_config** -> GetDomainConfig200Response put_domain_config(tenant_id, domain_to_update, update_domain_config_params) +> PutDomainConfigResponse put_domain_config(tenant_id, domain_to_update, update_domain_config_params) @@ -7473,7 +7548,7 @@ Name | Type | Description | Notes ```python import client -from client.models.get_domain_config200_response import GetDomainConfig200Response +from client.models.put_domain_config_response import PutDomainConfigResponse from client.models.update_domain_config_params import UpdateDomainConfigParams from client.rest import ApiException from pprint import pprint @@ -7524,7 +7599,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PutDomainConfigResponse**](PutDomainConfigResponse.md) ### Authorization @@ -7627,7 +7702,7 @@ Name | Type | Description | Notes [[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) # **render_email_template** -> RenderEmailTemplate200Response render_email_template(tenant_id, render_email_template_body, locale=locale) +> RenderEmailTemplateResponse render_email_template(tenant_id, render_email_template_body, locale=locale) @@ -7637,8 +7712,8 @@ Name | Type | Description | Notes ```python import client -from client.models.render_email_template200_response import RenderEmailTemplate200Response from client.models.render_email_template_body import RenderEmailTemplateBody +from client.models.render_email_template_response import RenderEmailTemplateResponse from client.rest import ApiException from pprint import pprint @@ -7688,7 +7763,7 @@ Name | Type | Description | Notes ### Return type -[**RenderEmailTemplate200Response**](RenderEmailTemplate200Response.md) +[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) ### Authorization @@ -7704,11 +7779,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **replace_tenant_package** -> FlagCommentPublic200Response replace_tenant_package(tenant_id, id, replace_tenant_package_body) +> APIEmptyResponse replace_tenant_package(tenant_id, id, replace_tenant_package_body) @@ -7718,7 +7794,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.replace_tenant_package_body import ReplaceTenantPackageBody from client.rest import ApiException from pprint import pprint @@ -7769,7 +7845,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7785,11 +7861,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **replace_tenant_user** -> FlagCommentPublic200Response replace_tenant_user(tenant_id, id, replace_tenant_user_body, update_comments=update_comments) +> APIEmptyResponse replace_tenant_user(tenant_id, id, replace_tenant_user_body, update_comments=update_comments) @@ -7799,7 +7876,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.replace_tenant_user_body import ReplaceTenantUserBody from client.rest import ApiException from pprint import pprint @@ -7852,7 +7929,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -7868,11 +7945,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **save_comment** -> SaveComment200Response save_comment(tenant_id, create_comment_params, is_live=is_live, do_spam_check=do_spam_check, send_emails=send_emails, populate_notifications=populate_notifications) +> APISaveCommentResponse save_comment(tenant_id, create_comment_params, is_live=is_live, do_spam_check=do_spam_check, send_emails=send_emails, populate_notifications=populate_notifications) @@ -7882,8 +7960,8 @@ Name | Type | Description | Notes ```python import client +from client.models.api_save_comment_response import APISaveCommentResponse from client.models.create_comment_params import CreateCommentParams -from client.models.save_comment200_response import SaveComment200Response from client.rest import ApiException from pprint import pprint @@ -7939,7 +8017,7 @@ Name | Type | Description | Notes ### Return type -[**SaveComment200Response**](SaveComment200Response.md) +[**APISaveCommentResponse**](APISaveCommentResponse.md) ### Authorization @@ -7955,11 +8033,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **save_comments_bulk** -> List[SaveComment200Response] save_comments_bulk(tenant_id, create_comment_params, is_live=is_live, do_spam_check=do_spam_check, send_emails=send_emails, populate_notifications=populate_notifications) +> List[SaveCommentsBulkResponse] save_comments_bulk(tenant_id, create_comment_params, is_live=is_live, do_spam_check=do_spam_check, send_emails=send_emails, populate_notifications=populate_notifications) @@ -7970,7 +8049,7 @@ Name | Type | Description | Notes ```python import client from client.models.create_comment_params import CreateCommentParams -from client.models.save_comment200_response import SaveComment200Response +from client.models.save_comments_bulk_response import SaveCommentsBulkResponse from client.rest import ApiException from pprint import pprint @@ -8026,7 +8105,7 @@ Name | Type | Description | Notes ### Return type -[**List[SaveComment200Response]**](SaveComment200Response.md) +[**List[SaveCommentsBulkResponse]**](SaveCommentsBulkResponse.md) ### Authorization @@ -8046,7 +8125,7 @@ Name | Type | Description | Notes [[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) # **send_invite** -> FlagCommentPublic200Response send_invite(tenant_id, id, from_name) +> APIEmptyResponse send_invite(tenant_id, id, from_name) @@ -8056,7 +8135,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -8106,7 +8185,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8122,11 +8201,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **send_login_link** -> FlagCommentPublic200Response send_login_link(tenant_id, id, redirect_url=redirect_url) +> APIEmptyResponse send_login_link(tenant_id, id, redirect_url=redirect_url) @@ -8136,7 +8216,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -8186,7 +8266,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8202,11 +8282,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **un_block_user_from_comment** -> UnBlockCommentPublic200Response un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, user_id=user_id, anon_user_id=anon_user_id) +> UnblockSuccess un_block_user_from_comment(tenant_id, id, un_block_from_comment_params, user_id=user_id, anon_user_id=anon_user_id) @@ -8216,8 +8297,8 @@ Name | Type | Description | Notes ```python import client -from client.models.un_block_comment_public200_response import UnBlockCommentPublic200Response from client.models.un_block_from_comment_params import UnBlockFromCommentParams +from client.models.unblock_success import UnblockSuccess from client.rest import ApiException from pprint import pprint @@ -8271,7 +8352,7 @@ Name | Type | Description | Notes ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -8287,11 +8368,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **un_flag_comment** -> FlagComment200Response un_flag_comment(tenant_id, id, user_id=user_id, anon_user_id=anon_user_id) +> FlagCommentResponse un_flag_comment(tenant_id, id, user_id=user_id, anon_user_id=anon_user_id) @@ -8301,7 +8383,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment200_response import FlagComment200Response +from client.models.flag_comment_response import FlagCommentResponse from client.rest import ApiException from pprint import pprint @@ -8353,7 +8435,7 @@ Name | Type | Description | Notes ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -8369,11 +8451,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_comment** -> FlagCommentPublic200Response update_comment(tenant_id, id, updatable_comment_params, context_user_id=context_user_id, do_spam_check=do_spam_check, is_live=is_live) +> APIEmptyResponse update_comment(tenant_id, id, updatable_comment_params, context_user_id=context_user_id, do_spam_check=do_spam_check, is_live=is_live) @@ -8383,7 +8466,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.updatable_comment_params import UpdatableCommentParams from client.rest import ApiException from pprint import pprint @@ -8440,7 +8523,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8456,11 +8539,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_email_template** -> FlagCommentPublic200Response update_email_template(tenant_id, id, update_email_template_body) +> APIEmptyResponse update_email_template(tenant_id, id, update_email_template_body) @@ -8470,7 +8554,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.update_email_template_body import UpdateEmailTemplateBody from client.rest import ApiException from pprint import pprint @@ -8521,7 +8605,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8537,11 +8621,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_feed_post** -> FlagCommentPublic200Response update_feed_post(tenant_id, id, feed_post) +> APIEmptyResponse update_feed_post(tenant_id, id, feed_post) @@ -8551,8 +8636,8 @@ Name | Type | Description | Notes ```python import client +from client.models.api_empty_response import APIEmptyResponse from client.models.feed_post import FeedPost -from client.models.flag_comment_public200_response import FlagCommentPublic200Response from client.rest import ApiException from pprint import pprint @@ -8602,7 +8687,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8618,11 +8703,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_moderator** -> FlagCommentPublic200Response update_moderator(tenant_id, id, update_moderator_body) +> APIEmptyResponse update_moderator(tenant_id, id, update_moderator_body) @@ -8632,7 +8718,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.update_moderator_body import UpdateModeratorBody from client.rest import ApiException from pprint import pprint @@ -8683,7 +8769,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8699,11 +8785,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_notification** -> FlagCommentPublic200Response update_notification(tenant_id, id, update_notification_body, user_id=user_id) +> APIEmptyResponse update_notification(tenant_id, id, update_notification_body, user_id=user_id) @@ -8713,7 +8800,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.update_notification_body import UpdateNotificationBody from client.rest import ApiException from pprint import pprint @@ -8766,7 +8853,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8782,11 +8869,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_question_config** -> FlagCommentPublic200Response update_question_config(tenant_id, id, update_question_config_body) +> APIEmptyResponse update_question_config(tenant_id, id, update_question_config_body) @@ -8796,7 +8884,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.update_question_config_body import UpdateQuestionConfigBody from client.rest import ApiException from pprint import pprint @@ -8847,7 +8935,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8863,11 +8951,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_question_result** -> FlagCommentPublic200Response update_question_result(tenant_id, id, update_question_result_body) +> APIEmptyResponse update_question_result(tenant_id, id, update_question_result_body) @@ -8877,7 +8966,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.update_question_result_body import UpdateQuestionResultBody from client.rest import ApiException from pprint import pprint @@ -8928,7 +9017,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -8944,6 +9033,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -9031,7 +9121,7 @@ Name | Type | Description | Notes [[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) # **update_tenant** -> FlagCommentPublic200Response update_tenant(tenant_id, id, update_tenant_body) +> APIEmptyResponse update_tenant(tenant_id, id, update_tenant_body) @@ -9041,7 +9131,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.update_tenant_body import UpdateTenantBody from client.rest import ApiException from pprint import pprint @@ -9092,7 +9182,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -9108,11 +9198,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_tenant_package** -> FlagCommentPublic200Response update_tenant_package(tenant_id, id, update_tenant_package_body) +> APIEmptyResponse update_tenant_package(tenant_id, id, update_tenant_package_body) @@ -9122,7 +9213,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.update_tenant_package_body import UpdateTenantPackageBody from client.rest import ApiException from pprint import pprint @@ -9173,7 +9264,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -9189,11 +9280,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_tenant_user** -> FlagCommentPublic200Response update_tenant_user(tenant_id, id, update_tenant_user_body, update_comments=update_comments) +> APIEmptyResponse update_tenant_user(tenant_id, id, update_tenant_user_body, update_comments=update_comments) @@ -9203,7 +9295,7 @@ Name | Type | Description | Notes ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.models.update_tenant_user_body import UpdateTenantUserBody from client.rest import ApiException from pprint import pprint @@ -9256,7 +9348,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -9272,11 +9364,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_user_badge** -> UpdateUserBadge200Response update_user_badge(tenant_id, id, update_user_badge_params) +> APIEmptySuccessResponse update_user_badge(tenant_id, id, update_user_badge_params) @@ -9286,7 +9379,7 @@ Name | Type | Description | Notes ```python import client -from client.models.update_user_badge200_response import UpdateUserBadge200Response +from client.models.api_empty_success_response import APIEmptySuccessResponse from client.models.update_user_badge_params import UpdateUserBadgeParams from client.rest import ApiException from pprint import pprint @@ -9337,7 +9430,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -9353,6 +9446,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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/DeleteComment200Response.md b/client/docs/DeleteComment200Response.md deleted file mode 100644 index 3fcd074..0000000 --- a/client/docs/DeleteComment200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# DeleteComment200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.delete_comment200_response import DeleteComment200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteComment200Response from a JSON string -delete_comment200_response_instance = DeleteComment200Response.from_json(json) -# print the JSON string representation of the object -print(DeleteComment200Response.to_json()) - -# convert the object into a dict -delete_comment200_response_dict = delete_comment200_response_instance.to_dict() -# create an instance of DeleteComment200Response from a dict -delete_comment200_response_from_dict = DeleteComment200Response.from_dict(delete_comment200_response_dict) -``` -[[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 da7a408..0000000 --- a/client/docs/DeleteCommentPublic200Response.md +++ /dev/null @@ -1,38 +0,0 @@ -# DeleteCommentPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] -**hard_removed** | **bool** | | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.delete_comment_public200_response import DeleteCommentPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteCommentPublic200Response from a JSON string -delete_comment_public200_response_instance = DeleteCommentPublic200Response.from_json(json) -# print the JSON string representation of the object -print(DeleteCommentPublic200Response.to_json()) - -# convert the object into a dict -delete_comment_public200_response_dict = delete_comment_public200_response_instance.to_dict() -# create an instance of DeleteCommentPublic200Response from a dict -delete_comment_public200_response_from_dict = DeleteCommentPublic200Response.from_dict(delete_comment_public200_response_dict) -``` -[[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 68cfefd..0000000 --- a/client/docs/DeleteCommentVote200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# DeleteCommentVote200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**was_pending_vote** | **bool** | | [optional] -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.delete_comment_vote200_response import DeleteCommentVote200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteCommentVote200Response from a JSON string -delete_comment_vote200_response_instance = DeleteCommentVote200Response.from_json(json) -# print the JSON string representation of the object -print(DeleteCommentVote200Response.to_json()) - -# convert the object into a dict -delete_comment_vote200_response_dict = delete_comment_vote200_response_instance.to_dict() -# create an instance of DeleteCommentVote200Response from a dict -delete_comment_vote200_response_from_dict = DeleteCommentVote200Response.from_dict(delete_comment_vote200_response_dict) -``` -[[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/DeleteDomainConfig200Response.md deleted file mode 100644 index 440a7b1..0000000 --- a/client/docs/DeleteDomainConfig200Response.md +++ /dev/null @@ -1,29 +0,0 @@ -# DeleteDomainConfig200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **object** | | - -## Example - -```python -from client.models.delete_domain_config200_response import DeleteDomainConfig200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteDomainConfig200Response from a JSON string -delete_domain_config200_response_instance = DeleteDomainConfig200Response.from_json(json) -# print the JSON string representation of the object -print(DeleteDomainConfig200Response.to_json()) - -# convert the object into a dict -delete_domain_config200_response_dict = delete_domain_config200_response_instance.to_dict() -# create an instance of DeleteDomainConfig200Response from a dict -delete_domain_config200_response_from_dict = DeleteDomainConfig200Response.from_dict(delete_domain_config200_response_dict) -``` -[[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..21582c0 --- /dev/null +++ b/client/docs/DeleteDomainConfigResponse.md @@ -0,0 +1,29 @@ +# DeleteDomainConfigResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **object** | | + +## Example + +```python +from client.models.delete_domain_config_response import DeleteDomainConfigResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteDomainConfigResponse from a JSON string +delete_domain_config_response_instance = DeleteDomainConfigResponse.from_json(json) +# print the JSON string representation of the object +print(DeleteDomainConfigResponse.to_json()) + +# convert the object into a dict +delete_domain_config_response_dict = delete_domain_config_response_instance.to_dict() +# create an instance of DeleteDomainConfigResponse from a dict +delete_domain_config_response_from_dict = DeleteDomainConfigResponse.from_dict(delete_domain_config_response_dict) +``` +[[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 15aeb8f..0000000 --- a/client/docs/DeleteFeedPostPublic200Response.md +++ /dev/null @@ -1,36 +0,0 @@ -# DeleteFeedPostPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.delete_feed_post_public200_response import DeleteFeedPostPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteFeedPostPublic200Response from a JSON string -delete_feed_post_public200_response_instance = DeleteFeedPostPublic200Response.from_json(json) -# print the JSON string representation of the object -print(DeleteFeedPostPublic200Response.to_json()) - -# convert the object into a dict -delete_feed_post_public200_response_dict = delete_feed_post_public200_response_instance.to_dict() -# create an instance of DeleteFeedPostPublic200Response from a dict -delete_feed_post_public200_response_from_dict = DeleteFeedPostPublic200Response.from_dict(delete_feed_post_public200_response_dict) -``` -[[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/DeleteFeedPostPublic200ResponseAnyOf.md deleted file mode 100644 index 02d3442..0000000 --- a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md +++ /dev/null @@ -1,29 +0,0 @@ -# DeleteFeedPostPublic200ResponseAnyOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | - -## Example - -```python -from client.models.delete_feed_post_public200_response_any_of import DeleteFeedPostPublic200ResponseAnyOf - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteFeedPostPublic200ResponseAnyOf from a JSON string -delete_feed_post_public200_response_any_of_instance = DeleteFeedPostPublic200ResponseAnyOf.from_json(json) -# print the JSON string representation of the object -print(DeleteFeedPostPublic200ResponseAnyOf.to_json()) - -# convert the object into a dict -delete_feed_post_public200_response_any_of_dict = delete_feed_post_public200_response_any_of_instance.to_dict() -# create an instance of DeleteFeedPostPublic200ResponseAnyOf from a dict -delete_feed_post_public200_response_any_of_from_dict = DeleteFeedPostPublic200ResponseAnyOf.from_dict(delete_feed_post_public200_response_any_of_dict) -``` -[[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/DeleteFeedPostPublicResponse.md b/client/docs/DeleteFeedPostPublicResponse.md new file mode 100644 index 0000000..54bf3f6 --- /dev/null +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -0,0 +1,29 @@ +# DeleteFeedPostPublicResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.delete_feed_post_public_response import DeleteFeedPostPublicResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteFeedPostPublicResponse from a JSON string +delete_feed_post_public_response_instance = DeleteFeedPostPublicResponse.from_json(json) +# print the JSON string representation of the object +print(DeleteFeedPostPublicResponse.to_json()) + +# convert the object into a dict +delete_feed_post_public_response_dict = delete_feed_post_public_response_instance.to_dict() +# create an instance of DeleteFeedPostPublicResponse from a dict +delete_feed_post_public_response_from_dict = DeleteFeedPostPublicResponse.from_dict(delete_feed_post_public_response_dict) +``` +[[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/DeleteHashTagRequest.md b/client/docs/DeleteHashTagRequest.md deleted file mode 100644 index f6fb3eb..0000000 --- a/client/docs/DeleteHashTagRequest.md +++ /dev/null @@ -1,29 +0,0 @@ -# DeleteHashTagRequest - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tenant_id** | **str** | | [optional] - -## Example - -```python -from client.models.delete_hash_tag_request import DeleteHashTagRequest - -# TODO update the JSON string below -json = "{}" -# create an instance of DeleteHashTagRequest from a JSON string -delete_hash_tag_request_instance = DeleteHashTagRequest.from_json(json) -# print the JSON string representation of the object -print(DeleteHashTagRequest.to_json()) - -# convert the object into a dict -delete_hash_tag_request_dict = delete_hash_tag_request_instance.to_dict() -# create an instance of DeleteHashTagRequest from a dict -delete_hash_tag_request_from_dict = DeleteHashTagRequest.from_dict(delete_hash_tag_request_dict) -``` -[[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/DeleteHashTagRequestBody.md b/client/docs/DeleteHashTagRequestBody.md new file mode 100644 index 0000000..18f3931 --- /dev/null +++ b/client/docs/DeleteHashTagRequestBody.md @@ -0,0 +1,29 @@ +# DeleteHashTagRequestBody + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tenant_id** | **str** | | [optional] + +## Example + +```python +from client.models.delete_hash_tag_request_body import DeleteHashTagRequestBody + +# TODO update the JSON string below +json = "{}" +# create an instance of DeleteHashTagRequestBody from a JSON string +delete_hash_tag_request_body_instance = DeleteHashTagRequestBody.from_json(json) +# print the JSON string representation of the object +print(DeleteHashTagRequestBody.to_json()) + +# convert the object into a dict +delete_hash_tag_request_body_dict = delete_hash_tag_request_body_instance.to_dict() +# create an instance of DeleteHashTagRequestBody from a dict +delete_hash_tag_request_body_from_dict = DeleteHashTagRequestBody.from_dict(delete_hash_tag_request_body_dict) +``` +[[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/FComment.md b/client/docs/FComment.md index e7b04fa..1b8c754 100644 --- a/client/docs/FComment.md +++ b/client/docs/FComment.md @@ -77,6 +77,7 @@ Name | Type | Description | Notes **requires_verification** | **bool** | | [optional] **edit_key** | **str** | | [optional] **tos_accepted_at** | **datetime** | | [optional] +**bot_id** | **str** | | [optional] ## Example diff --git a/client/docs/FlagComment200Response.md b/client/docs/FlagComment200Response.md deleted file mode 100644 index 6323d62..0000000 --- a/client/docs/FlagComment200Response.md +++ /dev/null @@ -1,38 +0,0 @@ -# FlagComment200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status_code** | **int** | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **str** | | -**reason** | **str** | | -**was_unapproved** | **bool** | | [optional] -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.flag_comment200_response import FlagComment200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of FlagComment200Response from a JSON string -flag_comment200_response_instance = FlagComment200Response.from_json(json) -# print the JSON string representation of the object -print(FlagComment200Response.to_json()) - -# convert the object into a dict -flag_comment200_response_dict = flag_comment200_response_instance.to_dict() -# create an instance of FlagComment200Response from a dict -flag_comment200_response_from_dict = FlagComment200Response.from_dict(flag_comment200_response_dict) -``` -[[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 1287c50..0000000 --- a/client/docs/FlagCommentPublic200Response.md +++ /dev/null @@ -1,36 +0,0 @@ -# FlagCommentPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.flag_comment_public200_response import FlagCommentPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of FlagCommentPublic200Response from a JSON string -flag_comment_public200_response_instance = FlagCommentPublic200Response.from_json(json) -# print the JSON string representation of the object -print(FlagCommentPublic200Response.to_json()) - -# convert the object into a dict -flag_comment_public200_response_dict = flag_comment_public200_response_instance.to_dict() -# create an instance of FlagCommentPublic200Response from a dict -flag_comment_public200_response_from_dict = FlagCommentPublic200Response.from_dict(flag_comment_public200_response_dict) -``` -[[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 b3791b7..0000000 --- a/client/docs/GetAuditLogs200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetAuditLogs200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**audit_logs** | [**List[APIAuditLog]**](APIAuditLog.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_audit_logs200_response import GetAuditLogs200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetAuditLogs200Response from a JSON string -get_audit_logs200_response_instance = GetAuditLogs200Response.from_json(json) -# print the JSON string representation of the object -print(GetAuditLogs200Response.to_json()) - -# convert the object into a dict -get_audit_logs200_response_dict = get_audit_logs200_response_instance.to_dict() -# create an instance of GetAuditLogs200Response from a dict -get_audit_logs200_response_from_dict = GetAuditLogs200Response.from_dict(get_audit_logs200_response_dict) -``` -[[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..fa720ec --- /dev/null +++ b/client/docs/GetBannedUsersCountResponse.md @@ -0,0 +1,30 @@ +# GetBannedUsersCountResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total_count** | **float** | | +**status** | **str** | | + +## Example + +```python +from client.models.get_banned_users_count_response import GetBannedUsersCountResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetBannedUsersCountResponse from a JSON string +get_banned_users_count_response_instance = GetBannedUsersCountResponse.from_json(json) +# print the JSON string representation of the object +print(GetBannedUsersCountResponse.to_json()) + +# convert the object into a dict +get_banned_users_count_response_dict = get_banned_users_count_response_instance.to_dict() +# create an instance of GetBannedUsersCountResponse from a dict +get_banned_users_count_response_from_dict = GetBannedUsersCountResponse.from_dict(get_banned_users_count_response_dict) +``` +[[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..4faff55 --- /dev/null +++ b/client/docs/GetBannedUsersFromCommentResponse.md @@ -0,0 +1,31 @@ +# GetBannedUsersFromCommentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**banned_users** | [**List[APIBannedUserWithMultiMatchInfo]**](APIBannedUserWithMultiMatchInfo.md) | | +**code** | **str** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_banned_users_from_comment_response import GetBannedUsersFromCommentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetBannedUsersFromCommentResponse from a JSON string +get_banned_users_from_comment_response_instance = GetBannedUsersFromCommentResponse.from_json(json) +# print the JSON string representation of the object +print(GetBannedUsersFromCommentResponse.to_json()) + +# convert the object into a dict +get_banned_users_from_comment_response_dict = get_banned_users_from_comment_response_instance.to_dict() +# create an instance of GetBannedUsersFromCommentResponse from a dict +get_banned_users_from_comment_response_from_dict = GetBannedUsersFromCommentResponse.from_dict(get_banned_users_from_comment_response_dict) +``` +[[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 ff3dec9..0000000 --- a/client/docs/GetCachedNotificationCount200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetCachedNotificationCount200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**UserNotificationCount**](UserNotificationCount.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_cached_notification_count200_response import GetCachedNotificationCount200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetCachedNotificationCount200Response from a JSON string -get_cached_notification_count200_response_instance = GetCachedNotificationCount200Response.from_json(json) -# print the JSON string representation of the object -print(GetCachedNotificationCount200Response.to_json()) - -# convert the object into a dict -get_cached_notification_count200_response_dict = get_cached_notification_count200_response_instance.to_dict() -# create an instance of GetCachedNotificationCount200Response from a dict -get_cached_notification_count200_response_from_dict = GetCachedNotificationCount200Response.from_dict(get_cached_notification_count200_response_dict) -``` -[[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 28779fa..0000000 --- a/client/docs/GetComment200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetComment200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**APIComment**](APIComment.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_comment200_response import GetComment200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetComment200Response from a JSON string -get_comment200_response_instance = GetComment200Response.from_json(json) -# print the JSON string representation of the object -print(GetComment200Response.to_json()) - -# convert the object into a dict -get_comment200_response_dict = get_comment200_response_instance.to_dict() -# create an instance of GetComment200Response from a dict -get_comment200_response_from_dict = GetComment200Response.from_dict(get_comment200_response_dict) -``` -[[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..1cc8f78 --- /dev/null +++ b/client/docs/GetCommentBanStatusResponse.md @@ -0,0 +1,31 @@ +# GetCommentBanStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**email_domain** | **str** | | +**can_ip_ban** | **bool** | | + +## Example + +```python +from client.models.get_comment_ban_status_response import GetCommentBanStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCommentBanStatusResponse from a JSON string +get_comment_ban_status_response_instance = GetCommentBanStatusResponse.from_json(json) +# print the JSON string representation of the object +print(GetCommentBanStatusResponse.to_json()) + +# convert the object into a dict +get_comment_ban_status_response_dict = get_comment_ban_status_response_instance.to_dict() +# create an instance of GetCommentBanStatusResponse from a dict +get_comment_ban_status_response_from_dict = GetCommentBanStatusResponse.from_dict(get_comment_ban_status_response_dict) +``` +[[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 121ef09..0000000 --- a/client/docs/GetCommentText200Response.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetCommentText200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment_text** | **str** | | -**sanitized_comment_text** | **str** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_comment_text200_response import GetCommentText200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetCommentText200Response from a JSON string -get_comment_text200_response_instance = GetCommentText200Response.from_json(json) -# print the JSON string representation of the object -print(GetCommentText200Response.to_json()) - -# convert the object into a dict -get_comment_text200_response_dict = get_comment_text200_response_instance.to_dict() -# create an instance of GetCommentText200Response from a dict -get_comment_text200_response_from_dict = GetCommentText200Response.from_dict(get_comment_text200_response_dict) -``` -[[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..067830a --- /dev/null +++ b/client/docs/GetCommentTextResponse.md @@ -0,0 +1,30 @@ +# GetCommentTextResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_comment_text_response import GetCommentTextResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCommentTextResponse from a JSON string +get_comment_text_response_instance = GetCommentTextResponse.from_json(json) +# print the JSON string representation of the object +print(GetCommentTextResponse.to_json()) + +# convert the object into a dict +get_comment_text_response_dict = get_comment_text_response_instance.to_dict() +# create an instance of GetCommentTextResponse from a dict +get_comment_text_response_from_dict = GetCommentTextResponse.from_dict(get_comment_text_response_dict) +``` +[[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 f05368d..0000000 --- a/client/docs/GetCommentVoteUserNames200Response.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetCommentVoteUserNames200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**vote_user_names** | **List[str]** | | -**has_more** | **bool** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_comment_vote_user_names200_response import GetCommentVoteUserNames200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetCommentVoteUserNames200Response from a JSON string -get_comment_vote_user_names200_response_instance = GetCommentVoteUserNames200Response.from_json(json) -# print the JSON string representation of the object -print(GetCommentVoteUserNames200Response.to_json()) - -# convert the object into a dict -get_comment_vote_user_names200_response_dict = get_comment_vote_user_names200_response_instance.to_dict() -# create an instance of GetCommentVoteUserNames200Response from a dict -get_comment_vote_user_names200_response_from_dict = GetCommentVoteUserNames200Response.from_dict(get_comment_vote_user_names200_response_dict) -``` -[[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 20190b2..0000000 --- a/client/docs/GetComments200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetComments200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comments** | [**List[APIComment]**](APIComment.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_comments200_response import GetComments200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetComments200Response from a JSON string -get_comments200_response_instance = GetComments200Response.from_json(json) -# print the JSON string representation of the object -print(GetComments200Response.to_json()) - -# convert the object into a dict -get_comments200_response_dict = get_comments200_response_instance.to_dict() -# create an instance of GetComments200Response from a dict -get_comments200_response_from_dict = GetComments200Response.from_dict(get_comments200_response_dict) -``` -[[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..c1c6f84 --- /dev/null +++ b/client/docs/GetCommentsForUserResponse.md @@ -0,0 +1,29 @@ +# GetCommentsForUserResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**moderating_tenant_ids** | **List[str]** | | [optional] + +## Example + +```python +from client.models.get_comments_for_user_response import GetCommentsForUserResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetCommentsForUserResponse from a JSON string +get_comments_for_user_response_instance = GetCommentsForUserResponse.from_json(json) +# print the JSON string representation of the object +print(GetCommentsForUserResponse.to_json()) + +# convert the object into a dict +get_comments_for_user_response_dict = get_comments_for_user_response_instance.to_dict() +# create an instance of GetCommentsForUserResponse from a dict +get_comments_for_user_response_from_dict = GetCommentsForUserResponse.from_dict(get_comments_for_user_response_dict) +``` +[[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 314de3c..0000000 --- a/client/docs/GetCommentsPublic200Response.md +++ /dev/null @@ -1,59 +0,0 @@ -# GetCommentsPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status_code** | **int** | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **str** | | -**reason** | **str** | | -**translated_warning** | **str** | | [optional] -**comments** | [**List[PublicComment]**](PublicComment.md) | | -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | -**url_id_clean** | **str** | | [optional] -**last_gen_date** | **int** | | [optional] -**includes_past_pages** | **bool** | | [optional] -**is_demo** | **bool** | | [optional] -**comment_count** | **int** | | [optional] -**is_site_admin** | **bool** | | [optional] -**has_billing_issue** | **bool** | | [optional] -**module_data** | **Dict[str, object]** | Construct a type with a set of properties K of type T | [optional] -**page_number** | **int** | | -**is_white_labeled** | **bool** | | [optional] -**is_prod** | **bool** | | [optional] -**is_crawler** | **bool** | | [optional] -**notification_count** | **int** | | [optional] -**has_more** | **bool** | | [optional] -**is_closed** | **bool** | | [optional] -**presence_poll_state** | **int** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] -**url_id_ws** | **str** | | [optional] -**user_id_ws** | **str** | | [optional] -**tenant_id_ws** | **str** | | [optional] -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] - -## Example - -```python -from client.models.get_comments_public200_response import GetCommentsPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetCommentsPublic200Response from a JSON string -get_comments_public200_response_instance = GetCommentsPublic200Response.from_json(json) -# print the JSON string representation of the object -print(GetCommentsPublic200Response.to_json()) - -# convert the object into a dict -get_comments_public200_response_dict = get_comments_public200_response_instance.to_dict() -# create an instance of GetCommentsPublic200Response from a dict -get_comments_public200_response_from_dict = GetCommentsPublic200Response.from_dict(get_comments_public200_response_dict) -``` -[[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/GetDomainConfig200Response.md b/client/docs/GetDomainConfig200Response.md deleted file mode 100644 index 5f7f6e5..0000000 --- a/client/docs/GetDomainConfig200Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetDomainConfig200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configuration** | **object** | | -**status** | **object** | | -**reason** | **str** | | -**code** | **str** | | - -## Example - -```python -from client.models.get_domain_config200_response import GetDomainConfig200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetDomainConfig200Response from a JSON string -get_domain_config200_response_instance = GetDomainConfig200Response.from_json(json) -# print the JSON string representation of the object -print(GetDomainConfig200Response.to_json()) - -# convert the object into a dict -get_domain_config200_response_dict = get_domain_config200_response_instance.to_dict() -# create an instance of GetDomainConfig200Response from a dict -get_domain_config200_response_from_dict = GetDomainConfig200Response.from_dict(get_domain_config200_response_dict) -``` -[[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..d49dcec --- /dev/null +++ b/client/docs/GetDomainConfigResponse.md @@ -0,0 +1,32 @@ +# GetDomainConfigResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **object** | | +**status** | **object** | | +**reason** | **str** | | +**code** | **str** | | + +## Example + +```python +from client.models.get_domain_config_response import GetDomainConfigResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDomainConfigResponse from a JSON string +get_domain_config_response_instance = GetDomainConfigResponse.from_json(json) +# print the JSON string representation of the object +print(GetDomainConfigResponse.to_json()) + +# convert the object into a dict +get_domain_config_response_dict = get_domain_config_response_instance.to_dict() +# create an instance of GetDomainConfigResponse from a dict +get_domain_config_response_from_dict = GetDomainConfigResponse.from_dict(get_domain_config_response_dict) +``` +[[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 235be48..0000000 --- a/client/docs/GetDomainConfigs200Response.md +++ /dev/null @@ -1,32 +0,0 @@ -# GetDomainConfigs200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configurations** | **object** | | -**status** | **object** | | -**reason** | **str** | | -**code** | **str** | | - -## Example - -```python -from client.models.get_domain_configs200_response import GetDomainConfigs200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetDomainConfigs200Response from a JSON string -get_domain_configs200_response_instance = GetDomainConfigs200Response.from_json(json) -# print the JSON string representation of the object -print(GetDomainConfigs200Response.to_json()) - -# convert the object into a dict -get_domain_configs200_response_dict = get_domain_configs200_response_instance.to_dict() -# create an instance of GetDomainConfigs200Response from a dict -get_domain_configs200_response_from_dict = GetDomainConfigs200Response.from_dict(get_domain_configs200_response_dict) -``` -[[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 950342b..0000000 --- a/client/docs/GetDomainConfigs200ResponseAnyOf.md +++ /dev/null @@ -1,30 +0,0 @@ -# GetDomainConfigs200ResponseAnyOf - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configurations** | **object** | | -**status** | **object** | | - -## Example - -```python -from client.models.get_domain_configs200_response_any_of import GetDomainConfigs200ResponseAnyOf - -# TODO update the JSON string below -json = "{}" -# create an instance of GetDomainConfigs200ResponseAnyOf from a JSON string -get_domain_configs200_response_any_of_instance = GetDomainConfigs200ResponseAnyOf.from_json(json) -# print the JSON string representation of the object -print(GetDomainConfigs200ResponseAnyOf.to_json()) - -# convert the object into a dict -get_domain_configs200_response_any_of_dict = get_domain_configs200_response_any_of_instance.to_dict() -# create an instance of GetDomainConfigs200ResponseAnyOf from a dict -get_domain_configs200_response_any_of_from_dict = GetDomainConfigs200ResponseAnyOf.from_dict(get_domain_configs200_response_any_of_dict) -``` -[[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/GetDomainConfigs200ResponseAnyOf1.md deleted file mode 100644 index 20fa75f..0000000 --- a/client/docs/GetDomainConfigs200ResponseAnyOf1.md +++ /dev/null @@ -1,31 +0,0 @@ -# GetDomainConfigs200ResponseAnyOf1 - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reason** | **str** | | -**code** | **str** | | -**status** | **object** | | - -## Example - -```python -from client.models.get_domain_configs200_response_any_of1 import GetDomainConfigs200ResponseAnyOf1 - -# TODO update the JSON string below -json = "{}" -# create an instance of GetDomainConfigs200ResponseAnyOf1 from a JSON string -get_domain_configs200_response_any_of1_instance = GetDomainConfigs200ResponseAnyOf1.from_json(json) -# print the JSON string representation of the object -print(GetDomainConfigs200ResponseAnyOf1.to_json()) - -# convert the object into a dict -get_domain_configs200_response_any_of1_dict = get_domain_configs200_response_any_of1_instance.to_dict() -# create an instance of GetDomainConfigs200ResponseAnyOf1 from a dict -get_domain_configs200_response_any_of1_from_dict = GetDomainConfigs200ResponseAnyOf1.from_dict(get_domain_configs200_response_any_of1_dict) -``` -[[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..f1e2410 --- /dev/null +++ b/client/docs/GetDomainConfigsResponse.md @@ -0,0 +1,32 @@ +# GetDomainConfigsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configurations** | **object** | | +**status** | **object** | | +**reason** | **str** | | +**code** | **str** | | + +## Example + +```python +from client.models.get_domain_configs_response import GetDomainConfigsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDomainConfigsResponse from a JSON string +get_domain_configs_response_instance = GetDomainConfigsResponse.from_json(json) +# print the JSON string representation of the object +print(GetDomainConfigsResponse.to_json()) + +# convert the object into a dict +get_domain_configs_response_dict = get_domain_configs_response_instance.to_dict() +# create an instance of GetDomainConfigsResponse from a dict +get_domain_configs_response_from_dict = GetDomainConfigsResponse.from_dict(get_domain_configs_response_dict) +``` +[[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..ec4fe40 --- /dev/null +++ b/client/docs/GetDomainConfigsResponseAnyOf.md @@ -0,0 +1,30 @@ +# GetDomainConfigsResponseAnyOf + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configurations** | **object** | | +**status** | **object** | | + +## Example + +```python +from client.models.get_domain_configs_response_any_of import GetDomainConfigsResponseAnyOf + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDomainConfigsResponseAnyOf from a JSON string +get_domain_configs_response_any_of_instance = GetDomainConfigsResponseAnyOf.from_json(json) +# print the JSON string representation of the object +print(GetDomainConfigsResponseAnyOf.to_json()) + +# convert the object into a dict +get_domain_configs_response_any_of_dict = get_domain_configs_response_any_of_instance.to_dict() +# create an instance of GetDomainConfigsResponseAnyOf from a dict +get_domain_configs_response_any_of_from_dict = GetDomainConfigsResponseAnyOf.from_dict(get_domain_configs_response_any_of_dict) +``` +[[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/GetDomainConfigsResponseAnyOf1.md b/client/docs/GetDomainConfigsResponseAnyOf1.md new file mode 100644 index 0000000..9bff8f1 --- /dev/null +++ b/client/docs/GetDomainConfigsResponseAnyOf1.md @@ -0,0 +1,31 @@ +# GetDomainConfigsResponseAnyOf1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **str** | | +**code** | **str** | | +**status** | **object** | | + +## Example + +```python +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 + +# TODO update the JSON string below +json = "{}" +# create an instance of GetDomainConfigsResponseAnyOf1 from a JSON string +get_domain_configs_response_any_of1_instance = GetDomainConfigsResponseAnyOf1.from_json(json) +# print the JSON string representation of the object +print(GetDomainConfigsResponseAnyOf1.to_json()) + +# convert the object into a dict +get_domain_configs_response_any_of1_dict = get_domain_configs_response_any_of1_instance.to_dict() +# create an instance of GetDomainConfigsResponseAnyOf1 from a dict +get_domain_configs_response_any_of1_from_dict = GetDomainConfigsResponseAnyOf1.from_dict(get_domain_configs_response_any_of1_dict) +``` +[[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 6ef4243..0000000 --- a/client/docs/GetEmailTemplate200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetEmailTemplate200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**email_template** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_email_template200_response import GetEmailTemplate200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetEmailTemplate200Response from a JSON string -get_email_template200_response_instance = GetEmailTemplate200Response.from_json(json) -# print the JSON string representation of the object -print(GetEmailTemplate200Response.to_json()) - -# convert the object into a dict -get_email_template200_response_dict = get_email_template200_response_instance.to_dict() -# create an instance of GetEmailTemplate200Response from a dict -get_email_template200_response_from_dict = GetEmailTemplate200Response.from_dict(get_email_template200_response_dict) -``` -[[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 bd39052..0000000 --- a/client/docs/GetEmailTemplateDefinitions200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetEmailTemplateDefinitions200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**definitions** | [**List[EmailTemplateDefinition]**](EmailTemplateDefinition.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_email_template_definitions200_response import GetEmailTemplateDefinitions200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetEmailTemplateDefinitions200Response from a JSON string -get_email_template_definitions200_response_instance = GetEmailTemplateDefinitions200Response.from_json(json) -# print the JSON string representation of the object -print(GetEmailTemplateDefinitions200Response.to_json()) - -# convert the object into a dict -get_email_template_definitions200_response_dict = get_email_template_definitions200_response_instance.to_dict() -# create an instance of GetEmailTemplateDefinitions200Response from a dict -get_email_template_definitions200_response_from_dict = GetEmailTemplateDefinitions200Response.from_dict(get_email_template_definitions200_response_dict) -``` -[[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 d8f1572..0000000 --- a/client/docs/GetEmailTemplateRenderErrors200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetEmailTemplateRenderErrors200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**render_errors** | [**List[EmailTemplateRenderErrorResponse]**](EmailTemplateRenderErrorResponse.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_email_template_render_errors200_response import GetEmailTemplateRenderErrors200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetEmailTemplateRenderErrors200Response from a JSON string -get_email_template_render_errors200_response_instance = GetEmailTemplateRenderErrors200Response.from_json(json) -# print the JSON string representation of the object -print(GetEmailTemplateRenderErrors200Response.to_json()) - -# convert the object into a dict -get_email_template_render_errors200_response_dict = get_email_template_render_errors200_response_instance.to_dict() -# create an instance of GetEmailTemplateRenderErrors200Response from a dict -get_email_template_render_errors200_response_from_dict = GetEmailTemplateRenderErrors200Response.from_dict(get_email_template_render_errors200_response_dict) -``` -[[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 e400c32..0000000 --- a/client/docs/GetEmailTemplates200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetEmailTemplates200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**email_templates** | [**List[CustomEmailTemplate]**](CustomEmailTemplate.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_email_templates200_response import GetEmailTemplates200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetEmailTemplates200Response from a JSON string -get_email_templates200_response_instance = GetEmailTemplates200Response.from_json(json) -# print the JSON string representation of the object -print(GetEmailTemplates200Response.to_json()) - -# convert the object into a dict -get_email_templates200_response_dict = get_email_templates200_response_instance.to_dict() -# create an instance of GetEmailTemplates200Response from a dict -get_email_templates200_response_from_dict = GetEmailTemplates200Response.from_dict(get_email_templates200_response_dict) -``` -[[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 8306305..0000000 --- a/client/docs/GetEventLog200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetEventLog200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**events** | [**List[EventLogEntry]**](EventLogEntry.md) | | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_event_log200_response import GetEventLog200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetEventLog200Response from a JSON string -get_event_log200_response_instance = GetEventLog200Response.from_json(json) -# print the JSON string representation of the object -print(GetEventLog200Response.to_json()) - -# convert the object into a dict -get_event_log200_response_dict = get_event_log200_response_instance.to_dict() -# create an instance of GetEventLog200Response from a dict -get_event_log200_response_from_dict = GetEventLog200Response.from_dict(get_event_log200_response_dict) -``` -[[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 636f43b..0000000 --- a/client/docs/GetFeedPosts200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetFeedPosts200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feed_posts** | [**List[FeedPost]**](FeedPost.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_feed_posts200_response import GetFeedPosts200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetFeedPosts200Response from a JSON string -get_feed_posts200_response_instance = GetFeedPosts200Response.from_json(json) -# print the JSON string representation of the object -print(GetFeedPosts200Response.to_json()) - -# convert the object into a dict -get_feed_posts200_response_dict = get_feed_posts200_response_instance.to_dict() -# create an instance of GetFeedPosts200Response from a dict -get_feed_posts200_response_from_dict = GetFeedPosts200Response.from_dict(get_feed_posts200_response_dict) -``` -[[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 b5c4b4a..0000000 --- a/client/docs/GetFeedPostsPublic200Response.md +++ /dev/null @@ -1,42 +0,0 @@ -# GetFeedPostsPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**my_reacts** | **Dict[str, Dict[str, bool]]** | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**feed_posts** | [**List[FeedPost]**](FeedPost.md) | | -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] -**url_id_ws** | **str** | | [optional] -**user_id_ws** | **str** | | [optional] -**tenant_id_ws** | **str** | | [optional] -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_feed_posts_public200_response import GetFeedPostsPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetFeedPostsPublic200Response from a JSON string -get_feed_posts_public200_response_instance = GetFeedPostsPublic200Response.from_json(json) -# print the JSON string representation of the object -print(GetFeedPostsPublic200Response.to_json()) - -# convert the object into a dict -get_feed_posts_public200_response_dict = get_feed_posts_public200_response_instance.to_dict() -# create an instance of GetFeedPostsPublic200Response from a dict -get_feed_posts_public200_response_from_dict = GetFeedPostsPublic200Response.from_dict(get_feed_posts_public200_response_dict) -``` -[[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 043730c..0000000 --- a/client/docs/GetFeedPostsStats200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetFeedPostsStats200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**stats** | [**Dict[str, FeedPostStats]**](FeedPostStats.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_feed_posts_stats200_response import GetFeedPostsStats200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetFeedPostsStats200Response from a JSON string -get_feed_posts_stats200_response_instance = GetFeedPostsStats200Response.from_json(json) -# print the JSON string representation of the object -print(GetFeedPostsStats200Response.to_json()) - -# convert the object into a dict -get_feed_posts_stats200_response_dict = get_feed_posts_stats200_response_instance.to_dict() -# create an instance of GetFeedPostsStats200Response from a dict -get_feed_posts_stats200_response_from_dict = GetFeedPostsStats200Response.from_dict(get_feed_posts_stats200_response_dict) -``` -[[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..50e4b33 --- /dev/null +++ b/client/docs/GetGifsSearchResponse.md @@ -0,0 +1,31 @@ +# GetGifsSearchResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | **List[List[GifSearchResponseImagesInnerInner]]** | | +**status** | [**APIStatus**](APIStatus.md) | | +**code** | **str** | | + +## Example + +```python +from client.models.get_gifs_search_response import GetGifsSearchResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGifsSearchResponse from a JSON string +get_gifs_search_response_instance = GetGifsSearchResponse.from_json(json) +# print the JSON string representation of the object +print(GetGifsSearchResponse.to_json()) + +# convert the object into a dict +get_gifs_search_response_dict = get_gifs_search_response_instance.to_dict() +# create an instance of GetGifsSearchResponse from a dict +get_gifs_search_response_from_dict = GetGifsSearchResponse.from_dict(get_gifs_search_response_dict) +``` +[[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..c189699 --- /dev/null +++ b/client/docs/GetGifsTrendingResponse.md @@ -0,0 +1,31 @@ +# GetGifsTrendingResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | **List[List[GifSearchResponseImagesInnerInner]]** | | +**status** | [**APIStatus**](APIStatus.md) | | +**code** | **str** | | + +## Example + +```python +from client.models.get_gifs_trending_response import GetGifsTrendingResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetGifsTrendingResponse from a JSON string +get_gifs_trending_response_instance = GetGifsTrendingResponse.from_json(json) +# print the JSON string representation of the object +print(GetGifsTrendingResponse.to_json()) + +# convert the object into a dict +get_gifs_trending_response_dict = get_gifs_trending_response_instance.to_dict() +# create an instance of GetGifsTrendingResponse from a dict +get_gifs_trending_response_from_dict = GetGifsTrendingResponse.from_dict(get_gifs_trending_response_dict) +``` +[[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 686a409..0000000 --- a/client/docs/GetHashTags200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetHashTags200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**hash_tags** | [**List[TenantHashTag]**](TenantHashTag.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_hash_tags200_response import GetHashTags200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetHashTags200Response from a JSON string -get_hash_tags200_response_instance = GetHashTags200Response.from_json(json) -# print the JSON string representation of the object -print(GetHashTags200Response.to_json()) - -# convert the object into a dict -get_hash_tags200_response_dict = get_hash_tags200_response_instance.to_dict() -# create an instance of GetHashTags200Response from a dict -get_hash_tags200_response_from_dict = GetHashTags200Response.from_dict(get_hash_tags200_response_dict) -``` -[[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 254cd29..0000000 --- a/client/docs/GetModerator200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetModerator200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderator** | [**Moderator**](Moderator.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_moderator200_response import GetModerator200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetModerator200Response from a JSON string -get_moderator200_response_instance = GetModerator200Response.from_json(json) -# print the JSON string representation of the object -print(GetModerator200Response.to_json()) - -# convert the object into a dict -get_moderator200_response_dict = get_moderator200_response_instance.to_dict() -# create an instance of GetModerator200Response from a dict -get_moderator200_response_from_dict = GetModerator200Response.from_dict(get_moderator200_response_dict) -``` -[[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 46f5f00..0000000 --- a/client/docs/GetModerators200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetModerators200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderators** | [**List[Moderator]**](Moderator.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_moderators200_response import GetModerators200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetModerators200Response from a JSON string -get_moderators200_response_instance = GetModerators200Response.from_json(json) -# print the JSON string representation of the object -print(GetModerators200Response.to_json()) - -# convert the object into a dict -get_moderators200_response_dict = get_moderators200_response_instance.to_dict() -# create an instance of GetModerators200Response from a dict -get_moderators200_response_from_dict = GetModerators200Response.from_dict(get_moderators200_response_dict) -``` -[[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 7ba7b9b..0000000 --- a/client/docs/GetNotificationCount200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetNotificationCount200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**count** | **float** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_notification_count200_response import GetNotificationCount200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetNotificationCount200Response from a JSON string -get_notification_count200_response_instance = GetNotificationCount200Response.from_json(json) -# print the JSON string representation of the object -print(GetNotificationCount200Response.to_json()) - -# convert the object into a dict -get_notification_count200_response_dict = get_notification_count200_response_instance.to_dict() -# create an instance of GetNotificationCount200Response from a dict -get_notification_count200_response_from_dict = GetNotificationCount200Response.from_dict(get_notification_count200_response_dict) -``` -[[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 f7d96cb..0000000 --- a/client/docs/GetNotifications200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetNotifications200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**notifications** | [**List[UserNotification]**](UserNotification.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_notifications200_response import GetNotifications200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetNotifications200Response from a JSON string -get_notifications200_response_instance = GetNotifications200Response.from_json(json) -# print the JSON string representation of the object -print(GetNotifications200Response.to_json()) - -# convert the object into a dict -get_notifications200_response_dict = get_notifications200_response_instance.to_dict() -# create an instance of GetNotifications200Response from a dict -get_notifications200_response_from_dict = GetNotifications200Response.from_dict(get_notifications200_response_dict) -``` -[[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 a3efa22..0000000 --- a/client/docs/GetPendingWebhookEventCount200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetPendingWebhookEventCount200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**count** | **float** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_pending_webhook_event_count200_response import GetPendingWebhookEventCount200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPendingWebhookEventCount200Response from a JSON string -get_pending_webhook_event_count200_response_instance = GetPendingWebhookEventCount200Response.from_json(json) -# print the JSON string representation of the object -print(GetPendingWebhookEventCount200Response.to_json()) - -# convert the object into a dict -get_pending_webhook_event_count200_response_dict = get_pending_webhook_event_count200_response_instance.to_dict() -# create an instance of GetPendingWebhookEventCount200Response from a dict -get_pending_webhook_event_count200_response_from_dict = GetPendingWebhookEventCount200Response.from_dict(get_pending_webhook_event_count200_response_dict) -``` -[[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 f06957e..0000000 --- a/client/docs/GetPendingWebhookEvents200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetPendingWebhookEvents200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**pending_webhook_events** | [**List[PendingCommentToSyncOutbound]**](PendingCommentToSyncOutbound.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_pending_webhook_events200_response import GetPendingWebhookEvents200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetPendingWebhookEvents200Response from a JSON string -get_pending_webhook_events200_response_instance = GetPendingWebhookEvents200Response.from_json(json) -# print the JSON string representation of the object -print(GetPendingWebhookEvents200Response.to_json()) - -# convert the object into a dict -get_pending_webhook_events200_response_dict = get_pending_webhook_events200_response_instance.to_dict() -# create an instance of GetPendingWebhookEvents200Response from a dict -get_pending_webhook_events200_response_from_dict = GetPendingWebhookEvents200Response.from_dict(get_pending_webhook_events200_response_dict) -``` -[[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..0527fa6 --- /dev/null +++ b/client/docs/GetPublicPagesResponse.md @@ -0,0 +1,31 @@ +# GetPublicPagesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next_cursor** | **str** | | +**pages** | [**List[PublicPage]**](PublicPage.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_public_pages_response import GetPublicPagesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetPublicPagesResponse from a JSON string +get_public_pages_response_instance = GetPublicPagesResponse.from_json(json) +# print the JSON string representation of the object +print(GetPublicPagesResponse.to_json()) + +# convert the object into a dict +get_public_pages_response_dict = get_public_pages_response_instance.to_dict() +# create an instance of GetPublicPagesResponse from a dict +get_public_pages_response_from_dict = GetPublicPagesResponse.from_dict(get_public_pages_response_dict) +``` +[[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 b461c31..0000000 --- a/client/docs/GetQuestionConfig200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetQuestionConfig200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**question_config** | [**QuestionConfig**](QuestionConfig.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_question_config200_response import GetQuestionConfig200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetQuestionConfig200Response from a JSON string -get_question_config200_response_instance = GetQuestionConfig200Response.from_json(json) -# print the JSON string representation of the object -print(GetQuestionConfig200Response.to_json()) - -# convert the object into a dict -get_question_config200_response_dict = get_question_config200_response_instance.to_dict() -# create an instance of GetQuestionConfig200Response from a dict -get_question_config200_response_from_dict = GetQuestionConfig200Response.from_dict(get_question_config200_response_dict) -``` -[[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 f5b5fea..0000000 --- a/client/docs/GetQuestionConfigs200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetQuestionConfigs200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**question_configs** | [**List[QuestionConfig]**](QuestionConfig.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_question_configs200_response import GetQuestionConfigs200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetQuestionConfigs200Response from a JSON string -get_question_configs200_response_instance = GetQuestionConfigs200Response.from_json(json) -# print the JSON string representation of the object -print(GetQuestionConfigs200Response.to_json()) - -# convert the object into a dict -get_question_configs200_response_dict = get_question_configs200_response_instance.to_dict() -# create an instance of GetQuestionConfigs200Response from a dict -get_question_configs200_response_from_dict = GetQuestionConfigs200Response.from_dict(get_question_configs200_response_dict) -``` -[[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 0748288..0000000 --- a/client/docs/GetQuestionResult200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetQuestionResult200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**question_result** | [**QuestionResult**](QuestionResult.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_question_result200_response import GetQuestionResult200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetQuestionResult200Response from a JSON string -get_question_result200_response_instance = GetQuestionResult200Response.from_json(json) -# print the JSON string representation of the object -print(GetQuestionResult200Response.to_json()) - -# convert the object into a dict -get_question_result200_response_dict = get_question_result200_response_instance.to_dict() -# create an instance of GetQuestionResult200Response from a dict -get_question_result200_response_from_dict = GetQuestionResult200Response.from_dict(get_question_result200_response_dict) -``` -[[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 2f73ce7..0000000 --- a/client/docs/GetQuestionResults200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetQuestionResults200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**question_results** | [**List[QuestionResult]**](QuestionResult.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_question_results200_response import GetQuestionResults200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetQuestionResults200Response from a JSON string -get_question_results200_response_instance = GetQuestionResults200Response.from_json(json) -# print the JSON string representation of the object -print(GetQuestionResults200Response.to_json()) - -# convert the object into a dict -get_question_results200_response_dict = get_question_results200_response_instance.to_dict() -# create an instance of GetQuestionResults200Response from a dict -get_question_results200_response_from_dict = GetQuestionResults200Response.from_dict(get_question_results200_response_dict) -``` -[[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 50% rename from client/docs/GetSSOUsers200Response.md rename to client/docs/GetSSOUsersResponse.md index 9701732..f113bec 100644 --- a/client/docs/GetSSOUsers200Response.md +++ b/client/docs/GetSSOUsersResponse.md @@ -1,4 +1,4 @@ -# GetSSOUsers200Response +# GetSSOUsersResponse ## Properties @@ -11,19 +11,19 @@ Name | Type | Description | Notes ## Example ```python -from client.models.get_sso_users200_response import GetSSOUsers200Response +from client.models.get_sso_users_response import GetSSOUsersResponse # TODO update the JSON string below json = "{}" -# create an instance of GetSSOUsers200Response from a JSON string -get_sso_users200_response_instance = GetSSOUsers200Response.from_json(json) +# create an instance of GetSSOUsersResponse from a JSON string +get_sso_users_response_instance = GetSSOUsersResponse.from_json(json) # print the JSON string representation of the object -print(GetSSOUsers200Response.to_json()) +print(GetSSOUsersResponse.to_json()) # convert the object into a dict -get_sso_users200_response_dict = get_sso_users200_response_instance.to_dict() -# create an instance of GetSSOUsers200Response from a dict -get_sso_users200_response_from_dict = GetSSOUsers200Response.from_dict(get_sso_users200_response_dict) +get_sso_users_response_dict = get_sso_users_response_instance.to_dict() +# create an instance of GetSSOUsersResponse from a dict +get_sso_users_response_from_dict = GetSSOUsersResponse.from_dict(get_sso_users_response_dict) ``` [[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/GetTenant200Response.md b/client/docs/GetTenant200Response.md deleted file mode 100644 index 7127547..0000000 --- a/client/docs/GetTenant200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetTenant200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant** | [**APITenant**](APITenant.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_tenant200_response import GetTenant200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTenant200Response from a JSON string -get_tenant200_response_instance = GetTenant200Response.from_json(json) -# print the JSON string representation of the object -print(GetTenant200Response.to_json()) - -# convert the object into a dict -get_tenant200_response_dict = get_tenant200_response_instance.to_dict() -# create an instance of GetTenant200Response from a dict -get_tenant200_response_from_dict = GetTenant200Response.from_dict(get_tenant200_response_dict) -``` -[[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 13bc704..0000000 --- a/client/docs/GetTenantDailyUsages200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetTenantDailyUsages200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant_daily_usages** | [**List[APITenantDailyUsage]**](APITenantDailyUsage.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_tenant_daily_usages200_response import GetTenantDailyUsages200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTenantDailyUsages200Response from a JSON string -get_tenant_daily_usages200_response_instance = GetTenantDailyUsages200Response.from_json(json) -# print the JSON string representation of the object -print(GetTenantDailyUsages200Response.to_json()) - -# convert the object into a dict -get_tenant_daily_usages200_response_dict = get_tenant_daily_usages200_response_instance.to_dict() -# create an instance of GetTenantDailyUsages200Response from a dict -get_tenant_daily_usages200_response_from_dict = GetTenantDailyUsages200Response.from_dict(get_tenant_daily_usages200_response_dict) -``` -[[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..3ce3c4c --- /dev/null +++ b/client/docs/GetTenantManualBadgesResponse.md @@ -0,0 +1,30 @@ +# GetTenantManualBadgesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [**List[TenantBadge]**](TenantBadge.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_tenant_manual_badges_response import GetTenantManualBadgesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTenantManualBadgesResponse from a JSON string +get_tenant_manual_badges_response_instance = GetTenantManualBadgesResponse.from_json(json) +# print the JSON string representation of the object +print(GetTenantManualBadgesResponse.to_json()) + +# convert the object into a dict +get_tenant_manual_badges_response_dict = get_tenant_manual_badges_response_instance.to_dict() +# create an instance of GetTenantManualBadgesResponse from a dict +get_tenant_manual_badges_response_from_dict = GetTenantManualBadgesResponse.from_dict(get_tenant_manual_badges_response_dict) +``` +[[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 0fc91d3..0000000 --- a/client/docs/GetTenantPackage200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetTenantPackage200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant_package** | [**TenantPackage**](TenantPackage.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_tenant_package200_response import GetTenantPackage200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTenantPackage200Response from a JSON string -get_tenant_package200_response_instance = GetTenantPackage200Response.from_json(json) -# print the JSON string representation of the object -print(GetTenantPackage200Response.to_json()) - -# convert the object into a dict -get_tenant_package200_response_dict = get_tenant_package200_response_instance.to_dict() -# create an instance of GetTenantPackage200Response from a dict -get_tenant_package200_response_from_dict = GetTenantPackage200Response.from_dict(get_tenant_package200_response_dict) -``` -[[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 b7e8d03..0000000 --- a/client/docs/GetTenantPackages200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetTenantPackages200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant_packages** | [**List[TenantPackage]**](TenantPackage.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_tenant_packages200_response import GetTenantPackages200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTenantPackages200Response from a JSON string -get_tenant_packages200_response_instance = GetTenantPackages200Response.from_json(json) -# print the JSON string representation of the object -print(GetTenantPackages200Response.to_json()) - -# convert the object into a dict -get_tenant_packages200_response_dict = get_tenant_packages200_response_instance.to_dict() -# create an instance of GetTenantPackages200Response from a dict -get_tenant_packages200_response_from_dict = GetTenantPackages200Response.from_dict(get_tenant_packages200_response_dict) -``` -[[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 e6b620e..0000000 --- a/client/docs/GetTenantUser200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetTenantUser200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant_user** | [**User**](User.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_tenant_user200_response import GetTenantUser200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTenantUser200Response from a JSON string -get_tenant_user200_response_instance = GetTenantUser200Response.from_json(json) -# print the JSON string representation of the object -print(GetTenantUser200Response.to_json()) - -# convert the object into a dict -get_tenant_user200_response_dict = get_tenant_user200_response_instance.to_dict() -# create an instance of GetTenantUser200Response from a dict -get_tenant_user200_response_from_dict = GetTenantUser200Response.from_dict(get_tenant_user200_response_dict) -``` -[[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 d24524c..0000000 --- a/client/docs/GetTenantUsers200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetTenantUsers200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant_users** | [**List[User]**](User.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_tenant_users200_response import GetTenantUsers200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTenantUsers200Response from a JSON string -get_tenant_users200_response_instance = GetTenantUsers200Response.from_json(json) -# print the JSON string representation of the object -print(GetTenantUsers200Response.to_json()) - -# convert the object into a dict -get_tenant_users200_response_dict = get_tenant_users200_response_instance.to_dict() -# create an instance of GetTenantUsers200Response from a dict -get_tenant_users200_response_from_dict = GetTenantUsers200Response.from_dict(get_tenant_users200_response_dict) -``` -[[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 8fda83d..0000000 --- a/client/docs/GetTenants200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetTenants200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenants** | [**List[APITenant]**](APITenant.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_tenants200_response import GetTenants200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTenants200Response from a JSON string -get_tenants200_response_instance = GetTenants200Response.from_json(json) -# print the JSON string representation of the object -print(GetTenants200Response.to_json()) - -# convert the object into a dict -get_tenants200_response_dict = get_tenants200_response_instance.to_dict() -# create an instance of GetTenants200Response from a dict -get_tenants200_response_from_dict = GetTenants200Response.from_dict(get_tenants200_response_dict) -``` -[[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 c3d771e..0000000 --- a/client/docs/GetTicket200Response.md +++ /dev/null @@ -1,38 +0,0 @@ -# GetTicket200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicketDetail**](APITicketDetail.md) | | -**available_states** | **List[float]** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_ticket200_response import GetTicket200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTicket200Response from a JSON string -get_ticket200_response_instance = GetTicket200Response.from_json(json) -# print the JSON string representation of the object -print(GetTicket200Response.to_json()) - -# convert the object into a dict -get_ticket200_response_dict = get_ticket200_response_instance.to_dict() -# create an instance of GetTicket200Response from a dict -get_ticket200_response_from_dict = GetTicket200Response.from_dict(get_ticket200_response_dict) -``` -[[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 1ef76d7..0000000 --- a/client/docs/GetTickets200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetTickets200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tickets** | [**List[APITicket]**](APITicket.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_tickets200_response import GetTickets200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetTickets200Response from a JSON string -get_tickets200_response_instance = GetTickets200Response.from_json(json) -# print the JSON string representation of the object -print(GetTickets200Response.to_json()) - -# convert the object into a dict -get_tickets200_response_dict = get_tickets200_response_instance.to_dict() -# create an instance of GetTickets200Response from a dict -get_tickets200_response_from_dict = GetTickets200Response.from_dict(get_tickets200_response_dict) -``` -[[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..a00d97d --- /dev/null +++ b/client/docs/GetTranslationsResponse.md @@ -0,0 +1,30 @@ +# GetTranslationsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**translations** | **Dict[str, str]** | Construct a type with a set of properties K of type T | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_translations_response import GetTranslationsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetTranslationsResponse from a JSON string +get_translations_response_instance = GetTranslationsResponse.from_json(json) +# print the JSON string representation of the object +print(GetTranslationsResponse.to_json()) + +# convert the object into a dict +get_translations_response_dict = get_translations_response_instance.to_dict() +# create an instance of GetTranslationsResponse from a dict +get_translations_response_from_dict = GetTranslationsResponse.from_dict(get_translations_response_dict) +``` +[[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 b790900..0000000 --- a/client/docs/GetUser200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetUser200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user** | [**User**](User.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user200_response import GetUser200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUser200Response from a JSON string -get_user200_response_instance = GetUser200Response.from_json(json) -# print the JSON string representation of the object -print(GetUser200Response.to_json()) - -# convert the object into a dict -get_user200_response_dict = get_user200_response_instance.to_dict() -# create an instance of GetUser200Response from a dict -get_user200_response_from_dict = GetUser200Response.from_dict(get_user200_response_dict) -``` -[[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 9528a58..0000000 --- a/client/docs/GetUserBadge200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetUserBadge200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user_badge** | [**UserBadge**](UserBadge.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user_badge200_response import GetUserBadge200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUserBadge200Response from a JSON string -get_user_badge200_response_instance = GetUserBadge200Response.from_json(json) -# print the JSON string representation of the object -print(GetUserBadge200Response.to_json()) - -# convert the object into a dict -get_user_badge200_response_dict = get_user_badge200_response_instance.to_dict() -# create an instance of GetUserBadge200Response from a dict -get_user_badge200_response_from_dict = GetUserBadge200Response.from_dict(get_user_badge200_response_dict) -``` -[[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 8c46b25..0000000 --- a/client/docs/GetUserBadgeProgressById200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetUserBadgeProgressById200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user_badge_progress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user_badge_progress_by_id200_response import GetUserBadgeProgressById200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUserBadgeProgressById200Response from a JSON string -get_user_badge_progress_by_id200_response_instance = GetUserBadgeProgressById200Response.from_json(json) -# print the JSON string representation of the object -print(GetUserBadgeProgressById200Response.to_json()) - -# convert the object into a dict -get_user_badge_progress_by_id200_response_dict = get_user_badge_progress_by_id200_response_instance.to_dict() -# create an instance of GetUserBadgeProgressById200Response from a dict -get_user_badge_progress_by_id200_response_from_dict = GetUserBadgeProgressById200Response.from_dict(get_user_badge_progress_by_id200_response_dict) -``` -[[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 498e938..0000000 --- a/client/docs/GetUserBadgeProgressList200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetUserBadgeProgressList200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user_badge_progresses** | [**List[UserBadgeProgress]**](UserBadgeProgress.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user_badge_progress_list200_response import GetUserBadgeProgressList200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUserBadgeProgressList200Response from a JSON string -get_user_badge_progress_list200_response_instance = GetUserBadgeProgressList200Response.from_json(json) -# print the JSON string representation of the object -print(GetUserBadgeProgressList200Response.to_json()) - -# convert the object into a dict -get_user_badge_progress_list200_response_dict = get_user_badge_progress_list200_response_instance.to_dict() -# create an instance of GetUserBadgeProgressList200Response from a dict -get_user_badge_progress_list200_response_from_dict = GetUserBadgeProgressList200Response.from_dict(get_user_badge_progress_list200_response_dict) -``` -[[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 fb5773a..0000000 --- a/client/docs/GetUserBadges200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetUserBadges200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user_badges** | [**List[UserBadge]**](UserBadge.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user_badges200_response import GetUserBadges200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUserBadges200Response from a JSON string -get_user_badges200_response_instance = GetUserBadges200Response.from_json(json) -# print the JSON string representation of the object -print(GetUserBadges200Response.to_json()) - -# convert the object into a dict -get_user_badges200_response_dict = get_user_badges200_response_instance.to_dict() -# create an instance of GetUserBadges200Response from a dict -get_user_badges200_response_from_dict = GetUserBadges200Response.from_dict(get_user_badges200_response_dict) -``` -[[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..1ba500e --- /dev/null +++ b/client/docs/GetUserInternalProfileResponse.md @@ -0,0 +1,30 @@ +# GetUserInternalProfileResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_user_internal_profile_response import GetUserInternalProfileResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUserInternalProfileResponse from a JSON string +get_user_internal_profile_response_instance = GetUserInternalProfileResponse.from_json(json) +# print the JSON string representation of the object +print(GetUserInternalProfileResponse.to_json()) + +# convert the object into a dict +get_user_internal_profile_response_dict = get_user_internal_profile_response_instance.to_dict() +# create an instance of GetUserInternalProfileResponse from a dict +get_user_internal_profile_response_from_dict = GetUserInternalProfileResponse.from_dict(get_user_internal_profile_response_dict) +``` +[[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..2a81a4a --- /dev/null +++ b/client/docs/GetUserInternalProfileResponseProfile.md @@ -0,0 +1,45 @@ +# GetUserInternalProfileResponseProfile + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commenter_name** | **str** | | [optional] +**first_comment_date** | **datetime** | | [optional] +**ip_hash** | **str** | | [optional] +**country_flag** | **str** | | [optional] +**country_code** | **str** | | [optional] +**website_url** | **str** | | [optional] +**bio** | **str** | | [optional] +**karma** | **float** | | [optional] +**locale** | **str** | | [optional] +**verified** | **bool** | | [optional] +**avatar_src** | **str** | | [optional] +**display_name** | **str** | | [optional] +**username** | **str** | | [optional] +**commenter_email** | **str** | | [optional] +**email** | **str** | | [optional] +**anon_user_id** | **str** | | [optional] +**user_id** | **str** | | [optional] + +## Example + +```python +from client.models.get_user_internal_profile_response_profile import GetUserInternalProfileResponseProfile + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUserInternalProfileResponseProfile from a JSON string +get_user_internal_profile_response_profile_instance = GetUserInternalProfileResponseProfile.from_json(json) +# print the JSON string representation of the object +print(GetUserInternalProfileResponseProfile.to_json()) + +# convert the object into a dict +get_user_internal_profile_response_profile_dict = get_user_internal_profile_response_profile_instance.to_dict() +# create an instance of GetUserInternalProfileResponseProfile from a dict +get_user_internal_profile_response_profile_from_dict = GetUserInternalProfileResponseProfile.from_dict(get_user_internal_profile_response_profile_dict) +``` +[[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..3f8097e --- /dev/null +++ b/client/docs/GetUserManualBadgesResponse.md @@ -0,0 +1,30 @@ +# GetUserManualBadgesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [**List[UserBadge]**](UserBadge.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_user_manual_badges_response import GetUserManualBadgesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUserManualBadgesResponse from a JSON string +get_user_manual_badges_response_instance = GetUserManualBadgesResponse.from_json(json) +# print the JSON string representation of the object +print(GetUserManualBadgesResponse.to_json()) + +# convert the object into a dict +get_user_manual_badges_response_dict = get_user_manual_badges_response_instance.to_dict() +# create an instance of GetUserManualBadgesResponse from a dict +get_user_manual_badges_response_from_dict = GetUserManualBadgesResponse.from_dict(get_user_manual_badges_response_dict) +``` +[[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 817faad..0000000 --- a/client/docs/GetUserNotificationCount200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetUserNotificationCount200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**count** | **int** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user_notification_count200_response import GetUserNotificationCount200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUserNotificationCount200Response from a JSON string -get_user_notification_count200_response_instance = GetUserNotificationCount200Response.from_json(json) -# print the JSON string representation of the object -print(GetUserNotificationCount200Response.to_json()) - -# convert the object into a dict -get_user_notification_count200_response_dict = get_user_notification_count200_response_instance.to_dict() -# create an instance of GetUserNotificationCount200Response from a dict -get_user_notification_count200_response_from_dict = GetUserNotificationCount200Response.from_dict(get_user_notification_count200_response_dict) -``` -[[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 a482dd8..0000000 --- a/client/docs/GetUserNotifications200Response.md +++ /dev/null @@ -1,40 +0,0 @@ -# GetUserNotifications200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**translations** | **Dict[str, str]** | Construct a type with a set of properties K of type T | [optional] -**is_subscribed** | **bool** | | -**has_more** | **bool** | | -**notifications** | [**List[RenderableUserNotification]**](RenderableUserNotification.md) | | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user_notifications200_response import GetUserNotifications200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUserNotifications200Response from a JSON string -get_user_notifications200_response_instance = GetUserNotifications200Response.from_json(json) -# print the JSON string representation of the object -print(GetUserNotifications200Response.to_json()) - -# convert the object into a dict -get_user_notifications200_response_dict = get_user_notifications200_response_instance.to_dict() -# create an instance of GetUserNotifications200Response from a dict -get_user_notifications200_response_from_dict = GetUserNotifications200Response.from_dict(get_user_notifications200_response_dict) -``` -[[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 7a94840..0000000 --- a/client/docs/GetUserPresenceStatuses200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetUserPresenceStatuses200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user_ids_online** | **Dict[str, bool]** | Construct a type with a set of properties K of type T | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user_presence_statuses200_response import GetUserPresenceStatuses200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUserPresenceStatuses200Response from a JSON string -get_user_presence_statuses200_response_instance = GetUserPresenceStatuses200Response.from_json(json) -# print the JSON string representation of the object -print(GetUserPresenceStatuses200Response.to_json()) - -# convert the object into a dict -get_user_presence_statuses200_response_dict = get_user_presence_statuses200_response_instance.to_dict() -# create an instance of GetUserPresenceStatuses200Response from a dict -get_user_presence_statuses200_response_from_dict = GetUserPresenceStatuses200Response.from_dict(get_user_presence_statuses200_response_dict) -``` -[[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 6a30c20..0000000 --- a/client/docs/GetUserReactsPublic200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# GetUserReactsPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reacts** | **Dict[str, Dict[str, bool]]** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_user_reacts_public200_response import GetUserReactsPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetUserReactsPublic200Response from a JSON string -get_user_reacts_public200_response_instance = GetUserReactsPublic200Response.from_json(json) -# print the JSON string representation of the object -print(GetUserReactsPublic200Response.to_json()) - -# convert the object into a dict -get_user_reacts_public200_response_dict = get_user_reacts_public200_response_instance.to_dict() -# create an instance of GetUserReactsPublic200Response from a dict -get_user_reacts_public200_response_from_dict = GetUserReactsPublic200Response.from_dict(get_user_reacts_public200_response_dict) -``` -[[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..1770551 --- /dev/null +++ b/client/docs/GetUserTrustFactorResponse.md @@ -0,0 +1,31 @@ +# GetUserTrustFactorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**manual_trust_factor** | **float** | | [optional] +**auto_trust_factor** | **float** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_user_trust_factor_response import GetUserTrustFactorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetUserTrustFactorResponse from a JSON string +get_user_trust_factor_response_instance = GetUserTrustFactorResponse.from_json(json) +# print the JSON string representation of the object +print(GetUserTrustFactorResponse.to_json()) + +# convert the object into a dict +get_user_trust_factor_response_dict = get_user_trust_factor_response_instance.to_dict() +# create an instance of GetUserTrustFactorResponse from a dict +get_user_trust_factor_response_from_dict = GetUserTrustFactorResponse.from_dict(get_user_trust_factor_response_dict) +``` +[[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..ad43cb7 --- /dev/null +++ b/client/docs/GetV1PageLikes.md @@ -0,0 +1,33 @@ +# GetV1PageLikes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url_id_ws** | **str** | | +**did_like** | **bool** | | +**comment_count** | **int** | | +**like_count** | **int** | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_v1_page_likes import GetV1PageLikes + +# TODO update the JSON string below +json = "{}" +# create an instance of GetV1PageLikes from a JSON string +get_v1_page_likes_instance = GetV1PageLikes.from_json(json) +# print the JSON string representation of the object +print(GetV1PageLikes.to_json()) + +# convert the object into a dict +get_v1_page_likes_dict = get_v1_page_likes_instance.to_dict() +# create an instance of GetV1PageLikes from a dict +get_v1_page_likes_from_dict = GetV1PageLikes.from_dict(get_v1_page_likes_dict) +``` +[[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..13ec91b --- /dev/null +++ b/client/docs/GetV2PageReactUsersResponse.md @@ -0,0 +1,30 @@ +# GetV2PageReactUsersResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**user_names** | **List[str]** | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_v2_page_react_users_response import GetV2PageReactUsersResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GetV2PageReactUsersResponse from a JSON string +get_v2_page_react_users_response_instance = GetV2PageReactUsersResponse.from_json(json) +# print the JSON string representation of the object +print(GetV2PageReactUsersResponse.to_json()) + +# convert the object into a dict +get_v2_page_react_users_response_dict = get_v2_page_react_users_response_instance.to_dict() +# create an instance of GetV2PageReactUsersResponse from a dict +get_v2_page_react_users_response_from_dict = GetV2PageReactUsersResponse.from_dict(get_v2_page_react_users_response_dict) +``` +[[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..f477604 --- /dev/null +++ b/client/docs/GetV2PageReacts.md @@ -0,0 +1,31 @@ +# GetV2PageReacts + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reacted_ids** | **List[str]** | | [optional] +**counts** | **Dict[str, float]** | Construct a type with a set of properties K of type T | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.get_v2_page_reacts import GetV2PageReacts + +# TODO update the JSON string below +json = "{}" +# create an instance of GetV2PageReacts from a JSON string +get_v2_page_reacts_instance = GetV2PageReacts.from_json(json) +# print the JSON string representation of the object +print(GetV2PageReacts.to_json()) + +# convert the object into a dict +get_v2_page_reacts_dict = get_v2_page_reacts_instance.to_dict() +# create an instance of GetV2PageReacts from a dict +get_v2_page_reacts_from_dict = GetV2PageReacts.from_dict(get_v2_page_reacts_dict) +``` +[[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 cb7e7c0..0000000 --- a/client/docs/GetVotes200Response.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetVotes200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**applied_authorized_votes** | [**List[PublicVote]**](PublicVote.md) | | -**applied_anonymous_votes** | [**List[PublicVote]**](PublicVote.md) | | -**pending_votes** | [**List[PublicVote]**](PublicVote.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_votes200_response import GetVotes200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetVotes200Response from a JSON string -get_votes200_response_instance = GetVotes200Response.from_json(json) -# print the JSON string representation of the object -print(GetVotes200Response.to_json()) - -# convert the object into a dict -get_votes200_response_dict = get_votes200_response_instance.to_dict() -# create an instance of GetVotes200Response from a dict -get_votes200_response_from_dict = GetVotes200Response.from_dict(get_votes200_response_dict) -``` -[[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 a14c292..0000000 --- a/client/docs/GetVotesForUser200Response.md +++ /dev/null @@ -1,39 +0,0 @@ -# GetVotesForUser200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**applied_authorized_votes** | [**List[PublicVote]**](PublicVote.md) | | -**applied_anonymous_votes** | [**List[PublicVote]**](PublicVote.md) | | -**pending_votes** | [**List[PublicVote]**](PublicVote.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.get_votes_for_user200_response import GetVotesForUser200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of GetVotesForUser200Response from a JSON string -get_votes_for_user200_response_instance = GetVotesForUser200Response.from_json(json) -# print the JSON string representation of the object -print(GetVotesForUser200Response.to_json()) - -# convert the object into a dict -get_votes_for_user200_response_dict = get_votes_for_user200_response_instance.to_dict() -# create an instance of GetVotesForUser200Response from a dict -get_votes_for_user200_response_from_dict = GetVotesForUser200Response.from_dict(get_votes_for_user200_response_dict) -``` -[[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..ccbcf94 --- /dev/null +++ b/client/docs/GifGetLargeResponse.md @@ -0,0 +1,30 @@ +# GifGetLargeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**src** | **str** | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.gif_get_large_response import GifGetLargeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GifGetLargeResponse from a JSON string +gif_get_large_response_instance = GifGetLargeResponse.from_json(json) +# print the JSON string representation of the object +print(GifGetLargeResponse.to_json()) + +# convert the object into a dict +gif_get_large_response_dict = gif_get_large_response_instance.to_dict() +# create an instance of GifGetLargeResponse from a dict +gif_get_large_response_from_dict = GifGetLargeResponse.from_dict(gif_get_large_response_dict) +``` +[[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..bf9c0e4 --- /dev/null +++ b/client/docs/GifSearchInternalError.md @@ -0,0 +1,30 @@ +# GifSearchInternalError + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.gif_search_internal_error import GifSearchInternalError + +# TODO update the JSON string below +json = "{}" +# create an instance of GifSearchInternalError from a JSON string +gif_search_internal_error_instance = GifSearchInternalError.from_json(json) +# print the JSON string representation of the object +print(GifSearchInternalError.to_json()) + +# convert the object into a dict +gif_search_internal_error_dict = gif_search_internal_error_instance.to_dict() +# create an instance of GifSearchInternalError from a dict +gif_search_internal_error_from_dict = GifSearchInternalError.from_dict(gif_search_internal_error_dict) +``` +[[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..dab3a96 --- /dev/null +++ b/client/docs/GifSearchResponse.md @@ -0,0 +1,30 @@ +# GifSearchResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | **List[List[GifSearchResponseImagesInnerInner]]** | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.gif_search_response import GifSearchResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of GifSearchResponse from a JSON string +gif_search_response_instance = GifSearchResponse.from_json(json) +# print the JSON string representation of the object +print(GifSearchResponse.to_json()) + +# convert the object into a dict +gif_search_response_dict = gif_search_response_instance.to_dict() +# create an instance of GifSearchResponse from a dict +gif_search_response_from_dict = GifSearchResponse.from_dict(gif_search_response_dict) +``` +[[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..97cf0f4 --- /dev/null +++ b/client/docs/GifSearchResponseImagesInnerInner.md @@ -0,0 +1,28 @@ +# GifSearchResponseImagesInnerInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from client.models.gif_search_response_images_inner_inner import GifSearchResponseImagesInnerInner + +# TODO update the JSON string below +json = "{}" +# create an instance of GifSearchResponseImagesInnerInner from a JSON string +gif_search_response_images_inner_inner_instance = GifSearchResponseImagesInnerInner.from_json(json) +# print the JSON string representation of the object +print(GifSearchResponseImagesInnerInner.to_json()) + +# convert the object into a dict +gif_search_response_images_inner_inner_dict = gif_search_response_images_inner_inner_instance.to_dict() +# create an instance of GifSearchResponseImagesInnerInner from a dict +gif_search_response_images_inner_inner_from_dict = GifSearchResponseImagesInnerInner.from_dict(gif_search_response_images_inner_inner_dict) +``` +[[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 14fc997..23775af 100644 --- a/client/docs/HeaderAccountNotification.md +++ b/client/docs/HeaderAccountNotification.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **link_url** | **str** | | **link_text** | **str** | | **created_at** | **datetime** | | +**type** | **str** | Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). | [optional] ## Example diff --git a/client/docs/ImportedAgentApprovalNotificationFrequency.md b/client/docs/ImportedAgentApprovalNotificationFrequency.md new file mode 100644 index 0000000..678315b --- /dev/null +++ b/client/docs/ImportedAgentApprovalNotificationFrequency.md @@ -0,0 +1,16 @@ +# ImportedAgentApprovalNotificationFrequency + + +## Enum + +* `NUMBER_MINUS_1` (value: `-1`) + +* `NUMBER_0` (value: `0`) + +* `NUMBER_1` (value: `1`) + +* `NUMBER_2` (value: `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 246a0f4..fe7531c 100644 --- a/client/docs/LiveEvent.md +++ b/client/docs/LiveEvent.md @@ -20,6 +20,7 @@ Name | Type | Description | Notes **is_closed** | **bool** | | [optional] **uj** | **List[str]** | | [optional] **ul** | **List[str]** | | [optional] +**sc** | **int** | | [optional] **changes** | **Dict[str, int]** | | [optional] ## Example diff --git a/client/docs/LiveEventType.md b/client/docs/LiveEventType.md index 301c4e3..3e49bc7 100644 --- a/client/docs/LiveEventType.md +++ b/client/docs/LiveEventType.md @@ -37,6 +37,18 @@ * `DELETED_MINUS_FEED_MINUS_POST` (value: `'deleted-feed-post'`) +* `NEW_MINUS_TICKET` (value: `'new-ticket'`) + +* `UPDATED_MINUS_TICKET_MINUS_STATE` (value: `'updated-ticket-state'`) + +* `UPDATED_MINUS_TICKET_MINUS_ASSIGNMENT` (value: `'updated-ticket-assignment'`) + +* `DELETED_MINUS_TICKET` (value: `'deleted-ticket'`) + +* `PAGE_MINUS_REACT` (value: `'page-react'`) + +* `QUESTION_MINUS_RESULT` (value: `'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 ce40d25..0000000 --- a/client/docs/LockComment200Response.md +++ /dev/null @@ -1,36 +0,0 @@ -# LockComment200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.lock_comment200_response import LockComment200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of LockComment200Response from a JSON string -lock_comment200_response_instance = LockComment200Response.from_json(json) -# print the JSON string representation of the object -print(LockComment200Response.to_json()) - -# convert the object into a dict -lock_comment200_response_dict = lock_comment200_response_instance.to_dict() -# create an instance of LockComment200Response from a dict -lock_comment200_response_from_dict = LockComment200Response.from_dict(lock_comment200_response_dict) -``` -[[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/ModerationAPIChildCommentsResponse.md b/client/docs/ModerationAPIChildCommentsResponse.md new file mode 100644 index 0000000..c12a919 --- /dev/null +++ b/client/docs/ModerationAPIChildCommentsResponse.md @@ -0,0 +1,30 @@ +# ModerationAPIChildCommentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comments** | [**List[ModerationAPIComment]**](ModerationAPIComment.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.moderation_api_child_comments_response import ModerationAPIChildCommentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationAPIChildCommentsResponse from a JSON string +moderation_api_child_comments_response_instance = ModerationAPIChildCommentsResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationAPIChildCommentsResponse.to_json()) + +# convert the object into a dict +moderation_api_child_comments_response_dict = moderation_api_child_comments_response_instance.to_dict() +# create an instance of ModerationAPIChildCommentsResponse from a dict +moderation_api_child_comments_response_from_dict = ModerationAPIChildCommentsResponse.from_dict(moderation_api_child_comments_response_dict) +``` +[[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..9e9fb28 --- /dev/null +++ b/client/docs/ModerationAPIComment.md @@ -0,0 +1,70 @@ +# ModerationAPIComment + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_local_deleted** | **bool** | | [optional] +**reply_count** | **float** | | [optional] +**feedback_results** | **List[str]** | | [optional] +**is_voted_up** | **bool** | | [optional] +**is_voted_down** | **bool** | | [optional] +**my_vote_id** | **str** | | [optional] +**id** | **str** | | +**tenant_id** | **str** | | +**url_id** | **str** | | +**url** | **str** | | +**page_title** | **str** | | [optional] +**user_id** | **str** | | [optional] +**anon_user_id** | **str** | | [optional] +**commenter_name** | **str** | | +**commenter_link** | **str** | | [optional] +**comment_html** | **str** | | +**parent_id** | **str** | | [optional] +**var_date** | **datetime** | | +**local_date_string** | **str** | | [optional] +**votes** | **float** | | [optional] +**votes_up** | **float** | | [optional] +**votes_down** | **float** | | [optional] +**expire_at** | **datetime** | | [optional] +**reviewed** | **bool** | | [optional] +**avatar_src** | **str** | | [optional] +**is_spam** | **bool** | | [optional] +**perm_not_spam** | **bool** | | [optional] +**has_links** | **bool** | | [optional] +**has_code** | **bool** | | [optional] +**approved** | **bool** | | +**locale** | **str** | | +**is_banned_user** | **bool** | | [optional] +**is_by_admin** | **bool** | | [optional] +**is_by_moderator** | **bool** | | [optional] +**is_pinned** | **bool** | | [optional] +**is_locked** | **bool** | | [optional] +**flag_count** | **float** | | [optional] +**display_label** | **str** | | [optional] +**badges** | [**List[CommentUserBadgeInfo]**](CommentUserBadgeInfo.md) | | [optional] +**verified** | **bool** | | +**feedback_ids** | **List[str]** | | [optional] +**is_deleted** | **bool** | | [optional] + +## Example + +```python +from client.models.moderation_api_comment import ModerationAPIComment + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationAPIComment from a JSON string +moderation_api_comment_instance = ModerationAPIComment.from_json(json) +# print the JSON string representation of the object +print(ModerationAPIComment.to_json()) + +# convert the object into a dict +moderation_api_comment_dict = moderation_api_comment_instance.to_dict() +# create an instance of ModerationAPIComment from a dict +moderation_api_comment_from_dict = ModerationAPIComment.from_dict(moderation_api_comment_dict) +``` +[[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..2edaa1a --- /dev/null +++ b/client/docs/ModerationAPICommentLog.md @@ -0,0 +1,32 @@ +# ModerationAPICommentLog + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_date** | **datetime** | | +**username** | **str** | | [optional] +**action_name** | **str** | | +**message_html** | **str** | | + +## Example + +```python +from client.models.moderation_api_comment_log import ModerationAPICommentLog + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationAPICommentLog from a JSON string +moderation_api_comment_log_instance = ModerationAPICommentLog.from_json(json) +# print the JSON string representation of the object +print(ModerationAPICommentLog.to_json()) + +# convert the object into a dict +moderation_api_comment_log_dict = moderation_api_comment_log_instance.to_dict() +# create an instance of ModerationAPICommentLog from a dict +moderation_api_comment_log_from_dict = ModerationAPICommentLog.from_dict(moderation_api_comment_log_dict) +``` +[[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..d6f04b4 --- /dev/null +++ b/client/docs/ModerationAPICommentResponse.md @@ -0,0 +1,30 @@ +# ModerationAPICommentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.moderation_api_comment_response import ModerationAPICommentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationAPICommentResponse from a JSON string +moderation_api_comment_response_instance = ModerationAPICommentResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationAPICommentResponse.to_json()) + +# convert the object into a dict +moderation_api_comment_response_dict = moderation_api_comment_response_instance.to_dict() +# create an instance of ModerationAPICommentResponse from a dict +moderation_api_comment_response_from_dict = ModerationAPICommentResponse.from_dict(moderation_api_comment_response_dict) +``` +[[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..c304896 --- /dev/null +++ b/client/docs/ModerationAPICountCommentsResponse.md @@ -0,0 +1,30 @@ +# ModerationAPICountCommentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**count** | **float** | | + +## Example + +```python +from client.models.moderation_api_count_comments_response import ModerationAPICountCommentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationAPICountCommentsResponse from a JSON string +moderation_api_count_comments_response_instance = ModerationAPICountCommentsResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationAPICountCommentsResponse.to_json()) + +# convert the object into a dict +moderation_api_count_comments_response_dict = moderation_api_count_comments_response_instance.to_dict() +# create an instance of ModerationAPICountCommentsResponse from a dict +moderation_api_count_comments_response_from_dict = ModerationAPICountCommentsResponse.from_dict(moderation_api_count_comments_response_dict) +``` +[[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..f2e7129 --- /dev/null +++ b/client/docs/ModerationAPIGetCommentIdsResponse.md @@ -0,0 +1,31 @@ +# ModerationAPIGetCommentIdsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **List[str]** | | +**has_more** | **bool** | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.moderation_api_get_comment_ids_response import ModerationAPIGetCommentIdsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationAPIGetCommentIdsResponse from a JSON string +moderation_api_get_comment_ids_response_instance = ModerationAPIGetCommentIdsResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationAPIGetCommentIdsResponse.to_json()) + +# convert the object into a dict +moderation_api_get_comment_ids_response_dict = moderation_api_get_comment_ids_response_instance.to_dict() +# create an instance of ModerationAPIGetCommentIdsResponse from a dict +moderation_api_get_comment_ids_response_from_dict = ModerationAPIGetCommentIdsResponse.from_dict(moderation_api_get_comment_ids_response_dict) +``` +[[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..1280347 --- /dev/null +++ b/client/docs/ModerationAPIGetCommentsResponse.md @@ -0,0 +1,32 @@ +# ModerationAPIGetCommentsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**translations** | **object** | | +**comments** | [**List[ModerationAPIComment]**](ModerationAPIComment.md) | | +**moderation_filter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] + +## Example + +```python +from client.models.moderation_api_get_comments_response import ModerationAPIGetCommentsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationAPIGetCommentsResponse from a JSON string +moderation_api_get_comments_response_instance = ModerationAPIGetCommentsResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationAPIGetCommentsResponse.to_json()) + +# convert the object into a dict +moderation_api_get_comments_response_dict = moderation_api_get_comments_response_instance.to_dict() +# create an instance of ModerationAPIGetCommentsResponse from a dict +moderation_api_get_comments_response_from_dict = ModerationAPIGetCommentsResponse.from_dict(moderation_api_get_comments_response_dict) +``` +[[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..43fbadf --- /dev/null +++ b/client/docs/ModerationAPIGetLogsResponse.md @@ -0,0 +1,30 @@ +# ModerationAPIGetLogsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | [**List[ModerationAPICommentLog]**](ModerationAPICommentLog.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.moderation_api_get_logs_response import ModerationAPIGetLogsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationAPIGetLogsResponse from a JSON string +moderation_api_get_logs_response_instance = ModerationAPIGetLogsResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationAPIGetLogsResponse.to_json()) + +# convert the object into a dict +moderation_api_get_logs_response_dict = moderation_api_get_logs_response_instance.to_dict() +# create an instance of ModerationAPIGetLogsResponse from a dict +moderation_api_get_logs_response_from_dict = ModerationAPIGetLogsResponse.from_dict(moderation_api_get_logs_response_dict) +``` +[[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..971a88a --- /dev/null +++ b/client/docs/ModerationApi.md @@ -0,0 +1,3082 @@ +# client.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** +> VoteDeleteResponse delete_moderation_vote(comment_id, vote_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.vote_delete_response import VoteDeleteResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + vote_id = 'vote_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.delete_moderation_vote(comment_id, vote_id, sso=sso) + print("The response of ModerationApi->delete_moderation_vote:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->delete_moderation_vote: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **vote_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**VoteDeleteResponse**](VoteDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationAPIGetCommentsResponse get_api_comments(page=page, count=count, text_search=text_search, by_ip_from_comment=by_ip_from_comment, filters=filters, search_filters=search_filters, sorts=sorts, demo=demo, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_api_get_comments_response import ModerationAPIGetCommentsResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + page = 3.4 # float | (optional) + count = 3.4 # float | (optional) + text_search = 'text_search_example' # str | (optional) + by_ip_from_comment = 'by_ip_from_comment_example' # str | (optional) + filters = 'filters_example' # str | (optional) + search_filters = 'search_filters_example' # str | (optional) + sorts = 'sorts_example' # str | (optional) + demo = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_api_comments(page=page, count=count, text_search=text_search, by_ip_from_comment=by_ip_from_comment, filters=filters, search_filters=search_filters, sorts=sorts, demo=demo, sso=sso) + print("The response of ModerationApi->get_api_comments:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_api_comments: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **float**| | [optional] + **count** | **float**| | [optional] + **text_search** | **str**| | [optional] + **by_ip_from_comment** | **str**| | [optional] + **filters** | **str**| | [optional] + **search_filters** | **str**| | [optional] + **sorts** | **str**| | [optional] + **demo** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationExportStatusResponse get_api_export_status(batch_job_id=batch_job_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_export_status_response import ModerationExportStatusResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + batch_job_id = 'batch_job_id_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_api_export_status(batch_job_id=batch_job_id, sso=sso) + print("The response of ModerationApi->get_api_export_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_api_export_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batch_job_id** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationAPIGetCommentIdsResponse get_api_ids(text_search=text_search, by_ip_from_comment=by_ip_from_comment, filters=filters, search_filters=search_filters, after_id=after_id, demo=demo, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_api_get_comment_ids_response import ModerationAPIGetCommentIdsResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + text_search = 'text_search_example' # str | (optional) + by_ip_from_comment = 'by_ip_from_comment_example' # str | (optional) + filters = 'filters_example' # str | (optional) + search_filters = 'search_filters_example' # str | (optional) + after_id = 'after_id_example' # str | (optional) + demo = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_api_ids(text_search=text_search, by_ip_from_comment=by_ip_from_comment, filters=filters, search_filters=search_filters, after_id=after_id, demo=demo, sso=sso) + print("The response of ModerationApi->get_api_ids:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_api_ids: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **text_search** | **str**| | [optional] + **by_ip_from_comment** | **str**| | [optional] + **filters** | **str**| | [optional] + **search_filters** | **str**| | [optional] + **after_id** | **str**| | [optional] + **demo** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetBannedUsersFromCommentResponse get_ban_users_from_comment(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.get_banned_users_from_comment_response import GetBannedUsersFromCommentResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_ban_users_from_comment(comment_id, sso=sso) + print("The response of ModerationApi->get_ban_users_from_comment:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_ban_users_from_comment: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetCommentBanStatusResponse get_comment_ban_status(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.get_comment_ban_status_response import GetCommentBanStatusResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_comment_ban_status(comment_id, sso=sso) + print("The response of ModerationApi->get_comment_ban_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_comment_ban_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationAPIChildCommentsResponse get_comment_children(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_api_child_comments_response import ModerationAPIChildCommentsResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_comment_children(comment_id, sso=sso) + print("The response of ModerationApi->get_comment_children:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_comment_children: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationAPICountCommentsResponse get_count(text_search=text_search, by_ip_from_comment=by_ip_from_comment, filter=filter, search_filters=search_filters, demo=demo, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_api_count_comments_response import ModerationAPICountCommentsResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + text_search = 'text_search_example' # str | (optional) + by_ip_from_comment = 'by_ip_from_comment_example' # str | (optional) + filter = 'filter_example' # str | (optional) + search_filters = 'search_filters_example' # str | (optional) + demo = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_count(text_search=text_search, by_ip_from_comment=by_ip_from_comment, filter=filter, search_filters=search_filters, demo=demo, sso=sso) + print("The response of ModerationApi->get_count:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_count: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **text_search** | **str**| | [optional] + **by_ip_from_comment** | **str**| | [optional] + **filter** | **str**| | [optional] + **search_filters** | **str**| | [optional] + **demo** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetBannedUsersCountResponse get_counts(sso=sso) + + + +### Example + + +```python +import client +from client.models.get_banned_users_count_response import GetBannedUsersCountResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_counts(sso=sso) + print("The response of ModerationApi->get_counts:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_counts: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **str**| | [optional] + +### Return type + +[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationAPIGetLogsResponse get_logs(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_api_get_logs_response import ModerationAPIGetLogsResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_logs(comment_id, sso=sso) + print("The response of ModerationApi->get_logs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_logs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetTenantManualBadgesResponse get_manual_badges(sso=sso) + + + +### Example + + +```python +import client +from client.models.get_tenant_manual_badges_response import GetTenantManualBadgesResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_manual_badges(sso=sso) + print("The response of ModerationApi->get_manual_badges:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_manual_badges: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **str**| | [optional] + +### Return type + +[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetUserManualBadgesResponse get_manual_badges_for_user(badges_user_id=badges_user_id, comment_id=comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.get_user_manual_badges_response import GetUserManualBadgesResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + badges_user_id = 'badges_user_id_example' # str | (optional) + comment_id = 'comment_id_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_manual_badges_for_user(badges_user_id=badges_user_id, comment_id=comment_id, sso=sso) + print("The response of ModerationApi->get_manual_badges_for_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_manual_badges_for_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badges_user_id** | **str**| | [optional] + **comment_id** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationAPICommentResponse get_moderation_comment(comment_id, include_email=include_email, include_ip=include_ip, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_api_comment_response import ModerationAPICommentResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + include_email = True # bool | (optional) + include_ip = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_moderation_comment(comment_id, include_email=include_email, include_ip=include_ip, sso=sso) + print("The response of ModerationApi->get_moderation_comment:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_moderation_comment: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **include_email** | **bool**| | [optional] + **include_ip** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetCommentTextResponse get_moderation_comment_text(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.get_comment_text_response import GetCommentTextResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_moderation_comment_text(comment_id, sso=sso) + print("The response of ModerationApi->get_moderation_comment_text:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_moderation_comment_text: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**GetCommentTextResponse**](GetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> PreBanSummary get_pre_ban_summary(comment_id, include_by_user_id_and_email=include_by_user_id_and_email, include_by_ip=include_by_ip, include_by_email_domain=include_by_email_domain, sso=sso) + + + +### Example + + +```python +import client +from client.models.pre_ban_summary import PreBanSummary +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + include_by_user_id_and_email = True # bool | (optional) + include_by_ip = True # bool | (optional) + include_by_email_domain = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_pre_ban_summary(comment_id, include_by_user_id_and_email=include_by_user_id_and_email, include_by_ip=include_by_ip, include_by_email_domain=include_by_email_domain, sso=sso) + print("The response of ModerationApi->get_pre_ban_summary:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_pre_ban_summary: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **include_by_user_id_and_email** | **bool**| | [optional] + **include_by_ip** | **bool**| | [optional] + **include_by_email_domain** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**PreBanSummary**](PreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationCommentSearchResponse get_search_comments_summary(value=value, filters=filters, search_filters=search_filters, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_comment_search_response import ModerationCommentSearchResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + value = 'value_example' # str | (optional) + filters = 'filters_example' # str | (optional) + search_filters = 'search_filters_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_search_comments_summary(value=value, filters=filters, search_filters=search_filters, sso=sso) + print("The response of ModerationApi->get_search_comments_summary:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_search_comments_summary: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **str**| | [optional] + **filters** | **str**| | [optional] + **search_filters** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationPageSearchResponse get_search_pages(value=value, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_page_search_response import ModerationPageSearchResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + value = 'value_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_search_pages(value=value, sso=sso) + print("The response of ModerationApi->get_search_pages:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_search_pages: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationSiteSearchResponse get_search_sites(value=value, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_site_search_response import ModerationSiteSearchResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + value = 'value_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_search_sites(value=value, sso=sso) + print("The response of ModerationApi->get_search_sites:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_search_sites: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationSuggestResponse get_search_suggest(text_search=text_search, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_suggest_response import ModerationSuggestResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + text_search = 'text_search_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_search_suggest(text_search=text_search, sso=sso) + print("The response of ModerationApi->get_search_suggest:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_search_suggest: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **text_search** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationSuggestResponse**](ModerationSuggestResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationUserSearchResponse get_search_users(value=value, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_user_search_response import ModerationUserSearchResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + value = 'value_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_search_users(value=value, sso=sso) + print("The response of ModerationApi->get_search_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_search_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetUserTrustFactorResponse get_trust_factor(user_id=user_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.get_user_trust_factor_response import GetUserTrustFactorResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + user_id = 'user_id_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_trust_factor(user_id=user_id, sso=sso) + print("The response of ModerationApi->get_trust_factor:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_trust_factor: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIModerateGetUserBanPreferencesResponse get_user_ban_preference(sso=sso) + + + +### Example + + +```python +import client +from client.models.api_moderate_get_user_ban_preferences_response import APIModerateGetUserBanPreferencesResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_user_ban_preference(sso=sso) + print("The response of ModerationApi->get_user_ban_preference:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_user_ban_preference: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **str**| | [optional] + +### Return type + +[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetUserInternalProfileResponse get_user_internal_profile(comment_id=comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.get_user_internal_profile_response import GetUserInternalProfileResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_user_internal_profile(comment_id=comment_id, sso=sso) + print("The response of ModerationApi->get_user_internal_profile:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->get_user_internal_profile: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> AdjustVotesResponse post_adjust_comment_votes(comment_id, adjust_comment_votes_params, sso=sso) + + + +### Example + + +```python +import client +from client.models.adjust_comment_votes_params import AdjustCommentVotesParams +from client.models.adjust_votes_response import AdjustVotesResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + adjust_comment_votes_params = client.AdjustCommentVotesParams() # AdjustCommentVotesParams | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_adjust_comment_votes(comment_id, adjust_comment_votes_params, sso=sso) + print("The response of ModerationApi->post_adjust_comment_votes:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_adjust_comment_votes: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **adjust_comment_votes_params** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md)| | + **sso** | **str**| | [optional] + +### Return type + +[**AdjustVotesResponse**](AdjustVotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationExportResponse post_api_export(text_search=text_search, by_ip_from_comment=by_ip_from_comment, filters=filters, search_filters=search_filters, sorts=sorts, sso=sso) + + + +### Example + + +```python +import client +from client.models.moderation_export_response import ModerationExportResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + text_search = 'text_search_example' # str | (optional) + by_ip_from_comment = 'by_ip_from_comment_example' # str | (optional) + filters = 'filters_example' # str | (optional) + search_filters = 'search_filters_example' # str | (optional) + sorts = 'sorts_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_api_export(text_search=text_search, by_ip_from_comment=by_ip_from_comment, filters=filters, search_filters=search_filters, sorts=sorts, sso=sso) + print("The response of ModerationApi->post_api_export:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_api_export: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **text_search** | **str**| | [optional] + **by_ip_from_comment** | **str**| | [optional] + **filters** | **str**| | [optional] + **search_filters** | **str**| | [optional] + **sorts** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**ModerationExportResponse**](ModerationExportResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> BanUserFromCommentResult post_ban_user_from_comment(comment_id, ban_email=ban_email, ban_email_domain=ban_email_domain, ban_ip=ban_ip, delete_all_users_comments=delete_all_users_comments, banned_until=banned_until, is_shadow_ban=is_shadow_ban, update_id=update_id, ban_reason=ban_reason, sso=sso) + + + +### Example + + +```python +import client +from client.models.ban_user_from_comment_result import BanUserFromCommentResult +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + ban_email = True # bool | (optional) + ban_email_domain = True # bool | (optional) + ban_ip = True # bool | (optional) + delete_all_users_comments = True # bool | (optional) + banned_until = 'banned_until_example' # str | (optional) + is_shadow_ban = True # bool | (optional) + update_id = 'update_id_example' # str | (optional) + ban_reason = 'ban_reason_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_ban_user_from_comment(comment_id, ban_email=ban_email, ban_email_domain=ban_email_domain, ban_ip=ban_ip, delete_all_users_comments=delete_all_users_comments, banned_until=banned_until, is_shadow_ban=is_shadow_ban, update_id=update_id, ban_reason=ban_reason, sso=sso) + print("The response of ModerationApi->post_ban_user_from_comment:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_ban_user_from_comment: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **ban_email** | **bool**| | [optional] + **ban_email_domain** | **bool**| | [optional] + **ban_ip** | **bool**| | [optional] + **delete_all_users_comments** | **bool**| | [optional] + **banned_until** | **str**| | [optional] + **is_shadow_ban** | **bool**| | [optional] + **update_id** | **str**| | [optional] + **ban_reason** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**BanUserFromCommentResult**](BanUserFromCommentResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIEmptyResponse post_ban_user_undo(ban_user_undo_params, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.models.ban_user_undo_params import BanUserUndoParams +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + ban_user_undo_params = client.BanUserUndoParams() # BanUserUndoParams | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_ban_user_undo(ban_user_undo_params, sso=sso) + print("The response of ModerationApi->post_ban_user_undo:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_ban_user_undo: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ban_user_undo_params** | [**BanUserUndoParams**](BanUserUndoParams.md)| | + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> BulkPreBanSummary post_bulk_pre_ban_summary(bulk_pre_ban_params, include_by_user_id_and_email=include_by_user_id_and_email, include_by_ip=include_by_ip, include_by_email_domain=include_by_email_domain, sso=sso) + + + +### Example + + +```python +import client +from client.models.bulk_pre_ban_params import BulkPreBanParams +from client.models.bulk_pre_ban_summary import BulkPreBanSummary +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + bulk_pre_ban_params = client.BulkPreBanParams() # BulkPreBanParams | + include_by_user_id_and_email = True # bool | (optional) + include_by_ip = True # bool | (optional) + include_by_email_domain = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_bulk_pre_ban_summary(bulk_pre_ban_params, include_by_user_id_and_email=include_by_user_id_and_email, include_by_ip=include_by_ip, include_by_email_domain=include_by_email_domain, sso=sso) + print("The response of ModerationApi->post_bulk_pre_ban_summary:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_bulk_pre_ban_summary: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bulk_pre_ban_params** | [**BulkPreBanParams**](BulkPreBanParams.md)| | + **include_by_user_id_and_email** | **bool**| | [optional] + **include_by_ip** | **bool**| | [optional] + **include_by_email_domain** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**BulkPreBanSummary**](BulkPreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> ModerationAPIChildCommentsResponse post_comments_by_ids(comments_by_ids_params, sso=sso) + + + +### Example + + +```python +import client +from client.models.comments_by_ids_params import CommentsByIdsParams +from client.models.moderation_api_child_comments_response import ModerationAPIChildCommentsResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comments_by_ids_params = client.CommentsByIdsParams() # CommentsByIdsParams | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_comments_by_ids(comments_by_ids_params, sso=sso) + print("The response of ModerationApi->post_comments_by_ids:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_comments_by_ids: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comments_by_ids_params** | [**CommentsByIdsParams**](CommentsByIdsParams.md)| | + **sso** | **str**| | [optional] + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIEmptyResponse post_flag_comment(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_flag_comment(comment_id, sso=sso) + print("The response of ModerationApi->post_flag_comment:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_flag_comment: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> PostRemoveCommentResponse post_remove_comment(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.post_remove_comment_response import PostRemoveCommentResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_remove_comment(comment_id, sso=sso) + print("The response of ModerationApi->post_remove_comment:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_remove_comment: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIEmptyResponse post_restore_deleted_comment(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_restore_deleted_comment(comment_id, sso=sso) + print("The response of ModerationApi->post_restore_deleted_comment:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_restore_deleted_comment: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> SetCommentApprovedResponse post_set_comment_approval_status(comment_id, approved=approved, sso=sso) + + + +### Example + + +```python +import client +from client.models.set_comment_approved_response import SetCommentApprovedResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + approved = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_set_comment_approval_status(comment_id, approved=approved, sso=sso) + print("The response of ModerationApi->post_set_comment_approval_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_set_comment_approval_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **approved** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIEmptyResponse post_set_comment_review_status(comment_id, reviewed=reviewed, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + reviewed = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_set_comment_review_status(comment_id, reviewed=reviewed, sso=sso) + print("The response of ModerationApi->post_set_comment_review_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_set_comment_review_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **reviewed** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIEmptyResponse post_set_comment_spam_status(comment_id, spam=spam, perm_not_spam=perm_not_spam, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + spam = True # bool | (optional) + perm_not_spam = True # bool | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_set_comment_spam_status(comment_id, spam=spam, perm_not_spam=perm_not_spam, sso=sso) + print("The response of ModerationApi->post_set_comment_spam_status:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_set_comment_spam_status: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **spam** | **bool**| | [optional] + **perm_not_spam** | **bool**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> SetCommentTextResponse post_set_comment_text(comment_id, set_comment_text_params, sso=sso) + + + +### Example + + +```python +import client +from client.models.set_comment_text_params import SetCommentTextParams +from client.models.set_comment_text_response import SetCommentTextResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + set_comment_text_params = client.SetCommentTextParams() # SetCommentTextParams | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_set_comment_text(comment_id, set_comment_text_params, sso=sso) + print("The response of ModerationApi->post_set_comment_text:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_set_comment_text: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **set_comment_text_params** | [**SetCommentTextParams**](SetCommentTextParams.md)| | + **sso** | **str**| | [optional] + +### Return type + +[**SetCommentTextResponse**](SetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIEmptyResponse post_un_flag_comment(comment_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_un_flag_comment(comment_id, sso=sso) + print("The response of ModerationApi->post_un_flag_comment:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_un_flag_comment: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> VoteResponse post_vote(comment_id, direction=direction, sso=sso) + + + +### Example + + +```python +import client +from client.models.vote_response import VoteResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + comment_id = 'comment_id_example' # str | + direction = 'direction_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.post_vote(comment_id, direction=direction, sso=sso) + print("The response of ModerationApi->post_vote:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->post_vote: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **comment_id** | **str**| | + **direction** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**VoteResponse**](VoteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> AwardUserBadgeResponse put_award_badge(badge_id, user_id=user_id, comment_id=comment_id, broadcast_id=broadcast_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.award_user_badge_response import AwardUserBadgeResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + badge_id = 'badge_id_example' # str | + user_id = 'user_id_example' # str | (optional) + comment_id = 'comment_id_example' # str | (optional) + broadcast_id = 'broadcast_id_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.put_award_badge(badge_id, user_id=user_id, comment_id=comment_id, broadcast_id=broadcast_id, sso=sso) + print("The response of ModerationApi->put_award_badge:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->put_award_badge: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badge_id** | **str**| | + **user_id** | **str**| | [optional] + **comment_id** | **str**| | [optional] + **broadcast_id** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIEmptyResponse put_close_thread(url_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + url_id = 'url_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.put_close_thread(url_id, sso=sso) + print("The response of ModerationApi->put_close_thread:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->put_close_thread: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **url_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> RemoveUserBadgeResponse put_remove_badge(badge_id, user_id=user_id, comment_id=comment_id, broadcast_id=broadcast_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.remove_user_badge_response import RemoveUserBadgeResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + badge_id = 'badge_id_example' # str | + user_id = 'user_id_example' # str | (optional) + comment_id = 'comment_id_example' # str | (optional) + broadcast_id = 'broadcast_id_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.put_remove_badge(badge_id, user_id=user_id, comment_id=comment_id, broadcast_id=broadcast_id, sso=sso) + print("The response of ModerationApi->put_remove_badge:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->put_remove_badge: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badge_id** | **str**| | + **user_id** | **str**| | [optional] + **comment_id** | **str**| | [optional] + **broadcast_id** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> APIEmptyResponse put_reopen_thread(url_id, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + url_id = 'url_id_example' # str | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.put_reopen_thread(url_id, sso=sso) + print("The response of ModerationApi->put_reopen_thread:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->put_reopen_thread: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **url_id** | **str**| | + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> SetUserTrustFactorResponse set_trust_factor(user_id=user_id, trust_factor=trust_factor, sso=sso) + + + +### Example + + +```python +import client +from client.models.set_user_trust_factor_response import SetUserTrustFactorResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.ModerationApi(api_client) + user_id = 'user_id_example' # str | (optional) + trust_factor = 'trust_factor_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.set_trust_factor(user_id=user_id, trust_factor=trust_factor, sso=sso) + print("The response of ModerationApi->set_trust_factor:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ModerationApi->set_trust_factor: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| | [optional] + **trust_factor** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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/ModerationCommentSearchResponse.md b/client/docs/ModerationCommentSearchResponse.md new file mode 100644 index 0000000..903c414 --- /dev/null +++ b/client/docs/ModerationCommentSearchResponse.md @@ -0,0 +1,30 @@ +# ModerationCommentSearchResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment_count** | **int** | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.moderation_comment_search_response import ModerationCommentSearchResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationCommentSearchResponse from a JSON string +moderation_comment_search_response_instance = ModerationCommentSearchResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationCommentSearchResponse.to_json()) + +# convert the object into a dict +moderation_comment_search_response_dict = moderation_comment_search_response_instance.to_dict() +# create an instance of ModerationCommentSearchResponse from a dict +moderation_comment_search_response_from_dict = ModerationCommentSearchResponse.from_dict(moderation_comment_search_response_dict) +``` +[[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..b6eb899 --- /dev/null +++ b/client/docs/ModerationExportResponse.md @@ -0,0 +1,30 @@ +# ModerationExportResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**batch_job_id** | **str** | | + +## Example + +```python +from client.models.moderation_export_response import ModerationExportResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationExportResponse from a JSON string +moderation_export_response_instance = ModerationExportResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationExportResponse.to_json()) + +# convert the object into a dict +moderation_export_response_dict = moderation_export_response_instance.to_dict() +# create an instance of ModerationExportResponse from a dict +moderation_export_response_from_dict = ModerationExportResponse.from_dict(moderation_export_response_dict) +``` +[[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..c903b3b --- /dev/null +++ b/client/docs/ModerationExportStatusResponse.md @@ -0,0 +1,32 @@ +# ModerationExportStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**job_status** | **str** | | +**record_count** | **int** | | +**download_url** | **str** | | [optional] + +## Example + +```python +from client.models.moderation_export_status_response import ModerationExportStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationExportStatusResponse from a JSON string +moderation_export_status_response_instance = ModerationExportStatusResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationExportStatusResponse.to_json()) + +# convert the object into a dict +moderation_export_status_response_dict = moderation_export_status_response_instance.to_dict() +# create an instance of ModerationExportStatusResponse from a dict +moderation_export_status_response_from_dict = ModerationExportStatusResponse.from_dict(moderation_export_status_response_dict) +``` +[[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..9b97f84 --- /dev/null +++ b/client/docs/ModerationFilter.md @@ -0,0 +1,40 @@ +# ModerationFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reviewed** | **bool** | | [optional] +**approved** | **bool** | | [optional] +**is_spam** | **bool** | | [optional] +**is_banned_user** | **bool** | | [optional] +**is_locked** | **bool** | | [optional] +**flag_count_gt** | **float** | | [optional] +**user_id** | **str** | | [optional] +**url_id** | **str** | | [optional] +**domain** | **str** | | [optional] +**moderation_group_ids** | **List[str]** | | [optional] +**comment_text_search** | **List[str]** | 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** | **str** | 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] + +## Example + +```python +from client.models.moderation_filter import ModerationFilter + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationFilter from a JSON string +moderation_filter_instance = ModerationFilter.from_json(json) +# print the JSON string representation of the object +print(ModerationFilter.to_json()) + +# convert the object into a dict +moderation_filter_dict = moderation_filter_instance.to_dict() +# create an instance of ModerationFilter from a dict +moderation_filter_from_dict = ModerationFilter.from_dict(moderation_filter_dict) +``` +[[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..bfc907d --- /dev/null +++ b/client/docs/ModerationPageSearchProjected.md @@ -0,0 +1,32 @@ +# ModerationPageSearchProjected + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url_id** | **str** | | +**url** | **str** | | +**title** | **str** | | +**comment_count** | **float** | | + +## Example + +```python +from client.models.moderation_page_search_projected import ModerationPageSearchProjected + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationPageSearchProjected from a JSON string +moderation_page_search_projected_instance = ModerationPageSearchProjected.from_json(json) +# print the JSON string representation of the object +print(ModerationPageSearchProjected.to_json()) + +# convert the object into a dict +moderation_page_search_projected_dict = moderation_page_search_projected_instance.to_dict() +# create an instance of ModerationPageSearchProjected from a dict +moderation_page_search_projected_from_dict = ModerationPageSearchProjected.from_dict(moderation_page_search_projected_dict) +``` +[[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..9b80d9a --- /dev/null +++ b/client/docs/ModerationPageSearchResponse.md @@ -0,0 +1,30 @@ +# ModerationPageSearchResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pages** | [**List[ModerationPageSearchProjected]**](ModerationPageSearchProjected.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.moderation_page_search_response import ModerationPageSearchResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationPageSearchResponse from a JSON string +moderation_page_search_response_instance = ModerationPageSearchResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationPageSearchResponse.to_json()) + +# convert the object into a dict +moderation_page_search_response_dict = moderation_page_search_response_instance.to_dict() +# create an instance of ModerationPageSearchResponse from a dict +moderation_page_search_response_from_dict = ModerationPageSearchResponse.from_dict(moderation_page_search_response_dict) +``` +[[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..08dab6e --- /dev/null +++ b/client/docs/ModerationSiteSearchProjected.md @@ -0,0 +1,30 @@ +# ModerationSiteSearchProjected + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | | +**logo_src100px** | **str** | | [optional] + +## Example + +```python +from client.models.moderation_site_search_projected import ModerationSiteSearchProjected + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationSiteSearchProjected from a JSON string +moderation_site_search_projected_instance = ModerationSiteSearchProjected.from_json(json) +# print the JSON string representation of the object +print(ModerationSiteSearchProjected.to_json()) + +# convert the object into a dict +moderation_site_search_projected_dict = moderation_site_search_projected_instance.to_dict() +# create an instance of ModerationSiteSearchProjected from a dict +moderation_site_search_projected_from_dict = ModerationSiteSearchProjected.from_dict(moderation_site_search_projected_dict) +``` +[[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..bb83477 --- /dev/null +++ b/client/docs/ModerationSiteSearchResponse.md @@ -0,0 +1,30 @@ +# ModerationSiteSearchResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sites** | [**List[ModerationSiteSearchProjected]**](ModerationSiteSearchProjected.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.moderation_site_search_response import ModerationSiteSearchResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationSiteSearchResponse from a JSON string +moderation_site_search_response_instance = ModerationSiteSearchResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationSiteSearchResponse.to_json()) + +# convert the object into a dict +moderation_site_search_response_dict = moderation_site_search_response_instance.to_dict() +# create an instance of ModerationSiteSearchResponse from a dict +moderation_site_search_response_from_dict = ModerationSiteSearchResponse.from_dict(moderation_site_search_response_dict) +``` +[[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..964d4d0 --- /dev/null +++ b/client/docs/ModerationSuggestResponse.md @@ -0,0 +1,32 @@ +# ModerationSuggestResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**pages** | [**List[ModerationPageSearchProjected]**](ModerationPageSearchProjected.md) | | [optional] +**users** | [**List[ModerationUserSearchProjected]**](ModerationUserSearchProjected.md) | | [optional] +**code** | **str** | | [optional] + +## Example + +```python +from client.models.moderation_suggest_response import ModerationSuggestResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationSuggestResponse from a JSON string +moderation_suggest_response_instance = ModerationSuggestResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationSuggestResponse.to_json()) + +# convert the object into a dict +moderation_suggest_response_dict = moderation_suggest_response_instance.to_dict() +# create an instance of ModerationSuggestResponse from a dict +moderation_suggest_response_from_dict = ModerationSuggestResponse.from_dict(moderation_suggest_response_dict) +``` +[[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..9963d3c --- /dev/null +++ b/client/docs/ModerationUserSearchProjected.md @@ -0,0 +1,32 @@ +# ModerationUserSearchProjected + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**username** | **str** | | +**display_name** | **str** | | [optional] +**avatar_src** | **str** | | [optional] + +## Example + +```python +from client.models.moderation_user_search_projected import ModerationUserSearchProjected + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationUserSearchProjected from a JSON string +moderation_user_search_projected_instance = ModerationUserSearchProjected.from_json(json) +# print the JSON string representation of the object +print(ModerationUserSearchProjected.to_json()) + +# convert the object into a dict +moderation_user_search_projected_dict = moderation_user_search_projected_instance.to_dict() +# create an instance of ModerationUserSearchProjected from a dict +moderation_user_search_projected_from_dict = ModerationUserSearchProjected.from_dict(moderation_user_search_projected_dict) +``` +[[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..96f18a2 --- /dev/null +++ b/client/docs/ModerationUserSearchResponse.md @@ -0,0 +1,30 @@ +# ModerationUserSearchResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[ModerationUserSearchProjected]**](ModerationUserSearchProjected.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.moderation_user_search_response import ModerationUserSearchResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of ModerationUserSearchResponse from a JSON string +moderation_user_search_response_instance = ModerationUserSearchResponse.from_json(json) +# print the JSON string representation of the object +print(ModerationUserSearchResponse.to_json()) + +# convert the object into a dict +moderation_user_search_response_dict = moderation_user_search_response_instance.to_dict() +# create an instance of ModerationUserSearchResponse from a dict +moderation_user_search_response_from_dict = ModerationUserSearchResponse.from_dict(moderation_user_search_response_dict) +``` +[[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/PageUserEntry.md b/client/docs/PageUserEntry.md new file mode 100644 index 0000000..9fd2484 --- /dev/null +++ b/client/docs/PageUserEntry.md @@ -0,0 +1,32 @@ +# PageUserEntry + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**is_private** | **bool** | | [optional] +**avatar_src** | **str** | | [optional] +**display_name** | **str** | | +**id** | **str** | | + +## Example + +```python +from client.models.page_user_entry import PageUserEntry + +# TODO update the JSON string below +json = "{}" +# create an instance of PageUserEntry from a JSON string +page_user_entry_instance = PageUserEntry.from_json(json) +# print the JSON string representation of the object +print(PageUserEntry.to_json()) + +# convert the object into a dict +page_user_entry_dict = page_user_entry_instance.to_dict() +# create an instance of PageUserEntry from a dict +page_user_entry_from_dict = PageUserEntry.from_dict(page_user_entry_dict) +``` +[[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..4669a21 --- /dev/null +++ b/client/docs/PageUsersInfoResponse.md @@ -0,0 +1,30 @@ +# PageUsersInfoResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**List[PageUserEntry]**](PageUserEntry.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.page_users_info_response import PageUsersInfoResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PageUsersInfoResponse from a JSON string +page_users_info_response_instance = PageUsersInfoResponse.from_json(json) +# print the JSON string representation of the object +print(PageUsersInfoResponse.to_json()) + +# convert the object into a dict +page_users_info_response_dict = page_users_info_response_instance.to_dict() +# create an instance of PageUsersInfoResponse from a dict +page_users_info_response_from_dict = PageUsersInfoResponse.from_dict(page_users_info_response_dict) +``` +[[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..8c103e9 --- /dev/null +++ b/client/docs/PageUsersOfflineResponse.md @@ -0,0 +1,32 @@ +# PageUsersOfflineResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next_after_user_id** | **str** | | +**next_after_name** | **str** | | +**users** | [**List[PageUserEntry]**](PageUserEntry.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.page_users_offline_response import PageUsersOfflineResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PageUsersOfflineResponse from a JSON string +page_users_offline_response_instance = PageUsersOfflineResponse.from_json(json) +# print the JSON string representation of the object +print(PageUsersOfflineResponse.to_json()) + +# convert the object into a dict +page_users_offline_response_dict = page_users_offline_response_instance.to_dict() +# create an instance of PageUsersOfflineResponse from a dict +page_users_offline_response_from_dict = PageUsersOfflineResponse.from_dict(page_users_offline_response_dict) +``` +[[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..79dd900 --- /dev/null +++ b/client/docs/PageUsersOnlineResponse.md @@ -0,0 +1,34 @@ +# PageUsersOnlineResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next_after_user_id** | **str** | | +**next_after_name** | **str** | | +**total_count** | **float** | | +**anon_count** | **float** | | +**users** | [**List[PageUserEntry]**](PageUserEntry.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.page_users_online_response import PageUsersOnlineResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PageUsersOnlineResponse from a JSON string +page_users_online_response_instance = PageUsersOnlineResponse.from_json(json) +# print the JSON string representation of the object +print(PageUsersOnlineResponse.to_json()) + +# convert the object into a dict +page_users_online_response_dict = page_users_online_response_instance.to_dict() +# create an instance of PageUsersOnlineResponse from a dict +page_users_online_response_from_dict = PageUsersOnlineResponse.from_dict(page_users_online_response_dict) +``` +[[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..08552f9 --- /dev/null +++ b/client/docs/PagesSortBy.md @@ -0,0 +1,14 @@ +# PagesSortBy + + +## Enum + +* `UPDATEDAT` (value: `'updatedAt'`) + +* `COMMENTCOUNT` (value: `'commentCount'`) + +* `TITLE` (value: `'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..357510d --- /dev/null +++ b/client/docs/PatchDomainConfigResponse.md @@ -0,0 +1,32 @@ +# PatchDomainConfigResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **object** | | +**status** | **object** | | +**reason** | **str** | | +**code** | **str** | | + +## Example + +```python +from client.models.patch_domain_config_response import PatchDomainConfigResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PatchDomainConfigResponse from a JSON string +patch_domain_config_response_instance = PatchDomainConfigResponse.from_json(json) +# print the JSON string representation of the object +print(PatchDomainConfigResponse.to_json()) + +# convert the object into a dict +patch_domain_config_response_dict = patch_domain_config_response_instance.to_dict() +# create an instance of PatchDomainConfigResponse from a dict +patch_domain_config_response_from_dict = PatchDomainConfigResponse.from_dict(patch_domain_config_response_dict) +``` +[[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 537c0ce..0000000 --- a/client/docs/PatchHashTag200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# PatchHashTag200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**hash_tag** | [**TenantHashTag**](TenantHashTag.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.patch_hash_tag200_response import PatchHashTag200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of PatchHashTag200Response from a JSON string -patch_hash_tag200_response_instance = PatchHashTag200Response.from_json(json) -# print the JSON string representation of the object -print(PatchHashTag200Response.to_json()) - -# convert the object into a dict -patch_hash_tag200_response_dict = patch_hash_tag200_response_instance.to_dict() -# create an instance of PatchHashTag200Response from a dict -patch_hash_tag200_response_from_dict = PatchHashTag200Response.from_dict(patch_hash_tag200_response_dict) -``` -[[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 2a46288..0000000 --- a/client/docs/PinComment200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# PinComment200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment_positions** | [**Dict[str, RecordStringBeforeStringOrNullAfterStringOrNullValue]**](RecordStringBeforeStringOrNullAfterStringOrNullValue.md) | Construct a type with a set of properties K of type T | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.pin_comment200_response import PinComment200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of PinComment200Response from a JSON string -pin_comment200_response_instance = PinComment200Response.from_json(json) -# print the JSON string representation of the object -print(PinComment200Response.to_json()) - -# convert the object into a dict -pin_comment200_response_dict = pin_comment200_response_instance.to_dict() -# create an instance of PinComment200Response from a dict -pin_comment200_response_from_dict = PinComment200Response.from_dict(pin_comment200_response_dict) -``` -[[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..d92bb42 --- /dev/null +++ b/client/docs/PostRemoveCommentResponse.md @@ -0,0 +1,30 @@ +# PostRemoveCommentResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **str** | | +**status** | **str** | | + +## Example + +```python +from client.models.post_remove_comment_response import PostRemoveCommentResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PostRemoveCommentResponse from a JSON string +post_remove_comment_response_instance = PostRemoveCommentResponse.from_json(json) +# print the JSON string representation of the object +print(PostRemoveCommentResponse.to_json()) + +# convert the object into a dict +post_remove_comment_response_dict = post_remove_comment_response_instance.to_dict() +# create an instance of PostRemoveCommentResponse from a dict +post_remove_comment_response_from_dict = PostRemoveCommentResponse.from_dict(post_remove_comment_response_dict) +``` +[[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..394ec56 --- /dev/null +++ b/client/docs/PreBanSummary.md @@ -0,0 +1,31 @@ +# PreBanSummary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**usernames** | **List[str]** | | +**count** | **float** | | + +## Example + +```python +from client.models.pre_ban_summary import PreBanSummary + +# TODO update the JSON string below +json = "{}" +# create an instance of PreBanSummary from a JSON string +pre_ban_summary_instance = PreBanSummary.from_json(json) +# print the JSON string representation of the object +print(PreBanSummary.to_json()) + +# convert the object into a dict +pre_ban_summary_dict = pre_ban_summary_instance.to_dict() +# create an instance of PreBanSummary from a dict +pre_ban_summary_from_dict = PreBanSummary.from_dict(pre_ban_summary_dict) +``` +[[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/PublicApi.md b/client/docs/PublicApi.md index b49a406..8e32bad 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 | @@ -42,7 +59,7 @@ Method | HTTP request | Description # **block_from_comment_public** -> BlockFromCommentPublic200Response block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso=sso) +> BlockSuccess block_from_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso=sso) @@ -51,7 +68,7 @@ Method | HTTP request | Description ```python import client -from client.models.block_from_comment_public200_response import BlockFromCommentPublic200Response +from client.models.block_success import BlockSuccess from client.models.public_block_from_comment_params import PublicBlockFromCommentParams from client.rest import ApiException from pprint import pprint @@ -94,7 +111,7 @@ Name | Type | Description | Notes ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -110,11 +127,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **checked_comments_for_blocked** -> CheckedCommentsForBlocked200Response checked_comments_for_blocked(tenant_id, comment_ids, sso=sso) +> CheckBlockedCommentsResponse checked_comments_for_blocked(tenant_id, comment_ids, sso=sso) @@ -123,7 +141,7 @@ No authorization required ```python import client -from client.models.checked_comments_for_blocked200_response import CheckedCommentsForBlocked200Response +from client.models.check_blocked_comments_response import CheckBlockedCommentsResponse from client.rest import ApiException from pprint import pprint @@ -163,7 +181,7 @@ Name | Type | Description | Notes ### Return type -[**CheckedCommentsForBlocked200Response**](CheckedCommentsForBlocked200Response.md) +[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) ### Authorization @@ -179,11 +197,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_comment_public** -> CreateCommentPublic200Response create_comment_public(tenant_id, url_id, broadcast_id, comment_data, session_id=session_id, sso=sso) +> SaveCommentsResponseWithPresence create_comment_public(tenant_id, url_id, broadcast_id, comment_data, session_id=session_id, sso=sso) @@ -193,7 +212,7 @@ No authorization required ```python import client from client.models.comment_data import CommentData -from client.models.create_comment_public200_response import CreateCommentPublic200Response +from client.models.save_comments_response_with_presence import SaveCommentsResponseWithPresence from client.rest import ApiException from pprint import pprint @@ -239,7 +258,7 @@ Name | Type | Description | Notes ### Return type -[**CreateCommentPublic200Response**](CreateCommentPublic200Response.md) +[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) ### Authorization @@ -255,11 +274,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_feed_post_public** -> CreateFeedPostPublic200Response create_feed_post_public(tenant_id, create_feed_post_params, broadcast_id=broadcast_id, sso=sso) +> CreateFeedPostResponse create_feed_post_public(tenant_id, create_feed_post_params, broadcast_id=broadcast_id, sso=sso) @@ -269,7 +289,7 @@ No authorization required ```python import client from client.models.create_feed_post_params import CreateFeedPostParams -from client.models.create_feed_post_public200_response import CreateFeedPostPublic200Response +from client.models.create_feed_post_response import CreateFeedPostResponse from client.rest import ApiException from pprint import pprint @@ -311,7 +331,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -327,11 +347,154 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | + +[[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** +> CreateV1PageReact create_v1_page_react(tenant_id, url_id, title=title) + + + +### Example + + +```python +import client +from client.models.create_v1_page_react import CreateV1PageReact +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + url_id = 'url_id_example' # str | + title = 'title_example' # str | (optional) + + try: + api_response = api_instance.create_v1_page_react(tenant_id, url_id, title=title) + print("The response of PublicApi->create_v1_page_react:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->create_v1_page_react: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **url_id** | **str**| | + **title** | **str**| | [optional] + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> CreateV1PageReact create_v2_page_react(tenant_id, url_id, id, title=title) + + + +### Example + + +```python +import client +from client.models.create_v1_page_react import CreateV1PageReact +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + url_id = 'url_id_example' # str | + id = 'id_example' # str | + title = 'title_example' # str | (optional) + + try: + api_response = api_instance.create_v2_page_react(tenant_id, url_id, id, title=title) + print("The response of PublicApi->create_v2_page_react:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->create_v2_page_react: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **url_id** | **str**| | + **id** | **str**| | + **title** | **str**| | [optional] + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | [[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** -> DeleteCommentPublic200Response delete_comment_public(tenant_id, comment_id, broadcast_id, edit_key=edit_key, sso=sso) +> PublicAPIDeleteCommentResponse delete_comment_public(tenant_id, comment_id, broadcast_id, edit_key=edit_key, sso=sso) @@ -340,7 +503,7 @@ No authorization required ```python import client -from client.models.delete_comment_public200_response import DeleteCommentPublic200Response +from client.models.public_api_delete_comment_response import PublicAPIDeleteCommentResponse from client.rest import ApiException from pprint import pprint @@ -384,7 +547,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteCommentPublic200Response**](DeleteCommentPublic200Response.md) +[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) ### Authorization @@ -400,11 +563,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_vote** -> DeleteCommentVote200Response delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, edit_key=edit_key, sso=sso) +> VoteDeleteResponse delete_comment_vote(tenant_id, comment_id, vote_id, url_id, broadcast_id, edit_key=edit_key, sso=sso) @@ -413,7 +577,7 @@ No authorization required ```python import client -from client.models.delete_comment_vote200_response import DeleteCommentVote200Response +from client.models.vote_delete_response import VoteDeleteResponse from client.rest import ApiException from pprint import pprint @@ -461,7 +625,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -477,11 +641,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_feed_post_public** -> DeleteFeedPostPublic200Response delete_feed_post_public(tenant_id, post_id, broadcast_id=broadcast_id, sso=sso) +> DeleteFeedPostPublicResponse delete_feed_post_public(tenant_id, post_id, broadcast_id=broadcast_id, sso=sso) @@ -490,7 +655,7 @@ No authorization required ```python import client -from client.models.delete_feed_post_public200_response import DeleteFeedPostPublic200Response +from client.models.delete_feed_post_public_response import DeleteFeedPostPublicResponse from client.rest import ApiException from pprint import pprint @@ -532,7 +697,145 @@ Name | Type | Description | Notes ### Return type -[**DeleteFeedPostPublic200Response**](DeleteFeedPostPublic200Response.md) +[**DeleteFeedPostPublicResponse**](DeleteFeedPostPublicResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> CreateV1PageReact delete_v1_page_react(tenant_id, url_id) + + + +### Example + + +```python +import client +from client.models.create_v1_page_react import CreateV1PageReact +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + url_id = 'url_id_example' # str | + + try: + api_response = api_instance.delete_v1_page_react(tenant_id, url_id) + print("The response of PublicApi->delete_v1_page_react:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->delete_v1_page_react: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **url_id** | **str**| | + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> CreateV1PageReact delete_v2_page_react(tenant_id, url_id, id) + + + +### Example + + +```python +import client +from client.models.create_v1_page_react import CreateV1PageReact +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + url_id = 'url_id_example' # str | + id = 'id_example' # str | + + try: + api_response = api_instance.delete_v2_page_react(tenant_id, url_id, id) + print("The response of PublicApi->delete_v2_page_react:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->delete_v2_page_react: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **url_id** | **str**| | + **id** | **str**| | + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) ### Authorization @@ -548,20 +851,1034 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | + +[[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) + +# **flag_comment_public** +> APIEmptyResponse flag_comment_public(tenant_id, comment_id, is_flagged, sso=sso) + + + +### Example + + +```python +import client +from client.models.api_empty_response import APIEmptyResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + comment_id = 'comment_id_example' # str | + is_flagged = True # bool | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.flag_comment_public(tenant_id, comment_id, is_flagged, sso=sso) + print("The response of PublicApi->flag_comment_public:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->flag_comment_public: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **comment_id** | **str**| | + **is_flagged** | **bool**| | + **sso** | **str**| | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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_text** +> PublicAPIGetCommentTextResponse get_comment_text(tenant_id, comment_id, edit_key=edit_key, sso=sso) + + + +### Example + + +```python +import client +from client.models.public_api_get_comment_text_response import PublicAPIGetCommentTextResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + comment_id = 'comment_id_example' # str | + edit_key = 'edit_key_example' # str | (optional) + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_comment_text(tenant_id, comment_id, edit_key=edit_key, sso=sso) + print("The response of PublicApi->get_comment_text:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_comment_text: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **comment_id** | **str**| | + **edit_key** | **str**| | [optional] + **sso** | **str**| | [optional] + +### Return type + +[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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_vote_user_names** +> GetCommentVoteUserNamesSuccessResponse get_comment_vote_user_names(tenant_id, comment_id, dir, sso=sso) + + + +### Example + + +```python +import client +from client.models.get_comment_vote_user_names_success_response import GetCommentVoteUserNamesSuccessResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + comment_id = 'comment_id_example' # str | + dir = 56 # int | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_comment_vote_user_names(tenant_id, comment_id, dir, sso=sso) + print("The response of PublicApi->get_comment_vote_user_names:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_comment_vote_user_names: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **comment_id** | **str**| | + **dir** | **int**| | + **sso** | **str**| | [optional] + +### Return type + +[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GetCommentsForUserResponse get_comments_for_user(user_id=user_id, direction=direction, replies_to_user_id=replies_to_user_id, page=page, includei10n=includei10n, locale=locale, is_crawler=is_crawler) + + + +### Example + + +```python +import client +from client.models.get_comments_for_user_response import GetCommentsForUserResponse +from client.models.sort_directions import SortDirections +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + user_id = 'user_id_example' # str | (optional) + direction = client.SortDirections() # SortDirections | (optional) + replies_to_user_id = 'replies_to_user_id_example' # str | (optional) + page = 3.4 # float | (optional) + includei10n = True # bool | (optional) + locale = 'locale_example' # str | (optional) + is_crawler = True # bool | (optional) + + try: + api_response = api_instance.get_comments_for_user(user_id=user_id, direction=direction, replies_to_user_id=replies_to_user_id, page=page, includei10n=includei10n, locale=locale, is_crawler=is_crawler) + print("The response of PublicApi->get_comments_for_user:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_comments_for_user: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| | [optional] + **direction** | [**SortDirections**](.md)| | [optional] + **replies_to_user_id** | **str**| | [optional] + **page** | **float**| | [optional] + **includei10n** | **bool**| | [optional] + **locale** | **str**| | [optional] + **is_crawler** | **bool**| | [optional] + +### Return type + +[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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_public** +> GetCommentsResponseWithPresencePublicComment get_comments_public(tenant_id, url_id, page=page, direction=direction, sso=sso, skip=skip, skip_children=skip_children, limit=limit, limit_children=limit_children, count_children=count_children, fetch_page_for_comment_id=fetch_page_for_comment_id, include_config=include_config, count_all=count_all, includei10n=includei10n, locale=locale, modules=modules, is_crawler=is_crawler, include_notification_count=include_notification_count, as_tree=as_tree, max_tree_depth=max_tree_depth, use_full_translation_ids=use_full_translation_ids, parent_id=parent_id, search_text=search_text, hash_tags=hash_tags, user_id=user_id, custom_config_str=custom_config_str, after_comment_id=after_comment_id, before_comment_id=before_comment_id) + + + + req tenantId urlId + +### Example + + +```python +import client +from client.models.get_comments_response_with_presence_public_comment import GetCommentsResponseWithPresencePublicComment +from client.models.sort_directions import SortDirections +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + url_id = 'url_id_example' # str | + page = 56 # int | (optional) + direction = client.SortDirections() # SortDirections | (optional) + sso = 'sso_example' # str | (optional) + skip = 56 # int | (optional) + skip_children = 56 # int | (optional) + limit = 56 # int | (optional) + limit_children = 56 # int | (optional) + count_children = True # bool | (optional) + fetch_page_for_comment_id = 'fetch_page_for_comment_id_example' # str | (optional) + include_config = True # bool | (optional) + count_all = True # bool | (optional) + includei10n = True # bool | (optional) + locale = 'locale_example' # str | (optional) + modules = 'modules_example' # str | (optional) + is_crawler = True # bool | (optional) + include_notification_count = True # bool | (optional) + as_tree = True # bool | (optional) + max_tree_depth = 56 # int | (optional) + use_full_translation_ids = True # bool | (optional) + parent_id = 'parent_id_example' # str | (optional) + search_text = 'search_text_example' # str | (optional) + hash_tags = ['hash_tags_example'] # List[str] | (optional) + user_id = 'user_id_example' # str | (optional) + custom_config_str = 'custom_config_str_example' # str | (optional) + after_comment_id = 'after_comment_id_example' # str | (optional) + before_comment_id = 'before_comment_id_example' # str | (optional) + + try: + api_response = api_instance.get_comments_public(tenant_id, url_id, page=page, direction=direction, sso=sso, skip=skip, skip_children=skip_children, limit=limit, limit_children=limit_children, count_children=count_children, fetch_page_for_comment_id=fetch_page_for_comment_id, include_config=include_config, count_all=count_all, includei10n=includei10n, locale=locale, modules=modules, is_crawler=is_crawler, include_notification_count=include_notification_count, as_tree=as_tree, max_tree_depth=max_tree_depth, use_full_translation_ids=use_full_translation_ids, parent_id=parent_id, search_text=search_text, hash_tags=hash_tags, user_id=user_id, custom_config_str=custom_config_str, after_comment_id=after_comment_id, before_comment_id=before_comment_id) + print("The response of PublicApi->get_comments_public:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_comments_public: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **url_id** | **str**| | + **page** | **int**| | [optional] + **direction** | [**SortDirections**](.md)| | [optional] + **sso** | **str**| | [optional] + **skip** | **int**| | [optional] + **skip_children** | **int**| | [optional] + **limit** | **int**| | [optional] + **limit_children** | **int**| | [optional] + **count_children** | **bool**| | [optional] + **fetch_page_for_comment_id** | **str**| | [optional] + **include_config** | **bool**| | [optional] + **count_all** | **bool**| | [optional] + **includei10n** | **bool**| | [optional] + **locale** | **str**| | [optional] + **modules** | **str**| | [optional] + **is_crawler** | **bool**| | [optional] + **include_notification_count** | **bool**| | [optional] + **as_tree** | **bool**| | [optional] + **max_tree_depth** | **int**| | [optional] + **use_full_translation_ids** | **bool**| | [optional] + **parent_id** | **str**| | [optional] + **search_text** | **str**| | [optional] + **hash_tags** | [**List[str]**](str.md)| | [optional] + **user_id** | **str**| | [optional] + **custom_config_str** | **str**| | [optional] + **after_comment_id** | **str**| | [optional] + **before_comment_id** | **str**| | [optional] + +### Return type + +[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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_event_log** +> GetEventLogResponse get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time=end_time) + + + + req tenantId urlId userIdWS + +### Example + + +```python +import client +from client.models.get_event_log_response import GetEventLogResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + url_id = 'url_id_example' # str | + user_id_ws = 'user_id_ws_example' # str | + start_time = 56 # int | + end_time = 56 # int | (optional) + + try: + api_response = api_instance.get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time=end_time) + print("The response of PublicApi->get_event_log:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_event_log: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **url_id** | **str**| | + **user_id_ws** | **str**| | + **start_time** | **int**| | + **end_time** | **int**| | [optional] + +### Return type + +[**GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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_feed_posts_public** +> PublicFeedPostsResponse get_feed_posts_public(tenant_id, after_id=after_id, limit=limit, tags=tags, sso=sso, is_crawler=is_crawler, include_user_info=include_user_info) + + + + req tenantId afterId + +### Example + + +```python +import client +from client.models.public_feed_posts_response import PublicFeedPostsResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + after_id = 'after_id_example' # str | (optional) + limit = 56 # int | (optional) + tags = ['tags_example'] # List[str] | (optional) + sso = 'sso_example' # str | (optional) + is_crawler = True # bool | (optional) + include_user_info = True # bool | (optional) + + try: + api_response = api_instance.get_feed_posts_public(tenant_id, after_id=after_id, limit=limit, tags=tags, sso=sso, is_crawler=is_crawler, include_user_info=include_user_info) + print("The response of PublicApi->get_feed_posts_public:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_feed_posts_public: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **after_id** | **str**| | [optional] + **limit** | **int**| | [optional] + **tags** | [**List[str]**](str.md)| | [optional] + **sso** | **str**| | [optional] + **is_crawler** | **bool**| | [optional] + **include_user_info** | **bool**| | [optional] + +### Return type + +[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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_feed_posts_stats** +> FeedPostsStatsResponse get_feed_posts_stats(tenant_id, post_ids, sso=sso) + + + +### Example + + +```python +import client +from client.models.feed_posts_stats_response import FeedPostsStatsResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + post_ids = ['post_ids_example'] # List[str] | + sso = 'sso_example' # str | (optional) + + try: + api_response = api_instance.get_feed_posts_stats(tenant_id, post_ids, sso=sso) + print("The response of PublicApi->get_feed_posts_stats:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_feed_posts_stats: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **post_ids** | [**List[str]**](str.md)| | + **sso** | **str**| | [optional] + +### Return type + +[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> GifGetLargeResponse get_gif_large(tenant_id, large_internal_url_sanitized) + + + +### Example + + +```python +import client +from client.models.gif_get_large_response import GifGetLargeResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + large_internal_url_sanitized = 'large_internal_url_sanitized_example' # str | + + try: + api_response = api_instance.get_gif_large(tenant_id, large_internal_url_sanitized) + print("The response of PublicApi->get_gif_large:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_gif_large: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **large_internal_url_sanitized** | **str**| | + +### Return type + +[**GifGetLargeResponse**](GifGetLargeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**422** | Validation Failed | - | +**0** | Error | - | + +[[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** +> GetGifsSearchResponse get_gifs_search(tenant_id, search, locale=locale, rating=rating, page=page) + + + +### Example + + +```python +import client +from client.models.get_gifs_search_response import GetGifsSearchResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + search = 'search_example' # str | + locale = 'locale_example' # str | (optional) + rating = 'rating_example' # str | (optional) + page = 3.4 # float | (optional) + + try: + api_response = api_instance.get_gifs_search(tenant_id, search, locale=locale, rating=rating, page=page) + print("The response of PublicApi->get_gifs_search:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_gifs_search: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **search** | **str**| | + **locale** | **str**| | [optional] + **rating** | **str**| | [optional] + **page** | **float**| | [optional] + +### Return type + +[**GetGifsSearchResponse**](GetGifsSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**422** | Validation Failed | - | +**0** | Error | - | + +[[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** +> GetGifsTrendingResponse get_gifs_trending(tenant_id, locale=locale, rating=rating, page=page) + + + +### Example + + +```python +import client +from client.models.get_gifs_trending_response import GetGifsTrendingResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + locale = 'locale_example' # str | (optional) + rating = 'rating_example' # str | (optional) + page = 3.4 # float | (optional) + + try: + api_response = api_instance.get_gifs_trending(tenant_id, locale=locale, rating=rating, page=page) + print("The response of PublicApi->get_gifs_trending:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_gifs_trending: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **locale** | **str**| | [optional] + **rating** | **str**| | [optional] + **page** | **float**| | [optional] + +### Return type + +[**GetGifsTrendingResponse**](GetGifsTrendingResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | + +[[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_global_event_log** +> GetEventLogResponse get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time=end_time) + + + + req tenantId urlId userIdWS + +### Example + + +```python +import client +from client.models.get_event_log_response import GetEventLogResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + url_id = 'url_id_example' # str | + user_id_ws = 'user_id_ws_example' # str | + start_time = 56 # int | + end_time = 56 # int | (optional) + + try: + api_response = api_instance.get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time=end_time) + print("The response of PublicApi->get_global_event_log:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_global_event_log: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **url_id** | **str**| | + **user_id_ws** | **str**| | + **start_time** | **int**| | + **end_time** | **int**| | [optional] + +### Return type + +[**GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**0** | Error | - | + +[[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** +> PageUsersOfflineResponse get_offline_users(tenant_id, url_id, after_name=after_name, after_user_id=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. + +### Example + + +```python +import client +from client.models.page_users_offline_response import PageUsersOfflineResponse +from client.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://fastcomments.com +# See configuration.py for a list of all supported configuration parameters. +configuration = client.Configuration( + host = "https://fastcomments.com" +) + + +# Enter a context with an instance of the API client +with client.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = client.PublicApi(api_client) + tenant_id = 'tenant_id_example' # str | + url_id = 'url_id_example' # str | Page URL identifier (cleaned server-side). + after_name = 'after_name_example' # str | Cursor: pass nextAfterName from the previous response. (optional) + after_user_id = 'after_user_id_example' # str | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + + try: + api_response = api_instance.get_offline_users(tenant_id, url_id, after_name=after_name, after_user_id=after_user_id) + print("The response of PublicApi->get_offline_users:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PublicApi->get_offline_users: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenant_id** | **str**| | + **url_id** | **str**| Page URL identifier (cleaned server-side). | + **after_name** | **str**| Cursor: pass nextAfterName from the previous response. | [optional] + **after_user_id** | **str**| Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] + +### Return type + +[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Ok | - | +**403** | Forbidden | - | +**422** | Validation Failed | - | +**0** | Error | - | [[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) -# **flag_comment_public** -> FlagCommentPublic200Response flag_comment_public(tenant_id, comment_id, is_flagged, sso=sso) +# **get_online_users** +> PageUsersOnlineResponse get_online_users(tenant_id, url_id, after_name=after_name, after_user_id=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). ### Example ```python import client -from client.models.flag_comment_public200_response import FlagCommentPublic200Response +from client.models.page_users_online_response import PageUsersOnlineResponse from client.rest import ApiException from pprint import pprint @@ -577,16 +1894,16 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - comment_id = 'comment_id_example' # str | - is_flagged = True # bool | - sso = 'sso_example' # str | (optional) + url_id = 'url_id_example' # str | Page URL identifier (cleaned server-side). + after_name = 'after_name_example' # str | Cursor: pass nextAfterName from the previous response. (optional) + after_user_id = 'after_user_id_example' # str | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) try: - api_response = api_instance.flag_comment_public(tenant_id, comment_id, is_flagged, sso=sso) - print("The response of PublicApi->flag_comment_public:\n") + api_response = api_instance.get_online_users(tenant_id, url_id, after_name=after_name, after_user_id=after_user_id) + print("The response of PublicApi->get_online_users:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->flag_comment_public: %s\n" % e) + print("Exception when calling PublicApi->get_online_users: %s\n" % e) ``` @@ -597,13 +1914,13 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **comment_id** | **str**| | - **is_flagged** | **bool**| | - **sso** | **str**| | [optional] + **url_id** | **str**| Page URL identifier (cleaned server-side). | + **after_name** | **str**| Cursor: pass nextAfterName from the previous response. | [optional] + **after_user_id** | **str**| Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**PageUsersOnlineResponse**](PageUsersOnlineResponse.md) ### Authorization @@ -619,20 +1936,26 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**403** | Forbidden | - | +**422** | Validation Failed | - | +**0** | Error | - | [[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_text** -> GetCommentText200Response get_comment_text(tenant_id, comment_id, edit_key=edit_key, sso=sso) +# **get_pages_public** +> GetPublicPagesResponse get_pages_public(tenant_id, cursor=cursor, limit=limit, q=q, sort_by=sort_by, has_comments=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. ### Example ```python import client -from client.models.get_comment_text200_response import GetCommentText200Response +from client.models.get_public_pages_response import GetPublicPagesResponse +from client.models.pages_sort_by import PagesSortBy from client.rest import ApiException from pprint import pprint @@ -648,16 +1971,18 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - comment_id = 'comment_id_example' # str | - edit_key = 'edit_key_example' # str | (optional) - sso = 'sso_example' # str | (optional) + cursor = 'cursor_example' # str | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. (optional) + limit = 56 # int | 1..200, default 50 (optional) + q = 'q_example' # str | Optional case-insensitive title prefix filter. (optional) + sort_by = client.PagesSortBy() # PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional) + has_comments = True # bool | If true, only return pages with at least one comment. (optional) try: - api_response = api_instance.get_comment_text(tenant_id, comment_id, edit_key=edit_key, sso=sso) - print("The response of PublicApi->get_comment_text:\n") + api_response = api_instance.get_pages_public(tenant_id, cursor=cursor, limit=limit, q=q, sort_by=sort_by, has_comments=has_comments) + print("The response of PublicApi->get_pages_public:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_comment_text: %s\n" % e) + print("Exception when calling PublicApi->get_pages_public: %s\n" % e) ``` @@ -668,13 +1993,15 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **comment_id** | **str**| | - **edit_key** | **str**| | [optional] - **sso** | **str**| | [optional] + **cursor** | **str**| Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. | [optional] + **limit** | **int**| 1..200, default 50 | [optional] + **q** | **str**| Optional case-insensitive title prefix filter. | [optional] + **sort_by** | [**PagesSortBy**](.md)| Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). | [optional] + **has_comments** | **bool**| If true, only return pages with at least one comment. | [optional] ### Return type -[**GetCommentText200Response**](GetCommentText200Response.md) +[**GetPublicPagesResponse**](GetPublicPagesResponse.md) ### Authorization @@ -690,11 +2017,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_vote_user_names** -> GetCommentVoteUserNames200Response get_comment_vote_user_names(tenant_id, comment_id, dir, sso=sso) +# **get_translations** +> GetTranslationsResponse get_translations(namespace, component, locale=locale, use_full_translation_ids=use_full_translation_ids) @@ -703,7 +2031,7 @@ No authorization required ```python import client -from client.models.get_comment_vote_user_names200_response import GetCommentVoteUserNames200Response +from client.models.get_translations_response import GetTranslationsResponse from client.rest import ApiException from pprint import pprint @@ -718,17 +2046,17 @@ configuration = client.Configuration( with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) - tenant_id = 'tenant_id_example' # str | - comment_id = 'comment_id_example' # str | - dir = 56 # int | - sso = 'sso_example' # str | (optional) + namespace = 'namespace_example' # str | + component = 'component_example' # str | + locale = 'locale_example' # str | (optional) + use_full_translation_ids = True # bool | (optional) try: - api_response = api_instance.get_comment_vote_user_names(tenant_id, comment_id, dir, sso=sso) - print("The response of PublicApi->get_comment_vote_user_names:\n") + api_response = api_instance.get_translations(namespace, component, locale=locale, use_full_translation_ids=use_full_translation_ids) + print("The response of PublicApi->get_translations:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_comment_vote_user_names: %s\n" % e) + print("Exception when calling PublicApi->get_translations: %s\n" % e) ``` @@ -738,14 +2066,14 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenant_id** | **str**| | - **comment_id** | **str**| | - **dir** | **int**| | - **sso** | **str**| | [optional] + **namespace** | **str**| | + **component** | **str**| | + **locale** | **str**| | [optional] + **use_full_translation_ids** | **bool**| | [optional] ### Return type -[**GetCommentVoteUserNames200Response**](GetCommentVoteUserNames200Response.md) +[**GetTranslationsResponse**](GetTranslationsResponse.md) ### Authorization @@ -761,23 +2089,23 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**422** | Validation Failed | - | +**500** | Internal | - | +**0** | Error | - | [[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_public** -> GetCommentsPublic200Response get_comments_public(tenant_id, url_id, page=page, direction=direction, sso=sso, skip=skip, skip_children=skip_children, limit=limit, limit_children=limit_children, count_children=count_children, fetch_page_for_comment_id=fetch_page_for_comment_id, include_config=include_config, count_all=count_all, includei10n=includei10n, locale=locale, modules=modules, is_crawler=is_crawler, include_notification_count=include_notification_count, as_tree=as_tree, max_tree_depth=max_tree_depth, use_full_translation_ids=use_full_translation_ids, parent_id=parent_id, search_text=search_text, hash_tags=hash_tags, user_id=user_id, custom_config_str=custom_config_str, after_comment_id=after_comment_id, before_comment_id=before_comment_id) - +# **get_user_notification_count** +> GetUserNotificationCountResponse get_user_notification_count(tenant_id, sso=sso) - req tenantId urlId ### Example ```python import client -from client.models.get_comments_public200_response import GetCommentsPublic200Response -from client.models.sort_directions import SortDirections +from client.models.get_user_notification_count_response import GetUserNotificationCountResponse from client.rest import ApiException from pprint import pprint @@ -793,40 +2121,14 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - url_id = 'url_id_example' # str | - page = 56 # int | (optional) - direction = client.SortDirections() # SortDirections | (optional) sso = 'sso_example' # str | (optional) - skip = 56 # int | (optional) - skip_children = 56 # int | (optional) - limit = 56 # int | (optional) - limit_children = 56 # int | (optional) - count_children = True # bool | (optional) - fetch_page_for_comment_id = 'fetch_page_for_comment_id_example' # str | (optional) - include_config = True # bool | (optional) - count_all = True # bool | (optional) - includei10n = True # bool | (optional) - locale = 'locale_example' # str | (optional) - modules = 'modules_example' # str | (optional) - is_crawler = True # bool | (optional) - include_notification_count = True # bool | (optional) - as_tree = True # bool | (optional) - max_tree_depth = 56 # int | (optional) - use_full_translation_ids = True # bool | (optional) - parent_id = 'parent_id_example' # str | (optional) - search_text = 'search_text_example' # str | (optional) - hash_tags = ['hash_tags_example'] # List[str] | (optional) - user_id = 'user_id_example' # str | (optional) - custom_config_str = 'custom_config_str_example' # str | (optional) - after_comment_id = 'after_comment_id_example' # str | (optional) - before_comment_id = 'before_comment_id_example' # str | (optional) try: - api_response = api_instance.get_comments_public(tenant_id, url_id, page=page, direction=direction, sso=sso, skip=skip, skip_children=skip_children, limit=limit, limit_children=limit_children, count_children=count_children, fetch_page_for_comment_id=fetch_page_for_comment_id, include_config=include_config, count_all=count_all, includei10n=includei10n, locale=locale, modules=modules, is_crawler=is_crawler, include_notification_count=include_notification_count, as_tree=as_tree, max_tree_depth=max_tree_depth, use_full_translation_ids=use_full_translation_ids, parent_id=parent_id, search_text=search_text, hash_tags=hash_tags, user_id=user_id, custom_config_str=custom_config_str, after_comment_id=after_comment_id, before_comment_id=before_comment_id) - print("The response of PublicApi->get_comments_public:\n") + api_response = api_instance.get_user_notification_count(tenant_id, sso=sso) + print("The response of PublicApi->get_user_notification_count:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_comments_public: %s\n" % e) + print("Exception when calling PublicApi->get_user_notification_count: %s\n" % e) ``` @@ -837,37 +2139,11 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **url_id** | **str**| | - **page** | **int**| | [optional] - **direction** | [**SortDirections**](.md)| | [optional] **sso** | **str**| | [optional] - **skip** | **int**| | [optional] - **skip_children** | **int**| | [optional] - **limit** | **int**| | [optional] - **limit_children** | **int**| | [optional] - **count_children** | **bool**| | [optional] - **fetch_page_for_comment_id** | **str**| | [optional] - **include_config** | **bool**| | [optional] - **count_all** | **bool**| | [optional] - **includei10n** | **bool**| | [optional] - **locale** | **str**| | [optional] - **modules** | **str**| | [optional] - **is_crawler** | **bool**| | [optional] - **include_notification_count** | **bool**| | [optional] - **as_tree** | **bool**| | [optional] - **max_tree_depth** | **int**| | [optional] - **use_full_translation_ids** | **bool**| | [optional] - **parent_id** | **str**| | [optional] - **search_text** | **str**| | [optional] - **hash_tags** | [**List[str]**](str.md)| | [optional] - **user_id** | **str**| | [optional] - **custom_config_str** | **str**| | [optional] - **after_comment_id** | **str**| | [optional] - **before_comment_id** | **str**| | [optional] ### Return type -[**GetCommentsPublic200Response**](GetCommentsPublic200Response.md) +[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) ### Authorization @@ -883,22 +2159,21 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_event_log** -> GetEventLog200Response get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time) - +# **get_user_notifications** +> GetMyNotificationsResponse get_user_notifications(tenant_id, url_id=url_id, page_size=page_size, after_id=after_id, include_context=include_context, after_created_at=after_created_at, unread_only=unread_only, dm_only=dm_only, no_dm=no_dm, include_translations=include_translations, include_tenant_notifications=include_tenant_notifications, sso=sso) - req tenantId urlId userIdWS ### Example ```python import client -from client.models.get_event_log200_response import GetEventLog200Response +from client.models.get_my_notifications_response import GetMyNotificationsResponse from client.rest import ApiException from pprint import pprint @@ -914,17 +2189,24 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - url_id = 'url_id_example' # str | - user_id_ws = 'user_id_ws_example' # str | - start_time = 56 # int | - end_time = 56 # int | + url_id = 'url_id_example' # str | Used to determine whether the current page is subscribed. (optional) + page_size = 56 # int | (optional) + after_id = 'after_id_example' # str | (optional) + include_context = True # bool | (optional) + after_created_at = 56 # int | (optional) + unread_only = True # bool | (optional) + dm_only = True # bool | (optional) + no_dm = True # bool | (optional) + include_translations = True # bool | (optional) + include_tenant_notifications = True # bool | (optional) + sso = 'sso_example' # str | (optional) try: - api_response = api_instance.get_event_log(tenant_id, url_id, user_id_ws, start_time, end_time) - print("The response of PublicApi->get_event_log:\n") + api_response = api_instance.get_user_notifications(tenant_id, url_id=url_id, page_size=page_size, after_id=after_id, include_context=include_context, after_created_at=after_created_at, unread_only=unread_only, dm_only=dm_only, no_dm=no_dm, include_translations=include_translations, include_tenant_notifications=include_tenant_notifications, sso=sso) + print("The response of PublicApi->get_user_notifications:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_event_log: %s\n" % e) + print("Exception when calling PublicApi->get_user_notifications: %s\n" % e) ``` @@ -935,14 +2217,21 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **url_id** | **str**| | - **user_id_ws** | **str**| | - **start_time** | **int**| | - **end_time** | **int**| | + **url_id** | **str**| Used to determine whether the current page is subscribed. | [optional] + **page_size** | **int**| | [optional] + **after_id** | **str**| | [optional] + **include_context** | **bool**| | [optional] + **after_created_at** | **int**| | [optional] + **unread_only** | **bool**| | [optional] + **dm_only** | **bool**| | [optional] + **no_dm** | **bool**| | [optional] + **include_translations** | **bool**| | [optional] + **include_tenant_notifications** | **bool**| | [optional] + **sso** | **str**| | [optional] ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) ### Authorization @@ -958,22 +2247,21 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_feed_posts_public** -> GetFeedPostsPublic200Response get_feed_posts_public(tenant_id, after_id=after_id, limit=limit, tags=tags, sso=sso, is_crawler=is_crawler, include_user_info=include_user_info) - +# **get_user_presence_statuses** +> GetUserPresenceStatusesResponse get_user_presence_statuses(tenant_id, url_id_ws, user_ids) - req tenantId afterId ### Example ```python import client -from client.models.get_feed_posts_public200_response import GetFeedPostsPublic200Response +from client.models.get_user_presence_statuses_response import GetUserPresenceStatusesResponse from client.rest import ApiException from pprint import pprint @@ -989,19 +2277,15 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - after_id = 'after_id_example' # str | (optional) - limit = 56 # int | (optional) - tags = ['tags_example'] # List[str] | (optional) - sso = 'sso_example' # str | (optional) - is_crawler = True # bool | (optional) - include_user_info = True # bool | (optional) + url_id_ws = 'url_id_ws_example' # str | + user_ids = 'user_ids_example' # str | try: - api_response = api_instance.get_feed_posts_public(tenant_id, after_id=after_id, limit=limit, tags=tags, sso=sso, is_crawler=is_crawler, include_user_info=include_user_info) - print("The response of PublicApi->get_feed_posts_public:\n") + api_response = api_instance.get_user_presence_statuses(tenant_id, url_id_ws, user_ids) + print("The response of PublicApi->get_user_presence_statuses:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_feed_posts_public: %s\n" % e) + print("Exception when calling PublicApi->get_user_presence_statuses: %s\n" % e) ``` @@ -1012,16 +2296,12 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **after_id** | **str**| | [optional] - **limit** | **int**| | [optional] - **tags** | [**List[str]**](str.md)| | [optional] - **sso** | **str**| | [optional] - **is_crawler** | **bool**| | [optional] - **include_user_info** | **bool**| | [optional] + **url_id_ws** | **str**| | + **user_ids** | **str**| | ### Return type -[**GetFeedPostsPublic200Response**](GetFeedPostsPublic200Response.md) +[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) ### Authorization @@ -1037,11 +2317,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**422** | Validation Failed | - | +**0** | Error | - | [[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_feed_posts_stats** -> GetFeedPostsStats200Response get_feed_posts_stats(tenant_id, post_ids, sso=sso) +# **get_user_reacts_public** +> UserReactsResponse get_user_reacts_public(tenant_id, post_ids=post_ids, sso=sso) @@ -1050,7 +2332,7 @@ No authorization required ```python import client -from client.models.get_feed_posts_stats200_response import GetFeedPostsStats200Response +from client.models.user_reacts_response import UserReactsResponse from client.rest import ApiException from pprint import pprint @@ -1066,15 +2348,15 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - post_ids = ['post_ids_example'] # List[str] | + post_ids = ['post_ids_example'] # List[str] | (optional) sso = 'sso_example' # str | (optional) try: - api_response = api_instance.get_feed_posts_stats(tenant_id, post_ids, sso=sso) - print("The response of PublicApi->get_feed_posts_stats:\n") + api_response = api_instance.get_user_reacts_public(tenant_id, post_ids=post_ids, sso=sso) + print("The response of PublicApi->get_user_reacts_public:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_feed_posts_stats: %s\n" % e) + print("Exception when calling PublicApi->get_user_reacts_public: %s\n" % e) ``` @@ -1085,12 +2367,12 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **post_ids** | [**List[str]**](str.md)| | + **post_ids** | [**List[str]**](str.md)| | [optional] **sso** | **str**| | [optional] ### Return type -[**GetFeedPostsStats200Response**](GetFeedPostsStats200Response.md) +[**UserReactsResponse**](UserReactsResponse.md) ### Authorization @@ -1106,22 +2388,23 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_global_event_log** -> GetEventLog200Response get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time) +# **get_users_info** +> PageUsersInfoResponse get_users_info(tenant_id, ids) - req tenantId urlId userIdWS +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). ### Example ```python import client -from client.models.get_event_log200_response import GetEventLog200Response +from client.models.page_users_info_response import PageUsersInfoResponse from client.rest import ApiException from pprint import pprint @@ -1137,17 +2420,14 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - url_id = 'url_id_example' # str | - user_id_ws = 'user_id_ws_example' # str | - start_time = 56 # int | - end_time = 56 # int | + ids = 'ids_example' # str | Comma-delimited userIds. try: - api_response = api_instance.get_global_event_log(tenant_id, url_id, user_id_ws, start_time, end_time) - print("The response of PublicApi->get_global_event_log:\n") + api_response = api_instance.get_users_info(tenant_id, ids) + print("The response of PublicApi->get_users_info:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_global_event_log: %s\n" % e) + print("Exception when calling PublicApi->get_users_info: %s\n" % e) ``` @@ -1158,14 +2438,11 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **url_id** | **str**| | - **user_id_ws** | **str**| | - **start_time** | **int**| | - **end_time** | **int**| | + **ids** | **str**| Comma-delimited userIds. | ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**PageUsersInfoResponse**](PageUsersInfoResponse.md) ### Authorization @@ -1181,11 +2458,13 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**422** | Validation Failed | - | +**0** | Error | - | [[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_notification_count** -> GetUserNotificationCount200Response get_user_notification_count(tenant_id, sso=sso) +# **get_v1_page_likes** +> GetV1PageLikes get_v1_page_likes(tenant_id, url_id) @@ -1194,7 +2473,7 @@ No authorization required ```python import client -from client.models.get_user_notification_count200_response import GetUserNotificationCount200Response +from client.models.get_v1_page_likes import GetV1PageLikes from client.rest import ApiException from pprint import pprint @@ -1210,14 +2489,14 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - sso = 'sso_example' # str | (optional) + url_id = 'url_id_example' # str | try: - api_response = api_instance.get_user_notification_count(tenant_id, sso=sso) - print("The response of PublicApi->get_user_notification_count:\n") + api_response = api_instance.get_v1_page_likes(tenant_id, url_id) + print("The response of PublicApi->get_v1_page_likes:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_user_notification_count: %s\n" % e) + print("Exception when calling PublicApi->get_v1_page_likes: %s\n" % e) ``` @@ -1228,11 +2507,11 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **sso** | **str**| | [optional] + **url_id** | **str**| | ### Return type -[**GetUserNotificationCount200Response**](GetUserNotificationCount200Response.md) +[**GetV1PageLikes**](GetV1PageLikes.md) ### Authorization @@ -1248,11 +2527,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_notifications** -> GetUserNotifications200Response get_user_notifications(tenant_id, page_size=page_size, after_id=after_id, include_context=include_context, after_created_at=after_created_at, unread_only=unread_only, dm_only=dm_only, no_dm=no_dm, include_translations=include_translations, sso=sso) +# **get_v2_page_react_users** +> GetV2PageReactUsersResponse get_v2_page_react_users(tenant_id, url_id, id) @@ -1261,7 +2541,7 @@ No authorization required ```python import client -from client.models.get_user_notifications200_response import GetUserNotifications200Response +from client.models.get_v2_page_react_users_response import GetV2PageReactUsersResponse from client.rest import ApiException from pprint import pprint @@ -1277,22 +2557,15 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - page_size = 56 # int | (optional) - after_id = 'after_id_example' # str | (optional) - include_context = True # bool | (optional) - after_created_at = 56 # int | (optional) - unread_only = True # bool | (optional) - dm_only = True # bool | (optional) - no_dm = True # bool | (optional) - include_translations = True # bool | (optional) - sso = 'sso_example' # str | (optional) + url_id = 'url_id_example' # str | + id = 'id_example' # str | try: - api_response = api_instance.get_user_notifications(tenant_id, page_size=page_size, after_id=after_id, include_context=include_context, after_created_at=after_created_at, unread_only=unread_only, dm_only=dm_only, no_dm=no_dm, include_translations=include_translations, sso=sso) - print("The response of PublicApi->get_user_notifications:\n") + api_response = api_instance.get_v2_page_react_users(tenant_id, url_id, id) + print("The response of PublicApi->get_v2_page_react_users:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_user_notifications: %s\n" % e) + print("Exception when calling PublicApi->get_v2_page_react_users: %s\n" % e) ``` @@ -1303,19 +2576,12 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **page_size** | **int**| | [optional] - **after_id** | **str**| | [optional] - **include_context** | **bool**| | [optional] - **after_created_at** | **int**| | [optional] - **unread_only** | **bool**| | [optional] - **dm_only** | **bool**| | [optional] - **no_dm** | **bool**| | [optional] - **include_translations** | **bool**| | [optional] - **sso** | **str**| | [optional] + **url_id** | **str**| | + **id** | **str**| | ### Return type -[**GetUserNotifications200Response**](GetUserNotifications200Response.md) +[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) ### Authorization @@ -1331,11 +2597,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_presence_statuses** -> GetUserPresenceStatuses200Response get_user_presence_statuses(tenant_id, url_id_ws, user_ids) +# **get_v2_page_reacts** +> GetV2PageReacts get_v2_page_reacts(tenant_id, url_id) @@ -1344,7 +2611,7 @@ No authorization required ```python import client -from client.models.get_user_presence_statuses200_response import GetUserPresenceStatuses200Response +from client.models.get_v2_page_reacts import GetV2PageReacts from client.rest import ApiException from pprint import pprint @@ -1360,15 +2627,14 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - url_id_ws = 'url_id_ws_example' # str | - user_ids = 'user_ids_example' # str | + url_id = 'url_id_example' # str | try: - api_response = api_instance.get_user_presence_statuses(tenant_id, url_id_ws, user_ids) - print("The response of PublicApi->get_user_presence_statuses:\n") + api_response = api_instance.get_v2_page_reacts(tenant_id, url_id) + print("The response of PublicApi->get_v2_page_reacts:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_user_presence_statuses: %s\n" % e) + print("Exception when calling PublicApi->get_v2_page_reacts: %s\n" % e) ``` @@ -1379,12 +2645,11 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **url_id_ws** | **str**| | - **user_ids** | **str**| | + **url_id** | **str**| | ### Return type -[**GetUserPresenceStatuses200Response**](GetUserPresenceStatuses200Response.md) +[**GetV2PageReacts**](GetV2PageReacts.md) ### Authorization @@ -1400,12 +2665,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | -**422** | Validation Failed | - | +**0** | Error | - | [[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_reacts_public** -> GetUserReactsPublic200Response get_user_reacts_public(tenant_id, post_ids=post_ids, sso=sso) +# **lock_comment** +> APIEmptyResponse lock_comment(tenant_id, comment_id, broadcast_id, sso=sso) @@ -1414,7 +2679,7 @@ No authorization required ```python import client -from client.models.get_user_reacts_public200_response import GetUserReactsPublic200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -1430,15 +2695,16 @@ with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) tenant_id = 'tenant_id_example' # str | - post_ids = ['post_ids_example'] # List[str] | (optional) + comment_id = 'comment_id_example' # str | + broadcast_id = 'broadcast_id_example' # str | sso = 'sso_example' # str | (optional) try: - api_response = api_instance.get_user_reacts_public(tenant_id, post_ids=post_ids, sso=sso) - print("The response of PublicApi->get_user_reacts_public:\n") + api_response = api_instance.lock_comment(tenant_id, comment_id, broadcast_id, sso=sso) + print("The response of PublicApi->lock_comment:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->get_user_reacts_public: %s\n" % e) + print("Exception when calling PublicApi->lock_comment: %s\n" % e) ``` @@ -1449,12 +2715,13 @@ with client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenant_id** | **str**| | - **post_ids** | [**List[str]**](str.md)| | [optional] + **comment_id** | **str**| | + **broadcast_id** | **str**| | **sso** | **str**| | [optional] ### Return type -[**GetUserReactsPublic200Response**](GetUserReactsPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1470,11 +2737,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) -# **lock_comment** -> LockComment200Response lock_comment(tenant_id, comment_id, broadcast_id, sso=sso) +# **logout_public** +> APIEmptyResponse logout_public() @@ -1483,7 +2751,7 @@ No authorization required ```python import client -from client.models.lock_comment200_response import LockComment200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -1498,34 +2766,24 @@ configuration = client.Configuration( with client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = client.PublicApi(api_client) - tenant_id = 'tenant_id_example' # str | - comment_id = 'comment_id_example' # str | - broadcast_id = 'broadcast_id_example' # str | - sso = 'sso_example' # str | (optional) try: - api_response = api_instance.lock_comment(tenant_id, comment_id, broadcast_id, sso=sso) - print("The response of PublicApi->lock_comment:\n") + api_response = api_instance.logout_public() + print("The response of PublicApi->logout_public:\n") pprint(api_response) except Exception as e: - print("Exception when calling PublicApi->lock_comment: %s\n" % e) + print("Exception when calling PublicApi->logout_public: %s\n" % e) ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenant_id** | **str**| | - **comment_id** | **str**| | - **broadcast_id** | **str**| | - **sso** | **str**| | [optional] +This endpoint does not need any parameter. ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1545,7 +2803,7 @@ 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) # **pin_comment** -> PinComment200Response pin_comment(tenant_id, comment_id, broadcast_id, sso=sso) +> ChangeCommentPinStatusResponse pin_comment(tenant_id, comment_id, broadcast_id, sso=sso) @@ -1554,7 +2812,7 @@ No authorization required ```python import client -from client.models.pin_comment200_response import PinComment200Response +from client.models.change_comment_pin_status_response import ChangeCommentPinStatusResponse from client.rest import ApiException from pprint import pprint @@ -1596,7 +2854,7 @@ Name | Type | Description | Notes ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -1612,11 +2870,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **react_feed_post_public** -> ReactFeedPostPublic200Response react_feed_post_public(tenant_id, post_id, react_body_params, is_undo=is_undo, broadcast_id=broadcast_id, sso=sso) +> ReactFeedPostResponse react_feed_post_public(tenant_id, post_id, react_body_params, is_undo=is_undo, broadcast_id=broadcast_id, sso=sso) @@ -1626,7 +2885,7 @@ No authorization required ```python import client from client.models.react_body_params import ReactBodyParams -from client.models.react_feed_post_public200_response import ReactFeedPostPublic200Response +from client.models.react_feed_post_response import ReactFeedPostResponse from client.rest import ApiException from pprint import pprint @@ -1672,7 +2931,7 @@ Name | Type | Description | Notes ### Return type -[**ReactFeedPostPublic200Response**](ReactFeedPostPublic200Response.md) +[**ReactFeedPostResponse**](ReactFeedPostResponse.md) ### Authorization @@ -1688,11 +2947,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **reset_user_notification_count** -> ResetUserNotifications200Response reset_user_notification_count(tenant_id, sso=sso) +> ResetUserNotificationsResponse reset_user_notification_count(tenant_id, sso=sso) @@ -1701,7 +2961,7 @@ No authorization required ```python import client -from client.models.reset_user_notifications200_response import ResetUserNotifications200Response +from client.models.reset_user_notifications_response import ResetUserNotificationsResponse from client.rest import ApiException from pprint import pprint @@ -1739,7 +2999,7 @@ Name | Type | Description | Notes ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1755,11 +3015,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **reset_user_notifications** -> ResetUserNotifications200Response reset_user_notifications(tenant_id, after_id=after_id, after_created_at=after_created_at, unread_only=unread_only, dm_only=dm_only, no_dm=no_dm, sso=sso) +> ResetUserNotificationsResponse reset_user_notifications(tenant_id, after_id=after_id, after_created_at=after_created_at, unread_only=unread_only, dm_only=dm_only, no_dm=no_dm, sso=sso) @@ -1768,7 +3029,7 @@ No authorization required ```python import client -from client.models.reset_user_notifications200_response import ResetUserNotifications200Response +from client.models.reset_user_notifications_response import ResetUserNotificationsResponse from client.rest import ApiException from pprint import pprint @@ -1816,7 +3077,7 @@ Name | Type | Description | Notes ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1832,11 +3093,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **search_users** -> SearchUsers200Response search_users(tenant_id, url_id, username_starts_with=username_starts_with, mention_group_ids=mention_group_ids, sso=sso, search_section=search_section) +> SearchUsersResult search_users(tenant_id, url_id, username_starts_with=username_starts_with, mention_group_ids=mention_group_ids, sso=sso, search_section=search_section) @@ -1845,7 +3107,7 @@ No authorization required ```python import client -from client.models.search_users200_response import SearchUsers200Response +from client.models.search_users_result import SearchUsersResult from client.rest import ApiException from pprint import pprint @@ -1891,7 +3153,7 @@ Name | Type | Description | Notes ### Return type -[**SearchUsers200Response**](SearchUsers200Response.md) +[**SearchUsersResult**](SearchUsersResult.md) ### Authorization @@ -1907,11 +3169,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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_comment_text** -> SetCommentText200Response set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, edit_key=edit_key, sso=sso) +> PublicAPISetCommentTextResponse set_comment_text(tenant_id, comment_id, broadcast_id, comment_text_update_request, edit_key=edit_key, sso=sso) @@ -1921,7 +3184,7 @@ No authorization required ```python import client from client.models.comment_text_update_request import CommentTextUpdateRequest -from client.models.set_comment_text200_response import SetCommentText200Response +from client.models.public_api_set_comment_text_response import PublicAPISetCommentTextResponse from client.rest import ApiException from pprint import pprint @@ -1967,7 +3230,7 @@ Name | Type | Description | Notes ### Return type -[**SetCommentText200Response**](SetCommentText200Response.md) +[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) ### Authorization @@ -1983,11 +3246,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **un_block_comment_public** -> UnBlockCommentPublic200Response un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso=sso) +> UnblockSuccess un_block_comment_public(tenant_id, comment_id, public_block_from_comment_params, sso=sso) @@ -1997,7 +3261,7 @@ No authorization required ```python import client from client.models.public_block_from_comment_params import PublicBlockFromCommentParams -from client.models.un_block_comment_public200_response import UnBlockCommentPublic200Response +from client.models.unblock_success import UnblockSuccess from client.rest import ApiException from pprint import pprint @@ -2039,7 +3303,7 @@ Name | Type | Description | Notes ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -2055,11 +3319,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **un_lock_comment** -> LockComment200Response un_lock_comment(tenant_id, comment_id, broadcast_id, sso=sso) +> APIEmptyResponse un_lock_comment(tenant_id, comment_id, broadcast_id, sso=sso) @@ -2068,7 +3333,7 @@ No authorization required ```python import client -from client.models.lock_comment200_response import LockComment200Response +from client.models.api_empty_response import APIEmptyResponse from client.rest import ApiException from pprint import pprint @@ -2110,7 +3375,7 @@ Name | Type | Description | Notes ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2126,11 +3391,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **un_pin_comment** -> PinComment200Response un_pin_comment(tenant_id, comment_id, broadcast_id, sso=sso) +> ChangeCommentPinStatusResponse un_pin_comment(tenant_id, comment_id, broadcast_id, sso=sso) @@ -2139,7 +3405,7 @@ No authorization required ```python import client -from client.models.pin_comment200_response import PinComment200Response +from client.models.change_comment_pin_status_response import ChangeCommentPinStatusResponse from client.rest import ApiException from pprint import pprint @@ -2181,7 +3447,7 @@ Name | Type | Description | Notes ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -2197,11 +3463,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_feed_post_public** -> CreateFeedPostPublic200Response update_feed_post_public(tenant_id, post_id, update_feed_post_params, broadcast_id=broadcast_id, sso=sso) +> CreateFeedPostResponse update_feed_post_public(tenant_id, post_id, update_feed_post_params, broadcast_id=broadcast_id, sso=sso) @@ -2210,7 +3477,7 @@ No authorization required ```python import client -from client.models.create_feed_post_public200_response import CreateFeedPostPublic200Response +from client.models.create_feed_post_response import CreateFeedPostResponse from client.models.update_feed_post_params import UpdateFeedPostParams from client.rest import ApiException from pprint import pprint @@ -2255,7 +3522,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -2271,11 +3538,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_user_notification_comment_subscription_status** -> UpdateUserNotificationStatus200Response update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, sso=sso) +> UpdateUserNotificationCommentSubscriptionStatusResponse update_user_notification_comment_subscription_status(tenant_id, notification_id, opted_in_or_out, comment_id, sso=sso) @@ -2286,7 +3554,7 @@ Enable or disable notifications for a specific comment. ```python import client -from client.models.update_user_notification_status200_response import UpdateUserNotificationStatus200Response +from client.models.update_user_notification_comment_subscription_status_response import UpdateUserNotificationCommentSubscriptionStatusResponse from client.rest import ApiException from pprint import pprint @@ -2330,7 +3598,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationCommentSubscriptionStatusResponse**](UpdateUserNotificationCommentSubscriptionStatusResponse.md) ### Authorization @@ -2346,11 +3614,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_user_notification_page_subscription_status** -> UpdateUserNotificationStatus200Response update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, sso=sso) +> UpdateUserNotificationPageSubscriptionStatusResponse update_user_notification_page_subscription_status(tenant_id, url_id, url, page_title, subscribed_or_unsubscribed, sso=sso) @@ -2361,7 +3630,7 @@ Enable or disable notifications for a page. When users are subscribed to a page, ```python import client -from client.models.update_user_notification_status200_response import UpdateUserNotificationStatus200Response +from client.models.update_user_notification_page_subscription_status_response import UpdateUserNotificationPageSubscriptionStatusResponse from client.rest import ApiException from pprint import pprint @@ -2407,7 +3676,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationPageSubscriptionStatusResponse**](UpdateUserNotificationPageSubscriptionStatusResponse.md) ### Authorization @@ -2423,11 +3692,12 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) # **update_user_notification_status** -> UpdateUserNotificationStatus200Response update_user_notification_status(tenant_id, notification_id, new_status, sso=sso) +> UpdateUserNotificationStatusResponse update_user_notification_status(tenant_id, notification_id, new_status, sso=sso) @@ -2436,7 +3706,7 @@ No authorization required ```python import client -from client.models.update_user_notification_status200_response import UpdateUserNotificationStatus200Response +from client.models.update_user_notification_status_response import UpdateUserNotificationStatusResponse from client.rest import ApiException from pprint import pprint @@ -2478,7 +3748,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationStatusResponse**](UpdateUserNotificationStatusResponse.md) ### Authorization @@ -2494,6 +3764,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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) @@ -2572,7 +3843,7 @@ 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) # **vote_comment** -> VoteComment200Response vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, session_id=session_id, sso=sso) +> VoteResponse vote_comment(tenant_id, comment_id, url_id, broadcast_id, vote_body_params, session_id=session_id, sso=sso) @@ -2582,7 +3853,7 @@ No authorization required ```python import client from client.models.vote_body_params import VoteBodyParams -from client.models.vote_comment200_response import VoteComment200Response +from client.models.vote_response import VoteResponse from client.rest import ApiException from pprint import pprint @@ -2630,7 +3901,7 @@ Name | Type | Description | Notes ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -2646,6 +3917,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | Ok | - | +**0** | Error | - | [[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/PublicPage.md b/client/docs/PublicPage.md new file mode 100644 index 0000000..c3471a0 --- /dev/null +++ b/client/docs/PublicPage.md @@ -0,0 +1,33 @@ +# PublicPage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**updated_at** | **int** | | +**comment_count** | **int** | | +**title** | **str** | | +**url** | **str** | | +**url_id** | **str** | | + +## Example + +```python +from client.models.public_page import PublicPage + +# TODO update the JSON string below +json = "{}" +# create an instance of PublicPage from a JSON string +public_page_instance = PublicPage.from_json(json) +# print the JSON string representation of the object +print(PublicPage.to_json()) + +# convert the object into a dict +public_page_dict = public_page_instance.to_dict() +# create an instance of PublicPage from a dict +public_page_from_dict = PublicPage.from_dict(public_page_dict) +``` +[[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..26379ab --- /dev/null +++ b/client/docs/PutDomainConfigResponse.md @@ -0,0 +1,32 @@ +# PutDomainConfigResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **object** | | +**status** | **object** | | +**reason** | **str** | | +**code** | **str** | | + +## Example + +```python +from client.models.put_domain_config_response import PutDomainConfigResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PutDomainConfigResponse from a JSON string +put_domain_config_response_instance = PutDomainConfigResponse.from_json(json) +# print the JSON string representation of the object +print(PutDomainConfigResponse.to_json()) + +# convert the object into a dict +put_domain_config_response_dict = put_domain_config_response_instance.to_dict() +# create an instance of PutDomainConfigResponse from a dict +put_domain_config_response_from_dict = PutDomainConfigResponse.from_dict(put_domain_config_response_dict) +``` +[[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 428db04..0000000 --- a/client/docs/ReactFeedPostPublic200Response.md +++ /dev/null @@ -1,38 +0,0 @@ -# ReactFeedPostPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**react_type** | **str** | | -**is_undo** | **bool** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.react_feed_post_public200_response import ReactFeedPostPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of ReactFeedPostPublic200Response from a JSON string -react_feed_post_public200_response_instance = ReactFeedPostPublic200Response.from_json(json) -# print the JSON string representation of the object -print(ReactFeedPostPublic200Response.to_json()) - -# convert the object into a dict -react_feed_post_public200_response_dict = react_feed_post_public200_response_instance.to_dict() -# create an instance of ReactFeedPostPublic200Response from a dict -react_feed_post_public200_response_from_dict = ReactFeedPostPublic200Response.from_dict(react_feed_post_public200_response_dict) -``` -[[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/RecordStringStringOrNumberValue.md deleted file mode 100644 index 879f9a7..0000000 --- a/client/docs/RecordStringStringOrNumberValue.md +++ /dev/null @@ -1,28 +0,0 @@ -# RecordStringStringOrNumberValue - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Example - -```python -from client.models.record_string_string_or_number_value import RecordStringStringOrNumberValue - -# TODO update the JSON string below -json = "{}" -# create an instance of RecordStringStringOrNumberValue from a JSON string -record_string_string_or_number_value_instance = RecordStringStringOrNumberValue.from_json(json) -# print the JSON string representation of the object -print(RecordStringStringOrNumberValue.to_json()) - -# convert the object into a dict -record_string_string_or_number_value_dict = record_string_string_or_number_value_instance.to_dict() -# create an instance of RecordStringStringOrNumberValue from a dict -record_string_string_or_number_value_from_dict = RecordStringStringOrNumberValue.from_dict(record_string_string_or_number_value_dict) -``` -[[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..29a57dd --- /dev/null +++ b/client/docs/RemoveCommentActionResponse.md @@ -0,0 +1,30 @@ +# RemoveCommentActionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | | +**action** | **str** | | + +## Example + +```python +from client.models.remove_comment_action_response import RemoveCommentActionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of RemoveCommentActionResponse from a JSON string +remove_comment_action_response_instance = RemoveCommentActionResponse.from_json(json) +# print the JSON string representation of the object +print(RemoveCommentActionResponse.to_json()) + +# convert the object into a dict +remove_comment_action_response_dict = remove_comment_action_response_instance.to_dict() +# create an instance of RemoveCommentActionResponse from a dict +remove_comment_action_response_from_dict = RemoveCommentActionResponse.from_dict(remove_comment_action_response_dict) +``` +[[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..d4dbf82 --- /dev/null +++ b/client/docs/RemoveUserBadgeResponse.md @@ -0,0 +1,30 @@ +# RemoveUserBadgeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [**List[CommentUserBadgeInfo]**](CommentUserBadgeInfo.md) | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.remove_user_badge_response import RemoveUserBadgeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of RemoveUserBadgeResponse from a JSON string +remove_user_badge_response_instance = RemoveUserBadgeResponse.from_json(json) +# print the JSON string representation of the object +print(RemoveUserBadgeResponse.to_json()) + +# convert the object into a dict +remove_user_badge_response_dict = remove_user_badge_response_instance.to_dict() +# create an instance of RemoveUserBadgeResponse from a dict +remove_user_badge_response_from_dict = RemoveUserBadgeResponse.from_dict(remove_user_badge_response_dict) +``` +[[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 9ced152..0000000 --- a/client/docs/RenderEmailTemplate200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# RenderEmailTemplate200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**html** | **str** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.render_email_template200_response import RenderEmailTemplate200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of RenderEmailTemplate200Response from a JSON string -render_email_template200_response_instance = RenderEmailTemplate200Response.from_json(json) -# print the JSON string representation of the object -print(RenderEmailTemplate200Response.to_json()) - -# convert the object into a dict -render_email_template200_response_dict = render_email_template200_response_instance.to_dict() -# create an instance of RenderEmailTemplate200Response from a dict -render_email_template200_response_from_dict = RenderEmailTemplate200Response.from_dict(render_email_template200_response_dict) -``` -[[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 3b39033..0000000 --- a/client/docs/ResetUserNotifications200Response.md +++ /dev/null @@ -1,36 +0,0 @@ -# ResetUserNotifications200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **str** | | -**reason** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.reset_user_notifications200_response import ResetUserNotifications200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of ResetUserNotifications200Response from a JSON string -reset_user_notifications200_response_instance = ResetUserNotifications200Response.from_json(json) -# print the JSON string representation of the object -print(ResetUserNotifications200Response.to_json()) - -# convert the object into a dict -reset_user_notifications200_response_dict = reset_user_notifications200_response_instance.to_dict() -# create an instance of ResetUserNotifications200Response from a dict -reset_user_notifications200_response_from_dict = ResetUserNotifications200Response.from_dict(reset_user_notifications200_response_dict) -``` -[[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 62% rename from client/docs/SaveComment200Response.md rename to client/docs/SaveCommentsBulkResponse.md index c8046a0..23ba39d 100644 --- a/client/docs/SaveComment200Response.md +++ b/client/docs/SaveCommentsBulkResponse.md @@ -1,4 +1,4 @@ -# SaveComment200Response +# SaveCommentsBulkResponse ## Properties @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**FComment**](FComment.md) | | +**comment** | [**APIComment**](APIComment.md) | | **user** | [**UserSessionInfo**](UserSessionInfo.md) | | **module_data** | **Dict[str, object]** | Construct a type with a set of properties K of type T | [optional] **reason** | **str** | | @@ -20,19 +20,19 @@ Name | Type | Description | Notes ## Example ```python -from client.models.save_comment200_response import SaveComment200Response +from client.models.save_comments_bulk_response import SaveCommentsBulkResponse # TODO update the JSON string below json = "{}" -# create an instance of SaveComment200Response from a JSON string -save_comment200_response_instance = SaveComment200Response.from_json(json) +# create an instance of SaveCommentsBulkResponse from a JSON string +save_comments_bulk_response_instance = SaveCommentsBulkResponse.from_json(json) # print the JSON string representation of the object -print(SaveComment200Response.to_json()) +print(SaveCommentsBulkResponse.to_json()) # convert the object into a dict -save_comment200_response_dict = save_comment200_response_instance.to_dict() -# create an instance of SaveComment200Response from a dict -save_comment200_response_from_dict = SaveComment200Response.from_dict(save_comment200_response_dict) +save_comments_bulk_response_dict = save_comments_bulk_response_instance.to_dict() +# create an instance of SaveCommentsBulkResponse from a dict +save_comments_bulk_response_from_dict = SaveCommentsBulkResponse.from_dict(save_comments_bulk_response_dict) ``` [[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 1c1de7d..0000000 --- a/client/docs/SearchUsers200Response.md +++ /dev/null @@ -1,38 +0,0 @@ -# SearchUsers200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**sections** | [**List[UserSearchSectionResult]**](UserSearchSectionResult.md) | | -**users** | [**List[UserSearchResult]**](UserSearchResult.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.search_users200_response import SearchUsers200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of SearchUsers200Response from a JSON string -search_users200_response_instance = SearchUsers200Response.from_json(json) -# print the JSON string representation of the object -print(SearchUsers200Response.to_json()) - -# convert the object into a dict -search_users200_response_dict = search_users200_response_instance.to_dict() -# create an instance of SearchUsers200Response from a dict -search_users200_response_from_dict = SearchUsers200Response.from_dict(search_users200_response_dict) -``` -[[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..f8a5612 --- /dev/null +++ b/client/docs/SearchUsersResult.md @@ -0,0 +1,31 @@ +# SearchUsersResult + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**sections** | [**List[UserSearchSectionResult]**](UserSearchSectionResult.md) | | +**users** | [**List[UserSearchResult]**](UserSearchResult.md) | | + +## Example + +```python +from client.models.search_users_result import SearchUsersResult + +# TODO update the JSON string below +json = "{}" +# create an instance of SearchUsersResult from a JSON string +search_users_result_instance = SearchUsersResult.from_json(json) +# print the JSON string representation of the object +print(SearchUsersResult.to_json()) + +# convert the object into a dict +search_users_result_dict = search_users_result_instance.to_dict() +# create an instance of SearchUsersResult from a dict +search_users_result_from_dict = SearchUsersResult.from_dict(search_users_result_dict) +``` +[[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..3222c63 --- /dev/null +++ b/client/docs/SetCommentApprovedResponse.md @@ -0,0 +1,30 @@ +# SetCommentApprovedResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**did_reset_flagged_count** | **bool** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.set_comment_approved_response import SetCommentApprovedResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SetCommentApprovedResponse from a JSON string +set_comment_approved_response_instance = SetCommentApprovedResponse.from_json(json) +# print the JSON string representation of the object +print(SetCommentApprovedResponse.to_json()) + +# convert the object into a dict +set_comment_approved_response_dict = set_comment_approved_response_instance.to_dict() +# create an instance of SetCommentApprovedResponse from a dict +set_comment_approved_response_from_dict = SetCommentApprovedResponse.from_dict(set_comment_approved_response_dict) +``` +[[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 744faa5..0000000 --- a/client/docs/SetCommentText200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# SetCommentText200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.set_comment_text200_response import SetCommentText200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of SetCommentText200Response from a JSON string -set_comment_text200_response_instance = SetCommentText200Response.from_json(json) -# print the JSON string representation of the object -print(SetCommentText200Response.to_json()) - -# convert the object into a dict -set_comment_text200_response_dict = set_comment_text200_response_instance.to_dict() -# create an instance of SetCommentText200Response from a dict -set_comment_text200_response_from_dict = SetCommentText200Response.from_dict(set_comment_text200_response_dict) -``` -[[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..91a4616 --- /dev/null +++ b/client/docs/SetCommentTextParams.md @@ -0,0 +1,29 @@ +# SetCommentTextParams + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **str** | | + +## Example + +```python +from client.models.set_comment_text_params import SetCommentTextParams + +# TODO update the JSON string below +json = "{}" +# create an instance of SetCommentTextParams from a JSON string +set_comment_text_params_instance = SetCommentTextParams.from_json(json) +# print the JSON string representation of the object +print(SetCommentTextParams.to_json()) + +# convert the object into a dict +set_comment_text_params_dict = set_comment_text_params_instance.to_dict() +# create an instance of SetCommentTextParams from a dict +set_comment_text_params_from_dict = SetCommentTextParams.from_dict(set_comment_text_params_dict) +``` +[[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..b4646d9 --- /dev/null +++ b/client/docs/SetCommentTextResponse.md @@ -0,0 +1,30 @@ +# SetCommentTextResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**new_comment_text_html** | **str** | | +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.set_comment_text_response import SetCommentTextResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SetCommentTextResponse from a JSON string +set_comment_text_response_instance = SetCommentTextResponse.from_json(json) +# print the JSON string representation of the object +print(SetCommentTextResponse.to_json()) + +# convert the object into a dict +set_comment_text_response_dict = set_comment_text_response_instance.to_dict() +# create an instance of SetCommentTextResponse from a dict +set_comment_text_response_from_dict = SetCommentTextResponse.from_dict(set_comment_text_response_dict) +``` +[[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/SetUserTrustFactorResponse.md b/client/docs/SetUserTrustFactorResponse.md new file mode 100644 index 0000000..e50b48b --- /dev/null +++ b/client/docs/SetUserTrustFactorResponse.md @@ -0,0 +1,30 @@ +# SetUserTrustFactorResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**previous_manual_trust_factor** | **float** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +## Example + +```python +from client.models.set_user_trust_factor_response import SetUserTrustFactorResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SetUserTrustFactorResponse from a JSON string +set_user_trust_factor_response_instance = SetUserTrustFactorResponse.from_json(json) +# print the JSON string representation of the object +print(SetUserTrustFactorResponse.to_json()) + +# convert the object into a dict +set_user_trust_factor_response_dict = set_user_trust_factor_response_instance.to_dict() +# create an instance of SetUserTrustFactorResponse from a dict +set_user_trust_factor_response_from_dict = SetUserTrustFactorResponse.from_dict(set_user_trust_factor_response_dict) +``` +[[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..0547377 --- /dev/null +++ b/client/docs/TenantBadge.md @@ -0,0 +1,49 @@ +# TenantBadge + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**tenant_id** | **str** | | +**created_by_user_id** | **str** | | +**created_at** | **datetime** | | +**enabled** | **bool** | | +**url_id** | **str** | | [optional] +**type** | **float** | | +**threshold** | **float** | | +**uses** | **float** | | +**name** | **str** | | +**description** | **str** | | +**display_label** | **str** | | +**display_src** | **str** | | +**background_color** | **str** | | +**border_color** | **str** | | +**text_color** | **str** | | +**css_class** | **str** | | [optional] +**veteran_user_threshold_millis** | **float** | | [optional] +**is_awaiting_reprocess** | **bool** | | +**is_awaiting_deletion** | **bool** | | +**replaces_badge_id** | **str** | | [optional] + +## Example + +```python +from client.models.tenant_badge import TenantBadge + +# TODO update the JSON string below +json = "{}" +# create an instance of TenantBadge from a JSON string +tenant_badge_instance = TenantBadge.from_json(json) +# print the JSON string representation of the object +print(TenantBadge.to_json()) + +# convert the object into a dict +tenant_badge_dict = tenant_badge_instance.to_dict() +# create an instance of TenantBadge from a dict +tenant_badge_from_dict = TenantBadge.from_dict(tenant_badge_dict) +``` +[[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/TenantPackage.md b/client/docs/TenantPackage.md index aba22f6..d0da4a8 100644 --- a/client/docs/TenantPackage.md +++ b/client/docs/TenantPackage.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | | **tenant_id** | **str** | | **created_at** | **datetime** | | +**template_id** | **str** | | [optional] **monthly_cost_usd** | **float** | | **yearly_cost_usd** | **float** | | **monthly_stripe_plan_id** | **str** | | @@ -52,6 +53,8 @@ Name | Type | Description | Notes **flex_domain_unit** | **float** | | [optional] **flex_chat_gpt_cost_cents** | **float** | | [optional] **flex_chat_gpt_unit** | **float** | | [optional] +**flex_llm_cost_cents** | **float** | | [optional] +**flex_llm_unit** | **float** | | [optional] **flex_minimum_cost_cents** | **float** | | [optional] **flex_managed_tenant_cost_cents** | **float** | | [optional] **flex_sso_admin_cost_cents** | **float** | | [optional] @@ -59,6 +62,10 @@ Name | Type | Description | Notes **flex_sso_moderator_cost_cents** | **float** | | [optional] **flex_sso_moderator_unit** | **float** | | [optional] **is_sso_billing_monthly_active_users** | **bool** | | [optional] +**has_ai_agents** | **bool** | | [optional] +**max_ai_agents** | **float** | | [optional] +**ai_agent_daily_budget_cents** | **float** | | [optional] +**ai_agent_monthly_budget_cents** | **float** | | [optional] ## Example diff --git a/client/docs/UnBlockCommentPublic200Response.md b/client/docs/UnBlockCommentPublic200Response.md deleted file mode 100644 index 25ac783..0000000 --- a/client/docs/UnBlockCommentPublic200Response.md +++ /dev/null @@ -1,37 +0,0 @@ -# UnBlockCommentPublic200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment_statuses** | **Dict[str, bool]** | Construct a type with a set of properties K of type T | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.un_block_comment_public200_response import UnBlockCommentPublic200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of UnBlockCommentPublic200Response from a JSON string -un_block_comment_public200_response_instance = UnBlockCommentPublic200Response.from_json(json) -# print the JSON string representation of the object -print(UnBlockCommentPublic200Response.to_json()) - -# convert the object into a dict -un_block_comment_public200_response_dict = un_block_comment_public200_response_instance.to_dict() -# create an instance of UnBlockCommentPublic200Response from a dict -un_block_comment_public200_response_from_dict = UnBlockCommentPublic200Response.from_dict(un_block_comment_public200_response_dict) -``` -[[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/UpdateUserBadge200Response.md b/client/docs/UpdateUserBadge200Response.md deleted file mode 100644 index 10c2006..0000000 --- a/client/docs/UpdateUserBadge200Response.md +++ /dev/null @@ -1,36 +0,0 @@ -# UpdateUserBadge200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.update_user_badge200_response import UpdateUserBadge200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of UpdateUserBadge200Response from a JSON string -update_user_badge200_response_instance = UpdateUserBadge200Response.from_json(json) -# print the JSON string representation of the object -print(UpdateUserBadge200Response.to_json()) - -# convert the object into a dict -update_user_badge200_response_dict = update_user_badge200_response_instance.to_dict() -# create an instance of UpdateUserBadge200Response from a dict -update_user_badge200_response_from_dict = UpdateUserBadge200Response.from_dict(update_user_badge200_response_dict) -``` -[[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..ea478c8 --- /dev/null +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -0,0 +1,32 @@ +# UpdateUserNotificationCommentSubscriptionStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matched_count** | **int** | | +**modified_count** | **int** | | +**note** | **str** | | + +## Example + +```python +from client.models.update_user_notification_comment_subscription_status_response import UpdateUserNotificationCommentSubscriptionStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateUserNotificationCommentSubscriptionStatusResponse from a JSON string +update_user_notification_comment_subscription_status_response_instance = UpdateUserNotificationCommentSubscriptionStatusResponse.from_json(json) +# print the JSON string representation of the object +print(UpdateUserNotificationCommentSubscriptionStatusResponse.to_json()) + +# convert the object into a dict +update_user_notification_comment_subscription_status_response_dict = update_user_notification_comment_subscription_status_response_instance.to_dict() +# create an instance of UpdateUserNotificationCommentSubscriptionStatusResponse from a dict +update_user_notification_comment_subscription_status_response_from_dict = UpdateUserNotificationCommentSubscriptionStatusResponse.from_dict(update_user_notification_comment_subscription_status_response_dict) +``` +[[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..3d9a11c --- /dev/null +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -0,0 +1,32 @@ +# UpdateUserNotificationPageSubscriptionStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matched_count** | **int** | | +**modified_count** | **int** | | +**note** | **str** | | + +## Example + +```python +from client.models.update_user_notification_page_subscription_status_response import UpdateUserNotificationPageSubscriptionStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateUserNotificationPageSubscriptionStatusResponse from a JSON string +update_user_notification_page_subscription_status_response_instance = UpdateUserNotificationPageSubscriptionStatusResponse.from_json(json) +# print the JSON string representation of the object +print(UpdateUserNotificationPageSubscriptionStatusResponse.to_json()) + +# convert the object into a dict +update_user_notification_page_subscription_status_response_dict = update_user_notification_page_subscription_status_response_instance.to_dict() +# create an instance of UpdateUserNotificationPageSubscriptionStatusResponse from a dict +update_user_notification_page_subscription_status_response_from_dict = UpdateUserNotificationPageSubscriptionStatusResponse.from_dict(update_user_notification_page_subscription_status_response_dict) +``` +[[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 abf5fdb..0000000 --- a/client/docs/UpdateUserNotificationStatus200Response.md +++ /dev/null @@ -1,39 +0,0 @@ -# UpdateUserNotificationStatus200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**matched_count** | **int** | | -**modified_count** | **int** | | -**note** | **str** | | -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.update_user_notification_status200_response import UpdateUserNotificationStatus200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of UpdateUserNotificationStatus200Response from a JSON string -update_user_notification_status200_response_instance = UpdateUserNotificationStatus200Response.from_json(json) -# print the JSON string representation of the object -print(UpdateUserNotificationStatus200Response.to_json()) - -# convert the object into a dict -update_user_notification_status200_response_dict = update_user_notification_status200_response_instance.to_dict() -# create an instance of UpdateUserNotificationStatus200Response from a dict -update_user_notification_status200_response_from_dict = UpdateUserNotificationStatus200Response.from_dict(update_user_notification_status200_response_dict) -``` -[[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..0b474fd --- /dev/null +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -0,0 +1,32 @@ +# UpdateUserNotificationStatusResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matched_count** | **int** | | +**modified_count** | **int** | | +**note** | **str** | | + +## Example + +```python +from client.models.update_user_notification_status_response import UpdateUserNotificationStatusResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateUserNotificationStatusResponse from a JSON string +update_user_notification_status_response_instance = UpdateUserNotificationStatusResponse.from_json(json) +# print the JSON string representation of the object +print(UpdateUserNotificationStatusResponse.to_json()) + +# convert the object into a dict +update_user_notification_status_response_dict = update_user_notification_status_response_instance.to_dict() +# create an instance of UpdateUserNotificationStatusResponse from a dict +update_user_notification_status_response_from_dict = UpdateUserNotificationStatusResponse.from_dict(update_user_notification_status_response_dict) +``` +[[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 55cf366..576900b 100644 --- a/client/docs/User.md +++ b/client/docs/User.md @@ -44,6 +44,7 @@ Name | Type | Description | Notes **digest_email_frequency** | [**DigestEmailFrequency**](DigestEmailFrequency.md) | | [optional] **notification_frequency** | **float** | | [optional] **admin_notification_frequency** | **float** | | [optional] +**agent_approval_notification_frequency** | [**ImportedAgentApprovalNotificationFrequency**](ImportedAgentApprovalNotificationFrequency.md) | | [optional] **last_tenant_notification_sent_date** | **datetime** | | [optional] **last_reply_notification_sent_date** | **datetime** | | [optional] **ignored_add_to_my_site_messages** | **bool** | | [optional] diff --git a/client/docs/UsersListLocation.md b/client/docs/UsersListLocation.md new file mode 100644 index 0000000..b0d8889 --- /dev/null +++ b/client/docs/UsersListLocation.md @@ -0,0 +1,16 @@ +# UsersListLocation + + +## Enum + +* `NUMBER_0` (value: `0`) + +* `NUMBER_1` (value: `1`) + +* `NUMBER_2` (value: `2`) + +* `NUMBER_3` (value: `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/VoteComment200Response.md b/client/docs/VoteComment200Response.md deleted file mode 100644 index 0a848f9..0000000 --- a/client/docs/VoteComment200Response.md +++ /dev/null @@ -1,40 +0,0 @@ -# VoteComment200Response - - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**vote_id** | **str** | | [optional] -**is_verified** | **bool** | | [optional] -**user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] -**edit_key** | **str** | | [optional] -**reason** | **str** | | -**code** | **str** | | -**secondary_code** | **str** | | [optional] -**banned_until** | **int** | | [optional] -**max_character_length** | **int** | | [optional] -**translated_error** | **str** | | [optional] -**custom_config** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -## Example - -```python -from client.models.vote_comment200_response import VoteComment200Response - -# TODO update the JSON string below -json = "{}" -# create an instance of VoteComment200Response from a JSON string -vote_comment200_response_instance = VoteComment200Response.from_json(json) -# print the JSON string representation of the object -print(VoteComment200Response.to_json()) - -# convert the object into a dict -vote_comment200_response_dict = vote_comment200_response_instance.to_dict() -# create an instance of VoteComment200Response from a dict -vote_comment200_response_from_dict = VoteComment200Response.from_dict(vote_comment200_response_dict) -``` -[[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/models/__init__.py b/client/models/__init__.py index 8ecdc67..0a3f24d 100644 --- a/client/models/__init__.py +++ b/client/models/__init__.py @@ -15,9 +15,14 @@ # import models into model package from client.models.api_audit_log import APIAuditLog +from client.models.api_ban_user_change_log import APIBanUserChangeLog +from client.models.api_ban_user_changed_values import APIBanUserChangedValues +from client.models.api_banned_user import APIBannedUser +from client.models.api_banned_user_with_multi_match_info import APIBannedUserWithMultiMatchInfo from client.models.api_comment import APIComment from client.models.api_comment_base import APICommentBase from client.models.api_comment_base_meta import APICommentBaseMeta +from client.models.api_comment_common_banned_user import APICommentCommonBannedUser from client.models.api_create_user_badge_response import APICreateUserBadgeResponse from client.models.api_domain_configuration import APIDomainConfiguration from client.models.api_empty_response import APIEmptyResponse @@ -29,8 +34,11 @@ from client.models.api_get_user_badge_progress_response import APIGetUserBadgeProgressResponse from client.models.api_get_user_badge_response import APIGetUserBadgeResponse from client.models.api_get_user_badges_response import APIGetUserBadgesResponse +from client.models.api_moderate_get_user_ban_preferences_response import APIModerateGetUserBanPreferencesResponse +from client.models.api_moderate_user_ban_preferences import APIModerateUserBanPreferences from client.models.api_page import APIPage from client.models.apisso_user import APISSOUser +from client.models.api_save_comment_response import APISaveCommentResponse from client.models.api_status import APIStatus from client.models.api_tenant import APITenant from client.models.api_tenant_daily_usage import APITenantDailyUsage @@ -38,16 +46,17 @@ from client.models.api_ticket_detail import APITicketDetail from client.models.api_ticket_file import APITicketFile from client.models.api_user_subscription import APIUserSubscription -from client.models.add_domain_config200_response import AddDomainConfig200Response -from client.models.add_domain_config200_response_any_of import AddDomainConfig200ResponseAnyOf from client.models.add_domain_config_params import AddDomainConfigParams -from client.models.add_hash_tag200_response import AddHashTag200Response -from client.models.add_hash_tags_bulk200_response import AddHashTagsBulk200Response +from client.models.add_domain_config_response import AddDomainConfigResponse +from client.models.add_domain_config_response_any_of import AddDomainConfigResponseAnyOf from client.models.add_page_api_response import AddPageAPIResponse from client.models.add_sso_user_api_response import AddSSOUserAPIResponse -from client.models.aggregate_question_results200_response import AggregateQuestionResults200Response +from client.models.adjust_comment_votes_params import AdjustCommentVotesParams +from client.models.adjust_votes_response import AdjustVotesResponse from client.models.aggregate_question_results_response import AggregateQuestionResultsResponse +from client.models.aggregate_response import AggregateResponse from client.models.aggregate_time_bucket import AggregateTimeBucket +from client.models.aggregation_api_error import AggregationAPIError from client.models.aggregation_item import AggregationItem from client.models.aggregation_op_type import AggregationOpType from client.models.aggregation_operation import AggregationOperation @@ -56,24 +65,30 @@ from client.models.aggregation_response import AggregationResponse from client.models.aggregation_response_stats import AggregationResponseStats from client.models.aggregation_value import AggregationValue +from client.models.award_user_badge_response import AwardUserBadgeResponse +from client.models.ban_user_from_comment_result import BanUserFromCommentResult +from client.models.ban_user_undo_params import BanUserUndoParams +from client.models.banned_user_match import BannedUserMatch +from client.models.banned_user_match_matched_on_value import BannedUserMatchMatchedOnValue +from client.models.banned_user_match_type import BannedUserMatchType from client.models.billing_info import BillingInfo from client.models.block_from_comment_params import BlockFromCommentParams -from client.models.block_from_comment_public200_response import BlockFromCommentPublic200Response from client.models.block_success import BlockSuccess +from client.models.build_moderation_filter_params import BuildModerationFilterParams +from client.models.build_moderation_filter_response import BuildModerationFilterResponse from client.models.bulk_aggregate_question_item import BulkAggregateQuestionItem -from client.models.bulk_aggregate_question_results200_response import BulkAggregateQuestionResults200Response from client.models.bulk_aggregate_question_results_request import BulkAggregateQuestionResultsRequest from client.models.bulk_aggregate_question_results_response import BulkAggregateQuestionResultsResponse from client.models.bulk_create_hash_tags_body import BulkCreateHashTagsBody from client.models.bulk_create_hash_tags_body_tags_inner import BulkCreateHashTagsBodyTagsInner from client.models.bulk_create_hash_tags_response import BulkCreateHashTagsResponse +from client.models.bulk_create_hash_tags_response_results_inner import BulkCreateHashTagsResponseResultsInner +from client.models.bulk_pre_ban_params import BulkPreBanParams +from client.models.bulk_pre_ban_summary import BulkPreBanSummary from client.models.change_comment_pin_status_response import ChangeCommentPinStatusResponse -from client.models.change_ticket_state200_response import ChangeTicketState200Response from client.models.change_ticket_state_body import ChangeTicketStateBody from client.models.change_ticket_state_response import ChangeTicketStateResponse from client.models.check_blocked_comments_response import CheckBlockedCommentsResponse -from client.models.checked_comments_for_blocked200_response import CheckedCommentsForBlocked200Response -from client.models.combine_comments_with_question_results200_response import CombineCommentsWithQuestionResults200Response from client.models.combine_question_results_with_comments_response import CombineQuestionResultsWithCommentsResponse from client.models.comment_data import CommentData from client.models.comment_html_rendering_mode import CommentHTMLRenderingMode @@ -88,56 +103,42 @@ from client.models.comment_user_hash_tag_info import CommentUserHashTagInfo from client.models.comment_user_mention_info import CommentUserMentionInfo from client.models.commenter_name_formats import CommenterNameFormats +from client.models.comments_by_ids_params import CommentsByIdsParams from client.models.create_api_page_data import CreateAPIPageData from client.models.create_apisso_user_data import CreateAPISSOUserData from client.models.create_api_user_subscription_data import CreateAPIUserSubscriptionData from client.models.create_comment_params import CreateCommentParams -from client.models.create_comment_public200_response import CreateCommentPublic200Response -from client.models.create_email_template200_response import CreateEmailTemplate200Response from client.models.create_email_template_body import CreateEmailTemplateBody from client.models.create_email_template_response import CreateEmailTemplateResponse -from client.models.create_feed_post200_response import CreateFeedPost200Response from client.models.create_feed_post_params import CreateFeedPostParams -from client.models.create_feed_post_public200_response import CreateFeedPostPublic200Response from client.models.create_feed_post_response import CreateFeedPostResponse from client.models.create_feed_posts_response import CreateFeedPostsResponse from client.models.create_hash_tag_body import CreateHashTagBody from client.models.create_hash_tag_response import CreateHashTagResponse -from client.models.create_moderator200_response import CreateModerator200Response from client.models.create_moderator_body import CreateModeratorBody from client.models.create_moderator_response import CreateModeratorResponse -from client.models.create_question_config200_response import CreateQuestionConfig200Response from client.models.create_question_config_body import CreateQuestionConfigBody from client.models.create_question_config_response import CreateQuestionConfigResponse -from client.models.create_question_result200_response import CreateQuestionResult200Response from client.models.create_question_result_body import CreateQuestionResultBody from client.models.create_question_result_response import CreateQuestionResultResponse from client.models.create_subscription_api_response import CreateSubscriptionAPIResponse -from client.models.create_tenant200_response import CreateTenant200Response from client.models.create_tenant_body import CreateTenantBody -from client.models.create_tenant_package200_response import CreateTenantPackage200Response from client.models.create_tenant_package_body import CreateTenantPackageBody from client.models.create_tenant_package_response import CreateTenantPackageResponse from client.models.create_tenant_response import CreateTenantResponse -from client.models.create_tenant_user200_response import CreateTenantUser200Response from client.models.create_tenant_user_body import CreateTenantUserBody from client.models.create_tenant_user_response import CreateTenantUserResponse -from client.models.create_ticket200_response import CreateTicket200Response from client.models.create_ticket_body import CreateTicketBody from client.models.create_ticket_response import CreateTicketResponse -from client.models.create_user_badge200_response import CreateUserBadge200Response from client.models.create_user_badge_params import CreateUserBadgeParams +from client.models.create_v1_page_react import CreateV1PageReact from client.models.custom_config_parameters import CustomConfigParameters from client.models.custom_email_template import CustomEmailTemplate -from client.models.delete_comment200_response import DeleteComment200Response from client.models.delete_comment_action import DeleteCommentAction -from client.models.delete_comment_public200_response import DeleteCommentPublic200Response from client.models.delete_comment_result import DeleteCommentResult -from client.models.delete_comment_vote200_response import DeleteCommentVote200Response -from client.models.delete_domain_config200_response import DeleteDomainConfig200Response -from client.models.delete_feed_post_public200_response import DeleteFeedPostPublic200Response -from client.models.delete_feed_post_public200_response_any_of import DeleteFeedPostPublic200ResponseAnyOf -from client.models.delete_hash_tag_request import DeleteHashTagRequest +from client.models.delete_domain_config_response import DeleteDomainConfigResponse +from client.models.delete_feed_post_public_response import DeleteFeedPostPublicResponse +from client.models.delete_hash_tag_request_body import DeleteHashTagRequestBody from client.models.delete_page_api_response import DeletePageAPIResponse from client.models.delete_sso_user_api_response import DeleteSSOUserAPIResponse from client.models.delete_subscription_api_response import DeleteSubscriptionAPIResponse @@ -156,126 +157,124 @@ from client.models.feed_posts_stats_response import FeedPostsStatsResponse from client.models.find_comments_by_range_item import FindCommentsByRangeItem from client.models.find_comments_by_range_response import FindCommentsByRangeResponse -from client.models.flag_comment200_response import FlagComment200Response -from client.models.flag_comment_public200_response import FlagCommentPublic200Response from client.models.flag_comment_response import FlagCommentResponse -from client.models.get_audit_logs200_response import GetAuditLogs200Response from client.models.get_audit_logs_response import GetAuditLogsResponse -from client.models.get_cached_notification_count200_response import GetCachedNotificationCount200Response +from client.models.get_banned_users_count_response import GetBannedUsersCountResponse +from client.models.get_banned_users_from_comment_response import GetBannedUsersFromCommentResponse from client.models.get_cached_notification_count_response import GetCachedNotificationCountResponse -from client.models.get_comment200_response import GetComment200Response -from client.models.get_comment_text200_response import GetCommentText200Response -from client.models.get_comment_vote_user_names200_response import GetCommentVoteUserNames200Response +from client.models.get_comment_ban_status_response import GetCommentBanStatusResponse +from client.models.get_comment_text_response import GetCommentTextResponse from client.models.get_comment_vote_user_names_success_response import GetCommentVoteUserNamesSuccessResponse -from client.models.get_comments200_response import GetComments200Response -from client.models.get_comments_public200_response import GetCommentsPublic200Response +from client.models.get_comments_for_user_response import GetCommentsForUserResponse from client.models.get_comments_response_public_comment import GetCommentsResponsePublicComment from client.models.get_comments_response_with_presence_public_comment import GetCommentsResponseWithPresencePublicComment -from client.models.get_domain_config200_response import GetDomainConfig200Response -from client.models.get_domain_configs200_response import GetDomainConfigs200Response -from client.models.get_domain_configs200_response_any_of import GetDomainConfigs200ResponseAnyOf -from client.models.get_domain_configs200_response_any_of1 import GetDomainConfigs200ResponseAnyOf1 -from client.models.get_email_template200_response import GetEmailTemplate200Response -from client.models.get_email_template_definitions200_response import GetEmailTemplateDefinitions200Response +from client.models.get_domain_config_response import GetDomainConfigResponse +from client.models.get_domain_configs_response import GetDomainConfigsResponse +from client.models.get_domain_configs_response_any_of import GetDomainConfigsResponseAnyOf +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 from client.models.get_email_template_definitions_response import GetEmailTemplateDefinitionsResponse -from client.models.get_email_template_render_errors200_response import GetEmailTemplateRenderErrors200Response from client.models.get_email_template_render_errors_response import GetEmailTemplateRenderErrorsResponse from client.models.get_email_template_response import GetEmailTemplateResponse -from client.models.get_email_templates200_response import GetEmailTemplates200Response from client.models.get_email_templates_response import GetEmailTemplatesResponse -from client.models.get_event_log200_response import GetEventLog200Response from client.models.get_event_log_response import GetEventLogResponse -from client.models.get_feed_posts200_response import GetFeedPosts200Response -from client.models.get_feed_posts_public200_response import GetFeedPostsPublic200Response from client.models.get_feed_posts_response import GetFeedPostsResponse -from client.models.get_feed_posts_stats200_response import GetFeedPostsStats200Response -from client.models.get_hash_tags200_response import GetHashTags200Response +from client.models.get_gifs_search_response import GetGifsSearchResponse +from client.models.get_gifs_trending_response import GetGifsTrendingResponse from client.models.get_hash_tags_response import GetHashTagsResponse -from client.models.get_moderator200_response import GetModerator200Response from client.models.get_moderator_response import GetModeratorResponse -from client.models.get_moderators200_response import GetModerators200Response from client.models.get_moderators_response import GetModeratorsResponse from client.models.get_my_notifications_response import GetMyNotificationsResponse -from client.models.get_notification_count200_response import GetNotificationCount200Response from client.models.get_notification_count_response import GetNotificationCountResponse -from client.models.get_notifications200_response import GetNotifications200Response from client.models.get_notifications_response import GetNotificationsResponse from client.models.get_page_by_urlid_api_response import GetPageByURLIdAPIResponse from client.models.get_pages_api_response import GetPagesAPIResponse -from client.models.get_pending_webhook_event_count200_response import GetPendingWebhookEventCount200Response from client.models.get_pending_webhook_event_count_response import GetPendingWebhookEventCountResponse -from client.models.get_pending_webhook_events200_response import GetPendingWebhookEvents200Response from client.models.get_pending_webhook_events_response import GetPendingWebhookEventsResponse from client.models.get_public_feed_posts_response import GetPublicFeedPostsResponse -from client.models.get_question_config200_response import GetQuestionConfig200Response +from client.models.get_public_pages_response import GetPublicPagesResponse from client.models.get_question_config_response import GetQuestionConfigResponse -from client.models.get_question_configs200_response import GetQuestionConfigs200Response from client.models.get_question_configs_response import GetQuestionConfigsResponse -from client.models.get_question_result200_response import GetQuestionResult200Response from client.models.get_question_result_response import GetQuestionResultResponse -from client.models.get_question_results200_response import GetQuestionResults200Response from client.models.get_question_results_response import GetQuestionResultsResponse from client.models.get_sso_user_by_email_api_response import GetSSOUserByEmailAPIResponse from client.models.get_sso_user_by_id_api_response import GetSSOUserByIdAPIResponse -from client.models.get_sso_users200_response import GetSSOUsers200Response +from client.models.get_sso_users_response import GetSSOUsersResponse from client.models.get_subscriptions_api_response import GetSubscriptionsAPIResponse -from client.models.get_tenant200_response import GetTenant200Response -from client.models.get_tenant_daily_usages200_response import GetTenantDailyUsages200Response from client.models.get_tenant_daily_usages_response import GetTenantDailyUsagesResponse -from client.models.get_tenant_package200_response import GetTenantPackage200Response +from client.models.get_tenant_manual_badges_response import GetTenantManualBadgesResponse from client.models.get_tenant_package_response import GetTenantPackageResponse -from client.models.get_tenant_packages200_response import GetTenantPackages200Response from client.models.get_tenant_packages_response import GetTenantPackagesResponse from client.models.get_tenant_response import GetTenantResponse -from client.models.get_tenant_user200_response import GetTenantUser200Response from client.models.get_tenant_user_response import GetTenantUserResponse -from client.models.get_tenant_users200_response import GetTenantUsers200Response from client.models.get_tenant_users_response import GetTenantUsersResponse -from client.models.get_tenants200_response import GetTenants200Response from client.models.get_tenants_response import GetTenantsResponse -from client.models.get_ticket200_response import GetTicket200Response from client.models.get_ticket_response import GetTicketResponse -from client.models.get_tickets200_response import GetTickets200Response from client.models.get_tickets_response import GetTicketsResponse -from client.models.get_user200_response import GetUser200Response -from client.models.get_user_badge200_response import GetUserBadge200Response -from client.models.get_user_badge_progress_by_id200_response import GetUserBadgeProgressById200Response -from client.models.get_user_badge_progress_list200_response import GetUserBadgeProgressList200Response -from client.models.get_user_badges200_response import GetUserBadges200Response -from client.models.get_user_notification_count200_response import GetUserNotificationCount200Response +from client.models.get_translations_response import GetTranslationsResponse +from client.models.get_user_internal_profile_response import GetUserInternalProfileResponse +from client.models.get_user_internal_profile_response_profile import GetUserInternalProfileResponseProfile +from client.models.get_user_manual_badges_response import GetUserManualBadgesResponse from client.models.get_user_notification_count_response import GetUserNotificationCountResponse -from client.models.get_user_notifications200_response import GetUserNotifications200Response -from client.models.get_user_presence_statuses200_response import GetUserPresenceStatuses200Response from client.models.get_user_presence_statuses_response import GetUserPresenceStatusesResponse -from client.models.get_user_reacts_public200_response import GetUserReactsPublic200Response from client.models.get_user_response import GetUserResponse -from client.models.get_votes200_response import GetVotes200Response -from client.models.get_votes_for_user200_response import GetVotesForUser200Response +from client.models.get_user_trust_factor_response import GetUserTrustFactorResponse +from client.models.get_v1_page_likes import GetV1PageLikes +from client.models.get_v2_page_react_users_response import GetV2PageReactUsersResponse +from client.models.get_v2_page_reacts import GetV2PageReacts from client.models.get_votes_for_user_response import GetVotesForUserResponse from client.models.get_votes_response import GetVotesResponse +from client.models.gif_get_large_response import GifGetLargeResponse from client.models.gif_rating import GifRating +from client.models.gif_search_internal_error import GifSearchInternalError +from client.models.gif_search_response import GifSearchResponse +from client.models.gif_search_response_images_inner_inner import GifSearchResponseImagesInnerInner from client.models.header_account_notification import HeaderAccountNotification from client.models.header_state import HeaderState from client.models.ignored_response import IgnoredResponse from client.models.image_content_profanity_level import ImageContentProfanityLevel +from client.models.imported_agent_approval_notification_frequency import ImportedAgentApprovalNotificationFrequency from client.models.imported_site_type import ImportedSiteType from client.models.live_event import LiveEvent from client.models.live_event_extra_info import LiveEventExtraInfo from client.models.live_event_type import LiveEventType -from client.models.lock_comment200_response import LockComment200Response from client.models.media_asset import MediaAsset from client.models.mention_auto_complete_mode import MentionAutoCompleteMode from client.models.meta_item import MetaItem +from client.models.moderation_api_child_comments_response import ModerationAPIChildCommentsResponse +from client.models.moderation_api_comment import ModerationAPIComment +from client.models.moderation_api_comment_log import ModerationAPICommentLog +from client.models.moderation_api_comment_response import ModerationAPICommentResponse +from client.models.moderation_api_count_comments_response import ModerationAPICountCommentsResponse +from client.models.moderation_api_get_comment_ids_response import ModerationAPIGetCommentIdsResponse +from client.models.moderation_api_get_comments_response import ModerationAPIGetCommentsResponse +from client.models.moderation_api_get_logs_response import ModerationAPIGetLogsResponse +from client.models.moderation_comment_search_response import ModerationCommentSearchResponse +from client.models.moderation_export_response import ModerationExportResponse +from client.models.moderation_export_status_response import ModerationExportStatusResponse +from client.models.moderation_filter import ModerationFilter +from client.models.moderation_page_search_projected import ModerationPageSearchProjected +from client.models.moderation_page_search_response import ModerationPageSearchResponse +from client.models.moderation_site_search_projected import ModerationSiteSearchProjected +from client.models.moderation_site_search_response import ModerationSiteSearchResponse +from client.models.moderation_suggest_response import ModerationSuggestResponse +from client.models.moderation_user_search_projected import ModerationUserSearchProjected +from client.models.moderation_user_search_response import ModerationUserSearchResponse from client.models.moderator import Moderator from client.models.notification_and_count import NotificationAndCount from client.models.notification_object_type import NotificationObjectType from client.models.notification_type import NotificationType +from client.models.page_user_entry import PageUserEntry +from client.models.page_users_info_response import PageUsersInfoResponse +from client.models.page_users_offline_response import PageUsersOfflineResponse +from client.models.page_users_online_response import PageUsersOnlineResponse +from client.models.pages_sort_by import PagesSortBy from client.models.patch_domain_config_params import PatchDomainConfigParams -from client.models.patch_hash_tag200_response import PatchHashTag200Response +from client.models.patch_domain_config_response import PatchDomainConfigResponse from client.models.patch_page_api_response import PatchPageAPIResponse from client.models.patch_sso_user_api_response import PatchSSOUserAPIResponse from client.models.pending_comment_to_sync_outbound import PendingCommentToSyncOutbound -from client.models.pin_comment200_response import PinComment200Response +from client.models.post_remove_comment_response import PostRemoveCommentResponse +from client.models.pre_ban_summary import PreBanSummary from client.models.pub_sub_comment import PubSubComment from client.models.pub_sub_comment_base import PubSubCommentBase from client.models.pub_sub_vote import PubSubVote @@ -286,7 +285,9 @@ from client.models.public_comment import PublicComment from client.models.public_comment_base import PublicCommentBase from client.models.public_feed_posts_response import PublicFeedPostsResponse +from client.models.public_page import PublicPage from client.models.public_vote import PublicVote +from client.models.put_domain_config_response import PutDomainConfigResponse from client.models.put_sso_user_api_response import PutSSOUserAPIResponse from client.models.query_predicate import QueryPredicate from client.models.query_predicate_value import QueryPredicateValue @@ -299,11 +300,10 @@ from client.models.question_sub_question_visibility import QuestionSubQuestionVisibility from client.models.question_when_save import QuestionWhenSave from client.models.react_body_params import ReactBodyParams -from client.models.react_feed_post_public200_response import ReactFeedPostPublic200Response from client.models.react_feed_post_response import ReactFeedPostResponse from client.models.record_string_before_string_or_null_after_string_or_null_value import RecordStringBeforeStringOrNullAfterStringOrNullValue -from client.models.record_string_string_or_number_value import RecordStringStringOrNumberValue -from client.models.render_email_template200_response import RenderEmailTemplate200Response +from client.models.remove_comment_action_response import RemoveCommentActionResponse +from client.models.remove_user_badge_response import RemoveUserBadgeResponse from client.models.render_email_template_body import RenderEmailTemplateBody from client.models.render_email_template_response import RenderEmailTemplateResponse from client.models.renderable_user_notification import RenderableUserNotification @@ -311,26 +311,27 @@ from client.models.repeat_comment_handling_action import RepeatCommentHandlingAction from client.models.replace_tenant_package_body import ReplaceTenantPackageBody from client.models.replace_tenant_user_body import ReplaceTenantUserBody -from client.models.reset_user_notifications200_response import ResetUserNotifications200Response from client.models.reset_user_notifications_response import ResetUserNotificationsResponse from client.models.sortdir import SORTDIR from client.models.sso_security_level import SSOSecurityLevel -from client.models.save_comment200_response import SaveComment200Response -from client.models.save_comment_response import SaveCommentResponse from client.models.save_comment_response_optimized import SaveCommentResponseOptimized +from client.models.save_comments_bulk_response import SaveCommentsBulkResponse from client.models.save_comments_response_with_presence import SaveCommentsResponseWithPresence -from client.models.search_users200_response import SearchUsers200Response from client.models.search_users_response import SearchUsersResponse +from client.models.search_users_result import SearchUsersResult from client.models.search_users_sectioned_response import SearchUsersSectionedResponse -from client.models.set_comment_text200_response import SetCommentText200Response +from client.models.set_comment_approved_response import SetCommentApprovedResponse +from client.models.set_comment_text_params import SetCommentTextParams +from client.models.set_comment_text_response import SetCommentTextResponse from client.models.set_comment_text_result import SetCommentTextResult +from client.models.set_user_trust_factor_response import SetUserTrustFactorResponse from client.models.size_preset import SizePreset from client.models.sort_directions import SortDirections from client.models.spam_rule import SpamRule from client.models.tos_config import TOSConfig +from client.models.tenant_badge import TenantBadge from client.models.tenant_hash_tag import TenantHashTag from client.models.tenant_package import TenantPackage -from client.models.un_block_comment_public200_response import UnBlockCommentPublic200Response from client.models.un_block_from_comment_params import UnBlockFromCommentParams from client.models.unblock_success import UnblockSuccess from client.models.updatable_comment_params import UpdatableCommentParams @@ -350,9 +351,10 @@ from client.models.update_tenant_body import UpdateTenantBody from client.models.update_tenant_package_body import UpdateTenantPackageBody from client.models.update_tenant_user_body import UpdateTenantUserBody -from client.models.update_user_badge200_response import UpdateUserBadge200Response from client.models.update_user_badge_params import UpdateUserBadgeParams -from client.models.update_user_notification_status200_response import UpdateUserNotificationStatus200Response +from client.models.update_user_notification_comment_subscription_status_response import UpdateUserNotificationCommentSubscriptionStatusResponse +from client.models.update_user_notification_page_subscription_status_response import UpdateUserNotificationPageSubscriptionStatusResponse +from client.models.update_user_notification_status_response import UpdateUserNotificationStatusResponse from client.models.upload_image_response import UploadImageResponse from client.models.user import User from client.models.user_badge import UserBadge @@ -366,8 +368,8 @@ from client.models.user_search_section import UserSearchSection from client.models.user_search_section_result import UserSearchSectionResult from client.models.user_session_info import UserSessionInfo +from client.models.users_list_location import UsersListLocation from client.models.vote_body_params import VoteBodyParams -from client.models.vote_comment200_response import VoteComment200Response from client.models.vote_delete_response import VoteDeleteResponse from client.models.vote_response import VoteResponse from client.models.vote_response_status import VoteResponseStatus diff --git a/client/models/add_domain_config200_response.py b/client/models/add_domain_config200_response.py deleted file mode 100644 index b9e8ae0..0000000 --- a/client/models/add_domain_config200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.add_domain_config200_response_any_of import AddDomainConfig200ResponseAnyOf -from client.models.get_domain_configs200_response_any_of1 import GetDomainConfigs200ResponseAnyOf1 -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -ADDDOMAINCONFIG200RESPONSE_ANY_OF_SCHEMAS = ["AddDomainConfig200ResponseAnyOf", "GetDomainConfigs200ResponseAnyOf1"] - -class AddDomainConfig200Response(BaseModel): - """ - AddDomainConfig200Response - """ - - # data type: GetDomainConfigs200ResponseAnyOf1 - anyof_schema_1_validator: Optional[GetDomainConfigs200ResponseAnyOf1] = None - # data type: AddDomainConfig200ResponseAnyOf - anyof_schema_2_validator: Optional[AddDomainConfig200ResponseAnyOf] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "AddDomainConfig200ResponseAnyOf", "GetDomainConfigs200ResponseAnyOf1" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = AddDomainConfig200Response.model_construct() - error_messages = [] - # validate data type: GetDomainConfigs200ResponseAnyOf1 - if not isinstance(v, GetDomainConfigs200ResponseAnyOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigs200ResponseAnyOf1`") - else: - return v - - # validate data type: AddDomainConfig200ResponseAnyOf - if not isinstance(v, AddDomainConfig200ResponseAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `AddDomainConfig200ResponseAnyOf`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in AddDomainConfig200Response with anyOf schemas: AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetDomainConfigs200ResponseAnyOf1] = None - try: - instance.actual_instance = GetDomainConfigs200ResponseAnyOf1.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[AddDomainConfig200ResponseAnyOf] = None - try: - instance.actual_instance = AddDomainConfig200ResponseAnyOf.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into AddDomainConfig200Response with anyOf schemas: AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_email_template_definitions200_response.py b/client/models/add_domain_config_response.py similarity index 64% rename from client/models/get_email_template_definitions200_response.py rename to client/models/add_domain_config_response.py index 3c3afcb..473bb6c 100644 --- a/client/models/get_email_template_definitions200_response.py +++ b/client/models/add_domain_config_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.get_email_template_definitions_response import GetEmailTemplateDefinitionsResponse +from client.models.add_domain_config_response_any_of import AddDomainConfigResponseAnyOf +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETEMAILTEMPLATEDEFINITIONS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetEmailTemplateDefinitionsResponse"] +ADDDOMAINCONFIGRESPONSE_ANY_OF_SCHEMAS = ["AddDomainConfigResponseAnyOf", "GetDomainConfigsResponseAnyOf1"] -class GetEmailTemplateDefinitions200Response(BaseModel): +class AddDomainConfigResponse(BaseModel): """ - GetEmailTemplateDefinitions200Response + AddDomainConfigResponse """ - # data type: GetEmailTemplateDefinitionsResponse - anyof_schema_1_validator: Optional[GetEmailTemplateDefinitionsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: GetDomainConfigsResponseAnyOf1 + anyof_schema_1_validator: Optional[GetDomainConfigsResponseAnyOf1] = None + # data type: AddDomainConfigResponseAnyOf + anyof_schema_2_validator: Optional[AddDomainConfigResponseAnyOf] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetEmailTemplateDefinitionsResponse]] = None + actual_instance: Optional[Union[AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetEmailTemplateDefinitionsResponse" } + any_of_schemas: Set[str] = { "AddDomainConfigResponseAnyOf", "GetDomainConfigsResponseAnyOf1" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetEmailTemplateDefinitions200Response.model_construct() + instance = AddDomainConfigResponse.model_construct() error_messages = [] - # validate data type: GetEmailTemplateDefinitionsResponse - if not isinstance(v, GetEmailTemplateDefinitionsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetEmailTemplateDefinitionsResponse`") + # validate data type: GetDomainConfigsResponseAnyOf1 + if not isinstance(v, GetDomainConfigsResponseAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigsResponseAnyOf1`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: AddDomainConfigResponseAnyOf + if not isinstance(v, AddDomainConfigResponseAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddDomainConfigResponseAnyOf`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetEmailTemplateDefinitions200Response with anyOf schemas: APIError, GetEmailTemplateDefinitionsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in AddDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[GetEmailTemplateDefinitionsResponse] = None + # anyof_schema_1_validator: Optional[GetDomainConfigsResponseAnyOf1] = None try: - instance.actual_instance = GetEmailTemplateDefinitionsResponse.from_json(json_str) + instance.actual_instance = GetDomainConfigsResponseAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[AddDomainConfigResponseAnyOf] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = AddDomainConfigResponseAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetEmailTemplateDefinitions200Response with anyOf schemas: APIError, GetEmailTemplateDefinitionsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into AddDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetEmailTemplateDefinitionsResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/add_domain_config200_response_any_of.py b/client/models/add_domain_config_response_any_of.py similarity index 91% rename from client/models/add_domain_config200_response_any_of.py rename to client/models/add_domain_config_response_any_of.py index db797c5..490f401 100644 --- a/client/models/add_domain_config200_response_any_of.py +++ b/client/models/add_domain_config_response_any_of.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class AddDomainConfig200ResponseAnyOf(BaseModel): +class AddDomainConfigResponseAnyOf(BaseModel): """ - AddDomainConfig200ResponseAnyOf + AddDomainConfigResponseAnyOf """ # noqa: E501 configuration: Optional[Any] status: Optional[Any] @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of AddDomainConfig200ResponseAnyOf from a JSON string""" + """Create an instance of AddDomainConfigResponseAnyOf from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -83,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of AddDomainConfig200ResponseAnyOf from a dict""" + """Create an instance of AddDomainConfigResponseAnyOf from a dict""" if obj is None: return None diff --git a/client/models/add_hash_tags_bulk200_response.py b/client/models/add_hash_tags_bulk200_response.py deleted file mode 100644 index b8a92be..0000000 --- a/client/models/add_hash_tags_bulk200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.bulk_create_hash_tags_response import BulkCreateHashTagsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -ADDHASHTAGSBULK200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "BulkCreateHashTagsResponse"] - -class AddHashTagsBulk200Response(BaseModel): - """ - AddHashTagsBulk200Response - """ - - # data type: BulkCreateHashTagsResponse - anyof_schema_1_validator: Optional[BulkCreateHashTagsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, BulkCreateHashTagsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "BulkCreateHashTagsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = AddHashTagsBulk200Response.model_construct() - error_messages = [] - # validate data type: BulkCreateHashTagsResponse - if not isinstance(v, BulkCreateHashTagsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `BulkCreateHashTagsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in AddHashTagsBulk200Response with anyOf schemas: APIError, BulkCreateHashTagsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[BulkCreateHashTagsResponse] = None - try: - instance.actual_instance = BulkCreateHashTagsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into AddHashTagsBulk200Response with anyOf schemas: APIError, BulkCreateHashTagsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, BulkCreateHashTagsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/adjust_comment_votes_params.py b/client/models/adjust_comment_votes_params.py new file mode 100644 index 0000000..2213d97 --- /dev/null +++ b/client/models/adjust_comment_votes_params.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class AdjustCommentVotesParams(BaseModel): + """ + AdjustCommentVotesParams + """ # noqa: E501 + adjust_vote_amount: Union[StrictFloat, StrictInt] = Field(alias="adjustVoteAmount") + __properties: ClassVar[List[str]] = ["adjustVoteAmount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdjustCommentVotesParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdjustCommentVotesParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "adjustVoteAmount": obj.get("adjustVoteAmount") + }) + return _obj + + diff --git a/client/models/adjust_votes_response.py b/client/models/adjust_votes_response.py new file mode 100644 index 0000000..c95d522 --- /dev/null +++ b/client/models/adjust_votes_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class AdjustVotesResponse(BaseModel): + """ + AdjustVotesResponse + """ # noqa: E501 + status: StrictStr + new_comment_votes: StrictInt = Field(alias="newCommentVotes") + __properties: ClassVar[List[str]] = ["status", "newCommentVotes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AdjustVotesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AdjustVotesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "newCommentVotes": obj.get("newCommentVotes") + }) + return _obj + + diff --git a/client/models/aggregate_question_results200_response.py b/client/models/aggregate_question_results200_response.py deleted file mode 100644 index 942adbb..0000000 --- a/client/models/aggregate_question_results200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.aggregate_question_results_response import AggregateQuestionResultsResponse -from client.models.api_error import APIError -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -AGGREGATEQUESTIONRESULTS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "AggregateQuestionResultsResponse"] - -class AggregateQuestionResults200Response(BaseModel): - """ - AggregateQuestionResults200Response - """ - - # data type: AggregateQuestionResultsResponse - anyof_schema_1_validator: Optional[AggregateQuestionResultsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, AggregateQuestionResultsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "AggregateQuestionResultsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = AggregateQuestionResults200Response.model_construct() - error_messages = [] - # validate data type: AggregateQuestionResultsResponse - if not isinstance(v, AggregateQuestionResultsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `AggregateQuestionResultsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in AggregateQuestionResults200Response with anyOf schemas: APIError, AggregateQuestionResultsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[AggregateQuestionResultsResponse] = None - try: - instance.actual_instance = AggregateQuestionResultsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into AggregateQuestionResults200Response with anyOf schemas: APIError, AggregateQuestionResultsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, AggregateQuestionResultsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_audit_logs200_response.py b/client/models/aggregate_response.py similarity index 68% rename from client/models/get_audit_logs200_response.py rename to client/models/aggregate_response.py index 38ae4f5..a8f528e 100644 --- a/client/models/get_audit_logs200_response.py +++ b/client/models/aggregate_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.get_audit_logs_response import GetAuditLogsResponse +from client.models.aggregation_api_error import AggregationAPIError +from client.models.aggregation_response import AggregationResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETAUDITLOGS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetAuditLogsResponse"] +AGGREGATERESPONSE_ANY_OF_SCHEMAS = ["AggregationAPIError", "AggregationResponse"] -class GetAuditLogs200Response(BaseModel): +class AggregateResponse(BaseModel): """ - GetAuditLogs200Response + AggregateResponse """ - # data type: GetAuditLogsResponse - anyof_schema_1_validator: Optional[GetAuditLogsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: AggregationResponse + anyof_schema_1_validator: Optional[AggregationResponse] = None + # data type: AggregationAPIError + anyof_schema_2_validator: Optional[AggregationAPIError] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetAuditLogsResponse]] = None + actual_instance: Optional[Union[AggregationAPIError, AggregationResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetAuditLogsResponse" } + any_of_schemas: Set[str] = { "AggregationAPIError", "AggregationResponse" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetAuditLogs200Response.model_construct() + instance = AggregateResponse.model_construct() error_messages = [] - # validate data type: GetAuditLogsResponse - if not isinstance(v, GetAuditLogsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetAuditLogsResponse`") + # validate data type: AggregationResponse + if not isinstance(v, AggregationResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `AggregationResponse`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: AggregationAPIError + if not isinstance(v, AggregationAPIError): + error_messages.append(f"Error! Input type `{type(v)}` is not `AggregationAPIError`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetAuditLogs200Response with anyOf schemas: APIError, GetAuditLogsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in AggregateResponse with anyOf schemas: AggregationAPIError, AggregationResponse. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[GetAuditLogsResponse] = None + # anyof_schema_1_validator: Optional[AggregationResponse] = None try: - instance.actual_instance = GetAuditLogsResponse.from_json(json_str) + instance.actual_instance = AggregationResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[AggregationAPIError] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = AggregationAPIError.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetAuditLogs200Response with anyOf schemas: APIError, GetAuditLogsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into AggregateResponse with anyOf schemas: AggregationAPIError, AggregationResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetAuditLogsResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AggregationAPIError, AggregationResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/aggregation_api_error.py b/client/models/aggregation_api_error.py new file mode 100644 index 0000000..910d6c8 --- /dev/null +++ b/client/models/aggregation_api_error.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class AggregationAPIError(BaseModel): + """ + AggregationAPIError + """ # noqa: E501 + status: APIStatus + reason: StrictStr + code: StrictStr + valid_resource_names: Optional[List[StrictStr]] = Field(default=None, alias="validResourceNames") + __properties: ClassVar[List[str]] = ["status", "reason", "code", "validResourceNames"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AggregationAPIError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AggregationAPIError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "reason": obj.get("reason"), + "code": obj.get("code"), + "validResourceNames": obj.get("validResourceNames") + }) + return _obj + + diff --git a/client/models/api_ban_user_change_log.py b/client/models/api_ban_user_change_log.py new file mode 100644 index 0000000..7b7433b --- /dev/null +++ b/client/models/api_ban_user_change_log.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_ban_user_changed_values import APIBanUserChangedValues +from client.models.api_banned_user import APIBannedUser +from typing import Optional, Set +from typing_extensions import Self + +class APIBanUserChangeLog(BaseModel): + """ + APIBanUserChangeLog + """ # noqa: E501 + created_banned_user_id: Optional[StrictStr] = Field(default=None, alias="createdBannedUserId") + updated_banned_user_id: Optional[StrictStr] = Field(default=None, alias="updatedBannedUserId") + deleted_banned_users: Optional[List[APIBannedUser]] = Field(default=None, alias="deletedBannedUsers") + changed_values_before: Optional[APIBanUserChangedValues] = Field(default=None, alias="changedValuesBefore") + __properties: ClassVar[List[str]] = ["createdBannedUserId", "updatedBannedUserId", "deletedBannedUsers", "changedValuesBefore"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of APIBanUserChangeLog from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in deleted_banned_users (list) + _items = [] + if self.deleted_banned_users: + for _item_deleted_banned_users in self.deleted_banned_users: + if _item_deleted_banned_users: + _items.append(_item_deleted_banned_users.to_dict()) + _dict['deletedBannedUsers'] = _items + # override the default output from pydantic by calling `to_dict()` of changed_values_before + if self.changed_values_before: + _dict['changedValuesBefore'] = self.changed_values_before.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of APIBanUserChangeLog from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "createdBannedUserId": obj.get("createdBannedUserId"), + "updatedBannedUserId": obj.get("updatedBannedUserId"), + "deletedBannedUsers": [APIBannedUser.from_dict(_item) for _item in obj["deletedBannedUsers"]] if obj.get("deletedBannedUsers") is not None else None, + "changedValuesBefore": APIBanUserChangedValues.from_dict(obj["changedValuesBefore"]) if obj.get("changedValuesBefore") is not None else None + }) + return _obj + + diff --git a/client/models/api_ban_user_changed_values.py b/client/models/api_ban_user_changed_values.py new file mode 100644 index 0000000..5e4336b --- /dev/null +++ b/client/models/api_ban_user_changed_values.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class APIBanUserChangedValues(BaseModel): + """ + APIBanUserChangedValues + """ # noqa: E501 + id: Optional[StrictStr] = Field(default=None, alias="_id") + tenant_id: Optional[StrictStr] = Field(default=None, alias="tenantId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + email: Optional[StrictStr] = None + username: Optional[StrictStr] = None + ip_hash: Optional[StrictStr] = Field(default=None, alias="ipHash") + created_at: Optional[datetime] = Field(default=None, alias="createdAt") + banned_by_user_id: Optional[StrictStr] = Field(default=None, alias="bannedByUserId") + banned_comment_text: Optional[StrictStr] = Field(default=None, alias="bannedCommentText") + ban_type: Optional[StrictStr] = Field(default=None, alias="banType") + banned_until: Optional[datetime] = Field(default=None, alias="bannedUntil") + has_email_wildcard: Optional[StrictBool] = Field(default=None, alias="hasEmailWildcard") + ban_reason: Optional[StrictStr] = Field(default=None, alias="banReason") + __properties: ClassVar[List[str]] = ["_id", "tenantId", "userId", "email", "username", "ipHash", "createdAt", "bannedByUserId", "bannedCommentText", "banType", "bannedUntil", "hasEmailWildcard", "banReason"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of APIBanUserChangedValues from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if user_id (nullable) is None + # and model_fields_set contains the field + if self.user_id is None and "user_id" in self.model_fields_set: + _dict['userId'] = None + + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if username (nullable) is None + # and model_fields_set contains the field + if self.username is None and "username" in self.model_fields_set: + _dict['username'] = None + + # set to None if ip_hash (nullable) is None + # and model_fields_set contains the field + if self.ip_hash is None and "ip_hash" in self.model_fields_set: + _dict['ipHash'] = None + + # set to None if banned_until (nullable) is None + # and model_fields_set contains the field + if self.banned_until is None and "banned_until" in self.model_fields_set: + _dict['bannedUntil'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of APIBanUserChangedValues from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_id": obj.get("_id"), + "tenantId": obj.get("tenantId"), + "userId": obj.get("userId"), + "email": obj.get("email"), + "username": obj.get("username"), + "ipHash": obj.get("ipHash"), + "createdAt": obj.get("createdAt"), + "bannedByUserId": obj.get("bannedByUserId"), + "bannedCommentText": obj.get("bannedCommentText"), + "banType": obj.get("banType"), + "bannedUntil": obj.get("bannedUntil"), + "hasEmailWildcard": obj.get("hasEmailWildcard"), + "banReason": obj.get("banReason") + }) + return _obj + + diff --git a/client/models/api_banned_user.py b/client/models/api_banned_user.py new file mode 100644 index 0000000..3d2328c --- /dev/null +++ b/client/models/api_banned_user.py @@ -0,0 +1,137 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class APIBannedUser(BaseModel): + """ + APIBannedUser + """ # noqa: E501 + id: StrictStr = Field(alias="_id") + tenant_id: StrictStr = Field(alias="tenantId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + email: Optional[StrictStr] = None + username: Optional[StrictStr] = None + ip_hash: Optional[StrictStr] = Field(default=None, alias="ipHash") + created_at: datetime = Field(alias="createdAt") + banned_by_user_id: StrictStr = Field(alias="bannedByUserId") + banned_comment_text: StrictStr = Field(alias="bannedCommentText") + ban_type: StrictStr = Field(alias="banType") + banned_until: Optional[datetime] = Field(alias="bannedUntil") + has_email_wildcard: StrictBool = Field(alias="hasEmailWildcard") + ban_reason: Optional[StrictStr] = Field(default=None, alias="banReason") + __properties: ClassVar[List[str]] = ["_id", "tenantId", "userId", "email", "username", "ipHash", "createdAt", "bannedByUserId", "bannedCommentText", "banType", "bannedUntil", "hasEmailWildcard", "banReason"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of APIBannedUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if user_id (nullable) is None + # and model_fields_set contains the field + if self.user_id is None and "user_id" in self.model_fields_set: + _dict['userId'] = None + + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if username (nullable) is None + # and model_fields_set contains the field + if self.username is None and "username" in self.model_fields_set: + _dict['username'] = None + + # set to None if ip_hash (nullable) is None + # and model_fields_set contains the field + if self.ip_hash is None and "ip_hash" in self.model_fields_set: + _dict['ipHash'] = None + + # set to None if banned_until (nullable) is None + # and model_fields_set contains the field + if self.banned_until is None and "banned_until" in self.model_fields_set: + _dict['bannedUntil'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of APIBannedUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_id": obj.get("_id"), + "tenantId": obj.get("tenantId"), + "userId": obj.get("userId"), + "email": obj.get("email"), + "username": obj.get("username"), + "ipHash": obj.get("ipHash"), + "createdAt": obj.get("createdAt"), + "bannedByUserId": obj.get("bannedByUserId"), + "bannedCommentText": obj.get("bannedCommentText"), + "banType": obj.get("banType"), + "bannedUntil": obj.get("bannedUntil"), + "hasEmailWildcard": obj.get("hasEmailWildcard"), + "banReason": obj.get("banReason") + }) + return _obj + + diff --git a/client/models/api_banned_user_with_multi_match_info.py b/client/models/api_banned_user_with_multi_match_info.py new file mode 100644 index 0000000..e90c36e --- /dev/null +++ b/client/models/api_banned_user_with_multi_match_info.py @@ -0,0 +1,132 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.banned_user_match import BannedUserMatch +from typing import Optional, Set +from typing_extensions import Self + +class APIBannedUserWithMultiMatchInfo(BaseModel): + """ + APIBannedUserWithMultiMatchInfo + """ # noqa: E501 + id: StrictStr = Field(alias="_id") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + ban_type: StrictStr = Field(alias="banType") + email: Optional[StrictStr] = None + ip_hash: Optional[StrictStr] = Field(default=None, alias="ipHash") + banned_until: Optional[datetime] = Field(alias="bannedUntil") + has_email_wildcard: StrictBool = Field(alias="hasEmailWildcard") + ban_reason: Optional[StrictStr] = Field(default=None, alias="banReason") + matches: List[BannedUserMatch] + __properties: ClassVar[List[str]] = ["_id", "userId", "banType", "email", "ipHash", "bannedUntil", "hasEmailWildcard", "banReason", "matches"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of APIBannedUserWithMultiMatchInfo from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in matches (list) + _items = [] + if self.matches: + for _item_matches in self.matches: + if _item_matches: + _items.append(_item_matches.to_dict()) + _dict['matches'] = _items + # set to None if user_id (nullable) is None + # and model_fields_set contains the field + if self.user_id is None and "user_id" in self.model_fields_set: + _dict['userId'] = None + + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if ip_hash (nullable) is None + # and model_fields_set contains the field + if self.ip_hash is None and "ip_hash" in self.model_fields_set: + _dict['ipHash'] = None + + # set to None if banned_until (nullable) is None + # and model_fields_set contains the field + if self.banned_until is None and "banned_until" in self.model_fields_set: + _dict['bannedUntil'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of APIBannedUserWithMultiMatchInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_id": obj.get("_id"), + "userId": obj.get("userId"), + "banType": obj.get("banType"), + "email": obj.get("email"), + "ipHash": obj.get("ipHash"), + "bannedUntil": obj.get("bannedUntil"), + "hasEmailWildcard": obj.get("hasEmailWildcard"), + "banReason": obj.get("banReason"), + "matches": [BannedUserMatch.from_dict(_item) for _item in obj["matches"]] if obj.get("matches") is not None else None + }) + return _obj + + diff --git a/client/models/api_comment.py b/client/models/api_comment.py index 9d011da..65039c8 100644 --- a/client/models/api_comment.py +++ b/client/models/api_comment.py @@ -31,7 +31,7 @@ class APIComment(BaseModel): """ APIComment """ # noqa: E501 - id: StrictStr = Field(alias="_id") + id: StrictStr ai_determined_spam: Optional[StrictBool] = Field(default=None, alias="aiDeterminedSpam") anon_user_id: Optional[StrictStr] = Field(default=None, alias="anonUserId") approved: StrictBool @@ -84,7 +84,7 @@ class APIComment(BaseModel): votes: Optional[StrictInt] = None votes_down: Optional[StrictInt] = Field(default=None, alias="votesDown") votes_up: Optional[StrictInt] = Field(default=None, alias="votesUp") - __properties: ClassVar[List[str]] = ["_id", "aiDeterminedSpam", "anonUserId", "approved", "avatarSrc", "badges", "comment", "commentHTML", "commenterEmail", "commenterLink", "commenterName", "date", "displayLabel", "domain", "externalId", "externalParentId", "expireAt", "feedbackIds", "flagCount", "fromProductId", "hasCode", "hasImages", "hasLinks", "hashTags", "isByAdmin", "isByModerator", "isDeleted", "isDeletedUser", "isPinned", "isLocked", "isSpam", "localDateHours", "localDateString", "locale", "mentions", "meta", "moderationGroupIds", "notificationSentForParent", "notificationSentForParentTenant", "pageTitle", "parentId", "rating", "reviewed", "tenantId", "url", "urlId", "urlIdRaw", "userId", "verified", "verifiedDate", "votes", "votesDown", "votesUp"] + __properties: ClassVar[List[str]] = ["id", "aiDeterminedSpam", "anonUserId", "approved", "avatarSrc", "badges", "comment", "commentHTML", "commenterEmail", "commenterLink", "commenterName", "date", "displayLabel", "domain", "externalId", "externalParentId", "expireAt", "feedbackIds", "flagCount", "fromProductId", "hasCode", "hasImages", "hasLinks", "hashTags", "isByAdmin", "isByModerator", "isDeleted", "isDeletedUser", "isPinned", "isLocked", "isSpam", "localDateHours", "localDateString", "locale", "mentions", "meta", "moderationGroupIds", "notificationSentForParent", "notificationSentForParentTenant", "pageTitle", "parentId", "rating", "reviewed", "tenantId", "url", "urlId", "urlIdRaw", "userId", "verified", "verifiedDate", "votes", "votesDown", "votesUp"] model_config = ConfigDict( populate_by_name=True, @@ -291,7 +291,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "_id": obj.get("_id"), + "id": obj.get("id"), "aiDeterminedSpam": obj.get("aiDeterminedSpam"), "anonUserId": obj.get("anonUserId"), "approved": obj.get("approved"), diff --git a/client/models/api_comment_base.py b/client/models/api_comment_base.py index c997a37..247fa52 100644 --- a/client/models/api_comment_base.py +++ b/client/models/api_comment_base.py @@ -31,7 +31,7 @@ class APICommentBase(BaseModel): """ APICommentBase """ # noqa: E501 - id: StrictStr = Field(alias="_id") + id: StrictStr ai_determined_spam: Optional[StrictBool] = Field(default=None, alias="aiDeterminedSpam") anon_user_id: Optional[StrictStr] = Field(default=None, alias="anonUserId") approved: StrictBool @@ -84,7 +84,7 @@ class APICommentBase(BaseModel): votes: Optional[StrictInt] = None votes_down: Optional[StrictInt] = Field(default=None, alias="votesDown") votes_up: Optional[StrictInt] = Field(default=None, alias="votesUp") - __properties: ClassVar[List[str]] = ["_id", "aiDeterminedSpam", "anonUserId", "approved", "avatarSrc", "badges", "comment", "commentHTML", "commenterEmail", "commenterLink", "commenterName", "date", "displayLabel", "domain", "externalId", "externalParentId", "expireAt", "feedbackIds", "flagCount", "fromProductId", "hasCode", "hasImages", "hasLinks", "hashTags", "isByAdmin", "isByModerator", "isDeleted", "isDeletedUser", "isPinned", "isLocked", "isSpam", "localDateHours", "localDateString", "locale", "mentions", "meta", "moderationGroupIds", "notificationSentForParent", "notificationSentForParentTenant", "pageTitle", "parentId", "rating", "reviewed", "tenantId", "url", "urlId", "urlIdRaw", "userId", "verified", "verifiedDate", "votes", "votesDown", "votesUp"] + __properties: ClassVar[List[str]] = ["id", "aiDeterminedSpam", "anonUserId", "approved", "avatarSrc", "badges", "comment", "commentHTML", "commenterEmail", "commenterLink", "commenterName", "date", "displayLabel", "domain", "externalId", "externalParentId", "expireAt", "feedbackIds", "flagCount", "fromProductId", "hasCode", "hasImages", "hasLinks", "hashTags", "isByAdmin", "isByModerator", "isDeleted", "isDeletedUser", "isPinned", "isLocked", "isSpam", "localDateHours", "localDateString", "locale", "mentions", "meta", "moderationGroupIds", "notificationSentForParent", "notificationSentForParentTenant", "pageTitle", "parentId", "rating", "reviewed", "tenantId", "url", "urlId", "urlIdRaw", "userId", "verified", "verifiedDate", "votes", "votesDown", "votesUp"] model_config = ConfigDict( populate_by_name=True, @@ -291,7 +291,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "_id": obj.get("_id"), + "id": obj.get("id"), "aiDeterminedSpam": obj.get("aiDeterminedSpam"), "anonUserId": obj.get("anonUserId"), "approved": obj.get("approved"), diff --git a/client/models/api_comment_common_banned_user.py b/client/models/api_comment_common_banned_user.py new file mode 100644 index 0000000..7bd00b1 --- /dev/null +++ b/client/models/api_comment_common_banned_user.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class APICommentCommonBannedUser(BaseModel): + """ + APICommentCommonBannedUser + """ # noqa: E501 + id: StrictStr = Field(alias="_id") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + ban_type: StrictStr = Field(alias="banType") + email: Optional[StrictStr] = None + ip_hash: Optional[StrictStr] = Field(default=None, alias="ipHash") + banned_until: Optional[datetime] = Field(alias="bannedUntil") + has_email_wildcard: StrictBool = Field(alias="hasEmailWildcard") + ban_reason: Optional[StrictStr] = Field(default=None, alias="banReason") + __properties: ClassVar[List[str]] = ["_id", "userId", "banType", "email", "ipHash", "bannedUntil", "hasEmailWildcard", "banReason"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of APICommentCommonBannedUser from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if user_id (nullable) is None + # and model_fields_set contains the field + if self.user_id is None and "user_id" in self.model_fields_set: + _dict['userId'] = None + + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if ip_hash (nullable) is None + # and model_fields_set contains the field + if self.ip_hash is None and "ip_hash" in self.model_fields_set: + _dict['ipHash'] = None + + # set to None if banned_until (nullable) is None + # and model_fields_set contains the field + if self.banned_until is None and "banned_until" in self.model_fields_set: + _dict['bannedUntil'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of APICommentCommonBannedUser from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_id": obj.get("_id"), + "userId": obj.get("userId"), + "banType": obj.get("banType"), + "email": obj.get("email"), + "ipHash": obj.get("ipHash"), + "bannedUntil": obj.get("bannedUntil"), + "hasEmailWildcard": obj.get("hasEmailWildcard"), + "banReason": obj.get("banReason") + }) + return _obj + + diff --git a/client/models/api_moderate_get_user_ban_preferences_response.py b/client/models/api_moderate_get_user_ban_preferences_response.py new file mode 100644 index 0000000..aa3faeb --- /dev/null +++ b/client/models/api_moderate_get_user_ban_preferences_response.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_moderate_user_ban_preferences import APIModerateUserBanPreferences +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class APIModerateGetUserBanPreferencesResponse(BaseModel): + """ + APIModerateGetUserBanPreferencesResponse + """ # noqa: E501 + preferences: Optional[APIModerateUserBanPreferences] + status: APIStatus + __properties: ClassVar[List[str]] = ["preferences", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of APIModerateGetUserBanPreferencesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of preferences + if self.preferences: + _dict['preferences'] = self.preferences.to_dict() + # set to None if preferences (nullable) is None + # and model_fields_set contains the field + if self.preferences is None and "preferences" in self.model_fields_set: + _dict['preferences'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of APIModerateGetUserBanPreferencesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "preferences": APIModerateUserBanPreferences.from_dict(obj["preferences"]) if obj.get("preferences") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/api_moderate_user_ban_preferences.py b/client/models/api_moderate_user_ban_preferences.py new file mode 100644 index 0000000..a4c2c36 --- /dev/null +++ b/client/models/api_moderate_user_ban_preferences.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class APIModerateUserBanPreferences(BaseModel): + """ + APIModerateUserBanPreferences + """ # noqa: E501 + should_ban_email: StrictBool = Field(alias="shouldBanEmail") + should_ban_by_ip: StrictBool = Field(alias="shouldBanByIP") + last_ban_type: StrictStr = Field(alias="lastBanType") + last_ban_duration: StrictStr = Field(alias="lastBanDuration") + __properties: ClassVar[List[str]] = ["shouldBanEmail", "shouldBanByIP", "lastBanType", "lastBanDuration"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of APIModerateUserBanPreferences from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of APIModerateUserBanPreferences from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "shouldBanEmail": obj.get("shouldBanEmail"), + "shouldBanByIP": obj.get("shouldBanByIP"), + "lastBanType": obj.get("lastBanType"), + "lastBanDuration": obj.get("lastBanDuration") + }) + return _obj + + diff --git a/client/models/save_comment_response.py b/client/models/api_save_comment_response.py similarity index 89% rename from client/models/save_comment_response.py rename to client/models/api_save_comment_response.py index 687235d..99e629e 100644 --- a/client/models/save_comment_response.py +++ b/client/models/api_save_comment_response.py @@ -19,18 +19,18 @@ from pydantic import BaseModel, ConfigDict, Field from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_comment import APIComment from client.models.api_status import APIStatus -from client.models.f_comment import FComment from client.models.user_session_info import UserSessionInfo from typing import Optional, Set from typing_extensions import Self -class SaveCommentResponse(BaseModel): +class APISaveCommentResponse(BaseModel): """ - SaveCommentResponse + APISaveCommentResponse """ # noqa: E501 status: APIStatus - comment: FComment + comment: APIComment user: Optional[UserSessionInfo] module_data: Optional[Dict[str, Any]] = Field(default=None, description="Construct a type with a set of properties K of type T", alias="moduleData") __properties: ClassVar[List[str]] = ["status", "comment", "user", "moduleData"] @@ -53,7 +53,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of SaveCommentResponse from a JSON string""" + """Create an instance of APISaveCommentResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -89,7 +89,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of SaveCommentResponse from a dict""" + """Create an instance of APISaveCommentResponse from a dict""" if obj is None: return None @@ -98,7 +98,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status"), - "comment": FComment.from_dict(obj["comment"]) if obj.get("comment") is not None else None, + "comment": APIComment.from_dict(obj["comment"]) if obj.get("comment") is not None else None, "user": UserSessionInfo.from_dict(obj["user"]) if obj.get("user") is not None else None, "moduleData": obj.get("moduleData") }) diff --git a/client/models/award_user_badge_response.py b/client/models/award_user_badge_response.py new file mode 100644 index 0000000..12721a2 --- /dev/null +++ b/client/models/award_user_badge_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from client.models.comment_user_badge_info import CommentUserBadgeInfo +from typing import Optional, Set +from typing_extensions import Self + +class AwardUserBadgeResponse(BaseModel): + """ + AwardUserBadgeResponse + """ # noqa: E501 + notes: Optional[List[StrictStr]] = None + badges: Optional[List[CommentUserBadgeInfo]] = None + status: APIStatus + __properties: ClassVar[List[str]] = ["notes", "badges", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AwardUserBadgeResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in badges (list) + _items = [] + if self.badges: + for _item_badges in self.badges: + if _item_badges: + _items.append(_item_badges.to_dict()) + _dict['badges'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AwardUserBadgeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "notes": obj.get("notes"), + "badges": [CommentUserBadgeInfo.from_dict(_item) for _item in obj["badges"]] if obj.get("badges") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/ban_user_from_comment_result.py b/client/models/ban_user_from_comment_result.py new file mode 100644 index 0000000..ecb5419 --- /dev/null +++ b/client/models/ban_user_from_comment_result.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_ban_user_change_log import APIBanUserChangeLog +from typing import Optional, Set +from typing_extensions import Self + +class BanUserFromCommentResult(BaseModel): + """ + BanUserFromCommentResult + """ # noqa: E501 + status: StrictStr + changelog: Optional[APIBanUserChangeLog] = None + code: Optional[StrictStr] = None + reason: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["status", "changelog", "code", "reason"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BanUserFromCommentResult from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of changelog + if self.changelog: + _dict['changelog'] = self.changelog.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BanUserFromCommentResult from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "changelog": APIBanUserChangeLog.from_dict(obj["changelog"]) if obj.get("changelog") is not None else None, + "code": obj.get("code"), + "reason": obj.get("reason") + }) + return _obj + + diff --git a/client/models/ban_user_undo_params.py b/client/models/ban_user_undo_params.py new file mode 100644 index 0000000..54ccf54 --- /dev/null +++ b/client/models/ban_user_undo_params.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_ban_user_change_log import APIBanUserChangeLog +from typing import Optional, Set +from typing_extensions import Self + +class BanUserUndoParams(BaseModel): + """ + BanUserUndoParams + """ # noqa: E501 + changelog: APIBanUserChangeLog + __properties: ClassVar[List[str]] = ["changelog"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BanUserUndoParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of changelog + if self.changelog: + _dict['changelog'] = self.changelog.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BanUserUndoParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "changelog": APIBanUserChangeLog.from_dict(obj["changelog"]) if obj.get("changelog") is not None else None + }) + return _obj + + diff --git a/client/models/banned_user_match.py b/client/models/banned_user_match.py new file mode 100644 index 0000000..ac5fcd9 --- /dev/null +++ b/client/models/banned_user_match.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from client.models.banned_user_match_matched_on_value import BannedUserMatchMatchedOnValue +from client.models.banned_user_match_type import BannedUserMatchType +from typing import Optional, Set +from typing_extensions import Self + +class BannedUserMatch(BaseModel): + """ + BannedUserMatch + """ # noqa: E501 + matched_on: BannedUserMatchType = Field(alias="matchedOn") + matched_on_value: Optional[BannedUserMatchMatchedOnValue] = Field(alias="matchedOnValue") + __properties: ClassVar[List[str]] = ["matchedOn", "matchedOnValue"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BannedUserMatch from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of matched_on_value + if self.matched_on_value: + _dict['matchedOnValue'] = self.matched_on_value.to_dict() + # set to None if matched_on_value (nullable) is None + # and model_fields_set contains the field + if self.matched_on_value is None and "matched_on_value" in self.model_fields_set: + _dict['matchedOnValue'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BannedUserMatch from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "matchedOn": obj.get("matchedOn"), + "matchedOnValue": BannedUserMatchMatchedOnValue.from_dict(obj["matchedOnValue"]) if obj.get("matchedOnValue") is not None else None + }) + return _obj + + diff --git a/client/models/get_feed_posts200_response.py b/client/models/banned_user_match_matched_on_value.py similarity index 61% rename from client/models/get_feed_posts200_response.py rename to client/models/banned_user_match_matched_on_value.py index 09dcdda..a5f86ee 100644 --- a/client/models/get_feed_posts200_response.py +++ b/client/models/banned_user_match_matched_on_value.py @@ -17,30 +17,28 @@ import json import pprint import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_feed_posts_response import GetFeedPostsResponse +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Optional, Union from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETFEEDPOSTS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetFeedPostsResponse"] +BANNEDUSERMATCHMATCHEDONVALUE_ANY_OF_SCHEMAS = ["float", "str"] -class GetFeedPosts200Response(BaseModel): +class BannedUserMatchMatchedOnValue(BaseModel): """ - GetFeedPosts200Response + BannedUserMatchMatchedOnValue """ - # data type: GetFeedPostsResponse - anyof_schema_1_validator: Optional[GetFeedPostsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetFeedPostsResponse]] = None + actual_instance: Optional[Union[float, str]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetFeedPostsResponse" } + any_of_schemas: Set[str] = { "float", "str" } model_config = { "validate_assignment": True, @@ -59,23 +57,26 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetFeedPosts200Response.model_construct() - error_messages = [] - # validate data type: GetFeedPostsResponse - if not isinstance(v, GetFeedPostsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetFeedPostsResponse`") - else: + if v is None: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: + instance = BannedUserMatchMatchedOnValue.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v return v - + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetFeedPosts200Response with anyOf schemas: APIError, GetFeedPostsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BannedUserMatchMatchedOnValue with anyOf schemas: float, str. Details: " + ", ".join(error_messages)) else: return v @@ -87,23 +88,32 @@ def from_dict(cls, obj: Dict[str, Any]) -> Self: def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() + if json_str is None: + return instance + error_messages = [] - # anyof_schema_1_validator: Optional[GetFeedPostsResponse] = None + # deserialize data into str try: - instance.actual_instance = GetFeedPostsResponse.from_json(json_str) + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator return instance except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + error_messages.append(str(e)) + # deserialize data into float try: - instance.actual_instance = APIError.from_json(json_str) + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator return instance except (ValidationError, ValueError) as e: - error_messages.append(str(e)) + error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetFeedPosts200Response with anyOf schemas: APIError, GetFeedPostsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BannedUserMatchMatchedOnValue with anyOf schemas: float, str. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +127,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetFeedPostsResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], float, str]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/banned_user_match_type.py b/client/models/banned_user_match_type.py new file mode 100644 index 0000000..027629e --- /dev/null +++ b/client/models/banned_user_match_type.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class BannedUserMatchType(str, Enum): + """ + BannedUserMatchType + """ + + """ + allowed enum values + """ + USERID = 'userId' + EMAIL = 'email' + EMAIL_MINUS_WILDCARD = 'email-wildcard' + IP = 'IP' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of BannedUserMatchType from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/client/models/block_from_comment_public200_response.py b/client/models/block_from_comment_public200_response.py deleted file mode 100644 index 76c231e..0000000 --- a/client/models/block_from_comment_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.block_success import BlockSuccess -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -BLOCKFROMCOMMENTPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "BlockSuccess"] - -class BlockFromCommentPublic200Response(BaseModel): - """ - BlockFromCommentPublic200Response - """ - - # data type: BlockSuccess - anyof_schema_1_validator: Optional[BlockSuccess] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, BlockSuccess]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "BlockSuccess" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = BlockFromCommentPublic200Response.model_construct() - error_messages = [] - # validate data type: BlockSuccess - if not isinstance(v, BlockSuccess): - error_messages.append(f"Error! Input type `{type(v)}` is not `BlockSuccess`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in BlockFromCommentPublic200Response with anyOf schemas: APIError, BlockSuccess. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[BlockSuccess] = None - try: - instance.actual_instance = BlockSuccess.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into BlockFromCommentPublic200Response with anyOf schemas: APIError, BlockSuccess. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, BlockSuccess]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/build_moderation_filter_params.py b/client/models/build_moderation_filter_params.py new file mode 100644 index 0000000..d50f2e1 --- /dev/null +++ b/client/models/build_moderation_filter_params.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class BuildModerationFilterParams(BaseModel): + """ + BuildModerationFilterParams + """ # noqa: E501 + user_id: StrictStr = Field(alias="userId") + tenant_id: StrictStr = Field(alias="tenantId") + filters: Optional[StrictStr] = None + search_filters: Optional[StrictStr] = Field(default=None, alias="searchFilters") + text_search: Optional[StrictStr] = Field(default=None, alias="textSearch") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["userId", "tenantId", "filters", "searchFilters", "textSearch"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BuildModerationFilterParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BuildModerationFilterParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userId": obj.get("userId"), + "tenantId": obj.get("tenantId"), + "filters": obj.get("filters"), + "searchFilters": obj.get("searchFilters"), + "textSearch": obj.get("textSearch") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/client/models/build_moderation_filter_response.py b/client/models/build_moderation_filter_response.py new file mode 100644 index 0000000..49a0b7d --- /dev/null +++ b/client/models/build_moderation_filter_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from client.models.moderation_filter import ModerationFilter +from typing import Optional, Set +from typing_extensions import Self + +class BuildModerationFilterResponse(BaseModel): + """ + BuildModerationFilterResponse + """ # noqa: E501 + status: StrictStr + moderation_filter: ModerationFilter = Field(alias="moderationFilter") + __properties: ClassVar[List[str]] = ["status", "moderationFilter"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BuildModerationFilterResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of moderation_filter + if self.moderation_filter: + _dict['moderationFilter'] = self.moderation_filter.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BuildModerationFilterResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "moderationFilter": ModerationFilter.from_dict(obj["moderationFilter"]) if obj.get("moderationFilter") is not None else None + }) + return _obj + + diff --git a/client/models/bulk_create_hash_tags_response.py b/client/models/bulk_create_hash_tags_response.py index 9523c3c..7b48d64 100644 --- a/client/models/bulk_create_hash_tags_response.py +++ b/client/models/bulk_create_hash_tags_response.py @@ -19,8 +19,8 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List -from client.models.add_hash_tag200_response import AddHashTag200Response from client.models.api_status import APIStatus +from client.models.bulk_create_hash_tags_response_results_inner import BulkCreateHashTagsResponseResultsInner from typing import Optional, Set from typing_extensions import Self @@ -29,7 +29,7 @@ class BulkCreateHashTagsResponse(BaseModel): BulkCreateHashTagsResponse """ # noqa: E501 status: APIStatus - results: List[AddHashTag200Response] + results: List[BulkCreateHashTagsResponseResultsInner] __properties: ClassVar[List[str]] = ["status", "results"] model_config = ConfigDict( @@ -91,7 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "status": obj.get("status"), - "results": [AddHashTag200Response.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None + "results": [BulkCreateHashTagsResponseResultsInner.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None }) return _obj diff --git a/client/models/add_hash_tag200_response.py b/client/models/bulk_create_hash_tags_response_results_inner.py similarity index 88% rename from client/models/add_hash_tag200_response.py rename to client/models/bulk_create_hash_tags_response_results_inner.py index ec96c75..7dc6a83 100644 --- a/client/models/add_hash_tag200_response.py +++ b/client/models/bulk_create_hash_tags_response_results_inner.py @@ -25,11 +25,11 @@ from typing_extensions import Literal, Self from pydantic import Field -ADDHASHTAG200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateHashTagResponse"] +BULKCREATEHASHTAGSRESPONSERESULTSINNER_ANY_OF_SCHEMAS = ["APIError", "CreateHashTagResponse"] -class AddHashTag200Response(BaseModel): +class BulkCreateHashTagsResponseResultsInner(BaseModel): """ - AddHashTag200Response + BulkCreateHashTagsResponseResultsInner """ # data type: CreateHashTagResponse @@ -59,7 +59,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = AddHashTag200Response.model_construct() + instance = BulkCreateHashTagsResponseResultsInner.model_construct() error_messages = [] # validate data type: CreateHashTagResponse if not isinstance(v, CreateHashTagResponse): @@ -75,7 +75,7 @@ def actual_instance_must_validate_anyof(cls, v): if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in AddHashTag200Response with anyOf schemas: APIError, CreateHashTagResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in BulkCreateHashTagsResponseResultsInner with anyOf schemas: APIError, CreateHashTagResponse. Details: " + ", ".join(error_messages)) else: return v @@ -103,7 +103,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into AddHashTag200Response with anyOf schemas: APIError, CreateHashTagResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into BulkCreateHashTagsResponseResultsInner with anyOf schemas: APIError, CreateHashTagResponse. Details: " + ", ".join(error_messages)) else: return instance diff --git a/client/models/bulk_pre_ban_params.py b/client/models/bulk_pre_ban_params.py new file mode 100644 index 0000000..c2af5c4 --- /dev/null +++ b/client/models/bulk_pre_ban_params.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class BulkPreBanParams(BaseModel): + """ + BulkPreBanParams + """ # noqa: E501 + comment_ids: List[StrictStr] = Field(alias="commentIds") + __properties: ClassVar[List[str]] = ["commentIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BulkPreBanParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BulkPreBanParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commentIds": obj.get("commentIds") + }) + return _obj + + diff --git a/client/models/bulk_pre_ban_summary.py b/client/models/bulk_pre_ban_summary.py new file mode 100644 index 0000000..e4e2853 --- /dev/null +++ b/client/models/bulk_pre_ban_summary.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class BulkPreBanSummary(BaseModel): + """ + BulkPreBanSummary + """ # noqa: E501 + status: StrictStr + total_related_comment_count: StrictInt = Field(alias="totalRelatedCommentCount") + email_domains: List[StrictStr] = Field(alias="emailDomains") + emails: List[StrictStr] + user_ids: List[StrictStr] = Field(alias="userIds") + ip_hashes: List[StrictStr] = Field(alias="ipHashes") + __properties: ClassVar[List[str]] = ["status", "totalRelatedCommentCount", "emailDomains", "emails", "userIds", "ipHashes"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of BulkPreBanSummary from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of BulkPreBanSummary from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "totalRelatedCommentCount": obj.get("totalRelatedCommentCount"), + "emailDomains": obj.get("emailDomains"), + "emails": obj.get("emails"), + "userIds": obj.get("userIds"), + "ipHashes": obj.get("ipHashes") + }) + return _obj + + diff --git a/client/models/change_ticket_state200_response.py b/client/models/change_ticket_state200_response.py deleted file mode 100644 index b913d83..0000000 --- a/client/models/change_ticket_state200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.change_ticket_state_response import ChangeTicketStateResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CHANGETICKETSTATE200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "ChangeTicketStateResponse"] - -class ChangeTicketState200Response(BaseModel): - """ - ChangeTicketState200Response - """ - - # data type: ChangeTicketStateResponse - anyof_schema_1_validator: Optional[ChangeTicketStateResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, ChangeTicketStateResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "ChangeTicketStateResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = ChangeTicketState200Response.model_construct() - error_messages = [] - # validate data type: ChangeTicketStateResponse - if not isinstance(v, ChangeTicketStateResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `ChangeTicketStateResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in ChangeTicketState200Response with anyOf schemas: APIError, ChangeTicketStateResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[ChangeTicketStateResponse] = None - try: - instance.actual_instance = ChangeTicketStateResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into ChangeTicketState200Response with anyOf schemas: APIError, ChangeTicketStateResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, ChangeTicketStateResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/checked_comments_for_blocked200_response.py b/client/models/checked_comments_for_blocked200_response.py deleted file mode 100644 index 5ade637..0000000 --- a/client/models/checked_comments_for_blocked200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.check_blocked_comments_response import CheckBlockedCommentsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CHECKEDCOMMENTSFORBLOCKED200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CheckBlockedCommentsResponse"] - -class CheckedCommentsForBlocked200Response(BaseModel): - """ - CheckedCommentsForBlocked200Response - """ - - # data type: CheckBlockedCommentsResponse - anyof_schema_1_validator: Optional[CheckBlockedCommentsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CheckBlockedCommentsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CheckBlockedCommentsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CheckedCommentsForBlocked200Response.model_construct() - error_messages = [] - # validate data type: CheckBlockedCommentsResponse - if not isinstance(v, CheckBlockedCommentsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CheckBlockedCommentsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CheckedCommentsForBlocked200Response with anyOf schemas: APIError, CheckBlockedCommentsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CheckBlockedCommentsResponse] = None - try: - instance.actual_instance = CheckBlockedCommentsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CheckedCommentsForBlocked200Response with anyOf schemas: APIError, CheckBlockedCommentsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CheckBlockedCommentsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/combine_comments_with_question_results200_response.py b/client/models/combine_comments_with_question_results200_response.py deleted file mode 100644 index b0bbf41..0000000 --- a/client/models/combine_comments_with_question_results200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.combine_question_results_with_comments_response import CombineQuestionResultsWithCommentsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -COMBINECOMMENTSWITHQUESTIONRESULTS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CombineQuestionResultsWithCommentsResponse"] - -class CombineCommentsWithQuestionResults200Response(BaseModel): - """ - CombineCommentsWithQuestionResults200Response - """ - - # data type: CombineQuestionResultsWithCommentsResponse - anyof_schema_1_validator: Optional[CombineQuestionResultsWithCommentsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CombineQuestionResultsWithCommentsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CombineQuestionResultsWithCommentsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CombineCommentsWithQuestionResults200Response.model_construct() - error_messages = [] - # validate data type: CombineQuestionResultsWithCommentsResponse - if not isinstance(v, CombineQuestionResultsWithCommentsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CombineQuestionResultsWithCommentsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CombineCommentsWithQuestionResults200Response with anyOf schemas: APIError, CombineQuestionResultsWithCommentsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CombineQuestionResultsWithCommentsResponse] = None - try: - instance.actual_instance = CombineQuestionResultsWithCommentsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CombineCommentsWithQuestionResults200Response with anyOf schemas: APIError, CombineQuestionResultsWithCommentsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CombineQuestionResultsWithCommentsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/comment_data.py b/client/models/comment_data.py index d1d32b1..33d4bc1 100644 --- a/client/models/comment_data.py +++ b/client/models/comment_data.py @@ -21,7 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from client.models.comment_user_hash_tag_info import CommentUserHashTagInfo from client.models.comment_user_mention_info import CommentUserMentionInfo -from client.models.record_string_string_or_number_value import RecordStringStringOrNumberValue +from client.models.gif_search_response_images_inner_inner import GifSearchResponseImagesInnerInner from typing import Optional, Set from typing_extensions import Self @@ -52,9 +52,10 @@ class CommentData(BaseModel): from_offline_restore: Optional[StrictBool] = Field(default=None, alias="fromOfflineRestore") autoplay_delay_ms: Optional[StrictInt] = Field(default=None, alias="autoplayDelayMS") feedback_ids: Optional[List[StrictStr]] = Field(default=None, alias="feedbackIds") - question_values: Optional[Dict[str, RecordStringStringOrNumberValue]] = Field(default=None, description="Construct a type with a set of properties K of type T", alias="questionValues") + question_values: Optional[Dict[str, GifSearchResponseImagesInnerInner]] = Field(default=None, description="Construct a type with a set of properties K of type T", alias="questionValues") tos: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["date", "localDateString", "localDateHours", "commenterName", "commenterEmail", "commenterLink", "comment", "productId", "userId", "avatarSrc", "parentId", "mentions", "hashTags", "pageTitle", "isFromMyAccountPage", "url", "urlId", "meta", "moderationGroupIds", "rating", "fromOfflineRestore", "autoplayDelayMS", "feedbackIds", "questionValues", "tos"] + bot_id: Optional[StrictStr] = Field(default=None, alias="botId") + __properties: ClassVar[List[str]] = ["date", "localDateString", "localDateHours", "commenterName", "commenterEmail", "commenterLink", "comment", "productId", "userId", "avatarSrc", "parentId", "mentions", "hashTags", "pageTitle", "isFromMyAccountPage", "url", "urlId", "meta", "moderationGroupIds", "rating", "fromOfflineRestore", "autoplayDelayMS", "feedbackIds", "questionValues", "tos", "botId"] model_config = ConfigDict( populate_by_name=True, @@ -177,12 +178,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "autoplayDelayMS": obj.get("autoplayDelayMS"), "feedbackIds": obj.get("feedbackIds"), "questionValues": dict( - (_k, RecordStringStringOrNumberValue.from_dict(_v)) + (_k, GifSearchResponseImagesInnerInner.from_dict(_v)) for _k, _v in obj["questionValues"].items() ) if obj.get("questionValues") is not None else None, - "tos": obj.get("tos") + "tos": obj.get("tos"), + "botId": obj.get("botId") }) return _obj diff --git a/client/models/comment_log_data.py b/client/models/comment_log_data.py index 8f73742..9e93f6c 100644 --- a/client/models/comment_log_data.py +++ b/client/models/comment_log_data.py @@ -45,6 +45,7 @@ class CommentLogData(BaseModel): engine_response: Optional[StrictStr] = Field(default=None, alias="engineResponse") engine_tokens: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="engineTokens") trust_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="trustFactor") + source: Optional[StrictStr] = None rule: Optional[SpamRule] = None user_id: Optional[StrictStr] = Field(default=None, alias="userId") subscribers: Optional[Union[StrictFloat, StrictInt]] = None @@ -76,7 +77,7 @@ class CommentLogData(BaseModel): invalid_locale: Optional[StrictStr] = Field(default=None, alias="invalidLocale") detected_locale: Optional[StrictStr] = Field(default=None, alias="detectedLocale") detected_language: Optional[StrictStr] = Field(default=None, alias="detectedLanguage") - __properties: ClassVar[List[str]] = ["clearContent", "isDeletedUser", "phrase", "badWord", "word", "locale", "tenantBadgeId", "badgeId", "wasLoggedIn", "foundUser", "verified", "engine", "engineResponse", "engineTokens", "trustFactor", "rule", "userId", "subscribers", "notificationCount", "votesBefore", "votesUpBefore", "votesDownBefore", "votesAfter", "votesUpAfter", "votesDownAfter", "repeatAction", "reason", "otherData", "spamBefore", "spamAfter", "permanentFlag", "approvedBefore", "approvedAfter", "reviewedBefore", "reviewedAfter", "textBefore", "textAfter", "expireBefore", "expireAfter", "flagCountBefore", "trustFactorBefore", "trustFactorAfter", "referencedCommentId", "invalidLocale", "detectedLocale", "detectedLanguage"] + __properties: ClassVar[List[str]] = ["clearContent", "isDeletedUser", "phrase", "badWord", "word", "locale", "tenantBadgeId", "badgeId", "wasLoggedIn", "foundUser", "verified", "engine", "engineResponse", "engineTokens", "trustFactor", "source", "rule", "userId", "subscribers", "notificationCount", "votesBefore", "votesUpBefore", "votesDownBefore", "votesAfter", "votesUpAfter", "votesDownAfter", "repeatAction", "reason", "otherData", "spamBefore", "spamAfter", "permanentFlag", "approvedBefore", "approvedAfter", "reviewedBefore", "reviewedAfter", "textBefore", "textAfter", "expireBefore", "expireAfter", "flagCountBefore", "trustFactorBefore", "trustFactorAfter", "referencedCommentId", "invalidLocale", "detectedLocale", "detectedLanguage"] @field_validator('permanent_flag') def permanent_flag_validate_enum(cls, value): @@ -207,6 +208,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "engineResponse": obj.get("engineResponse"), "engineTokens": obj.get("engineTokens"), "trustFactor": obj.get("trustFactor"), + "source": obj.get("source"), "rule": SpamRule.from_dict(obj["rule"]) if obj.get("rule") is not None else None, "userId": obj.get("userId"), "subscribers": obj.get("subscribers"), diff --git a/client/models/comments_by_ids_params.py b/client/models/comments_by_ids_params.py new file mode 100644 index 0000000..7b19136 --- /dev/null +++ b/client/models/comments_by_ids_params.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class CommentsByIdsParams(BaseModel): + """ + CommentsByIdsParams + """ # noqa: E501 + ids: List[StrictStr] + __properties: ClassVar[List[str]] = ["ids"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CommentsByIdsParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CommentsByIdsParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ids": obj.get("ids") + }) + return _obj + + diff --git a/client/models/create_comment_params.py b/client/models/create_comment_params.py index 4633649..50ddbba 100644 --- a/client/models/create_comment_params.py +++ b/client/models/create_comment_params.py @@ -21,7 +21,7 @@ from typing import Any, ClassVar, Dict, List, Optional, Union from client.models.comment_user_hash_tag_info import CommentUserHashTagInfo from client.models.comment_user_mention_info import CommentUserMentionInfo -from client.models.record_string_string_or_number_value import RecordStringStringOrNumberValue +from client.models.gif_search_response_images_inner_inner import GifSearchResponseImagesInnerInner from typing import Optional, Set from typing_extensions import Self @@ -52,8 +52,9 @@ class CreateCommentParams(BaseModel): from_offline_restore: Optional[StrictBool] = Field(default=None, alias="fromOfflineRestore") autoplay_delay_ms: Optional[StrictInt] = Field(default=None, alias="autoplayDelayMS") feedback_ids: Optional[List[StrictStr]] = Field(default=None, alias="feedbackIds") - question_values: Optional[Dict[str, RecordStringStringOrNumberValue]] = Field(default=None, description="Construct a type with a set of properties K of type T", alias="questionValues") + question_values: Optional[Dict[str, GifSearchResponseImagesInnerInner]] = Field(default=None, description="Construct a type with a set of properties K of type T", alias="questionValues") tos: Optional[StrictBool] = None + bot_id: Optional[StrictStr] = Field(default=None, alias="botId") approved: Optional[StrictBool] = None domain: Optional[StrictStr] = None ip: Optional[StrictStr] = None @@ -64,7 +65,7 @@ class CreateCommentParams(BaseModel): votes: Optional[StrictInt] = None votes_down: Optional[StrictInt] = Field(default=None, alias="votesDown") votes_up: Optional[StrictInt] = Field(default=None, alias="votesUp") - __properties: ClassVar[List[str]] = ["date", "localDateString", "localDateHours", "commenterName", "commenterEmail", "commenterLink", "comment", "productId", "userId", "avatarSrc", "parentId", "mentions", "hashTags", "pageTitle", "isFromMyAccountPage", "url", "urlId", "meta", "moderationGroupIds", "rating", "fromOfflineRestore", "autoplayDelayMS", "feedbackIds", "questionValues", "tos", "approved", "domain", "ip", "isPinned", "locale", "reviewed", "verified", "votes", "votesDown", "votesUp"] + __properties: ClassVar[List[str]] = ["date", "localDateString", "localDateHours", "commenterName", "commenterEmail", "commenterLink", "comment", "productId", "userId", "avatarSrc", "parentId", "mentions", "hashTags", "pageTitle", "isFromMyAccountPage", "url", "urlId", "meta", "moderationGroupIds", "rating", "fromOfflineRestore", "autoplayDelayMS", "feedbackIds", "questionValues", "tos", "botId", "approved", "domain", "ip", "isPinned", "locale", "reviewed", "verified", "votes", "votesDown", "votesUp"] model_config = ConfigDict( populate_by_name=True, @@ -187,12 +188,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "autoplayDelayMS": obj.get("autoplayDelayMS"), "feedbackIds": obj.get("feedbackIds"), "questionValues": dict( - (_k, RecordStringStringOrNumberValue.from_dict(_v)) + (_k, GifSearchResponseImagesInnerInner.from_dict(_v)) for _k, _v in obj["questionValues"].items() ) if obj.get("questionValues") is not None else None, "tos": obj.get("tos"), + "botId": obj.get("botId"), "approved": obj.get("approved"), "domain": obj.get("domain"), "ip": obj.get("ip"), diff --git a/client/models/create_comment_public200_response.py b/client/models/create_comment_public200_response.py deleted file mode 100644 index 7062a3f..0000000 --- a/client/models/create_comment_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.save_comments_response_with_presence import SaveCommentsResponseWithPresence -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATECOMMENTPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "SaveCommentsResponseWithPresence"] - -class CreateCommentPublic200Response(BaseModel): - """ - CreateCommentPublic200Response - """ - - # data type: SaveCommentsResponseWithPresence - anyof_schema_1_validator: Optional[SaveCommentsResponseWithPresence] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, SaveCommentsResponseWithPresence]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "SaveCommentsResponseWithPresence" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateCommentPublic200Response.model_construct() - error_messages = [] - # validate data type: SaveCommentsResponseWithPresence - if not isinstance(v, SaveCommentsResponseWithPresence): - error_messages.append(f"Error! Input type `{type(v)}` is not `SaveCommentsResponseWithPresence`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateCommentPublic200Response with anyOf schemas: APIError, SaveCommentsResponseWithPresence. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[SaveCommentsResponseWithPresence] = None - try: - instance.actual_instance = SaveCommentsResponseWithPresence.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateCommentPublic200Response with anyOf schemas: APIError, SaveCommentsResponseWithPresence. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, SaveCommentsResponseWithPresence]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_email_template200_response.py b/client/models/create_email_template200_response.py deleted file mode 100644 index f15d6f2..0000000 --- a/client/models/create_email_template200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_email_template_response import CreateEmailTemplateResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATEEMAILTEMPLATE200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateEmailTemplateResponse"] - -class CreateEmailTemplate200Response(BaseModel): - """ - CreateEmailTemplate200Response - """ - - # data type: CreateEmailTemplateResponse - anyof_schema_1_validator: Optional[CreateEmailTemplateResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateEmailTemplateResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateEmailTemplateResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateEmailTemplate200Response.model_construct() - error_messages = [] - # validate data type: CreateEmailTemplateResponse - if not isinstance(v, CreateEmailTemplateResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateEmailTemplateResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateEmailTemplate200Response with anyOf schemas: APIError, CreateEmailTemplateResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateEmailTemplateResponse] = None - try: - instance.actual_instance = CreateEmailTemplateResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateEmailTemplate200Response with anyOf schemas: APIError, CreateEmailTemplateResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateEmailTemplateResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_feed_post200_response.py b/client/models/create_feed_post200_response.py deleted file mode 100644 index cbc8ab2..0000000 --- a/client/models/create_feed_post200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_feed_posts_response import CreateFeedPostsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATEFEEDPOST200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateFeedPostsResponse"] - -class CreateFeedPost200Response(BaseModel): - """ - CreateFeedPost200Response - """ - - # data type: CreateFeedPostsResponse - anyof_schema_1_validator: Optional[CreateFeedPostsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateFeedPostsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateFeedPostsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateFeedPost200Response.model_construct() - error_messages = [] - # validate data type: CreateFeedPostsResponse - if not isinstance(v, CreateFeedPostsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateFeedPostsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateFeedPost200Response with anyOf schemas: APIError, CreateFeedPostsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateFeedPostsResponse] = None - try: - instance.actual_instance = CreateFeedPostsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateFeedPost200Response with anyOf schemas: APIError, CreateFeedPostsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateFeedPostsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_feed_post_public200_response.py b/client/models/create_feed_post_public200_response.py deleted file mode 100644 index 98f611b..0000000 --- a/client/models/create_feed_post_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_feed_post_response import CreateFeedPostResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATEFEEDPOSTPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateFeedPostResponse"] - -class CreateFeedPostPublic200Response(BaseModel): - """ - CreateFeedPostPublic200Response - """ - - # data type: CreateFeedPostResponse - anyof_schema_1_validator: Optional[CreateFeedPostResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateFeedPostResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateFeedPostResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateFeedPostPublic200Response.model_construct() - error_messages = [] - # validate data type: CreateFeedPostResponse - if not isinstance(v, CreateFeedPostResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateFeedPostResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateFeedPostPublic200Response with anyOf schemas: APIError, CreateFeedPostResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateFeedPostResponse] = None - try: - instance.actual_instance = CreateFeedPostResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateFeedPostPublic200Response with anyOf schemas: APIError, CreateFeedPostResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateFeedPostResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_moderator200_response.py b/client/models/create_moderator200_response.py deleted file mode 100644 index d72d113..0000000 --- a/client/models/create_moderator200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_moderator_response import CreateModeratorResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATEMODERATOR200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateModeratorResponse"] - -class CreateModerator200Response(BaseModel): - """ - CreateModerator200Response - """ - - # data type: CreateModeratorResponse - anyof_schema_1_validator: Optional[CreateModeratorResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateModeratorResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateModeratorResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateModerator200Response.model_construct() - error_messages = [] - # validate data type: CreateModeratorResponse - if not isinstance(v, CreateModeratorResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateModeratorResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateModerator200Response with anyOf schemas: APIError, CreateModeratorResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateModeratorResponse] = None - try: - instance.actual_instance = CreateModeratorResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateModerator200Response with anyOf schemas: APIError, CreateModeratorResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateModeratorResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_question_result200_response.py b/client/models/create_question_result200_response.py deleted file mode 100644 index 56f1412..0000000 --- a/client/models/create_question_result200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_question_result_response import CreateQuestionResultResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATEQUESTIONRESULT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateQuestionResultResponse"] - -class CreateQuestionResult200Response(BaseModel): - """ - CreateQuestionResult200Response - """ - - # data type: CreateQuestionResultResponse - anyof_schema_1_validator: Optional[CreateQuestionResultResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateQuestionResultResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateQuestionResultResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateQuestionResult200Response.model_construct() - error_messages = [] - # validate data type: CreateQuestionResultResponse - if not isinstance(v, CreateQuestionResultResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateQuestionResultResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateQuestionResult200Response with anyOf schemas: APIError, CreateQuestionResultResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateQuestionResultResponse] = None - try: - instance.actual_instance = CreateQuestionResultResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateQuestionResult200Response with anyOf schemas: APIError, CreateQuestionResultResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateQuestionResultResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_tenant200_response.py b/client/models/create_tenant200_response.py deleted file mode 100644 index 1997c3c..0000000 --- a/client/models/create_tenant200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_tenant_response import CreateTenantResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATETENANT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateTenantResponse"] - -class CreateTenant200Response(BaseModel): - """ - CreateTenant200Response - """ - - # data type: CreateTenantResponse - anyof_schema_1_validator: Optional[CreateTenantResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateTenantResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateTenantResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateTenant200Response.model_construct() - error_messages = [] - # validate data type: CreateTenantResponse - if not isinstance(v, CreateTenantResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateTenantResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateTenant200Response with anyOf schemas: APIError, CreateTenantResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateTenantResponse] = None - try: - instance.actual_instance = CreateTenantResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateTenant200Response with anyOf schemas: APIError, CreateTenantResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateTenantResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_tenant_package200_response.py b/client/models/create_tenant_package200_response.py deleted file mode 100644 index 566c91b..0000000 --- a/client/models/create_tenant_package200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_tenant_package_response import CreateTenantPackageResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATETENANTPACKAGE200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateTenantPackageResponse"] - -class CreateTenantPackage200Response(BaseModel): - """ - CreateTenantPackage200Response - """ - - # data type: CreateTenantPackageResponse - anyof_schema_1_validator: Optional[CreateTenantPackageResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateTenantPackageResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateTenantPackageResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateTenantPackage200Response.model_construct() - error_messages = [] - # validate data type: CreateTenantPackageResponse - if not isinstance(v, CreateTenantPackageResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateTenantPackageResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateTenantPackage200Response with anyOf schemas: APIError, CreateTenantPackageResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateTenantPackageResponse] = None - try: - instance.actual_instance = CreateTenantPackageResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateTenantPackage200Response with anyOf schemas: APIError, CreateTenantPackageResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateTenantPackageResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_tenant_package_body.py b/client/models/create_tenant_package_body.py index cfba041..b478188 100644 --- a/client/models/create_tenant_package_body.py +++ b/client/models/create_tenant_package_body.py @@ -67,15 +67,15 @@ class CreateTenantPackageBody(BaseModel): flex_admin_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexAdminUnit") flex_domain_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexDomainCostCents") flex_domain_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexDomainUnit") - flex_chat_gpt_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexChatGPTCostCents") - flex_chat_gpt_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexChatGPTUnit") + flex_llm_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexLLMCostCents") + flex_llm_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexLLMUnit") flex_minimum_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexMinimumCostCents") flex_managed_tenant_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexManagedTenantCostCents") flex_sso_admin_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexSSOAdminCostCents") flex_sso_admin_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexSSOAdminUnit") flex_sso_moderator_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexSSOModeratorCostCents") flex_sso_moderator_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexSSOModeratorUnit") - __properties: ClassVar[List[str]] = ["name", "monthlyCostUSD", "yearlyCostUSD", "monthlyStripePlanId", "yearlyStripePlanId", "maxMonthlyPageLoads", "maxMonthlyAPICredits", "maxMonthlySmallWidgetsCredits", "maxMonthlyComments", "maxConcurrentUsers", "maxTenantUsers", "maxSSOUsers", "maxModerators", "maxDomains", "maxWhiteLabeledTenants", "maxMonthlyEventLogRequests", "maxCustomCollectionSize", "hasWhiteLabeling", "hasDebranding", "hasLLMSpamDetection", "forWhoText", "featureTaglines", "hasAuditing", "hasFlexPricing", "enableSAML", "flexPageLoadCostCents", "flexPageLoadUnit", "flexCommentCostCents", "flexCommentUnit", "flexSSOUserCostCents", "flexSSOUserUnit", "flexAPICreditCostCents", "flexAPICreditUnit", "flexSmallWidgetsCreditCostCents", "flexSmallWidgetsCreditUnit", "flexModeratorCostCents", "flexModeratorUnit", "flexAdminCostCents", "flexAdminUnit", "flexDomainCostCents", "flexDomainUnit", "flexChatGPTCostCents", "flexChatGPTUnit", "flexMinimumCostCents", "flexManagedTenantCostCents", "flexSSOAdminCostCents", "flexSSOAdminUnit", "flexSSOModeratorCostCents", "flexSSOModeratorUnit"] + __properties: ClassVar[List[str]] = ["name", "monthlyCostUSD", "yearlyCostUSD", "monthlyStripePlanId", "yearlyStripePlanId", "maxMonthlyPageLoads", "maxMonthlyAPICredits", "maxMonthlySmallWidgetsCredits", "maxMonthlyComments", "maxConcurrentUsers", "maxTenantUsers", "maxSSOUsers", "maxModerators", "maxDomains", "maxWhiteLabeledTenants", "maxMonthlyEventLogRequests", "maxCustomCollectionSize", "hasWhiteLabeling", "hasDebranding", "hasLLMSpamDetection", "forWhoText", "featureTaglines", "hasAuditing", "hasFlexPricing", "enableSAML", "flexPageLoadCostCents", "flexPageLoadUnit", "flexCommentCostCents", "flexCommentUnit", "flexSSOUserCostCents", "flexSSOUserUnit", "flexAPICreditCostCents", "flexAPICreditUnit", "flexSmallWidgetsCreditCostCents", "flexSmallWidgetsCreditUnit", "flexModeratorCostCents", "flexModeratorUnit", "flexAdminCostCents", "flexAdminUnit", "flexDomainCostCents", "flexDomainUnit", "flexLLMCostCents", "flexLLMUnit", "flexMinimumCostCents", "flexManagedTenantCostCents", "flexSSOAdminCostCents", "flexSSOAdminUnit", "flexSSOModeratorCostCents", "flexSSOModeratorUnit"] model_config = ConfigDict( populate_by_name=True, @@ -189,8 +189,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "flexAdminUnit": obj.get("flexAdminUnit"), "flexDomainCostCents": obj.get("flexDomainCostCents"), "flexDomainUnit": obj.get("flexDomainUnit"), - "flexChatGPTCostCents": obj.get("flexChatGPTCostCents"), - "flexChatGPTUnit": obj.get("flexChatGPTUnit"), + "flexLLMCostCents": obj.get("flexLLMCostCents"), + "flexLLMUnit": obj.get("flexLLMUnit"), "flexMinimumCostCents": obj.get("flexMinimumCostCents"), "flexManagedTenantCostCents": obj.get("flexManagedTenantCostCents"), "flexSSOAdminCostCents": obj.get("flexSSOAdminCostCents"), diff --git a/client/models/create_tenant_user200_response.py b/client/models/create_tenant_user200_response.py deleted file mode 100644 index 617cb91..0000000 --- a/client/models/create_tenant_user200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_tenant_user_response import CreateTenantUserResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATETENANTUSER200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateTenantUserResponse"] - -class CreateTenantUser200Response(BaseModel): - """ - CreateTenantUser200Response - """ - - # data type: CreateTenantUserResponse - anyof_schema_1_validator: Optional[CreateTenantUserResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateTenantUserResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateTenantUserResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateTenantUser200Response.model_construct() - error_messages = [] - # validate data type: CreateTenantUserResponse - if not isinstance(v, CreateTenantUserResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateTenantUserResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateTenantUser200Response with anyOf schemas: APIError, CreateTenantUserResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateTenantUserResponse] = None - try: - instance.actual_instance = CreateTenantUserResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateTenantUser200Response with anyOf schemas: APIError, CreateTenantUserResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateTenantUserResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_ticket200_response.py b/client/models/create_ticket200_response.py deleted file mode 100644 index 04ad328..0000000 --- a/client/models/create_ticket200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.create_ticket_response import CreateTicketResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATETICKET200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateTicketResponse"] - -class CreateTicket200Response(BaseModel): - """ - CreateTicket200Response - """ - - # data type: CreateTicketResponse - anyof_schema_1_validator: Optional[CreateTicketResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateTicketResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateTicketResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateTicket200Response.model_construct() - error_messages = [] - # validate data type: CreateTicketResponse - if not isinstance(v, CreateTicketResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateTicketResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateTicket200Response with anyOf schemas: APIError, CreateTicketResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[CreateTicketResponse] = None - try: - instance.actual_instance = CreateTicketResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateTicket200Response with anyOf schemas: APIError, CreateTicketResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateTicketResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_user_badge200_response.py b/client/models/create_user_badge200_response.py deleted file mode 100644 index 7c9163d..0000000 --- a/client/models/create_user_badge200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_create_user_badge_response import APICreateUserBadgeResponse -from client.models.api_error import APIError -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -CREATEUSERBADGE200RESPONSE_ANY_OF_SCHEMAS = ["APICreateUserBadgeResponse", "APIError"] - -class CreateUserBadge200Response(BaseModel): - """ - CreateUserBadge200Response - """ - - # data type: APICreateUserBadgeResponse - anyof_schema_1_validator: Optional[APICreateUserBadgeResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APICreateUserBadgeResponse, APIError]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APICreateUserBadgeResponse", "APIError" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = CreateUserBadge200Response.model_construct() - error_messages = [] - # validate data type: APICreateUserBadgeResponse - if not isinstance(v, APICreateUserBadgeResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APICreateUserBadgeResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in CreateUserBadge200Response with anyOf schemas: APICreateUserBadgeResponse, APIError. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APICreateUserBadgeResponse] = None - try: - instance.actual_instance = APICreateUserBadgeResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into CreateUserBadge200Response with anyOf schemas: APICreateUserBadgeResponse, APIError. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APICreateUserBadgeResponse, APIError]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/create_v1_page_react.py b/client/models/create_v1_page_react.py new file mode 100644 index 0000000..2a3c8fe --- /dev/null +++ b/client/models/create_v1_page_react.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class CreateV1PageReact(BaseModel): + """ + CreateV1PageReact + """ # noqa: E501 + code: Optional[StrictStr] = None + status: APIStatus + __properties: ClassVar[List[str]] = ["code", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of CreateV1PageReact from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of CreateV1PageReact from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "code": obj.get("code"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/custom_config_parameters.py b/client/models/custom_config_parameters.py index 5cdce62..af016e7 100644 --- a/client/models/custom_config_parameters.py +++ b/client/models/custom_config_parameters.py @@ -34,6 +34,7 @@ from client.models.spam_rule import SpamRule from client.models.sso_security_level import SSOSecurityLevel from client.models.tos_config import TOSConfig +from client.models.users_list_location import UsersListLocation from client.models.vote_style import VoteStyle from typing import Optional, Set from typing_extensions import Self @@ -94,11 +95,14 @@ class CustomConfigParameters(BaseModel): no_custom_config: Optional[StrictBool] = Field(default=None, alias="noCustomConfig") mention_auto_complete_mode: Optional[MentionAutoCompleteMode] = Field(default=None, alias="mentionAutoCompleteMode") no_image_uploads: Optional[StrictBool] = Field(default=None, alias="noImageUploads") + allow_embeds: Optional[StrictBool] = Field(default=None, alias="allowEmbeds") + allowed_embed_domains: Optional[List[StrictStr]] = Field(default=None, alias="allowedEmbedDomains") no_styles: Optional[StrictBool] = Field(default=None, alias="noStyles") page_size: Optional[StrictInt] = Field(default=None, alias="pageSize") readonly: Optional[StrictBool] = None no_new_root_comments: Optional[StrictBool] = Field(default=None, alias="noNewRootComments") require_sso: Optional[StrictBool] = Field(default=None, alias="requireSSO") + enable_f_chat: Optional[StrictBool] = Field(default=None, alias="enableFChat") enable_resize_handle: Optional[StrictBool] = Field(default=None, alias="enableResizeHandle") restricted_link_domains: Optional[List[StrictStr]] = Field(default=None, alias="restrictedLinkDomains") show_badges_in_top_bar: Optional[StrictBool] = Field(default=None, alias="showBadgesInTopBar") @@ -119,13 +123,15 @@ class CustomConfigParameters(BaseModel): widget_questions_required: Optional[CommentQuestionsRequired] = Field(default=None, alias="widgetQuestionsRequired") widget_sub_question_visibility: Optional[QuestionSubQuestionVisibility] = Field(default=None, alias="widgetSubQuestionVisibility") wrap: Optional[StrictBool] = None + users_list_location: Optional[UsersListLocation] = Field(default=None, alias="usersListLocation") + users_list_include_offline: Optional[StrictBool] = Field(default=None, alias="usersListIncludeOffline") ticket_base_url: Optional[StrictStr] = Field(default=None, alias="ticketBaseUrl") ticket_kb_search_endpoint: Optional[StrictStr] = Field(default=None, alias="ticketKBSearchEndpoint") ticket_file_uploads_enabled: Optional[StrictBool] = Field(default=None, alias="ticketFileUploadsEnabled") ticket_max_file_size: Optional[StrictInt] = Field(default=None, alias="ticketMaxFileSize") ticket_auto_assign_user_ids: Optional[List[StrictStr]] = Field(default=None, alias="ticketAutoAssignUserIds") tos: Optional[TOSConfig] = None - __properties: ClassVar[List[str]] = ["absoluteAndRelativeDates", "absoluteDates", "allowAnon", "allowAnonFlag", "allowAnonVotes", "allowedLanguages", "collapseReplies", "commentCountFormat", "commentHTMLRenderingMode", "commentThreadDeleteMode", "commenterNameFormat", "countAboveToggle", "customCSS", "defaultAvatarSrc", "defaultSortDirection", "defaultUsername", "disableAutoAdminMigration", "disableAutoHashTagCreation", "disableBlocking", "disableCommenterCommentDelete", "disableCommenterCommentEdit", "disableEmailInputs", "disableLiveCommenting", "disableNotificationBell", "disableProfileComments", "disableProfileDirectMessages", "disableProfiles", "disableSuccessMessage", "disableToolbar", "disableUnverifiedLabel", "disableVoting", "enableCommenterLinks", "enableSearch", "enableSpoilers", "enableThirdPartyCookieBypass", "enableViewCounts", "enableVoteList", "enableWYSIWYG", "gifRating", "hasDarkBackground", "headerHTML", "hideAvatars", "hideCommentsUnderCountTextFormat", "imageContentProfanityLevel", "inputAfterComments", "limitCommentsByGroups", "locale", "maxCommentCharacterLength", "maxCommentCreatedCountPUPM", "noCustomConfig", "mentionAutoCompleteMode", "noImageUploads", "noStyles", "pageSize", "readonly", "noNewRootComments", "requireSSO", "enableResizeHandle", "restrictedLinkDomains", "showBadgesInTopBar", "showCommentSaveSuccess", "showLiveRightAway", "showQuestion", "spamRules", "ssoSecLvl", "translations", "useShowCommentsToggle", "useSingleLineCommentInput", "voteStyle", "widgetQuestionId", "widgetQuestionResultsStyle", "widgetQuestionShowBreakdown", "widgetQuestionStyle", "widgetQuestionWhenToSave", "widgetQuestionsRequired", "widgetSubQuestionVisibility", "wrap", "ticketBaseUrl", "ticketKBSearchEndpoint", "ticketFileUploadsEnabled", "ticketMaxFileSize", "ticketAutoAssignUserIds", "tos"] + __properties: ClassVar[List[str]] = ["absoluteAndRelativeDates", "absoluteDates", "allowAnon", "allowAnonFlag", "allowAnonVotes", "allowedLanguages", "collapseReplies", "commentCountFormat", "commentHTMLRenderingMode", "commentThreadDeleteMode", "commenterNameFormat", "countAboveToggle", "customCSS", "defaultAvatarSrc", "defaultSortDirection", "defaultUsername", "disableAutoAdminMigration", "disableAutoHashTagCreation", "disableBlocking", "disableCommenterCommentDelete", "disableCommenterCommentEdit", "disableEmailInputs", "disableLiveCommenting", "disableNotificationBell", "disableProfileComments", "disableProfileDirectMessages", "disableProfiles", "disableSuccessMessage", "disableToolbar", "disableUnverifiedLabel", "disableVoting", "enableCommenterLinks", "enableSearch", "enableSpoilers", "enableThirdPartyCookieBypass", "enableViewCounts", "enableVoteList", "enableWYSIWYG", "gifRating", "hasDarkBackground", "headerHTML", "hideAvatars", "hideCommentsUnderCountTextFormat", "imageContentProfanityLevel", "inputAfterComments", "limitCommentsByGroups", "locale", "maxCommentCharacterLength", "maxCommentCreatedCountPUPM", "noCustomConfig", "mentionAutoCompleteMode", "noImageUploads", "allowEmbeds", "allowedEmbedDomains", "noStyles", "pageSize", "readonly", "noNewRootComments", "requireSSO", "enableFChat", "enableResizeHandle", "restrictedLinkDomains", "showBadgesInTopBar", "showCommentSaveSuccess", "showLiveRightAway", "showQuestion", "spamRules", "ssoSecLvl", "translations", "useShowCommentsToggle", "useSingleLineCommentInput", "voteStyle", "widgetQuestionId", "widgetQuestionResultsStyle", "widgetQuestionShowBreakdown", "widgetQuestionStyle", "widgetQuestionWhenToSave", "widgetQuestionsRequired", "widgetSubQuestionVisibility", "wrap", "usersListLocation", "usersListIncludeOffline", "ticketBaseUrl", "ticketKBSearchEndpoint", "ticketFileUploadsEnabled", "ticketMaxFileSize", "ticketAutoAssignUserIds", "tos"] model_config = ConfigDict( populate_by_name=True, @@ -246,6 +252,11 @@ def to_dict(self) -> Dict[str, Any]: if self.mention_auto_complete_mode is None and "mention_auto_complete_mode" in self.model_fields_set: _dict['mentionAutoCompleteMode'] = None + # set to None if allowed_embed_domains (nullable) is None + # and model_fields_set contains the field + if self.allowed_embed_domains is None and "allowed_embed_domains" in self.model_fields_set: + _dict['allowedEmbedDomains'] = None + # set to None if page_size (nullable) is None # and model_fields_set contains the field if self.page_size is None and "page_size" in self.model_fields_set: @@ -325,11 +336,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "noCustomConfig": obj.get("noCustomConfig"), "mentionAutoCompleteMode": obj.get("mentionAutoCompleteMode"), "noImageUploads": obj.get("noImageUploads"), + "allowEmbeds": obj.get("allowEmbeds"), + "allowedEmbedDomains": obj.get("allowedEmbedDomains"), "noStyles": obj.get("noStyles"), "pageSize": obj.get("pageSize"), "readonly": obj.get("readonly"), "noNewRootComments": obj.get("noNewRootComments"), "requireSSO": obj.get("requireSSO"), + "enableFChat": obj.get("enableFChat"), "enableResizeHandle": obj.get("enableResizeHandle"), "restrictedLinkDomains": obj.get("restrictedLinkDomains"), "showBadgesInTopBar": obj.get("showBadgesInTopBar"), @@ -350,6 +364,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "widgetQuestionsRequired": obj.get("widgetQuestionsRequired"), "widgetSubQuestionVisibility": obj.get("widgetSubQuestionVisibility"), "wrap": obj.get("wrap"), + "usersListLocation": obj.get("usersListLocation"), + "usersListIncludeOffline": obj.get("usersListIncludeOffline"), "ticketBaseUrl": obj.get("ticketBaseUrl"), "ticketKBSearchEndpoint": obj.get("ticketKBSearchEndpoint"), "ticketFileUploadsEnabled": obj.get("ticketFileUploadsEnabled"), diff --git a/client/models/delete_comment_public200_response.py b/client/models/delete_comment_public200_response.py deleted file mode 100644 index f169c78..0000000 --- a/client/models/delete_comment_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.public_api_delete_comment_response import PublicAPIDeleteCommentResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -DELETECOMMENTPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "PublicAPIDeleteCommentResponse"] - -class DeleteCommentPublic200Response(BaseModel): - """ - DeleteCommentPublic200Response - """ - - # data type: PublicAPIDeleteCommentResponse - anyof_schema_1_validator: Optional[PublicAPIDeleteCommentResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, PublicAPIDeleteCommentResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "PublicAPIDeleteCommentResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = DeleteCommentPublic200Response.model_construct() - error_messages = [] - # validate data type: PublicAPIDeleteCommentResponse - if not isinstance(v, PublicAPIDeleteCommentResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `PublicAPIDeleteCommentResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in DeleteCommentPublic200Response with anyOf schemas: APIError, PublicAPIDeleteCommentResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[PublicAPIDeleteCommentResponse] = None - try: - instance.actual_instance = PublicAPIDeleteCommentResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into DeleteCommentPublic200Response with anyOf schemas: APIError, PublicAPIDeleteCommentResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, PublicAPIDeleteCommentResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/delete_comment_vote200_response.py b/client/models/delete_comment_vote200_response.py deleted file mode 100644 index 367c836..0000000 --- a/client/models/delete_comment_vote200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.vote_delete_response import VoteDeleteResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -DELETECOMMENTVOTE200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "VoteDeleteResponse"] - -class DeleteCommentVote200Response(BaseModel): - """ - DeleteCommentVote200Response - """ - - # data type: VoteDeleteResponse - anyof_schema_1_validator: Optional[VoteDeleteResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, VoteDeleteResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "VoteDeleteResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = DeleteCommentVote200Response.model_construct() - error_messages = [] - # validate data type: VoteDeleteResponse - if not isinstance(v, VoteDeleteResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `VoteDeleteResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in DeleteCommentVote200Response with anyOf schemas: APIError, VoteDeleteResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[VoteDeleteResponse] = None - try: - instance.actual_instance = VoteDeleteResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into DeleteCommentVote200Response with anyOf schemas: APIError, VoteDeleteResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, VoteDeleteResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/delete_domain_config200_response.py b/client/models/delete_domain_config_response.py similarity index 91% rename from client/models/delete_domain_config200_response.py rename to client/models/delete_domain_config_response.py index 3852223..c558a40 100644 --- a/client/models/delete_domain_config200_response.py +++ b/client/models/delete_domain_config_response.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class DeleteDomainConfig200Response(BaseModel): +class DeleteDomainConfigResponse(BaseModel): """ - DeleteDomainConfig200Response + DeleteDomainConfigResponse """ # noqa: E501 status: Optional[Any] __properties: ClassVar[List[str]] = ["status"] @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeleteDomainConfig200Response from a JSON string""" + """Create an instance of DeleteDomainConfigResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeleteDomainConfig200Response from a dict""" + """Create an instance of DeleteDomainConfigResponse from a dict""" if obj is None: return None diff --git a/client/models/delete_feed_post_public200_response.py b/client/models/delete_feed_post_public200_response.py deleted file mode 100644 index ff1836b..0000000 --- a/client/models/delete_feed_post_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.delete_feed_post_public200_response_any_of import DeleteFeedPostPublic200ResponseAnyOf -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -DELETEFEEDPOSTPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "DeleteFeedPostPublic200ResponseAnyOf"] - -class DeleteFeedPostPublic200Response(BaseModel): - """ - DeleteFeedPostPublic200Response - """ - - # data type: DeleteFeedPostPublic200ResponseAnyOf - anyof_schema_1_validator: Optional[DeleteFeedPostPublic200ResponseAnyOf] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, DeleteFeedPostPublic200ResponseAnyOf]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "DeleteFeedPostPublic200ResponseAnyOf" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = DeleteFeedPostPublic200Response.model_construct() - error_messages = [] - # validate data type: DeleteFeedPostPublic200ResponseAnyOf - if not isinstance(v, DeleteFeedPostPublic200ResponseAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `DeleteFeedPostPublic200ResponseAnyOf`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in DeleteFeedPostPublic200Response with anyOf schemas: APIError, DeleteFeedPostPublic200ResponseAnyOf. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[DeleteFeedPostPublic200ResponseAnyOf] = None - try: - instance.actual_instance = DeleteFeedPostPublic200ResponseAnyOf.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into DeleteFeedPostPublic200Response with anyOf schemas: APIError, DeleteFeedPostPublic200ResponseAnyOf. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, DeleteFeedPostPublic200ResponseAnyOf]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/delete_feed_post_public200_response_any_of.py b/client/models/delete_feed_post_public_response.py similarity index 89% rename from client/models/delete_feed_post_public200_response_any_of.py rename to client/models/delete_feed_post_public_response.py index 45760f8..6f18b0f 100644 --- a/client/models/delete_feed_post_public200_response_any_of.py +++ b/client/models/delete_feed_post_public_response.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class DeleteFeedPostPublic200ResponseAnyOf(BaseModel): +class DeleteFeedPostPublicResponse(BaseModel): """ - DeleteFeedPostPublic200ResponseAnyOf + DeleteFeedPostPublicResponse """ # noqa: E501 status: APIStatus __properties: ClassVar[List[str]] = ["status"] @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeleteFeedPostPublic200ResponseAnyOf from a JSON string""" + """Create an instance of DeleteFeedPostPublicResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeleteFeedPostPublic200ResponseAnyOf from a dict""" + """Create an instance of DeleteFeedPostPublicResponse from a dict""" if obj is None: return None diff --git a/client/models/delete_hash_tag_request.py b/client/models/delete_hash_tag_request_body.py similarity index 91% rename from client/models/delete_hash_tag_request.py rename to client/models/delete_hash_tag_request_body.py index 48b27ad..614b50f 100644 --- a/client/models/delete_hash_tag_request.py +++ b/client/models/delete_hash_tag_request_body.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class DeleteHashTagRequest(BaseModel): +class DeleteHashTagRequestBody(BaseModel): """ - DeleteHashTagRequest + DeleteHashTagRequestBody """ # noqa: E501 tenant_id: Optional[StrictStr] = Field(default=None, alias="tenantId") __properties: ClassVar[List[str]] = ["tenantId"] @@ -47,7 +47,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of DeleteHashTagRequest from a JSON string""" + """Create an instance of DeleteHashTagRequestBody from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of DeleteHashTagRequest from a dict""" + """Create an instance of DeleteHashTagRequestBody from a dict""" if obj is None: return None diff --git a/client/models/f_comment.py b/client/models/f_comment.py index 36712b3..87f53c2 100644 --- a/client/models/f_comment.py +++ b/client/models/f_comment.py @@ -104,7 +104,8 @@ class FComment(BaseModel): requires_verification: Optional[StrictBool] = Field(default=None, alias="requiresVerification") edit_key: Optional[StrictStr] = Field(default=None, alias="editKey") tos_accepted_at: Optional[datetime] = Field(default=None, alias="tosAcceptedAt") - __properties: ClassVar[List[str]] = ["_id", "tenantId", "urlId", "urlIdRaw", "url", "pageTitle", "userId", "anonUserId", "commenterEmail", "commenterName", "commenterLink", "comment", "commentHTML", "parentId", "date", "localDateString", "localDateHours", "votes", "votesUp", "votesDown", "expireAt", "verified", "verifiedDate", "verificationId", "notificationSentForParent", "notificationSentForParentTenant", "reviewed", "imported", "externalId", "externalParentId", "avatarSrc", "isSpam", "permNotSpam", "aiDeterminedSpam", "hasImages", "pageNumber", "pageNumberOF", "pageNumberNF", "hasLinks", "hasCode", "approved", "locale", "isDeleted", "isDeletedUser", "isBannedUser", "isByAdmin", "isByModerator", "isPinned", "isLocked", "flagCount", "rating", "displayLabel", "fromProductId", "meta", "ipHash", "mentions", "hashTags", "badges", "domain", "veteranBadgeProcessed", "moderationGroupIds", "didProcessBadges", "fromOfflineRestore", "autoplayJobId", "autoplayDelayMS", "feedbackIds", "logs", "groupIds", "viewCount", "requiresVerification", "editKey", "tosAcceptedAt"] + bot_id: Optional[StrictStr] = Field(default=None, alias="botId") + __properties: ClassVar[List[str]] = ["_id", "tenantId", "urlId", "urlIdRaw", "url", "pageTitle", "userId", "anonUserId", "commenterEmail", "commenterName", "commenterLink", "comment", "commentHTML", "parentId", "date", "localDateString", "localDateHours", "votes", "votesUp", "votesDown", "expireAt", "verified", "verifiedDate", "verificationId", "notificationSentForParent", "notificationSentForParentTenant", "reviewed", "imported", "externalId", "externalParentId", "avatarSrc", "isSpam", "permNotSpam", "aiDeterminedSpam", "hasImages", "pageNumber", "pageNumberOF", "pageNumberNF", "hasLinks", "hasCode", "approved", "locale", "isDeleted", "isDeletedUser", "isBannedUser", "isByAdmin", "isByModerator", "isPinned", "isLocked", "flagCount", "rating", "displayLabel", "fromProductId", "meta", "ipHash", "mentions", "hashTags", "badges", "domain", "veteranBadgeProcessed", "moderationGroupIds", "didProcessBadges", "fromOfflineRestore", "autoplayJobId", "autoplayDelayMS", "feedbackIds", "logs", "groupIds", "viewCount", "requiresVerification", "editKey", "tosAcceptedAt", "botId"] model_config = ConfigDict( populate_by_name=True, @@ -424,7 +425,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "viewCount": obj.get("viewCount"), "requiresVerification": obj.get("requiresVerification"), "editKey": obj.get("editKey"), - "tosAcceptedAt": obj.get("tosAcceptedAt") + "tosAcceptedAt": obj.get("tosAcceptedAt"), + "botId": obj.get("botId") }) return _obj diff --git a/client/models/flag_comment200_response.py b/client/models/flag_comment200_response.py deleted file mode 100644 index fefd4f2..0000000 --- a/client/models/flag_comment200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.flag_comment_response import FlagCommentResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -FLAGCOMMENT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "FlagCommentResponse"] - -class FlagComment200Response(BaseModel): - """ - FlagComment200Response - """ - - # data type: FlagCommentResponse - anyof_schema_1_validator: Optional[FlagCommentResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, FlagCommentResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "FlagCommentResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = FlagComment200Response.model_construct() - error_messages = [] - # validate data type: FlagCommentResponse - if not isinstance(v, FlagCommentResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `FlagCommentResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in FlagComment200Response with anyOf schemas: APIError, FlagCommentResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[FlagCommentResponse] = None - try: - instance.actual_instance = FlagCommentResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into FlagComment200Response with anyOf schemas: APIError, FlagCommentResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, FlagCommentResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/flag_comment_public200_response.py b/client/models/flag_comment_public200_response.py deleted file mode 100644 index c56a287..0000000 --- a/client/models/flag_comment_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_empty_response import APIEmptyResponse -from client.models.api_error import APIError -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -FLAGCOMMENTPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIEmptyResponse", "APIError"] - -class FlagCommentPublic200Response(BaseModel): - """ - FlagCommentPublic200Response - """ - - # data type: APIEmptyResponse - anyof_schema_1_validator: Optional[APIEmptyResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIEmptyResponse, APIError]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIEmptyResponse", "APIError" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = FlagCommentPublic200Response.model_construct() - error_messages = [] - # validate data type: APIEmptyResponse - if not isinstance(v, APIEmptyResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIEmptyResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in FlagCommentPublic200Response with anyOf schemas: APIEmptyResponse, APIError. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APIEmptyResponse] = None - try: - instance.actual_instance = APIEmptyResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into FlagCommentPublic200Response with anyOf schemas: APIEmptyResponse, APIError. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIEmptyResponse, APIError]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_banned_users_count_response.py b/client/models/get_banned_users_count_response.py new file mode 100644 index 0000000..a3e902a --- /dev/null +++ b/client/models/get_banned_users_count_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetBannedUsersCountResponse(BaseModel): + """ + GetBannedUsersCountResponse + """ # noqa: E501 + total_count: Union[StrictFloat, StrictInt] = Field(alias="totalCount") + status: StrictStr + __properties: ClassVar[List[str]] = ["totalCount", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetBannedUsersCountResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetBannedUsersCountResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "totalCount": obj.get("totalCount"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_banned_users_from_comment_response.py b/client/models/get_banned_users_from_comment_response.py new file mode 100644 index 0000000..012f3c0 --- /dev/null +++ b/client/models/get_banned_users_from_comment_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_banned_user_with_multi_match_info import APIBannedUserWithMultiMatchInfo +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GetBannedUsersFromCommentResponse(BaseModel): + """ + GetBannedUsersFromCommentResponse + """ # noqa: E501 + banned_users: List[APIBannedUserWithMultiMatchInfo] = Field(alias="bannedUsers") + code: Optional[StrictStr] = None + status: APIStatus + __properties: ClassVar[List[str]] = ["bannedUsers", "code", "status"] + + @field_validator('code') + def code_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['not-found', 'not-logged-in']): + raise ValueError("must be one of enum values ('not-found', 'not-logged-in')") + return value + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetBannedUsersFromCommentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in banned_users (list) + _items = [] + if self.banned_users: + for _item_banned_users in self.banned_users: + if _item_banned_users: + _items.append(_item_banned_users.to_dict()) + _dict['bannedUsers'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetBannedUsersFromCommentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "bannedUsers": [APIBannedUserWithMultiMatchInfo.from_dict(_item) for _item in obj["bannedUsers"]] if obj.get("bannedUsers") is not None else None, + "code": obj.get("code"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_cached_notification_count200_response.py b/client/models/get_cached_notification_count200_response.py deleted file mode 100644 index 778c050..0000000 --- a/client/models/get_cached_notification_count200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_cached_notification_count_response import GetCachedNotificationCountResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETCACHEDNOTIFICATIONCOUNT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetCachedNotificationCountResponse"] - -class GetCachedNotificationCount200Response(BaseModel): - """ - GetCachedNotificationCount200Response - """ - - # data type: GetCachedNotificationCountResponse - anyof_schema_1_validator: Optional[GetCachedNotificationCountResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetCachedNotificationCountResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetCachedNotificationCountResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetCachedNotificationCount200Response.model_construct() - error_messages = [] - # validate data type: GetCachedNotificationCountResponse - if not isinstance(v, GetCachedNotificationCountResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetCachedNotificationCountResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetCachedNotificationCount200Response with anyOf schemas: APIError, GetCachedNotificationCountResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetCachedNotificationCountResponse] = None - try: - instance.actual_instance = GetCachedNotificationCountResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetCachedNotificationCount200Response with anyOf schemas: APIError, GetCachedNotificationCountResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetCachedNotificationCountResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_comment200_response.py b/client/models/get_comment200_response.py deleted file mode 100644 index 4eb80b0..0000000 --- a/client/models/get_comment200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.api_get_comment_response import APIGetCommentResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETCOMMENT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "APIGetCommentResponse"] - -class GetComment200Response(BaseModel): - """ - GetComment200Response - """ - - # data type: APIGetCommentResponse - anyof_schema_1_validator: Optional[APIGetCommentResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, APIGetCommentResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "APIGetCommentResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetComment200Response.model_construct() - error_messages = [] - # validate data type: APIGetCommentResponse - if not isinstance(v, APIGetCommentResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIGetCommentResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetComment200Response with anyOf schemas: APIError, APIGetCommentResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APIGetCommentResponse] = None - try: - instance.actual_instance = APIGetCommentResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetComment200Response with anyOf schemas: APIError, APIGetCommentResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, APIGetCommentResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_comment_ban_status_response.py b/client/models/get_comment_ban_status_response.py new file mode 100644 index 0000000..c3addc8 --- /dev/null +++ b/client/models/get_comment_ban_status_response.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetCommentBanStatusResponse(BaseModel): + """ + GetCommentBanStatusResponse + """ # noqa: E501 + status: StrictStr + email_domain: Optional[StrictStr] = Field(alias="emailDomain") + can_ip_ban: Optional[StrictBool] = Field(alias="canIPBan") + __properties: ClassVar[List[str]] = ["status", "emailDomain", "canIPBan"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCommentBanStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if email_domain (nullable) is None + # and model_fields_set contains the field + if self.email_domain is None and "email_domain" in self.model_fields_set: + _dict['emailDomain'] = None + + # set to None if can_ip_ban (nullable) is None + # and model_fields_set contains the field + if self.can_ip_ban is None and "can_ip_ban" in self.model_fields_set: + _dict['canIPBan'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCommentBanStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "emailDomain": obj.get("emailDomain"), + "canIPBan": obj.get("canIPBan") + }) + return _obj + + diff --git a/client/models/get_comment_text200_response.py b/client/models/get_comment_text200_response.py deleted file mode 100644 index dff0375..0000000 --- a/client/models/get_comment_text200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.public_api_get_comment_text_response import PublicAPIGetCommentTextResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETCOMMENTTEXT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "PublicAPIGetCommentTextResponse"] - -class GetCommentText200Response(BaseModel): - """ - GetCommentText200Response - """ - - # data type: PublicAPIGetCommentTextResponse - anyof_schema_1_validator: Optional[PublicAPIGetCommentTextResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, PublicAPIGetCommentTextResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "PublicAPIGetCommentTextResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetCommentText200Response.model_construct() - error_messages = [] - # validate data type: PublicAPIGetCommentTextResponse - if not isinstance(v, PublicAPIGetCommentTextResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `PublicAPIGetCommentTextResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetCommentText200Response with anyOf schemas: APIError, PublicAPIGetCommentTextResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[PublicAPIGetCommentTextResponse] = None - try: - instance.actual_instance = PublicAPIGetCommentTextResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetCommentText200Response with anyOf schemas: APIError, PublicAPIGetCommentTextResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, PublicAPIGetCommentTextResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_comment_text_response.py b/client/models/get_comment_text_response.py new file mode 100644 index 0000000..5730157 --- /dev/null +++ b/client/models/get_comment_text_response.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GetCommentTextResponse(BaseModel): + """ + GetCommentTextResponse + """ # noqa: E501 + comment: Optional[StrictStr] = None + status: APIStatus + __properties: ClassVar[List[str]] = ["comment", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCommentTextResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if comment (nullable) is None + # and model_fields_set contains the field + if self.comment is None and "comment" in self.model_fields_set: + _dict['comment'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCommentTextResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_comments_for_user_response.py b/client/models/get_comments_for_user_response.py new file mode 100644 index 0000000..97ad3c8 --- /dev/null +++ b/client/models/get_comments_for_user_response.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class GetCommentsForUserResponse(BaseModel): + """ + GetCommentsForUserResponse + """ # noqa: E501 + moderating_tenant_ids: Optional[List[StrictStr]] = Field(default=None, alias="moderatingTenantIds") + __properties: ClassVar[List[str]] = ["moderatingTenantIds"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetCommentsForUserResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetCommentsForUserResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "moderatingTenantIds": obj.get("moderatingTenantIds") + }) + return _obj + + diff --git a/client/models/get_comments_public200_response.py b/client/models/get_comments_public200_response.py deleted file mode 100644 index 7c9e441..0000000 --- a/client/models/get_comments_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_comments_response_with_presence_public_comment import GetCommentsResponseWithPresencePublicComment -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETCOMMENTSPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetCommentsResponseWithPresencePublicComment"] - -class GetCommentsPublic200Response(BaseModel): - """ - GetCommentsPublic200Response - """ - - # data type: GetCommentsResponseWithPresencePublicComment - anyof_schema_1_validator: Optional[GetCommentsResponseWithPresencePublicComment] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetCommentsResponseWithPresencePublicComment]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetCommentsResponseWithPresencePublicComment" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetCommentsPublic200Response.model_construct() - error_messages = [] - # validate data type: GetCommentsResponseWithPresencePublicComment - if not isinstance(v, GetCommentsResponseWithPresencePublicComment): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetCommentsResponseWithPresencePublicComment`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetCommentsPublic200Response with anyOf schemas: APIError, GetCommentsResponseWithPresencePublicComment. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetCommentsResponseWithPresencePublicComment] = None - try: - instance.actual_instance = GetCommentsResponseWithPresencePublicComment.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetCommentsPublic200Response with anyOf schemas: APIError, GetCommentsResponseWithPresencePublicComment. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetCommentsResponseWithPresencePublicComment]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_domain_config200_response.py b/client/models/get_domain_config200_response.py deleted file mode 100644 index 12faccc..0000000 --- a/client/models/get_domain_config200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.add_domain_config200_response_any_of import AddDomainConfig200ResponseAnyOf -from client.models.get_domain_configs200_response_any_of1 import GetDomainConfigs200ResponseAnyOf1 -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETDOMAINCONFIG200RESPONSE_ANY_OF_SCHEMAS = ["AddDomainConfig200ResponseAnyOf", "GetDomainConfigs200ResponseAnyOf1"] - -class GetDomainConfig200Response(BaseModel): - """ - GetDomainConfig200Response - """ - - # data type: AddDomainConfig200ResponseAnyOf - anyof_schema_1_validator: Optional[AddDomainConfig200ResponseAnyOf] = None - # data type: GetDomainConfigs200ResponseAnyOf1 - anyof_schema_2_validator: Optional[GetDomainConfigs200ResponseAnyOf1] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "AddDomainConfig200ResponseAnyOf", "GetDomainConfigs200ResponseAnyOf1" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetDomainConfig200Response.model_construct() - error_messages = [] - # validate data type: AddDomainConfig200ResponseAnyOf - if not isinstance(v, AddDomainConfig200ResponseAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `AddDomainConfig200ResponseAnyOf`") - else: - return v - - # validate data type: GetDomainConfigs200ResponseAnyOf1 - if not isinstance(v, GetDomainConfigs200ResponseAnyOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigs200ResponseAnyOf1`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetDomainConfig200Response with anyOf schemas: AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[AddDomainConfig200ResponseAnyOf] = None - try: - instance.actual_instance = AddDomainConfig200ResponseAnyOf.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[GetDomainConfigs200ResponseAnyOf1] = None - try: - instance.actual_instance = GetDomainConfigs200ResponseAnyOf1.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetDomainConfig200Response with anyOf schemas: AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], AddDomainConfig200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_pending_webhook_event_count200_response.py b/client/models/get_domain_config_response.py similarity index 64% rename from client/models/get_pending_webhook_event_count200_response.py rename to client/models/get_domain_config_response.py index a2607bb..8bc417d 100644 --- a/client/models/get_pending_webhook_event_count200_response.py +++ b/client/models/get_domain_config_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.get_pending_webhook_event_count_response import GetPendingWebhookEventCountResponse +from client.models.add_domain_config_response_any_of import AddDomainConfigResponseAnyOf +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETPENDINGWEBHOOKEVENTCOUNT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetPendingWebhookEventCountResponse"] +GETDOMAINCONFIGRESPONSE_ANY_OF_SCHEMAS = ["AddDomainConfigResponseAnyOf", "GetDomainConfigsResponseAnyOf1"] -class GetPendingWebhookEventCount200Response(BaseModel): +class GetDomainConfigResponse(BaseModel): """ - GetPendingWebhookEventCount200Response + GetDomainConfigResponse """ - # data type: GetPendingWebhookEventCountResponse - anyof_schema_1_validator: Optional[GetPendingWebhookEventCountResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: AddDomainConfigResponseAnyOf + anyof_schema_1_validator: Optional[AddDomainConfigResponseAnyOf] = None + # data type: GetDomainConfigsResponseAnyOf1 + anyof_schema_2_validator: Optional[GetDomainConfigsResponseAnyOf1] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetPendingWebhookEventCountResponse]] = None + actual_instance: Optional[Union[AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetPendingWebhookEventCountResponse" } + any_of_schemas: Set[str] = { "AddDomainConfigResponseAnyOf", "GetDomainConfigsResponseAnyOf1" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetPendingWebhookEventCount200Response.model_construct() + instance = GetDomainConfigResponse.model_construct() error_messages = [] - # validate data type: GetPendingWebhookEventCountResponse - if not isinstance(v, GetPendingWebhookEventCountResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetPendingWebhookEventCountResponse`") + # validate data type: AddDomainConfigResponseAnyOf + if not isinstance(v, AddDomainConfigResponseAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddDomainConfigResponseAnyOf`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: GetDomainConfigsResponseAnyOf1 + if not isinstance(v, GetDomainConfigsResponseAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigsResponseAnyOf1`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetPendingWebhookEventCount200Response with anyOf schemas: APIError, GetPendingWebhookEventCountResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in GetDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[GetPendingWebhookEventCountResponse] = None + # anyof_schema_1_validator: Optional[AddDomainConfigResponseAnyOf] = None try: - instance.actual_instance = GetPendingWebhookEventCountResponse.from_json(json_str) + instance.actual_instance = AddDomainConfigResponseAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[GetDomainConfigsResponseAnyOf1] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = GetDomainConfigsResponseAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetPendingWebhookEventCount200Response with anyOf schemas: APIError, GetPendingWebhookEventCountResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into GetDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetPendingWebhookEventCountResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/get_domain_configs200_response.py b/client/models/get_domain_configs200_response.py deleted file mode 100644 index 67a3aa9..0000000 --- a/client/models/get_domain_configs200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.get_domain_configs200_response_any_of import GetDomainConfigs200ResponseAnyOf -from client.models.get_domain_configs200_response_any_of1 import GetDomainConfigs200ResponseAnyOf1 -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETDOMAINCONFIGS200RESPONSE_ANY_OF_SCHEMAS = ["GetDomainConfigs200ResponseAnyOf", "GetDomainConfigs200ResponseAnyOf1"] - -class GetDomainConfigs200Response(BaseModel): - """ - GetDomainConfigs200Response - """ - - # data type: GetDomainConfigs200ResponseAnyOf - anyof_schema_1_validator: Optional[GetDomainConfigs200ResponseAnyOf] = None - # data type: GetDomainConfigs200ResponseAnyOf1 - anyof_schema_2_validator: Optional[GetDomainConfigs200ResponseAnyOf1] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "GetDomainConfigs200ResponseAnyOf", "GetDomainConfigs200ResponseAnyOf1" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetDomainConfigs200Response.model_construct() - error_messages = [] - # validate data type: GetDomainConfigs200ResponseAnyOf - if not isinstance(v, GetDomainConfigs200ResponseAnyOf): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigs200ResponseAnyOf`") - else: - return v - - # validate data type: GetDomainConfigs200ResponseAnyOf1 - if not isinstance(v, GetDomainConfigs200ResponseAnyOf1): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigs200ResponseAnyOf1`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetDomainConfigs200Response with anyOf schemas: GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetDomainConfigs200ResponseAnyOf] = None - try: - instance.actual_instance = GetDomainConfigs200ResponseAnyOf.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[GetDomainConfigs200ResponseAnyOf1] = None - try: - instance.actual_instance = GetDomainConfigs200ResponseAnyOf1.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetDomainConfigs200Response with anyOf schemas: GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], GetDomainConfigs200ResponseAnyOf, GetDomainConfigs200ResponseAnyOf1]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/bulk_aggregate_question_results200_response.py b/client/models/get_domain_configs_response.py similarity index 64% rename from client/models/bulk_aggregate_question_results200_response.py rename to client/models/get_domain_configs_response.py index b41dafb..e330f89 100644 --- a/client/models/bulk_aggregate_question_results200_response.py +++ b/client/models/get_domain_configs_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.bulk_aggregate_question_results_response import BulkAggregateQuestionResultsResponse +from client.models.get_domain_configs_response_any_of import GetDomainConfigsResponseAnyOf +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -BULKAGGREGATEQUESTIONRESULTS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "BulkAggregateQuestionResultsResponse"] +GETDOMAINCONFIGSRESPONSE_ANY_OF_SCHEMAS = ["GetDomainConfigsResponseAnyOf", "GetDomainConfigsResponseAnyOf1"] -class BulkAggregateQuestionResults200Response(BaseModel): +class GetDomainConfigsResponse(BaseModel): """ - BulkAggregateQuestionResults200Response + GetDomainConfigsResponse """ - # data type: BulkAggregateQuestionResultsResponse - anyof_schema_1_validator: Optional[BulkAggregateQuestionResultsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: GetDomainConfigsResponseAnyOf + anyof_schema_1_validator: Optional[GetDomainConfigsResponseAnyOf] = None + # data type: GetDomainConfigsResponseAnyOf1 + anyof_schema_2_validator: Optional[GetDomainConfigsResponseAnyOf1] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, BulkAggregateQuestionResultsResponse]] = None + actual_instance: Optional[Union[GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "BulkAggregateQuestionResultsResponse" } + any_of_schemas: Set[str] = { "GetDomainConfigsResponseAnyOf", "GetDomainConfigsResponseAnyOf1" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = BulkAggregateQuestionResults200Response.model_construct() + instance = GetDomainConfigsResponse.model_construct() error_messages = [] - # validate data type: BulkAggregateQuestionResultsResponse - if not isinstance(v, BulkAggregateQuestionResultsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `BulkAggregateQuestionResultsResponse`") + # validate data type: GetDomainConfigsResponseAnyOf + if not isinstance(v, GetDomainConfigsResponseAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigsResponseAnyOf`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: GetDomainConfigsResponseAnyOf1 + if not isinstance(v, GetDomainConfigsResponseAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigsResponseAnyOf1`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in BulkAggregateQuestionResults200Response with anyOf schemas: APIError, BulkAggregateQuestionResultsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in GetDomainConfigsResponse with anyOf schemas: GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[BulkAggregateQuestionResultsResponse] = None + # anyof_schema_1_validator: Optional[GetDomainConfigsResponseAnyOf] = None try: - instance.actual_instance = BulkAggregateQuestionResultsResponse.from_json(json_str) + instance.actual_instance = GetDomainConfigsResponseAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[GetDomainConfigsResponseAnyOf1] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = GetDomainConfigsResponseAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into BulkAggregateQuestionResults200Response with anyOf schemas: APIError, BulkAggregateQuestionResultsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into GetDomainConfigsResponse with anyOf schemas: GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, BulkAggregateQuestionResultsResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], GetDomainConfigsResponseAnyOf, GetDomainConfigsResponseAnyOf1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/get_domain_configs200_response_any_of.py b/client/models/get_domain_configs_response_any_of.py similarity index 91% rename from client/models/get_domain_configs200_response_any_of.py rename to client/models/get_domain_configs_response_any_of.py index dbd28c7..c1a6f5a 100644 --- a/client/models/get_domain_configs200_response_any_of.py +++ b/client/models/get_domain_configs_response_any_of.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class GetDomainConfigs200ResponseAnyOf(BaseModel): +class GetDomainConfigsResponseAnyOf(BaseModel): """ - GetDomainConfigs200ResponseAnyOf + GetDomainConfigsResponseAnyOf """ # noqa: E501 configurations: Optional[Any] status: Optional[Any] @@ -48,7 +48,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetDomainConfigs200ResponseAnyOf from a JSON string""" + """Create an instance of GetDomainConfigsResponseAnyOf from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -83,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetDomainConfigs200ResponseAnyOf from a dict""" + """Create an instance of GetDomainConfigsResponseAnyOf from a dict""" if obj is None: return None diff --git a/client/models/get_domain_configs200_response_any_of1.py b/client/models/get_domain_configs_response_any_of1.py similarity index 91% rename from client/models/get_domain_configs200_response_any_of1.py rename to client/models/get_domain_configs_response_any_of1.py index 0716229..2d0fb5c 100644 --- a/client/models/get_domain_configs200_response_any_of1.py +++ b/client/models/get_domain_configs_response_any_of1.py @@ -22,9 +22,9 @@ from typing import Optional, Set from typing_extensions import Self -class GetDomainConfigs200ResponseAnyOf1(BaseModel): +class GetDomainConfigsResponseAnyOf1(BaseModel): """ - GetDomainConfigs200ResponseAnyOf1 + GetDomainConfigsResponseAnyOf1 """ # noqa: E501 reason: StrictStr code: StrictStr @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetDomainConfigs200ResponseAnyOf1 from a JSON string""" + """Create an instance of GetDomainConfigsResponseAnyOf1 from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetDomainConfigs200ResponseAnyOf1 from a dict""" + """Create an instance of GetDomainConfigsResponseAnyOf1 from a dict""" if obj is None: return None diff --git a/client/models/get_email_template200_response.py b/client/models/get_email_template200_response.py deleted file mode 100644 index 7a2cdcd..0000000 --- a/client/models/get_email_template200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_email_template_response import GetEmailTemplateResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETEMAILTEMPLATE200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetEmailTemplateResponse"] - -class GetEmailTemplate200Response(BaseModel): - """ - GetEmailTemplate200Response - """ - - # data type: GetEmailTemplateResponse - anyof_schema_1_validator: Optional[GetEmailTemplateResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetEmailTemplateResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetEmailTemplateResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetEmailTemplate200Response.model_construct() - error_messages = [] - # validate data type: GetEmailTemplateResponse - if not isinstance(v, GetEmailTemplateResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetEmailTemplateResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetEmailTemplate200Response with anyOf schemas: APIError, GetEmailTemplateResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetEmailTemplateResponse] = None - try: - instance.actual_instance = GetEmailTemplateResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetEmailTemplate200Response with anyOf schemas: APIError, GetEmailTemplateResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetEmailTemplateResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_email_templates200_response.py b/client/models/get_email_templates200_response.py deleted file mode 100644 index c103b21..0000000 --- a/client/models/get_email_templates200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_email_templates_response import GetEmailTemplatesResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETEMAILTEMPLATES200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetEmailTemplatesResponse"] - -class GetEmailTemplates200Response(BaseModel): - """ - GetEmailTemplates200Response - """ - - # data type: GetEmailTemplatesResponse - anyof_schema_1_validator: Optional[GetEmailTemplatesResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetEmailTemplatesResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetEmailTemplatesResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetEmailTemplates200Response.model_construct() - error_messages = [] - # validate data type: GetEmailTemplatesResponse - if not isinstance(v, GetEmailTemplatesResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetEmailTemplatesResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetEmailTemplates200Response with anyOf schemas: APIError, GetEmailTemplatesResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetEmailTemplatesResponse] = None - try: - instance.actual_instance = GetEmailTemplatesResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetEmailTemplates200Response with anyOf schemas: APIError, GetEmailTemplatesResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetEmailTemplatesResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_event_log200_response.py b/client/models/get_event_log200_response.py deleted file mode 100644 index b588992..0000000 --- a/client/models/get_event_log200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_event_log_response import GetEventLogResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETEVENTLOG200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetEventLogResponse"] - -class GetEventLog200Response(BaseModel): - """ - GetEventLog200Response - """ - - # data type: GetEventLogResponse - anyof_schema_1_validator: Optional[GetEventLogResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetEventLogResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetEventLogResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetEventLog200Response.model_construct() - error_messages = [] - # validate data type: GetEventLogResponse - if not isinstance(v, GetEventLogResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetEventLogResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetEventLog200Response with anyOf schemas: APIError, GetEventLogResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetEventLogResponse] = None - try: - instance.actual_instance = GetEventLogResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetEventLog200Response with anyOf schemas: APIError, GetEventLogResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetEventLogResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_feed_posts_public200_response.py b/client/models/get_gifs_search_response.py similarity index 67% rename from client/models/get_feed_posts_public200_response.py rename to client/models/get_gifs_search_response.py index d288e9f..9905bcb 100644 --- a/client/models/get_feed_posts_public200_response.py +++ b/client/models/get_gifs_search_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.public_feed_posts_response import PublicFeedPostsResponse +from client.models.gif_search_internal_error import GifSearchInternalError +from client.models.gif_search_response import GifSearchResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETFEEDPOSTSPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "PublicFeedPostsResponse"] +GETGIFSSEARCHRESPONSE_ANY_OF_SCHEMAS = ["GifSearchInternalError", "GifSearchResponse"] -class GetFeedPostsPublic200Response(BaseModel): +class GetGifsSearchResponse(BaseModel): """ - GetFeedPostsPublic200Response + GetGifsSearchResponse """ - # data type: PublicFeedPostsResponse - anyof_schema_1_validator: Optional[PublicFeedPostsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: GifSearchResponse + anyof_schema_1_validator: Optional[GifSearchResponse] = None + # data type: GifSearchInternalError + anyof_schema_2_validator: Optional[GifSearchInternalError] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, PublicFeedPostsResponse]] = None + actual_instance: Optional[Union[GifSearchInternalError, GifSearchResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "PublicFeedPostsResponse" } + any_of_schemas: Set[str] = { "GifSearchInternalError", "GifSearchResponse" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetFeedPostsPublic200Response.model_construct() + instance = GetGifsSearchResponse.model_construct() error_messages = [] - # validate data type: PublicFeedPostsResponse - if not isinstance(v, PublicFeedPostsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `PublicFeedPostsResponse`") + # validate data type: GifSearchResponse + if not isinstance(v, GifSearchResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `GifSearchResponse`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: GifSearchInternalError + if not isinstance(v, GifSearchInternalError): + error_messages.append(f"Error! Input type `{type(v)}` is not `GifSearchInternalError`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetFeedPostsPublic200Response with anyOf schemas: APIError, PublicFeedPostsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in GetGifsSearchResponse with anyOf schemas: GifSearchInternalError, GifSearchResponse. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[PublicFeedPostsResponse] = None + # anyof_schema_1_validator: Optional[GifSearchResponse] = None try: - instance.actual_instance = PublicFeedPostsResponse.from_json(json_str) + instance.actual_instance = GifSearchResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[GifSearchInternalError] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = GifSearchInternalError.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetFeedPostsPublic200Response with anyOf schemas: APIError, PublicFeedPostsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into GetGifsSearchResponse with anyOf schemas: GifSearchInternalError, GifSearchResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, PublicFeedPostsResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], GifSearchInternalError, GifSearchResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/get_feed_posts_stats200_response.py b/client/models/get_gifs_trending_response.py similarity index 67% rename from client/models/get_feed_posts_stats200_response.py rename to client/models/get_gifs_trending_response.py index a5a4e6d..8d79316 100644 --- a/client/models/get_feed_posts_stats200_response.py +++ b/client/models/get_gifs_trending_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.feed_posts_stats_response import FeedPostsStatsResponse +from client.models.gif_search_internal_error import GifSearchInternalError +from client.models.gif_search_response import GifSearchResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETFEEDPOSTSSTATS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "FeedPostsStatsResponse"] +GETGIFSTRENDINGRESPONSE_ANY_OF_SCHEMAS = ["GifSearchInternalError", "GifSearchResponse"] -class GetFeedPostsStats200Response(BaseModel): +class GetGifsTrendingResponse(BaseModel): """ - GetFeedPostsStats200Response + GetGifsTrendingResponse """ - # data type: FeedPostsStatsResponse - anyof_schema_1_validator: Optional[FeedPostsStatsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: GifSearchResponse + anyof_schema_1_validator: Optional[GifSearchResponse] = None + # data type: GifSearchInternalError + anyof_schema_2_validator: Optional[GifSearchInternalError] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, FeedPostsStatsResponse]] = None + actual_instance: Optional[Union[GifSearchInternalError, GifSearchResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "FeedPostsStatsResponse" } + any_of_schemas: Set[str] = { "GifSearchInternalError", "GifSearchResponse" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetFeedPostsStats200Response.model_construct() + instance = GetGifsTrendingResponse.model_construct() error_messages = [] - # validate data type: FeedPostsStatsResponse - if not isinstance(v, FeedPostsStatsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `FeedPostsStatsResponse`") + # validate data type: GifSearchResponse + if not isinstance(v, GifSearchResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `GifSearchResponse`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: GifSearchInternalError + if not isinstance(v, GifSearchInternalError): + error_messages.append(f"Error! Input type `{type(v)}` is not `GifSearchInternalError`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetFeedPostsStats200Response with anyOf schemas: APIError, FeedPostsStatsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in GetGifsTrendingResponse with anyOf schemas: GifSearchInternalError, GifSearchResponse. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[FeedPostsStatsResponse] = None + # anyof_schema_1_validator: Optional[GifSearchResponse] = None try: - instance.actual_instance = FeedPostsStatsResponse.from_json(json_str) + instance.actual_instance = GifSearchResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[GifSearchInternalError] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = GifSearchInternalError.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetFeedPostsStats200Response with anyOf schemas: APIError, FeedPostsStatsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into GetGifsTrendingResponse with anyOf schemas: GifSearchInternalError, GifSearchResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, FeedPostsStatsResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], GifSearchInternalError, GifSearchResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/get_hash_tags200_response.py b/client/models/get_hash_tags200_response.py deleted file mode 100644 index ff792b2..0000000 --- a/client/models/get_hash_tags200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_hash_tags_response import GetHashTagsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETHASHTAGS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetHashTagsResponse"] - -class GetHashTags200Response(BaseModel): - """ - GetHashTags200Response - """ - - # data type: GetHashTagsResponse - anyof_schema_1_validator: Optional[GetHashTagsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetHashTagsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetHashTagsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetHashTags200Response.model_construct() - error_messages = [] - # validate data type: GetHashTagsResponse - if not isinstance(v, GetHashTagsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetHashTagsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetHashTags200Response with anyOf schemas: APIError, GetHashTagsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetHashTagsResponse] = None - try: - instance.actual_instance = GetHashTagsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetHashTags200Response with anyOf schemas: APIError, GetHashTagsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetHashTagsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_moderator200_response.py b/client/models/get_moderator200_response.py deleted file mode 100644 index 56c56e4..0000000 --- a/client/models/get_moderator200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_moderator_response import GetModeratorResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETMODERATOR200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetModeratorResponse"] - -class GetModerator200Response(BaseModel): - """ - GetModerator200Response - """ - - # data type: GetModeratorResponse - anyof_schema_1_validator: Optional[GetModeratorResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetModeratorResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetModeratorResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetModerator200Response.model_construct() - error_messages = [] - # validate data type: GetModeratorResponse - if not isinstance(v, GetModeratorResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetModeratorResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetModerator200Response with anyOf schemas: APIError, GetModeratorResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetModeratorResponse] = None - try: - instance.actual_instance = GetModeratorResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetModerator200Response with anyOf schemas: APIError, GetModeratorResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetModeratorResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_moderators200_response.py b/client/models/get_moderators200_response.py deleted file mode 100644 index f56560d..0000000 --- a/client/models/get_moderators200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_moderators_response import GetModeratorsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETMODERATORS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetModeratorsResponse"] - -class GetModerators200Response(BaseModel): - """ - GetModerators200Response - """ - - # data type: GetModeratorsResponse - anyof_schema_1_validator: Optional[GetModeratorsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetModeratorsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetModeratorsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetModerators200Response.model_construct() - error_messages = [] - # validate data type: GetModeratorsResponse - if not isinstance(v, GetModeratorsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetModeratorsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetModerators200Response with anyOf schemas: APIError, GetModeratorsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetModeratorsResponse] = None - try: - instance.actual_instance = GetModeratorsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetModerators200Response with anyOf schemas: APIError, GetModeratorsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetModeratorsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_notification_count200_response.py b/client/models/get_notification_count200_response.py deleted file mode 100644 index 818287a..0000000 --- a/client/models/get_notification_count200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_notification_count_response import GetNotificationCountResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETNOTIFICATIONCOUNT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetNotificationCountResponse"] - -class GetNotificationCount200Response(BaseModel): - """ - GetNotificationCount200Response - """ - - # data type: GetNotificationCountResponse - anyof_schema_1_validator: Optional[GetNotificationCountResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetNotificationCountResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetNotificationCountResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetNotificationCount200Response.model_construct() - error_messages = [] - # validate data type: GetNotificationCountResponse - if not isinstance(v, GetNotificationCountResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetNotificationCountResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetNotificationCount200Response with anyOf schemas: APIError, GetNotificationCountResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetNotificationCountResponse] = None - try: - instance.actual_instance = GetNotificationCountResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetNotificationCount200Response with anyOf schemas: APIError, GetNotificationCountResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetNotificationCountResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_notifications200_response.py b/client/models/get_notifications200_response.py deleted file mode 100644 index 2f96113..0000000 --- a/client/models/get_notifications200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_notifications_response import GetNotificationsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETNOTIFICATIONS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetNotificationsResponse"] - -class GetNotifications200Response(BaseModel): - """ - GetNotifications200Response - """ - - # data type: GetNotificationsResponse - anyof_schema_1_validator: Optional[GetNotificationsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetNotificationsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetNotificationsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetNotifications200Response.model_construct() - error_messages = [] - # validate data type: GetNotificationsResponse - if not isinstance(v, GetNotificationsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetNotificationsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetNotifications200Response with anyOf schemas: APIError, GetNotificationsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetNotificationsResponse] = None - try: - instance.actual_instance = GetNotificationsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetNotifications200Response with anyOf schemas: APIError, GetNotificationsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetNotificationsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_pending_webhook_events200_response.py b/client/models/get_pending_webhook_events200_response.py deleted file mode 100644 index 115709f..0000000 --- a/client/models/get_pending_webhook_events200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_pending_webhook_events_response import GetPendingWebhookEventsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETPENDINGWEBHOOKEVENTS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetPendingWebhookEventsResponse"] - -class GetPendingWebhookEvents200Response(BaseModel): - """ - GetPendingWebhookEvents200Response - """ - - # data type: GetPendingWebhookEventsResponse - anyof_schema_1_validator: Optional[GetPendingWebhookEventsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetPendingWebhookEventsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetPendingWebhookEventsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetPendingWebhookEvents200Response.model_construct() - error_messages = [] - # validate data type: GetPendingWebhookEventsResponse - if not isinstance(v, GetPendingWebhookEventsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetPendingWebhookEventsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetPendingWebhookEvents200Response with anyOf schemas: APIError, GetPendingWebhookEventsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetPendingWebhookEventsResponse] = None - try: - instance.actual_instance = GetPendingWebhookEventsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetPendingWebhookEvents200Response with anyOf schemas: APIError, GetPendingWebhookEventsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetPendingWebhookEventsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_public_pages_response.py b/client/models/get_public_pages_response.py new file mode 100644 index 0000000..a6d8af0 --- /dev/null +++ b/client/models/get_public_pages_response.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from client.models.public_page import PublicPage +from typing import Optional, Set +from typing_extensions import Self + +class GetPublicPagesResponse(BaseModel): + """ + GetPublicPagesResponse + """ # noqa: E501 + next_cursor: Optional[StrictStr] = Field(alias="nextCursor") + pages: List[PublicPage] + status: APIStatus + __properties: ClassVar[List[str]] = ["nextCursor", "pages", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetPublicPagesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pages (list) + _items = [] + if self.pages: + for _item_pages in self.pages: + if _item_pages: + _items.append(_item_pages.to_dict()) + _dict['pages'] = _items + # set to None if next_cursor (nullable) is None + # and model_fields_set contains the field + if self.next_cursor is None and "next_cursor" in self.model_fields_set: + _dict['nextCursor'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetPublicPagesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nextCursor": obj.get("nextCursor"), + "pages": [PublicPage.from_dict(_item) for _item in obj["pages"]] if obj.get("pages") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_question_config200_response.py b/client/models/get_question_config200_response.py deleted file mode 100644 index 2ac2af2..0000000 --- a/client/models/get_question_config200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_question_config_response import GetQuestionConfigResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETQUESTIONCONFIG200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetQuestionConfigResponse"] - -class GetQuestionConfig200Response(BaseModel): - """ - GetQuestionConfig200Response - """ - - # data type: GetQuestionConfigResponse - anyof_schema_1_validator: Optional[GetQuestionConfigResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetQuestionConfigResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetQuestionConfigResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetQuestionConfig200Response.model_construct() - error_messages = [] - # validate data type: GetQuestionConfigResponse - if not isinstance(v, GetQuestionConfigResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetQuestionConfigResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetQuestionConfig200Response with anyOf schemas: APIError, GetQuestionConfigResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetQuestionConfigResponse] = None - try: - instance.actual_instance = GetQuestionConfigResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetQuestionConfig200Response with anyOf schemas: APIError, GetQuestionConfigResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetQuestionConfigResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_question_configs200_response.py b/client/models/get_question_configs200_response.py deleted file mode 100644 index e5e57ed..0000000 --- a/client/models/get_question_configs200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_question_configs_response import GetQuestionConfigsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETQUESTIONCONFIGS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetQuestionConfigsResponse"] - -class GetQuestionConfigs200Response(BaseModel): - """ - GetQuestionConfigs200Response - """ - - # data type: GetQuestionConfigsResponse - anyof_schema_1_validator: Optional[GetQuestionConfigsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetQuestionConfigsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetQuestionConfigsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetQuestionConfigs200Response.model_construct() - error_messages = [] - # validate data type: GetQuestionConfigsResponse - if not isinstance(v, GetQuestionConfigsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetQuestionConfigsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetQuestionConfigs200Response with anyOf schemas: APIError, GetQuestionConfigsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetQuestionConfigsResponse] = None - try: - instance.actual_instance = GetQuestionConfigsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetQuestionConfigs200Response with anyOf schemas: APIError, GetQuestionConfigsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetQuestionConfigsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_question_result200_response.py b/client/models/get_question_result200_response.py deleted file mode 100644 index 29707cf..0000000 --- a/client/models/get_question_result200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_question_result_response import GetQuestionResultResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETQUESTIONRESULT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetQuestionResultResponse"] - -class GetQuestionResult200Response(BaseModel): - """ - GetQuestionResult200Response - """ - - # data type: GetQuestionResultResponse - anyof_schema_1_validator: Optional[GetQuestionResultResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetQuestionResultResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetQuestionResultResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetQuestionResult200Response.model_construct() - error_messages = [] - # validate data type: GetQuestionResultResponse - if not isinstance(v, GetQuestionResultResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetQuestionResultResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetQuestionResult200Response with anyOf schemas: APIError, GetQuestionResultResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetQuestionResultResponse] = None - try: - instance.actual_instance = GetQuestionResultResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetQuestionResult200Response with anyOf schemas: APIError, GetQuestionResultResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetQuestionResultResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_question_results200_response.py b/client/models/get_question_results200_response.py deleted file mode 100644 index 420daff..0000000 --- a/client/models/get_question_results200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_question_results_response import GetQuestionResultsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETQUESTIONRESULTS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetQuestionResultsResponse"] - -class GetQuestionResults200Response(BaseModel): - """ - GetQuestionResults200Response - """ - - # data type: GetQuestionResultsResponse - anyof_schema_1_validator: Optional[GetQuestionResultsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetQuestionResultsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetQuestionResultsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetQuestionResults200Response.model_construct() - error_messages = [] - # validate data type: GetQuestionResultsResponse - if not isinstance(v, GetQuestionResultsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetQuestionResultsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetQuestionResults200Response with anyOf schemas: APIError, GetQuestionResultsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetQuestionResultsResponse] = None - try: - instance.actual_instance = GetQuestionResultsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetQuestionResults200Response with anyOf schemas: APIError, GetQuestionResultsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetQuestionResultsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_sso_users200_response.py b/client/models/get_sso_users_response.py similarity index 92% rename from client/models/get_sso_users200_response.py rename to client/models/get_sso_users_response.py index 873224f..178ada9 100644 --- a/client/models/get_sso_users200_response.py +++ b/client/models/get_sso_users_response.py @@ -23,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class GetSSOUsers200Response(BaseModel): +class GetSSOUsersResponse(BaseModel): """ - GetSSOUsers200Response + GetSSOUsersResponse """ # noqa: E501 users: List[APISSOUser] status: StrictStr @@ -49,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of GetSSOUsers200Response from a JSON string""" + """Create an instance of GetSSOUsersResponse from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -81,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of GetSSOUsers200Response from a dict""" + """Create an instance of GetSSOUsersResponse from a dict""" if obj is None: return None diff --git a/client/models/get_tenant200_response.py b/client/models/get_tenant200_response.py deleted file mode 100644 index 2555bd7..0000000 --- a/client/models/get_tenant200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_tenant_response import GetTenantResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTENANT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTenantResponse"] - -class GetTenant200Response(BaseModel): - """ - GetTenant200Response - """ - - # data type: GetTenantResponse - anyof_schema_1_validator: Optional[GetTenantResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTenantResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTenantResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTenant200Response.model_construct() - error_messages = [] - # validate data type: GetTenantResponse - if not isinstance(v, GetTenantResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTenantResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTenant200Response with anyOf schemas: APIError, GetTenantResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTenantResponse] = None - try: - instance.actual_instance = GetTenantResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTenant200Response with anyOf schemas: APIError, GetTenantResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTenantResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_tenant_daily_usages200_response.py b/client/models/get_tenant_daily_usages200_response.py deleted file mode 100644 index 12fb868..0000000 --- a/client/models/get_tenant_daily_usages200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_tenant_daily_usages_response import GetTenantDailyUsagesResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTENANTDAILYUSAGES200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTenantDailyUsagesResponse"] - -class GetTenantDailyUsages200Response(BaseModel): - """ - GetTenantDailyUsages200Response - """ - - # data type: GetTenantDailyUsagesResponse - anyof_schema_1_validator: Optional[GetTenantDailyUsagesResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTenantDailyUsagesResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTenantDailyUsagesResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTenantDailyUsages200Response.model_construct() - error_messages = [] - # validate data type: GetTenantDailyUsagesResponse - if not isinstance(v, GetTenantDailyUsagesResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTenantDailyUsagesResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTenantDailyUsages200Response with anyOf schemas: APIError, GetTenantDailyUsagesResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTenantDailyUsagesResponse] = None - try: - instance.actual_instance = GetTenantDailyUsagesResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTenantDailyUsages200Response with anyOf schemas: APIError, GetTenantDailyUsagesResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTenantDailyUsagesResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_tenant_manual_badges_response.py b/client/models/get_tenant_manual_badges_response.py new file mode 100644 index 0000000..e06d41e --- /dev/null +++ b/client/models/get_tenant_manual_badges_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.tenant_badge import TenantBadge +from typing import Optional, Set +from typing_extensions import Self + +class GetTenantManualBadgesResponse(BaseModel): + """ + GetTenantManualBadgesResponse + """ # noqa: E501 + badges: List[TenantBadge] + status: APIStatus + __properties: ClassVar[List[str]] = ["badges", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTenantManualBadgesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in badges (list) + _items = [] + if self.badges: + for _item_badges in self.badges: + if _item_badges: + _items.append(_item_badges.to_dict()) + _dict['badges'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTenantManualBadgesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badges": [TenantBadge.from_dict(_item) for _item in obj["badges"]] if obj.get("badges") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_tenant_package200_response.py b/client/models/get_tenant_package200_response.py deleted file mode 100644 index fb449ad..0000000 --- a/client/models/get_tenant_package200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_tenant_package_response import GetTenantPackageResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTENANTPACKAGE200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTenantPackageResponse"] - -class GetTenantPackage200Response(BaseModel): - """ - GetTenantPackage200Response - """ - - # data type: GetTenantPackageResponse - anyof_schema_1_validator: Optional[GetTenantPackageResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTenantPackageResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTenantPackageResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTenantPackage200Response.model_construct() - error_messages = [] - # validate data type: GetTenantPackageResponse - if not isinstance(v, GetTenantPackageResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTenantPackageResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTenantPackage200Response with anyOf schemas: APIError, GetTenantPackageResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTenantPackageResponse] = None - try: - instance.actual_instance = GetTenantPackageResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTenantPackage200Response with anyOf schemas: APIError, GetTenantPackageResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTenantPackageResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_tenant_packages200_response.py b/client/models/get_tenant_packages200_response.py deleted file mode 100644 index 04e0494..0000000 --- a/client/models/get_tenant_packages200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_tenant_packages_response import GetTenantPackagesResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTENANTPACKAGES200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTenantPackagesResponse"] - -class GetTenantPackages200Response(BaseModel): - """ - GetTenantPackages200Response - """ - - # data type: GetTenantPackagesResponse - anyof_schema_1_validator: Optional[GetTenantPackagesResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTenantPackagesResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTenantPackagesResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTenantPackages200Response.model_construct() - error_messages = [] - # validate data type: GetTenantPackagesResponse - if not isinstance(v, GetTenantPackagesResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTenantPackagesResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTenantPackages200Response with anyOf schemas: APIError, GetTenantPackagesResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTenantPackagesResponse] = None - try: - instance.actual_instance = GetTenantPackagesResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTenantPackages200Response with anyOf schemas: APIError, GetTenantPackagesResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTenantPackagesResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_tenant_user200_response.py b/client/models/get_tenant_user200_response.py deleted file mode 100644 index 8f10ebb..0000000 --- a/client/models/get_tenant_user200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_tenant_user_response import GetTenantUserResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTENANTUSER200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTenantUserResponse"] - -class GetTenantUser200Response(BaseModel): - """ - GetTenantUser200Response - """ - - # data type: GetTenantUserResponse - anyof_schema_1_validator: Optional[GetTenantUserResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTenantUserResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTenantUserResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTenantUser200Response.model_construct() - error_messages = [] - # validate data type: GetTenantUserResponse - if not isinstance(v, GetTenantUserResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTenantUserResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTenantUser200Response with anyOf schemas: APIError, GetTenantUserResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTenantUserResponse] = None - try: - instance.actual_instance = GetTenantUserResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTenantUser200Response with anyOf schemas: APIError, GetTenantUserResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTenantUserResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_tenant_users200_response.py b/client/models/get_tenant_users200_response.py deleted file mode 100644 index aeb2718..0000000 --- a/client/models/get_tenant_users200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_tenant_users_response import GetTenantUsersResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTENANTUSERS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTenantUsersResponse"] - -class GetTenantUsers200Response(BaseModel): - """ - GetTenantUsers200Response - """ - - # data type: GetTenantUsersResponse - anyof_schema_1_validator: Optional[GetTenantUsersResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTenantUsersResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTenantUsersResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTenantUsers200Response.model_construct() - error_messages = [] - # validate data type: GetTenantUsersResponse - if not isinstance(v, GetTenantUsersResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTenantUsersResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTenantUsers200Response with anyOf schemas: APIError, GetTenantUsersResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTenantUsersResponse] = None - try: - instance.actual_instance = GetTenantUsersResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTenantUsers200Response with anyOf schemas: APIError, GetTenantUsersResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTenantUsersResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_tenants200_response.py b/client/models/get_tenants200_response.py deleted file mode 100644 index 3dd306e..0000000 --- a/client/models/get_tenants200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_tenants_response import GetTenantsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTENANTS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTenantsResponse"] - -class GetTenants200Response(BaseModel): - """ - GetTenants200Response - """ - - # data type: GetTenantsResponse - anyof_schema_1_validator: Optional[GetTenantsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTenantsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTenantsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTenants200Response.model_construct() - error_messages = [] - # validate data type: GetTenantsResponse - if not isinstance(v, GetTenantsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTenantsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTenants200Response with anyOf schemas: APIError, GetTenantsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTenantsResponse] = None - try: - instance.actual_instance = GetTenantsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTenants200Response with anyOf schemas: APIError, GetTenantsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTenantsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_ticket200_response.py b/client/models/get_ticket200_response.py deleted file mode 100644 index 4eaa8b9..0000000 --- a/client/models/get_ticket200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_ticket_response import GetTicketResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTICKET200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTicketResponse"] - -class GetTicket200Response(BaseModel): - """ - GetTicket200Response - """ - - # data type: GetTicketResponse - anyof_schema_1_validator: Optional[GetTicketResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTicketResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTicketResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTicket200Response.model_construct() - error_messages = [] - # validate data type: GetTicketResponse - if not isinstance(v, GetTicketResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTicketResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTicket200Response with anyOf schemas: APIError, GetTicketResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTicketResponse] = None - try: - instance.actual_instance = GetTicketResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTicket200Response with anyOf schemas: APIError, GetTicketResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTicketResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_tickets200_response.py b/client/models/get_tickets200_response.py deleted file mode 100644 index bd591be..0000000 --- a/client/models/get_tickets200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_tickets_response import GetTicketsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETTICKETS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetTicketsResponse"] - -class GetTickets200Response(BaseModel): - """ - GetTickets200Response - """ - - # data type: GetTicketsResponse - anyof_schema_1_validator: Optional[GetTicketsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetTicketsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetTicketsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetTickets200Response.model_construct() - error_messages = [] - # validate data type: GetTicketsResponse - if not isinstance(v, GetTicketsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetTicketsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetTickets200Response with anyOf schemas: APIError, GetTicketsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetTicketsResponse] = None - try: - instance.actual_instance = GetTicketsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetTickets200Response with anyOf schemas: APIError, GetTicketsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetTicketsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_translations_response.py b/client/models/get_translations_response.py new file mode 100644 index 0000000..dd7e452 --- /dev/null +++ b/client/models/get_translations_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GetTranslationsResponse(BaseModel): + """ + GetTranslationsResponse + """ # noqa: E501 + translations: Dict[str, StrictStr] = Field(description="Construct a type with a set of properties K of type T") + status: APIStatus + __properties: ClassVar[List[str]] = ["translations", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetTranslationsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetTranslationsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "translations": obj.get("translations"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_user200_response.py b/client/models/get_user200_response.py deleted file mode 100644 index b6046a4..0000000 --- a/client/models/get_user200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_user_response import GetUserResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETUSER200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetUserResponse"] - -class GetUser200Response(BaseModel): - """ - GetUser200Response - """ - - # data type: GetUserResponse - anyof_schema_1_validator: Optional[GetUserResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetUserResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetUserResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetUser200Response.model_construct() - error_messages = [] - # validate data type: GetUserResponse - if not isinstance(v, GetUserResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetUserResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetUser200Response with anyOf schemas: APIError, GetUserResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetUserResponse] = None - try: - instance.actual_instance = GetUserResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetUser200Response with anyOf schemas: APIError, GetUserResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetUserResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_user_badge200_response.py b/client/models/get_user_badge200_response.py deleted file mode 100644 index c6aaf89..0000000 --- a/client/models/get_user_badge200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.api_get_user_badge_response import APIGetUserBadgeResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETUSERBADGE200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "APIGetUserBadgeResponse"] - -class GetUserBadge200Response(BaseModel): - """ - GetUserBadge200Response - """ - - # data type: APIGetUserBadgeResponse - anyof_schema_1_validator: Optional[APIGetUserBadgeResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, APIGetUserBadgeResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "APIGetUserBadgeResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetUserBadge200Response.model_construct() - error_messages = [] - # validate data type: APIGetUserBadgeResponse - if not isinstance(v, APIGetUserBadgeResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIGetUserBadgeResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetUserBadge200Response with anyOf schemas: APIError, APIGetUserBadgeResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APIGetUserBadgeResponse] = None - try: - instance.actual_instance = APIGetUserBadgeResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetUserBadge200Response with anyOf schemas: APIError, APIGetUserBadgeResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, APIGetUserBadgeResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_user_badge_progress_by_id200_response.py b/client/models/get_user_badge_progress_by_id200_response.py deleted file mode 100644 index d2e8dd0..0000000 --- a/client/models/get_user_badge_progress_by_id200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.api_get_user_badge_progress_response import APIGetUserBadgeProgressResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETUSERBADGEPROGRESSBYID200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "APIGetUserBadgeProgressResponse"] - -class GetUserBadgeProgressById200Response(BaseModel): - """ - GetUserBadgeProgressById200Response - """ - - # data type: APIGetUserBadgeProgressResponse - anyof_schema_1_validator: Optional[APIGetUserBadgeProgressResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, APIGetUserBadgeProgressResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "APIGetUserBadgeProgressResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetUserBadgeProgressById200Response.model_construct() - error_messages = [] - # validate data type: APIGetUserBadgeProgressResponse - if not isinstance(v, APIGetUserBadgeProgressResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIGetUserBadgeProgressResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetUserBadgeProgressById200Response with anyOf schemas: APIError, APIGetUserBadgeProgressResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APIGetUserBadgeProgressResponse] = None - try: - instance.actual_instance = APIGetUserBadgeProgressResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetUserBadgeProgressById200Response with anyOf schemas: APIError, APIGetUserBadgeProgressResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, APIGetUserBadgeProgressResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_user_badge_progress_list200_response.py b/client/models/get_user_badge_progress_list200_response.py deleted file mode 100644 index 6936b8c..0000000 --- a/client/models/get_user_badge_progress_list200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.api_get_user_badge_progress_list_response import APIGetUserBadgeProgressListResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETUSERBADGEPROGRESSLIST200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "APIGetUserBadgeProgressListResponse"] - -class GetUserBadgeProgressList200Response(BaseModel): - """ - GetUserBadgeProgressList200Response - """ - - # data type: APIGetUserBadgeProgressListResponse - anyof_schema_1_validator: Optional[APIGetUserBadgeProgressListResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, APIGetUserBadgeProgressListResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "APIGetUserBadgeProgressListResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetUserBadgeProgressList200Response.model_construct() - error_messages = [] - # validate data type: APIGetUserBadgeProgressListResponse - if not isinstance(v, APIGetUserBadgeProgressListResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIGetUserBadgeProgressListResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetUserBadgeProgressList200Response with anyOf schemas: APIError, APIGetUserBadgeProgressListResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APIGetUserBadgeProgressListResponse] = None - try: - instance.actual_instance = APIGetUserBadgeProgressListResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetUserBadgeProgressList200Response with anyOf schemas: APIError, APIGetUserBadgeProgressListResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, APIGetUserBadgeProgressListResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_user_badges200_response.py b/client/models/get_user_badges200_response.py deleted file mode 100644 index 1644c82..0000000 --- a/client/models/get_user_badges200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.api_get_user_badges_response import APIGetUserBadgesResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETUSERBADGES200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "APIGetUserBadgesResponse"] - -class GetUserBadges200Response(BaseModel): - """ - GetUserBadges200Response - """ - - # data type: APIGetUserBadgesResponse - anyof_schema_1_validator: Optional[APIGetUserBadgesResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, APIGetUserBadgesResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "APIGetUserBadgesResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetUserBadges200Response.model_construct() - error_messages = [] - # validate data type: APIGetUserBadgesResponse - if not isinstance(v, APIGetUserBadgesResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIGetUserBadgesResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetUserBadges200Response with anyOf schemas: APIError, APIGetUserBadgesResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APIGetUserBadgesResponse] = None - try: - instance.actual_instance = APIGetUserBadgesResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetUserBadges200Response with anyOf schemas: APIError, APIGetUserBadgesResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, APIGetUserBadgesResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_user_internal_profile_response.py b/client/models/get_user_internal_profile_response.py new file mode 100644 index 0000000..6203533 --- /dev/null +++ b/client/models/get_user_internal_profile_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.get_user_internal_profile_response_profile import GetUserInternalProfileResponseProfile +from typing import Optional, Set +from typing_extensions import Self + +class GetUserInternalProfileResponse(BaseModel): + """ + GetUserInternalProfileResponse + """ # noqa: E501 + profile: GetUserInternalProfileResponseProfile + status: APIStatus + __properties: ClassVar[List[str]] = ["profile", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUserInternalProfileResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of profile + if self.profile: + _dict['profile'] = self.profile.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUserInternalProfileResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "profile": GetUserInternalProfileResponseProfile.from_dict(obj["profile"]) if obj.get("profile") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_user_internal_profile_response_profile.py b/client/models/get_user_internal_profile_response_profile.py new file mode 100644 index 0000000..4139bd1 --- /dev/null +++ b/client/models/get_user_internal_profile_response_profile.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class GetUserInternalProfileResponseProfile(BaseModel): + """ + GetUserInternalProfileResponseProfile + """ # noqa: E501 + commenter_name: Optional[StrictStr] = Field(default=None, alias="commenterName") + first_comment_date: Optional[datetime] = Field(default=None, alias="firstCommentDate") + ip_hash: Optional[StrictStr] = Field(default=None, alias="ipHash") + country_flag: Optional[StrictStr] = Field(default=None, alias="countryFlag") + country_code: Optional[StrictStr] = Field(default=None, alias="countryCode") + website_url: Optional[StrictStr] = Field(default=None, alias="websiteUrl") + bio: Optional[StrictStr] = None + karma: Optional[Union[StrictFloat, StrictInt]] = None + locale: Optional[StrictStr] = None + verified: Optional[StrictBool] = None + avatar_src: Optional[StrictStr] = Field(default=None, alias="avatarSrc") + display_name: Optional[StrictStr] = Field(default=None, alias="displayName") + username: Optional[StrictStr] = None + commenter_email: Optional[StrictStr] = Field(default=None, alias="commenterEmail") + email: Optional[StrictStr] = None + anon_user_id: Optional[StrictStr] = Field(default=None, alias="anonUserId") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + __properties: ClassVar[List[str]] = ["commenterName", "firstCommentDate", "ipHash", "countryFlag", "countryCode", "websiteUrl", "bio", "karma", "locale", "verified", "avatarSrc", "displayName", "username", "commenterEmail", "email", "anonUserId", "userId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUserInternalProfileResponseProfile from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if first_comment_date (nullable) is None + # and model_fields_set contains the field + if self.first_comment_date is None and "first_comment_date" in self.model_fields_set: + _dict['firstCommentDate'] = None + + # set to None if website_url (nullable) is None + # and model_fields_set contains the field + if self.website_url is None and "website_url" in self.model_fields_set: + _dict['websiteUrl'] = None + + # set to None if avatar_src (nullable) is None + # and model_fields_set contains the field + if self.avatar_src is None and "avatar_src" in self.model_fields_set: + _dict['avatarSrc'] = None + + # set to None if commenter_email (nullable) is None + # and model_fields_set contains the field + if self.commenter_email is None and "commenter_email" in self.model_fields_set: + _dict['commenterEmail'] = None + + # set to None if email (nullable) is None + # and model_fields_set contains the field + if self.email is None and "email" in self.model_fields_set: + _dict['email'] = None + + # set to None if anon_user_id (nullable) is None + # and model_fields_set contains the field + if self.anon_user_id is None and "anon_user_id" in self.model_fields_set: + _dict['anonUserId'] = None + + # set to None if user_id (nullable) is None + # and model_fields_set contains the field + if self.user_id is None and "user_id" in self.model_fields_set: + _dict['userId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUserInternalProfileResponseProfile from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commenterName": obj.get("commenterName"), + "firstCommentDate": obj.get("firstCommentDate"), + "ipHash": obj.get("ipHash"), + "countryFlag": obj.get("countryFlag"), + "countryCode": obj.get("countryCode"), + "websiteUrl": obj.get("websiteUrl"), + "bio": obj.get("bio"), + "karma": obj.get("karma"), + "locale": obj.get("locale"), + "verified": obj.get("verified"), + "avatarSrc": obj.get("avatarSrc"), + "displayName": obj.get("displayName"), + "username": obj.get("username"), + "commenterEmail": obj.get("commenterEmail"), + "email": obj.get("email"), + "anonUserId": obj.get("anonUserId"), + "userId": obj.get("userId") + }) + return _obj + + diff --git a/client/models/get_user_manual_badges_response.py b/client/models/get_user_manual_badges_response.py new file mode 100644 index 0000000..c2a29d6 --- /dev/null +++ b/client/models/get_user_manual_badges_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.user_badge import UserBadge +from typing import Optional, Set +from typing_extensions import Self + +class GetUserManualBadgesResponse(BaseModel): + """ + GetUserManualBadgesResponse + """ # noqa: E501 + badges: List[UserBadge] + status: APIStatus + __properties: ClassVar[List[str]] = ["badges", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUserManualBadgesResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in badges (list) + _items = [] + if self.badges: + for _item_badges in self.badges: + if _item_badges: + _items.append(_item_badges.to_dict()) + _dict['badges'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUserManualBadgesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badges": [UserBadge.from_dict(_item) for _item in obj["badges"]] if obj.get("badges") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_user_notification_count200_response.py b/client/models/get_user_notification_count200_response.py deleted file mode 100644 index fc892d7..0000000 --- a/client/models/get_user_notification_count200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_user_notification_count_response import GetUserNotificationCountResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETUSERNOTIFICATIONCOUNT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetUserNotificationCountResponse"] - -class GetUserNotificationCount200Response(BaseModel): - """ - GetUserNotificationCount200Response - """ - - # data type: GetUserNotificationCountResponse - anyof_schema_1_validator: Optional[GetUserNotificationCountResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetUserNotificationCountResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetUserNotificationCountResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetUserNotificationCount200Response.model_construct() - error_messages = [] - # validate data type: GetUserNotificationCountResponse - if not isinstance(v, GetUserNotificationCountResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetUserNotificationCountResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetUserNotificationCount200Response with anyOf schemas: APIError, GetUserNotificationCountResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetUserNotificationCountResponse] = None - try: - instance.actual_instance = GetUserNotificationCountResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetUserNotificationCount200Response with anyOf schemas: APIError, GetUserNotificationCountResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetUserNotificationCountResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_user_notifications200_response.py b/client/models/get_user_notifications200_response.py deleted file mode 100644 index 0e03948..0000000 --- a/client/models/get_user_notifications200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_my_notifications_response import GetMyNotificationsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETUSERNOTIFICATIONS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetMyNotificationsResponse"] - -class GetUserNotifications200Response(BaseModel): - """ - GetUserNotifications200Response - """ - - # data type: GetMyNotificationsResponse - anyof_schema_1_validator: Optional[GetMyNotificationsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetMyNotificationsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetMyNotificationsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetUserNotifications200Response.model_construct() - error_messages = [] - # validate data type: GetMyNotificationsResponse - if not isinstance(v, GetMyNotificationsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetMyNotificationsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetUserNotifications200Response with anyOf schemas: APIError, GetMyNotificationsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetMyNotificationsResponse] = None - try: - instance.actual_instance = GetMyNotificationsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetUserNotifications200Response with anyOf schemas: APIError, GetMyNotificationsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetMyNotificationsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_user_reacts_public200_response.py b/client/models/get_user_reacts_public200_response.py deleted file mode 100644 index 3d1dff9..0000000 --- a/client/models/get_user_reacts_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.user_reacts_response import UserReactsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETUSERREACTSPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "UserReactsResponse"] - -class GetUserReactsPublic200Response(BaseModel): - """ - GetUserReactsPublic200Response - """ - - # data type: UserReactsResponse - anyof_schema_1_validator: Optional[UserReactsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, UserReactsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "UserReactsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetUserReactsPublic200Response.model_construct() - error_messages = [] - # validate data type: UserReactsResponse - if not isinstance(v, UserReactsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `UserReactsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetUserReactsPublic200Response with anyOf schemas: APIError, UserReactsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[UserReactsResponse] = None - try: - instance.actual_instance = UserReactsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetUserReactsPublic200Response with anyOf schemas: APIError, UserReactsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, UserReactsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_user_trust_factor_response.py b/client/models/get_user_trust_factor_response.py new file mode 100644 index 0000000..6d64e9e --- /dev/null +++ b/client/models/get_user_trust_factor_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GetUserTrustFactorResponse(BaseModel): + """ + GetUserTrustFactorResponse + """ # noqa: E501 + manual_trust_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="manualTrustFactor") + auto_trust_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="autoTrustFactor") + status: APIStatus + __properties: ClassVar[List[str]] = ["manualTrustFactor", "autoTrustFactor", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetUserTrustFactorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetUserTrustFactorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "manualTrustFactor": obj.get("manualTrustFactor"), + "autoTrustFactor": obj.get("autoTrustFactor"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_v1_page_likes.py b/client/models/get_v1_page_likes.py new file mode 100644 index 0000000..1e582fc --- /dev/null +++ b/client/models/get_v1_page_likes.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GetV1PageLikes(BaseModel): + """ + GetV1PageLikes + """ # noqa: E501 + url_id_ws: StrictStr = Field(alias="urlIdWS") + did_like: StrictBool = Field(alias="didLike") + comment_count: StrictInt = Field(alias="commentCount") + like_count: StrictInt = Field(alias="likeCount") + status: APIStatus + __properties: ClassVar[List[str]] = ["urlIdWS", "didLike", "commentCount", "likeCount", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetV1PageLikes from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetV1PageLikes from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "urlIdWS": obj.get("urlIdWS"), + "didLike": obj.get("didLike"), + "commentCount": obj.get("commentCount"), + "likeCount": obj.get("likeCount"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_v2_page_react_users_response.py b/client/models/get_v2_page_react_users_response.py new file mode 100644 index 0000000..a11aa8e --- /dev/null +++ b/client/models/get_v2_page_react_users_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GetV2PageReactUsersResponse(BaseModel): + """ + GetV2PageReactUsersResponse + """ # noqa: E501 + user_names: List[StrictStr] = Field(alias="userNames") + status: APIStatus + __properties: ClassVar[List[str]] = ["userNames", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetV2PageReactUsersResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetV2PageReactUsersResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "userNames": obj.get("userNames"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_v2_page_reacts.py b/client/models/get_v2_page_reacts.py new file mode 100644 index 0000000..2a6e119 --- /dev/null +++ b/client/models/get_v2_page_reacts.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GetV2PageReacts(BaseModel): + """ + GetV2PageReacts + """ # noqa: E501 + reacted_ids: Optional[List[StrictStr]] = Field(default=None, alias="reactedIds") + counts: Optional[Dict[str, Union[StrictFloat, StrictInt]]] = Field(default=None, description="Construct a type with a set of properties K of type T") + status: APIStatus + __properties: ClassVar[List[str]] = ["reactedIds", "counts", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GetV2PageReacts from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GetV2PageReacts from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reactedIds": obj.get("reactedIds"), + "counts": obj.get("counts"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/get_votes200_response.py b/client/models/get_votes200_response.py deleted file mode 100644 index 7973529..0000000 --- a/client/models/get_votes200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_votes_response import GetVotesResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETVOTES200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetVotesResponse"] - -class GetVotes200Response(BaseModel): - """ - GetVotes200Response - """ - - # data type: GetVotesResponse - anyof_schema_1_validator: Optional[GetVotesResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetVotesResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetVotesResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetVotes200Response.model_construct() - error_messages = [] - # validate data type: GetVotesResponse - if not isinstance(v, GetVotesResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetVotesResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetVotes200Response with anyOf schemas: APIError, GetVotesResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetVotesResponse] = None - try: - instance.actual_instance = GetVotesResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetVotes200Response with anyOf schemas: APIError, GetVotesResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetVotesResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_votes_for_user200_response.py b/client/models/get_votes_for_user200_response.py deleted file mode 100644 index ee3fafc..0000000 --- a/client/models/get_votes_for_user200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.get_votes_for_user_response import GetVotesForUserResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -GETVOTESFORUSER200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetVotesForUserResponse"] - -class GetVotesForUser200Response(BaseModel): - """ - GetVotesForUser200Response - """ - - # data type: GetVotesForUserResponse - anyof_schema_1_validator: Optional[GetVotesForUserResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetVotesForUserResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetVotesForUserResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = GetVotesForUser200Response.model_construct() - error_messages = [] - # validate data type: GetVotesForUserResponse - if not isinstance(v, GetVotesForUserResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetVotesForUserResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in GetVotesForUser200Response with anyOf schemas: APIError, GetVotesForUserResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[GetVotesForUserResponse] = None - try: - instance.actual_instance = GetVotesForUserResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into GetVotesForUser200Response with anyOf schemas: APIError, GetVotesForUserResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetVotesForUserResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/gif_get_large_response.py b/client/models/gif_get_large_response.py new file mode 100644 index 0000000..033eb72 --- /dev/null +++ b/client/models/gif_get_large_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GifGetLargeResponse(BaseModel): + """ + GifGetLargeResponse + """ # noqa: E501 + src: StrictStr + status: APIStatus + __properties: ClassVar[List[str]] = ["src", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GifGetLargeResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GifGetLargeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "src": obj.get("src"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/gif_search_internal_error.py b/client/models/gif_search_internal_error.py new file mode 100644 index 0000000..3a22a2f --- /dev/null +++ b/client/models/gif_search_internal_error.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class GifSearchInternalError(BaseModel): + """ + GifSearchInternalError + """ # noqa: E501 + code: StrictStr + status: APIStatus + __properties: ClassVar[List[str]] = ["code", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GifSearchInternalError from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GifSearchInternalError from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "code": obj.get("code"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/gif_search_response.py b/client/models/gif_search_response.py new file mode 100644 index 0000000..e49e09d --- /dev/null +++ b/client/models/gif_search_response.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.gif_search_response_images_inner_inner import GifSearchResponseImagesInnerInner +from typing import Optional, Set +from typing_extensions import Self + +class GifSearchResponse(BaseModel): + """ + GifSearchResponse + """ # noqa: E501 + images: List[List[GifSearchResponseImagesInnerInner]] + status: APIStatus + __properties: ClassVar[List[str]] = ["images", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of GifSearchResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in images (list of list) + _items = [] + if self.images: + for _item_images in self.images: + if _item_images: + _items.append( + [_inner_item.to_dict() for _inner_item in _item_images if _inner_item is not None] + ) + _dict['images'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of GifSearchResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "images": [ + [GifSearchResponseImagesInnerInner.from_dict(_inner_item) for _inner_item in _item] + for _item in obj["images"] + ] if obj.get("images") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/record_string_string_or_number_value.py b/client/models/gif_search_response_images_inner_inner.py similarity index 90% rename from client/models/record_string_string_or_number_value.py rename to client/models/gif_search_response_images_inner_inner.py index b82ebea..5cafdf5 100644 --- a/client/models/record_string_string_or_number_value.py +++ b/client/models/gif_search_response_images_inner_inner.py @@ -23,11 +23,11 @@ from typing_extensions import Literal, Self from pydantic import Field -RECORDSTRINGSTRINGORNUMBERVALUE_ANY_OF_SCHEMAS = ["float", "str"] +GIFSEARCHRESPONSEIMAGESINNERINNER_ANY_OF_SCHEMAS = ["float", "str"] -class RecordStringStringOrNumberValue(BaseModel): +class GifSearchResponseImagesInnerInner(BaseModel): """ - RecordStringStringOrNumberValue + GifSearchResponseImagesInnerInner """ # data type: str @@ -57,7 +57,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = RecordStringStringOrNumberValue.model_construct() + instance = GifSearchResponseImagesInnerInner.model_construct() error_messages = [] # validate data type: str try: @@ -73,7 +73,7 @@ def actual_instance_must_validate_anyof(cls, v): error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in RecordStringStringOrNumberValue with anyOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in GifSearchResponseImagesInnerInner with anyOf schemas: float, str. Details: " + ", ".join(error_messages)) else: return v @@ -107,7 +107,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into RecordStringStringOrNumberValue with anyOf schemas: float, str. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into GifSearchResponseImagesInnerInner with anyOf schemas: float, str. Details: " + ", ".join(error_messages)) else: return instance diff --git a/client/models/header_account_notification.py b/client/models/header_account_notification.py index ac35048..4bd60c5 100644 --- a/client/models/header_account_notification.py +++ b/client/models/header_account_notification.py @@ -36,7 +36,8 @@ class HeaderAccountNotification(BaseModel): link_url: Optional[StrictStr] = Field(alias="linkUrl") link_text: Optional[StrictStr] = Field(alias="linkText") created_at: datetime = Field(alias="createdAt") - __properties: ClassVar[List[str]] = ["_id", "title", "message", "messagesByLocale", "dates", "severity", "linkUrl", "linkText", "createdAt"] + type: Optional[StrictStr] = Field(default=None, description="Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\").") + __properties: ClassVar[List[str]] = ["_id", "title", "message", "messagesByLocale", "dates", "severity", "linkUrl", "linkText", "createdAt", "type"] model_config = ConfigDict( populate_by_name=True, @@ -97,6 +98,11 @@ def to_dict(self) -> Dict[str, Any]: if self.link_text is None and "link_text" in self.model_fields_set: _dict['linkText'] = None + # set to None if type (nullable) is None + # and model_fields_set contains the field + if self.type is None and "type" in self.model_fields_set: + _dict['type'] = None + return _dict @classmethod @@ -117,7 +123,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "severity": obj.get("severity"), "linkUrl": obj.get("linkUrl"), "linkText": obj.get("linkText"), - "createdAt": obj.get("createdAt") + "createdAt": obj.get("createdAt"), + "type": obj.get("type") }) return _obj diff --git a/client/models/imported_agent_approval_notification_frequency.py b/client/models/imported_agent_approval_notification_frequency.py new file mode 100644 index 0000000..b211f49 --- /dev/null +++ b/client/models/imported_agent_approval_notification_frequency.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class ImportedAgentApprovalNotificationFrequency(int, Enum): + """ + ImportedAgentApprovalNotificationFrequency + """ + + """ + allowed enum values + """ + NUMBER_MINUS_1 = -1 + NUMBER_0 = 0 + NUMBER_1 = 1 + NUMBER_2 = 2 + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of ImportedAgentApprovalNotificationFrequency from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/client/models/live_event.py b/client/models/live_event.py index 1e9fac1..e97bb40 100644 --- a/client/models/live_event.py +++ b/client/models/live_event.py @@ -48,8 +48,9 @@ class LiveEvent(BaseModel): is_closed: Optional[StrictBool] = Field(default=None, alias="isClosed") uj: Optional[List[StrictStr]] = None ul: Optional[List[StrictStr]] = None + sc: Optional[StrictInt] = None changes: Optional[Dict[str, StrictInt]] = None - __properties: ClassVar[List[str]] = ["type", "timestamp", "ts", "broadcastId", "userId", "badges", "notification", "vote", "comment", "feedPost", "extraInfo", "config", "isClosed", "uj", "ul", "changes"] + __properties: ClassVar[List[str]] = ["type", "timestamp", "ts", "broadcastId", "userId", "badges", "notification", "vote", "comment", "feedPost", "extraInfo", "config", "isClosed", "uj", "ul", "sc", "changes"] model_config = ConfigDict( populate_by_name=True, @@ -139,6 +140,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "isClosed": obj.get("isClosed"), "uj": obj.get("uj"), "ul": obj.get("ul"), + "sc": obj.get("sc"), "changes": obj.get("changes") }) return _obj diff --git a/client/models/live_event_type.py b/client/models/live_event_type.py index 8873879..7b716b4 100644 --- a/client/models/live_event_type.py +++ b/client/models/live_event_type.py @@ -43,6 +43,12 @@ class LiveEventType(str, Enum): NEW_MINUS_FEED_MINUS_POST = 'new-feed-post' UPDATED_MINUS_FEED_MINUS_POST = 'updated-feed-post' DELETED_MINUS_FEED_MINUS_POST = 'deleted-feed-post' + NEW_MINUS_TICKET = 'new-ticket' + UPDATED_MINUS_TICKET_MINUS_STATE = 'updated-ticket-state' + UPDATED_MINUS_TICKET_MINUS_ASSIGNMENT = 'updated-ticket-assignment' + DELETED_MINUS_TICKET = 'deleted-ticket' + PAGE_MINUS_REACT = 'page-react' + QUESTION_MINUS_RESULT = 'question-result' @classmethod def from_json(cls, json_str: str) -> Self: diff --git a/client/models/lock_comment200_response.py b/client/models/lock_comment200_response.py deleted file mode 100644 index 58aadb2..0000000 --- a/client/models/lock_comment200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_empty_response import APIEmptyResponse -from client.models.api_error import APIError -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -LOCKCOMMENT200RESPONSE_ANY_OF_SCHEMAS = ["APIEmptyResponse", "APIError"] - -class LockComment200Response(BaseModel): - """ - LockComment200Response - """ - - # data type: APIError - anyof_schema_1_validator: Optional[APIError] = None - # data type: APIEmptyResponse - anyof_schema_2_validator: Optional[APIEmptyResponse] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIEmptyResponse, APIError]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIEmptyResponse", "APIError" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = LockComment200Response.model_construct() - error_messages = [] - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - # validate data type: APIEmptyResponse - if not isinstance(v, APIEmptyResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIEmptyResponse`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in LockComment200Response with anyOf schemas: APIEmptyResponse, APIError. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIEmptyResponse] = None - try: - instance.actual_instance = APIEmptyResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into LockComment200Response with anyOf schemas: APIEmptyResponse, APIError. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIEmptyResponse, APIError]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/moderation_api_child_comments_response.py b/client/models/moderation_api_child_comments_response.py new file mode 100644 index 0000000..18d6527 --- /dev/null +++ b/client/models/moderation_api_child_comments_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.moderation_api_comment import ModerationAPIComment +from typing import Optional, Set +from typing_extensions import Self + +class ModerationAPIChildCommentsResponse(BaseModel): + """ + ModerationAPIChildCommentsResponse + """ # noqa: E501 + comments: List[ModerationAPIComment] + status: APIStatus + __properties: ClassVar[List[str]] = ["comments", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationAPIChildCommentsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in comments (list) + _items = [] + if self.comments: + for _item_comments in self.comments: + if _item_comments: + _items.append(_item_comments.to_dict()) + _dict['comments'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationAPIChildCommentsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comments": [ModerationAPIComment.from_dict(_item) for _item in obj["comments"]] if obj.get("comments") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/moderation_api_comment.py b/client/models/moderation_api_comment.py new file mode 100644 index 0000000..40464e1 --- /dev/null +++ b/client/models/moderation_api_comment.py @@ -0,0 +1,268 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from client.models.comment_user_badge_info import CommentUserBadgeInfo +from typing import Optional, Set +from typing_extensions import Self + +class ModerationAPIComment(BaseModel): + """ + ModerationAPIComment + """ # noqa: E501 + is_local_deleted: Optional[StrictBool] = Field(default=None, alias="isLocalDeleted") + reply_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="replyCount") + feedback_results: Optional[List[StrictStr]] = Field(default=None, alias="feedbackResults") + is_voted_up: Optional[StrictBool] = Field(default=None, alias="isVotedUp") + is_voted_down: Optional[StrictBool] = Field(default=None, alias="isVotedDown") + my_vote_id: Optional[StrictStr] = Field(default=None, alias="myVoteId") + id: StrictStr = Field(alias="_id") + tenant_id: StrictStr = Field(alias="tenantId") + url_id: StrictStr = Field(alias="urlId") + url: StrictStr + page_title: Optional[StrictStr] = Field(default=None, alias="pageTitle") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + anon_user_id: Optional[StrictStr] = Field(default=None, alias="anonUserId") + commenter_name: StrictStr = Field(alias="commenterName") + commenter_link: Optional[StrictStr] = Field(default=None, alias="commenterLink") + comment_html: StrictStr = Field(alias="commentHTML") + parent_id: Optional[StrictStr] = Field(default=None, alias="parentId") + var_date: Optional[datetime] = Field(alias="date") + local_date_string: Optional[StrictStr] = Field(default=None, alias="localDateString") + votes: Optional[Union[StrictFloat, StrictInt]] = None + votes_up: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="votesUp") + votes_down: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="votesDown") + expire_at: Optional[datetime] = Field(default=None, alias="expireAt") + reviewed: Optional[StrictBool] = None + avatar_src: Optional[StrictStr] = Field(default=None, alias="avatarSrc") + is_spam: Optional[StrictBool] = Field(default=None, alias="isSpam") + perm_not_spam: Optional[StrictBool] = Field(default=None, alias="permNotSpam") + has_links: Optional[StrictBool] = Field(default=None, alias="hasLinks") + has_code: Optional[StrictBool] = Field(default=None, alias="hasCode") + approved: StrictBool + locale: Optional[StrictStr] + is_banned_user: Optional[StrictBool] = Field(default=None, alias="isBannedUser") + is_by_admin: Optional[StrictBool] = Field(default=None, alias="isByAdmin") + is_by_moderator: Optional[StrictBool] = Field(default=None, alias="isByModerator") + is_pinned: Optional[StrictBool] = Field(default=None, alias="isPinned") + is_locked: Optional[StrictBool] = Field(default=None, alias="isLocked") + flag_count: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flagCount") + display_label: Optional[StrictStr] = Field(default=None, alias="displayLabel") + badges: Optional[List[CommentUserBadgeInfo]] = None + verified: StrictBool + feedback_ids: Optional[List[StrictStr]] = Field(default=None, alias="feedbackIds") + is_deleted: Optional[StrictBool] = Field(default=None, alias="isDeleted") + __properties: ClassVar[List[str]] = ["isLocalDeleted", "replyCount", "feedbackResults", "isVotedUp", "isVotedDown", "myVoteId", "_id", "tenantId", "urlId", "url", "pageTitle", "userId", "anonUserId", "commenterName", "commenterLink", "commentHTML", "parentId", "date", "localDateString", "votes", "votesUp", "votesDown", "expireAt", "reviewed", "avatarSrc", "isSpam", "permNotSpam", "hasLinks", "hasCode", "approved", "locale", "isBannedUser", "isByAdmin", "isByModerator", "isPinned", "isLocked", "flagCount", "displayLabel", "badges", "verified", "feedbackIds", "isDeleted"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationAPIComment from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in badges (list) + _items = [] + if self.badges: + for _item_badges in self.badges: + if _item_badges: + _items.append(_item_badges.to_dict()) + _dict['badges'] = _items + # set to None if page_title (nullable) is None + # and model_fields_set contains the field + if self.page_title is None and "page_title" in self.model_fields_set: + _dict['pageTitle'] = None + + # set to None if user_id (nullable) is None + # and model_fields_set contains the field + if self.user_id is None and "user_id" in self.model_fields_set: + _dict['userId'] = None + + # set to None if anon_user_id (nullable) is None + # and model_fields_set contains the field + if self.anon_user_id is None and "anon_user_id" in self.model_fields_set: + _dict['anonUserId'] = None + + # set to None if commenter_link (nullable) is None + # and model_fields_set contains the field + if self.commenter_link is None and "commenter_link" in self.model_fields_set: + _dict['commenterLink'] = None + + # set to None if parent_id (nullable) is None + # and model_fields_set contains the field + if self.parent_id is None and "parent_id" in self.model_fields_set: + _dict['parentId'] = None + + # set to None if var_date (nullable) is None + # and model_fields_set contains the field + if self.var_date is None and "var_date" in self.model_fields_set: + _dict['date'] = None + + # set to None if local_date_string (nullable) is None + # and model_fields_set contains the field + if self.local_date_string is None and "local_date_string" in self.model_fields_set: + _dict['localDateString'] = None + + # set to None if votes (nullable) is None + # and model_fields_set contains the field + if self.votes is None and "votes" in self.model_fields_set: + _dict['votes'] = None + + # set to None if votes_up (nullable) is None + # and model_fields_set contains the field + if self.votes_up is None and "votes_up" in self.model_fields_set: + _dict['votesUp'] = None + + # set to None if votes_down (nullable) is None + # and model_fields_set contains the field + if self.votes_down is None and "votes_down" in self.model_fields_set: + _dict['votesDown'] = None + + # set to None if expire_at (nullable) is None + # and model_fields_set contains the field + if self.expire_at is None and "expire_at" in self.model_fields_set: + _dict['expireAt'] = None + + # set to None if avatar_src (nullable) is None + # and model_fields_set contains the field + if self.avatar_src is None and "avatar_src" in self.model_fields_set: + _dict['avatarSrc'] = None + + # set to None if locale (nullable) is None + # and model_fields_set contains the field + if self.locale is None and "locale" in self.model_fields_set: + _dict['locale'] = None + + # set to None if is_pinned (nullable) is None + # and model_fields_set contains the field + if self.is_pinned is None and "is_pinned" in self.model_fields_set: + _dict['isPinned'] = None + + # set to None if is_locked (nullable) is None + # and model_fields_set contains the field + if self.is_locked is None and "is_locked" in self.model_fields_set: + _dict['isLocked'] = None + + # set to None if flag_count (nullable) is None + # and model_fields_set contains the field + if self.flag_count is None and "flag_count" in self.model_fields_set: + _dict['flagCount'] = None + + # set to None if display_label (nullable) is None + # and model_fields_set contains the field + if self.display_label is None and "display_label" in self.model_fields_set: + _dict['displayLabel'] = None + + # set to None if badges (nullable) is None + # and model_fields_set contains the field + if self.badges is None and "badges" in self.model_fields_set: + _dict['badges'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationAPIComment from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "isLocalDeleted": obj.get("isLocalDeleted"), + "replyCount": obj.get("replyCount"), + "feedbackResults": obj.get("feedbackResults"), + "isVotedUp": obj.get("isVotedUp"), + "isVotedDown": obj.get("isVotedDown"), + "myVoteId": obj.get("myVoteId"), + "_id": obj.get("_id"), + "tenantId": obj.get("tenantId"), + "urlId": obj.get("urlId"), + "url": obj.get("url"), + "pageTitle": obj.get("pageTitle"), + "userId": obj.get("userId"), + "anonUserId": obj.get("anonUserId"), + "commenterName": obj.get("commenterName"), + "commenterLink": obj.get("commenterLink"), + "commentHTML": obj.get("commentHTML"), + "parentId": obj.get("parentId"), + "date": obj.get("date"), + "localDateString": obj.get("localDateString"), + "votes": obj.get("votes"), + "votesUp": obj.get("votesUp"), + "votesDown": obj.get("votesDown"), + "expireAt": obj.get("expireAt"), + "reviewed": obj.get("reviewed"), + "avatarSrc": obj.get("avatarSrc"), + "isSpam": obj.get("isSpam"), + "permNotSpam": obj.get("permNotSpam"), + "hasLinks": obj.get("hasLinks"), + "hasCode": obj.get("hasCode"), + "approved": obj.get("approved"), + "locale": obj.get("locale"), + "isBannedUser": obj.get("isBannedUser"), + "isByAdmin": obj.get("isByAdmin"), + "isByModerator": obj.get("isByModerator"), + "isPinned": obj.get("isPinned"), + "isLocked": obj.get("isLocked"), + "flagCount": obj.get("flagCount"), + "displayLabel": obj.get("displayLabel"), + "badges": [CommentUserBadgeInfo.from_dict(_item) for _item in obj["badges"]] if obj.get("badges") is not None else None, + "verified": obj.get("verified"), + "feedbackIds": obj.get("feedbackIds"), + "isDeleted": obj.get("isDeleted") + }) + return _obj + + diff --git a/client/models/moderation_api_comment_log.py b/client/models/moderation_api_comment_log.py new file mode 100644 index 0000000..0365d87 --- /dev/null +++ b/client/models/moderation_api_comment_log.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ModerationAPICommentLog(BaseModel): + """ + ModerationAPICommentLog + """ # noqa: E501 + var_date: datetime = Field(alias="date") + username: Optional[StrictStr] = None + action_name: StrictStr = Field(alias="actionName") + message_html: StrictStr = Field(alias="messageHTML") + __properties: ClassVar[List[str]] = ["date", "username", "actionName", "messageHTML"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationAPICommentLog from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationAPICommentLog from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "date": obj.get("date"), + "username": obj.get("username"), + "actionName": obj.get("actionName"), + "messageHTML": obj.get("messageHTML") + }) + return _obj + + diff --git a/client/models/moderation_api_comment_response.py b/client/models/moderation_api_comment_response.py new file mode 100644 index 0000000..b02aa0e --- /dev/null +++ b/client/models/moderation_api_comment_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.moderation_api_comment import ModerationAPIComment +from typing import Optional, Set +from typing_extensions import Self + +class ModerationAPICommentResponse(BaseModel): + """ + ModerationAPICommentResponse + """ # noqa: E501 + comment: ModerationAPIComment + status: APIStatus + __properties: ClassVar[List[str]] = ["comment", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationAPICommentResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of comment + if self.comment: + _dict['comment'] = self.comment.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationAPICommentResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": ModerationAPIComment.from_dict(obj["comment"]) if obj.get("comment") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/moderation_api_count_comments_response.py b/client/models/moderation_api_count_comments_response.py new file mode 100644 index 0000000..8b2f838 --- /dev/null +++ b/client/models/moderation_api_count_comments_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Union +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class ModerationAPICountCommentsResponse(BaseModel): + """ + ModerationAPICountCommentsResponse + """ # noqa: E501 + status: APIStatus + count: Union[StrictFloat, StrictInt] + __properties: ClassVar[List[str]] = ["status", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationAPICountCommentsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationAPICountCommentsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "count": obj.get("count") + }) + return _obj + + diff --git a/client/models/moderation_api_get_comment_ids_response.py b/client/models/moderation_api_get_comment_ids_response.py new file mode 100644 index 0000000..174ebd1 --- /dev/null +++ b/client/models/moderation_api_get_comment_ids_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class ModerationAPIGetCommentIdsResponse(BaseModel): + """ + ModerationAPIGetCommentIdsResponse + """ # noqa: E501 + ids: List[StrictStr] + has_more: StrictBool = Field(alias="hasMore") + status: APIStatus + __properties: ClassVar[List[str]] = ["ids", "hasMore", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationAPIGetCommentIdsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationAPIGetCommentIdsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "ids": obj.get("ids"), + "hasMore": obj.get("hasMore"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/moderation_api_get_comments_response.py b/client/models/moderation_api_get_comments_response.py new file mode 100644 index 0000000..c3da09b --- /dev/null +++ b/client/models/moderation_api_get_comments_response.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from client.models.moderation_api_comment import ModerationAPIComment +from client.models.moderation_filter import ModerationFilter +from typing import Optional, Set +from typing_extensions import Self + +class ModerationAPIGetCommentsResponse(BaseModel): + """ + ModerationAPIGetCommentsResponse + """ # noqa: E501 + status: APIStatus + translations: Dict[str, Any] + comments: List[ModerationAPIComment] + moderation_filter: Optional[ModerationFilter] = Field(default=None, alias="moderationFilter") + __properties: ClassVar[List[str]] = ["status", "translations", "comments", "moderationFilter"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationAPIGetCommentsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in comments (list) + _items = [] + if self.comments: + for _item_comments in self.comments: + if _item_comments: + _items.append(_item_comments.to_dict()) + _dict['comments'] = _items + # override the default output from pydantic by calling `to_dict()` of moderation_filter + if self.moderation_filter: + _dict['moderationFilter'] = self.moderation_filter.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationAPIGetCommentsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "translations": obj.get("translations"), + "comments": [ModerationAPIComment.from_dict(_item) for _item in obj["comments"]] if obj.get("comments") is not None else None, + "moderationFilter": ModerationFilter.from_dict(obj["moderationFilter"]) if obj.get("moderationFilter") is not None else None + }) + return _obj + + diff --git a/client/models/moderation_api_get_logs_response.py b/client/models/moderation_api_get_logs_response.py new file mode 100644 index 0000000..1e59073 --- /dev/null +++ b/client/models/moderation_api_get_logs_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.moderation_api_comment_log import ModerationAPICommentLog +from typing import Optional, Set +from typing_extensions import Self + +class ModerationAPIGetLogsResponse(BaseModel): + """ + ModerationAPIGetLogsResponse + """ # noqa: E501 + logs: List[ModerationAPICommentLog] + status: APIStatus + __properties: ClassVar[List[str]] = ["logs", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationAPIGetLogsResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in logs (list) + _items = [] + if self.logs: + for _item_logs in self.logs: + if _item_logs: + _items.append(_item_logs.to_dict()) + _dict['logs'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationAPIGetLogsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "logs": [ModerationAPICommentLog.from_dict(_item) for _item in obj["logs"]] if obj.get("logs") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/moderation_comment_search_response.py b/client/models/moderation_comment_search_response.py new file mode 100644 index 0000000..0932491 --- /dev/null +++ b/client/models/moderation_comment_search_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class ModerationCommentSearchResponse(BaseModel): + """ + ModerationCommentSearchResponse + """ # noqa: E501 + comment_count: StrictInt = Field(alias="commentCount") + status: APIStatus + __properties: ClassVar[List[str]] = ["commentCount", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationCommentSearchResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationCommentSearchResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "commentCount": obj.get("commentCount"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/moderation_export_response.py b/client/models/moderation_export_response.py new file mode 100644 index 0000000..bdc13ab --- /dev/null +++ b/client/models/moderation_export_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class ModerationExportResponse(BaseModel): + """ + ModerationExportResponse + """ # noqa: E501 + status: StrictStr + batch_job_id: StrictStr = Field(alias="batchJobId") + __properties: ClassVar[List[str]] = ["status", "batchJobId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationExportResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationExportResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "batchJobId": obj.get("batchJobId") + }) + return _obj + + diff --git a/client/models/moderation_export_status_response.py b/client/models/moderation_export_status_response.py new file mode 100644 index 0000000..98f589d --- /dev/null +++ b/client/models/moderation_export_status_response.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ModerationExportStatusResponse(BaseModel): + """ + ModerationExportStatusResponse + """ # noqa: E501 + status: StrictStr + job_status: StrictStr = Field(alias="jobStatus") + record_count: StrictInt = Field(alias="recordCount") + download_url: Optional[StrictStr] = Field(default=None, alias="downloadUrl") + __properties: ClassVar[List[str]] = ["status", "jobStatus", "recordCount", "downloadUrl"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationExportStatusResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationExportStatusResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "jobStatus": obj.get("jobStatus"), + "recordCount": obj.get("recordCount"), + "downloadUrl": obj.get("downloadUrl") + }) + return _obj + + diff --git a/client/models/moderation_filter.py b/client/models/moderation_filter.py new file mode 100644 index 0000000..788ccd9 --- /dev/null +++ b/client/models/moderation_filter.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class ModerationFilter(BaseModel): + """ + ModerationFilter + """ # noqa: E501 + reviewed: Optional[StrictBool] = None + approved: Optional[StrictBool] = None + is_spam: Optional[StrictBool] = Field(default=None, alias="isSpam") + is_banned_user: Optional[StrictBool] = Field(default=None, alias="isBannedUser") + is_locked: Optional[StrictBool] = Field(default=None, alias="isLocked") + flag_count_gt: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flagCountGt") + user_id: Optional[StrictStr] = Field(default=None, alias="userId") + url_id: Optional[StrictStr] = Field(default=None, alias="urlId") + domain: Optional[StrictStr] = None + moderation_group_ids: Optional[List[StrictStr]] = Field(default=None, alias="moderationGroupIds") + comment_text_search: Optional[List[StrictStr]] = Field(default=None, description="Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match.", alias="commentTextSearch") + exact_comment_text: Optional[StrictStr] = Field(default=None, description="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.", alias="exactCommentText") + __properties: ClassVar[List[str]] = ["reviewed", "approved", "isSpam", "isBannedUser", "isLocked", "flagCountGt", "userId", "urlId", "domain", "moderationGroupIds", "commentTextSearch", "exactCommentText"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationFilter from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationFilter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "reviewed": obj.get("reviewed"), + "approved": obj.get("approved"), + "isSpam": obj.get("isSpam"), + "isBannedUser": obj.get("isBannedUser"), + "isLocked": obj.get("isLocked"), + "flagCountGt": obj.get("flagCountGt"), + "userId": obj.get("userId"), + "urlId": obj.get("urlId"), + "domain": obj.get("domain"), + "moderationGroupIds": obj.get("moderationGroupIds"), + "commentTextSearch": obj.get("commentTextSearch"), + "exactCommentText": obj.get("exactCommentText") + }) + return _obj + + diff --git a/client/models/moderation_page_search_projected.py b/client/models/moderation_page_search_projected.py new file mode 100644 index 0000000..55cd9be --- /dev/null +++ b/client/models/moderation_page_search_projected.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from typing import Optional, Set +from typing_extensions import Self + +class ModerationPageSearchProjected(BaseModel): + """ + ModerationPageSearchProjected + """ # noqa: E501 + url_id: StrictStr = Field(alias="urlId") + url: StrictStr + title: StrictStr + comment_count: Union[StrictFloat, StrictInt] = Field(alias="commentCount") + __properties: ClassVar[List[str]] = ["urlId", "url", "title", "commentCount"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationPageSearchProjected from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationPageSearchProjected from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "urlId": obj.get("urlId"), + "url": obj.get("url"), + "title": obj.get("title"), + "commentCount": obj.get("commentCount") + }) + return _obj + + diff --git a/client/models/moderation_page_search_response.py b/client/models/moderation_page_search_response.py new file mode 100644 index 0000000..6424e25 --- /dev/null +++ b/client/models/moderation_page_search_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.moderation_page_search_projected import ModerationPageSearchProjected +from typing import Optional, Set +from typing_extensions import Self + +class ModerationPageSearchResponse(BaseModel): + """ + ModerationPageSearchResponse + """ # noqa: E501 + pages: List[ModerationPageSearchProjected] + status: APIStatus + __properties: ClassVar[List[str]] = ["pages", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationPageSearchResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pages (list) + _items = [] + if self.pages: + for _item_pages in self.pages: + if _item_pages: + _items.append(_item_pages.to_dict()) + _dict['pages'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationPageSearchResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "pages": [ModerationPageSearchProjected.from_dict(_item) for _item in obj["pages"]] if obj.get("pages") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/moderation_site_search_projected.py b/client/models/moderation_site_search_projected.py new file mode 100644 index 0000000..8d5ac22 --- /dev/null +++ b/client/models/moderation_site_search_projected.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ModerationSiteSearchProjected(BaseModel): + """ + ModerationSiteSearchProjected + """ # noqa: E501 + domain: StrictStr + logo_src100px: Optional[StrictStr] = Field(default=None, alias="logoSrc100px") + __properties: ClassVar[List[str]] = ["domain", "logoSrc100px"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationSiteSearchProjected from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if logo_src100px (nullable) is None + # and model_fields_set contains the field + if self.logo_src100px is None and "logo_src100px" in self.model_fields_set: + _dict['logoSrc100px'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationSiteSearchProjected from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "domain": obj.get("domain"), + "logoSrc100px": obj.get("logoSrc100px") + }) + return _obj + + diff --git a/client/models/moderation_site_search_response.py b/client/models/moderation_site_search_response.py new file mode 100644 index 0000000..a3f0ce7 --- /dev/null +++ b/client/models/moderation_site_search_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.moderation_site_search_projected import ModerationSiteSearchProjected +from typing import Optional, Set +from typing_extensions import Self + +class ModerationSiteSearchResponse(BaseModel): + """ + ModerationSiteSearchResponse + """ # noqa: E501 + sites: List[ModerationSiteSearchProjected] + status: APIStatus + __properties: ClassVar[List[str]] = ["sites", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationSiteSearchResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in sites (list) + _items = [] + if self.sites: + for _item_sites in self.sites: + if _item_sites: + _items.append(_item_sites.to_dict()) + _dict['sites'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationSiteSearchResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "sites": [ModerationSiteSearchProjected.from_dict(_item) for _item in obj["sites"]] if obj.get("sites") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/moderation_suggest_response.py b/client/models/moderation_suggest_response.py new file mode 100644 index 0000000..b6f5ac2 --- /dev/null +++ b/client/models/moderation_suggest_response.py @@ -0,0 +1,109 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.moderation_page_search_projected import ModerationPageSearchProjected +from client.models.moderation_user_search_projected import ModerationUserSearchProjected +from typing import Optional, Set +from typing_extensions import Self + +class ModerationSuggestResponse(BaseModel): + """ + ModerationSuggestResponse + """ # noqa: E501 + status: StrictStr + pages: Optional[List[ModerationPageSearchProjected]] = None + users: Optional[List[ModerationUserSearchProjected]] = None + code: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["status", "pages", "users", "code"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationSuggestResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in pages (list) + _items = [] + if self.pages: + for _item_pages in self.pages: + if _item_pages: + _items.append(_item_pages.to_dict()) + _dict['pages'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationSuggestResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "pages": [ModerationPageSearchProjected.from_dict(_item) for _item in obj["pages"]] if obj.get("pages") is not None else None, + "users": [ModerationUserSearchProjected.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "code": obj.get("code") + }) + return _obj + + diff --git a/client/models/moderation_user_search_projected.py b/client/models/moderation_user_search_projected.py new file mode 100644 index 0000000..cd5d1c9 --- /dev/null +++ b/client/models/moderation_user_search_projected.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class ModerationUserSearchProjected(BaseModel): + """ + ModerationUserSearchProjected + """ # noqa: E501 + id: StrictStr = Field(alias="_id") + username: StrictStr + display_name: Optional[StrictStr] = Field(default=None, alias="displayName") + avatar_src: Optional[StrictStr] = Field(default=None, alias="avatarSrc") + __properties: ClassVar[List[str]] = ["_id", "username", "displayName", "avatarSrc"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationUserSearchProjected from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if display_name (nullable) is None + # and model_fields_set contains the field + if self.display_name is None and "display_name" in self.model_fields_set: + _dict['displayName'] = None + + # set to None if avatar_src (nullable) is None + # and model_fields_set contains the field + if self.avatar_src is None and "avatar_src" in self.model_fields_set: + _dict['avatarSrc'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationUserSearchProjected from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_id": obj.get("_id"), + "username": obj.get("username"), + "displayName": obj.get("displayName"), + "avatarSrc": obj.get("avatarSrc") + }) + return _obj + + diff --git a/client/models/moderation_user_search_response.py b/client/models/moderation_user_search_response.py new file mode 100644 index 0000000..efe743e --- /dev/null +++ b/client/models/moderation_user_search_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.moderation_user_search_projected import ModerationUserSearchProjected +from typing import Optional, Set +from typing_extensions import Self + +class ModerationUserSearchResponse(BaseModel): + """ + ModerationUserSearchResponse + """ # noqa: E501 + users: List[ModerationUserSearchProjected] + status: APIStatus + __properties: ClassVar[List[str]] = ["users", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ModerationUserSearchResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ModerationUserSearchResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [ModerationUserSearchProjected.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/page_user_entry.py b/client/models/page_user_entry.py new file mode 100644 index 0000000..5f04ac9 --- /dev/null +++ b/client/models/page_user_entry.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class PageUserEntry(BaseModel): + """ + PageUserEntry + """ # noqa: E501 + is_private: Optional[StrictBool] = Field(default=None, alias="isPrivate") + avatar_src: Optional[StrictStr] = Field(default=None, alias="avatarSrc") + display_name: StrictStr = Field(alias="displayName") + id: StrictStr + __properties: ClassVar[List[str]] = ["isPrivate", "avatarSrc", "displayName", "id"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PageUserEntry from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PageUserEntry from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "isPrivate": obj.get("isPrivate"), + "avatarSrc": obj.get("avatarSrc"), + "displayName": obj.get("displayName"), + "id": obj.get("id") + }) + return _obj + + diff --git a/client/models/page_users_info_response.py b/client/models/page_users_info_response.py new file mode 100644 index 0000000..f00d6d8 --- /dev/null +++ b/client/models/page_users_info_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from client.models.page_user_entry import PageUserEntry +from typing import Optional, Set +from typing_extensions import Self + +class PageUsersInfoResponse(BaseModel): + """ + PageUsersInfoResponse + """ # noqa: E501 + users: List[PageUserEntry] + status: APIStatus + __properties: ClassVar[List[str]] = ["users", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PageUsersInfoResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PageUsersInfoResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "users": [PageUserEntry.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/page_users_offline_response.py b/client/models/page_users_offline_response.py new file mode 100644 index 0000000..e88d7e8 --- /dev/null +++ b/client/models/page_users_offline_response.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from client.models.page_user_entry import PageUserEntry +from typing import Optional, Set +from typing_extensions import Self + +class PageUsersOfflineResponse(BaseModel): + """ + PageUsersOfflineResponse + """ # noqa: E501 + next_after_user_id: Optional[StrictStr] = Field(alias="nextAfterUserId") + next_after_name: Optional[StrictStr] = Field(alias="nextAfterName") + users: List[PageUserEntry] + status: APIStatus + __properties: ClassVar[List[str]] = ["nextAfterUserId", "nextAfterName", "users", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PageUsersOfflineResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # set to None if next_after_user_id (nullable) is None + # and model_fields_set contains the field + if self.next_after_user_id is None and "next_after_user_id" in self.model_fields_set: + _dict['nextAfterUserId'] = None + + # set to None if next_after_name (nullable) is None + # and model_fields_set contains the field + if self.next_after_name is None and "next_after_name" in self.model_fields_set: + _dict['nextAfterName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PageUsersOfflineResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nextAfterUserId": obj.get("nextAfterUserId"), + "nextAfterName": obj.get("nextAfterName"), + "users": [PageUserEntry.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/page_users_online_response.py b/client/models/page_users_online_response.py new file mode 100644 index 0000000..4acbc4c --- /dev/null +++ b/client/models/page_users_online_response.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from client.models.api_status import APIStatus +from client.models.page_user_entry import PageUserEntry +from typing import Optional, Set +from typing_extensions import Self + +class PageUsersOnlineResponse(BaseModel): + """ + PageUsersOnlineResponse + """ # noqa: E501 + next_after_user_id: Optional[StrictStr] = Field(alias="nextAfterUserId") + next_after_name: Optional[StrictStr] = Field(alias="nextAfterName") + total_count: Union[StrictFloat, StrictInt] = Field(alias="totalCount") + anon_count: Union[StrictFloat, StrictInt] = Field(alias="anonCount") + users: List[PageUserEntry] + status: APIStatus + __properties: ClassVar[List[str]] = ["nextAfterUserId", "nextAfterName", "totalCount", "anonCount", "users", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PageUsersOnlineResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in users (list) + _items = [] + if self.users: + for _item_users in self.users: + if _item_users: + _items.append(_item_users.to_dict()) + _dict['users'] = _items + # set to None if next_after_user_id (nullable) is None + # and model_fields_set contains the field + if self.next_after_user_id is None and "next_after_user_id" in self.model_fields_set: + _dict['nextAfterUserId'] = None + + # set to None if next_after_name (nullable) is None + # and model_fields_set contains the field + if self.next_after_name is None and "next_after_name" in self.model_fields_set: + _dict['nextAfterName'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PageUsersOnlineResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "nextAfterUserId": obj.get("nextAfterUserId"), + "nextAfterName": obj.get("nextAfterName"), + "totalCount": obj.get("totalCount"), + "anonCount": obj.get("anonCount"), + "users": [PageUserEntry.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/pages_sort_by.py b/client/models/pages_sort_by.py new file mode 100644 index 0000000..a5dc69c --- /dev/null +++ b/client/models/pages_sort_by.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class PagesSortBy(str, Enum): + """ + PagesSortBy + """ + + """ + allowed enum values + """ + UPDATEDAT = 'updatedAt' + COMMENTCOUNT = 'commentCount' + TITLE = 'title' + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of PagesSortBy from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/client/models/get_email_template_render_errors200_response.py b/client/models/patch_domain_config_response.py similarity index 64% rename from client/models/get_email_template_render_errors200_response.py rename to client/models/patch_domain_config_response.py index 220aadd..9613bbe 100644 --- a/client/models/get_email_template_render_errors200_response.py +++ b/client/models/patch_domain_config_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.get_email_template_render_errors_response import GetEmailTemplateRenderErrorsResponse +from client.models.add_domain_config_response_any_of import AddDomainConfigResponseAnyOf +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETEMAILTEMPLATERENDERERRORS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetEmailTemplateRenderErrorsResponse"] +PATCHDOMAINCONFIGRESPONSE_ANY_OF_SCHEMAS = ["AddDomainConfigResponseAnyOf", "GetDomainConfigsResponseAnyOf1"] -class GetEmailTemplateRenderErrors200Response(BaseModel): +class PatchDomainConfigResponse(BaseModel): """ - GetEmailTemplateRenderErrors200Response + PatchDomainConfigResponse """ - # data type: GetEmailTemplateRenderErrorsResponse - anyof_schema_1_validator: Optional[GetEmailTemplateRenderErrorsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: AddDomainConfigResponseAnyOf + anyof_schema_1_validator: Optional[AddDomainConfigResponseAnyOf] = None + # data type: GetDomainConfigsResponseAnyOf1 + anyof_schema_2_validator: Optional[GetDomainConfigsResponseAnyOf1] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetEmailTemplateRenderErrorsResponse]] = None + actual_instance: Optional[Union[AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetEmailTemplateRenderErrorsResponse" } + any_of_schemas: Set[str] = { "AddDomainConfigResponseAnyOf", "GetDomainConfigsResponseAnyOf1" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetEmailTemplateRenderErrors200Response.model_construct() + instance = PatchDomainConfigResponse.model_construct() error_messages = [] - # validate data type: GetEmailTemplateRenderErrorsResponse - if not isinstance(v, GetEmailTemplateRenderErrorsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetEmailTemplateRenderErrorsResponse`") + # validate data type: AddDomainConfigResponseAnyOf + if not isinstance(v, AddDomainConfigResponseAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddDomainConfigResponseAnyOf`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: GetDomainConfigsResponseAnyOf1 + if not isinstance(v, GetDomainConfigsResponseAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigsResponseAnyOf1`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetEmailTemplateRenderErrors200Response with anyOf schemas: APIError, GetEmailTemplateRenderErrorsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in PatchDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[GetEmailTemplateRenderErrorsResponse] = None + # anyof_schema_1_validator: Optional[AddDomainConfigResponseAnyOf] = None try: - instance.actual_instance = GetEmailTemplateRenderErrorsResponse.from_json(json_str) + instance.actual_instance = AddDomainConfigResponseAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[GetDomainConfigsResponseAnyOf1] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = GetDomainConfigsResponseAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetEmailTemplateRenderErrors200Response with anyOf schemas: APIError, GetEmailTemplateRenderErrorsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into PatchDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetEmailTemplateRenderErrorsResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/patch_hash_tag200_response.py b/client/models/patch_hash_tag200_response.py deleted file mode 100644 index 0dbe914..0000000 --- a/client/models/patch_hash_tag200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.update_hash_tag_response import UpdateHashTagResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -PATCHHASHTAG200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "UpdateHashTagResponse"] - -class PatchHashTag200Response(BaseModel): - """ - PatchHashTag200Response - """ - - # data type: UpdateHashTagResponse - anyof_schema_1_validator: Optional[UpdateHashTagResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, UpdateHashTagResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "UpdateHashTagResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = PatchHashTag200Response.model_construct() - error_messages = [] - # validate data type: UpdateHashTagResponse - if not isinstance(v, UpdateHashTagResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `UpdateHashTagResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in PatchHashTag200Response with anyOf schemas: APIError, UpdateHashTagResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[UpdateHashTagResponse] = None - try: - instance.actual_instance = UpdateHashTagResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into PatchHashTag200Response with anyOf schemas: APIError, UpdateHashTagResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, UpdateHashTagResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/pin_comment200_response.py b/client/models/pin_comment200_response.py deleted file mode 100644 index 0a1c70b..0000000 --- a/client/models/pin_comment200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.change_comment_pin_status_response import ChangeCommentPinStatusResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -PINCOMMENT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "ChangeCommentPinStatusResponse"] - -class PinComment200Response(BaseModel): - """ - PinComment200Response - """ - - # data type: ChangeCommentPinStatusResponse - anyof_schema_1_validator: Optional[ChangeCommentPinStatusResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, ChangeCommentPinStatusResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "ChangeCommentPinStatusResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = PinComment200Response.model_construct() - error_messages = [] - # validate data type: ChangeCommentPinStatusResponse - if not isinstance(v, ChangeCommentPinStatusResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `ChangeCommentPinStatusResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in PinComment200Response with anyOf schemas: APIError, ChangeCommentPinStatusResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[ChangeCommentPinStatusResponse] = None - try: - instance.actual_instance = ChangeCommentPinStatusResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into PinComment200Response with anyOf schemas: APIError, ChangeCommentPinStatusResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, ChangeCommentPinStatusResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/delete_comment200_response.py b/client/models/post_remove_comment_response.py similarity index 73% rename from client/models/delete_comment200_response.py rename to client/models/post_remove_comment_response.py index 1185fea..2fa455b 100644 --- a/client/models/delete_comment200_response.py +++ b/client/models/post_remove_comment_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError from client.models.delete_comment_result import DeleteCommentResult +from client.models.remove_comment_action_response import RemoveCommentActionResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -DELETECOMMENT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "DeleteCommentResult"] +POSTREMOVECOMMENTRESPONSE_ANY_OF_SCHEMAS = ["DeleteCommentResult", "RemoveCommentActionResponse"] -class DeleteComment200Response(BaseModel): +class PostRemoveCommentResponse(BaseModel): """ - DeleteComment200Response + PostRemoveCommentResponse """ # data type: DeleteCommentResult anyof_schema_1_validator: Optional[DeleteCommentResult] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: RemoveCommentActionResponse + anyof_schema_2_validator: Optional[RemoveCommentActionResponse] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, DeleteCommentResult]] = None + actual_instance: Optional[Union[DeleteCommentResult, RemoveCommentActionResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "DeleteCommentResult" } + any_of_schemas: Set[str] = { "DeleteCommentResult", "RemoveCommentActionResponse" } model_config = { "validate_assignment": True, @@ -59,7 +59,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = DeleteComment200Response.model_construct() + instance = PostRemoveCommentResponse.model_construct() error_messages = [] # validate data type: DeleteCommentResult if not isinstance(v, DeleteCommentResult): @@ -67,15 +67,15 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: RemoveCommentActionResponse + if not isinstance(v, RemoveCommentActionResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `RemoveCommentActionResponse`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in DeleteComment200Response with anyOf schemas: APIError, DeleteCommentResult. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in PostRemoveCommentResponse with anyOf schemas: DeleteCommentResult, RemoveCommentActionResponse. Details: " + ", ".join(error_messages)) else: return v @@ -94,16 +94,16 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[RemoveCommentActionResponse] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = RemoveCommentActionResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into DeleteComment200Response with anyOf schemas: APIError, DeleteCommentResult. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into PostRemoveCommentResponse with anyOf schemas: DeleteCommentResult, RemoveCommentActionResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, DeleteCommentResult]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], DeleteCommentResult, RemoveCommentActionResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/pre_ban_summary.py b/client/models/pre_ban_summary.py new file mode 100644 index 0000000..cabfbb6 --- /dev/null +++ b/client/models/pre_ban_summary.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Union +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class PreBanSummary(BaseModel): + """ + PreBanSummary + """ # noqa: E501 + status: APIStatus + usernames: List[StrictStr] + count: Union[StrictFloat, StrictInt] + __properties: ClassVar[List[str]] = ["status", "usernames", "count"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PreBanSummary from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PreBanSummary from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "usernames": obj.get("usernames"), + "count": obj.get("count") + }) + return _obj + + diff --git a/client/models/public_page.py b/client/models/public_page.py new file mode 100644 index 0000000..cc2ca45 --- /dev/null +++ b/client/models/public_page.py @@ -0,0 +1,95 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class PublicPage(BaseModel): + """ + PublicPage + """ # noqa: E501 + updated_at: StrictInt = Field(alias="updatedAt") + comment_count: StrictInt = Field(alias="commentCount") + title: StrictStr + url: StrictStr + url_id: StrictStr = Field(alias="urlId") + __properties: ClassVar[List[str]] = ["updatedAt", "commentCount", "title", "url", "urlId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of PublicPage from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PublicPage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "updatedAt": obj.get("updatedAt"), + "commentCount": obj.get("commentCount"), + "title": obj.get("title"), + "url": obj.get("url"), + "urlId": obj.get("urlId") + }) + return _obj + + diff --git a/client/models/create_question_config200_response.py b/client/models/put_domain_config_response.py similarity index 64% rename from client/models/create_question_config200_response.py rename to client/models/put_domain_config_response.py index 4c31827..e193356 100644 --- a/client/models/create_question_config200_response.py +++ b/client/models/put_domain_config_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.create_question_config_response import CreateQuestionConfigResponse +from client.models.add_domain_config_response_any_of import AddDomainConfigResponseAnyOf +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -CREATEQUESTIONCONFIG200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "CreateQuestionConfigResponse"] +PUTDOMAINCONFIGRESPONSE_ANY_OF_SCHEMAS = ["AddDomainConfigResponseAnyOf", "GetDomainConfigsResponseAnyOf1"] -class CreateQuestionConfig200Response(BaseModel): +class PutDomainConfigResponse(BaseModel): """ - CreateQuestionConfig200Response + PutDomainConfigResponse """ - # data type: CreateQuestionConfigResponse - anyof_schema_1_validator: Optional[CreateQuestionConfigResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: AddDomainConfigResponseAnyOf + anyof_schema_1_validator: Optional[AddDomainConfigResponseAnyOf] = None + # data type: GetDomainConfigsResponseAnyOf1 + anyof_schema_2_validator: Optional[GetDomainConfigsResponseAnyOf1] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, CreateQuestionConfigResponse]] = None + actual_instance: Optional[Union[AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "CreateQuestionConfigResponse" } + any_of_schemas: Set[str] = { "AddDomainConfigResponseAnyOf", "GetDomainConfigsResponseAnyOf1" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = CreateQuestionConfig200Response.model_construct() + instance = PutDomainConfigResponse.model_construct() error_messages = [] - # validate data type: CreateQuestionConfigResponse - if not isinstance(v, CreateQuestionConfigResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `CreateQuestionConfigResponse`") + # validate data type: AddDomainConfigResponseAnyOf + if not isinstance(v, AddDomainConfigResponseAnyOf): + error_messages.append(f"Error! Input type `{type(v)}` is not `AddDomainConfigResponseAnyOf`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: GetDomainConfigsResponseAnyOf1 + if not isinstance(v, GetDomainConfigsResponseAnyOf1): + error_messages.append(f"Error! Input type `{type(v)}` is not `GetDomainConfigsResponseAnyOf1`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in CreateQuestionConfig200Response with anyOf schemas: APIError, CreateQuestionConfigResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in PutDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[CreateQuestionConfigResponse] = None + # anyof_schema_1_validator: Optional[AddDomainConfigResponseAnyOf] = None try: - instance.actual_instance = CreateQuestionConfigResponse.from_json(json_str) + instance.actual_instance = AddDomainConfigResponseAnyOf.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[GetDomainConfigsResponseAnyOf1] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = GetDomainConfigsResponseAnyOf1.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into CreateQuestionConfig200Response with anyOf schemas: APIError, CreateQuestionConfigResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into PutDomainConfigResponse with anyOf schemas: AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, CreateQuestionConfigResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], AddDomainConfigResponseAnyOf, GetDomainConfigsResponseAnyOf1]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/react_feed_post_public200_response.py b/client/models/react_feed_post_public200_response.py deleted file mode 100644 index e36b8ec..0000000 --- a/client/models/react_feed_post_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.react_feed_post_response import ReactFeedPostResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -REACTFEEDPOSTPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "ReactFeedPostResponse"] - -class ReactFeedPostPublic200Response(BaseModel): - """ - ReactFeedPostPublic200Response - """ - - # data type: ReactFeedPostResponse - anyof_schema_1_validator: Optional[ReactFeedPostResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, ReactFeedPostResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "ReactFeedPostResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = ReactFeedPostPublic200Response.model_construct() - error_messages = [] - # validate data type: ReactFeedPostResponse - if not isinstance(v, ReactFeedPostResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `ReactFeedPostResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in ReactFeedPostPublic200Response with anyOf schemas: APIError, ReactFeedPostResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[ReactFeedPostResponse] = None - try: - instance.actual_instance = ReactFeedPostResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into ReactFeedPostPublic200Response with anyOf schemas: APIError, ReactFeedPostResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, ReactFeedPostResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/record_string_before_string_or_null_after_string_or_null_value.py b/client/models/record_string_before_string_or_null_after_string_or_null_value.py index 3fd7441..a8d2c1e 100644 --- a/client/models/record_string_before_string_or_null_after_string_or_null_value.py +++ b/client/models/record_string_before_string_or_null_after_string_or_null_value.py @@ -18,7 +18,7 @@ import json from pydantic import BaseModel, ConfigDict, StrictStr -from typing import Any, ClassVar, Dict, List +from typing import Any, ClassVar, Dict, List, Optional from typing import Optional, Set from typing_extensions import Self @@ -26,8 +26,8 @@ class RecordStringBeforeStringOrNullAfterStringOrNullValue(BaseModel): """ RecordStringBeforeStringOrNullAfterStringOrNullValue """ # noqa: E501 - after: StrictStr - before: StrictStr + after: Optional[StrictStr] + before: Optional[StrictStr] __properties: ClassVar[List[str]] = ["after", "before"] model_config = ConfigDict( @@ -69,6 +69,16 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # set to None if after (nullable) is None + # and model_fields_set contains the field + if self.after is None and "after" in self.model_fields_set: + _dict['after'] = None + + # set to None if before (nullable) is None + # and model_fields_set contains the field + if self.before is None and "before" in self.model_fields_set: + _dict['before'] = None + return _dict @classmethod diff --git a/client/models/remove_comment_action_response.py b/client/models/remove_comment_action_response.py new file mode 100644 index 0000000..f181d16 --- /dev/null +++ b/client/models/remove_comment_action_response.py @@ -0,0 +1,89 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class RemoveCommentActionResponse(BaseModel): + """ + RemoveCommentActionResponse + """ # noqa: E501 + status: StrictStr + action: StrictStr + __properties: ClassVar[List[str]] = ["status", "action"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RemoveCommentActionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RemoveCommentActionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "status": obj.get("status"), + "action": obj.get("action") + }) + return _obj + + diff --git a/client/models/remove_user_badge_response.py b/client/models/remove_user_badge_response.py new file mode 100644 index 0000000..4314452 --- /dev/null +++ b/client/models/remove_user_badge_response.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from client.models.comment_user_badge_info import CommentUserBadgeInfo +from typing import Optional, Set +from typing_extensions import Self + +class RemoveUserBadgeResponse(BaseModel): + """ + RemoveUserBadgeResponse + """ # noqa: E501 + badges: Optional[List[CommentUserBadgeInfo]] = None + status: APIStatus + __properties: ClassVar[List[str]] = ["badges", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of RemoveUserBadgeResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # override the default output from pydantic by calling `to_dict()` of each item in badges (list) + _items = [] + if self.badges: + for _item_badges in self.badges: + if _item_badges: + _items.append(_item_badges.to_dict()) + _dict['badges'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RemoveUserBadgeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "badges": [CommentUserBadgeInfo.from_dict(_item) for _item in obj["badges"]] if obj.get("badges") is not None else None, + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/render_email_template200_response.py b/client/models/render_email_template200_response.py deleted file mode 100644 index 3e0589b..0000000 --- a/client/models/render_email_template200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.render_email_template_response import RenderEmailTemplateResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -RENDEREMAILTEMPLATE200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "RenderEmailTemplateResponse"] - -class RenderEmailTemplate200Response(BaseModel): - """ - RenderEmailTemplate200Response - """ - - # data type: RenderEmailTemplateResponse - anyof_schema_1_validator: Optional[RenderEmailTemplateResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, RenderEmailTemplateResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "RenderEmailTemplateResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = RenderEmailTemplate200Response.model_construct() - error_messages = [] - # validate data type: RenderEmailTemplateResponse - if not isinstance(v, RenderEmailTemplateResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `RenderEmailTemplateResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in RenderEmailTemplate200Response with anyOf schemas: APIError, RenderEmailTemplateResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[RenderEmailTemplateResponse] = None - try: - instance.actual_instance = RenderEmailTemplateResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into RenderEmailTemplate200Response with anyOf schemas: APIError, RenderEmailTemplateResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, RenderEmailTemplateResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/reset_user_notifications200_response.py b/client/models/reset_user_notifications200_response.py deleted file mode 100644 index 0fc739c..0000000 --- a/client/models/reset_user_notifications200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.reset_user_notifications_response import ResetUserNotificationsResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -RESETUSERNOTIFICATIONS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "ResetUserNotificationsResponse"] - -class ResetUserNotifications200Response(BaseModel): - """ - ResetUserNotifications200Response - """ - - # data type: ResetUserNotificationsResponse - anyof_schema_1_validator: Optional[ResetUserNotificationsResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, ResetUserNotificationsResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "ResetUserNotificationsResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = ResetUserNotifications200Response.model_construct() - error_messages = [] - # validate data type: ResetUserNotificationsResponse - if not isinstance(v, ResetUserNotificationsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `ResetUserNotificationsResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in ResetUserNotifications200Response with anyOf schemas: APIError, ResetUserNotificationsResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[ResetUserNotificationsResponse] = None - try: - instance.actual_instance = ResetUserNotificationsResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into ResetUserNotifications200Response with anyOf schemas: APIError, ResetUserNotificationsResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, ResetUserNotificationsResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/save_comment200_response.py b/client/models/save_comment200_response.py deleted file mode 100644 index 5c42a62..0000000 --- a/client/models/save_comment200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.save_comment_response import SaveCommentResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -SAVECOMMENT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "SaveCommentResponse"] - -class SaveComment200Response(BaseModel): - """ - SaveComment200Response - """ - - # data type: SaveCommentResponse - anyof_schema_1_validator: Optional[SaveCommentResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, SaveCommentResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "SaveCommentResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = SaveComment200Response.model_construct() - error_messages = [] - # validate data type: SaveCommentResponse - if not isinstance(v, SaveCommentResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `SaveCommentResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in SaveComment200Response with anyOf schemas: APIError, SaveCommentResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[SaveCommentResponse] = None - try: - instance.actual_instance = SaveCommentResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into SaveComment200Response with anyOf schemas: APIError, SaveCommentResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, SaveCommentResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/get_comments200_response.py b/client/models/save_comments_bulk_response.py similarity index 78% rename from client/models/get_comments200_response.py rename to client/models/save_comments_bulk_response.py index 7bf9b8e..c1746d1 100644 --- a/client/models/get_comments200_response.py +++ b/client/models/save_comments_bulk_response.py @@ -20,27 +20,27 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional from client.models.api_error import APIError -from client.models.api_get_comments_response import APIGetCommentsResponse +from client.models.api_save_comment_response import APISaveCommentResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETCOMMENTS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "APIGetCommentsResponse"] +SAVECOMMENTSBULKRESPONSE_ANY_OF_SCHEMAS = ["APIError", "APISaveCommentResponse"] -class GetComments200Response(BaseModel): +class SaveCommentsBulkResponse(BaseModel): """ - GetComments200Response + SaveCommentsBulkResponse """ - # data type: APIGetCommentsResponse - anyof_schema_1_validator: Optional[APIGetCommentsResponse] = None + # data type: APISaveCommentResponse + anyof_schema_1_validator: Optional[APISaveCommentResponse] = None # data type: APIError anyof_schema_2_validator: Optional[APIError] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, APIGetCommentsResponse]] = None + actual_instance: Optional[Union[APIError, APISaveCommentResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "APIGetCommentsResponse" } + any_of_schemas: Set[str] = { "APIError", "APISaveCommentResponse" } model_config = { "validate_assignment": True, @@ -59,11 +59,11 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetComments200Response.model_construct() + instance = SaveCommentsBulkResponse.model_construct() error_messages = [] - # validate data type: APIGetCommentsResponse - if not isinstance(v, APIGetCommentsResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIGetCommentsResponse`") + # validate data type: APISaveCommentResponse + if not isinstance(v, APISaveCommentResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `APISaveCommentResponse`") else: return v @@ -75,7 +75,7 @@ def actual_instance_must_validate_anyof(cls, v): if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetComments200Response with anyOf schemas: APIError, APIGetCommentsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in SaveCommentsBulkResponse with anyOf schemas: APIError, APISaveCommentResponse. Details: " + ", ".join(error_messages)) else: return v @@ -88,9 +88,9 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[APIGetCommentsResponse] = None + # anyof_schema_1_validator: Optional[APISaveCommentResponse] = None try: - instance.actual_instance = APIGetCommentsResponse.from_json(json_str) + instance.actual_instance = APISaveCommentResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) @@ -103,7 +103,7 @@ def from_json(cls, json_str: str) -> Self: if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetComments200Response with anyOf schemas: APIError, APIGetCommentsResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into SaveCommentsBulkResponse with anyOf schemas: APIError, APISaveCommentResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, APIGetCommentsResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, APISaveCommentResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/search_users200_response.py b/client/models/search_users_result.py similarity index 74% rename from client/models/search_users200_response.py rename to client/models/search_users_result.py index 305bf06..ac2e797 100644 --- a/client/models/search_users200_response.py +++ b/client/models/search_users_result.py @@ -19,31 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError from client.models.search_users_response import SearchUsersResponse from client.models.search_users_sectioned_response import SearchUsersSectionedResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -SEARCHUSERS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "SearchUsersResponse", "SearchUsersSectionedResponse"] +SEARCHUSERSRESULT_ANY_OF_SCHEMAS = ["SearchUsersResponse", "SearchUsersSectionedResponse"] -class SearchUsers200Response(BaseModel): +class SearchUsersResult(BaseModel): """ - SearchUsers200Response + SearchUsersResult """ # data type: SearchUsersSectionedResponse anyof_schema_1_validator: Optional[SearchUsersSectionedResponse] = None # data type: SearchUsersResponse anyof_schema_2_validator: Optional[SearchUsersResponse] = None - # data type: APIError - anyof_schema_3_validator: Optional[APIError] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, SearchUsersResponse, SearchUsersSectionedResponse]] = None + actual_instance: Optional[Union[SearchUsersResponse, SearchUsersSectionedResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "SearchUsersResponse", "SearchUsersSectionedResponse" } + any_of_schemas: Set[str] = { "SearchUsersResponse", "SearchUsersSectionedResponse" } model_config = { "validate_assignment": True, @@ -62,7 +59,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = SearchUsers200Response.model_construct() + instance = SearchUsersResult.model_construct() error_messages = [] # validate data type: SearchUsersSectionedResponse if not isinstance(v, SearchUsersSectionedResponse): @@ -76,15 +73,9 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in SearchUsers200Response with anyOf schemas: APIError, SearchUsersResponse, SearchUsersSectionedResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in SearchUsersResult with anyOf schemas: SearchUsersResponse, SearchUsersSectionedResponse. Details: " + ", ".join(error_messages)) else: return v @@ -109,16 +100,10 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_3_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into SearchUsers200Response with anyOf schemas: APIError, SearchUsersResponse, SearchUsersSectionedResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into SearchUsersResult with anyOf schemas: SearchUsersResponse, SearchUsersSectionedResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -132,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, SearchUsersResponse, SearchUsersSectionedResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], SearchUsersResponse, SearchUsersSectionedResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/set_comment_approved_response.py b/client/models/set_comment_approved_response.py new file mode 100644 index 0000000..6b84d56 --- /dev/null +++ b/client/models/set_comment_approved_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class SetCommentApprovedResponse(BaseModel): + """ + SetCommentApprovedResponse + """ # noqa: E501 + did_reset_flagged_count: Optional[StrictBool] = Field(default=None, alias="didResetFlaggedCount") + status: APIStatus + __properties: ClassVar[List[str]] = ["didResetFlaggedCount", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetCommentApprovedResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetCommentApprovedResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "didResetFlaggedCount": obj.get("didResetFlaggedCount"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/set_comment_text200_response.py b/client/models/set_comment_text200_response.py deleted file mode 100644 index f427727..0000000 --- a/client/models/set_comment_text200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.public_api_set_comment_text_response import PublicAPISetCommentTextResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -SETCOMMENTTEXT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "PublicAPISetCommentTextResponse"] - -class SetCommentText200Response(BaseModel): - """ - SetCommentText200Response - """ - - # data type: PublicAPISetCommentTextResponse - anyof_schema_1_validator: Optional[PublicAPISetCommentTextResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, PublicAPISetCommentTextResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "PublicAPISetCommentTextResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = SetCommentText200Response.model_construct() - error_messages = [] - # validate data type: PublicAPISetCommentTextResponse - if not isinstance(v, PublicAPISetCommentTextResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `PublicAPISetCommentTextResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in SetCommentText200Response with anyOf schemas: APIError, PublicAPISetCommentTextResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[PublicAPISetCommentTextResponse] = None - try: - instance.actual_instance = PublicAPISetCommentTextResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into SetCommentText200Response with anyOf schemas: APIError, PublicAPISetCommentTextResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, PublicAPISetCommentTextResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/set_comment_text_params.py b/client/models/set_comment_text_params.py new file mode 100644 index 0000000..ef80885 --- /dev/null +++ b/client/models/set_comment_text_params.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictStr +from typing import Any, ClassVar, Dict, List +from typing import Optional, Set +from typing_extensions import Self + +class SetCommentTextParams(BaseModel): + """ + SetCommentTextParams + """ # noqa: E501 + comment: StrictStr + __properties: ClassVar[List[str]] = ["comment"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetCommentTextParams from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetCommentTextParams from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "comment": obj.get("comment") + }) + return _obj + + diff --git a/client/models/set_comment_text_response.py b/client/models/set_comment_text_response.py new file mode 100644 index 0000000..f81158d --- /dev/null +++ b/client/models/set_comment_text_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictStr +from typing import Any, ClassVar, Dict, List +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class SetCommentTextResponse(BaseModel): + """ + SetCommentTextResponse + """ # noqa: E501 + new_comment_text_html: StrictStr = Field(alias="newCommentTextHTML") + status: APIStatus + __properties: ClassVar[List[str]] = ["newCommentTextHTML", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetCommentTextResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetCommentTextResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "newCommentTextHTML": obj.get("newCommentTextHTML"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/set_user_trust_factor_response.py b/client/models/set_user_trust_factor_response.py new file mode 100644 index 0000000..ee20b8c --- /dev/null +++ b/client/models/set_user_trust_factor_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt +from typing import Any, ClassVar, Dict, List, Optional, Union +from client.models.api_status import APIStatus +from typing import Optional, Set +from typing_extensions import Self + +class SetUserTrustFactorResponse(BaseModel): + """ + SetUserTrustFactorResponse + """ # noqa: E501 + previous_manual_trust_factor: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="previousManualTrustFactor") + status: APIStatus + __properties: ClassVar[List[str]] = ["previousManualTrustFactor", "status"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of SetUserTrustFactorResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SetUserTrustFactorResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "previousManualTrustFactor": obj.get("previousManualTrustFactor"), + "status": obj.get("status") + }) + return _obj + + diff --git a/client/models/tenant_badge.py b/client/models/tenant_badge.py new file mode 100644 index 0000000..15a3751 --- /dev/null +++ b/client/models/tenant_badge.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class TenantBadge(BaseModel): + """ + TenantBadge + """ # noqa: E501 + id: StrictStr = Field(alias="_id") + tenant_id: StrictStr = Field(alias="tenantId") + created_by_user_id: StrictStr = Field(alias="createdByUserId") + created_at: datetime = Field(alias="createdAt") + enabled: StrictBool + url_id: Optional[StrictStr] = Field(default=None, alias="urlId") + type: Union[StrictFloat, StrictInt] + threshold: Union[StrictFloat, StrictInt] + uses: Union[StrictFloat, StrictInt] + name: StrictStr + description: StrictStr + display_label: StrictStr = Field(alias="displayLabel") + display_src: Optional[StrictStr] = Field(alias="displaySrc") + background_color: Optional[StrictStr] = Field(alias="backgroundColor") + border_color: Optional[StrictStr] = Field(alias="borderColor") + text_color: Optional[StrictStr] = Field(alias="textColor") + css_class: Optional[StrictStr] = Field(default=None, alias="cssClass") + veteran_user_threshold_millis: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="veteranUserThresholdMillis") + is_awaiting_reprocess: StrictBool = Field(alias="isAwaitingReprocess") + is_awaiting_deletion: StrictBool = Field(alias="isAwaitingDeletion") + replaces_badge_id: Optional[StrictStr] = Field(default=None, alias="replacesBadgeId") + __properties: ClassVar[List[str]] = ["_id", "tenantId", "createdByUserId", "createdAt", "enabled", "urlId", "type", "threshold", "uses", "name", "description", "displayLabel", "displaySrc", "backgroundColor", "borderColor", "textColor", "cssClass", "veteranUserThresholdMillis", "isAwaitingReprocess", "isAwaitingDeletion", "replacesBadgeId"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of TenantBadge from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other fields with value `None` + are ignored. + """ + excluded_fields: Set[str] = set([ + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # set to None if url_id (nullable) is None + # and model_fields_set contains the field + if self.url_id is None and "url_id" in self.model_fields_set: + _dict['urlId'] = None + + # set to None if display_src (nullable) is None + # and model_fields_set contains the field + if self.display_src is None and "display_src" in self.model_fields_set: + _dict['displaySrc'] = None + + # set to None if background_color (nullable) is None + # and model_fields_set contains the field + if self.background_color is None and "background_color" in self.model_fields_set: + _dict['backgroundColor'] = None + + # set to None if border_color (nullable) is None + # and model_fields_set contains the field + if self.border_color is None and "border_color" in self.model_fields_set: + _dict['borderColor'] = None + + # set to None if text_color (nullable) is None + # and model_fields_set contains the field + if self.text_color is None and "text_color" in self.model_fields_set: + _dict['textColor'] = None + + # set to None if css_class (nullable) is None + # and model_fields_set contains the field + if self.css_class is None and "css_class" in self.model_fields_set: + _dict['cssClass'] = None + + # set to None if veteran_user_threshold_millis (nullable) is None + # and model_fields_set contains the field + if self.veteran_user_threshold_millis is None and "veteran_user_threshold_millis" in self.model_fields_set: + _dict['veteranUserThresholdMillis'] = None + + # set to None if replaces_badge_id (nullable) is None + # and model_fields_set contains the field + if self.replaces_badge_id is None and "replaces_badge_id" in self.model_fields_set: + _dict['replacesBadgeId'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of TenantBadge from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "_id": obj.get("_id"), + "tenantId": obj.get("tenantId"), + "createdByUserId": obj.get("createdByUserId"), + "createdAt": obj.get("createdAt"), + "enabled": obj.get("enabled"), + "urlId": obj.get("urlId"), + "type": obj.get("type"), + "threshold": obj.get("threshold"), + "uses": obj.get("uses"), + "name": obj.get("name"), + "description": obj.get("description"), + "displayLabel": obj.get("displayLabel"), + "displaySrc": obj.get("displaySrc"), + "backgroundColor": obj.get("backgroundColor"), + "borderColor": obj.get("borderColor"), + "textColor": obj.get("textColor"), + "cssClass": obj.get("cssClass"), + "veteranUserThresholdMillis": obj.get("veteranUserThresholdMillis"), + "isAwaitingReprocess": obj.get("isAwaitingReprocess"), + "isAwaitingDeletion": obj.get("isAwaitingDeletion"), + "replacesBadgeId": obj.get("replacesBadgeId") + }) + return _obj + + diff --git a/client/models/tenant_package.py b/client/models/tenant_package.py index 97da825..29d7a9d 100644 --- a/client/models/tenant_package.py +++ b/client/models/tenant_package.py @@ -31,6 +31,7 @@ class TenantPackage(BaseModel): name: StrictStr tenant_id: StrictStr = Field(alias="tenantId") created_at: datetime = Field(alias="createdAt") + template_id: Optional[StrictStr] = Field(default=None, alias="templateId") monthly_cost_usd: Optional[Union[StrictFloat, StrictInt]] = Field(alias="monthlyCostUSD") yearly_cost_usd: Optional[Union[StrictFloat, StrictInt]] = Field(alias="yearlyCostUSD") monthly_stripe_plan_id: Optional[StrictStr] = Field(alias="monthlyStripePlanId") @@ -74,6 +75,8 @@ class TenantPackage(BaseModel): flex_domain_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexDomainUnit") flex_chat_gpt_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexChatGPTCostCents") flex_chat_gpt_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexChatGPTUnit") + flex_llm_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexLLMCostCents") + flex_llm_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexLLMUnit") flex_minimum_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexMinimumCostCents") flex_managed_tenant_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexManagedTenantCostCents") flex_sso_admin_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexSSOAdminCostCents") @@ -81,7 +84,11 @@ class TenantPackage(BaseModel): flex_sso_moderator_cost_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexSSOModeratorCostCents") flex_sso_moderator_unit: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="flexSSOModeratorUnit") is_sso_billing_monthly_active_users: Optional[StrictBool] = Field(default=None, alias="isSSOBillingMonthlyActiveUsers") - __properties: ClassVar[List[str]] = ["_id", "name", "tenantId", "createdAt", "monthlyCostUSD", "yearlyCostUSD", "monthlyStripePlanId", "yearlyStripePlanId", "maxMonthlyPageLoads", "maxMonthlyAPICredits", "maxMonthlySmallWidgetsCredits", "maxMonthlyComments", "maxConcurrentUsers", "maxTenantUsers", "maxSSOUsers", "maxModerators", "maxDomains", "maxWhiteLabeledTenants", "maxMonthlyEventLogRequests", "maxCustomCollectionSize", "hasWhiteLabeling", "hasDebranding", "hasLLMSpamDetection", "forWhoText", "featureTaglines", "hasAuditing", "hasFlexPricing", "enableSAML", "enableCanvasLTI", "flexPageLoadCostCents", "flexPageLoadUnit", "flexCommentCostCents", "flexCommentUnit", "flexSSOUserCostCents", "flexSSOUserUnit", "flexAPICreditCostCents", "flexAPICreditUnit", "flexSmallWidgetsCreditCostCents", "flexSmallWidgetsCreditUnit", "flexModeratorCostCents", "flexModeratorUnit", "flexAdminCostCents", "flexAdminUnit", "flexDomainCostCents", "flexDomainUnit", "flexChatGPTCostCents", "flexChatGPTUnit", "flexMinimumCostCents", "flexManagedTenantCostCents", "flexSSOAdminCostCents", "flexSSOAdminUnit", "flexSSOModeratorCostCents", "flexSSOModeratorUnit", "isSSOBillingMonthlyActiveUsers"] + has_ai_agents: Optional[StrictBool] = Field(default=None, alias="hasAIAgents") + max_ai_agents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="maxAIAgents") + ai_agent_daily_budget_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="aiAgentDailyBudgetCents") + ai_agent_monthly_budget_cents: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="aiAgentMonthlyBudgetCents") + __properties: ClassVar[List[str]] = ["_id", "name", "tenantId", "createdAt", "templateId", "monthlyCostUSD", "yearlyCostUSD", "monthlyStripePlanId", "yearlyStripePlanId", "maxMonthlyPageLoads", "maxMonthlyAPICredits", "maxMonthlySmallWidgetsCredits", "maxMonthlyComments", "maxConcurrentUsers", "maxTenantUsers", "maxSSOUsers", "maxModerators", "maxDomains", "maxWhiteLabeledTenants", "maxMonthlyEventLogRequests", "maxCustomCollectionSize", "hasWhiteLabeling", "hasDebranding", "hasLLMSpamDetection", "forWhoText", "featureTaglines", "hasAuditing", "hasFlexPricing", "enableSAML", "enableCanvasLTI", "flexPageLoadCostCents", "flexPageLoadUnit", "flexCommentCostCents", "flexCommentUnit", "flexSSOUserCostCents", "flexSSOUserUnit", "flexAPICreditCostCents", "flexAPICreditUnit", "flexSmallWidgetsCreditCostCents", "flexSmallWidgetsCreditUnit", "flexModeratorCostCents", "flexModeratorUnit", "flexAdminCostCents", "flexAdminUnit", "flexDomainCostCents", "flexDomainUnit", "flexChatGPTCostCents", "flexChatGPTUnit", "flexLLMCostCents", "flexLLMUnit", "flexMinimumCostCents", "flexManagedTenantCostCents", "flexSSOAdminCostCents", "flexSSOAdminUnit", "flexSSOModeratorCostCents", "flexSSOModeratorUnit", "isSSOBillingMonthlyActiveUsers", "hasAIAgents", "maxAIAgents", "aiAgentDailyBudgetCents", "aiAgentMonthlyBudgetCents"] model_config = ConfigDict( populate_by_name=True, @@ -158,6 +165,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "name": obj.get("name"), "tenantId": obj.get("tenantId"), "createdAt": obj.get("createdAt"), + "templateId": obj.get("templateId"), "monthlyCostUSD": obj.get("monthlyCostUSD"), "yearlyCostUSD": obj.get("yearlyCostUSD"), "monthlyStripePlanId": obj.get("monthlyStripePlanId"), @@ -201,13 +209,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "flexDomainUnit": obj.get("flexDomainUnit"), "flexChatGPTCostCents": obj.get("flexChatGPTCostCents"), "flexChatGPTUnit": obj.get("flexChatGPTUnit"), + "flexLLMCostCents": obj.get("flexLLMCostCents"), + "flexLLMUnit": obj.get("flexLLMUnit"), "flexMinimumCostCents": obj.get("flexMinimumCostCents"), "flexManagedTenantCostCents": obj.get("flexManagedTenantCostCents"), "flexSSOAdminCostCents": obj.get("flexSSOAdminCostCents"), "flexSSOAdminUnit": obj.get("flexSSOAdminUnit"), "flexSSOModeratorCostCents": obj.get("flexSSOModeratorCostCents"), "flexSSOModeratorUnit": obj.get("flexSSOModeratorUnit"), - "isSSOBillingMonthlyActiveUsers": obj.get("isSSOBillingMonthlyActiveUsers") + "isSSOBillingMonthlyActiveUsers": obj.get("isSSOBillingMonthlyActiveUsers"), + "hasAIAgents": obj.get("hasAIAgents"), + "maxAIAgents": obj.get("maxAIAgents"), + "aiAgentDailyBudgetCents": obj.get("aiAgentDailyBudgetCents"), + "aiAgentMonthlyBudgetCents": obj.get("aiAgentMonthlyBudgetCents") }) return _obj diff --git a/client/models/un_block_comment_public200_response.py b/client/models/un_block_comment_public200_response.py deleted file mode 100644 index c16b1e1..0000000 --- a/client/models/un_block_comment_public200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.unblock_success import UnblockSuccess -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -UNBLOCKCOMMENTPUBLIC200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "UnblockSuccess"] - -class UnBlockCommentPublic200Response(BaseModel): - """ - UnBlockCommentPublic200Response - """ - - # data type: UnblockSuccess - anyof_schema_1_validator: Optional[UnblockSuccess] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, UnblockSuccess]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "UnblockSuccess" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = UnBlockCommentPublic200Response.model_construct() - error_messages = [] - # validate data type: UnblockSuccess - if not isinstance(v, UnblockSuccess): - error_messages.append(f"Error! Input type `{type(v)}` is not `UnblockSuccess`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in UnBlockCommentPublic200Response with anyOf schemas: APIError, UnblockSuccess. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[UnblockSuccess] = None - try: - instance.actual_instance = UnblockSuccess.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into UnBlockCommentPublic200Response with anyOf schemas: APIError, UnblockSuccess. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, UnblockSuccess]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/update_user_badge200_response.py b/client/models/update_user_badge200_response.py deleted file mode 100644 index 555aab7..0000000 --- a/client/models/update_user_badge200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_empty_success_response import APIEmptySuccessResponse -from client.models.api_error import APIError -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -UPDATEUSERBADGE200RESPONSE_ANY_OF_SCHEMAS = ["APIEmptySuccessResponse", "APIError"] - -class UpdateUserBadge200Response(BaseModel): - """ - UpdateUserBadge200Response - """ - - # data type: APIEmptySuccessResponse - anyof_schema_1_validator: Optional[APIEmptySuccessResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIEmptySuccessResponse, APIError]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIEmptySuccessResponse", "APIError" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = UpdateUserBadge200Response.model_construct() - error_messages = [] - # validate data type: APIEmptySuccessResponse - if not isinstance(v, APIEmptySuccessResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIEmptySuccessResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in UpdateUserBadge200Response with anyOf schemas: APIEmptySuccessResponse, APIError. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[APIEmptySuccessResponse] = None - try: - instance.actual_instance = APIEmptySuccessResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into UpdateUserBadge200Response with anyOf schemas: APIEmptySuccessResponse, APIError. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIEmptySuccessResponse, APIError]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/models/update_user_notification_status200_response.py b/client/models/update_user_notification_comment_subscription_status_response.py similarity index 73% rename from client/models/update_user_notification_status200_response.py rename to client/models/update_user_notification_comment_subscription_status_response.py index cb63f10..ae1c217 100644 --- a/client/models/update_user_notification_status200_response.py +++ b/client/models/update_user_notification_comment_subscription_status_response.py @@ -19,31 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError from client.models.ignored_response import IgnoredResponse from client.models.user_notification_write_response import UserNotificationWriteResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -UPDATEUSERNOTIFICATIONSTATUS200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "IgnoredResponse", "UserNotificationWriteResponse"] +UPDATEUSERNOTIFICATIONCOMMENTSUBSCRIPTIONSTATUSRESPONSE_ANY_OF_SCHEMAS = ["IgnoredResponse", "UserNotificationWriteResponse"] -class UpdateUserNotificationStatus200Response(BaseModel): +class UpdateUserNotificationCommentSubscriptionStatusResponse(BaseModel): """ - UpdateUserNotificationStatus200Response + UpdateUserNotificationCommentSubscriptionStatusResponse """ # data type: UserNotificationWriteResponse anyof_schema_1_validator: Optional[UserNotificationWriteResponse] = None # data type: IgnoredResponse anyof_schema_2_validator: Optional[IgnoredResponse] = None - # data type: APIError - anyof_schema_3_validator: Optional[APIError] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, IgnoredResponse, UserNotificationWriteResponse]] = None + actual_instance: Optional[Union[IgnoredResponse, UserNotificationWriteResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "IgnoredResponse", "UserNotificationWriteResponse" } + any_of_schemas: Set[str] = { "IgnoredResponse", "UserNotificationWriteResponse" } model_config = { "validate_assignment": True, @@ -62,7 +59,7 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = UpdateUserNotificationStatus200Response.model_construct() + instance = UpdateUserNotificationCommentSubscriptionStatusResponse.model_construct() error_messages = [] # validate data type: UserNotificationWriteResponse if not isinstance(v, UserNotificationWriteResponse): @@ -76,15 +73,9 @@ def actual_instance_must_validate_anyof(cls, v): else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in UpdateUserNotificationStatus200Response with anyOf schemas: APIError, IgnoredResponse, UserNotificationWriteResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in UpdateUserNotificationCommentSubscriptionStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. Details: " + ", ".join(error_messages)) else: return v @@ -109,16 +100,10 @@ def from_json(cls, json_str: str) -> Self: return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_3_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into UpdateUserNotificationStatus200Response with anyOf schemas: APIError, IgnoredResponse, UserNotificationWriteResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into UpdateUserNotificationCommentSubscriptionStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -132,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, IgnoredResponse, UserNotificationWriteResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], IgnoredResponse, UserNotificationWriteResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/get_user_presence_statuses200_response.py b/client/models/update_user_notification_page_subscription_status_response.py similarity index 64% rename from client/models/get_user_presence_statuses200_response.py rename to client/models/update_user_notification_page_subscription_status_response.py index f0a2273..b500d11 100644 --- a/client/models/get_user_presence_statuses200_response.py +++ b/client/models/update_user_notification_page_subscription_status_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.get_user_presence_statuses_response import GetUserPresenceStatusesResponse +from client.models.ignored_response import IgnoredResponse +from client.models.user_notification_write_response import UserNotificationWriteResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETUSERPRESENCESTATUSES200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetUserPresenceStatusesResponse"] +UPDATEUSERNOTIFICATIONPAGESUBSCRIPTIONSTATUSRESPONSE_ANY_OF_SCHEMAS = ["IgnoredResponse", "UserNotificationWriteResponse"] -class GetUserPresenceStatuses200Response(BaseModel): +class UpdateUserNotificationPageSubscriptionStatusResponse(BaseModel): """ - GetUserPresenceStatuses200Response + UpdateUserNotificationPageSubscriptionStatusResponse """ - # data type: GetUserPresenceStatusesResponse - anyof_schema_1_validator: Optional[GetUserPresenceStatusesResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: UserNotificationWriteResponse + anyof_schema_1_validator: Optional[UserNotificationWriteResponse] = None + # data type: IgnoredResponse + anyof_schema_2_validator: Optional[IgnoredResponse] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetUserPresenceStatusesResponse]] = None + actual_instance: Optional[Union[IgnoredResponse, UserNotificationWriteResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetUserPresenceStatusesResponse" } + any_of_schemas: Set[str] = { "IgnoredResponse", "UserNotificationWriteResponse" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetUserPresenceStatuses200Response.model_construct() + instance = UpdateUserNotificationPageSubscriptionStatusResponse.model_construct() error_messages = [] - # validate data type: GetUserPresenceStatusesResponse - if not isinstance(v, GetUserPresenceStatusesResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetUserPresenceStatusesResponse`") + # validate data type: UserNotificationWriteResponse + if not isinstance(v, UserNotificationWriteResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `UserNotificationWriteResponse`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: IgnoredResponse + if not isinstance(v, IgnoredResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `IgnoredResponse`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetUserPresenceStatuses200Response with anyOf schemas: APIError, GetUserPresenceStatusesResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in UpdateUserNotificationPageSubscriptionStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[GetUserPresenceStatusesResponse] = None + # anyof_schema_1_validator: Optional[UserNotificationWriteResponse] = None try: - instance.actual_instance = GetUserPresenceStatusesResponse.from_json(json_str) + instance.actual_instance = UserNotificationWriteResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[IgnoredResponse] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = IgnoredResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetUserPresenceStatuses200Response with anyOf schemas: APIError, GetUserPresenceStatusesResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into UpdateUserNotificationPageSubscriptionStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetUserPresenceStatusesResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], IgnoredResponse, UserNotificationWriteResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/get_comment_vote_user_names200_response.py b/client/models/update_user_notification_status_response.py similarity index 65% rename from client/models/get_comment_vote_user_names200_response.py rename to client/models/update_user_notification_status_response.py index 058dfe8..8511585 100644 --- a/client/models/get_comment_vote_user_names200_response.py +++ b/client/models/update_user_notification_status_response.py @@ -19,28 +19,28 @@ import re # noqa: F401 from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator from typing import Optional -from client.models.api_error import APIError -from client.models.get_comment_vote_user_names_success_response import GetCommentVoteUserNamesSuccessResponse +from client.models.ignored_response import IgnoredResponse +from client.models.user_notification_write_response import UserNotificationWriteResponse from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict from typing_extensions import Literal, Self from pydantic import Field -GETCOMMENTVOTEUSERNAMES200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "GetCommentVoteUserNamesSuccessResponse"] +UPDATEUSERNOTIFICATIONSTATUSRESPONSE_ANY_OF_SCHEMAS = ["IgnoredResponse", "UserNotificationWriteResponse"] -class GetCommentVoteUserNames200Response(BaseModel): +class UpdateUserNotificationStatusResponse(BaseModel): """ - GetCommentVoteUserNames200Response + UpdateUserNotificationStatusResponse """ - # data type: GetCommentVoteUserNamesSuccessResponse - anyof_schema_1_validator: Optional[GetCommentVoteUserNamesSuccessResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None + # data type: UserNotificationWriteResponse + anyof_schema_1_validator: Optional[UserNotificationWriteResponse] = None + # data type: IgnoredResponse + anyof_schema_2_validator: Optional[IgnoredResponse] = None if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, GetCommentVoteUserNamesSuccessResponse]] = None + actual_instance: Optional[Union[IgnoredResponse, UserNotificationWriteResponse]] = None else: actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "GetCommentVoteUserNamesSuccessResponse" } + any_of_schemas: Set[str] = { "IgnoredResponse", "UserNotificationWriteResponse" } model_config = { "validate_assignment": True, @@ -59,23 +59,23 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_anyof(cls, v): - instance = GetCommentVoteUserNames200Response.model_construct() + instance = UpdateUserNotificationStatusResponse.model_construct() error_messages = [] - # validate data type: GetCommentVoteUserNamesSuccessResponse - if not isinstance(v, GetCommentVoteUserNamesSuccessResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `GetCommentVoteUserNamesSuccessResponse`") + # validate data type: UserNotificationWriteResponse + if not isinstance(v, UserNotificationWriteResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `UserNotificationWriteResponse`") else: return v - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") + # validate data type: IgnoredResponse + if not isinstance(v, IgnoredResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `IgnoredResponse`") else: return v if error_messages: # no match - raise ValueError("No match found when setting the actual_instance in GetCommentVoteUserNames200Response with anyOf schemas: APIError, GetCommentVoteUserNamesSuccessResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when setting the actual_instance in UpdateUserNotificationStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. Details: " + ", ".join(error_messages)) else: return v @@ -88,22 +88,22 @@ def from_json(cls, json_str: str) -> Self: """Returns the object represented by the json string""" instance = cls.model_construct() error_messages = [] - # anyof_schema_1_validator: Optional[GetCommentVoteUserNamesSuccessResponse] = None + # anyof_schema_1_validator: Optional[UserNotificationWriteResponse] = None try: - instance.actual_instance = GetCommentVoteUserNamesSuccessResponse.from_json(json_str) + instance.actual_instance = UserNotificationWriteResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None + # anyof_schema_2_validator: Optional[IgnoredResponse] = None try: - instance.actual_instance = APIError.from_json(json_str) + instance.actual_instance = IgnoredResponse.from_json(json_str) return instance except (ValidationError, ValueError) as e: error_messages.append(str(e)) if error_messages: # no match - raise ValueError("No match found when deserializing the JSON string into GetCommentVoteUserNames200Response with anyOf schemas: APIError, GetCommentVoteUserNamesSuccessResponse. Details: " + ", ".join(error_messages)) + raise ValueError("No match found when deserializing the JSON string into UpdateUserNotificationStatusResponse with anyOf schemas: IgnoredResponse, UserNotificationWriteResponse. Details: " + ", ".join(error_messages)) else: return instance @@ -117,7 +117,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, GetCommentVoteUserNamesSuccessResponse]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], IgnoredResponse, UserNotificationWriteResponse]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/client/models/user.py b/client/models/user.py index a067069..f75932a 100644 --- a/client/models/user.py +++ b/client/models/user.py @@ -21,6 +21,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr from typing import Any, ClassVar, Dict, List, Optional, Union from client.models.digest_email_frequency import DigestEmailFrequency +from client.models.imported_agent_approval_notification_frequency import ImportedAgentApprovalNotificationFrequency from typing import Optional, Set from typing_extensions import Self @@ -67,6 +68,7 @@ class User(BaseModel): digest_email_frequency: Optional[DigestEmailFrequency] = Field(default=None, alias="digestEmailFrequency") notification_frequency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="notificationFrequency") admin_notification_frequency: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="adminNotificationFrequency") + agent_approval_notification_frequency: Optional[ImportedAgentApprovalNotificationFrequency] = Field(default=None, alias="agentApprovalNotificationFrequency") last_tenant_notification_sent_date: Optional[datetime] = Field(default=None, alias="lastTenantNotificationSentDate") last_reply_notification_sent_date: Optional[datetime] = Field(default=None, alias="lastReplyNotificationSentDate") ignored_add_to_my_site_messages: Optional[StrictBool] = Field(default=None, alias="ignoredAddToMySiteMessages") @@ -87,7 +89,7 @@ class User(BaseModel): social_links: Optional[List[StrictStr]] = Field(default=None, alias="socialLinks") has_two_factor: Optional[StrictBool] = Field(default=None, alias="hasTwoFactor") is_email_suppressed: Optional[StrictBool] = Field(default=None, alias="isEmailSuppressed") - __properties: ClassVar[List[str]] = ["_id", "tenantId", "username", "displayName", "websiteUrl", "email", "pendingEmail", "backupEmail", "pendingBackupEmail", "signUpDate", "createdFromUrlId", "createdFromTenantId", "createdFromIpHashed", "verified", "loginId", "loginIdDate", "loginCount", "optedInNotifications", "optedInTenantNotifications", "hideAccountCode", "avatarSrc", "isFastCommentsHelpRequestAdmin", "isHelpRequestAdmin", "isAccountOwner", "isAdminAdmin", "isBillingAdmin", "isAnalyticsAdmin", "isCustomizationAdmin", "isManageDataAdmin", "isCommentModeratorAdmin", "isAPIAdmin", "isSiteAdmin", "moderatorIds", "isImpersonator", "isCouponManager", "locale", "digestEmailFrequency", "notificationFrequency", "adminNotificationFrequency", "lastTenantNotificationSentDate", "lastReplyNotificationSentDate", "ignoredAddToMySiteMessages", "lastLoginDate", "displayLabel", "isProfileActivityPrivate", "isProfileCommentsPrivate", "isProfileDMDisabled", "profileCommentApprovalMode", "karma", "passwordHash", "averageTicketAckTimeMS", "hasBlockedUsers", "bio", "headerBackgroundSrc", "countryCode", "countryFlag", "socialLinks", "hasTwoFactor", "isEmailSuppressed"] + __properties: ClassVar[List[str]] = ["_id", "tenantId", "username", "displayName", "websiteUrl", "email", "pendingEmail", "backupEmail", "pendingBackupEmail", "signUpDate", "createdFromUrlId", "createdFromTenantId", "createdFromIpHashed", "verified", "loginId", "loginIdDate", "loginCount", "optedInNotifications", "optedInTenantNotifications", "hideAccountCode", "avatarSrc", "isFastCommentsHelpRequestAdmin", "isHelpRequestAdmin", "isAccountOwner", "isAdminAdmin", "isBillingAdmin", "isAnalyticsAdmin", "isCustomizationAdmin", "isManageDataAdmin", "isCommentModeratorAdmin", "isAPIAdmin", "isSiteAdmin", "moderatorIds", "isImpersonator", "isCouponManager", "locale", "digestEmailFrequency", "notificationFrequency", "adminNotificationFrequency", "agentApprovalNotificationFrequency", "lastTenantNotificationSentDate", "lastReplyNotificationSentDate", "ignoredAddToMySiteMessages", "lastLoginDate", "displayLabel", "isProfileActivityPrivate", "isProfileCommentsPrivate", "isProfileDMDisabled", "profileCommentApprovalMode", "karma", "passwordHash", "averageTicketAckTimeMS", "hasBlockedUsers", "bio", "headerBackgroundSrc", "countryCode", "countryFlag", "socialLinks", "hasTwoFactor", "isEmailSuppressed"] model_config = ConfigDict( populate_by_name=True, @@ -214,6 +216,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "digestEmailFrequency": obj.get("digestEmailFrequency"), "notificationFrequency": obj.get("notificationFrequency"), "adminNotificationFrequency": obj.get("adminNotificationFrequency"), + "agentApprovalNotificationFrequency": obj.get("agentApprovalNotificationFrequency"), "lastTenantNotificationSentDate": obj.get("lastTenantNotificationSentDate"), "lastReplyNotificationSentDate": obj.get("lastReplyNotificationSentDate"), "ignoredAddToMySiteMessages": obj.get("ignoredAddToMySiteMessages"), diff --git a/client/models/users_list_location.py b/client/models/users_list_location.py new file mode 100644 index 0000000..4316331 --- /dev/null +++ b/client/models/users_list_location.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import json +from enum import Enum +from typing_extensions import Self + + +class UsersListLocation(int, Enum): + """ + UsersListLocation + """ + + """ + allowed enum values + """ + NUMBER_0 = 0 + NUMBER_1 = 1 + NUMBER_2 = 2 + NUMBER_3 = 3 + + @classmethod + def from_json(cls, json_str: str) -> Self: + """Create an instance of UsersListLocation from a JSON string""" + return cls(json.loads(json_str)) + + diff --git a/client/models/vote_comment200_response.py b/client/models/vote_comment200_response.py deleted file mode 100644 index ec32319..0000000 --- a/client/models/vote_comment200_response.py +++ /dev/null @@ -1,134 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -from __future__ import annotations -from inspect import getfullargspec -import json -import pprint -import re # noqa: F401 -from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator -from typing import Optional -from client.models.api_error import APIError -from client.models.vote_response import VoteResponse -from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict -from typing_extensions import Literal, Self -from pydantic import Field - -VOTECOMMENT200RESPONSE_ANY_OF_SCHEMAS = ["APIError", "VoteResponse"] - -class VoteComment200Response(BaseModel): - """ - VoteComment200Response - """ - - # data type: VoteResponse - anyof_schema_1_validator: Optional[VoteResponse] = None - # data type: APIError - anyof_schema_2_validator: Optional[APIError] = None - if TYPE_CHECKING: - actual_instance: Optional[Union[APIError, VoteResponse]] = None - else: - actual_instance: Any = None - any_of_schemas: Set[str] = { "APIError", "VoteResponse" } - - model_config = { - "validate_assignment": True, - "protected_namespaces": (), - } - - def __init__(self, *args, **kwargs) -> None: - if args: - if len(args) > 1: - raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`") - if kwargs: - raise ValueError("If a position argument is used, keyword arguments cannot be used.") - super().__init__(actual_instance=args[0]) - else: - super().__init__(**kwargs) - - @field_validator('actual_instance') - def actual_instance_must_validate_anyof(cls, v): - instance = VoteComment200Response.model_construct() - error_messages = [] - # validate data type: VoteResponse - if not isinstance(v, VoteResponse): - error_messages.append(f"Error! Input type `{type(v)}` is not `VoteResponse`") - else: - return v - - # validate data type: APIError - if not isinstance(v, APIError): - error_messages.append(f"Error! Input type `{type(v)}` is not `APIError`") - else: - return v - - if error_messages: - # no match - raise ValueError("No match found when setting the actual_instance in VoteComment200Response with anyOf schemas: APIError, VoteResponse. Details: " + ", ".join(error_messages)) - else: - return v - - @classmethod - def from_dict(cls, obj: Dict[str, Any]) -> Self: - return cls.from_json(json.dumps(obj)) - - @classmethod - def from_json(cls, json_str: str) -> Self: - """Returns the object represented by the json string""" - instance = cls.model_construct() - error_messages = [] - # anyof_schema_1_validator: Optional[VoteResponse] = None - try: - instance.actual_instance = VoteResponse.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - # anyof_schema_2_validator: Optional[APIError] = None - try: - instance.actual_instance = APIError.from_json(json_str) - return instance - except (ValidationError, ValueError) as e: - error_messages.append(str(e)) - - if error_messages: - # no match - raise ValueError("No match found when deserializing the JSON string into VoteComment200Response with anyOf schemas: APIError, VoteResponse. Details: " + ", ".join(error_messages)) - else: - return instance - - def to_json(self) -> str: - """Returns the JSON representation of the actual instance""" - if self.actual_instance is None: - return "null" - - if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json): - return self.actual_instance.to_json() - else: - return json.dumps(self.actual_instance) - - def to_dict(self) -> Optional[Union[Dict[str, Any], APIError, VoteResponse]]: - """Returns the dict representation of the actual instance""" - if self.actual_instance is None: - return None - - if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict): - return self.actual_instance.to_dict() - else: - return self.actual_instance - - def to_str(self) -> str: - """Returns the string representation of the actual instance""" - return pprint.pformat(self.model_dump()) - - diff --git a/client/test/test_add_domain_config200_response.py b/client/test/test_add_domain_config_response.py similarity index 73% rename from client/test/test_add_domain_config200_response.py rename to client/test/test_add_domain_config_response.py index 8fccb89..36ad3d6 100644 --- a/client/test/test_add_domain_config200_response.py +++ b/client/test/test_add_domain_config_response.py @@ -14,10 +14,10 @@ import unittest -from client.models.add_domain_config200_response import AddDomainConfig200Response +from client.models.add_domain_config_response import AddDomainConfigResponse -class TestAddDomainConfig200Response(unittest.TestCase): - """AddDomainConfig200Response unit test stubs""" +class TestAddDomainConfigResponse(unittest.TestCase): + """AddDomainConfigResponse unit test stubs""" def setUp(self): pass @@ -25,23 +25,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AddDomainConfig200Response: - """Test AddDomainConfig200Response + def make_instance(self, include_optional) -> AddDomainConfigResponse: + """Test AddDomainConfigResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `AddDomainConfig200Response` + # uncomment below to create an instance of `AddDomainConfigResponse` """ - model = AddDomainConfig200Response() + model = AddDomainConfigResponse() if include_optional: - return AddDomainConfig200Response( + return AddDomainConfigResponse( reason = '', code = '', status = client.models.status.status(), configuration = client.models.configuration.configuration() ) else: - return AddDomainConfig200Response( + return AddDomainConfigResponse( reason = '', code = '', status = client.models.status.status(), @@ -49,8 +49,8 @@ def make_instance(self, include_optional) -> AddDomainConfig200Response: ) """ - def testAddDomainConfig200Response(self): - """Test AddDomainConfig200Response""" + def testAddDomainConfigResponse(self): + """Test AddDomainConfigResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_add_domain_config200_response_any_of.py b/client/test/test_add_domain_config_response_any_of.py similarity index 67% rename from client/test/test_add_domain_config200_response_any_of.py rename to client/test/test_add_domain_config_response_any_of.py index 6a4138c..9615601 100644 --- a/client/test/test_add_domain_config200_response_any_of.py +++ b/client/test/test_add_domain_config_response_any_of.py @@ -14,10 +14,10 @@ import unittest -from client.models.add_domain_config200_response_any_of import AddDomainConfig200ResponseAnyOf +from client.models.add_domain_config_response_any_of import AddDomainConfigResponseAnyOf -class TestAddDomainConfig200ResponseAnyOf(unittest.TestCase): - """AddDomainConfig200ResponseAnyOf unit test stubs""" +class TestAddDomainConfigResponseAnyOf(unittest.TestCase): + """AddDomainConfigResponseAnyOf unit test stubs""" def setUp(self): pass @@ -25,28 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> AddDomainConfig200ResponseAnyOf: - """Test AddDomainConfig200ResponseAnyOf + def make_instance(self, include_optional) -> AddDomainConfigResponseAnyOf: + """Test AddDomainConfigResponseAnyOf include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `AddDomainConfig200ResponseAnyOf` + # uncomment below to create an instance of `AddDomainConfigResponseAnyOf` """ - model = AddDomainConfig200ResponseAnyOf() + model = AddDomainConfigResponseAnyOf() if include_optional: - return AddDomainConfig200ResponseAnyOf( + return AddDomainConfigResponseAnyOf( configuration = None, status = None ) else: - return AddDomainConfig200ResponseAnyOf( + return AddDomainConfigResponseAnyOf( configuration = None, status = None, ) """ - def testAddDomainConfig200ResponseAnyOf(self): - """Test AddDomainConfig200ResponseAnyOf""" + def testAddDomainConfigResponseAnyOf(self): + """Test AddDomainConfigResponseAnyOf""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_add_hash_tag200_response.py b/client/test/test_add_hash_tag200_response.py deleted file mode 100644 index 41e11b5..0000000 --- a/client/test/test_add_hash_tag200_response.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.add_hash_tag200_response import AddHashTag200Response - -class TestAddHashTag200Response(unittest.TestCase): - """AddHashTag200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AddHashTag200Response: - """Test AddHashTag200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AddHashTag200Response` - """ - model = AddHashTag200Response() - if include_optional: - return AddHashTag200Response( - status = 'success', - hash_tag = client.models.tenant_hash_tag.TenantHashTag( - _id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tenant_id = '', - tag = '', - url = '', ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return AddHashTag200Response( - status = 'success', - hash_tag = client.models.tenant_hash_tag.TenantHashTag( - _id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tenant_id = '', - tag = '', - url = '', ), - reason = '', - code = '', - ) - """ - - def testAddHashTag200Response(self): - """Test AddHashTag200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_add_hash_tags_bulk200_response.py b/client/test/test_add_hash_tags_bulk200_response.py deleted file mode 100644 index a0f203d..0000000 --- a/client/test/test_add_hash_tags_bulk200_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.add_hash_tags_bulk200_response import AddHashTagsBulk200Response - -class TestAddHashTagsBulk200Response(unittest.TestCase): - """AddHashTagsBulk200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AddHashTagsBulk200Response: - """Test AddHashTagsBulk200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AddHashTagsBulk200Response` - """ - model = AddHashTagsBulk200Response() - if include_optional: - return AddHashTagsBulk200Response( - status = 'success', - results = [ - null - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return AddHashTagsBulk200Response( - status = 'success', - results = [ - null - ], - reason = '', - code = '', - ) - """ - - def testAddHashTagsBulk200Response(self): - """Test AddHashTagsBulk200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_adjust_comment_votes_params.py b/client/test/test_adjust_comment_votes_params.py new file mode 100644 index 0000000..59b0fb6 --- /dev/null +++ b/client/test/test_adjust_comment_votes_params.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.adjust_comment_votes_params import AdjustCommentVotesParams + +class TestAdjustCommentVotesParams(unittest.TestCase): + """AdjustCommentVotesParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AdjustCommentVotesParams: + """Test AdjustCommentVotesParams + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AdjustCommentVotesParams` + """ + model = AdjustCommentVotesParams() + if include_optional: + return AdjustCommentVotesParams( + adjust_vote_amount = 1.337 + ) + else: + return AdjustCommentVotesParams( + adjust_vote_amount = 1.337, + ) + """ + + def testAdjustCommentVotesParams(self): + """Test AdjustCommentVotesParams""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_record_string_string_or_number_value.py b/client/test/test_adjust_votes_response.py similarity index 56% rename from client/test/test_record_string_string_or_number_value.py rename to client/test/test_adjust_votes_response.py index 1f8bef5..5736fea 100644 --- a/client/test/test_record_string_string_or_number_value.py +++ b/client/test/test_adjust_votes_response.py @@ -14,10 +14,10 @@ import unittest -from client.models.record_string_string_or_number_value import RecordStringStringOrNumberValue +from client.models.adjust_votes_response import AdjustVotesResponse -class TestRecordStringStringOrNumberValue(unittest.TestCase): - """RecordStringStringOrNumberValue unit test stubs""" +class TestAdjustVotesResponse(unittest.TestCase): + """AdjustVotesResponse unit test stubs""" def setUp(self): pass @@ -25,24 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> RecordStringStringOrNumberValue: - """Test RecordStringStringOrNumberValue + def make_instance(self, include_optional) -> AdjustVotesResponse: + """Test AdjustVotesResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `RecordStringStringOrNumberValue` + # uncomment below to create an instance of `AdjustVotesResponse` """ - model = RecordStringStringOrNumberValue() + model = AdjustVotesResponse() if include_optional: - return RecordStringStringOrNumberValue( + return AdjustVotesResponse( + status = '', + new_comment_votes = 56 ) else: - return RecordStringStringOrNumberValue( + return AdjustVotesResponse( + status = '', + new_comment_votes = 56, ) """ - def testRecordStringStringOrNumberValue(self): - """Test RecordStringStringOrNumberValue""" + def testAdjustVotesResponse(self): + """Test AdjustVotesResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_aggregate_question_results200_response.py b/client/test/test_aggregate_question_results200_response.py deleted file mode 100644 index 3245490..0000000 --- a/client/test/test_aggregate_question_results200_response.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.aggregate_question_results200_response import AggregateQuestionResults200Response - -class TestAggregateQuestionResults200Response(unittest.TestCase): - """AggregateQuestionResults200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> AggregateQuestionResults200Response: - """Test AggregateQuestionResults200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `AggregateQuestionResults200Response` - """ - model = AggregateQuestionResults200Response() - if include_optional: - return AggregateQuestionResults200Response( - status = 'success', - data = client.models.question_result_aggregation_overall.QuestionResultAggregationOverall( - data_by_date_bucket = { - 'key' : client.models.question_datum.QuestionDatum( - v = { - 'key' : 1.337 - }, - total = 56, ) - }, - data_by_url_id = { - 'key' : client.models.question_datum.QuestionDatum( - v = { - 'key' : 1.337 - }, - total = 56, ) - }, - counts_by_value = { - 'key' : 56 - }, - total = 56, - average = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return AggregateQuestionResults200Response( - status = 'success', - data = client.models.question_result_aggregation_overall.QuestionResultAggregationOverall( - data_by_date_bucket = { - 'key' : client.models.question_datum.QuestionDatum( - v = { - 'key' : 1.337 - }, - total = 56, ) - }, - data_by_url_id = { - 'key' : client.models.question_datum.QuestionDatum( - v = { - 'key' : 1.337 - }, - total = 56, ) - }, - counts_by_value = { - 'key' : 56 - }, - total = 56, - average = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - reason = '', - code = '', - ) - """ - - def testAggregateQuestionResults200Response(self): - """Test AggregateQuestionResults200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_aggregate_response.py b/client/test/test_aggregate_response.py new file mode 100644 index 0000000..a00c8ff --- /dev/null +++ b/client/test/test_aggregate_response.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.aggregate_response import AggregateResponse + +class TestAggregateResponse(unittest.TestCase): + """AggregateResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AggregateResponse: + """Test AggregateResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AggregateResponse` + """ + model = AggregateResponse() + if include_optional: + return AggregateResponse( + status = 'success', + data = [ + null + ], + stats = client.models.aggregation_response_stats.AggregationResponse_stats( + time_ms = 56, + scanned = 56, ), + reason = '', + code = '', + valid_resource_names = [ + '' + ] + ) + else: + return AggregateResponse( + status = 'success', + data = [ + null + ], + reason = '', + code = '', + ) + """ + + def testAggregateResponse(self): + """Test AggregateResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_aggregation_api_error.py b/client/test/test_aggregation_api_error.py new file mode 100644 index 0000000..4465f2f --- /dev/null +++ b/client/test/test_aggregation_api_error.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.aggregation_api_error import AggregationAPIError + +class TestAggregationAPIError(unittest.TestCase): + """AggregationAPIError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AggregationAPIError: + """Test AggregationAPIError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AggregationAPIError` + """ + model = AggregationAPIError() + if include_optional: + return AggregationAPIError( + status = 'success', + reason = '', + code = '', + valid_resource_names = [ + '' + ] + ) + else: + return AggregationAPIError( + status = 'success', + reason = '', + code = '', + ) + """ + + def testAggregationAPIError(self): + """Test AggregationAPIError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_api_ban_user_change_log.py b/client/test/test_api_ban_user_change_log.py new file mode 100644 index 0000000..91ca96d --- /dev/null +++ b/client/test/test_api_ban_user_change_log.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.api_ban_user_change_log import APIBanUserChangeLog + +class TestAPIBanUserChangeLog(unittest.TestCase): + """APIBanUserChangeLog unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APIBanUserChangeLog: + """Test APIBanUserChangeLog + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `APIBanUserChangeLog` + """ + model = APIBanUserChangeLog() + if include_optional: + return APIBanUserChangeLog( + created_banned_user_id = '', + updated_banned_user_id = '', + deleted_banned_users = [ + client.models.api_banned_user.APIBannedUser( + _id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', ) + ], + changed_values_before = client.models.api_ban_user_changed_values.APIBanUserChangedValues( + _id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', ) + ) + else: + return APIBanUserChangeLog( + ) + """ + + def testAPIBanUserChangeLog(self): + """Test APIBanUserChangeLog""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_api_ban_user_changed_values.py b/client/test/test_api_ban_user_changed_values.py new file mode 100644 index 0000000..f007951 --- /dev/null +++ b/client/test/test_api_ban_user_changed_values.py @@ -0,0 +1,63 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.api_ban_user_changed_values import APIBanUserChangedValues + +class TestAPIBanUserChangedValues(unittest.TestCase): + """APIBanUserChangedValues unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APIBanUserChangedValues: + """Test APIBanUserChangedValues + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `APIBanUserChangedValues` + """ + model = APIBanUserChangedValues() + if include_optional: + return APIBanUserChangedValues( + id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '' + ) + else: + return APIBanUserChangedValues( + ) + """ + + def testAPIBanUserChangedValues(self): + """Test APIBanUserChangedValues""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_api_banned_user.py b/client/test/test_api_banned_user.py new file mode 100644 index 0000000..2865576 --- /dev/null +++ b/client/test/test_api_banned_user.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.api_banned_user import APIBannedUser + +class TestAPIBannedUser(unittest.TestCase): + """APIBannedUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APIBannedUser: + """Test APIBannedUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `APIBannedUser` + """ + model = APIBannedUser() + if include_optional: + return APIBannedUser( + id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '' + ) + else: + return APIBannedUser( + id = '', + tenant_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ) + """ + + def testAPIBannedUser(self): + """Test APIBannedUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_api_banned_user_with_multi_match_info.py b/client/test/test_api_banned_user_with_multi_match_info.py new file mode 100644 index 0000000..58be0dc --- /dev/null +++ b/client/test/test_api_banned_user_with_multi_match_info.py @@ -0,0 +1,72 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.api_banned_user_with_multi_match_info import APIBannedUserWithMultiMatchInfo + +class TestAPIBannedUserWithMultiMatchInfo(unittest.TestCase): + """APIBannedUserWithMultiMatchInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APIBannedUserWithMultiMatchInfo: + """Test APIBannedUserWithMultiMatchInfo + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `APIBannedUserWithMultiMatchInfo` + """ + model = APIBannedUserWithMultiMatchInfo() + if include_optional: + return APIBannedUserWithMultiMatchInfo( + id = '', + user_id = '', + ban_type = '', + email = '', + ip_hash = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', + matches = [ + client.models.banned_user_match.BannedUserMatch( + matched_on = 'userId', + matched_on_value = null, ) + ] + ) + else: + return APIBannedUserWithMultiMatchInfo( + id = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + matches = [ + client.models.banned_user_match.BannedUserMatch( + matched_on = 'userId', + matched_on_value = null, ) + ], + ) + """ + + def testAPIBannedUserWithMultiMatchInfo(self): + """Test APIBannedUserWithMultiMatchInfo""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_api_comment_common_banned_user.py b/client/test/test_api_comment_common_banned_user.py new file mode 100644 index 0000000..962a68b --- /dev/null +++ b/client/test/test_api_comment_common_banned_user.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.api_comment_common_banned_user import APICommentCommonBannedUser + +class TestAPICommentCommonBannedUser(unittest.TestCase): + """APICommentCommonBannedUser unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APICommentCommonBannedUser: + """Test APICommentCommonBannedUser + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `APICommentCommonBannedUser` + """ + model = APICommentCommonBannedUser() + if include_optional: + return APICommentCommonBannedUser( + id = '', + user_id = '', + ban_type = '', + email = '', + ip_hash = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '' + ) + else: + return APICommentCommonBannedUser( + id = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ) + """ + + def testAPICommentCommonBannedUser(self): + """Test APICommentCommonBannedUser""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_api_error.py b/client/test/test_api_error.py index 35219a0..439ab4a 100644 --- a/client/test/test_api_error.py +++ b/client/test/test_api_error.py @@ -97,11 +97,16 @@ def make_instance(self, include_optional) -> APIError: no_custom_config = True, mention_auto_complete_mode = null, no_image_uploads = True, + allow_embeds = True, + allowed_embed_domains = [ + '' + ], no_styles = True, page_size = 56, readonly = True, no_new_root_comments = True, require_sso = True, + enable_f_chat = True, enable_resize_handle = True, restricted_link_domains = [ '' @@ -130,6 +135,8 @@ def make_instance(self, include_optional) -> APIError: widget_questions_required = 0, widget_sub_question_visibility = 0, wrap = True, + users_list_location = 0, + users_list_include_offline = True, ticket_base_url = '', ticket_kb_search_endpoint = '', ticket_file_uploads_enabled = True, diff --git a/client/test/test_api_moderate_get_user_ban_preferences_response.py b/client/test/test_api_moderate_get_user_ban_preferences_response.py new file mode 100644 index 0000000..0dc0b83 --- /dev/null +++ b/client/test/test_api_moderate_get_user_ban_preferences_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.api_moderate_get_user_ban_preferences_response import APIModerateGetUserBanPreferencesResponse + +class TestAPIModerateGetUserBanPreferencesResponse(unittest.TestCase): + """APIModerateGetUserBanPreferencesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APIModerateGetUserBanPreferencesResponse: + """Test APIModerateGetUserBanPreferencesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `APIModerateGetUserBanPreferencesResponse` + """ + model = APIModerateGetUserBanPreferencesResponse() + if include_optional: + return APIModerateGetUserBanPreferencesResponse( + preferences = client.models.api_moderate_user_ban_preferences.APIModerateUserBanPreferences( + should_ban_email = True, + should_ban_by_ip = True, + last_ban_type = '', + last_ban_duration = '', ), + status = 'success' + ) + else: + return APIModerateGetUserBanPreferencesResponse( + preferences = client.models.api_moderate_user_ban_preferences.APIModerateUserBanPreferences( + should_ban_email = True, + should_ban_by_ip = True, + last_ban_type = '', + last_ban_duration = '', ), + status = 'success', + ) + """ + + def testAPIModerateGetUserBanPreferencesResponse(self): + """Test APIModerateGetUserBanPreferencesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_api_moderate_user_ban_preferences.py b/client/test/test_api_moderate_user_ban_preferences.py new file mode 100644 index 0000000..78b674e --- /dev/null +++ b/client/test/test_api_moderate_user_ban_preferences.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.api_moderate_user_ban_preferences import APIModerateUserBanPreferences + +class TestAPIModerateUserBanPreferences(unittest.TestCase): + """APIModerateUserBanPreferences unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APIModerateUserBanPreferences: + """Test APIModerateUserBanPreferences + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `APIModerateUserBanPreferences` + """ + model = APIModerateUserBanPreferences() + if include_optional: + return APIModerateUserBanPreferences( + should_ban_email = True, + should_ban_by_ip = True, + last_ban_type = '', + last_ban_duration = '' + ) + else: + return APIModerateUserBanPreferences( + should_ban_email = True, + should_ban_by_ip = True, + last_ban_type = '', + last_ban_duration = '', + ) + """ + + def testAPIModerateUserBanPreferences(self): + """Test APIModerateUserBanPreferences""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_api_save_comment_response.py b/client/test/test_api_save_comment_response.py new file mode 100644 index 0000000..edf3b02 --- /dev/null +++ b/client/test/test_api_save_comment_response.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.api_save_comment_response import APISaveCommentResponse + +class TestAPISaveCommentResponse(unittest.TestCase): + """APISaveCommentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> APISaveCommentResponse: + """Test APISaveCommentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `APISaveCommentResponse` + """ + model = APISaveCommentResponse() + if include_optional: + return APISaveCommentResponse( + status = 'success', + comment = None, + user = client.models.user_session_info.UserSessionInfo( + id = '', + authorized = True, + avatar_src = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + display_label = '', + display_name = '', + email = '', + group_ids = [ + '' + ], + has_blocked_users = True, + is_anon_session = True, + needs_tos = True, + session_id = '', + username = '', + website_url = '', ), + module_data = { + 'key' : null + } + ) + else: + return APISaveCommentResponse( + status = 'success', + comment = None, + user = client.models.user_session_info.UserSessionInfo( + id = '', + authorized = True, + avatar_src = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + display_label = '', + display_name = '', + email = '', + group_ids = [ + '' + ], + has_blocked_users = True, + is_anon_session = True, + needs_tos = True, + session_id = '', + username = '', + website_url = '', ), + ) + """ + + def testAPISaveCommentResponse(self): + """Test APISaveCommentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_award_user_badge_response.py b/client/test/test_award_user_badge_response.py new file mode 100644 index 0000000..bf0b31c --- /dev/null +++ b/client/test/test_award_user_badge_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.award_user_badge_response import AwardUserBadgeResponse + +class TestAwardUserBadgeResponse(unittest.TestCase): + """AwardUserBadgeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AwardUserBadgeResponse: + """Test AwardUserBadgeResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `AwardUserBadgeResponse` + """ + model = AwardUserBadgeResponse() + if include_optional: + return AwardUserBadgeResponse( + notes = [ + '' + ], + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + status = 'success' + ) + else: + return AwardUserBadgeResponse( + status = 'success', + ) + """ + + def testAwardUserBadgeResponse(self): + """Test AwardUserBadgeResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_ban_user_from_comment_result.py b/client/test/test_ban_user_from_comment_result.py new file mode 100644 index 0000000..b28666b --- /dev/null +++ b/client/test/test_ban_user_from_comment_result.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.ban_user_from_comment_result import BanUserFromCommentResult + +class TestBanUserFromCommentResult(unittest.TestCase): + """BanUserFromCommentResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BanUserFromCommentResult: + """Test BanUserFromCommentResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BanUserFromCommentResult` + """ + model = BanUserFromCommentResult() + if include_optional: + return BanUserFromCommentResult( + status = '', + changelog = client.models.api_ban_user_change_log.APIBanUserChangeLog( + created_banned_user_id = '', + updated_banned_user_id = '', + deleted_banned_users = [ + client.models.api_banned_user.APIBannedUser( + _id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', ) + ], + changed_values_before = client.models.api_ban_user_changed_values.APIBanUserChangedValues( + _id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', ), ), + code = '', + reason = '' + ) + else: + return BanUserFromCommentResult( + status = '', + ) + """ + + def testBanUserFromCommentResult(self): + """Test BanUserFromCommentResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_ban_user_undo_params.py b/client/test/test_ban_user_undo_params.py new file mode 100644 index 0000000..470ad64 --- /dev/null +++ b/client/test/test_ban_user_undo_params.py @@ -0,0 +1,116 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.ban_user_undo_params import BanUserUndoParams + +class TestBanUserUndoParams(unittest.TestCase): + """BanUserUndoParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BanUserUndoParams: + """Test BanUserUndoParams + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BanUserUndoParams` + """ + model = BanUserUndoParams() + if include_optional: + return BanUserUndoParams( + changelog = client.models.api_ban_user_change_log.APIBanUserChangeLog( + created_banned_user_id = '', + updated_banned_user_id = '', + deleted_banned_users = [ + client.models.api_banned_user.APIBannedUser( + _id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', ) + ], + changed_values_before = client.models.api_ban_user_changed_values.APIBanUserChangedValues( + _id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', ), ) + ) + else: + return BanUserUndoParams( + changelog = client.models.api_ban_user_change_log.APIBanUserChangeLog( + created_banned_user_id = '', + updated_banned_user_id = '', + deleted_banned_users = [ + client.models.api_banned_user.APIBannedUser( + _id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', ) + ], + changed_values_before = client.models.api_ban_user_changed_values.APIBanUserChangedValues( + _id = '', + tenant_id = '', + user_id = '', + email = '', + username = '', + ip_hash = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + banned_by_user_id = '', + banned_comment_text = '', + ban_type = '', + banned_until = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + has_email_wildcard = True, + ban_reason = '', ), ), + ) + """ + + def testBanUserUndoParams(self): + """Test BanUserUndoParams""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_banned_user_match.py b/client/test/test_banned_user_match.py new file mode 100644 index 0000000..5f73064 --- /dev/null +++ b/client/test/test_banned_user_match.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.banned_user_match import BannedUserMatch + +class TestBannedUserMatch(unittest.TestCase): + """BannedUserMatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BannedUserMatch: + """Test BannedUserMatch + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BannedUserMatch` + """ + model = BannedUserMatch() + if include_optional: + return BannedUserMatch( + matched_on = 'userId', + matched_on_value = None + ) + else: + return BannedUserMatch( + matched_on = 'userId', + matched_on_value = None, + ) + """ + + def testBannedUserMatch(self): + """Test BannedUserMatch""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_banned_user_match_matched_on_value.py b/client/test/test_banned_user_match_matched_on_value.py new file mode 100644 index 0000000..7994f08 --- /dev/null +++ b/client/test/test_banned_user_match_matched_on_value.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.banned_user_match_matched_on_value import BannedUserMatchMatchedOnValue + +class TestBannedUserMatchMatchedOnValue(unittest.TestCase): + """BannedUserMatchMatchedOnValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BannedUserMatchMatchedOnValue: + """Test BannedUserMatchMatchedOnValue + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BannedUserMatchMatchedOnValue` + """ + model = BannedUserMatchMatchedOnValue() + if include_optional: + return BannedUserMatchMatchedOnValue( + ) + else: + return BannedUserMatchMatchedOnValue( + ) + """ + + def testBannedUserMatchMatchedOnValue(self): + """Test BannedUserMatchMatchedOnValue""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_banned_user_match_type.py b/client/test/test_banned_user_match_type.py new file mode 100644 index 0000000..cdce74e --- /dev/null +++ b/client/test/test_banned_user_match_type.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.banned_user_match_type import BannedUserMatchType + +class TestBannedUserMatchType(unittest.TestCase): + """BannedUserMatchType unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBannedUserMatchType(self): + """Test BannedUserMatchType""" + # inst = BannedUserMatchType() + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_block_from_comment_public200_response.py b/client/test/test_block_from_comment_public200_response.py deleted file mode 100644 index 7b5675a..0000000 --- a/client/test/test_block_from_comment_public200_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.block_from_comment_public200_response import BlockFromCommentPublic200Response - -class TestBlockFromCommentPublic200Response(unittest.TestCase): - """BlockFromCommentPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BlockFromCommentPublic200Response: - """Test BlockFromCommentPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BlockFromCommentPublic200Response` - """ - model = BlockFromCommentPublic200Response() - if include_optional: - return BlockFromCommentPublic200Response( - status = 'success', - comment_statuses = { - 'key' : True - }, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return BlockFromCommentPublic200Response( - status = 'success', - comment_statuses = { - 'key' : True - }, - reason = '', - code = '', - ) - """ - - def testBlockFromCommentPublic200Response(self): - """Test BlockFromCommentPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_build_moderation_filter_params.py b/client/test/test_build_moderation_filter_params.py new file mode 100644 index 0000000..7bab0b4 --- /dev/null +++ b/client/test/test_build_moderation_filter_params.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.build_moderation_filter_params import BuildModerationFilterParams + +class TestBuildModerationFilterParams(unittest.TestCase): + """BuildModerationFilterParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BuildModerationFilterParams: + """Test BuildModerationFilterParams + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BuildModerationFilterParams` + """ + model = BuildModerationFilterParams() + if include_optional: + return BuildModerationFilterParams( + user_id = '', + tenant_id = '', + filters = '', + search_filters = '', + text_search = '' + ) + else: + return BuildModerationFilterParams( + user_id = '', + tenant_id = '', + ) + """ + + def testBuildModerationFilterParams(self): + """Test BuildModerationFilterParams""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_build_moderation_filter_response.py b/client/test/test_build_moderation_filter_response.py new file mode 100644 index 0000000..4b53ded --- /dev/null +++ b/client/test/test_build_moderation_filter_response.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.build_moderation_filter_response import BuildModerationFilterResponse + +class TestBuildModerationFilterResponse(unittest.TestCase): + """BuildModerationFilterResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BuildModerationFilterResponse: + """Test BuildModerationFilterResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BuildModerationFilterResponse` + """ + model = BuildModerationFilterResponse() + if include_optional: + return BuildModerationFilterResponse( + status = '', + moderation_filter = client.models.moderation_filter.ModerationFilter( + reviewed = True, + approved = True, + is_spam = True, + is_banned_user = True, + is_locked = True, + flag_count_gt = 1.337, + user_id = '', + url_id = '', + domain = '', + moderation_group_ids = [ + '' + ], + comment_text_search = [ + '' + ], + exact_comment_text = '', ) + ) + else: + return BuildModerationFilterResponse( + status = '', + moderation_filter = client.models.moderation_filter.ModerationFilter( + reviewed = True, + approved = True, + is_spam = True, + is_banned_user = True, + is_locked = True, + flag_count_gt = 1.337, + user_id = '', + url_id = '', + domain = '', + moderation_group_ids = [ + '' + ], + comment_text_search = [ + '' + ], + exact_comment_text = '', ), + ) + """ + + def testBuildModerationFilterResponse(self): + """Test BuildModerationFilterResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_bulk_aggregate_question_results200_response.py b/client/test/test_bulk_aggregate_question_results200_response.py deleted file mode 100644 index 9b5a623..0000000 --- a/client/test/test_bulk_aggregate_question_results200_response.py +++ /dev/null @@ -1,207 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.bulk_aggregate_question_results200_response import BulkAggregateQuestionResults200Response - -class TestBulkAggregateQuestionResults200Response(unittest.TestCase): - """BulkAggregateQuestionResults200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> BulkAggregateQuestionResults200Response: - """Test BulkAggregateQuestionResults200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `BulkAggregateQuestionResults200Response` - """ - model = BulkAggregateQuestionResults200Response() - if include_optional: - return BulkAggregateQuestionResults200Response( - status = 'success', - data = { - 'key' : client.models.question_result_aggregation_overall.QuestionResultAggregationOverall( - data_by_date_bucket = { - 'key' : client.models.question_datum.QuestionDatum( - v = { - 'key' : 1.337 - }, - total = 56, ) - }, - data_by_url_id = { - 'key' : client.models.question_datum.QuestionDatum( - v = { - 'key' : 1.337 - }, - total = 56, ) - }, - counts_by_value = { - 'key' : 56 - }, - total = 56, - average = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - }, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return BulkAggregateQuestionResults200Response( - status = 'success', - data = { - 'key' : client.models.question_result_aggregation_overall.QuestionResultAggregationOverall( - data_by_date_bucket = { - 'key' : client.models.question_datum.QuestionDatum( - v = { - 'key' : 1.337 - }, - total = 56, ) - }, - data_by_url_id = { - 'key' : client.models.question_datum.QuestionDatum( - v = { - 'key' : 1.337 - }, - total = 56, ) - }, - counts_by_value = { - 'key' : 56 - }, - total = 56, - average = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - }, - reason = '', - code = '', - ) - """ - - def testBulkAggregateQuestionResults200Response(self): - """Test BulkAggregateQuestionResults200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_patch_hash_tag200_response.py b/client/test/test_bulk_create_hash_tags_response_results_inner.py similarity index 86% rename from client/test/test_patch_hash_tag200_response.py rename to client/test/test_bulk_create_hash_tags_response_results_inner.py index e382a66..67f6490 100644 --- a/client/test/test_patch_hash_tag200_response.py +++ b/client/test/test_bulk_create_hash_tags_response_results_inner.py @@ -14,10 +14,10 @@ import unittest -from client.models.patch_hash_tag200_response import PatchHashTag200Response +from client.models.bulk_create_hash_tags_response_results_inner import BulkCreateHashTagsResponseResultsInner -class TestPatchHashTag200Response(unittest.TestCase): - """PatchHashTag200Response unit test stubs""" +class TestBulkCreateHashTagsResponseResultsInner(unittest.TestCase): + """BulkCreateHashTagsResponseResultsInner unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> PatchHashTag200Response: - """Test PatchHashTag200Response + def make_instance(self, include_optional) -> BulkCreateHashTagsResponseResultsInner: + """Test BulkCreateHashTagsResponseResultsInner include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `PatchHashTag200Response` + # uncomment below to create an instance of `BulkCreateHashTagsResponseResultsInner` """ - model = PatchHashTag200Response() + model = BulkCreateHashTagsResponseResultsInner() if include_optional: - return PatchHashTag200Response( + return BulkCreateHashTagsResponseResultsInner( status = 'success', hash_tag = client.models.tenant_hash_tag.TenantHashTag( _id = '', @@ -103,11 +103,16 @@ def make_instance(self, include_optional) -> PatchHashTag200Response: no_custom_config = True, mention_auto_complete_mode = null, no_image_uploads = True, + allow_embeds = True, + allowed_embed_domains = [ + '' + ], no_styles = True, page_size = 56, readonly = True, no_new_root_comments = True, require_sso = True, + enable_f_chat = True, enable_resize_handle = True, restricted_link_domains = [ '' @@ -136,6 +141,8 @@ def make_instance(self, include_optional) -> PatchHashTag200Response: widget_questions_required = 0, widget_sub_question_visibility = 0, wrap = True, + users_list_location = 0, + users_list_include_offline = True, ticket_base_url = '', ticket_kb_search_endpoint = '', ticket_file_uploads_enabled = True, @@ -151,7 +158,7 @@ def make_instance(self, include_optional) -> PatchHashTag200Response: last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) ) else: - return PatchHashTag200Response( + return BulkCreateHashTagsResponseResultsInner( status = 'success', hash_tag = client.models.tenant_hash_tag.TenantHashTag( _id = '', @@ -164,8 +171,8 @@ def make_instance(self, include_optional) -> PatchHashTag200Response: ) """ - def testPatchHashTag200Response(self): - """Test PatchHashTag200Response""" + def testBulkCreateHashTagsResponseResultsInner(self): + """Test BulkCreateHashTagsResponseResultsInner""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_bulk_pre_ban_params.py b/client/test/test_bulk_pre_ban_params.py new file mode 100644 index 0000000..e3ad276 --- /dev/null +++ b/client/test/test_bulk_pre_ban_params.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.bulk_pre_ban_params import BulkPreBanParams + +class TestBulkPreBanParams(unittest.TestCase): + """BulkPreBanParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BulkPreBanParams: + """Test BulkPreBanParams + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BulkPreBanParams` + """ + model = BulkPreBanParams() + if include_optional: + return BulkPreBanParams( + comment_ids = [ + '' + ] + ) + else: + return BulkPreBanParams( + comment_ids = [ + '' + ], + ) + """ + + def testBulkPreBanParams(self): + """Test BulkPreBanParams""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_bulk_pre_ban_summary.py b/client/test/test_bulk_pre_ban_summary.py new file mode 100644 index 0000000..71fc8a5 --- /dev/null +++ b/client/test/test_bulk_pre_ban_summary.py @@ -0,0 +1,78 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.bulk_pre_ban_summary import BulkPreBanSummary + +class TestBulkPreBanSummary(unittest.TestCase): + """BulkPreBanSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BulkPreBanSummary: + """Test BulkPreBanSummary + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `BulkPreBanSummary` + """ + model = BulkPreBanSummary() + if include_optional: + return BulkPreBanSummary( + status = '', + total_related_comment_count = 56, + email_domains = [ + '' + ], + emails = [ + '' + ], + user_ids = [ + '' + ], + ip_hashes = [ + '' + ] + ) + else: + return BulkPreBanSummary( + status = '', + total_related_comment_count = 56, + email_domains = [ + '' + ], + emails = [ + '' + ], + user_ids = [ + '' + ], + ip_hashes = [ + '' + ], + ) + """ + + def testBulkPreBanSummary(self): + """Test BulkPreBanSummary""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_change_ticket_state200_response.py b/client/test/test_change_ticket_state200_response.py deleted file mode 100644 index 0c28e34..0000000 --- a/client/test/test_change_ticket_state200_response.py +++ /dev/null @@ -1,185 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.change_ticket_state200_response import ChangeTicketState200Response - -class TestChangeTicketState200Response(unittest.TestCase): - """ChangeTicketState200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ChangeTicketState200Response: - """Test ChangeTicketState200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ChangeTicketState200Response` - """ - model = ChangeTicketState200Response() - if include_optional: - return ChangeTicketState200Response( - status = 'success', - ticket = client.models.api_ticket.APITicket( - _id = '', - url_id = '', - user_id = '', - managed_by_tenant_id = '', - assigned_user_ids = [ - '' - ], - subject = '', - created_at = '', - state = 56, - file_count = 56, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return ChangeTicketState200Response( - status = 'success', - ticket = client.models.api_ticket.APITicket( - _id = '', - url_id = '', - user_id = '', - managed_by_tenant_id = '', - assigned_user_ids = [ - '' - ], - subject = '', - created_at = '', - state = 56, - file_count = 56, ), - reason = '', - code = '', - ) - """ - - def testChangeTicketState200Response(self): - """Test ChangeTicketState200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_checked_comments_for_blocked200_response.py b/client/test/test_checked_comments_for_blocked200_response.py deleted file mode 100644 index 8906b09..0000000 --- a/client/test/test_checked_comments_for_blocked200_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.checked_comments_for_blocked200_response import CheckedCommentsForBlocked200Response - -class TestCheckedCommentsForBlocked200Response(unittest.TestCase): - """CheckedCommentsForBlocked200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CheckedCommentsForBlocked200Response: - """Test CheckedCommentsForBlocked200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CheckedCommentsForBlocked200Response` - """ - model = CheckedCommentsForBlocked200Response() - if include_optional: - return CheckedCommentsForBlocked200Response( - comment_statuses = { - 'key' : True - }, - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CheckedCommentsForBlocked200Response( - comment_statuses = { - 'key' : True - }, - status = 'success', - reason = '', - code = '', - ) - """ - - def testCheckedCommentsForBlocked200Response(self): - """Test CheckedCommentsForBlocked200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_combine_comments_with_question_results200_response.py b/client/test/test_combine_comments_with_question_results200_response.py deleted file mode 100644 index 5b201e8..0000000 --- a/client/test/test_combine_comments_with_question_results200_response.py +++ /dev/null @@ -1,209 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.combine_comments_with_question_results200_response import CombineCommentsWithQuestionResults200Response - -class TestCombineCommentsWithQuestionResults200Response(unittest.TestCase): - """CombineCommentsWithQuestionResults200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CombineCommentsWithQuestionResults200Response: - """Test CombineCommentsWithQuestionResults200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CombineCommentsWithQuestionResults200Response` - """ - model = CombineCommentsWithQuestionResults200Response() - if include_optional: - return CombineCommentsWithQuestionResults200Response( - status = 'success', - data = client.models.find_comments_by_range_response.FindCommentsByRangeResponse( - results = [ - client.models.find_comments_by_range_item.FindCommentsByRangeItem( - comment = null, - result = client.models.question_result.QuestionResult( - _id = '', - tenant_id = '', - url_id = '', - anon_user_id = '', - user_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - value = 56, - comment_id = '', - question_id = '', - meta = [ - client.models.meta_item.MetaItem( - name = '', - values = [ - '' - ], ) - ], - ip_hash = '', ), ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CombineCommentsWithQuestionResults200Response( - status = 'success', - data = client.models.find_comments_by_range_response.FindCommentsByRangeResponse( - results = [ - client.models.find_comments_by_range_item.FindCommentsByRangeItem( - comment = null, - result = client.models.question_result.QuestionResult( - _id = '', - tenant_id = '', - url_id = '', - anon_user_id = '', - user_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - value = 56, - comment_id = '', - question_id = '', - meta = [ - client.models.meta_item.MetaItem( - name = '', - values = [ - '' - ], ) - ], - ip_hash = '', ), ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - reason = '', - code = '', - ) - """ - - def testCombineCommentsWithQuestionResults200Response(self): - """Test CombineCommentsWithQuestionResults200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_comment_data.py b/client/test/test_comment_data.py index b1f0996..e7986ef 100644 --- a/client/test/test_comment_data.py +++ b/client/test/test_comment_data.py @@ -78,7 +78,8 @@ def make_instance(self, include_optional) -> CommentData: question_values = { 'key' : null }, - tos = True + tos = True, + bot_id = '' ) else: return CommentData( diff --git a/client/test/test_comment_log_data.py b/client/test/test_comment_log_data.py index 63fa402..1edc131 100644 --- a/client/test/test_comment_log_data.py +++ b/client/test/test_comment_log_data.py @@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> CommentLogData: engine_response = '', engine_tokens = 1.337, trust_factor = 1.337, + source = '', rule = client.models.spam_rule.SpamRule( actions = [ 'spam' diff --git a/client/test/test_comment_log_entry.py b/client/test/test_comment_log_entry.py index d585280..7aa3d84 100644 --- a/client/test/test_comment_log_entry.py +++ b/client/test/test_comment_log_entry.py @@ -53,6 +53,7 @@ def make_instance(self, include_optional) -> CommentLogEntry: engine_response = '', engine_tokens = 1.337, trust_factor = 1.337, + source = '', rule = client.models.spam_rule.SpamRule( actions = [ 'spam' diff --git a/client/test/test_comments_by_ids_params.py b/client/test/test_comments_by_ids_params.py new file mode 100644 index 0000000..3acc114 --- /dev/null +++ b/client/test/test_comments_by_ids_params.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.comments_by_ids_params import CommentsByIdsParams + +class TestCommentsByIdsParams(unittest.TestCase): + """CommentsByIdsParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CommentsByIdsParams: + """Test CommentsByIdsParams + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CommentsByIdsParams` + """ + model = CommentsByIdsParams() + if include_optional: + return CommentsByIdsParams( + ids = [ + '' + ] + ) + else: + return CommentsByIdsParams( + ids = [ + '' + ], + ) + """ + + def testCommentsByIdsParams(self): + """Test CommentsByIdsParams""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_create_comment_params.py b/client/test/test_create_comment_params.py index 646e700..b8bb914 100644 --- a/client/test/test_create_comment_params.py +++ b/client/test/test_create_comment_params.py @@ -79,6 +79,7 @@ def make_instance(self, include_optional) -> CreateCommentParams: 'key' : null }, tos = True, + bot_id = '', approved = True, domain = '', ip = '', diff --git a/client/test/test_create_email_template200_response.py b/client/test/test_create_email_template200_response.py deleted file mode 100644 index 892a3f1..0000000 --- a/client/test/test_create_email_template200_response.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_email_template200_response import CreateEmailTemplate200Response - -class TestCreateEmailTemplate200Response(unittest.TestCase): - """CreateEmailTemplate200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateEmailTemplate200Response: - """Test CreateEmailTemplate200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateEmailTemplate200Response` - """ - model = CreateEmailTemplate200Response() - if include_optional: - return CreateEmailTemplate200Response( - status = 'success', - email_template = client.models.custom_email_template.CustomEmailTemplate( - _id = '', - tenant_id = '', - email_template_id = '', - display_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_by_user_id = '', - domain = '', - ejs = '', - translation_overrides_by_locale = { - 'key' : { - 'key' : '' - } - }, - test_data = null, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateEmailTemplate200Response( - status = 'success', - email_template = client.models.custom_email_template.CustomEmailTemplate( - _id = '', - tenant_id = '', - email_template_id = '', - display_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_by_user_id = '', - domain = '', - ejs = '', - translation_overrides_by_locale = { - 'key' : { - 'key' : '' - } - }, - test_data = null, ), - reason = '', - code = '', - ) - """ - - def testCreateEmailTemplate200Response(self): - """Test CreateEmailTemplate200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_feed_post200_response.py b/client/test/test_create_feed_post200_response.py deleted file mode 100644 index 62b51f4..0000000 --- a/client/test/test_create_feed_post200_response.py +++ /dev/null @@ -1,239 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_feed_post200_response import CreateFeedPost200Response - -class TestCreateFeedPost200Response(unittest.TestCase): - """CreateFeedPost200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateFeedPost200Response: - """Test CreateFeedPost200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateFeedPost200Response` - """ - model = CreateFeedPost200Response() - if include_optional: - return CreateFeedPost200Response( - status = 'success', - feed_post = client.models.feed_post.FeedPost( - _id = '', - tenant_id = '', - title = '', - from_user_id = '', - from_user_display_name = '', - from_user_avatar = '', - from_ip_hash = '', - tags = [ - '' - ], - weight = 1.337, - meta = { - 'key' : '' - }, - content_html = '', - media = [ - client.models.feed_post_media_item.FeedPostMediaItem( - title = '', - link_url = '', - sizes = [ - client.models.feed_post_media_item_asset.FeedPostMediaItemAsset( - w = 56, - h = 56, - src = '', ) - ], ) - ], - links = [ - client.models.feed_post_link.FeedPostLink( - text = '', - title = '', - description = '', - url = '', ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - reacts = { - 'key' : 56 - }, - comment_count = 56, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateFeedPost200Response( - status = 'success', - feed_post = client.models.feed_post.FeedPost( - _id = '', - tenant_id = '', - title = '', - from_user_id = '', - from_user_display_name = '', - from_user_avatar = '', - from_ip_hash = '', - tags = [ - '' - ], - weight = 1.337, - meta = { - 'key' : '' - }, - content_html = '', - media = [ - client.models.feed_post_media_item.FeedPostMediaItem( - title = '', - link_url = '', - sizes = [ - client.models.feed_post_media_item_asset.FeedPostMediaItemAsset( - w = 56, - h = 56, - src = '', ) - ], ) - ], - links = [ - client.models.feed_post_link.FeedPostLink( - text = '', - title = '', - description = '', - url = '', ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - reacts = { - 'key' : 56 - }, - comment_count = 56, ), - reason = '', - code = '', - ) - """ - - def testCreateFeedPost200Response(self): - """Test CreateFeedPost200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_feed_post_public200_response.py b/client/test/test_create_feed_post_public200_response.py deleted file mode 100644 index 79c6b6f..0000000 --- a/client/test/test_create_feed_post_public200_response.py +++ /dev/null @@ -1,239 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_feed_post_public200_response import CreateFeedPostPublic200Response - -class TestCreateFeedPostPublic200Response(unittest.TestCase): - """CreateFeedPostPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateFeedPostPublic200Response: - """Test CreateFeedPostPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateFeedPostPublic200Response` - """ - model = CreateFeedPostPublic200Response() - if include_optional: - return CreateFeedPostPublic200Response( - status = 'success', - feed_post = client.models.feed_post.FeedPost( - _id = '', - tenant_id = '', - title = '', - from_user_id = '', - from_user_display_name = '', - from_user_avatar = '', - from_ip_hash = '', - tags = [ - '' - ], - weight = 1.337, - meta = { - 'key' : '' - }, - content_html = '', - media = [ - client.models.feed_post_media_item.FeedPostMediaItem( - title = '', - link_url = '', - sizes = [ - client.models.feed_post_media_item_asset.FeedPostMediaItemAsset( - w = 56, - h = 56, - src = '', ) - ], ) - ], - links = [ - client.models.feed_post_link.FeedPostLink( - text = '', - title = '', - description = '', - url = '', ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - reacts = { - 'key' : 56 - }, - comment_count = 56, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateFeedPostPublic200Response( - status = 'success', - feed_post = client.models.feed_post.FeedPost( - _id = '', - tenant_id = '', - title = '', - from_user_id = '', - from_user_display_name = '', - from_user_avatar = '', - from_ip_hash = '', - tags = [ - '' - ], - weight = 1.337, - meta = { - 'key' : '' - }, - content_html = '', - media = [ - client.models.feed_post_media_item.FeedPostMediaItem( - title = '', - link_url = '', - sizes = [ - client.models.feed_post_media_item_asset.FeedPostMediaItemAsset( - w = 56, - h = 56, - src = '', ) - ], ) - ], - links = [ - client.models.feed_post_link.FeedPostLink( - text = '', - title = '', - description = '', - url = '', ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - reacts = { - 'key' : 56 - }, - comment_count = 56, ), - reason = '', - code = '', - ) - """ - - def testCreateFeedPostPublic200Response(self): - """Test CreateFeedPostPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_moderator200_response.py b/client/test/test_create_moderator200_response.py deleted file mode 100644 index 6334a1f..0000000 --- a/client/test/test_create_moderator200_response.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_moderator200_response import CreateModerator200Response - -class TestCreateModerator200Response(unittest.TestCase): - """CreateModerator200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateModerator200Response: - """Test CreateModerator200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateModerator200Response` - """ - model = CreateModerator200Response() - if include_optional: - return CreateModerator200Response( - status = 'success', - moderator = client.models.moderator.Moderator( - _id = '', - tenant_id = '', - name = '', - user_id = '', - accepted_invite = True, - email = '', - mark_reviewed_count = 1.337, - deleted_count = 1.337, - marked_spam_count = 1.337, - marked_not_spam_count = 1.337, - approved_count = 1.337, - un_approved_count = 1.337, - edited_count = 1.337, - banned_count = 1.337, - un_flagged_count = 1.337, - verification_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - moderation_group_ids = [ - '' - ], - is_email_suppressed = True, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateModerator200Response( - status = 'success', - moderator = client.models.moderator.Moderator( - _id = '', - tenant_id = '', - name = '', - user_id = '', - accepted_invite = True, - email = '', - mark_reviewed_count = 1.337, - deleted_count = 1.337, - marked_spam_count = 1.337, - marked_not_spam_count = 1.337, - approved_count = 1.337, - un_approved_count = 1.337, - edited_count = 1.337, - banned_count = 1.337, - un_flagged_count = 1.337, - verification_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - moderation_group_ids = [ - '' - ], - is_email_suppressed = True, ), - reason = '', - code = '', - ) - """ - - def testCreateModerator200Response(self): - """Test CreateModerator200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_question_config200_response.py b/client/test/test_create_question_config200_response.py deleted file mode 100644 index badcf54..0000000 --- a/client/test/test_create_question_config200_response.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_question_config200_response import CreateQuestionConfig200Response - -class TestCreateQuestionConfig200Response(unittest.TestCase): - """CreateQuestionConfig200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateQuestionConfig200Response: - """Test CreateQuestionConfig200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateQuestionConfig200Response` - """ - model = CreateQuestionConfig200Response() - if include_optional: - return CreateQuestionConfig200Response( - status = 'success', - question_config = client.models.question_config.QuestionConfig( - _id = '', - tenant_id = '', - name = '', - question = '', - summary_label = '', - help_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_by = '', - used_count = 1.337, - last_used = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = '', - num_stars = 1.337, - min = 1.337, - max = 1.337, - default_value = 1.337, - label_negative = '', - label_positive = '', - custom_options = [ - client.models.question_config_custom_options_inner.QuestionConfig_customOptions_inner( - image_src = '', - name = '', ) - ], - sub_question_ids = [ - '' - ], - always_show_sub_questions = True, - reporting_order = 1.337, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateQuestionConfig200Response( - status = 'success', - question_config = client.models.question_config.QuestionConfig( - _id = '', - tenant_id = '', - name = '', - question = '', - summary_label = '', - help_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_by = '', - used_count = 1.337, - last_used = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = '', - num_stars = 1.337, - min = 1.337, - max = 1.337, - default_value = 1.337, - label_negative = '', - label_positive = '', - custom_options = [ - client.models.question_config_custom_options_inner.QuestionConfig_customOptions_inner( - image_src = '', - name = '', ) - ], - sub_question_ids = [ - '' - ], - always_show_sub_questions = True, - reporting_order = 1.337, ), - reason = '', - code = '', - ) - """ - - def testCreateQuestionConfig200Response(self): - """Test CreateQuestionConfig200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_question_result200_response.py b/client/test/test_create_question_result200_response.py deleted file mode 100644 index 961964e..0000000 --- a/client/test/test_create_question_result200_response.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_question_result200_response import CreateQuestionResult200Response - -class TestCreateQuestionResult200Response(unittest.TestCase): - """CreateQuestionResult200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateQuestionResult200Response: - """Test CreateQuestionResult200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateQuestionResult200Response` - """ - model = CreateQuestionResult200Response() - if include_optional: - return CreateQuestionResult200Response( - status = 'success', - question_result = client.models.question_result.QuestionResult( - _id = '', - tenant_id = '', - url_id = '', - anon_user_id = '', - user_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - value = 56, - comment_id = '', - question_id = '', - meta = [ - client.models.meta_item.MetaItem( - name = '', - values = [ - '' - ], ) - ], - ip_hash = '', ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateQuestionResult200Response( - status = 'success', - question_result = client.models.question_result.QuestionResult( - _id = '', - tenant_id = '', - url_id = '', - anon_user_id = '', - user_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - value = 56, - comment_id = '', - question_id = '', - meta = [ - client.models.meta_item.MetaItem( - name = '', - values = [ - '' - ], ) - ], - ip_hash = '', ), - reason = '', - code = '', - ) - """ - - def testCreateQuestionResult200Response(self): - """Test CreateQuestionResult200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_tenant200_response.py b/client/test/test_create_tenant200_response.py deleted file mode 100644 index 116f5f3..0000000 --- a/client/test/test_create_tenant200_response.py +++ /dev/null @@ -1,277 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_tenant200_response import CreateTenant200Response - -class TestCreateTenant200Response(unittest.TestCase): - """CreateTenant200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateTenant200Response: - """Test CreateTenant200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateTenant200Response` - """ - model = CreateTenant200Response() - if include_optional: - return CreateTenant200Response( - status = 'success', - tenant = client.models.api_tenant.APITenant( - id = '', - name = '', - email = '', - sign_up_date = 1.337, - package_id = '', - payment_frequency = 1.337, - billing_info_valid = True, - billing_handled_externally = True, - created_by = '', - is_setup = True, - domain_configuration = [ - client.models.api_domain_configuration.APIDomainConfiguration( - id = '', - domain = '', - email_from_name = '', - email_from_email = '', - email_headers = { - 'key' : '' - }, - wp_sync_token = '', - wp_synced = True, - wp_url = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_added_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - site_type = 0, - logo_src = '', - logo_src100px = '', - footer_unsubscribe_url = '', - disable_unsubscribe_links = True, ) - ], - billing_info = client.models.billing_info.BillingInfo( - name = '', - address = '', - city = '', - state = '', - zip = '', - country = '', - currency = '', - email = '', ), - stripe_customer_id = '', - stripe_subscription_id = '', - stripe_plan_id = '', - enable_profanity_filter = True, - enable_spam_filter = True, - last_billing_issue_reminder_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - remove_unverified_comments = True, - unverified_comments_tt_lms = 1.337, - comments_require_approval = True, - auto_approve_comment_on_verification = True, - send_profane_to_spam = True, - has_flex_pricing = True, - has_auditing = True, - flex_last_billed_amount = 1.337, - de_anon_ip_addr = 1.337, - meta = { - 'key' : '' - }, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateTenant200Response( - status = 'success', - tenant = client.models.api_tenant.APITenant( - id = '', - name = '', - email = '', - sign_up_date = 1.337, - package_id = '', - payment_frequency = 1.337, - billing_info_valid = True, - billing_handled_externally = True, - created_by = '', - is_setup = True, - domain_configuration = [ - client.models.api_domain_configuration.APIDomainConfiguration( - id = '', - domain = '', - email_from_name = '', - email_from_email = '', - email_headers = { - 'key' : '' - }, - wp_sync_token = '', - wp_synced = True, - wp_url = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_added_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - site_type = 0, - logo_src = '', - logo_src100px = '', - footer_unsubscribe_url = '', - disable_unsubscribe_links = True, ) - ], - billing_info = client.models.billing_info.BillingInfo( - name = '', - address = '', - city = '', - state = '', - zip = '', - country = '', - currency = '', - email = '', ), - stripe_customer_id = '', - stripe_subscription_id = '', - stripe_plan_id = '', - enable_profanity_filter = True, - enable_spam_filter = True, - last_billing_issue_reminder_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - remove_unverified_comments = True, - unverified_comments_tt_lms = 1.337, - comments_require_approval = True, - auto_approve_comment_on_verification = True, - send_profane_to_spam = True, - has_flex_pricing = True, - has_auditing = True, - flex_last_billed_amount = 1.337, - de_anon_ip_addr = 1.337, - meta = { - 'key' : '' - }, ), - reason = '', - code = '', - ) - """ - - def testCreateTenant200Response(self): - """Test CreateTenant200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_tenant_package200_response.py b/client/test/test_create_tenant_package200_response.py deleted file mode 100644 index 59558d9..0000000 --- a/client/test/test_create_tenant_package200_response.py +++ /dev/null @@ -1,275 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_tenant_package200_response import CreateTenantPackage200Response - -class TestCreateTenantPackage200Response(unittest.TestCase): - """CreateTenantPackage200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateTenantPackage200Response: - """Test CreateTenantPackage200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateTenantPackage200Response` - """ - model = CreateTenantPackage200Response() - if include_optional: - return CreateTenantPackage200Response( - status = 'success', - tenant_package = client.models.tenant_package.TenantPackage( - _id = '', - name = '', - tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - monthly_cost_usd = 1.337, - yearly_cost_usd = 1.337, - monthly_stripe_plan_id = '', - yearly_stripe_plan_id = '', - max_monthly_page_loads = 1.337, - max_monthly_api_credits = 1.337, - max_monthly_small_widgets_credits = 1.337, - max_monthly_comments = 1.337, - max_concurrent_users = 1.337, - max_tenant_users = 1.337, - max_sso_users = 1.337, - max_moderators = 1.337, - max_domains = 1.337, - max_white_labeled_tenants = 1.337, - max_monthly_event_log_requests = 1.337, - max_custom_collection_size = 1.337, - has_white_labeling = True, - has_debranding = True, - has_llm_spam_detection = True, - for_who_text = '', - feature_taglines = [ - '' - ], - has_auditing = True, - has_flex_pricing = True, - enable_saml = True, - enable_canvas_lti = True, - flex_page_load_cost_cents = 1.337, - flex_page_load_unit = 1.337, - flex_comment_cost_cents = 1.337, - flex_comment_unit = 1.337, - flex_sso_user_cost_cents = 1.337, - flex_sso_user_unit = 1.337, - flex_api_credit_cost_cents = 1.337, - flex_api_credit_unit = 1.337, - flex_small_widgets_credit_cost_cents = 1.337, - flex_small_widgets_credit_unit = 1.337, - flex_moderator_cost_cents = 1.337, - flex_moderator_unit = 1.337, - flex_admin_cost_cents = 1.337, - flex_admin_unit = 1.337, - flex_domain_cost_cents = 1.337, - flex_domain_unit = 1.337, - flex_chat_gpt_cost_cents = 1.337, - flex_chat_gpt_unit = 1.337, - flex_minimum_cost_cents = 1.337, - flex_managed_tenant_cost_cents = 1.337, - flex_sso_admin_cost_cents = 1.337, - flex_sso_admin_unit = 1.337, - flex_sso_moderator_cost_cents = 1.337, - flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateTenantPackage200Response( - status = 'success', - tenant_package = client.models.tenant_package.TenantPackage( - _id = '', - name = '', - tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - monthly_cost_usd = 1.337, - yearly_cost_usd = 1.337, - monthly_stripe_plan_id = '', - yearly_stripe_plan_id = '', - max_monthly_page_loads = 1.337, - max_monthly_api_credits = 1.337, - max_monthly_small_widgets_credits = 1.337, - max_monthly_comments = 1.337, - max_concurrent_users = 1.337, - max_tenant_users = 1.337, - max_sso_users = 1.337, - max_moderators = 1.337, - max_domains = 1.337, - max_white_labeled_tenants = 1.337, - max_monthly_event_log_requests = 1.337, - max_custom_collection_size = 1.337, - has_white_labeling = True, - has_debranding = True, - has_llm_spam_detection = True, - for_who_text = '', - feature_taglines = [ - '' - ], - has_auditing = True, - has_flex_pricing = True, - enable_saml = True, - enable_canvas_lti = True, - flex_page_load_cost_cents = 1.337, - flex_page_load_unit = 1.337, - flex_comment_cost_cents = 1.337, - flex_comment_unit = 1.337, - flex_sso_user_cost_cents = 1.337, - flex_sso_user_unit = 1.337, - flex_api_credit_cost_cents = 1.337, - flex_api_credit_unit = 1.337, - flex_small_widgets_credit_cost_cents = 1.337, - flex_small_widgets_credit_unit = 1.337, - flex_moderator_cost_cents = 1.337, - flex_moderator_unit = 1.337, - flex_admin_cost_cents = 1.337, - flex_admin_unit = 1.337, - flex_domain_cost_cents = 1.337, - flex_domain_unit = 1.337, - flex_chat_gpt_cost_cents = 1.337, - flex_chat_gpt_unit = 1.337, - flex_minimum_cost_cents = 1.337, - flex_managed_tenant_cost_cents = 1.337, - flex_sso_admin_cost_cents = 1.337, - flex_sso_admin_unit = 1.337, - flex_sso_moderator_cost_cents = 1.337, - flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ), - reason = '', - code = '', - ) - """ - - def testCreateTenantPackage200Response(self): - """Test CreateTenantPackage200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_tenant_package_body.py b/client/test/test_create_tenant_package_body.py index 26505c7..431a7db 100644 --- a/client/test/test_create_tenant_package_body.py +++ b/client/test/test_create_tenant_package_body.py @@ -78,8 +78,8 @@ def make_instance(self, include_optional) -> CreateTenantPackageBody: flex_admin_unit = 1.337, flex_domain_cost_cents = 1.337, flex_domain_unit = 1.337, - flex_chat_gpt_cost_cents = 1.337, - flex_chat_gpt_unit = 1.337, + flex_llm_cost_cents = 1.337, + flex_llm_unit = 1.337, flex_minimum_cost_cents = 1.337, flex_managed_tenant_cost_cents = 1.337, flex_sso_admin_cost_cents = 1.337, diff --git a/client/test/test_create_tenant_package_response.py b/client/test/test_create_tenant_package_response.py index f08a993..e3ca1b1 100644 --- a/client/test/test_create_tenant_package_response.py +++ b/client/test/test_create_tenant_package_response.py @@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> CreateTenantPackageResponse: name = '', tenant_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + template_id = '', monthly_cost_usd = 1.337, yearly_cost_usd = 1.337, monthly_stripe_plan_id = '', @@ -86,13 +87,19 @@ def make_instance(self, include_optional) -> CreateTenantPackageResponse: flex_domain_unit = 1.337, flex_chat_gpt_cost_cents = 1.337, flex_chat_gpt_unit = 1.337, + flex_llm_cost_cents = 1.337, + flex_llm_unit = 1.337, flex_minimum_cost_cents = 1.337, flex_managed_tenant_cost_cents = 1.337, flex_sso_admin_cost_cents = 1.337, flex_sso_admin_unit = 1.337, flex_sso_moderator_cost_cents = 1.337, flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ) + is_sso_billing_monthly_active_users = True, + has_ai_agents = True, + max_ai_agents = 1.337, + ai_agent_daily_budget_cents = 1.337, + ai_agent_monthly_budget_cents = 1.337, ) ) else: return CreateTenantPackageResponse( @@ -102,6 +109,7 @@ def make_instance(self, include_optional) -> CreateTenantPackageResponse: name = '', tenant_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + template_id = '', monthly_cost_usd = 1.337, yearly_cost_usd = 1.337, monthly_stripe_plan_id = '', @@ -147,13 +155,19 @@ def make_instance(self, include_optional) -> CreateTenantPackageResponse: flex_domain_unit = 1.337, flex_chat_gpt_cost_cents = 1.337, flex_chat_gpt_unit = 1.337, + flex_llm_cost_cents = 1.337, + flex_llm_unit = 1.337, flex_minimum_cost_cents = 1.337, flex_managed_tenant_cost_cents = 1.337, flex_sso_admin_cost_cents = 1.337, flex_sso_admin_unit = 1.337, flex_sso_moderator_cost_cents = 1.337, flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ), + is_sso_billing_monthly_active_users = True, + has_ai_agents = True, + max_ai_agents = 1.337, + ai_agent_daily_budget_cents = 1.337, + ai_agent_monthly_budget_cents = 1.337, ), ) """ diff --git a/client/test/test_create_tenant_user200_response.py b/client/test/test_create_tenant_user200_response.py deleted file mode 100644 index 1baeefc..0000000 --- a/client/test/test_create_tenant_user200_response.py +++ /dev/null @@ -1,289 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_tenant_user200_response import CreateTenantUser200Response - -class TestCreateTenantUser200Response(unittest.TestCase): - """CreateTenantUser200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateTenantUser200Response: - """Test CreateTenantUser200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateTenantUser200Response` - """ - model = CreateTenantUser200Response() - if include_optional: - return CreateTenantUser200Response( - status = 'success', - tenant_user = client.models.user.User( - _id = '', - tenant_id = '', - username = '', - display_name = '', - website_url = '', - email = '', - pending_email = '', - backup_email = '', - pending_backup_email = '', - sign_up_date = 56, - created_from_url_id = '', - created_from_tenant_id = '', - created_from_ip_hashed = '', - verified = True, - login_id = '', - login_id_date = 56, - login_count = 56, - opted_in_notifications = True, - opted_in_tenant_notifications = True, - hide_account_code = True, - avatar_src = '', - is_fast_comments_help_request_admin = True, - is_help_request_admin = True, - is_account_owner = True, - is_admin_admin = True, - is_billing_admin = True, - is_analytics_admin = True, - is_customization_admin = True, - is_manage_data_admin = True, - is_comment_moderator_admin = True, - is_api_admin = True, - is_site_admin = True, - moderator_ids = [ - '' - ], - is_impersonator = True, - is_coupon_manager = True, - locale = '', - digest_email_frequency = -1, - notification_frequency = 1.337, - admin_notification_frequency = 1.337, - last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ignored_add_to_my_site_messages = True, - last_login_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - display_label = '', - is_profile_activity_private = True, - is_profile_comments_private = True, - is_profile_dm_disabled = True, - profile_comment_approval_mode = 1.337, - karma = 1.337, - password_hash = '', - average_ticket_ack_time_ms = 1.337, - has_blocked_users = True, - bio = '', - header_background_src = '', - country_code = '', - country_flag = '', - social_links = [ - '' - ], - has_two_factor = True, - is_email_suppressed = True, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateTenantUser200Response( - status = 'success', - tenant_user = client.models.user.User( - _id = '', - tenant_id = '', - username = '', - display_name = '', - website_url = '', - email = '', - pending_email = '', - backup_email = '', - pending_backup_email = '', - sign_up_date = 56, - created_from_url_id = '', - created_from_tenant_id = '', - created_from_ip_hashed = '', - verified = True, - login_id = '', - login_id_date = 56, - login_count = 56, - opted_in_notifications = True, - opted_in_tenant_notifications = True, - hide_account_code = True, - avatar_src = '', - is_fast_comments_help_request_admin = True, - is_help_request_admin = True, - is_account_owner = True, - is_admin_admin = True, - is_billing_admin = True, - is_analytics_admin = True, - is_customization_admin = True, - is_manage_data_admin = True, - is_comment_moderator_admin = True, - is_api_admin = True, - is_site_admin = True, - moderator_ids = [ - '' - ], - is_impersonator = True, - is_coupon_manager = True, - locale = '', - digest_email_frequency = -1, - notification_frequency = 1.337, - admin_notification_frequency = 1.337, - last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ignored_add_to_my_site_messages = True, - last_login_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - display_label = '', - is_profile_activity_private = True, - is_profile_comments_private = True, - is_profile_dm_disabled = True, - profile_comment_approval_mode = 1.337, - karma = 1.337, - password_hash = '', - average_ticket_ack_time_ms = 1.337, - has_blocked_users = True, - bio = '', - header_background_src = '', - country_code = '', - country_flag = '', - social_links = [ - '' - ], - has_two_factor = True, - is_email_suppressed = True, ), - reason = '', - code = '', - ) - """ - - def testCreateTenantUser200Response(self): - """Test CreateTenantUser200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_tenant_user_response.py b/client/test/test_create_tenant_user_response.py index e3cd4a7..9ab705f 100644 --- a/client/test/test_create_tenant_user_response.py +++ b/client/test/test_create_tenant_user_response.py @@ -78,6 +78,7 @@ def make_instance(self, include_optional) -> CreateTenantUserResponse: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, @@ -146,6 +147,7 @@ def make_instance(self, include_optional) -> CreateTenantUserResponse: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, diff --git a/client/test/test_create_ticket200_response.py b/client/test/test_create_ticket200_response.py deleted file mode 100644 index 8359068..0000000 --- a/client/test/test_create_ticket200_response.py +++ /dev/null @@ -1,185 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_ticket200_response import CreateTicket200Response - -class TestCreateTicket200Response(unittest.TestCase): - """CreateTicket200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateTicket200Response: - """Test CreateTicket200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateTicket200Response` - """ - model = CreateTicket200Response() - if include_optional: - return CreateTicket200Response( - status = 'success', - ticket = client.models.api_ticket.APITicket( - _id = '', - url_id = '', - user_id = '', - managed_by_tenant_id = '', - assigned_user_ids = [ - '' - ], - subject = '', - created_at = '', - state = 56, - file_count = 56, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateTicket200Response( - status = 'success', - ticket = client.models.api_ticket.APITicket( - _id = '', - url_id = '', - user_id = '', - managed_by_tenant_id = '', - assigned_user_ids = [ - '' - ], - subject = '', - created_at = '', - state = 56, - file_count = 56, ), - reason = '', - code = '', - ) - """ - - def testCreateTicket200Response(self): - """Test CreateTicket200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_user_badge200_response.py b/client/test/test_create_user_badge200_response.py deleted file mode 100644 index 90c1b95..0000000 --- a/client/test/test_create_user_badge200_response.py +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.create_user_badge200_response import CreateUserBadge200Response - -class TestCreateUserBadge200Response(unittest.TestCase): - """CreateUserBadge200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> CreateUserBadge200Response: - """Test CreateUserBadge200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `CreateUserBadge200Response` - """ - model = CreateUserBadge200Response() - if include_optional: - return CreateUserBadge200Response( - status = 'success', - user_badge = client.models.user_badge.UserBadge( - _id = '', - user_id = '', - badge_id = '', - from_tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = 56, - threshold = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', - veteran_user_threshold_millis = 56, - displayed_on_comments = True, - received_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - order = 56, - url_id = '', ), - notes = [ - '' - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return CreateUserBadge200Response( - status = 'success', - user_badge = client.models.user_badge.UserBadge( - _id = '', - user_id = '', - badge_id = '', - from_tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = 56, - threshold = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', - veteran_user_threshold_millis = 56, - displayed_on_comments = True, - received_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - order = 56, - url_id = '', ), - reason = '', - code = '', - ) - """ - - def testCreateUserBadge200Response(self): - """Test CreateUserBadge200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_v1_page_react.py b/client/test/test_create_v1_page_react.py new file mode 100644 index 0000000..fa8a5d3 --- /dev/null +++ b/client/test/test_create_v1_page_react.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.create_v1_page_react import CreateV1PageReact + +class TestCreateV1PageReact(unittest.TestCase): + """CreateV1PageReact unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CreateV1PageReact: + """Test CreateV1PageReact + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `CreateV1PageReact` + """ + model = CreateV1PageReact() + if include_optional: + return CreateV1PageReact( + code = '', + status = 'success' + ) + else: + return CreateV1PageReact( + status = 'success', + ) + """ + + def testCreateV1PageReact(self): + """Test CreateV1PageReact""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_custom_config_parameters.py b/client/test/test_custom_config_parameters.py index c474d6e..60af692 100644 --- a/client/test/test_custom_config_parameters.py +++ b/client/test/test_custom_config_parameters.py @@ -89,11 +89,16 @@ def make_instance(self, include_optional) -> CustomConfigParameters: no_custom_config = True, mention_auto_complete_mode = 0, no_image_uploads = True, + allow_embeds = True, + allowed_embed_domains = [ + '' + ], no_styles = True, page_size = 56, readonly = True, no_new_root_comments = True, require_sso = True, + enable_f_chat = True, enable_resize_handle = True, restricted_link_domains = [ '' @@ -124,6 +129,8 @@ def make_instance(self, include_optional) -> CustomConfigParameters: widget_questions_required = 0, widget_sub_question_visibility = 0, wrap = True, + users_list_location = 0, + users_list_include_offline = True, ticket_base_url = '', ticket_kb_search_endpoint = '', ticket_file_uploads_enabled = True, diff --git a/client/test/test_delete_comment200_response.py b/client/test/test_delete_comment200_response.py deleted file mode 100644 index d90f134..0000000 --- a/client/test/test_delete_comment200_response.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.delete_comment200_response import DeleteComment200Response - -class TestDeleteComment200Response(unittest.TestCase): - """DeleteComment200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteComment200Response: - """Test DeleteComment200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteComment200Response` - """ - model = DeleteComment200Response() - if include_optional: - return DeleteComment200Response( - action = 'already-deleted', - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return DeleteComment200Response( - action = 'already-deleted', - status = 'success', - reason = '', - code = '', - ) - """ - - def testDeleteComment200Response(self): - """Test DeleteComment200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_delete_comment_public200_response.py b/client/test/test_delete_comment_public200_response.py deleted file mode 100644 index 11ce2c4..0000000 --- a/client/test/test_delete_comment_public200_response.py +++ /dev/null @@ -1,168 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.delete_comment_public200_response import DeleteCommentPublic200Response - -class TestDeleteCommentPublic200Response(unittest.TestCase): - """DeleteCommentPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteCommentPublic200Response: - """Test DeleteCommentPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteCommentPublic200Response` - """ - model = DeleteCommentPublic200Response() - if include_optional: - return DeleteCommentPublic200Response( - comment = client.models.deleted_comment_result_comment.DeletedCommentResultComment( - is_deleted = True, - comment_html = '', - commenter_name = '', - user_id = '', ), - hard_removed = True, - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return DeleteCommentPublic200Response( - hard_removed = True, - status = 'success', - reason = '', - code = '', - ) - """ - - def testDeleteCommentPublic200Response(self): - """Test DeleteCommentPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_delete_comment_vote200_response.py b/client/test/test_delete_comment_vote200_response.py deleted file mode 100644 index b3e992b..0000000 --- a/client/test/test_delete_comment_vote200_response.py +++ /dev/null @@ -1,162 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.delete_comment_vote200_response import DeleteCommentVote200Response - -class TestDeleteCommentVote200Response(unittest.TestCase): - """DeleteCommentVote200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteCommentVote200Response: - """Test DeleteCommentVote200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteCommentVote200Response` - """ - model = DeleteCommentVote200Response() - if include_optional: - return DeleteCommentVote200Response( - status = 'success', - was_pending_vote = True, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return DeleteCommentVote200Response( - status = 'success', - reason = '', - code = '', - ) - """ - - def testDeleteCommentVote200Response(self): - """Test DeleteCommentVote200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_delete_domain_config200_response.py b/client/test/test_delete_domain_config_response.py similarity index 66% rename from client/test/test_delete_domain_config200_response.py rename to client/test/test_delete_domain_config_response.py index 497e19a..717a65e 100644 --- a/client/test/test_delete_domain_config200_response.py +++ b/client/test/test_delete_domain_config_response.py @@ -14,10 +14,10 @@ import unittest -from client.models.delete_domain_config200_response import DeleteDomainConfig200Response +from client.models.delete_domain_config_response import DeleteDomainConfigResponse -class TestDeleteDomainConfig200Response(unittest.TestCase): - """DeleteDomainConfig200Response unit test stubs""" +class TestDeleteDomainConfigResponse(unittest.TestCase): + """DeleteDomainConfigResponse unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeleteDomainConfig200Response: - """Test DeleteDomainConfig200Response + def make_instance(self, include_optional) -> DeleteDomainConfigResponse: + """Test DeleteDomainConfigResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DeleteDomainConfig200Response` + # uncomment below to create an instance of `DeleteDomainConfigResponse` """ - model = DeleteDomainConfig200Response() + model = DeleteDomainConfigResponse() if include_optional: - return DeleteDomainConfig200Response( + return DeleteDomainConfigResponse( status = None ) else: - return DeleteDomainConfig200Response( + return DeleteDomainConfigResponse( status = None, ) """ - def testDeleteDomainConfig200Response(self): - """Test DeleteDomainConfig200Response""" + def testDeleteDomainConfigResponse(self): + """Test DeleteDomainConfigResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_delete_feed_post_public200_response.py b/client/test/test_delete_feed_post_public200_response.py deleted file mode 100644 index c1a7f24..0000000 --- a/client/test/test_delete_feed_post_public200_response.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.delete_feed_post_public200_response import DeleteFeedPostPublic200Response - -class TestDeleteFeedPostPublic200Response(unittest.TestCase): - """DeleteFeedPostPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> DeleteFeedPostPublic200Response: - """Test DeleteFeedPostPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `DeleteFeedPostPublic200Response` - """ - model = DeleteFeedPostPublic200Response() - if include_optional: - return DeleteFeedPostPublic200Response( - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return DeleteFeedPostPublic200Response( - status = 'success', - reason = '', - code = '', - ) - """ - - def testDeleteFeedPostPublic200Response(self): - """Test DeleteFeedPostPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_delete_feed_post_public200_response_any_of.py b/client/test/test_delete_feed_post_public_response.py similarity index 63% rename from client/test/test_delete_feed_post_public200_response_any_of.py rename to client/test/test_delete_feed_post_public_response.py index 63d88f7..af49b8b 100644 --- a/client/test/test_delete_feed_post_public200_response_any_of.py +++ b/client/test/test_delete_feed_post_public_response.py @@ -14,10 +14,10 @@ import unittest -from client.models.delete_feed_post_public200_response_any_of import DeleteFeedPostPublic200ResponseAnyOf +from client.models.delete_feed_post_public_response import DeleteFeedPostPublicResponse -class TestDeleteFeedPostPublic200ResponseAnyOf(unittest.TestCase): - """DeleteFeedPostPublic200ResponseAnyOf unit test stubs""" +class TestDeleteFeedPostPublicResponse(unittest.TestCase): + """DeleteFeedPostPublicResponse unit test stubs""" def setUp(self): pass @@ -25,26 +25,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeleteFeedPostPublic200ResponseAnyOf: - """Test DeleteFeedPostPublic200ResponseAnyOf + def make_instance(self, include_optional) -> DeleteFeedPostPublicResponse: + """Test DeleteFeedPostPublicResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DeleteFeedPostPublic200ResponseAnyOf` + # uncomment below to create an instance of `DeleteFeedPostPublicResponse` """ - model = DeleteFeedPostPublic200ResponseAnyOf() + model = DeleteFeedPostPublicResponse() if include_optional: - return DeleteFeedPostPublic200ResponseAnyOf( + return DeleteFeedPostPublicResponse( status = 'success' ) else: - return DeleteFeedPostPublic200ResponseAnyOf( + return DeleteFeedPostPublicResponse( status = 'success', ) """ - def testDeleteFeedPostPublic200ResponseAnyOf(self): - """Test DeleteFeedPostPublic200ResponseAnyOf""" + def testDeleteFeedPostPublicResponse(self): + """Test DeleteFeedPostPublicResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_delete_hash_tag_request.py b/client/test/test_delete_hash_tag_request_body.py similarity index 68% rename from client/test/test_delete_hash_tag_request.py rename to client/test/test_delete_hash_tag_request_body.py index f97b395..40d479b 100644 --- a/client/test/test_delete_hash_tag_request.py +++ b/client/test/test_delete_hash_tag_request_body.py @@ -14,10 +14,10 @@ import unittest -from client.models.delete_hash_tag_request import DeleteHashTagRequest +from client.models.delete_hash_tag_request_body import DeleteHashTagRequestBody -class TestDeleteHashTagRequest(unittest.TestCase): - """DeleteHashTagRequest unit test stubs""" +class TestDeleteHashTagRequestBody(unittest.TestCase): + """DeleteHashTagRequestBody unit test stubs""" def setUp(self): pass @@ -25,25 +25,25 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeleteHashTagRequest: - """Test DeleteHashTagRequest + def make_instance(self, include_optional) -> DeleteHashTagRequestBody: + """Test DeleteHashTagRequestBody include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `DeleteHashTagRequest` + # uncomment below to create an instance of `DeleteHashTagRequestBody` """ - model = DeleteHashTagRequest() + model = DeleteHashTagRequestBody() if include_optional: - return DeleteHashTagRequest( + return DeleteHashTagRequestBody( tenant_id = '' ) else: - return DeleteHashTagRequest( + return DeleteHashTagRequestBody( ) """ - def testDeleteHashTagRequest(self): - """Test DeleteHashTagRequest""" + def testDeleteHashTagRequestBody(self): + """Test DeleteHashTagRequestBody""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_f_comment.py b/client/test/test_f_comment.py index e8b373d..4a1a452 100644 --- a/client/test/test_f_comment.py +++ b/client/test/test_f_comment.py @@ -151,6 +151,7 @@ def make_instance(self, include_optional) -> FComment: engine_response = '', engine_tokens = 1.337, trust_factor = 1.337, + source = '', rule = client.models.spam_rule.SpamRule( actions = [ 'spam' @@ -193,7 +194,8 @@ def make_instance(self, include_optional) -> FComment: view_count = 56, requires_verification = True, edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + bot_id = '' ) else: return FComment( diff --git a/client/test/test_find_comments_by_range_item.py b/client/test/test_find_comments_by_range_item.py index 92a91bd..e678246 100644 --- a/client/test/test_find_comments_by_range_item.py +++ b/client/test/test_find_comments_by_range_item.py @@ -152,6 +152,7 @@ def make_instance(self, include_optional) -> FindCommentsByRangeItem: engine_response = '', engine_tokens = 1.337, trust_factor = 1.337, + source = '', rule = client.models.spam_rule.SpamRule( actions = [ 'spam' @@ -194,7 +195,8 @@ def make_instance(self, include_optional) -> FindCommentsByRangeItem: view_count = 56, requires_verification = True, edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + bot_id = '', ), result = client.models.question_result.QuestionResult( _id = '', tenant_id = '', @@ -333,6 +335,7 @@ def make_instance(self, include_optional) -> FindCommentsByRangeItem: engine_response = '', engine_tokens = 1.337, trust_factor = 1.337, + source = '', rule = client.models.spam_rule.SpamRule( actions = [ 'spam' @@ -375,7 +378,8 @@ def make_instance(self, include_optional) -> FindCommentsByRangeItem: view_count = 56, requires_verification = True, edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + bot_id = '', ), result = client.models.question_result.QuestionResult( _id = '', tenant_id = '', diff --git a/client/test/test_flag_comment200_response.py b/client/test/test_flag_comment200_response.py deleted file mode 100644 index f4ba369..0000000 --- a/client/test/test_flag_comment200_response.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.flag_comment200_response import FlagComment200Response - -class TestFlagComment200Response(unittest.TestCase): - """FlagComment200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FlagComment200Response: - """Test FlagComment200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FlagComment200Response` - """ - model = FlagComment200Response() - if include_optional: - return FlagComment200Response( - status_code = 56, - status = 'success', - code = '', - reason = '', - was_unapproved = True, - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return FlagComment200Response( - status = 'success', - code = '', - reason = '', - ) - """ - - def testFlagComment200Response(self): - """Test FlagComment200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_flag_comment_public200_response.py b/client/test/test_flag_comment_public200_response.py deleted file mode 100644 index f6c727b..0000000 --- a/client/test/test_flag_comment_public200_response.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.flag_comment_public200_response import FlagCommentPublic200Response - -class TestFlagCommentPublic200Response(unittest.TestCase): - """FlagCommentPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> FlagCommentPublic200Response: - """Test FlagCommentPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `FlagCommentPublic200Response` - """ - model = FlagCommentPublic200Response() - if include_optional: - return FlagCommentPublic200Response( - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return FlagCommentPublic200Response( - status = 'success', - reason = '', - code = '', - ) - """ - - def testFlagCommentPublic200Response(self): - """Test FlagCommentPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_audit_logs200_response.py b/client/test/test_get_audit_logs200_response.py deleted file mode 100644 index 799b8ae..0000000 --- a/client/test/test_get_audit_logs200_response.py +++ /dev/null @@ -1,191 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_audit_logs200_response import GetAuditLogs200Response - -class TestGetAuditLogs200Response(unittest.TestCase): - """GetAuditLogs200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetAuditLogs200Response: - """Test GetAuditLogs200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetAuditLogs200Response` - """ - model = GetAuditLogs200Response() - if include_optional: - return GetAuditLogs200Response( - status = 'success', - audit_logs = [ - client.models.api_audit_log.APIAuditLog( - _id = '', - user_id = '', - username = '', - resource_name = '', - crud_type = 'c', - from = 'ui', - url = '', - ip = '', - when = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - description = '', - server_start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - object_details = null, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetAuditLogs200Response( - status = 'success', - audit_logs = [ - client.models.api_audit_log.APIAuditLog( - _id = '', - user_id = '', - username = '', - resource_name = '', - crud_type = 'c', - from = 'ui', - url = '', - ip = '', - when = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - description = '', - server_start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - object_details = null, ) - ], - reason = '', - code = '', - ) - """ - - def testGetAuditLogs200Response(self): - """Test GetAuditLogs200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_banned_users_count_response.py b/client/test/test_get_banned_users_count_response.py new file mode 100644 index 0000000..2e7821d --- /dev/null +++ b/client/test/test_get_banned_users_count_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_banned_users_count_response import GetBannedUsersCountResponse + +class TestGetBannedUsersCountResponse(unittest.TestCase): + """GetBannedUsersCountResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetBannedUsersCountResponse: + """Test GetBannedUsersCountResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetBannedUsersCountResponse` + """ + model = GetBannedUsersCountResponse() + if include_optional: + return GetBannedUsersCountResponse( + total_count = 1.337, + status = '' + ) + else: + return GetBannedUsersCountResponse( + total_count = 1.337, + status = '', + ) + """ + + def testGetBannedUsersCountResponse(self): + """Test GetBannedUsersCountResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_banned_users_from_comment_response.py b/client/test/test_get_banned_users_from_comment_response.py new file mode 100644 index 0000000..ac6f69f --- /dev/null +++ b/client/test/test_get_banned_users_from_comment_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_banned_users_from_comment_response import GetBannedUsersFromCommentResponse + +class TestGetBannedUsersFromCommentResponse(unittest.TestCase): + """GetBannedUsersFromCommentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetBannedUsersFromCommentResponse: + """Test GetBannedUsersFromCommentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetBannedUsersFromCommentResponse` + """ + model = GetBannedUsersFromCommentResponse() + if include_optional: + return GetBannedUsersFromCommentResponse( + banned_users = [ + null + ], + code = 'not-found', + status = 'success' + ) + else: + return GetBannedUsersFromCommentResponse( + banned_users = [ + null + ], + status = 'success', + ) + """ + + def testGetBannedUsersFromCommentResponse(self): + """Test GetBannedUsersFromCommentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_cached_notification_count200_response.py b/client/test/test_get_cached_notification_count200_response.py deleted file mode 100644 index 09085ed..0000000 --- a/client/test/test_get_cached_notification_count200_response.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_cached_notification_count200_response import GetCachedNotificationCount200Response - -class TestGetCachedNotificationCount200Response(unittest.TestCase): - """GetCachedNotificationCount200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCachedNotificationCount200Response: - """Test GetCachedNotificationCount200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCachedNotificationCount200Response` - """ - model = GetCachedNotificationCount200Response() - if include_optional: - return GetCachedNotificationCount200Response( - status = 'success', - data = client.models.user_notification_count.UserNotificationCount( - _id = '', - count = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetCachedNotificationCount200Response( - status = 'success', - data = client.models.user_notification_count.UserNotificationCount( - _id = '', - count = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - reason = '', - code = '', - ) - """ - - def testGetCachedNotificationCount200Response(self): - """Test GetCachedNotificationCount200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_comment200_response.py b/client/test/test_get_comment200_response.py deleted file mode 100644 index 9fc3d0e..0000000 --- a/client/test/test_get_comment200_response.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_comment200_response import GetComment200Response - -class TestGetComment200Response(unittest.TestCase): - """GetComment200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetComment200Response: - """Test GetComment200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetComment200Response` - """ - model = GetComment200Response() - if include_optional: - return GetComment200Response( - status = 'success', - comment = None, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetComment200Response( - status = 'success', - comment = None, - reason = '', - code = '', - ) - """ - - def testGetComment200Response(self): - """Test GetComment200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_comment_ban_status_response.py b/client/test/test_get_comment_ban_status_response.py new file mode 100644 index 0000000..c2da5e1 --- /dev/null +++ b/client/test/test_get_comment_ban_status_response.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_comment_ban_status_response import GetCommentBanStatusResponse + +class TestGetCommentBanStatusResponse(unittest.TestCase): + """GetCommentBanStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCommentBanStatusResponse: + """Test GetCommentBanStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCommentBanStatusResponse` + """ + model = GetCommentBanStatusResponse() + if include_optional: + return GetCommentBanStatusResponse( + status = '', + email_domain = '', + can_ip_ban = True + ) + else: + return GetCommentBanStatusResponse( + status = '', + email_domain = '', + can_ip_ban = True, + ) + """ + + def testGetCommentBanStatusResponse(self): + """Test GetCommentBanStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_comment_text200_response.py b/client/test/test_get_comment_text200_response.py deleted file mode 100644 index 6f82729..0000000 --- a/client/test/test_get_comment_text200_response.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_comment_text200_response import GetCommentText200Response - -class TestGetCommentText200Response(unittest.TestCase): - """GetCommentText200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCommentText200Response: - """Test GetCommentText200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCommentText200Response` - """ - model = GetCommentText200Response() - if include_optional: - return GetCommentText200Response( - status = 'success', - comment_text = '', - sanitized_comment_text = '', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetCommentText200Response( - status = 'success', - comment_text = '', - sanitized_comment_text = '', - reason = '', - code = '', - ) - """ - - def testGetCommentText200Response(self): - """Test GetCommentText200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_comment_text_response.py b/client/test/test_get_comment_text_response.py new file mode 100644 index 0000000..7c65250 --- /dev/null +++ b/client/test/test_get_comment_text_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_comment_text_response import GetCommentTextResponse + +class TestGetCommentTextResponse(unittest.TestCase): + """GetCommentTextResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCommentTextResponse: + """Test GetCommentTextResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCommentTextResponse` + """ + model = GetCommentTextResponse() + if include_optional: + return GetCommentTextResponse( + comment = '', + status = 'success' + ) + else: + return GetCommentTextResponse( + status = 'success', + ) + """ + + def testGetCommentTextResponse(self): + """Test GetCommentTextResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_comment_vote_user_names200_response.py b/client/test/test_get_comment_vote_user_names200_response.py deleted file mode 100644 index dd5c254..0000000 --- a/client/test/test_get_comment_vote_user_names200_response.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_comment_vote_user_names200_response import GetCommentVoteUserNames200Response - -class TestGetCommentVoteUserNames200Response(unittest.TestCase): - """GetCommentVoteUserNames200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCommentVoteUserNames200Response: - """Test GetCommentVoteUserNames200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCommentVoteUserNames200Response` - """ - model = GetCommentVoteUserNames200Response() - if include_optional: - return GetCommentVoteUserNames200Response( - status = 'success', - vote_user_names = [ - '' - ], - has_more = True, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetCommentVoteUserNames200Response( - status = 'success', - vote_user_names = [ - '' - ], - has_more = True, - reason = '', - code = '', - ) - """ - - def testGetCommentVoteUserNames200Response(self): - """Test GetCommentVoteUserNames200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_comments200_response.py b/client/test/test_get_comments200_response.py deleted file mode 100644 index 6e4b329..0000000 --- a/client/test/test_get_comments200_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_comments200_response import GetComments200Response - -class TestGetComments200Response(unittest.TestCase): - """GetComments200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetComments200Response: - """Test GetComments200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetComments200Response` - """ - model = GetComments200Response() - if include_optional: - return GetComments200Response( - status = 'success', - comments = [ - null - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetComments200Response( - status = 'success', - comments = [ - null - ], - reason = '', - code = '', - ) - """ - - def testGetComments200Response(self): - """Test GetComments200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_comments_for_user_response.py b/client/test/test_get_comments_for_user_response.py new file mode 100644 index 0000000..30119ce --- /dev/null +++ b/client/test/test_get_comments_for_user_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_comments_for_user_response import GetCommentsForUserResponse + +class TestGetCommentsForUserResponse(unittest.TestCase): + """GetCommentsForUserResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetCommentsForUserResponse: + """Test GetCommentsForUserResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetCommentsForUserResponse` + """ + model = GetCommentsForUserResponse() + if include_optional: + return GetCommentsForUserResponse( + moderating_tenant_ids = [ + '' + ] + ) + else: + return GetCommentsForUserResponse( + ) + """ + + def testGetCommentsForUserResponse(self): + """Test GetCommentsForUserResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_comments_public200_response.py b/client/test/test_get_comments_public200_response.py deleted file mode 100644 index d38c01d..0000000 --- a/client/test/test_get_comments_public200_response.py +++ /dev/null @@ -1,247 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_comments_public200_response import GetCommentsPublic200Response - -class TestGetCommentsPublic200Response(unittest.TestCase): - """GetCommentsPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetCommentsPublic200Response: - """Test GetCommentsPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetCommentsPublic200Response` - """ - model = GetCommentsPublic200Response() - if include_optional: - return GetCommentsPublic200Response( - status_code = 56, - status = 'success', - code = '', - reason = '', - translated_warning = '', - comments = [ - null - ], - user = client.models.user_session_info.UserSessionInfo( - id = '', - authorized = True, - avatar_src = '', - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - display_label = '', - display_name = '', - email = '', - group_ids = [ - '' - ], - has_blocked_users = True, - is_anon_session = True, - needs_tos = True, - session_id = '', - username = '', - website_url = '', ), - url_id_clean = '', - last_gen_date = 56, - includes_past_pages = True, - is_demo = True, - comment_count = 56, - is_site_admin = True, - has_billing_issue = True, - module_data = { - 'key' : None - }, - page_number = 56, - is_white_labeled = True, - is_prod = True, - is_crawler = True, - notification_count = 56, - has_more = True, - is_closed = True, - presence_poll_state = 56, - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ), - url_id_ws = '', - user_id_ws = '', - tenant_id_ws = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '' - ) - else: - return GetCommentsPublic200Response( - status = 'success', - code = '', - reason = '', - comments = [ - null - ], - user = client.models.user_session_info.UserSessionInfo( - id = '', - authorized = True, - avatar_src = '', - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - display_label = '', - display_name = '', - email = '', - group_ids = [ - '' - ], - has_blocked_users = True, - is_anon_session = True, - needs_tos = True, - session_id = '', - username = '', - website_url = '', ), - page_number = 56, - ) - """ - - def testGetCommentsPublic200Response(self): - """Test GetCommentsPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_comments_response_public_comment.py b/client/test/test_get_comments_response_public_comment.py index 154debc..150f6b3 100644 --- a/client/test/test_get_comments_response_public_comment.py +++ b/client/test/test_get_comments_response_public_comment.py @@ -144,11 +144,16 @@ def make_instance(self, include_optional) -> GetCommentsResponsePublicComment: no_custom_config = True, mention_auto_complete_mode = null, no_image_uploads = True, + allow_embeds = True, + allowed_embed_domains = [ + '' + ], no_styles = True, page_size = 56, readonly = True, no_new_root_comments = True, require_sso = True, + enable_f_chat = True, enable_resize_handle = True, restricted_link_domains = [ '' @@ -177,6 +182,8 @@ def make_instance(self, include_optional) -> GetCommentsResponsePublicComment: widget_questions_required = 0, widget_sub_question_visibility = 0, wrap = True, + users_list_location = 0, + users_list_include_offline = True, ticket_base_url = '', ticket_kb_search_endpoint = '', ticket_file_uploads_enabled = True, diff --git a/client/test/test_get_comments_response_with_presence_public_comment.py b/client/test/test_get_comments_response_with_presence_public_comment.py index c202c20..0b6c279 100644 --- a/client/test/test_get_comments_response_with_presence_public_comment.py +++ b/client/test/test_get_comments_response_with_presence_public_comment.py @@ -144,11 +144,16 @@ def make_instance(self, include_optional) -> GetCommentsResponseWithPresencePubl no_custom_config = True, mention_auto_complete_mode = null, no_image_uploads = True, + allow_embeds = True, + allowed_embed_domains = [ + '' + ], no_styles = True, page_size = 56, readonly = True, no_new_root_comments = True, require_sso = True, + enable_f_chat = True, enable_resize_handle = True, restricted_link_domains = [ '' @@ -177,6 +182,8 @@ def make_instance(self, include_optional) -> GetCommentsResponseWithPresencePubl widget_questions_required = 0, widget_sub_question_visibility = 0, wrap = True, + users_list_location = 0, + users_list_include_offline = True, ticket_base_url = '', ticket_kb_search_endpoint = '', ticket_file_uploads_enabled = True, diff --git a/client/test/test_get_domain_config200_response.py b/client/test/test_get_domain_config_response.py similarity index 73% rename from client/test/test_get_domain_config200_response.py rename to client/test/test_get_domain_config_response.py index f5682af..3ff4d41 100644 --- a/client/test/test_get_domain_config200_response.py +++ b/client/test/test_get_domain_config_response.py @@ -14,10 +14,10 @@ import unittest -from client.models.get_domain_config200_response import GetDomainConfig200Response +from client.models.get_domain_config_response import GetDomainConfigResponse -class TestGetDomainConfig200Response(unittest.TestCase): - """GetDomainConfig200Response unit test stubs""" +class TestGetDomainConfigResponse(unittest.TestCase): + """GetDomainConfigResponse unit test stubs""" def setUp(self): pass @@ -25,23 +25,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetDomainConfig200Response: - """Test GetDomainConfig200Response + def make_instance(self, include_optional) -> GetDomainConfigResponse: + """Test GetDomainConfigResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetDomainConfig200Response` + # uncomment below to create an instance of `GetDomainConfigResponse` """ - model = GetDomainConfig200Response() + model = GetDomainConfigResponse() if include_optional: - return GetDomainConfig200Response( + return GetDomainConfigResponse( configuration = client.models.configuration.configuration(), status = client.models.status.status(), reason = '', code = '' ) else: - return GetDomainConfig200Response( + return GetDomainConfigResponse( configuration = client.models.configuration.configuration(), status = client.models.status.status(), reason = '', @@ -49,8 +49,8 @@ def make_instance(self, include_optional) -> GetDomainConfig200Response: ) """ - def testGetDomainConfig200Response(self): - """Test GetDomainConfig200Response""" + def testGetDomainConfigResponse(self): + """Test GetDomainConfigResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_get_domain_configs200_response.py b/client/test/test_get_domain_configs_response.py similarity index 73% rename from client/test/test_get_domain_configs200_response.py rename to client/test/test_get_domain_configs_response.py index 323d662..677ba0a 100644 --- a/client/test/test_get_domain_configs200_response.py +++ b/client/test/test_get_domain_configs_response.py @@ -14,10 +14,10 @@ import unittest -from client.models.get_domain_configs200_response import GetDomainConfigs200Response +from client.models.get_domain_configs_response import GetDomainConfigsResponse -class TestGetDomainConfigs200Response(unittest.TestCase): - """GetDomainConfigs200Response unit test stubs""" +class TestGetDomainConfigsResponse(unittest.TestCase): + """GetDomainConfigsResponse unit test stubs""" def setUp(self): pass @@ -25,23 +25,23 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetDomainConfigs200Response: - """Test GetDomainConfigs200Response + def make_instance(self, include_optional) -> GetDomainConfigsResponse: + """Test GetDomainConfigsResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetDomainConfigs200Response` + # uncomment below to create an instance of `GetDomainConfigsResponse` """ - model = GetDomainConfigs200Response() + model = GetDomainConfigsResponse() if include_optional: - return GetDomainConfigs200Response( + return GetDomainConfigsResponse( configurations = client.models.configurations.configurations(), status = client.models.status.status(), reason = '', code = '' ) else: - return GetDomainConfigs200Response( + return GetDomainConfigsResponse( configurations = client.models.configurations.configurations(), status = client.models.status.status(), reason = '', @@ -49,8 +49,8 @@ def make_instance(self, include_optional) -> GetDomainConfigs200Response: ) """ - def testGetDomainConfigs200Response(self): - """Test GetDomainConfigs200Response""" + def testGetDomainConfigsResponse(self): + """Test GetDomainConfigsResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_get_domain_configs200_response_any_of.py b/client/test/test_get_domain_configs_response_any_of.py similarity index 66% rename from client/test/test_get_domain_configs200_response_any_of.py rename to client/test/test_get_domain_configs_response_any_of.py index 2f49340..b6ab164 100644 --- a/client/test/test_get_domain_configs200_response_any_of.py +++ b/client/test/test_get_domain_configs_response_any_of.py @@ -14,10 +14,10 @@ import unittest -from client.models.get_domain_configs200_response_any_of import GetDomainConfigs200ResponseAnyOf +from client.models.get_domain_configs_response_any_of import GetDomainConfigsResponseAnyOf -class TestGetDomainConfigs200ResponseAnyOf(unittest.TestCase): - """GetDomainConfigs200ResponseAnyOf unit test stubs""" +class TestGetDomainConfigsResponseAnyOf(unittest.TestCase): + """GetDomainConfigsResponseAnyOf unit test stubs""" def setUp(self): pass @@ -25,28 +25,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetDomainConfigs200ResponseAnyOf: - """Test GetDomainConfigs200ResponseAnyOf + def make_instance(self, include_optional) -> GetDomainConfigsResponseAnyOf: + """Test GetDomainConfigsResponseAnyOf include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetDomainConfigs200ResponseAnyOf` + # uncomment below to create an instance of `GetDomainConfigsResponseAnyOf` """ - model = GetDomainConfigs200ResponseAnyOf() + model = GetDomainConfigsResponseAnyOf() if include_optional: - return GetDomainConfigs200ResponseAnyOf( + return GetDomainConfigsResponseAnyOf( configurations = None, status = None ) else: - return GetDomainConfigs200ResponseAnyOf( + return GetDomainConfigsResponseAnyOf( configurations = None, status = None, ) """ - def testGetDomainConfigs200ResponseAnyOf(self): - """Test GetDomainConfigs200ResponseAnyOf""" + def testGetDomainConfigsResponseAnyOf(self): + """Test GetDomainConfigsResponseAnyOf""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_get_domain_configs200_response_any_of1.py b/client/test/test_get_domain_configs_response_any_of1.py similarity index 66% rename from client/test/test_get_domain_configs200_response_any_of1.py rename to client/test/test_get_domain_configs_response_any_of1.py index f8b105e..be82a05 100644 --- a/client/test/test_get_domain_configs200_response_any_of1.py +++ b/client/test/test_get_domain_configs_response_any_of1.py @@ -14,10 +14,10 @@ import unittest -from client.models.get_domain_configs200_response_any_of1 import GetDomainConfigs200ResponseAnyOf1 +from client.models.get_domain_configs_response_any_of1 import GetDomainConfigsResponseAnyOf1 -class TestGetDomainConfigs200ResponseAnyOf1(unittest.TestCase): - """GetDomainConfigs200ResponseAnyOf1 unit test stubs""" +class TestGetDomainConfigsResponseAnyOf1(unittest.TestCase): + """GetDomainConfigsResponseAnyOf1 unit test stubs""" def setUp(self): pass @@ -25,30 +25,30 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetDomainConfigs200ResponseAnyOf1: - """Test GetDomainConfigs200ResponseAnyOf1 + def make_instance(self, include_optional) -> GetDomainConfigsResponseAnyOf1: + """Test GetDomainConfigsResponseAnyOf1 include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetDomainConfigs200ResponseAnyOf1` + # uncomment below to create an instance of `GetDomainConfigsResponseAnyOf1` """ - model = GetDomainConfigs200ResponseAnyOf1() + model = GetDomainConfigsResponseAnyOf1() if include_optional: - return GetDomainConfigs200ResponseAnyOf1( + return GetDomainConfigsResponseAnyOf1( reason = '', code = '', status = None ) else: - return GetDomainConfigs200ResponseAnyOf1( + return GetDomainConfigsResponseAnyOf1( reason = '', code = '', status = None, ) """ - def testGetDomainConfigs200ResponseAnyOf1(self): - """Test GetDomainConfigs200ResponseAnyOf1""" + def testGetDomainConfigsResponseAnyOf1(self): + """Test GetDomainConfigsResponseAnyOf1""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_get_email_template200_response.py b/client/test/test_get_email_template200_response.py deleted file mode 100644 index 951b919..0000000 --- a/client/test/test_get_email_template200_response.py +++ /dev/null @@ -1,193 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_email_template200_response import GetEmailTemplate200Response - -class TestGetEmailTemplate200Response(unittest.TestCase): - """GetEmailTemplate200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetEmailTemplate200Response: - """Test GetEmailTemplate200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetEmailTemplate200Response` - """ - model = GetEmailTemplate200Response() - if include_optional: - return GetEmailTemplate200Response( - status = 'success', - email_template = client.models.custom_email_template.CustomEmailTemplate( - _id = '', - tenant_id = '', - email_template_id = '', - display_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_by_user_id = '', - domain = '', - ejs = '', - translation_overrides_by_locale = { - 'key' : { - 'key' : '' - } - }, - test_data = null, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetEmailTemplate200Response( - status = 'success', - email_template = client.models.custom_email_template.CustomEmailTemplate( - _id = '', - tenant_id = '', - email_template_id = '', - display_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_by_user_id = '', - domain = '', - ejs = '', - translation_overrides_by_locale = { - 'key' : { - 'key' : '' - } - }, - test_data = null, ), - reason = '', - code = '', - ) - """ - - def testGetEmailTemplate200Response(self): - """Test GetEmailTemplate200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_email_template_definitions200_response.py b/client/test/test_get_email_template_definitions200_response.py deleted file mode 100644 index 0a3a5d1..0000000 --- a/client/test/test_get_email_template_definitions200_response.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_email_template_definitions200_response import GetEmailTemplateDefinitions200Response - -class TestGetEmailTemplateDefinitions200Response(unittest.TestCase): - """GetEmailTemplateDefinitions200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetEmailTemplateDefinitions200Response: - """Test GetEmailTemplateDefinitions200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetEmailTemplateDefinitions200Response` - """ - model = GetEmailTemplateDefinitions200Response() - if include_optional: - return GetEmailTemplateDefinitions200Response( - status = 'success', - definitions = [ - client.models.email_template_definition.EmailTemplateDefinition( - email_template_id = '', - default_test_data = { - 'key' : null - }, - default_translations_by_locale = { - 'key' : { - 'key' : '' - } - }, - default_ejs = '', ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetEmailTemplateDefinitions200Response( - status = 'success', - definitions = [ - client.models.email_template_definition.EmailTemplateDefinition( - email_template_id = '', - default_test_data = { - 'key' : null - }, - default_translations_by_locale = { - 'key' : { - 'key' : '' - } - }, - default_ejs = '', ) - ], - reason = '', - code = '', - ) - """ - - def testGetEmailTemplateDefinitions200Response(self): - """Test GetEmailTemplateDefinitions200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_email_template_render_errors200_response.py b/client/test/test_get_email_template_render_errors200_response.py deleted file mode 100644 index 48720c6..0000000 --- a/client/test/test_get_email_template_render_errors200_response.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_email_template_render_errors200_response import GetEmailTemplateRenderErrors200Response - -class TestGetEmailTemplateRenderErrors200Response(unittest.TestCase): - """GetEmailTemplateRenderErrors200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetEmailTemplateRenderErrors200Response: - """Test GetEmailTemplateRenderErrors200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetEmailTemplateRenderErrors200Response` - """ - model = GetEmailTemplateRenderErrors200Response() - if include_optional: - return GetEmailTemplateRenderErrors200Response( - status = 'success', - render_errors = [ - client.models.email_template_render_error_response.EmailTemplateRenderErrorResponse( - id = '', - tenant_id = '', - custom_template_id = '', - error = '', - count = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_occurred_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetEmailTemplateRenderErrors200Response( - status = 'success', - render_errors = [ - client.models.email_template_render_error_response.EmailTemplateRenderErrorResponse( - id = '', - tenant_id = '', - custom_template_id = '', - error = '', - count = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_occurred_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reason = '', - code = '', - ) - """ - - def testGetEmailTemplateRenderErrors200Response(self): - """Test GetEmailTemplateRenderErrors200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_email_templates200_response.py b/client/test/test_get_email_templates200_response.py deleted file mode 100644 index c4a67a9..0000000 --- a/client/test/test_get_email_templates200_response.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_email_templates200_response import GetEmailTemplates200Response - -class TestGetEmailTemplates200Response(unittest.TestCase): - """GetEmailTemplates200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetEmailTemplates200Response: - """Test GetEmailTemplates200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetEmailTemplates200Response` - """ - model = GetEmailTemplates200Response() - if include_optional: - return GetEmailTemplates200Response( - status = 'success', - email_templates = [ - client.models.custom_email_template.CustomEmailTemplate( - _id = '', - tenant_id = '', - email_template_id = '', - display_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_by_user_id = '', - domain = '', - ejs = '', - translation_overrides_by_locale = { - 'key' : { - 'key' : '' - } - }, - test_data = null, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetEmailTemplates200Response( - status = 'success', - email_templates = [ - client.models.custom_email_template.CustomEmailTemplate( - _id = '', - tenant_id = '', - email_template_id = '', - display_name = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - updated_by_user_id = '', - domain = '', - ejs = '', - translation_overrides_by_locale = { - 'key' : { - 'key' : '' - } - }, - test_data = null, ) - ], - reason = '', - code = '', - ) - """ - - def testGetEmailTemplates200Response(self): - """Test GetEmailTemplates200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_event_log200_response.py b/client/test/test_get_event_log200_response.py deleted file mode 100644 index 74243cc..0000000 --- a/client/test/test_get_event_log200_response.py +++ /dev/null @@ -1,179 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_event_log200_response import GetEventLog200Response - -class TestGetEventLog200Response(unittest.TestCase): - """GetEventLog200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetEventLog200Response: - """Test GetEventLog200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetEventLog200Response` - """ - model = GetEventLog200Response() - if include_optional: - return GetEventLog200Response( - events = [ - client.models.event_log_entry.EventLogEntry( - _id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tenant_id = '', - url_id = '', - broadcast_id = '', - data = '', ) - ], - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetEventLog200Response( - events = [ - client.models.event_log_entry.EventLogEntry( - _id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tenant_id = '', - url_id = '', - broadcast_id = '', - data = '', ) - ], - status = 'success', - reason = '', - code = '', - ) - """ - - def testGetEventLog200Response(self): - """Test GetEventLog200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_feed_posts200_response.py b/client/test/test_get_feed_posts200_response.py deleted file mode 100644 index ddea8d5..0000000 --- a/client/test/test_get_feed_posts200_response.py +++ /dev/null @@ -1,243 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_feed_posts200_response import GetFeedPosts200Response - -class TestGetFeedPosts200Response(unittest.TestCase): - """GetFeedPosts200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFeedPosts200Response: - """Test GetFeedPosts200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFeedPosts200Response` - """ - model = GetFeedPosts200Response() - if include_optional: - return GetFeedPosts200Response( - status = 'success', - feed_posts = [ - client.models.feed_post.FeedPost( - _id = '', - tenant_id = '', - title = '', - from_user_id = '', - from_user_display_name = '', - from_user_avatar = '', - from_ip_hash = '', - tags = [ - '' - ], - weight = 1.337, - meta = { - 'key' : '' - }, - content_html = '', - media = [ - client.models.feed_post_media_item.FeedPostMediaItem( - title = '', - link_url = '', - sizes = [ - client.models.feed_post_media_item_asset.FeedPostMediaItemAsset( - w = 56, - h = 56, - src = '', ) - ], ) - ], - links = [ - client.models.feed_post_link.FeedPostLink( - text = '', - title = '', - description = '', - url = '', ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - reacts = { - 'key' : 56 - }, - comment_count = 56, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetFeedPosts200Response( - status = 'success', - feed_posts = [ - client.models.feed_post.FeedPost( - _id = '', - tenant_id = '', - title = '', - from_user_id = '', - from_user_display_name = '', - from_user_avatar = '', - from_ip_hash = '', - tags = [ - '' - ], - weight = 1.337, - meta = { - 'key' : '' - }, - content_html = '', - media = [ - client.models.feed_post_media_item.FeedPostMediaItem( - title = '', - link_url = '', - sizes = [ - client.models.feed_post_media_item_asset.FeedPostMediaItemAsset( - w = 56, - h = 56, - src = '', ) - ], ) - ], - links = [ - client.models.feed_post_link.FeedPostLink( - text = '', - title = '', - description = '', - url = '', ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - reacts = { - 'key' : 56 - }, - comment_count = 56, ) - ], - reason = '', - code = '', - ) - """ - - def testGetFeedPosts200Response(self): - """Test GetFeedPosts200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_feed_posts_public200_response.py b/client/test/test_get_feed_posts_public200_response.py deleted file mode 100644 index 742110a..0000000 --- a/client/test/test_get_feed_posts_public200_response.py +++ /dev/null @@ -1,279 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_feed_posts_public200_response import GetFeedPostsPublic200Response - -class TestGetFeedPostsPublic200Response(unittest.TestCase): - """GetFeedPostsPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFeedPostsPublic200Response: - """Test GetFeedPostsPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFeedPostsPublic200Response` - """ - model = GetFeedPostsPublic200Response() - if include_optional: - return GetFeedPostsPublic200Response( - my_reacts = { - 'key' : { - 'key' : True - } - }, - status = 'success', - feed_posts = [ - client.models.feed_post.FeedPost( - _id = '', - tenant_id = '', - title = '', - from_user_id = '', - from_user_display_name = '', - from_user_avatar = '', - from_ip_hash = '', - tags = [ - '' - ], - weight = 1.337, - meta = { - 'key' : '' - }, - content_html = '', - media = [ - client.models.feed_post_media_item.FeedPostMediaItem( - title = '', - link_url = '', - sizes = [ - client.models.feed_post_media_item_asset.FeedPostMediaItemAsset( - w = 56, - h = 56, - src = '', ) - ], ) - ], - links = [ - client.models.feed_post_link.FeedPostLink( - text = '', - title = '', - description = '', - url = '', ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - reacts = { - 'key' : 56 - }, - comment_count = 56, ) - ], - user = client.models.user_session_info.UserSessionInfo( - id = '', - authorized = True, - avatar_src = '', - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - display_label = '', - display_name = '', - email = '', - group_ids = [ - '' - ], - has_blocked_users = True, - is_anon_session = True, - needs_tos = True, - session_id = '', - username = '', - website_url = '', ), - url_id_ws = '', - user_id_ws = '', - tenant_id_ws = '', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetFeedPostsPublic200Response( - status = 'success', - feed_posts = [ - client.models.feed_post.FeedPost( - _id = '', - tenant_id = '', - title = '', - from_user_id = '', - from_user_display_name = '', - from_user_avatar = '', - from_ip_hash = '', - tags = [ - '' - ], - weight = 1.337, - meta = { - 'key' : '' - }, - content_html = '', - media = [ - client.models.feed_post_media_item.FeedPostMediaItem( - title = '', - link_url = '', - sizes = [ - client.models.feed_post_media_item_asset.FeedPostMediaItemAsset( - w = 56, - h = 56, - src = '', ) - ], ) - ], - links = [ - client.models.feed_post_link.FeedPostLink( - text = '', - title = '', - description = '', - url = '', ) - ], - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - reacts = { - 'key' : 56 - }, - comment_count = 56, ) - ], - reason = '', - code = '', - ) - """ - - def testGetFeedPostsPublic200Response(self): - """Test GetFeedPostsPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_feed_posts_stats200_response.py b/client/test/test_get_feed_posts_stats200_response.py deleted file mode 100644 index 1df60e8..0000000 --- a/client/test/test_get_feed_posts_stats200_response.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_feed_posts_stats200_response import GetFeedPostsStats200Response - -class TestGetFeedPostsStats200Response(unittest.TestCase): - """GetFeedPostsStats200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetFeedPostsStats200Response: - """Test GetFeedPostsStats200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetFeedPostsStats200Response` - """ - model = GetFeedPostsStats200Response() - if include_optional: - return GetFeedPostsStats200Response( - status = 'success', - stats = { - 'key' : client.models.feed_post_stats.FeedPostStats( - reacts = { - 'key' : 56 - }, - comment_count = 56, ) - }, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetFeedPostsStats200Response( - status = 'success', - stats = { - 'key' : client.models.feed_post_stats.FeedPostStats( - reacts = { - 'key' : 56 - }, - comment_count = 56, ) - }, - reason = '', - code = '', - ) - """ - - def testGetFeedPostsStats200Response(self): - """Test GetFeedPostsStats200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_gifs_search_response.py b/client/test/test_get_gifs_search_response.py new file mode 100644 index 0000000..76e68d6 --- /dev/null +++ b/client/test/test_get_gifs_search_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_gifs_search_response import GetGifsSearchResponse + +class TestGetGifsSearchResponse(unittest.TestCase): + """GetGifsSearchResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGifsSearchResponse: + """Test GetGifsSearchResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGifsSearchResponse` + """ + model = GetGifsSearchResponse() + if include_optional: + return GetGifsSearchResponse( + images = [ + [ + null + ] + ], + status = 'success', + code = '' + ) + else: + return GetGifsSearchResponse( + images = [ + [ + null + ] + ], + status = 'success', + code = '', + ) + """ + + def testGetGifsSearchResponse(self): + """Test GetGifsSearchResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_gifs_trending_response.py b/client/test/test_get_gifs_trending_response.py new file mode 100644 index 0000000..a907c7d --- /dev/null +++ b/client/test/test_get_gifs_trending_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_gifs_trending_response import GetGifsTrendingResponse + +class TestGetGifsTrendingResponse(unittest.TestCase): + """GetGifsTrendingResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetGifsTrendingResponse: + """Test GetGifsTrendingResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetGifsTrendingResponse` + """ + model = GetGifsTrendingResponse() + if include_optional: + return GetGifsTrendingResponse( + images = [ + [ + null + ] + ], + status = 'success', + code = '' + ) + else: + return GetGifsTrendingResponse( + images = [ + [ + null + ] + ], + status = 'success', + code = '', + ) + """ + + def testGetGifsTrendingResponse(self): + """Test GetGifsTrendingResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_hash_tags200_response.py b/client/test/test_get_hash_tags200_response.py deleted file mode 100644 index f2b1fad..0000000 --- a/client/test/test_get_hash_tags200_response.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_hash_tags200_response import GetHashTags200Response - -class TestGetHashTags200Response(unittest.TestCase): - """GetHashTags200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetHashTags200Response: - """Test GetHashTags200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetHashTags200Response` - """ - model = GetHashTags200Response() - if include_optional: - return GetHashTags200Response( - status = 'success', - hash_tags = [ - client.models.tenant_hash_tag.TenantHashTag( - _id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tenant_id = '', - tag = '', - url = '', ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetHashTags200Response( - status = 'success', - hash_tags = [ - client.models.tenant_hash_tag.TenantHashTag( - _id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tenant_id = '', - tag = '', - url = '', ) - ], - reason = '', - code = '', - ) - """ - - def testGetHashTags200Response(self): - """Test GetHashTags200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_moderator200_response.py b/client/test/test_get_moderator200_response.py deleted file mode 100644 index 135a7a4..0000000 --- a/client/test/test_get_moderator200_response.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_moderator200_response import GetModerator200Response - -class TestGetModerator200Response(unittest.TestCase): - """GetModerator200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetModerator200Response: - """Test GetModerator200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetModerator200Response` - """ - model = GetModerator200Response() - if include_optional: - return GetModerator200Response( - status = 'success', - moderator = client.models.moderator.Moderator( - _id = '', - tenant_id = '', - name = '', - user_id = '', - accepted_invite = True, - email = '', - mark_reviewed_count = 1.337, - deleted_count = 1.337, - marked_spam_count = 1.337, - marked_not_spam_count = 1.337, - approved_count = 1.337, - un_approved_count = 1.337, - edited_count = 1.337, - banned_count = 1.337, - un_flagged_count = 1.337, - verification_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - moderation_group_ids = [ - '' - ], - is_email_suppressed = True, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetModerator200Response( - status = 'success', - moderator = client.models.moderator.Moderator( - _id = '', - tenant_id = '', - name = '', - user_id = '', - accepted_invite = True, - email = '', - mark_reviewed_count = 1.337, - deleted_count = 1.337, - marked_spam_count = 1.337, - marked_not_spam_count = 1.337, - approved_count = 1.337, - un_approved_count = 1.337, - edited_count = 1.337, - banned_count = 1.337, - un_flagged_count = 1.337, - verification_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - moderation_group_ids = [ - '' - ], - is_email_suppressed = True, ), - reason = '', - code = '', - ) - """ - - def testGetModerator200Response(self): - """Test GetModerator200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_moderators200_response.py b/client/test/test_get_moderators200_response.py deleted file mode 100644 index 65cb019..0000000 --- a/client/test/test_get_moderators200_response.py +++ /dev/null @@ -1,209 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_moderators200_response import GetModerators200Response - -class TestGetModerators200Response(unittest.TestCase): - """GetModerators200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetModerators200Response: - """Test GetModerators200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetModerators200Response` - """ - model = GetModerators200Response() - if include_optional: - return GetModerators200Response( - status = 'success', - moderators = [ - client.models.moderator.Moderator( - _id = '', - tenant_id = '', - name = '', - user_id = '', - accepted_invite = True, - email = '', - mark_reviewed_count = 1.337, - deleted_count = 1.337, - marked_spam_count = 1.337, - marked_not_spam_count = 1.337, - approved_count = 1.337, - un_approved_count = 1.337, - edited_count = 1.337, - banned_count = 1.337, - un_flagged_count = 1.337, - verification_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - moderation_group_ids = [ - '' - ], - is_email_suppressed = True, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetModerators200Response( - status = 'success', - moderators = [ - client.models.moderator.Moderator( - _id = '', - tenant_id = '', - name = '', - user_id = '', - accepted_invite = True, - email = '', - mark_reviewed_count = 1.337, - deleted_count = 1.337, - marked_spam_count = 1.337, - marked_not_spam_count = 1.337, - approved_count = 1.337, - un_approved_count = 1.337, - edited_count = 1.337, - banned_count = 1.337, - un_flagged_count = 1.337, - verification_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - moderation_group_ids = [ - '' - ], - is_email_suppressed = True, ) - ], - reason = '', - code = '', - ) - """ - - def testGetModerators200Response(self): - """Test GetModerators200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_notification_count200_response.py b/client/test/test_get_notification_count200_response.py deleted file mode 100644 index e0d24e0..0000000 --- a/client/test/test_get_notification_count200_response.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_notification_count200_response import GetNotificationCount200Response - -class TestGetNotificationCount200Response(unittest.TestCase): - """GetNotificationCount200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetNotificationCount200Response: - """Test GetNotificationCount200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetNotificationCount200Response` - """ - model = GetNotificationCount200Response() - if include_optional: - return GetNotificationCount200Response( - status = 'success', - count = 1.337, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetNotificationCount200Response( - status = 'success', - count = 1.337, - reason = '', - code = '', - ) - """ - - def testGetNotificationCount200Response(self): - """Test GetNotificationCount200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_notifications200_response.py b/client/test/test_get_notifications200_response.py deleted file mode 100644 index 7a4c23a..0000000 --- a/client/test/test_get_notifications200_response.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_notifications200_response import GetNotifications200Response - -class TestGetNotifications200Response(unittest.TestCase): - """GetNotifications200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetNotifications200Response: - """Test GetNotifications200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetNotifications200Response` - """ - model = GetNotifications200Response() - if include_optional: - return GetNotifications200Response( - status = 'success', - notifications = [ - client.models.user_notification.UserNotification( - _id = '', - tenant_id = '', - user_id = '', - anon_user_id = '', - url_id = '', - url = '', - page_title = '', - related_object_type = 0, - related_object_id = '', - viewed = True, - is_unread_message = True, - sent = True, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = 0, - from_comment_id = '', - from_vote_id = '', - from_user_name = '', - from_user_id = '', - from_user_avatar_src = '', - opted_out = True, - count = 56, - related_ids = [ - '' - ], - from_user_ids = [ - '' - ], - from_user_names = [ - '' - ], ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetNotifications200Response( - status = 'success', - notifications = [ - client.models.user_notification.UserNotification( - _id = '', - tenant_id = '', - user_id = '', - anon_user_id = '', - url_id = '', - url = '', - page_title = '', - related_object_type = 0, - related_object_id = '', - viewed = True, - is_unread_message = True, - sent = True, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = 0, - from_comment_id = '', - from_vote_id = '', - from_user_name = '', - from_user_id = '', - from_user_avatar_src = '', - opted_out = True, - count = 56, - related_ids = [ - '' - ], - from_user_ids = [ - '' - ], - from_user_names = [ - '' - ], ) - ], - reason = '', - code = '', - ) - """ - - def testGetNotifications200Response(self): - """Test GetNotifications200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_pending_webhook_event_count200_response.py b/client/test/test_get_pending_webhook_event_count200_response.py deleted file mode 100644 index d090b0f..0000000 --- a/client/test/test_get_pending_webhook_event_count200_response.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_pending_webhook_event_count200_response import GetPendingWebhookEventCount200Response - -class TestGetPendingWebhookEventCount200Response(unittest.TestCase): - """GetPendingWebhookEventCount200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPendingWebhookEventCount200Response: - """Test GetPendingWebhookEventCount200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPendingWebhookEventCount200Response` - """ - model = GetPendingWebhookEventCount200Response() - if include_optional: - return GetPendingWebhookEventCount200Response( - status = 'success', - count = 1.337, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetPendingWebhookEventCount200Response( - status = 'success', - count = 1.337, - reason = '', - code = '', - ) - """ - - def testGetPendingWebhookEventCount200Response(self): - """Test GetPendingWebhookEventCount200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_pending_webhook_events200_response.py b/client/test/test_get_pending_webhook_events200_response.py deleted file mode 100644 index bc696d1..0000000 --- a/client/test/test_get_pending_webhook_events200_response.py +++ /dev/null @@ -1,511 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_pending_webhook_events200_response import GetPendingWebhookEvents200Response - -class TestGetPendingWebhookEvents200Response(unittest.TestCase): - """GetPendingWebhookEvents200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetPendingWebhookEvents200Response: - """Test GetPendingWebhookEvents200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetPendingWebhookEvents200Response` - """ - model = GetPendingWebhookEvents200Response() - if include_optional: - return GetPendingWebhookEvents200Response( - status = 'success', - pending_webhook_events = [ - client.models.pending_comment_to_sync_outbound.PendingCommentToSyncOutbound( - _id = '', - comment_id = '', - comment = client.models.f_comment.FComment( - _id = '', - tenant_id = '', - url_id = '', - url_id_raw = '', - url = '', - page_title = '', - user_id = null, - anon_user_id = '', - commenter_email = '', - commenter_name = '', - commenter_link = '', - comment = '', - comment_html = '', - parent_id = '', - date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - local_date_string = '', - local_date_hours = 56, - votes = 56, - votes_up = 56, - votes_down = 56, - expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verified = True, - verified_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verification_id = '', - notification_sent_for_parent = True, - notification_sent_for_parent_tenant = True, - reviewed = True, - imported = True, - external_id = '', - external_parent_id = '', - avatar_src = '', - is_spam = True, - perm_not_spam = True, - ai_determined_spam = True, - has_images = True, - page_number = 56, - page_number_of = 56, - page_number_nf = 56, - has_links = True, - has_code = True, - approved = True, - locale = '', - is_deleted = True, - is_deleted_user = True, - is_banned_user = True, - is_by_admin = True, - is_by_moderator = True, - is_pinned = True, - is_locked = True, - flag_count = 56, - rating = 1.337, - display_label = '', - from_product_id = 56, - meta = { - 'key' : null - }, - ip_hash = '', - mentions = [ - client.models.comment_user_mention_info.CommentUserMentionInfo( - id = '', - tag = '', - raw_tag = '', - type = 'user', - sent = True, ) - ], - hash_tags = [ - client.models.comment_user_hash_tag_info.CommentUserHashTagInfo( - id = '', - tag = '', - url = '', - retain = True, ) - ], - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - domain = null, - veteran_badge_processed = '', - moderation_group_ids = [ - '' - ], - did_process_badges = True, - from_offline_restore = True, - autoplay_job_id = '', - autoplay_delay_ms = 56, - feedback_ids = [ - '' - ], - logs = [ - client.models.comment_log_entry.CommentLogEntry( - d = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - t = 0, - da = client.models.comment_log_data.CommentLogData( - clear_content = True, - is_deleted_user = True, - phrase = '', - bad_word = '', - word = '', - locale = '', - tenant_badge_id = '', - badge_id = '', - was_logged_in = True, - found_user = True, - verified = True, - engine = '', - engine_response = '', - engine_tokens = 1.337, - trust_factor = 1.337, - rule = client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ), - user_id = '', - subscribers = 1.337, - notification_count = 1.337, - votes_before = 1.337, - votes_up_before = 1.337, - votes_down_before = 1.337, - votes_after = 1.337, - votes_up_after = 1.337, - votes_down_after = 1.337, - repeat_action = 0, - reason = 0, - other_data = null, - spam_before = True, - spam_after = True, - permanent_flag = 'permanent', - approved_before = True, - approved_after = True, - reviewed_before = True, - reviewed_after = True, - text_before = '', - text_after = '', - expire_before = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - expire_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - flag_count_before = 1.337, - trust_factor_before = 1.337, - trust_factor_after = 1.337, - referenced_comment_id = '', - invalid_locale = '', - detected_locale = '', - detected_language = '', ), ) - ], - group_ids = [ - '' - ], - view_count = 56, - requires_verification = True, - edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - external_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tenant_id = '', - attempt_count = 1.337, - next_attempt_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - event_type = 1.337, - type = 1.337, - domain = '', - last_error = client.models.last_error.lastError(), - webhook_id = '', ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetPendingWebhookEvents200Response( - status = 'success', - pending_webhook_events = [ - client.models.pending_comment_to_sync_outbound.PendingCommentToSyncOutbound( - _id = '', - comment_id = '', - comment = client.models.f_comment.FComment( - _id = '', - tenant_id = '', - url_id = '', - url_id_raw = '', - url = '', - page_title = '', - user_id = null, - anon_user_id = '', - commenter_email = '', - commenter_name = '', - commenter_link = '', - comment = '', - comment_html = '', - parent_id = '', - date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - local_date_string = '', - local_date_hours = 56, - votes = 56, - votes_up = 56, - votes_down = 56, - expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verified = True, - verified_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verification_id = '', - notification_sent_for_parent = True, - notification_sent_for_parent_tenant = True, - reviewed = True, - imported = True, - external_id = '', - external_parent_id = '', - avatar_src = '', - is_spam = True, - perm_not_spam = True, - ai_determined_spam = True, - has_images = True, - page_number = 56, - page_number_of = 56, - page_number_nf = 56, - has_links = True, - has_code = True, - approved = True, - locale = '', - is_deleted = True, - is_deleted_user = True, - is_banned_user = True, - is_by_admin = True, - is_by_moderator = True, - is_pinned = True, - is_locked = True, - flag_count = 56, - rating = 1.337, - display_label = '', - from_product_id = 56, - meta = { - 'key' : null - }, - ip_hash = '', - mentions = [ - client.models.comment_user_mention_info.CommentUserMentionInfo( - id = '', - tag = '', - raw_tag = '', - type = 'user', - sent = True, ) - ], - hash_tags = [ - client.models.comment_user_hash_tag_info.CommentUserHashTagInfo( - id = '', - tag = '', - url = '', - retain = True, ) - ], - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - domain = null, - veteran_badge_processed = '', - moderation_group_ids = [ - '' - ], - did_process_badges = True, - from_offline_restore = True, - autoplay_job_id = '', - autoplay_delay_ms = 56, - feedback_ids = [ - '' - ], - logs = [ - client.models.comment_log_entry.CommentLogEntry( - d = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - t = 0, - da = client.models.comment_log_data.CommentLogData( - clear_content = True, - is_deleted_user = True, - phrase = '', - bad_word = '', - word = '', - locale = '', - tenant_badge_id = '', - badge_id = '', - was_logged_in = True, - found_user = True, - verified = True, - engine = '', - engine_response = '', - engine_tokens = 1.337, - trust_factor = 1.337, - rule = client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ), - user_id = '', - subscribers = 1.337, - notification_count = 1.337, - votes_before = 1.337, - votes_up_before = 1.337, - votes_down_before = 1.337, - votes_after = 1.337, - votes_up_after = 1.337, - votes_down_after = 1.337, - repeat_action = 0, - reason = 0, - other_data = null, - spam_before = True, - spam_after = True, - permanent_flag = 'permanent', - approved_before = True, - approved_after = True, - reviewed_before = True, - reviewed_after = True, - text_before = '', - text_after = '', - expire_before = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - expire_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - flag_count_before = 1.337, - trust_factor_before = 1.337, - trust_factor_after = 1.337, - referenced_comment_id = '', - invalid_locale = '', - detected_locale = '', - detected_language = '', ), ) - ], - group_ids = [ - '' - ], - view_count = 56, - requires_verification = True, - edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - external_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - tenant_id = '', - attempt_count = 1.337, - next_attempt_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - event_type = 1.337, - type = 1.337, - domain = '', - last_error = client.models.last_error.lastError(), - webhook_id = '', ) - ], - reason = '', - code = '', - ) - """ - - def testGetPendingWebhookEvents200Response(self): - """Test GetPendingWebhookEvents200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_pending_webhook_events_response.py b/client/test/test_get_pending_webhook_events_response.py index 94361a5..6d8f1ac 100644 --- a/client/test/test_get_pending_webhook_events_response.py +++ b/client/test/test_get_pending_webhook_events_response.py @@ -157,6 +157,7 @@ def make_instance(self, include_optional) -> GetPendingWebhookEventsResponse: engine_response = '', engine_tokens = 1.337, trust_factor = 1.337, + source = '', rule = client.models.spam_rule.SpamRule( actions = [ 'spam' @@ -199,7 +200,8 @@ def make_instance(self, include_optional) -> GetPendingWebhookEventsResponse: view_count = 56, requires_verification = True, edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + bot_id = '', ), external_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), tenant_id = '', @@ -336,6 +338,7 @@ def make_instance(self, include_optional) -> GetPendingWebhookEventsResponse: engine_response = '', engine_tokens = 1.337, trust_factor = 1.337, + source = '', rule = client.models.spam_rule.SpamRule( actions = [ 'spam' @@ -378,7 +381,8 @@ def make_instance(self, include_optional) -> GetPendingWebhookEventsResponse: view_count = 56, requires_verification = True, edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + bot_id = '', ), external_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), tenant_id = '', diff --git a/client/test/test_get_public_pages_response.py b/client/test/test_get_public_pages_response.py new file mode 100644 index 0000000..cbe1efa --- /dev/null +++ b/client/test/test_get_public_pages_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_public_pages_response import GetPublicPagesResponse + +class TestGetPublicPagesResponse(unittest.TestCase): + """GetPublicPagesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetPublicPagesResponse: + """Test GetPublicPagesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetPublicPagesResponse` + """ + model = GetPublicPagesResponse() + if include_optional: + return GetPublicPagesResponse( + next_cursor = '', + pages = [ + client.models.public_page.PublicPage( + updated_at = 56, + comment_count = 56, + title = '', + url = '', + url_id = '', ) + ], + status = 'success' + ) + else: + return GetPublicPagesResponse( + next_cursor = '', + pages = [ + client.models.public_page.PublicPage( + updated_at = 56, + comment_count = 56, + title = '', + url = '', + url_id = '', ) + ], + status = 'success', + ) + """ + + def testGetPublicPagesResponse(self): + """Test GetPublicPagesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_question_config200_response.py b/client/test/test_get_question_config200_response.py deleted file mode 100644 index 7ccce19..0000000 --- a/client/test/test_get_question_config200_response.py +++ /dev/null @@ -1,217 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_question_config200_response import GetQuestionConfig200Response - -class TestGetQuestionConfig200Response(unittest.TestCase): - """GetQuestionConfig200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetQuestionConfig200Response: - """Test GetQuestionConfig200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetQuestionConfig200Response` - """ - model = GetQuestionConfig200Response() - if include_optional: - return GetQuestionConfig200Response( - status = 'success', - question_config = client.models.question_config.QuestionConfig( - _id = '', - tenant_id = '', - name = '', - question = '', - summary_label = '', - help_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_by = '', - used_count = 1.337, - last_used = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = '', - num_stars = 1.337, - min = 1.337, - max = 1.337, - default_value = 1.337, - label_negative = '', - label_positive = '', - custom_options = [ - client.models.question_config_custom_options_inner.QuestionConfig_customOptions_inner( - image_src = '', - name = '', ) - ], - sub_question_ids = [ - '' - ], - always_show_sub_questions = True, - reporting_order = 1.337, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetQuestionConfig200Response( - status = 'success', - question_config = client.models.question_config.QuestionConfig( - _id = '', - tenant_id = '', - name = '', - question = '', - summary_label = '', - help_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_by = '', - used_count = 1.337, - last_used = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = '', - num_stars = 1.337, - min = 1.337, - max = 1.337, - default_value = 1.337, - label_negative = '', - label_positive = '', - custom_options = [ - client.models.question_config_custom_options_inner.QuestionConfig_customOptions_inner( - image_src = '', - name = '', ) - ], - sub_question_ids = [ - '' - ], - always_show_sub_questions = True, - reporting_order = 1.337, ), - reason = '', - code = '', - ) - """ - - def testGetQuestionConfig200Response(self): - """Test GetQuestionConfig200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_question_configs200_response.py b/client/test/test_get_question_configs200_response.py deleted file mode 100644 index 0fba3a8..0000000 --- a/client/test/test_get_question_configs200_response.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_question_configs200_response import GetQuestionConfigs200Response - -class TestGetQuestionConfigs200Response(unittest.TestCase): - """GetQuestionConfigs200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetQuestionConfigs200Response: - """Test GetQuestionConfigs200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetQuestionConfigs200Response` - """ - model = GetQuestionConfigs200Response() - if include_optional: - return GetQuestionConfigs200Response( - status = 'success', - question_configs = [ - client.models.question_config.QuestionConfig( - _id = '', - tenant_id = '', - name = '', - question = '', - summary_label = '', - help_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_by = '', - used_count = 1.337, - last_used = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = '', - num_stars = 1.337, - min = 1.337, - max = 1.337, - default_value = 1.337, - label_negative = '', - label_positive = '', - custom_options = [ - client.models.question_config_custom_options_inner.QuestionConfig_customOptions_inner( - image_src = '', - name = '', ) - ], - sub_question_ids = [ - '' - ], - always_show_sub_questions = True, - reporting_order = 1.337, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetQuestionConfigs200Response( - status = 'success', - question_configs = [ - client.models.question_config.QuestionConfig( - _id = '', - tenant_id = '', - name = '', - question = '', - summary_label = '', - help_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - created_by = '', - used_count = 1.337, - last_used = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = '', - num_stars = 1.337, - min = 1.337, - max = 1.337, - default_value = 1.337, - label_negative = '', - label_positive = '', - custom_options = [ - client.models.question_config_custom_options_inner.QuestionConfig_customOptions_inner( - image_src = '', - name = '', ) - ], - sub_question_ids = [ - '' - ], - always_show_sub_questions = True, - reporting_order = 1.337, ) - ], - reason = '', - code = '', - ) - """ - - def testGetQuestionConfigs200Response(self): - """Test GetQuestionConfigs200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_question_result200_response.py b/client/test/test_get_question_result200_response.py deleted file mode 100644 index 541668f..0000000 --- a/client/test/test_get_question_result200_response.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_question_result200_response import GetQuestionResult200Response - -class TestGetQuestionResult200Response(unittest.TestCase): - """GetQuestionResult200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetQuestionResult200Response: - """Test GetQuestionResult200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetQuestionResult200Response` - """ - model = GetQuestionResult200Response() - if include_optional: - return GetQuestionResult200Response( - status = 'success', - question_result = client.models.question_result.QuestionResult( - _id = '', - tenant_id = '', - url_id = '', - anon_user_id = '', - user_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - value = 56, - comment_id = '', - question_id = '', - meta = [ - client.models.meta_item.MetaItem( - name = '', - values = [ - '' - ], ) - ], - ip_hash = '', ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetQuestionResult200Response( - status = 'success', - question_result = client.models.question_result.QuestionResult( - _id = '', - tenant_id = '', - url_id = '', - anon_user_id = '', - user_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - value = 56, - comment_id = '', - question_id = '', - meta = [ - client.models.meta_item.MetaItem( - name = '', - values = [ - '' - ], ) - ], - ip_hash = '', ), - reason = '', - code = '', - ) - """ - - def testGetQuestionResult200Response(self): - """Test GetQuestionResult200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_question_results200_response.py b/client/test/test_get_question_results200_response.py deleted file mode 100644 index ebf9eb4..0000000 --- a/client/test/test_get_question_results200_response.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_question_results200_response import GetQuestionResults200Response - -class TestGetQuestionResults200Response(unittest.TestCase): - """GetQuestionResults200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetQuestionResults200Response: - """Test GetQuestionResults200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetQuestionResults200Response` - """ - model = GetQuestionResults200Response() - if include_optional: - return GetQuestionResults200Response( - status = 'success', - question_results = [ - client.models.question_result.QuestionResult( - _id = '', - tenant_id = '', - url_id = '', - anon_user_id = '', - user_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - value = 56, - comment_id = '', - question_id = '', - meta = [ - client.models.meta_item.MetaItem( - name = '', - values = [ - '' - ], ) - ], - ip_hash = '', ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetQuestionResults200Response( - status = 'success', - question_results = [ - client.models.question_result.QuestionResult( - _id = '', - tenant_id = '', - url_id = '', - anon_user_id = '', - user_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - value = 56, - comment_id = '', - question_id = '', - meta = [ - client.models.meta_item.MetaItem( - name = '', - values = [ - '' - ], ) - ], - ip_hash = '', ) - ], - reason = '', - code = '', - ) - """ - - def testGetQuestionResults200Response(self): - """Test GetQuestionResults200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_sso_users200_response.py b/client/test/test_get_sso_users_response.py similarity index 84% rename from client/test/test_get_sso_users200_response.py rename to client/test/test_get_sso_users_response.py index 42f9414..b004130 100644 --- a/client/test/test_get_sso_users200_response.py +++ b/client/test/test_get_sso_users_response.py @@ -14,10 +14,10 @@ import unittest -from client.models.get_sso_users200_response import GetSSOUsers200Response +from client.models.get_sso_users_response import GetSSOUsersResponse -class TestGetSSOUsers200Response(unittest.TestCase): - """GetSSOUsers200Response unit test stubs""" +class TestGetSSOUsersResponse(unittest.TestCase): + """GetSSOUsersResponse unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> GetSSOUsers200Response: - """Test GetSSOUsers200Response + def make_instance(self, include_optional) -> GetSSOUsersResponse: + """Test GetSSOUsersResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `GetSSOUsers200Response` + # uncomment below to create an instance of `GetSSOUsersResponse` """ - model = GetSSOUsers200Response() + model = GetSSOUsersResponse() if include_optional: - return GetSSOUsers200Response( + return GetSSOUsersResponse( users = [ client.models.apisso_user.APISSOUser( id = '', @@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> GetSSOUsers200Response: status = '' ) else: - return GetSSOUsers200Response( + return GetSSOUsersResponse( users = [ client.models.apisso_user.APISSOUser( id = '', @@ -93,8 +93,8 @@ def make_instance(self, include_optional) -> GetSSOUsers200Response: ) """ - def testGetSSOUsers200Response(self): - """Test GetSSOUsers200Response""" + def testGetSSOUsersResponse(self): + """Test GetSSOUsersResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_get_tenant200_response.py b/client/test/test_get_tenant200_response.py deleted file mode 100644 index 36ac914..0000000 --- a/client/test/test_get_tenant200_response.py +++ /dev/null @@ -1,277 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_tenant200_response import GetTenant200Response - -class TestGetTenant200Response(unittest.TestCase): - """GetTenant200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTenant200Response: - """Test GetTenant200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTenant200Response` - """ - model = GetTenant200Response() - if include_optional: - return GetTenant200Response( - status = 'success', - tenant = client.models.api_tenant.APITenant( - id = '', - name = '', - email = '', - sign_up_date = 1.337, - package_id = '', - payment_frequency = 1.337, - billing_info_valid = True, - billing_handled_externally = True, - created_by = '', - is_setup = True, - domain_configuration = [ - client.models.api_domain_configuration.APIDomainConfiguration( - id = '', - domain = '', - email_from_name = '', - email_from_email = '', - email_headers = { - 'key' : '' - }, - wp_sync_token = '', - wp_synced = True, - wp_url = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_added_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - site_type = 0, - logo_src = '', - logo_src100px = '', - footer_unsubscribe_url = '', - disable_unsubscribe_links = True, ) - ], - billing_info = client.models.billing_info.BillingInfo( - name = '', - address = '', - city = '', - state = '', - zip = '', - country = '', - currency = '', - email = '', ), - stripe_customer_id = '', - stripe_subscription_id = '', - stripe_plan_id = '', - enable_profanity_filter = True, - enable_spam_filter = True, - last_billing_issue_reminder_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - remove_unverified_comments = True, - unverified_comments_tt_lms = 1.337, - comments_require_approval = True, - auto_approve_comment_on_verification = True, - send_profane_to_spam = True, - has_flex_pricing = True, - has_auditing = True, - flex_last_billed_amount = 1.337, - de_anon_ip_addr = 1.337, - meta = { - 'key' : '' - }, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTenant200Response( - status = 'success', - tenant = client.models.api_tenant.APITenant( - id = '', - name = '', - email = '', - sign_up_date = 1.337, - package_id = '', - payment_frequency = 1.337, - billing_info_valid = True, - billing_handled_externally = True, - created_by = '', - is_setup = True, - domain_configuration = [ - client.models.api_domain_configuration.APIDomainConfiguration( - id = '', - domain = '', - email_from_name = '', - email_from_email = '', - email_headers = { - 'key' : '' - }, - wp_sync_token = '', - wp_synced = True, - wp_url = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_added_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - site_type = 0, - logo_src = '', - logo_src100px = '', - footer_unsubscribe_url = '', - disable_unsubscribe_links = True, ) - ], - billing_info = client.models.billing_info.BillingInfo( - name = '', - address = '', - city = '', - state = '', - zip = '', - country = '', - currency = '', - email = '', ), - stripe_customer_id = '', - stripe_subscription_id = '', - stripe_plan_id = '', - enable_profanity_filter = True, - enable_spam_filter = True, - last_billing_issue_reminder_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - remove_unverified_comments = True, - unverified_comments_tt_lms = 1.337, - comments_require_approval = True, - auto_approve_comment_on_verification = True, - send_profane_to_spam = True, - has_flex_pricing = True, - has_auditing = True, - flex_last_billed_amount = 1.337, - de_anon_ip_addr = 1.337, - meta = { - 'key' : '' - }, ), - reason = '', - code = '', - ) - """ - - def testGetTenant200Response(self): - """Test GetTenant200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_tenant_daily_usages200_response.py b/client/test/test_get_tenant_daily_usages200_response.py deleted file mode 100644 index bf2f723..0000000 --- a/client/test/test_get_tenant_daily_usages200_response.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_tenant_daily_usages200_response import GetTenantDailyUsages200Response - -class TestGetTenantDailyUsages200Response(unittest.TestCase): - """GetTenantDailyUsages200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTenantDailyUsages200Response: - """Test GetTenantDailyUsages200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTenantDailyUsages200Response` - """ - model = GetTenantDailyUsages200Response() - if include_optional: - return GetTenantDailyUsages200Response( - status = 'success', - tenant_daily_usages = [ - client.models.api_tenant_daily_usage.APITenantDailyUsage( - id = '', - tenant_id = '', - year_number = 1.337, - month_number = 1.337, - day_number = 1.337, - comment_fetch_count = 1.337, - comment_create_count = 1.337, - conversation_create_count = 1.337, - vote_count = 1.337, - account_created_count = 1.337, - user_mention_search = 1.337, - hash_tag_search = 1.337, - gif_search_trending = 1.337, - gif_search = 1.337, - api_credits_used = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - billed = True, - ignored = True, - api_error_count = 1.337, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTenantDailyUsages200Response( - status = 'success', - tenant_daily_usages = [ - client.models.api_tenant_daily_usage.APITenantDailyUsage( - id = '', - tenant_id = '', - year_number = 1.337, - month_number = 1.337, - day_number = 1.337, - comment_fetch_count = 1.337, - comment_create_count = 1.337, - conversation_create_count = 1.337, - vote_count = 1.337, - account_created_count = 1.337, - user_mention_search = 1.337, - hash_tag_search = 1.337, - gif_search_trending = 1.337, - gif_search = 1.337, - api_credits_used = 1.337, - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - billed = True, - ignored = True, - api_error_count = 1.337, ) - ], - reason = '', - code = '', - ) - """ - - def testGetTenantDailyUsages200Response(self): - """Test GetTenantDailyUsages200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_tenant_manual_badges_response.py b/client/test/test_get_tenant_manual_badges_response.py new file mode 100644 index 0000000..f4e0610 --- /dev/null +++ b/client/test/test_get_tenant_manual_badges_response.py @@ -0,0 +1,100 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_tenant_manual_badges_response import GetTenantManualBadgesResponse + +class TestGetTenantManualBadgesResponse(unittest.TestCase): + """GetTenantManualBadgesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTenantManualBadgesResponse: + """Test GetTenantManualBadgesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTenantManualBadgesResponse` + """ + model = GetTenantManualBadgesResponse() + if include_optional: + return GetTenantManualBadgesResponse( + badges = [ + client.models.tenant_badge.TenantBadge( + _id = '', + tenant_id = '', + created_by_user_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + enabled = True, + url_id = '', + type = 1.337, + threshold = 1.337, + uses = 1.337, + name = '', + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', + veteran_user_threshold_millis = 1.337, + is_awaiting_reprocess = True, + is_awaiting_deletion = True, + replaces_badge_id = '', ) + ], + status = 'success' + ) + else: + return GetTenantManualBadgesResponse( + badges = [ + client.models.tenant_badge.TenantBadge( + _id = '', + tenant_id = '', + created_by_user_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + enabled = True, + url_id = '', + type = 1.337, + threshold = 1.337, + uses = 1.337, + name = '', + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', + veteran_user_threshold_millis = 1.337, + is_awaiting_reprocess = True, + is_awaiting_deletion = True, + replaces_badge_id = '', ) + ], + status = 'success', + ) + """ + + def testGetTenantManualBadgesResponse(self): + """Test GetTenantManualBadgesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_tenant_package200_response.py b/client/test/test_get_tenant_package200_response.py deleted file mode 100644 index 7fc3772..0000000 --- a/client/test/test_get_tenant_package200_response.py +++ /dev/null @@ -1,275 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_tenant_package200_response import GetTenantPackage200Response - -class TestGetTenantPackage200Response(unittest.TestCase): - """GetTenantPackage200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTenantPackage200Response: - """Test GetTenantPackage200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTenantPackage200Response` - """ - model = GetTenantPackage200Response() - if include_optional: - return GetTenantPackage200Response( - status = 'success', - tenant_package = client.models.tenant_package.TenantPackage( - _id = '', - name = '', - tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - monthly_cost_usd = 1.337, - yearly_cost_usd = 1.337, - monthly_stripe_plan_id = '', - yearly_stripe_plan_id = '', - max_monthly_page_loads = 1.337, - max_monthly_api_credits = 1.337, - max_monthly_small_widgets_credits = 1.337, - max_monthly_comments = 1.337, - max_concurrent_users = 1.337, - max_tenant_users = 1.337, - max_sso_users = 1.337, - max_moderators = 1.337, - max_domains = 1.337, - max_white_labeled_tenants = 1.337, - max_monthly_event_log_requests = 1.337, - max_custom_collection_size = 1.337, - has_white_labeling = True, - has_debranding = True, - has_llm_spam_detection = True, - for_who_text = '', - feature_taglines = [ - '' - ], - has_auditing = True, - has_flex_pricing = True, - enable_saml = True, - enable_canvas_lti = True, - flex_page_load_cost_cents = 1.337, - flex_page_load_unit = 1.337, - flex_comment_cost_cents = 1.337, - flex_comment_unit = 1.337, - flex_sso_user_cost_cents = 1.337, - flex_sso_user_unit = 1.337, - flex_api_credit_cost_cents = 1.337, - flex_api_credit_unit = 1.337, - flex_small_widgets_credit_cost_cents = 1.337, - flex_small_widgets_credit_unit = 1.337, - flex_moderator_cost_cents = 1.337, - flex_moderator_unit = 1.337, - flex_admin_cost_cents = 1.337, - flex_admin_unit = 1.337, - flex_domain_cost_cents = 1.337, - flex_domain_unit = 1.337, - flex_chat_gpt_cost_cents = 1.337, - flex_chat_gpt_unit = 1.337, - flex_minimum_cost_cents = 1.337, - flex_managed_tenant_cost_cents = 1.337, - flex_sso_admin_cost_cents = 1.337, - flex_sso_admin_unit = 1.337, - flex_sso_moderator_cost_cents = 1.337, - flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTenantPackage200Response( - status = 'success', - tenant_package = client.models.tenant_package.TenantPackage( - _id = '', - name = '', - tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - monthly_cost_usd = 1.337, - yearly_cost_usd = 1.337, - monthly_stripe_plan_id = '', - yearly_stripe_plan_id = '', - max_monthly_page_loads = 1.337, - max_monthly_api_credits = 1.337, - max_monthly_small_widgets_credits = 1.337, - max_monthly_comments = 1.337, - max_concurrent_users = 1.337, - max_tenant_users = 1.337, - max_sso_users = 1.337, - max_moderators = 1.337, - max_domains = 1.337, - max_white_labeled_tenants = 1.337, - max_monthly_event_log_requests = 1.337, - max_custom_collection_size = 1.337, - has_white_labeling = True, - has_debranding = True, - has_llm_spam_detection = True, - for_who_text = '', - feature_taglines = [ - '' - ], - has_auditing = True, - has_flex_pricing = True, - enable_saml = True, - enable_canvas_lti = True, - flex_page_load_cost_cents = 1.337, - flex_page_load_unit = 1.337, - flex_comment_cost_cents = 1.337, - flex_comment_unit = 1.337, - flex_sso_user_cost_cents = 1.337, - flex_sso_user_unit = 1.337, - flex_api_credit_cost_cents = 1.337, - flex_api_credit_unit = 1.337, - flex_small_widgets_credit_cost_cents = 1.337, - flex_small_widgets_credit_unit = 1.337, - flex_moderator_cost_cents = 1.337, - flex_moderator_unit = 1.337, - flex_admin_cost_cents = 1.337, - flex_admin_unit = 1.337, - flex_domain_cost_cents = 1.337, - flex_domain_unit = 1.337, - flex_chat_gpt_cost_cents = 1.337, - flex_chat_gpt_unit = 1.337, - flex_minimum_cost_cents = 1.337, - flex_managed_tenant_cost_cents = 1.337, - flex_sso_admin_cost_cents = 1.337, - flex_sso_admin_unit = 1.337, - flex_sso_moderator_cost_cents = 1.337, - flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ), - reason = '', - code = '', - ) - """ - - def testGetTenantPackage200Response(self): - """Test GetTenantPackage200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_tenant_package_response.py b/client/test/test_get_tenant_package_response.py index 23a4be5..e01296d 100644 --- a/client/test/test_get_tenant_package_response.py +++ b/client/test/test_get_tenant_package_response.py @@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> GetTenantPackageResponse: name = '', tenant_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + template_id = '', monthly_cost_usd = 1.337, yearly_cost_usd = 1.337, monthly_stripe_plan_id = '', @@ -86,13 +87,19 @@ def make_instance(self, include_optional) -> GetTenantPackageResponse: flex_domain_unit = 1.337, flex_chat_gpt_cost_cents = 1.337, flex_chat_gpt_unit = 1.337, + flex_llm_cost_cents = 1.337, + flex_llm_unit = 1.337, flex_minimum_cost_cents = 1.337, flex_managed_tenant_cost_cents = 1.337, flex_sso_admin_cost_cents = 1.337, flex_sso_admin_unit = 1.337, flex_sso_moderator_cost_cents = 1.337, flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ) + is_sso_billing_monthly_active_users = True, + has_ai_agents = True, + max_ai_agents = 1.337, + ai_agent_daily_budget_cents = 1.337, + ai_agent_monthly_budget_cents = 1.337, ) ) else: return GetTenantPackageResponse( @@ -102,6 +109,7 @@ def make_instance(self, include_optional) -> GetTenantPackageResponse: name = '', tenant_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + template_id = '', monthly_cost_usd = 1.337, yearly_cost_usd = 1.337, monthly_stripe_plan_id = '', @@ -147,13 +155,19 @@ def make_instance(self, include_optional) -> GetTenantPackageResponse: flex_domain_unit = 1.337, flex_chat_gpt_cost_cents = 1.337, flex_chat_gpt_unit = 1.337, + flex_llm_cost_cents = 1.337, + flex_llm_unit = 1.337, flex_minimum_cost_cents = 1.337, flex_managed_tenant_cost_cents = 1.337, flex_sso_admin_cost_cents = 1.337, flex_sso_admin_unit = 1.337, flex_sso_moderator_cost_cents = 1.337, flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ), + is_sso_billing_monthly_active_users = True, + has_ai_agents = True, + max_ai_agents = 1.337, + ai_agent_daily_budget_cents = 1.337, + ai_agent_monthly_budget_cents = 1.337, ), ) """ diff --git a/client/test/test_get_tenant_packages200_response.py b/client/test/test_get_tenant_packages200_response.py deleted file mode 100644 index 7b6dd15..0000000 --- a/client/test/test_get_tenant_packages200_response.py +++ /dev/null @@ -1,279 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_tenant_packages200_response import GetTenantPackages200Response - -class TestGetTenantPackages200Response(unittest.TestCase): - """GetTenantPackages200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTenantPackages200Response: - """Test GetTenantPackages200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTenantPackages200Response` - """ - model = GetTenantPackages200Response() - if include_optional: - return GetTenantPackages200Response( - status = 'success', - tenant_packages = [ - client.models.tenant_package.TenantPackage( - _id = '', - name = '', - tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - monthly_cost_usd = 1.337, - yearly_cost_usd = 1.337, - monthly_stripe_plan_id = '', - yearly_stripe_plan_id = '', - max_monthly_page_loads = 1.337, - max_monthly_api_credits = 1.337, - max_monthly_small_widgets_credits = 1.337, - max_monthly_comments = 1.337, - max_concurrent_users = 1.337, - max_tenant_users = 1.337, - max_sso_users = 1.337, - max_moderators = 1.337, - max_domains = 1.337, - max_white_labeled_tenants = 1.337, - max_monthly_event_log_requests = 1.337, - max_custom_collection_size = 1.337, - has_white_labeling = True, - has_debranding = True, - has_llm_spam_detection = True, - for_who_text = '', - feature_taglines = [ - '' - ], - has_auditing = True, - has_flex_pricing = True, - enable_saml = True, - enable_canvas_lti = True, - flex_page_load_cost_cents = 1.337, - flex_page_load_unit = 1.337, - flex_comment_cost_cents = 1.337, - flex_comment_unit = 1.337, - flex_sso_user_cost_cents = 1.337, - flex_sso_user_unit = 1.337, - flex_api_credit_cost_cents = 1.337, - flex_api_credit_unit = 1.337, - flex_small_widgets_credit_cost_cents = 1.337, - flex_small_widgets_credit_unit = 1.337, - flex_moderator_cost_cents = 1.337, - flex_moderator_unit = 1.337, - flex_admin_cost_cents = 1.337, - flex_admin_unit = 1.337, - flex_domain_cost_cents = 1.337, - flex_domain_unit = 1.337, - flex_chat_gpt_cost_cents = 1.337, - flex_chat_gpt_unit = 1.337, - flex_minimum_cost_cents = 1.337, - flex_managed_tenant_cost_cents = 1.337, - flex_sso_admin_cost_cents = 1.337, - flex_sso_admin_unit = 1.337, - flex_sso_moderator_cost_cents = 1.337, - flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTenantPackages200Response( - status = 'success', - tenant_packages = [ - client.models.tenant_package.TenantPackage( - _id = '', - name = '', - tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - monthly_cost_usd = 1.337, - yearly_cost_usd = 1.337, - monthly_stripe_plan_id = '', - yearly_stripe_plan_id = '', - max_monthly_page_loads = 1.337, - max_monthly_api_credits = 1.337, - max_monthly_small_widgets_credits = 1.337, - max_monthly_comments = 1.337, - max_concurrent_users = 1.337, - max_tenant_users = 1.337, - max_sso_users = 1.337, - max_moderators = 1.337, - max_domains = 1.337, - max_white_labeled_tenants = 1.337, - max_monthly_event_log_requests = 1.337, - max_custom_collection_size = 1.337, - has_white_labeling = True, - has_debranding = True, - has_llm_spam_detection = True, - for_who_text = '', - feature_taglines = [ - '' - ], - has_auditing = True, - has_flex_pricing = True, - enable_saml = True, - enable_canvas_lti = True, - flex_page_load_cost_cents = 1.337, - flex_page_load_unit = 1.337, - flex_comment_cost_cents = 1.337, - flex_comment_unit = 1.337, - flex_sso_user_cost_cents = 1.337, - flex_sso_user_unit = 1.337, - flex_api_credit_cost_cents = 1.337, - flex_api_credit_unit = 1.337, - flex_small_widgets_credit_cost_cents = 1.337, - flex_small_widgets_credit_unit = 1.337, - flex_moderator_cost_cents = 1.337, - flex_moderator_unit = 1.337, - flex_admin_cost_cents = 1.337, - flex_admin_unit = 1.337, - flex_domain_cost_cents = 1.337, - flex_domain_unit = 1.337, - flex_chat_gpt_cost_cents = 1.337, - flex_chat_gpt_unit = 1.337, - flex_minimum_cost_cents = 1.337, - flex_managed_tenant_cost_cents = 1.337, - flex_sso_admin_cost_cents = 1.337, - flex_sso_admin_unit = 1.337, - flex_sso_moderator_cost_cents = 1.337, - flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ) - ], - reason = '', - code = '', - ) - """ - - def testGetTenantPackages200Response(self): - """Test GetTenantPackages200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_tenant_packages_response.py b/client/test/test_get_tenant_packages_response.py index a754965..b180ac7 100644 --- a/client/test/test_get_tenant_packages_response.py +++ b/client/test/test_get_tenant_packages_response.py @@ -42,6 +42,7 @@ def make_instance(self, include_optional) -> GetTenantPackagesResponse: name = '', tenant_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + template_id = '', monthly_cost_usd = 1.337, yearly_cost_usd = 1.337, monthly_stripe_plan_id = '', @@ -87,13 +88,19 @@ def make_instance(self, include_optional) -> GetTenantPackagesResponse: flex_domain_unit = 1.337, flex_chat_gpt_cost_cents = 1.337, flex_chat_gpt_unit = 1.337, + flex_llm_cost_cents = 1.337, + flex_llm_unit = 1.337, flex_minimum_cost_cents = 1.337, flex_managed_tenant_cost_cents = 1.337, flex_sso_admin_cost_cents = 1.337, flex_sso_admin_unit = 1.337, flex_sso_moderator_cost_cents = 1.337, flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ) + is_sso_billing_monthly_active_users = True, + has_ai_agents = True, + max_ai_agents = 1.337, + ai_agent_daily_budget_cents = 1.337, + ai_agent_monthly_budget_cents = 1.337, ) ] ) else: @@ -105,6 +112,7 @@ def make_instance(self, include_optional) -> GetTenantPackagesResponse: name = '', tenant_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + template_id = '', monthly_cost_usd = 1.337, yearly_cost_usd = 1.337, monthly_stripe_plan_id = '', @@ -150,13 +158,19 @@ def make_instance(self, include_optional) -> GetTenantPackagesResponse: flex_domain_unit = 1.337, flex_chat_gpt_cost_cents = 1.337, flex_chat_gpt_unit = 1.337, + flex_llm_cost_cents = 1.337, + flex_llm_unit = 1.337, flex_minimum_cost_cents = 1.337, flex_managed_tenant_cost_cents = 1.337, flex_sso_admin_cost_cents = 1.337, flex_sso_admin_unit = 1.337, flex_sso_moderator_cost_cents = 1.337, flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True, ) + is_sso_billing_monthly_active_users = True, + has_ai_agents = True, + max_ai_agents = 1.337, + ai_agent_daily_budget_cents = 1.337, + ai_agent_monthly_budget_cents = 1.337, ) ], ) """ diff --git a/client/test/test_get_tenant_user200_response.py b/client/test/test_get_tenant_user200_response.py deleted file mode 100644 index 8c07b21..0000000 --- a/client/test/test_get_tenant_user200_response.py +++ /dev/null @@ -1,289 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_tenant_user200_response import GetTenantUser200Response - -class TestGetTenantUser200Response(unittest.TestCase): - """GetTenantUser200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTenantUser200Response: - """Test GetTenantUser200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTenantUser200Response` - """ - model = GetTenantUser200Response() - if include_optional: - return GetTenantUser200Response( - status = 'success', - tenant_user = client.models.user.User( - _id = '', - tenant_id = '', - username = '', - display_name = '', - website_url = '', - email = '', - pending_email = '', - backup_email = '', - pending_backup_email = '', - sign_up_date = 56, - created_from_url_id = '', - created_from_tenant_id = '', - created_from_ip_hashed = '', - verified = True, - login_id = '', - login_id_date = 56, - login_count = 56, - opted_in_notifications = True, - opted_in_tenant_notifications = True, - hide_account_code = True, - avatar_src = '', - is_fast_comments_help_request_admin = True, - is_help_request_admin = True, - is_account_owner = True, - is_admin_admin = True, - is_billing_admin = True, - is_analytics_admin = True, - is_customization_admin = True, - is_manage_data_admin = True, - is_comment_moderator_admin = True, - is_api_admin = True, - is_site_admin = True, - moderator_ids = [ - '' - ], - is_impersonator = True, - is_coupon_manager = True, - locale = '', - digest_email_frequency = -1, - notification_frequency = 1.337, - admin_notification_frequency = 1.337, - last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ignored_add_to_my_site_messages = True, - last_login_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - display_label = '', - is_profile_activity_private = True, - is_profile_comments_private = True, - is_profile_dm_disabled = True, - profile_comment_approval_mode = 1.337, - karma = 1.337, - password_hash = '', - average_ticket_ack_time_ms = 1.337, - has_blocked_users = True, - bio = '', - header_background_src = '', - country_code = '', - country_flag = '', - social_links = [ - '' - ], - has_two_factor = True, - is_email_suppressed = True, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTenantUser200Response( - status = 'success', - tenant_user = client.models.user.User( - _id = '', - tenant_id = '', - username = '', - display_name = '', - website_url = '', - email = '', - pending_email = '', - backup_email = '', - pending_backup_email = '', - sign_up_date = 56, - created_from_url_id = '', - created_from_tenant_id = '', - created_from_ip_hashed = '', - verified = True, - login_id = '', - login_id_date = 56, - login_count = 56, - opted_in_notifications = True, - opted_in_tenant_notifications = True, - hide_account_code = True, - avatar_src = '', - is_fast_comments_help_request_admin = True, - is_help_request_admin = True, - is_account_owner = True, - is_admin_admin = True, - is_billing_admin = True, - is_analytics_admin = True, - is_customization_admin = True, - is_manage_data_admin = True, - is_comment_moderator_admin = True, - is_api_admin = True, - is_site_admin = True, - moderator_ids = [ - '' - ], - is_impersonator = True, - is_coupon_manager = True, - locale = '', - digest_email_frequency = -1, - notification_frequency = 1.337, - admin_notification_frequency = 1.337, - last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ignored_add_to_my_site_messages = True, - last_login_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - display_label = '', - is_profile_activity_private = True, - is_profile_comments_private = True, - is_profile_dm_disabled = True, - profile_comment_approval_mode = 1.337, - karma = 1.337, - password_hash = '', - average_ticket_ack_time_ms = 1.337, - has_blocked_users = True, - bio = '', - header_background_src = '', - country_code = '', - country_flag = '', - social_links = [ - '' - ], - has_two_factor = True, - is_email_suppressed = True, ), - reason = '', - code = '', - ) - """ - - def testGetTenantUser200Response(self): - """Test GetTenantUser200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_tenant_user_response.py b/client/test/test_get_tenant_user_response.py index 30b4d49..90b3c8c 100644 --- a/client/test/test_get_tenant_user_response.py +++ b/client/test/test_get_tenant_user_response.py @@ -78,6 +78,7 @@ def make_instance(self, include_optional) -> GetTenantUserResponse: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, @@ -146,6 +147,7 @@ def make_instance(self, include_optional) -> GetTenantUserResponse: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, diff --git a/client/test/test_get_tenant_users200_response.py b/client/test/test_get_tenant_users200_response.py deleted file mode 100644 index 157696c..0000000 --- a/client/test/test_get_tenant_users200_response.py +++ /dev/null @@ -1,293 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_tenant_users200_response import GetTenantUsers200Response - -class TestGetTenantUsers200Response(unittest.TestCase): - """GetTenantUsers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTenantUsers200Response: - """Test GetTenantUsers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTenantUsers200Response` - """ - model = GetTenantUsers200Response() - if include_optional: - return GetTenantUsers200Response( - status = 'success', - tenant_users = [ - client.models.user.User( - _id = '', - tenant_id = '', - username = '', - display_name = '', - website_url = '', - email = '', - pending_email = '', - backup_email = '', - pending_backup_email = '', - sign_up_date = 56, - created_from_url_id = '', - created_from_tenant_id = '', - created_from_ip_hashed = '', - verified = True, - login_id = '', - login_id_date = 56, - login_count = 56, - opted_in_notifications = True, - opted_in_tenant_notifications = True, - hide_account_code = True, - avatar_src = '', - is_fast_comments_help_request_admin = True, - is_help_request_admin = True, - is_account_owner = True, - is_admin_admin = True, - is_billing_admin = True, - is_analytics_admin = True, - is_customization_admin = True, - is_manage_data_admin = True, - is_comment_moderator_admin = True, - is_api_admin = True, - is_site_admin = True, - moderator_ids = [ - '' - ], - is_impersonator = True, - is_coupon_manager = True, - locale = '', - digest_email_frequency = -1, - notification_frequency = 1.337, - admin_notification_frequency = 1.337, - last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ignored_add_to_my_site_messages = True, - last_login_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - display_label = '', - is_profile_activity_private = True, - is_profile_comments_private = True, - is_profile_dm_disabled = True, - profile_comment_approval_mode = 1.337, - karma = 1.337, - password_hash = '', - average_ticket_ack_time_ms = 1.337, - has_blocked_users = True, - bio = '', - header_background_src = '', - country_code = '', - country_flag = '', - social_links = [ - '' - ], - has_two_factor = True, - is_email_suppressed = True, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTenantUsers200Response( - status = 'success', - tenant_users = [ - client.models.user.User( - _id = '', - tenant_id = '', - username = '', - display_name = '', - website_url = '', - email = '', - pending_email = '', - backup_email = '', - pending_backup_email = '', - sign_up_date = 56, - created_from_url_id = '', - created_from_tenant_id = '', - created_from_ip_hashed = '', - verified = True, - login_id = '', - login_id_date = 56, - login_count = 56, - opted_in_notifications = True, - opted_in_tenant_notifications = True, - hide_account_code = True, - avatar_src = '', - is_fast_comments_help_request_admin = True, - is_help_request_admin = True, - is_account_owner = True, - is_admin_admin = True, - is_billing_admin = True, - is_analytics_admin = True, - is_customization_admin = True, - is_manage_data_admin = True, - is_comment_moderator_admin = True, - is_api_admin = True, - is_site_admin = True, - moderator_ids = [ - '' - ], - is_impersonator = True, - is_coupon_manager = True, - locale = '', - digest_email_frequency = -1, - notification_frequency = 1.337, - admin_notification_frequency = 1.337, - last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ignored_add_to_my_site_messages = True, - last_login_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - display_label = '', - is_profile_activity_private = True, - is_profile_comments_private = True, - is_profile_dm_disabled = True, - profile_comment_approval_mode = 1.337, - karma = 1.337, - password_hash = '', - average_ticket_ack_time_ms = 1.337, - has_blocked_users = True, - bio = '', - header_background_src = '', - country_code = '', - country_flag = '', - social_links = [ - '' - ], - has_two_factor = True, - is_email_suppressed = True, ) - ], - reason = '', - code = '', - ) - """ - - def testGetTenantUsers200Response(self): - """Test GetTenantUsers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_tenant_users_response.py b/client/test/test_get_tenant_users_response.py index fca1f09..b6604f3 100644 --- a/client/test/test_get_tenant_users_response.py +++ b/client/test/test_get_tenant_users_response.py @@ -79,6 +79,7 @@ def make_instance(self, include_optional) -> GetTenantUsersResponse: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, @@ -149,6 +150,7 @@ def make_instance(self, include_optional) -> GetTenantUsersResponse: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, diff --git a/client/test/test_get_tenants200_response.py b/client/test/test_get_tenants200_response.py deleted file mode 100644 index f2506a1..0000000 --- a/client/test/test_get_tenants200_response.py +++ /dev/null @@ -1,281 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_tenants200_response import GetTenants200Response - -class TestGetTenants200Response(unittest.TestCase): - """GetTenants200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTenants200Response: - """Test GetTenants200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTenants200Response` - """ - model = GetTenants200Response() - if include_optional: - return GetTenants200Response( - status = 'success', - tenants = [ - client.models.api_tenant.APITenant( - id = '', - name = '', - email = '', - sign_up_date = 1.337, - package_id = '', - payment_frequency = 1.337, - billing_info_valid = True, - billing_handled_externally = True, - created_by = '', - is_setup = True, - domain_configuration = [ - client.models.api_domain_configuration.APIDomainConfiguration( - id = '', - domain = '', - email_from_name = '', - email_from_email = '', - email_headers = { - 'key' : '' - }, - wp_sync_token = '', - wp_synced = True, - wp_url = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_added_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - site_type = 0, - logo_src = '', - logo_src100px = '', - footer_unsubscribe_url = '', - disable_unsubscribe_links = True, ) - ], - billing_info = client.models.billing_info.BillingInfo( - name = '', - address = '', - city = '', - state = '', - zip = '', - country = '', - currency = '', - email = '', ), - stripe_customer_id = '', - stripe_subscription_id = '', - stripe_plan_id = '', - enable_profanity_filter = True, - enable_spam_filter = True, - last_billing_issue_reminder_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - remove_unverified_comments = True, - unverified_comments_tt_lms = 1.337, - comments_require_approval = True, - auto_approve_comment_on_verification = True, - send_profane_to_spam = True, - has_flex_pricing = True, - has_auditing = True, - flex_last_billed_amount = 1.337, - de_anon_ip_addr = 1.337, - meta = { - 'key' : '' - }, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTenants200Response( - status = 'success', - tenants = [ - client.models.api_tenant.APITenant( - id = '', - name = '', - email = '', - sign_up_date = 1.337, - package_id = '', - payment_frequency = 1.337, - billing_info_valid = True, - billing_handled_externally = True, - created_by = '', - is_setup = True, - domain_configuration = [ - client.models.api_domain_configuration.APIDomainConfiguration( - id = '', - domain = '', - email_from_name = '', - email_from_email = '', - email_headers = { - 'key' : '' - }, - wp_sync_token = '', - wp_synced = True, - wp_url = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_added_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - site_type = 0, - logo_src = '', - logo_src100px = '', - footer_unsubscribe_url = '', - disable_unsubscribe_links = True, ) - ], - billing_info = client.models.billing_info.BillingInfo( - name = '', - address = '', - city = '', - state = '', - zip = '', - country = '', - currency = '', - email = '', ), - stripe_customer_id = '', - stripe_subscription_id = '', - stripe_plan_id = '', - enable_profanity_filter = True, - enable_spam_filter = True, - last_billing_issue_reminder_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - remove_unverified_comments = True, - unverified_comments_tt_lms = 1.337, - comments_require_approval = True, - auto_approve_comment_on_verification = True, - send_profane_to_spam = True, - has_flex_pricing = True, - has_auditing = True, - flex_last_billed_amount = 1.337, - de_anon_ip_addr = 1.337, - meta = { - 'key' : '' - }, ) - ], - reason = '', - code = '', - ) - """ - - def testGetTenants200Response(self): - """Test GetTenants200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_ticket200_response.py b/client/test/test_get_ticket200_response.py deleted file mode 100644 index a11bf49..0000000 --- a/client/test/test_get_ticket200_response.py +++ /dev/null @@ -1,223 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_ticket200_response import GetTicket200Response - -class TestGetTicket200Response(unittest.TestCase): - """GetTicket200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTicket200Response: - """Test GetTicket200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTicket200Response` - """ - model = GetTicket200Response() - if include_optional: - return GetTicket200Response( - status = 'success', - ticket = client.models.api_ticket_detail.APITicketDetail( - _id = '', - url_id = '', - user_id = '', - managed_by_tenant_id = '', - assigned_user_ids = [ - '' - ], - subject = '', - created_at = '', - state = 56, - file_count = 56, - files = [ - client.models.api_ticket_file.APITicketFile( - id = '', - s3_key = '', - original_file_name = '', - size_bytes = 56, - content_type = '', - uploaded_by_user_id = '', - uploaded_at = '', - url = '', - expires_at = '', - expired = True, ) - ], - reopened_at = '', - resolved_at = '', - ack_at = '', ), - available_states = [ - 1.337 - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTicket200Response( - status = 'success', - ticket = client.models.api_ticket_detail.APITicketDetail( - _id = '', - url_id = '', - user_id = '', - managed_by_tenant_id = '', - assigned_user_ids = [ - '' - ], - subject = '', - created_at = '', - state = 56, - file_count = 56, - files = [ - client.models.api_ticket_file.APITicketFile( - id = '', - s3_key = '', - original_file_name = '', - size_bytes = 56, - content_type = '', - uploaded_by_user_id = '', - uploaded_at = '', - url = '', - expires_at = '', - expired = True, ) - ], - reopened_at = '', - resolved_at = '', - ack_at = '', ), - available_states = [ - 1.337 - ], - reason = '', - code = '', - ) - """ - - def testGetTicket200Response(self): - """Test GetTicket200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_tickets200_response.py b/client/test/test_get_tickets200_response.py deleted file mode 100644 index f12f45c..0000000 --- a/client/test/test_get_tickets200_response.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_tickets200_response import GetTickets200Response - -class TestGetTickets200Response(unittest.TestCase): - """GetTickets200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetTickets200Response: - """Test GetTickets200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetTickets200Response` - """ - model = GetTickets200Response() - if include_optional: - return GetTickets200Response( - status = 'success', - tickets = [ - client.models.api_ticket.APITicket( - _id = '', - url_id = '', - user_id = '', - managed_by_tenant_id = '', - assigned_user_ids = [ - '' - ], - subject = '', - created_at = '', - state = 56, - file_count = 56, ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetTickets200Response( - status = 'success', - tickets = [ - client.models.api_ticket.APITicket( - _id = '', - url_id = '', - user_id = '', - managed_by_tenant_id = '', - assigned_user_ids = [ - '' - ], - subject = '', - created_at = '', - state = 56, - file_count = 56, ) - ], - reason = '', - code = '', - ) - """ - - def testGetTickets200Response(self): - """Test GetTickets200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_translations_response.py b/client/test/test_get_translations_response.py new file mode 100644 index 0000000..943468a --- /dev/null +++ b/client/test/test_get_translations_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_translations_response import GetTranslationsResponse + +class TestGetTranslationsResponse(unittest.TestCase): + """GetTranslationsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetTranslationsResponse: + """Test GetTranslationsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetTranslationsResponse` + """ + model = GetTranslationsResponse() + if include_optional: + return GetTranslationsResponse( + translations = { + 'key' : '' + }, + status = 'success' + ) + else: + return GetTranslationsResponse( + translations = { + 'key' : '' + }, + status = 'success', + ) + """ + + def testGetTranslationsResponse(self): + """Test GetTranslationsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_user200_response.py b/client/test/test_get_user200_response.py deleted file mode 100644 index 0aee07f..0000000 --- a/client/test/test_get_user200_response.py +++ /dev/null @@ -1,289 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user200_response import GetUser200Response - -class TestGetUser200Response(unittest.TestCase): - """GetUser200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUser200Response: - """Test GetUser200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUser200Response` - """ - model = GetUser200Response() - if include_optional: - return GetUser200Response( - status = 'success', - user = client.models.user.User( - _id = '', - tenant_id = '', - username = '', - display_name = '', - website_url = '', - email = '', - pending_email = '', - backup_email = '', - pending_backup_email = '', - sign_up_date = 56, - created_from_url_id = '', - created_from_tenant_id = '', - created_from_ip_hashed = '', - verified = True, - login_id = '', - login_id_date = 56, - login_count = 56, - opted_in_notifications = True, - opted_in_tenant_notifications = True, - hide_account_code = True, - avatar_src = '', - is_fast_comments_help_request_admin = True, - is_help_request_admin = True, - is_account_owner = True, - is_admin_admin = True, - is_billing_admin = True, - is_analytics_admin = True, - is_customization_admin = True, - is_manage_data_admin = True, - is_comment_moderator_admin = True, - is_api_admin = True, - is_site_admin = True, - moderator_ids = [ - '' - ], - is_impersonator = True, - is_coupon_manager = True, - locale = '', - digest_email_frequency = -1, - notification_frequency = 1.337, - admin_notification_frequency = 1.337, - last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ignored_add_to_my_site_messages = True, - last_login_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - display_label = '', - is_profile_activity_private = True, - is_profile_comments_private = True, - is_profile_dm_disabled = True, - profile_comment_approval_mode = 1.337, - karma = 1.337, - password_hash = '', - average_ticket_ack_time_ms = 1.337, - has_blocked_users = True, - bio = '', - header_background_src = '', - country_code = '', - country_flag = '', - social_links = [ - '' - ], - has_two_factor = True, - is_email_suppressed = True, ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUser200Response( - status = 'success', - user = client.models.user.User( - _id = '', - tenant_id = '', - username = '', - display_name = '', - website_url = '', - email = '', - pending_email = '', - backup_email = '', - pending_backup_email = '', - sign_up_date = 56, - created_from_url_id = '', - created_from_tenant_id = '', - created_from_ip_hashed = '', - verified = True, - login_id = '', - login_id_date = 56, - login_count = 56, - opted_in_notifications = True, - opted_in_tenant_notifications = True, - hide_account_code = True, - avatar_src = '', - is_fast_comments_help_request_admin = True, - is_help_request_admin = True, - is_account_owner = True, - is_admin_admin = True, - is_billing_admin = True, - is_analytics_admin = True, - is_customization_admin = True, - is_manage_data_admin = True, - is_comment_moderator_admin = True, - is_api_admin = True, - is_site_admin = True, - moderator_ids = [ - '' - ], - is_impersonator = True, - is_coupon_manager = True, - locale = '', - digest_email_frequency = -1, - notification_frequency = 1.337, - admin_notification_frequency = 1.337, - last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - ignored_add_to_my_site_messages = True, - last_login_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - display_label = '', - is_profile_activity_private = True, - is_profile_comments_private = True, - is_profile_dm_disabled = True, - profile_comment_approval_mode = 1.337, - karma = 1.337, - password_hash = '', - average_ticket_ack_time_ms = 1.337, - has_blocked_users = True, - bio = '', - header_background_src = '', - country_code = '', - country_flag = '', - social_links = [ - '' - ], - has_two_factor = True, - is_email_suppressed = True, ), - reason = '', - code = '', - ) - """ - - def testGetUser200Response(self): - """Test GetUser200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_badge200_response.py b/client/test/test_get_user_badge200_response.py deleted file mode 100644 index 130741e..0000000 --- a/client/test/test_get_user_badge200_response.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user_badge200_response import GetUserBadge200Response - -class TestGetUserBadge200Response(unittest.TestCase): - """GetUserBadge200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserBadge200Response: - """Test GetUserBadge200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserBadge200Response` - """ - model = GetUserBadge200Response() - if include_optional: - return GetUserBadge200Response( - status = 'success', - user_badge = client.models.user_badge.UserBadge( - _id = '', - user_id = '', - badge_id = '', - from_tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = 56, - threshold = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', - veteran_user_threshold_millis = 56, - displayed_on_comments = True, - received_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - order = 56, - url_id = '', ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUserBadge200Response( - status = 'success', - user_badge = client.models.user_badge.UserBadge( - _id = '', - user_id = '', - badge_id = '', - from_tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = 56, - threshold = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', - veteran_user_threshold_millis = 56, - displayed_on_comments = True, - received_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - order = 56, - url_id = '', ), - reason = '', - code = '', - ) - """ - - def testGetUserBadge200Response(self): - """Test GetUserBadge200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_badge_progress_by_id200_response.py b/client/test/test_get_user_badge_progress_by_id200_response.py deleted file mode 100644 index d4bca07..0000000 --- a/client/test/test_get_user_badge_progress_by_id200_response.py +++ /dev/null @@ -1,185 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user_badge_progress_by_id200_response import GetUserBadgeProgressById200Response - -class TestGetUserBadgeProgressById200Response(unittest.TestCase): - """GetUserBadgeProgressById200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserBadgeProgressById200Response: - """Test GetUserBadgeProgressById200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserBadgeProgressById200Response` - """ - model = GetUserBadgeProgressById200Response() - if include_optional: - return GetUserBadgeProgressById200Response( - status = 'success', - user_badge_progress = client.models.user_badge_progress.UserBadgeProgress( - _id = '', - tenant_id = '', - user_id = '', - first_comment_id = '', - first_comment_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_trust_factor = 1.337, - manual_trust_factor = 1.337, - progress = { - 'key' : 1.337 - }, - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUserBadgeProgressById200Response( - status = 'success', - user_badge_progress = client.models.user_badge_progress.UserBadgeProgress( - _id = '', - tenant_id = '', - user_id = '', - first_comment_id = '', - first_comment_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_trust_factor = 1.337, - manual_trust_factor = 1.337, - progress = { - 'key' : 1.337 - }, - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - reason = '', - code = '', - ) - """ - - def testGetUserBadgeProgressById200Response(self): - """Test GetUserBadgeProgressById200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_badge_progress_list200_response.py b/client/test/test_get_user_badge_progress_list200_response.py deleted file mode 100644 index a849794..0000000 --- a/client/test/test_get_user_badge_progress_list200_response.py +++ /dev/null @@ -1,189 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user_badge_progress_list200_response import GetUserBadgeProgressList200Response - -class TestGetUserBadgeProgressList200Response(unittest.TestCase): - """GetUserBadgeProgressList200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserBadgeProgressList200Response: - """Test GetUserBadgeProgressList200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserBadgeProgressList200Response` - """ - model = GetUserBadgeProgressList200Response() - if include_optional: - return GetUserBadgeProgressList200Response( - status = 'success', - user_badge_progresses = [ - client.models.user_badge_progress.UserBadgeProgress( - _id = '', - tenant_id = '', - user_id = '', - first_comment_id = '', - first_comment_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_trust_factor = 1.337, - manual_trust_factor = 1.337, - progress = { - 'key' : 1.337 - }, - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUserBadgeProgressList200Response( - status = 'success', - user_badge_progresses = [ - client.models.user_badge_progress.UserBadgeProgress( - _id = '', - tenant_id = '', - user_id = '', - first_comment_id = '', - first_comment_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - auto_trust_factor = 1.337, - manual_trust_factor = 1.337, - progress = { - 'key' : 1.337 - }, - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reason = '', - code = '', - ) - """ - - def testGetUserBadgeProgressList200Response(self): - """Test GetUserBadgeProgressList200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_badges200_response.py b/client/test/test_get_user_badges200_response.py deleted file mode 100644 index ee3e99c..0000000 --- a/client/test/test_get_user_badges200_response.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user_badges200_response import GetUserBadges200Response - -class TestGetUserBadges200Response(unittest.TestCase): - """GetUserBadges200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserBadges200Response: - """Test GetUserBadges200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserBadges200Response` - """ - model = GetUserBadges200Response() - if include_optional: - return GetUserBadges200Response( - status = 'success', - user_badges = [ - client.models.user_badge.UserBadge( - _id = '', - user_id = '', - badge_id = '', - from_tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = 56, - threshold = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', - veteran_user_threshold_millis = 56, - displayed_on_comments = True, - received_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - order = 56, - url_id = '', ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUserBadges200Response( - status = 'success', - user_badges = [ - client.models.user_badge.UserBadge( - _id = '', - user_id = '', - badge_id = '', - from_tenant_id = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - type = 56, - threshold = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', - veteran_user_threshold_millis = 56, - displayed_on_comments = True, - received_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - order = 56, - url_id = '', ) - ], - reason = '', - code = '', - ) - """ - - def testGetUserBadges200Response(self): - """Test GetUserBadges200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_internal_profile_response.py b/client/test/test_get_user_internal_profile_response.py new file mode 100644 index 0000000..effbce8 --- /dev/null +++ b/client/test/test_get_user_internal_profile_response.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_user_internal_profile_response import GetUserInternalProfileResponse + +class TestGetUserInternalProfileResponse(unittest.TestCase): + """GetUserInternalProfileResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUserInternalProfileResponse: + """Test GetUserInternalProfileResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUserInternalProfileResponse` + """ + model = GetUserInternalProfileResponse() + if include_optional: + return GetUserInternalProfileResponse( + profile = client.models.get_user_internal_profile_response_profile.GetUserInternalProfileResponse_profile( + commenter_name = '', + first_comment_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ip_hash = '', + country_flag = '', + country_code = '', + website_url = '', + bio = '', + karma = 1.337, + locale = '', + verified = True, + avatar_src = '', + display_name = '', + username = '', + commenter_email = '', + email = '', + anon_user_id = '', + user_id = '', ), + status = 'success' + ) + else: + return GetUserInternalProfileResponse( + profile = client.models.get_user_internal_profile_response_profile.GetUserInternalProfileResponse_profile( + commenter_name = '', + first_comment_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ip_hash = '', + country_flag = '', + country_code = '', + website_url = '', + bio = '', + karma = 1.337, + locale = '', + verified = True, + avatar_src = '', + display_name = '', + username = '', + commenter_email = '', + email = '', + anon_user_id = '', + user_id = '', ), + status = 'success', + ) + """ + + def testGetUserInternalProfileResponse(self): + """Test GetUserInternalProfileResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_user_internal_profile_response_profile.py b/client/test/test_get_user_internal_profile_response_profile.py new file mode 100644 index 0000000..55ae315 --- /dev/null +++ b/client/test/test_get_user_internal_profile_response_profile.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_user_internal_profile_response_profile import GetUserInternalProfileResponseProfile + +class TestGetUserInternalProfileResponseProfile(unittest.TestCase): + """GetUserInternalProfileResponseProfile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUserInternalProfileResponseProfile: + """Test GetUserInternalProfileResponseProfile + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUserInternalProfileResponseProfile` + """ + model = GetUserInternalProfileResponseProfile() + if include_optional: + return GetUserInternalProfileResponseProfile( + commenter_name = '', + first_comment_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + ip_hash = '', + country_flag = '', + country_code = '', + website_url = '', + bio = '', + karma = 1.337, + locale = '', + verified = True, + avatar_src = '', + display_name = '', + username = '', + commenter_email = '', + email = '', + anon_user_id = '', + user_id = '' + ) + else: + return GetUserInternalProfileResponseProfile( + ) + """ + + def testGetUserInternalProfileResponseProfile(self): + """Test GetUserInternalProfileResponseProfile""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_user_manual_badges_response.py b/client/test/test_get_user_manual_badges_response.py new file mode 100644 index 0000000..0543b5f --- /dev/null +++ b/client/test/test_get_user_manual_badges_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_user_manual_badges_response import GetUserManualBadgesResponse + +class TestGetUserManualBadgesResponse(unittest.TestCase): + """GetUserManualBadgesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUserManualBadgesResponse: + """Test GetUserManualBadgesResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUserManualBadgesResponse` + """ + model = GetUserManualBadgesResponse() + if include_optional: + return GetUserManualBadgesResponse( + badges = [ + client.models.user_badge.UserBadge( + _id = '', + user_id = '', + badge_id = '', + from_tenant_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + type = 56, + threshold = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', + veteran_user_threshold_millis = 56, + displayed_on_comments = True, + received_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + order = 56, + url_id = '', ) + ], + status = 'success' + ) + else: + return GetUserManualBadgesResponse( + badges = [ + client.models.user_badge.UserBadge( + _id = '', + user_id = '', + badge_id = '', + from_tenant_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + type = 56, + threshold = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', + veteran_user_threshold_millis = 56, + displayed_on_comments = True, + received_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + order = 56, + url_id = '', ) + ], + status = 'success', + ) + """ + + def testGetUserManualBadgesResponse(self): + """Test GetUserManualBadgesResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_user_notification_count200_response.py b/client/test/test_get_user_notification_count200_response.py deleted file mode 100644 index d6b14d1..0000000 --- a/client/test/test_get_user_notification_count200_response.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user_notification_count200_response import GetUserNotificationCount200Response - -class TestGetUserNotificationCount200Response(unittest.TestCase): - """GetUserNotificationCount200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserNotificationCount200Response: - """Test GetUserNotificationCount200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserNotificationCount200Response` - """ - model = GetUserNotificationCount200Response() - if include_optional: - return GetUserNotificationCount200Response( - status = 'success', - count = 56, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUserNotificationCount200Response( - status = 'success', - count = 56, - reason = '', - code = '', - ) - """ - - def testGetUserNotificationCount200Response(self): - """Test GetUserNotificationCount200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_notifications200_response.py b/client/test/test_get_user_notifications200_response.py deleted file mode 100644 index 659a82f..0000000 --- a/client/test/test_get_user_notifications200_response.py +++ /dev/null @@ -1,228 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user_notifications200_response import GetUserNotifications200Response - -class TestGetUserNotifications200Response(unittest.TestCase): - """GetUserNotifications200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserNotifications200Response: - """Test GetUserNotifications200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserNotifications200Response` - """ - model = GetUserNotifications200Response() - if include_optional: - return GetUserNotifications200Response( - translations = { - 'key' : '' - }, - is_subscribed = True, - has_more = True, - notifications = [ - client.models.renderable_user_notification.RenderableUserNotification( - conversation_id = '', - context_html = '', - from_user_names = [ - '' - ], - from_user_ids = [ - '' - ], - related_ids = [ - '' - ], - count = 56, - opted_out = True, - from_user_avatar_src = '', - from_user_id = '', - from_user_name = '', - from_comment_id = '', - type = 0, - created_at = '', - sent = '', - viewed = '', - related_object_id = '', - related_object_type = 0, - page_title = '', - url = '', - url_id = '', - _id = '', ) - ], - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUserNotifications200Response( - is_subscribed = True, - has_more = True, - notifications = [ - client.models.renderable_user_notification.RenderableUserNotification( - conversation_id = '', - context_html = '', - from_user_names = [ - '' - ], - from_user_ids = [ - '' - ], - related_ids = [ - '' - ], - count = 56, - opted_out = True, - from_user_avatar_src = '', - from_user_id = '', - from_user_name = '', - from_comment_id = '', - type = 0, - created_at = '', - sent = '', - viewed = '', - related_object_id = '', - related_object_type = 0, - page_title = '', - url = '', - url_id = '', - _id = '', ) - ], - status = 'success', - reason = '', - code = '', - ) - """ - - def testGetUserNotifications200Response(self): - """Test GetUserNotifications200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_presence_statuses200_response.py b/client/test/test_get_user_presence_statuses200_response.py deleted file mode 100644 index 4cacfaf..0000000 --- a/client/test/test_get_user_presence_statuses200_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user_presence_statuses200_response import GetUserPresenceStatuses200Response - -class TestGetUserPresenceStatuses200Response(unittest.TestCase): - """GetUserPresenceStatuses200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserPresenceStatuses200Response: - """Test GetUserPresenceStatuses200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserPresenceStatuses200Response` - """ - model = GetUserPresenceStatuses200Response() - if include_optional: - return GetUserPresenceStatuses200Response( - status = 'success', - user_ids_online = { - 'key' : True - }, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUserPresenceStatuses200Response( - status = 'success', - user_ids_online = { - 'key' : True - }, - reason = '', - code = '', - ) - """ - - def testGetUserPresenceStatuses200Response(self): - """Test GetUserPresenceStatuses200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_reacts_public200_response.py b/client/test/test_get_user_reacts_public200_response.py deleted file mode 100644 index d9ede71..0000000 --- a/client/test/test_get_user_reacts_public200_response.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_user_reacts_public200_response import GetUserReactsPublic200Response - -class TestGetUserReactsPublic200Response(unittest.TestCase): - """GetUserReactsPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetUserReactsPublic200Response: - """Test GetUserReactsPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetUserReactsPublic200Response` - """ - model = GetUserReactsPublic200Response() - if include_optional: - return GetUserReactsPublic200Response( - status = 'success', - reacts = { - 'key' : { - 'key' : True - } - }, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetUserReactsPublic200Response( - status = 'success', - reacts = { - 'key' : { - 'key' : True - } - }, - reason = '', - code = '', - ) - """ - - def testGetUserReactsPublic200Response(self): - """Test GetUserReactsPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_user_response.py b/client/test/test_get_user_response.py index e3faab5..0a385c6 100644 --- a/client/test/test_get_user_response.py +++ b/client/test/test_get_user_response.py @@ -78,6 +78,7 @@ def make_instance(self, include_optional) -> GetUserResponse: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, @@ -146,6 +147,7 @@ def make_instance(self, include_optional) -> GetUserResponse: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, diff --git a/client/test/test_get_user_trust_factor_response.py b/client/test/test_get_user_trust_factor_response.py new file mode 100644 index 0000000..ee0b66f --- /dev/null +++ b/client/test/test_get_user_trust_factor_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_user_trust_factor_response import GetUserTrustFactorResponse + +class TestGetUserTrustFactorResponse(unittest.TestCase): + """GetUserTrustFactorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetUserTrustFactorResponse: + """Test GetUserTrustFactorResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetUserTrustFactorResponse` + """ + model = GetUserTrustFactorResponse() + if include_optional: + return GetUserTrustFactorResponse( + manual_trust_factor = 1.337, + auto_trust_factor = 1.337, + status = 'success' + ) + else: + return GetUserTrustFactorResponse( + status = 'success', + ) + """ + + def testGetUserTrustFactorResponse(self): + """Test GetUserTrustFactorResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_v1_page_likes.py b/client/test/test_get_v1_page_likes.py new file mode 100644 index 0000000..0690916 --- /dev/null +++ b/client/test/test_get_v1_page_likes.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_v1_page_likes import GetV1PageLikes + +class TestGetV1PageLikes(unittest.TestCase): + """GetV1PageLikes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetV1PageLikes: + """Test GetV1PageLikes + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetV1PageLikes` + """ + model = GetV1PageLikes() + if include_optional: + return GetV1PageLikes( + url_id_ws = '', + did_like = True, + comment_count = 56, + like_count = 56, + status = 'success' + ) + else: + return GetV1PageLikes( + url_id_ws = '', + did_like = True, + comment_count = 56, + like_count = 56, + status = 'success', + ) + """ + + def testGetV1PageLikes(self): + """Test GetV1PageLikes""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_v2_page_react_users_response.py b/client/test/test_get_v2_page_react_users_response.py new file mode 100644 index 0000000..8b0e3f5 --- /dev/null +++ b/client/test/test_get_v2_page_react_users_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_v2_page_react_users_response import GetV2PageReactUsersResponse + +class TestGetV2PageReactUsersResponse(unittest.TestCase): + """GetV2PageReactUsersResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetV2PageReactUsersResponse: + """Test GetV2PageReactUsersResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetV2PageReactUsersResponse` + """ + model = GetV2PageReactUsersResponse() + if include_optional: + return GetV2PageReactUsersResponse( + user_names = [ + '' + ], + status = 'success' + ) + else: + return GetV2PageReactUsersResponse( + user_names = [ + '' + ], + status = 'success', + ) + """ + + def testGetV2PageReactUsersResponse(self): + """Test GetV2PageReactUsersResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_v2_page_reacts.py b/client/test/test_get_v2_page_reacts.py new file mode 100644 index 0000000..60156e9 --- /dev/null +++ b/client/test/test_get_v2_page_reacts.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.get_v2_page_reacts import GetV2PageReacts + +class TestGetV2PageReacts(unittest.TestCase): + """GetV2PageReacts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetV2PageReacts: + """Test GetV2PageReacts + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GetV2PageReacts` + """ + model = GetV2PageReacts() + if include_optional: + return GetV2PageReacts( + reacted_ids = [ + '' + ], + counts = { + 'key' : 1.337 + }, + status = 'success' + ) + else: + return GetV2PageReacts( + status = 'success', + ) + """ + + def testGetV2PageReacts(self): + """Test GetV2PageReacts""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_get_votes200_response.py b/client/test/test_get_votes200_response.py deleted file mode 100644 index 28d1181..0000000 --- a/client/test/test_get_votes200_response.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_votes200_response import GetVotes200Response - -class TestGetVotes200Response(unittest.TestCase): - """GetVotes200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetVotes200Response: - """Test GetVotes200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetVotes200Response` - """ - model = GetVotes200Response() - if include_optional: - return GetVotes200Response( - status = 'success', - applied_authorized_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - applied_anonymous_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - pending_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetVotes200Response( - status = 'success', - applied_authorized_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - applied_anonymous_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - pending_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reason = '', - code = '', - ) - """ - - def testGetVotes200Response(self): - """Test GetVotes200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_get_votes_for_user200_response.py b/client/test/test_get_votes_for_user200_response.py deleted file mode 100644 index cd800c1..0000000 --- a/client/test/test_get_votes_for_user200_response.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.get_votes_for_user200_response import GetVotesForUser200Response - -class TestGetVotesForUser200Response(unittest.TestCase): - """GetVotesForUser200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> GetVotesForUser200Response: - """Test GetVotesForUser200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `GetVotesForUser200Response` - """ - model = GetVotesForUser200Response() - if include_optional: - return GetVotesForUser200Response( - status = 'success', - applied_authorized_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - applied_anonymous_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - pending_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return GetVotesForUser200Response( - status = 'success', - applied_authorized_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - applied_anonymous_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - pending_votes = [ - client.models.public_vote.PublicVote( - id = '', - url_id = '', - comment_id = '', - user_id = '', - direction = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) - ], - reason = '', - code = '', - ) - """ - - def testGetVotesForUser200Response(self): - """Test GetVotesForUser200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_gif_get_large_response.py b/client/test/test_gif_get_large_response.py new file mode 100644 index 0000000..a49f58a --- /dev/null +++ b/client/test/test_gif_get_large_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.gif_get_large_response import GifGetLargeResponse + +class TestGifGetLargeResponse(unittest.TestCase): + """GifGetLargeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GifGetLargeResponse: + """Test GifGetLargeResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GifGetLargeResponse` + """ + model = GifGetLargeResponse() + if include_optional: + return GifGetLargeResponse( + src = '', + status = 'success' + ) + else: + return GifGetLargeResponse( + src = '', + status = 'success', + ) + """ + + def testGifGetLargeResponse(self): + """Test GifGetLargeResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_gif_search_internal_error.py b/client/test/test_gif_search_internal_error.py new file mode 100644 index 0000000..f931c11 --- /dev/null +++ b/client/test/test_gif_search_internal_error.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.gif_search_internal_error import GifSearchInternalError + +class TestGifSearchInternalError(unittest.TestCase): + """GifSearchInternalError unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GifSearchInternalError: + """Test GifSearchInternalError + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GifSearchInternalError` + """ + model = GifSearchInternalError() + if include_optional: + return GifSearchInternalError( + code = '', + status = 'success' + ) + else: + return GifSearchInternalError( + code = '', + status = 'success', + ) + """ + + def testGifSearchInternalError(self): + """Test GifSearchInternalError""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_gif_search_response.py b/client/test/test_gif_search_response.py new file mode 100644 index 0000000..17e0249 --- /dev/null +++ b/client/test/test_gif_search_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.gif_search_response import GifSearchResponse + +class TestGifSearchResponse(unittest.TestCase): + """GifSearchResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GifSearchResponse: + """Test GifSearchResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GifSearchResponse` + """ + model = GifSearchResponse() + if include_optional: + return GifSearchResponse( + images = [ + [ + null + ] + ], + status = 'success' + ) + else: + return GifSearchResponse( + images = [ + [ + null + ] + ], + status = 'success', + ) + """ + + def testGifSearchResponse(self): + """Test GifSearchResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_gif_search_response_images_inner_inner.py b/client/test/test_gif_search_response_images_inner_inner.py new file mode 100644 index 0000000..395e312 --- /dev/null +++ b/client/test/test_gif_search_response_images_inner_inner.py @@ -0,0 +1,50 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.gif_search_response_images_inner_inner import GifSearchResponseImagesInnerInner + +class TestGifSearchResponseImagesInnerInner(unittest.TestCase): + """GifSearchResponseImagesInnerInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GifSearchResponseImagesInnerInner: + """Test GifSearchResponseImagesInnerInner + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `GifSearchResponseImagesInnerInner` + """ + model = GifSearchResponseImagesInnerInner() + if include_optional: + return GifSearchResponseImagesInnerInner( + ) + else: + return GifSearchResponseImagesInnerInner( + ) + """ + + def testGifSearchResponseImagesInnerInner(self): + """Test GifSearchResponseImagesInnerInner""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_header_account_notification.py b/client/test/test_header_account_notification.py index cffd4f5..bf448cb 100644 --- a/client/test/test_header_account_notification.py +++ b/client/test/test_header_account_notification.py @@ -47,7 +47,8 @@ def make_instance(self, include_optional) -> HeaderAccountNotification: severity = '', link_url = '', link_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f') + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + type = '' ) else: return HeaderAccountNotification( diff --git a/client/test/test_header_state.py b/client/test/test_header_state.py index 2c0010f..e284e4b 100644 --- a/client/test/test_header_state.py +++ b/client/test/test_header_state.py @@ -54,7 +54,8 @@ def make_instance(self, include_optional) -> HeaderState: severity = '', link_url = '', link_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + type = '', ) ] ) else: @@ -78,7 +79,8 @@ def make_instance(self, include_optional) -> HeaderState: severity = '', link_url = '', link_text = '', - created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + type = '', ) ], ) """ diff --git a/client/test/test_imported_agent_approval_notification_frequency.py b/client/test/test_imported_agent_approval_notification_frequency.py new file mode 100644 index 0000000..307a4c1 --- /dev/null +++ b/client/test/test_imported_agent_approval_notification_frequency.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.imported_agent_approval_notification_frequency import ImportedAgentApprovalNotificationFrequency + +class TestImportedAgentApprovalNotificationFrequency(unittest.TestCase): + """ImportedAgentApprovalNotificationFrequency unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testImportedAgentApprovalNotificationFrequency(self): + """Test ImportedAgentApprovalNotificationFrequency""" + # inst = ImportedAgentApprovalNotificationFrequency() + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_live_event.py b/client/test/test_live_event.py index 75a075a..6e0a6a0 100644 --- a/client/test/test_live_event.py +++ b/client/test/test_live_event.py @@ -147,6 +147,7 @@ def make_instance(self, include_optional) -> LiveEvent: ul = [ '' ], + sc = 56, changes = { 'key' : 56 } diff --git a/client/test/test_lock_comment200_response.py b/client/test/test_lock_comment200_response.py deleted file mode 100644 index 3e5bdaf..0000000 --- a/client/test/test_lock_comment200_response.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.lock_comment200_response import LockComment200Response - -class TestLockComment200Response(unittest.TestCase): - """LockComment200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> LockComment200Response: - """Test LockComment200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `LockComment200Response` - """ - model = LockComment200Response() - if include_optional: - return LockComment200Response( - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return LockComment200Response( - status = 'success', - reason = '', - code = '', - ) - """ - - def testLockComment200Response(self): - """Test LockComment200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_moderation_api.py b/client/test/test_moderation_api.py new file mode 100644 index 0000000..97fbfca --- /dev/null +++ b/client/test/test_moderation_api.py @@ -0,0 +1,289 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.api.moderation_api import ModerationApi + + +class TestModerationApi(unittest.TestCase): + """ModerationApi unit test stubs""" + + def setUp(self) -> None: + self.api = ModerationApi() + + def tearDown(self) -> None: + pass + + def test_delete_moderation_vote(self) -> None: + """Test case for delete_moderation_vote + + """ + pass + + def test_get_api_comments(self) -> None: + """Test case for get_api_comments + + """ + pass + + def test_get_api_export_status(self) -> None: + """Test case for get_api_export_status + + """ + pass + + def test_get_api_ids(self) -> None: + """Test case for get_api_ids + + """ + pass + + def test_get_ban_users_from_comment(self) -> None: + """Test case for get_ban_users_from_comment + + """ + pass + + def test_get_comment_ban_status(self) -> None: + """Test case for get_comment_ban_status + + """ + pass + + def test_get_comment_children(self) -> None: + """Test case for get_comment_children + + """ + pass + + def test_get_count(self) -> None: + """Test case for get_count + + """ + pass + + def test_get_counts(self) -> None: + """Test case for get_counts + + """ + pass + + def test_get_logs(self) -> None: + """Test case for get_logs + + """ + pass + + def test_get_manual_badges(self) -> None: + """Test case for get_manual_badges + + """ + pass + + def test_get_manual_badges_for_user(self) -> None: + """Test case for get_manual_badges_for_user + + """ + pass + + def test_get_moderation_comment(self) -> None: + """Test case for get_moderation_comment + + """ + pass + + def test_get_moderation_comment_text(self) -> None: + """Test case for get_moderation_comment_text + + """ + pass + + def test_get_pre_ban_summary(self) -> None: + """Test case for get_pre_ban_summary + + """ + pass + + def test_get_search_comments_summary(self) -> None: + """Test case for get_search_comments_summary + + """ + pass + + def test_get_search_pages(self) -> None: + """Test case for get_search_pages + + """ + pass + + def test_get_search_sites(self) -> None: + """Test case for get_search_sites + + """ + pass + + def test_get_search_suggest(self) -> None: + """Test case for get_search_suggest + + """ + pass + + def test_get_search_users(self) -> None: + """Test case for get_search_users + + """ + pass + + def test_get_trust_factor(self) -> None: + """Test case for get_trust_factor + + """ + pass + + def test_get_user_ban_preference(self) -> None: + """Test case for get_user_ban_preference + + """ + pass + + def test_get_user_internal_profile(self) -> None: + """Test case for get_user_internal_profile + + """ + pass + + def test_post_adjust_comment_votes(self) -> None: + """Test case for post_adjust_comment_votes + + """ + pass + + def test_post_api_export(self) -> None: + """Test case for post_api_export + + """ + pass + + def test_post_ban_user_from_comment(self) -> None: + """Test case for post_ban_user_from_comment + + """ + pass + + def test_post_ban_user_undo(self) -> None: + """Test case for post_ban_user_undo + + """ + pass + + def test_post_bulk_pre_ban_summary(self) -> None: + """Test case for post_bulk_pre_ban_summary + + """ + pass + + def test_post_comments_by_ids(self) -> None: + """Test case for post_comments_by_ids + + """ + pass + + def test_post_flag_comment(self) -> None: + """Test case for post_flag_comment + + """ + pass + + def test_post_remove_comment(self) -> None: + """Test case for post_remove_comment + + """ + pass + + def test_post_restore_deleted_comment(self) -> None: + """Test case for post_restore_deleted_comment + + """ + pass + + def test_post_set_comment_approval_status(self) -> None: + """Test case for post_set_comment_approval_status + + """ + pass + + def test_post_set_comment_review_status(self) -> None: + """Test case for post_set_comment_review_status + + """ + pass + + def test_post_set_comment_spam_status(self) -> None: + """Test case for post_set_comment_spam_status + + """ + pass + + def test_post_set_comment_text(self) -> None: + """Test case for post_set_comment_text + + """ + pass + + def test_post_un_flag_comment(self) -> None: + """Test case for post_un_flag_comment + + """ + pass + + def test_post_vote(self) -> None: + """Test case for post_vote + + """ + pass + + def test_put_award_badge(self) -> None: + """Test case for put_award_badge + + """ + pass + + def test_put_close_thread(self) -> None: + """Test case for put_close_thread + + """ + pass + + def test_put_remove_badge(self) -> None: + """Test case for put_remove_badge + + """ + pass + + def test_put_reopen_thread(self) -> None: + """Test case for put_reopen_thread + + """ + pass + + def test_set_trust_factor(self) -> None: + """Test case for set_trust_factor + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_api_child_comments_response.py b/client/test/test_moderation_api_child_comments_response.py new file mode 100644 index 0000000..8001c77 --- /dev/null +++ b/client/test/test_moderation_api_child_comments_response.py @@ -0,0 +1,172 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_api_child_comments_response import ModerationAPIChildCommentsResponse + +class TestModerationAPIChildCommentsResponse(unittest.TestCase): + """ModerationAPIChildCommentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationAPIChildCommentsResponse: + """Test ModerationAPIChildCommentsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationAPIChildCommentsResponse` + """ + model = ModerationAPIChildCommentsResponse() + if include_optional: + return ModerationAPIChildCommentsResponse( + comments = [ + client.models.moderation_api_comment.ModerationAPIComment( + is_local_deleted = True, + reply_count = 1.337, + feedback_results = [ + '' + ], + is_voted_up = True, + is_voted_down = True, + my_vote_id = '', + _id = '', + tenant_id = '', + url_id = '', + url = '', + page_title = '', + user_id = null, + anon_user_id = '', + commenter_name = '', + commenter_link = '', + comment_html = '', + parent_id = '', + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + local_date_string = '', + votes = 1.337, + votes_up = 1.337, + votes_down = 1.337, + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reviewed = True, + avatar_src = '', + is_spam = True, + perm_not_spam = True, + has_links = True, + has_code = True, + approved = True, + locale = '', + is_banned_user = True, + is_by_admin = True, + is_by_moderator = True, + is_pinned = True, + is_locked = True, + flag_count = 1.337, + display_label = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + verified = True, + feedback_ids = [ + '' + ], + is_deleted = True, ) + ], + status = 'success' + ) + else: + return ModerationAPIChildCommentsResponse( + comments = [ + client.models.moderation_api_comment.ModerationAPIComment( + is_local_deleted = True, + reply_count = 1.337, + feedback_results = [ + '' + ], + is_voted_up = True, + is_voted_down = True, + my_vote_id = '', + _id = '', + tenant_id = '', + url_id = '', + url = '', + page_title = '', + user_id = null, + anon_user_id = '', + commenter_name = '', + commenter_link = '', + comment_html = '', + parent_id = '', + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + local_date_string = '', + votes = 1.337, + votes_up = 1.337, + votes_down = 1.337, + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reviewed = True, + avatar_src = '', + is_spam = True, + perm_not_spam = True, + has_links = True, + has_code = True, + approved = True, + locale = '', + is_banned_user = True, + is_by_admin = True, + is_by_moderator = True, + is_pinned = True, + is_locked = True, + flag_count = 1.337, + display_label = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + verified = True, + feedback_ids = [ + '' + ], + is_deleted = True, ) + ], + status = 'success', + ) + """ + + def testModerationAPIChildCommentsResponse(self): + """Test ModerationAPIChildCommentsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_api_comment.py b/client/test/test_moderation_api_comment.py new file mode 100644 index 0000000..1a284ea --- /dev/null +++ b/client/test/test_moderation_api_comment.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_api_comment import ModerationAPIComment + +class TestModerationAPIComment(unittest.TestCase): + """ModerationAPIComment unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationAPIComment: + """Test ModerationAPIComment + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationAPIComment` + """ + model = ModerationAPIComment() + if include_optional: + return ModerationAPIComment( + is_local_deleted = True, + reply_count = 1.337, + feedback_results = [ + '' + ], + is_voted_up = True, + is_voted_down = True, + my_vote_id = '', + id = '', + tenant_id = '', + url_id = '', + url = '', + page_title = '', + user_id = '', + anon_user_id = '', + commenter_name = '', + commenter_link = '', + comment_html = '', + parent_id = '', + var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + local_date_string = '', + votes = 1.337, + votes_up = 1.337, + votes_down = 1.337, + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reviewed = True, + avatar_src = '', + is_spam = True, + perm_not_spam = True, + has_links = True, + has_code = True, + approved = True, + locale = '', + is_banned_user = True, + is_by_admin = True, + is_by_moderator = True, + is_pinned = True, + is_locked = True, + flag_count = 1.337, + display_label = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + verified = True, + feedback_ids = [ + '' + ], + is_deleted = True + ) + else: + return ModerationAPIComment( + id = '', + tenant_id = '', + url_id = '', + url = '', + commenter_name = '', + comment_html = '', + var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + approved = True, + locale = '', + verified = True, + ) + """ + + def testModerationAPIComment(self): + """Test ModerationAPIComment""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_api_comment_log.py b/client/test/test_moderation_api_comment_log.py new file mode 100644 index 0000000..cdcecda --- /dev/null +++ b/client/test/test_moderation_api_comment_log.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_api_comment_log import ModerationAPICommentLog + +class TestModerationAPICommentLog(unittest.TestCase): + """ModerationAPICommentLog unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationAPICommentLog: + """Test ModerationAPICommentLog + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationAPICommentLog` + """ + model = ModerationAPICommentLog() + if include_optional: + return ModerationAPICommentLog( + var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + username = '', + action_name = '', + message_html = '' + ) + else: + return ModerationAPICommentLog( + var_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + action_name = '', + message_html = '', + ) + """ + + def testModerationAPICommentLog(self): + """Test ModerationAPICommentLog""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_api_comment_response.py b/client/test/test_moderation_api_comment_response.py new file mode 100644 index 0000000..410c281 --- /dev/null +++ b/client/test/test_moderation_api_comment_response.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_api_comment_response import ModerationAPICommentResponse + +class TestModerationAPICommentResponse(unittest.TestCase): + """ModerationAPICommentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationAPICommentResponse: + """Test ModerationAPICommentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationAPICommentResponse` + """ + model = ModerationAPICommentResponse() + if include_optional: + return ModerationAPICommentResponse( + comment = client.models.moderation_api_comment.ModerationAPIComment( + is_local_deleted = True, + reply_count = 1.337, + feedback_results = [ + '' + ], + is_voted_up = True, + is_voted_down = True, + my_vote_id = '', + _id = '', + tenant_id = '', + url_id = '', + url = '', + page_title = '', + user_id = null, + anon_user_id = '', + commenter_name = '', + commenter_link = '', + comment_html = '', + parent_id = '', + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + local_date_string = '', + votes = 1.337, + votes_up = 1.337, + votes_down = 1.337, + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reviewed = True, + avatar_src = '', + is_spam = True, + perm_not_spam = True, + has_links = True, + has_code = True, + approved = True, + locale = '', + is_banned_user = True, + is_by_admin = True, + is_by_moderator = True, + is_pinned = True, + is_locked = True, + flag_count = 1.337, + display_label = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + verified = True, + feedback_ids = [ + '' + ], + is_deleted = True, ), + status = 'success' + ) + else: + return ModerationAPICommentResponse( + comment = client.models.moderation_api_comment.ModerationAPIComment( + is_local_deleted = True, + reply_count = 1.337, + feedback_results = [ + '' + ], + is_voted_up = True, + is_voted_down = True, + my_vote_id = '', + _id = '', + tenant_id = '', + url_id = '', + url = '', + page_title = '', + user_id = null, + anon_user_id = '', + commenter_name = '', + commenter_link = '', + comment_html = '', + parent_id = '', + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + local_date_string = '', + votes = 1.337, + votes_up = 1.337, + votes_down = 1.337, + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reviewed = True, + avatar_src = '', + is_spam = True, + perm_not_spam = True, + has_links = True, + has_code = True, + approved = True, + locale = '', + is_banned_user = True, + is_by_admin = True, + is_by_moderator = True, + is_pinned = True, + is_locked = True, + flag_count = 1.337, + display_label = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + verified = True, + feedback_ids = [ + '' + ], + is_deleted = True, ), + status = 'success', + ) + """ + + def testModerationAPICommentResponse(self): + """Test ModerationAPICommentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_api_count_comments_response.py b/client/test/test_moderation_api_count_comments_response.py new file mode 100644 index 0000000..d2b541d --- /dev/null +++ b/client/test/test_moderation_api_count_comments_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_api_count_comments_response import ModerationAPICountCommentsResponse + +class TestModerationAPICountCommentsResponse(unittest.TestCase): + """ModerationAPICountCommentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationAPICountCommentsResponse: + """Test ModerationAPICountCommentsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationAPICountCommentsResponse` + """ + model = ModerationAPICountCommentsResponse() + if include_optional: + return ModerationAPICountCommentsResponse( + status = 'success', + count = 1.337 + ) + else: + return ModerationAPICountCommentsResponse( + status = 'success', + count = 1.337, + ) + """ + + def testModerationAPICountCommentsResponse(self): + """Test ModerationAPICountCommentsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_api_get_comment_ids_response.py b/client/test/test_moderation_api_get_comment_ids_response.py new file mode 100644 index 0000000..9e631d2 --- /dev/null +++ b/client/test/test_moderation_api_get_comment_ids_response.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_api_get_comment_ids_response import ModerationAPIGetCommentIdsResponse + +class TestModerationAPIGetCommentIdsResponse(unittest.TestCase): + """ModerationAPIGetCommentIdsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationAPIGetCommentIdsResponse: + """Test ModerationAPIGetCommentIdsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationAPIGetCommentIdsResponse` + """ + model = ModerationAPIGetCommentIdsResponse() + if include_optional: + return ModerationAPIGetCommentIdsResponse( + ids = [ + '' + ], + has_more = True, + status = 'success' + ) + else: + return ModerationAPIGetCommentIdsResponse( + ids = [ + '' + ], + has_more = True, + status = 'success', + ) + """ + + def testModerationAPIGetCommentIdsResponse(self): + """Test ModerationAPIGetCommentIdsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_api_get_comments_response.py b/client/test/test_moderation_api_get_comments_response.py new file mode 100644 index 0000000..7f01944 --- /dev/null +++ b/client/test/test_moderation_api_get_comments_response.py @@ -0,0 +1,191 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_api_get_comments_response import ModerationAPIGetCommentsResponse + +class TestModerationAPIGetCommentsResponse(unittest.TestCase): + """ModerationAPIGetCommentsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationAPIGetCommentsResponse: + """Test ModerationAPIGetCommentsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationAPIGetCommentsResponse` + """ + model = ModerationAPIGetCommentsResponse() + if include_optional: + return ModerationAPIGetCommentsResponse( + status = 'success', + translations = None, + comments = [ + client.models.moderation_api_comment.ModerationAPIComment( + is_local_deleted = True, + reply_count = 1.337, + feedback_results = [ + '' + ], + is_voted_up = True, + is_voted_down = True, + my_vote_id = '', + _id = '', + tenant_id = '', + url_id = '', + url = '', + page_title = '', + user_id = null, + anon_user_id = '', + commenter_name = '', + commenter_link = '', + comment_html = '', + parent_id = '', + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + local_date_string = '', + votes = 1.337, + votes_up = 1.337, + votes_down = 1.337, + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reviewed = True, + avatar_src = '', + is_spam = True, + perm_not_spam = True, + has_links = True, + has_code = True, + approved = True, + locale = '', + is_banned_user = True, + is_by_admin = True, + is_by_moderator = True, + is_pinned = True, + is_locked = True, + flag_count = 1.337, + display_label = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + verified = True, + feedback_ids = [ + '' + ], + is_deleted = True, ) + ], + moderation_filter = client.models.moderation_filter.ModerationFilter( + reviewed = True, + approved = True, + is_spam = True, + is_banned_user = True, + is_locked = True, + flag_count_gt = 1.337, + user_id = '', + url_id = '', + domain = '', + moderation_group_ids = [ + '' + ], + comment_text_search = [ + '' + ], + exact_comment_text = '', ) + ) + else: + return ModerationAPIGetCommentsResponse( + status = 'success', + translations = None, + comments = [ + client.models.moderation_api_comment.ModerationAPIComment( + is_local_deleted = True, + reply_count = 1.337, + feedback_results = [ + '' + ], + is_voted_up = True, + is_voted_down = True, + my_vote_id = '', + _id = '', + tenant_id = '', + url_id = '', + url = '', + page_title = '', + user_id = null, + anon_user_id = '', + commenter_name = '', + commenter_link = '', + comment_html = '', + parent_id = '', + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + local_date_string = '', + votes = 1.337, + votes_up = 1.337, + votes_down = 1.337, + expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + reviewed = True, + avatar_src = '', + is_spam = True, + perm_not_spam = True, + has_links = True, + has_code = True, + approved = True, + locale = '', + is_banned_user = True, + is_by_admin = True, + is_by_moderator = True, + is_pinned = True, + is_locked = True, + flag_count = 1.337, + display_label = '', + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + verified = True, + feedback_ids = [ + '' + ], + is_deleted = True, ) + ], + ) + """ + + def testModerationAPIGetCommentsResponse(self): + """Test ModerationAPIGetCommentsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_api_get_logs_response.py b/client/test/test_moderation_api_get_logs_response.py new file mode 100644 index 0000000..5df662f --- /dev/null +++ b/client/test/test_moderation_api_get_logs_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_api_get_logs_response import ModerationAPIGetLogsResponse + +class TestModerationAPIGetLogsResponse(unittest.TestCase): + """ModerationAPIGetLogsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationAPIGetLogsResponse: + """Test ModerationAPIGetLogsResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationAPIGetLogsResponse` + """ + model = ModerationAPIGetLogsResponse() + if include_optional: + return ModerationAPIGetLogsResponse( + logs = [ + client.models.moderation_api_comment_log.ModerationAPICommentLog( + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + username = '', + action_name = '', + message_html = '', ) + ], + status = 'success' + ) + else: + return ModerationAPIGetLogsResponse( + logs = [ + client.models.moderation_api_comment_log.ModerationAPICommentLog( + date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + username = '', + action_name = '', + message_html = '', ) + ], + status = 'success', + ) + """ + + def testModerationAPIGetLogsResponse(self): + """Test ModerationAPIGetLogsResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_comment_search_response.py b/client/test/test_moderation_comment_search_response.py new file mode 100644 index 0000000..31ab777 --- /dev/null +++ b/client/test/test_moderation_comment_search_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_comment_search_response import ModerationCommentSearchResponse + +class TestModerationCommentSearchResponse(unittest.TestCase): + """ModerationCommentSearchResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationCommentSearchResponse: + """Test ModerationCommentSearchResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationCommentSearchResponse` + """ + model = ModerationCommentSearchResponse() + if include_optional: + return ModerationCommentSearchResponse( + comment_count = 56, + status = 'success' + ) + else: + return ModerationCommentSearchResponse( + comment_count = 56, + status = 'success', + ) + """ + + def testModerationCommentSearchResponse(self): + """Test ModerationCommentSearchResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_export_response.py b/client/test/test_moderation_export_response.py new file mode 100644 index 0000000..512f60d --- /dev/null +++ b/client/test/test_moderation_export_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_export_response import ModerationExportResponse + +class TestModerationExportResponse(unittest.TestCase): + """ModerationExportResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationExportResponse: + """Test ModerationExportResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationExportResponse` + """ + model = ModerationExportResponse() + if include_optional: + return ModerationExportResponse( + status = '', + batch_job_id = '' + ) + else: + return ModerationExportResponse( + status = '', + batch_job_id = '', + ) + """ + + def testModerationExportResponse(self): + """Test ModerationExportResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_export_status_response.py b/client/test/test_moderation_export_status_response.py new file mode 100644 index 0000000..869b69b --- /dev/null +++ b/client/test/test_moderation_export_status_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_export_status_response import ModerationExportStatusResponse + +class TestModerationExportStatusResponse(unittest.TestCase): + """ModerationExportStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationExportStatusResponse: + """Test ModerationExportStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationExportStatusResponse` + """ + model = ModerationExportStatusResponse() + if include_optional: + return ModerationExportStatusResponse( + status = '', + job_status = '', + record_count = 56, + download_url = '' + ) + else: + return ModerationExportStatusResponse( + status = '', + job_status = '', + record_count = 56, + ) + """ + + def testModerationExportStatusResponse(self): + """Test ModerationExportStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_filter.py b/client/test/test_moderation_filter.py new file mode 100644 index 0000000..75dd282 --- /dev/null +++ b/client/test/test_moderation_filter.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_filter import ModerationFilter + +class TestModerationFilter(unittest.TestCase): + """ModerationFilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationFilter: + """Test ModerationFilter + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationFilter` + """ + model = ModerationFilter() + if include_optional: + return ModerationFilter( + reviewed = True, + approved = True, + is_spam = True, + is_banned_user = True, + is_locked = True, + flag_count_gt = 1.337, + user_id = '', + url_id = '', + domain = '', + moderation_group_ids = [ + '' + ], + comment_text_search = [ + '' + ], + exact_comment_text = '' + ) + else: + return ModerationFilter( + ) + """ + + def testModerationFilter(self): + """Test ModerationFilter""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_page_search_projected.py b/client/test/test_moderation_page_search_projected.py new file mode 100644 index 0000000..0ffbc01 --- /dev/null +++ b/client/test/test_moderation_page_search_projected.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_page_search_projected import ModerationPageSearchProjected + +class TestModerationPageSearchProjected(unittest.TestCase): + """ModerationPageSearchProjected unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationPageSearchProjected: + """Test ModerationPageSearchProjected + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationPageSearchProjected` + """ + model = ModerationPageSearchProjected() + if include_optional: + return ModerationPageSearchProjected( + url_id = '', + url = '', + title = '', + comment_count = 1.337 + ) + else: + return ModerationPageSearchProjected( + url_id = '', + url = '', + title = '', + comment_count = 1.337, + ) + """ + + def testModerationPageSearchProjected(self): + """Test ModerationPageSearchProjected""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_page_search_response.py b/client/test/test_moderation_page_search_response.py new file mode 100644 index 0000000..166abb2 --- /dev/null +++ b/client/test/test_moderation_page_search_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_page_search_response import ModerationPageSearchResponse + +class TestModerationPageSearchResponse(unittest.TestCase): + """ModerationPageSearchResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationPageSearchResponse: + """Test ModerationPageSearchResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationPageSearchResponse` + """ + model = ModerationPageSearchResponse() + if include_optional: + return ModerationPageSearchResponse( + pages = [ + client.models.moderation_page_search_projected.ModerationPageSearchProjected( + url_id = '', + url = '', + title = '', + comment_count = 1.337, ) + ], + status = 'success' + ) + else: + return ModerationPageSearchResponse( + pages = [ + client.models.moderation_page_search_projected.ModerationPageSearchProjected( + url_id = '', + url = '', + title = '', + comment_count = 1.337, ) + ], + status = 'success', + ) + """ + + def testModerationPageSearchResponse(self): + """Test ModerationPageSearchResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_site_search_projected.py b/client/test/test_moderation_site_search_projected.py new file mode 100644 index 0000000..baa5a5b --- /dev/null +++ b/client/test/test_moderation_site_search_projected.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_site_search_projected import ModerationSiteSearchProjected + +class TestModerationSiteSearchProjected(unittest.TestCase): + """ModerationSiteSearchProjected unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationSiteSearchProjected: + """Test ModerationSiteSearchProjected + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationSiteSearchProjected` + """ + model = ModerationSiteSearchProjected() + if include_optional: + return ModerationSiteSearchProjected( + domain = '', + logo_src100px = '' + ) + else: + return ModerationSiteSearchProjected( + domain = '', + ) + """ + + def testModerationSiteSearchProjected(self): + """Test ModerationSiteSearchProjected""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_site_search_response.py b/client/test/test_moderation_site_search_response.py new file mode 100644 index 0000000..21a4a34 --- /dev/null +++ b/client/test/test_moderation_site_search_response.py @@ -0,0 +1,62 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_site_search_response import ModerationSiteSearchResponse + +class TestModerationSiteSearchResponse(unittest.TestCase): + """ModerationSiteSearchResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationSiteSearchResponse: + """Test ModerationSiteSearchResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationSiteSearchResponse` + """ + model = ModerationSiteSearchResponse() + if include_optional: + return ModerationSiteSearchResponse( + sites = [ + client.models.moderation_site_search_projected.ModerationSiteSearchProjected( + domain = '', + logo_src100px = '', ) + ], + status = 'success' + ) + else: + return ModerationSiteSearchResponse( + sites = [ + client.models.moderation_site_search_projected.ModerationSiteSearchProjected( + domain = '', + logo_src100px = '', ) + ], + status = 'success', + ) + """ + + def testModerationSiteSearchResponse(self): + """Test ModerationSiteSearchResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_suggest_response.py b/client/test/test_moderation_suggest_response.py new file mode 100644 index 0000000..4008982 --- /dev/null +++ b/client/test/test_moderation_suggest_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_suggest_response import ModerationSuggestResponse + +class TestModerationSuggestResponse(unittest.TestCase): + """ModerationSuggestResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationSuggestResponse: + """Test ModerationSuggestResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationSuggestResponse` + """ + model = ModerationSuggestResponse() + if include_optional: + return ModerationSuggestResponse( + status = '', + pages = [ + client.models.moderation_page_search_projected.ModerationPageSearchProjected( + url_id = '', + url = '', + title = '', + comment_count = 1.337, ) + ], + users = [ + client.models.moderation_user_search_projected.ModerationUserSearchProjected( + _id = '', + username = '', + display_name = '', + avatar_src = '', ) + ], + code = '' + ) + else: + return ModerationSuggestResponse( + status = '', + ) + """ + + def testModerationSuggestResponse(self): + """Test ModerationSuggestResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_user_search_projected.py b/client/test/test_moderation_user_search_projected.py new file mode 100644 index 0000000..504d0e1 --- /dev/null +++ b/client/test/test_moderation_user_search_projected.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_user_search_projected import ModerationUserSearchProjected + +class TestModerationUserSearchProjected(unittest.TestCase): + """ModerationUserSearchProjected unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationUserSearchProjected: + """Test ModerationUserSearchProjected + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationUserSearchProjected` + """ + model = ModerationUserSearchProjected() + if include_optional: + return ModerationUserSearchProjected( + id = '', + username = '', + display_name = '', + avatar_src = '' + ) + else: + return ModerationUserSearchProjected( + id = '', + username = '', + ) + """ + + def testModerationUserSearchProjected(self): + """Test ModerationUserSearchProjected""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_moderation_user_search_response.py b/client/test/test_moderation_user_search_response.py new file mode 100644 index 0000000..8003238 --- /dev/null +++ b/client/test/test_moderation_user_search_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.moderation_user_search_response import ModerationUserSearchResponse + +class TestModerationUserSearchResponse(unittest.TestCase): + """ModerationUserSearchResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ModerationUserSearchResponse: + """Test ModerationUserSearchResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `ModerationUserSearchResponse` + """ + model = ModerationUserSearchResponse() + if include_optional: + return ModerationUserSearchResponse( + users = [ + client.models.moderation_user_search_projected.ModerationUserSearchProjected( + _id = '', + username = '', + display_name = '', + avatar_src = '', ) + ], + status = 'success' + ) + else: + return ModerationUserSearchResponse( + users = [ + client.models.moderation_user_search_projected.ModerationUserSearchProjected( + _id = '', + username = '', + display_name = '', + avatar_src = '', ) + ], + status = 'success', + ) + """ + + def testModerationUserSearchResponse(self): + """Test ModerationUserSearchResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_page_user_entry.py b/client/test/test_page_user_entry.py new file mode 100644 index 0000000..31d42cc --- /dev/null +++ b/client/test/test_page_user_entry.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.page_user_entry import PageUserEntry + +class TestPageUserEntry(unittest.TestCase): + """PageUserEntry unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PageUserEntry: + """Test PageUserEntry + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PageUserEntry` + """ + model = PageUserEntry() + if include_optional: + return PageUserEntry( + is_private = True, + avatar_src = '', + display_name = '', + id = '' + ) + else: + return PageUserEntry( + display_name = '', + id = '', + ) + """ + + def testPageUserEntry(self): + """Test PageUserEntry""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_page_users_info_response.py b/client/test/test_page_users_info_response.py new file mode 100644 index 0000000..e82331d --- /dev/null +++ b/client/test/test_page_users_info_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.page_users_info_response import PageUsersInfoResponse + +class TestPageUsersInfoResponse(unittest.TestCase): + """PageUsersInfoResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PageUsersInfoResponse: + """Test PageUsersInfoResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PageUsersInfoResponse` + """ + model = PageUsersInfoResponse() + if include_optional: + return PageUsersInfoResponse( + users = [ + client.models.page_user_entry.PageUserEntry( + is_private = True, + avatar_src = '', + display_name = '', + id = '', ) + ], + status = 'success' + ) + else: + return PageUsersInfoResponse( + users = [ + client.models.page_user_entry.PageUserEntry( + is_private = True, + avatar_src = '', + display_name = '', + id = '', ) + ], + status = 'success', + ) + """ + + def testPageUsersInfoResponse(self): + """Test PageUsersInfoResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_page_users_offline_response.py b/client/test/test_page_users_offline_response.py new file mode 100644 index 0000000..6ef56bc --- /dev/null +++ b/client/test/test_page_users_offline_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.page_users_offline_response import PageUsersOfflineResponse + +class TestPageUsersOfflineResponse(unittest.TestCase): + """PageUsersOfflineResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PageUsersOfflineResponse: + """Test PageUsersOfflineResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PageUsersOfflineResponse` + """ + model = PageUsersOfflineResponse() + if include_optional: + return PageUsersOfflineResponse( + next_after_user_id = '', + next_after_name = '', + users = [ + client.models.page_user_entry.PageUserEntry( + is_private = True, + avatar_src = '', + display_name = '', + id = '', ) + ], + status = 'success' + ) + else: + return PageUsersOfflineResponse( + next_after_user_id = '', + next_after_name = '', + users = [ + client.models.page_user_entry.PageUserEntry( + is_private = True, + avatar_src = '', + display_name = '', + id = '', ) + ], + status = 'success', + ) + """ + + def testPageUsersOfflineResponse(self): + """Test PageUsersOfflineResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_page_users_online_response.py b/client/test/test_page_users_online_response.py new file mode 100644 index 0000000..820b25d --- /dev/null +++ b/client/test/test_page_users_online_response.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.page_users_online_response import PageUsersOnlineResponse + +class TestPageUsersOnlineResponse(unittest.TestCase): + """PageUsersOnlineResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PageUsersOnlineResponse: + """Test PageUsersOnlineResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PageUsersOnlineResponse` + """ + model = PageUsersOnlineResponse() + if include_optional: + return PageUsersOnlineResponse( + next_after_user_id = '', + next_after_name = '', + total_count = 1.337, + anon_count = 1.337, + users = [ + client.models.page_user_entry.PageUserEntry( + is_private = True, + avatar_src = '', + display_name = '', + id = '', ) + ], + status = 'success' + ) + else: + return PageUsersOnlineResponse( + next_after_user_id = '', + next_after_name = '', + total_count = 1.337, + anon_count = 1.337, + users = [ + client.models.page_user_entry.PageUserEntry( + is_private = True, + avatar_src = '', + display_name = '', + id = '', ) + ], + status = 'success', + ) + """ + + def testPageUsersOnlineResponse(self): + """Test PageUsersOnlineResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_pages_sort_by.py b/client/test/test_pages_sort_by.py new file mode 100644 index 0000000..df2698d --- /dev/null +++ b/client/test/test_pages_sort_by.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.pages_sort_by import PagesSortBy + +class TestPagesSortBy(unittest.TestCase): + """PagesSortBy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPagesSortBy(self): + """Test PagesSortBy""" + # inst = PagesSortBy() + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_patch_domain_config_response.py b/client/test/test_patch_domain_config_response.py new file mode 100644 index 0000000..835274a --- /dev/null +++ b/client/test/test_patch_domain_config_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.patch_domain_config_response import PatchDomainConfigResponse + +class TestPatchDomainConfigResponse(unittest.TestCase): + """PatchDomainConfigResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PatchDomainConfigResponse: + """Test PatchDomainConfigResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PatchDomainConfigResponse` + """ + model = PatchDomainConfigResponse() + if include_optional: + return PatchDomainConfigResponse( + configuration = client.models.configuration.configuration(), + status = client.models.status.status(), + reason = '', + code = '' + ) + else: + return PatchDomainConfigResponse( + configuration = client.models.configuration.configuration(), + status = client.models.status.status(), + reason = '', + code = '', + ) + """ + + def testPatchDomainConfigResponse(self): + """Test PatchDomainConfigResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_pending_comment_to_sync_outbound.py b/client/test/test_pending_comment_to_sync_outbound.py index 057b133..b04ffde 100644 --- a/client/test/test_pending_comment_to_sync_outbound.py +++ b/client/test/test_pending_comment_to_sync_outbound.py @@ -154,6 +154,7 @@ def make_instance(self, include_optional) -> PendingCommentToSyncOutbound: engine_response = '', engine_tokens = 1.337, trust_factor = 1.337, + source = '', rule = client.models.spam_rule.SpamRule( actions = [ 'spam' @@ -196,7 +197,8 @@ def make_instance(self, include_optional) -> PendingCommentToSyncOutbound: view_count = 56, requires_verification = True, edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), + tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + bot_id = '', ), external_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), tenant_id = '', diff --git a/client/test/test_pin_comment200_response.py b/client/test/test_pin_comment200_response.py deleted file mode 100644 index 086e79d..0000000 --- a/client/test/test_pin_comment200_response.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.pin_comment200_response import PinComment200Response - -class TestPinComment200Response(unittest.TestCase): - """PinComment200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> PinComment200Response: - """Test PinComment200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `PinComment200Response` - """ - model = PinComment200Response() - if include_optional: - return PinComment200Response( - comment_positions = { - 'key' : client.models.record_string__before_string_or_null__after_string_or_null___value.Record_string__before_string_or_null__after_string_or_null___value( - after = '', - before = '', ) - }, - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return PinComment200Response( - comment_positions = { - 'key' : client.models.record_string__before_string_or_null__after_string_or_null___value.Record_string__before_string_or_null__after_string_or_null___value( - after = '', - before = '', ) - }, - status = 'success', - reason = '', - code = '', - ) - """ - - def testPinComment200Response(self): - """Test PinComment200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_post_remove_comment_response.py b/client/test/test_post_remove_comment_response.py new file mode 100644 index 0000000..673fe82 --- /dev/null +++ b/client/test/test_post_remove_comment_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.post_remove_comment_response import PostRemoveCommentResponse + +class TestPostRemoveCommentResponse(unittest.TestCase): + """PostRemoveCommentResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PostRemoveCommentResponse: + """Test PostRemoveCommentResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PostRemoveCommentResponse` + """ + model = PostRemoveCommentResponse() + if include_optional: + return PostRemoveCommentResponse( + action = '', + status = '' + ) + else: + return PostRemoveCommentResponse( + action = '', + status = '', + ) + """ + + def testPostRemoveCommentResponse(self): + """Test PostRemoveCommentResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_pre_ban_summary.py b/client/test/test_pre_ban_summary.py new file mode 100644 index 0000000..caade28 --- /dev/null +++ b/client/test/test_pre_ban_summary.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.pre_ban_summary import PreBanSummary + +class TestPreBanSummary(unittest.TestCase): + """PreBanSummary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PreBanSummary: + """Test PreBanSummary + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PreBanSummary` + """ + model = PreBanSummary() + if include_optional: + return PreBanSummary( + status = 'success', + usernames = [ + '' + ], + count = 1.337 + ) + else: + return PreBanSummary( + status = 'success', + usernames = [ + '' + ], + count = 1.337, + ) + """ + + def testPreBanSummary(self): + """Test PreBanSummary""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_public_api.py b/client/test/test_public_api.py index 970df06..6b5b47b 100644 --- a/client/test/test_public_api.py +++ b/client/test/test_public_api.py @@ -50,6 +50,18 @@ def test_create_feed_post_public(self) -> None: """ pass + def test_create_v1_page_react(self) -> None: + """Test case for create_v1_page_react + + """ + pass + + def test_create_v2_page_react(self) -> None: + """Test case for create_v2_page_react + + """ + pass + def test_delete_comment_public(self) -> None: """Test case for delete_comment_public @@ -68,6 +80,18 @@ def test_delete_feed_post_public(self) -> None: """ pass + def test_delete_v1_page_react(self) -> None: + """Test case for delete_v1_page_react + + """ + pass + + def test_delete_v2_page_react(self) -> None: + """Test case for delete_v2_page_react + + """ + pass + def test_flag_comment_public(self) -> None: """Test case for flag_comment_public @@ -86,6 +110,12 @@ def test_get_comment_vote_user_names(self) -> None: """ pass + def test_get_comments_for_user(self) -> None: + """Test case for get_comments_for_user + + """ + pass + def test_get_comments_public(self) -> None: """Test case for get_comments_public @@ -110,12 +140,54 @@ def test_get_feed_posts_stats(self) -> None: """ pass + def test_get_gif_large(self) -> None: + """Test case for get_gif_large + + """ + pass + + def test_get_gifs_search(self) -> None: + """Test case for get_gifs_search + + """ + pass + + def test_get_gifs_trending(self) -> None: + """Test case for get_gifs_trending + + """ + pass + def test_get_global_event_log(self) -> None: """Test case for get_global_event_log """ pass + def test_get_offline_users(self) -> None: + """Test case for get_offline_users + + """ + pass + + def test_get_online_users(self) -> None: + """Test case for get_online_users + + """ + pass + + def test_get_pages_public(self) -> None: + """Test case for get_pages_public + + """ + pass + + def test_get_translations(self) -> None: + """Test case for get_translations + + """ + pass + def test_get_user_notification_count(self) -> None: """Test case for get_user_notification_count @@ -140,12 +212,42 @@ def test_get_user_reacts_public(self) -> None: """ pass + def test_get_users_info(self) -> None: + """Test case for get_users_info + + """ + pass + + def test_get_v1_page_likes(self) -> None: + """Test case for get_v1_page_likes + + """ + pass + + def test_get_v2_page_react_users(self) -> None: + """Test case for get_v2_page_react_users + + """ + pass + + def test_get_v2_page_reacts(self) -> None: + """Test case for get_v2_page_reacts + + """ + pass + def test_lock_comment(self) -> None: """Test case for lock_comment """ pass + def test_logout_public(self) -> None: + """Test case for logout_public + + """ + pass + def test_pin_comment(self) -> None: """Test case for pin_comment diff --git a/client/test/test_public_page.py b/client/test/test_public_page.py new file mode 100644 index 0000000..e2c3823 --- /dev/null +++ b/client/test/test_public_page.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.public_page import PublicPage + +class TestPublicPage(unittest.TestCase): + """PublicPage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PublicPage: + """Test PublicPage + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PublicPage` + """ + model = PublicPage() + if include_optional: + return PublicPage( + updated_at = 56, + comment_count = 56, + title = '', + url = '', + url_id = '' + ) + else: + return PublicPage( + updated_at = 56, + comment_count = 56, + title = '', + url = '', + url_id = '', + ) + """ + + def testPublicPage(self): + """Test PublicPage""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_put_domain_config_response.py b/client/test/test_put_domain_config_response.py new file mode 100644 index 0000000..09f1fbe --- /dev/null +++ b/client/test/test_put_domain_config_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.put_domain_config_response import PutDomainConfigResponse + +class TestPutDomainConfigResponse(unittest.TestCase): + """PutDomainConfigResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PutDomainConfigResponse: + """Test PutDomainConfigResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `PutDomainConfigResponse` + """ + model = PutDomainConfigResponse() + if include_optional: + return PutDomainConfigResponse( + configuration = client.models.configuration.configuration(), + status = client.models.status.status(), + reason = '', + code = '' + ) + else: + return PutDomainConfigResponse( + configuration = client.models.configuration.configuration(), + status = client.models.status.status(), + reason = '', + code = '', + ) + """ + + def testPutDomainConfigResponse(self): + """Test PutDomainConfigResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_react_feed_post_public200_response.py b/client/test/test_react_feed_post_public200_response.py deleted file mode 100644 index d056de0..0000000 --- a/client/test/test_react_feed_post_public200_response.py +++ /dev/null @@ -1,165 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.react_feed_post_public200_response import ReactFeedPostPublic200Response - -class TestReactFeedPostPublic200Response(unittest.TestCase): - """ReactFeedPostPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ReactFeedPostPublic200Response: - """Test ReactFeedPostPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ReactFeedPostPublic200Response` - """ - model = ReactFeedPostPublic200Response() - if include_optional: - return ReactFeedPostPublic200Response( - status = 'success', - react_type = '', - is_undo = True, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return ReactFeedPostPublic200Response( - status = 'success', - react_type = '', - is_undo = True, - reason = '', - code = '', - ) - """ - - def testReactFeedPostPublic200Response(self): - """Test ReactFeedPostPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_remove_comment_action_response.py b/client/test/test_remove_comment_action_response.py new file mode 100644 index 0000000..53c653c --- /dev/null +++ b/client/test/test_remove_comment_action_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.remove_comment_action_response import RemoveCommentActionResponse + +class TestRemoveCommentActionResponse(unittest.TestCase): + """RemoveCommentActionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RemoveCommentActionResponse: + """Test RemoveCommentActionResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RemoveCommentActionResponse` + """ + model = RemoveCommentActionResponse() + if include_optional: + return RemoveCommentActionResponse( + status = '', + action = '' + ) + else: + return RemoveCommentActionResponse( + status = '', + action = '', + ) + """ + + def testRemoveCommentActionResponse(self): + """Test RemoveCommentActionResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_remove_user_badge_response.py b/client/test/test_remove_user_badge_response.py new file mode 100644 index 0000000..a15a4ba --- /dev/null +++ b/client/test/test_remove_user_badge_response.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.remove_user_badge_response import RemoveUserBadgeResponse + +class TestRemoveUserBadgeResponse(unittest.TestCase): + """RemoveUserBadgeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RemoveUserBadgeResponse: + """Test RemoveUserBadgeResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `RemoveUserBadgeResponse` + """ + model = RemoveUserBadgeResponse() + if include_optional: + return RemoveUserBadgeResponse( + badges = [ + client.models.comment_user_badge_info.CommentUserBadgeInfo( + id = '', + type = 56, + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', ) + ], + status = 'success' + ) + else: + return RemoveUserBadgeResponse( + status = 'success', + ) + """ + + def testRemoveUserBadgeResponse(self): + """Test RemoveUserBadgeResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_render_email_template200_response.py b/client/test/test_render_email_template200_response.py deleted file mode 100644 index b2cc549..0000000 --- a/client/test/test_render_email_template200_response.py +++ /dev/null @@ -1,163 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.render_email_template200_response import RenderEmailTemplate200Response - -class TestRenderEmailTemplate200Response(unittest.TestCase): - """RenderEmailTemplate200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> RenderEmailTemplate200Response: - """Test RenderEmailTemplate200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `RenderEmailTemplate200Response` - """ - model = RenderEmailTemplate200Response() - if include_optional: - return RenderEmailTemplate200Response( - status = 'success', - html = '', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return RenderEmailTemplate200Response( - status = 'success', - html = '', - reason = '', - code = '', - ) - """ - - def testRenderEmailTemplate200Response(self): - """Test RenderEmailTemplate200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_reset_user_notifications200_response.py b/client/test/test_reset_user_notifications200_response.py deleted file mode 100644 index 3677a5f..0000000 --- a/client/test/test_reset_user_notifications200_response.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.reset_user_notifications200_response import ResetUserNotifications200Response - -class TestResetUserNotifications200Response(unittest.TestCase): - """ResetUserNotifications200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> ResetUserNotifications200Response: - """Test ResetUserNotifications200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `ResetUserNotifications200Response` - """ - model = ResetUserNotifications200Response() - if include_optional: - return ResetUserNotifications200Response( - status = 'success', - code = '', - reason = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return ResetUserNotifications200Response( - status = 'success', - code = '', - reason = '', - ) - """ - - def testResetUserNotifications200Response(self): - """Test ResetUserNotifications200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_save_comment200_response.py b/client/test/test_save_comment200_response.py deleted file mode 100644 index 3d8f3f7..0000000 --- a/client/test/test_save_comment200_response.py +++ /dev/null @@ -1,540 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.save_comment200_response import SaveComment200Response - -class TestSaveComment200Response(unittest.TestCase): - """SaveComment200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SaveComment200Response: - """Test SaveComment200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SaveComment200Response` - """ - model = SaveComment200Response() - if include_optional: - return SaveComment200Response( - status = 'success', - comment = client.models.f_comment.FComment( - _id = '', - tenant_id = '', - url_id = '', - url_id_raw = '', - url = '', - page_title = '', - user_id = null, - anon_user_id = '', - commenter_email = '', - commenter_name = '', - commenter_link = '', - comment = '', - comment_html = '', - parent_id = '', - date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - local_date_string = '', - local_date_hours = 56, - votes = 56, - votes_up = 56, - votes_down = 56, - expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verified = True, - verified_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verification_id = '', - notification_sent_for_parent = True, - notification_sent_for_parent_tenant = True, - reviewed = True, - imported = True, - external_id = '', - external_parent_id = '', - avatar_src = '', - is_spam = True, - perm_not_spam = True, - ai_determined_spam = True, - has_images = True, - page_number = 56, - page_number_of = 56, - page_number_nf = 56, - has_links = True, - has_code = True, - approved = True, - locale = '', - is_deleted = True, - is_deleted_user = True, - is_banned_user = True, - is_by_admin = True, - is_by_moderator = True, - is_pinned = True, - is_locked = True, - flag_count = 56, - rating = 1.337, - display_label = '', - from_product_id = 56, - meta = { - 'key' : null - }, - ip_hash = '', - mentions = [ - client.models.comment_user_mention_info.CommentUserMentionInfo( - id = '', - tag = '', - raw_tag = '', - type = 'user', - sent = True, ) - ], - hash_tags = [ - client.models.comment_user_hash_tag_info.CommentUserHashTagInfo( - id = '', - tag = '', - url = '', - retain = True, ) - ], - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - domain = null, - veteran_badge_processed = '', - moderation_group_ids = [ - '' - ], - did_process_badges = True, - from_offline_restore = True, - autoplay_job_id = '', - autoplay_delay_ms = 56, - feedback_ids = [ - '' - ], - logs = [ - client.models.comment_log_entry.CommentLogEntry( - d = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - t = 0, - da = client.models.comment_log_data.CommentLogData( - clear_content = True, - is_deleted_user = True, - phrase = '', - bad_word = '', - word = '', - locale = '', - tenant_badge_id = '', - badge_id = '', - was_logged_in = True, - found_user = True, - verified = True, - engine = '', - engine_response = '', - engine_tokens = 1.337, - trust_factor = 1.337, - rule = client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ), - user_id = '', - subscribers = 1.337, - notification_count = 1.337, - votes_before = 1.337, - votes_up_before = 1.337, - votes_down_before = 1.337, - votes_after = 1.337, - votes_up_after = 1.337, - votes_down_after = 1.337, - repeat_action = 0, - reason = 0, - other_data = null, - spam_before = True, - spam_after = True, - permanent_flag = 'permanent', - approved_before = True, - approved_after = True, - reviewed_before = True, - reviewed_after = True, - text_before = '', - text_after = '', - expire_before = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - expire_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - flag_count_before = 1.337, - trust_factor_before = 1.337, - trust_factor_after = 1.337, - referenced_comment_id = '', - invalid_locale = '', - detected_locale = '', - detected_language = '', ), ) - ], - group_ids = [ - '' - ], - view_count = 56, - requires_verification = True, - edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - user = client.models.user_session_info.UserSessionInfo( - id = '', - authorized = True, - avatar_src = '', - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - display_label = '', - display_name = '', - email = '', - group_ids = [ - '' - ], - has_blocked_users = True, - is_anon_session = True, - needs_tos = True, - session_id = '', - username = '', - website_url = '', ), - module_data = { - 'key' : None - }, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return SaveComment200Response( - status = 'success', - comment = client.models.f_comment.FComment( - _id = '', - tenant_id = '', - url_id = '', - url_id_raw = '', - url = '', - page_title = '', - user_id = null, - anon_user_id = '', - commenter_email = '', - commenter_name = '', - commenter_link = '', - comment = '', - comment_html = '', - parent_id = '', - date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - local_date_string = '', - local_date_hours = 56, - votes = 56, - votes_up = 56, - votes_down = 56, - expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verified = True, - verified_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verification_id = '', - notification_sent_for_parent = True, - notification_sent_for_parent_tenant = True, - reviewed = True, - imported = True, - external_id = '', - external_parent_id = '', - avatar_src = '', - is_spam = True, - perm_not_spam = True, - ai_determined_spam = True, - has_images = True, - page_number = 56, - page_number_of = 56, - page_number_nf = 56, - has_links = True, - has_code = True, - approved = True, - locale = '', - is_deleted = True, - is_deleted_user = True, - is_banned_user = True, - is_by_admin = True, - is_by_moderator = True, - is_pinned = True, - is_locked = True, - flag_count = 56, - rating = 1.337, - display_label = '', - from_product_id = 56, - meta = { - 'key' : null - }, - ip_hash = '', - mentions = [ - client.models.comment_user_mention_info.CommentUserMentionInfo( - id = '', - tag = '', - raw_tag = '', - type = 'user', - sent = True, ) - ], - hash_tags = [ - client.models.comment_user_hash_tag_info.CommentUserHashTagInfo( - id = '', - tag = '', - url = '', - retain = True, ) - ], - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - domain = null, - veteran_badge_processed = '', - moderation_group_ids = [ - '' - ], - did_process_badges = True, - from_offline_restore = True, - autoplay_job_id = '', - autoplay_delay_ms = 56, - feedback_ids = [ - '' - ], - logs = [ - client.models.comment_log_entry.CommentLogEntry( - d = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - t = 0, - da = client.models.comment_log_data.CommentLogData( - clear_content = True, - is_deleted_user = True, - phrase = '', - bad_word = '', - word = '', - locale = '', - tenant_badge_id = '', - badge_id = '', - was_logged_in = True, - found_user = True, - verified = True, - engine = '', - engine_response = '', - engine_tokens = 1.337, - trust_factor = 1.337, - rule = client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ), - user_id = '', - subscribers = 1.337, - notification_count = 1.337, - votes_before = 1.337, - votes_up_before = 1.337, - votes_down_before = 1.337, - votes_after = 1.337, - votes_up_after = 1.337, - votes_down_after = 1.337, - repeat_action = 0, - reason = 0, - other_data = null, - spam_before = True, - spam_after = True, - permanent_flag = 'permanent', - approved_before = True, - approved_after = True, - reviewed_before = True, - reviewed_after = True, - text_before = '', - text_after = '', - expire_before = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - expire_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - flag_count_before = 1.337, - trust_factor_before = 1.337, - trust_factor_after = 1.337, - referenced_comment_id = '', - invalid_locale = '', - detected_locale = '', - detected_language = '', ), ) - ], - group_ids = [ - '' - ], - view_count = 56, - requires_verification = True, - edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - user = client.models.user_session_info.UserSessionInfo( - id = '', - authorized = True, - avatar_src = '', - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - display_label = '', - display_name = '', - email = '', - group_ids = [ - '' - ], - has_blocked_users = True, - is_anon_session = True, - needs_tos = True, - session_id = '', - username = '', - website_url = '', ), - reason = '', - code = '', - ) - """ - - def testSaveComment200Response(self): - """Test SaveComment200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_save_comment_response.py b/client/test/test_save_comment_response.py deleted file mode 100644 index e886888..0000000 --- a/client/test/test_save_comment_response.py +++ /dev/null @@ -1,431 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.save_comment_response import SaveCommentResponse - -class TestSaveCommentResponse(unittest.TestCase): - """SaveCommentResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SaveCommentResponse: - """Test SaveCommentResponse - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SaveCommentResponse` - """ - model = SaveCommentResponse() - if include_optional: - return SaveCommentResponse( - status = 'success', - comment = client.models.f_comment.FComment( - _id = '', - tenant_id = '', - url_id = '', - url_id_raw = '', - url = '', - page_title = '', - user_id = null, - anon_user_id = '', - commenter_email = '', - commenter_name = '', - commenter_link = '', - comment = '', - comment_html = '', - parent_id = '', - date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - local_date_string = '', - local_date_hours = 56, - votes = 56, - votes_up = 56, - votes_down = 56, - expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verified = True, - verified_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verification_id = '', - notification_sent_for_parent = True, - notification_sent_for_parent_tenant = True, - reviewed = True, - imported = True, - external_id = '', - external_parent_id = '', - avatar_src = '', - is_spam = True, - perm_not_spam = True, - ai_determined_spam = True, - has_images = True, - page_number = 56, - page_number_of = 56, - page_number_nf = 56, - has_links = True, - has_code = True, - approved = True, - locale = '', - is_deleted = True, - is_deleted_user = True, - is_banned_user = True, - is_by_admin = True, - is_by_moderator = True, - is_pinned = True, - is_locked = True, - flag_count = 56, - rating = 1.337, - display_label = '', - from_product_id = 56, - meta = { - 'key' : null - }, - ip_hash = '', - mentions = [ - client.models.comment_user_mention_info.CommentUserMentionInfo( - id = '', - tag = '', - raw_tag = '', - type = 'user', - sent = True, ) - ], - hash_tags = [ - client.models.comment_user_hash_tag_info.CommentUserHashTagInfo( - id = '', - tag = '', - url = '', - retain = True, ) - ], - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - domain = null, - veteran_badge_processed = '', - moderation_group_ids = [ - '' - ], - did_process_badges = True, - from_offline_restore = True, - autoplay_job_id = '', - autoplay_delay_ms = 56, - feedback_ids = [ - '' - ], - logs = [ - client.models.comment_log_entry.CommentLogEntry( - d = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - t = 0, - da = client.models.comment_log_data.CommentLogData( - clear_content = True, - is_deleted_user = True, - phrase = '', - bad_word = '', - word = '', - locale = '', - tenant_badge_id = '', - badge_id = '', - was_logged_in = True, - found_user = True, - verified = True, - engine = '', - engine_response = '', - engine_tokens = 1.337, - trust_factor = 1.337, - rule = client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ), - user_id = '', - subscribers = 1.337, - notification_count = 1.337, - votes_before = 1.337, - votes_up_before = 1.337, - votes_down_before = 1.337, - votes_after = 1.337, - votes_up_after = 1.337, - votes_down_after = 1.337, - repeat_action = 0, - reason = 0, - other_data = null, - spam_before = True, - spam_after = True, - permanent_flag = 'permanent', - approved_before = True, - approved_after = True, - reviewed_before = True, - reviewed_after = True, - text_before = '', - text_after = '', - expire_before = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - expire_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - flag_count_before = 1.337, - trust_factor_before = 1.337, - trust_factor_after = 1.337, - referenced_comment_id = '', - invalid_locale = '', - detected_locale = '', - detected_language = '', ), ) - ], - group_ids = [ - '' - ], - view_count = 56, - requires_verification = True, - edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - user = client.models.user_session_info.UserSessionInfo( - id = '', - authorized = True, - avatar_src = '', - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - display_label = '', - display_name = '', - email = '', - group_ids = [ - '' - ], - has_blocked_users = True, - is_anon_session = True, - needs_tos = True, - session_id = '', - username = '', - website_url = '', ), - module_data = { - 'key' : null - } - ) - else: - return SaveCommentResponse( - status = 'success', - comment = client.models.f_comment.FComment( - _id = '', - tenant_id = '', - url_id = '', - url_id_raw = '', - url = '', - page_title = '', - user_id = null, - anon_user_id = '', - commenter_email = '', - commenter_name = '', - commenter_link = '', - comment = '', - comment_html = '', - parent_id = '', - date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - local_date_string = '', - local_date_hours = 56, - votes = 56, - votes_up = 56, - votes_down = 56, - expire_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verified = True, - verified_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - verification_id = '', - notification_sent_for_parent = True, - notification_sent_for_parent_tenant = True, - reviewed = True, - imported = True, - external_id = '', - external_parent_id = '', - avatar_src = '', - is_spam = True, - perm_not_spam = True, - ai_determined_spam = True, - has_images = True, - page_number = 56, - page_number_of = 56, - page_number_nf = 56, - has_links = True, - has_code = True, - approved = True, - locale = '', - is_deleted = True, - is_deleted_user = True, - is_banned_user = True, - is_by_admin = True, - is_by_moderator = True, - is_pinned = True, - is_locked = True, - flag_count = 56, - rating = 1.337, - display_label = '', - from_product_id = 56, - meta = { - 'key' : null - }, - ip_hash = '', - mentions = [ - client.models.comment_user_mention_info.CommentUserMentionInfo( - id = '', - tag = '', - raw_tag = '', - type = 'user', - sent = True, ) - ], - hash_tags = [ - client.models.comment_user_hash_tag_info.CommentUserHashTagInfo( - id = '', - tag = '', - url = '', - retain = True, ) - ], - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - domain = null, - veteran_badge_processed = '', - moderation_group_ids = [ - '' - ], - did_process_badges = True, - from_offline_restore = True, - autoplay_job_id = '', - autoplay_delay_ms = 56, - feedback_ids = [ - '' - ], - logs = [ - client.models.comment_log_entry.CommentLogEntry( - d = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - t = 0, - da = client.models.comment_log_data.CommentLogData( - clear_content = True, - is_deleted_user = True, - phrase = '', - bad_word = '', - word = '', - locale = '', - tenant_badge_id = '', - badge_id = '', - was_logged_in = True, - found_user = True, - verified = True, - engine = '', - engine_response = '', - engine_tokens = 1.337, - trust_factor = 1.337, - rule = client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ), - user_id = '', - subscribers = 1.337, - notification_count = 1.337, - votes_before = 1.337, - votes_up_before = 1.337, - votes_down_before = 1.337, - votes_after = 1.337, - votes_up_after = 1.337, - votes_down_after = 1.337, - repeat_action = 0, - reason = 0, - other_data = null, - spam_before = True, - spam_after = True, - permanent_flag = 'permanent', - approved_before = True, - approved_after = True, - reviewed_before = True, - reviewed_after = True, - text_before = '', - text_after = '', - expire_before = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - expire_after = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), - flag_count_before = 1.337, - trust_factor_before = 1.337, - trust_factor_after = 1.337, - referenced_comment_id = '', - invalid_locale = '', - detected_locale = '', - detected_language = '', ), ) - ], - group_ids = [ - '' - ], - view_count = 56, - requires_verification = True, - edit_key = '', - tos_accepted_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), - user = client.models.user_session_info.UserSessionInfo( - id = '', - authorized = True, - avatar_src = '', - badges = [ - client.models.comment_user_badge_info.CommentUserBadgeInfo( - id = '', - type = 56, - description = '', - display_label = '', - display_src = '', - background_color = '', - border_color = '', - text_color = '', - css_class = '', ) - ], - display_label = '', - display_name = '', - email = '', - group_ids = [ - '' - ], - has_blocked_users = True, - is_anon_session = True, - needs_tos = True, - session_id = '', - username = '', - website_url = '', ), - ) - """ - - def testSaveCommentResponse(self): - """Test SaveCommentResponse""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_create_comment_public200_response.py b/client/test/test_save_comments_bulk_response.py similarity index 90% rename from client/test/test_create_comment_public200_response.py rename to client/test/test_save_comments_bulk_response.py index f0843ad..45f7af6 100644 --- a/client/test/test_create_comment_public200_response.py +++ b/client/test/test_save_comments_bulk_response.py @@ -14,10 +14,10 @@ import unittest -from client.models.create_comment_public200_response import CreateCommentPublic200Response +from client.models.save_comments_bulk_response import SaveCommentsBulkResponse -class TestCreateCommentPublic200Response(unittest.TestCase): - """CreateCommentPublic200Response unit test stubs""" +class TestSaveCommentsBulkResponse(unittest.TestCase): + """SaveCommentsBulkResponse unit test stubs""" def setUp(self): pass @@ -25,16 +25,16 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> CreateCommentPublic200Response: - """Test CreateCommentPublic200Response + def make_instance(self, include_optional) -> SaveCommentsBulkResponse: + """Test SaveCommentsBulkResponse include_optional is a boolean, when False only required params are included, when True both required and optional params are included """ - # uncomment below to create an instance of `CreateCommentPublic200Response` + # uncomment below to create an instance of `SaveCommentsBulkResponse` """ - model = CreateCommentPublic200Response() + model = SaveCommentsBulkResponse() if include_optional: - return CreateCommentPublic200Response( + return SaveCommentsBulkResponse( status = 'success', comment = None, user = client.models.user_session_info.UserSessionInfo( @@ -68,7 +68,6 @@ def make_instance(self, include_optional) -> CreateCommentPublic200Response: module_data = { 'key' : None }, - user_id_ws = '', reason = '', code = '', secondary_code = '', @@ -130,11 +129,16 @@ def make_instance(self, include_optional) -> CreateCommentPublic200Response: no_custom_config = True, mention_auto_complete_mode = null, no_image_uploads = True, + allow_embeds = True, + allowed_embed_domains = [ + '' + ], no_styles = True, page_size = 56, readonly = True, no_new_root_comments = True, require_sso = True, + enable_f_chat = True, enable_resize_handle = True, restricted_link_domains = [ '' @@ -163,6 +167,8 @@ def make_instance(self, include_optional) -> CreateCommentPublic200Response: widget_questions_required = 0, widget_sub_question_visibility = 0, wrap = True, + users_list_location = 0, + users_list_include_offline = True, ticket_base_url = '', ticket_kb_search_endpoint = '', ticket_file_uploads_enabled = True, @@ -178,7 +184,7 @@ def make_instance(self, include_optional) -> CreateCommentPublic200Response: last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) ) else: - return CreateCommentPublic200Response( + return SaveCommentsBulkResponse( status = 'success', comment = None, user = client.models.user_session_info.UserSessionInfo( @@ -214,8 +220,8 @@ def make_instance(self, include_optional) -> CreateCommentPublic200Response: ) """ - def testCreateCommentPublic200Response(self): - """Test CreateCommentPublic200Response""" + def testSaveCommentsBulkResponse(self): + """Test SaveCommentsBulkResponse""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/client/test/test_search_users200_response.py b/client/test/test_search_users200_response.py deleted file mode 100644 index b732cb6..0000000 --- a/client/test/test_search_users200_response.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.search_users200_response import SearchUsers200Response - -class TestSearchUsers200Response(unittest.TestCase): - """SearchUsers200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SearchUsers200Response: - """Test SearchUsers200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SearchUsers200Response` - """ - model = SearchUsers200Response() - if include_optional: - return SearchUsers200Response( - status = 'success', - sections = [ - client.models.user_search_section_result.UserSearchSectionResult( - section = 'moderators', - users = [ - client.models.user_search_result.UserSearchResult( - id = '', - name = '', - display_name = '', - avatar_src = '', - type = 'user', ) - ], ) - ], - users = [ - client.models.user_search_result.UserSearchResult( - id = '', - name = '', - display_name = '', - avatar_src = '', - type = 'user', ) - ], - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return SearchUsers200Response( - status = 'success', - sections = [ - client.models.user_search_section_result.UserSearchSectionResult( - section = 'moderators', - users = [ - client.models.user_search_result.UserSearchResult( - id = '', - name = '', - display_name = '', - avatar_src = '', - type = 'user', ) - ], ) - ], - users = [ - client.models.user_search_result.UserSearchResult( - id = '', - name = '', - display_name = '', - avatar_src = '', - type = 'user', ) - ], - reason = '', - code = '', - ) - """ - - def testSearchUsers200Response(self): - """Test SearchUsers200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_search_users_result.py b/client/test/test_search_users_result.py new file mode 100644 index 0000000..dea45a1 --- /dev/null +++ b/client/test/test_search_users_result.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.search_users_result import SearchUsersResult + +class TestSearchUsersResult(unittest.TestCase): + """SearchUsersResult unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SearchUsersResult: + """Test SearchUsersResult + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SearchUsersResult` + """ + model = SearchUsersResult() + if include_optional: + return SearchUsersResult( + status = 'success', + sections = [ + client.models.user_search_section_result.UserSearchSectionResult( + section = 'moderators', + users = [ + client.models.user_search_result.UserSearchResult( + id = '', + name = '', + display_name = '', + avatar_src = '', + type = 'user', ) + ], ) + ], + users = [ + client.models.user_search_result.UserSearchResult( + id = '', + name = '', + display_name = '', + avatar_src = '', + type = 'user', ) + ] + ) + else: + return SearchUsersResult( + status = 'success', + sections = [ + client.models.user_search_section_result.UserSearchSectionResult( + section = 'moderators', + users = [ + client.models.user_search_result.UserSearchResult( + id = '', + name = '', + display_name = '', + avatar_src = '', + type = 'user', ) + ], ) + ], + users = [ + client.models.user_search_result.UserSearchResult( + id = '', + name = '', + display_name = '', + avatar_src = '', + type = 'user', ) + ], + ) + """ + + def testSearchUsersResult(self): + """Test SearchUsersResult""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_set_comment_approved_response.py b/client/test/test_set_comment_approved_response.py new file mode 100644 index 0000000..e656389 --- /dev/null +++ b/client/test/test_set_comment_approved_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.set_comment_approved_response import SetCommentApprovedResponse + +class TestSetCommentApprovedResponse(unittest.TestCase): + """SetCommentApprovedResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetCommentApprovedResponse: + """Test SetCommentApprovedResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SetCommentApprovedResponse` + """ + model = SetCommentApprovedResponse() + if include_optional: + return SetCommentApprovedResponse( + did_reset_flagged_count = True, + status = 'success' + ) + else: + return SetCommentApprovedResponse( + status = 'success', + ) + """ + + def testSetCommentApprovedResponse(self): + """Test SetCommentApprovedResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_set_comment_text200_response.py b/client/test/test_set_comment_text200_response.py deleted file mode 100644 index 708dd67..0000000 --- a/client/test/test_set_comment_text200_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.set_comment_text200_response import SetCommentText200Response - -class TestSetCommentText200Response(unittest.TestCase): - """SetCommentText200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> SetCommentText200Response: - """Test SetCommentText200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `SetCommentText200Response` - """ - model = SetCommentText200Response() - if include_optional: - return SetCommentText200Response( - comment = client.models.set_comment_text_result.SetCommentTextResult( - approved = True, - comment_html = '', ), - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return SetCommentText200Response( - comment = client.models.set_comment_text_result.SetCommentTextResult( - approved = True, - comment_html = '', ), - status = 'success', - reason = '', - code = '', - ) - """ - - def testSetCommentText200Response(self): - """Test SetCommentText200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_set_comment_text_params.py b/client/test/test_set_comment_text_params.py new file mode 100644 index 0000000..6e1484c --- /dev/null +++ b/client/test/test_set_comment_text_params.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.set_comment_text_params import SetCommentTextParams + +class TestSetCommentTextParams(unittest.TestCase): + """SetCommentTextParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetCommentTextParams: + """Test SetCommentTextParams + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SetCommentTextParams` + """ + model = SetCommentTextParams() + if include_optional: + return SetCommentTextParams( + comment = '' + ) + else: + return SetCommentTextParams( + comment = '', + ) + """ + + def testSetCommentTextParams(self): + """Test SetCommentTextParams""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_set_comment_text_response.py b/client/test/test_set_comment_text_response.py new file mode 100644 index 0000000..ddc02cc --- /dev/null +++ b/client/test/test_set_comment_text_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.set_comment_text_response import SetCommentTextResponse + +class TestSetCommentTextResponse(unittest.TestCase): + """SetCommentTextResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetCommentTextResponse: + """Test SetCommentTextResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SetCommentTextResponse` + """ + model = SetCommentTextResponse() + if include_optional: + return SetCommentTextResponse( + new_comment_text_html = '', + status = 'success' + ) + else: + return SetCommentTextResponse( + new_comment_text_html = '', + status = 'success', + ) + """ + + def testSetCommentTextResponse(self): + """Test SetCommentTextResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_set_user_trust_factor_response.py b/client/test/test_set_user_trust_factor_response.py new file mode 100644 index 0000000..06d8df1 --- /dev/null +++ b/client/test/test_set_user_trust_factor_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.set_user_trust_factor_response import SetUserTrustFactorResponse + +class TestSetUserTrustFactorResponse(unittest.TestCase): + """SetUserTrustFactorResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SetUserTrustFactorResponse: + """Test SetUserTrustFactorResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `SetUserTrustFactorResponse` + """ + model = SetUserTrustFactorResponse() + if include_optional: + return SetUserTrustFactorResponse( + previous_manual_trust_factor = 1.337, + status = 'success' + ) + else: + return SetUserTrustFactorResponse( + status = 'success', + ) + """ + + def testSetUserTrustFactorResponse(self): + """Test SetUserTrustFactorResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_tenant_badge.py b/client/test/test_tenant_badge.py new file mode 100644 index 0000000..7477ab8 --- /dev/null +++ b/client/test/test_tenant_badge.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.tenant_badge import TenantBadge + +class TestTenantBadge(unittest.TestCase): + """TenantBadge unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> TenantBadge: + """Test TenantBadge + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `TenantBadge` + """ + model = TenantBadge() + if include_optional: + return TenantBadge( + id = '', + tenant_id = '', + created_by_user_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + enabled = True, + url_id = '', + type = 1.337, + threshold = 1.337, + uses = 1.337, + name = '', + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + css_class = '', + veteran_user_threshold_millis = 1.337, + is_awaiting_reprocess = True, + is_awaiting_deletion = True, + replaces_badge_id = '' + ) + else: + return TenantBadge( + id = '', + tenant_id = '', + created_by_user_id = '', + created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + enabled = True, + type = 1.337, + threshold = 1.337, + uses = 1.337, + name = '', + description = '', + display_label = '', + display_src = '', + background_color = '', + border_color = '', + text_color = '', + is_awaiting_reprocess = True, + is_awaiting_deletion = True, + ) + """ + + def testTenantBadge(self): + """Test TenantBadge""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_tenant_package.py b/client/test/test_tenant_package.py index 42b0132..c3aacac 100644 --- a/client/test/test_tenant_package.py +++ b/client/test/test_tenant_package.py @@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> TenantPackage: name = '', tenant_id = '', created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), + template_id = '', monthly_cost_usd = 1.337, yearly_cost_usd = 1.337, monthly_stripe_plan_id = '', @@ -84,13 +85,19 @@ def make_instance(self, include_optional) -> TenantPackage: flex_domain_unit = 1.337, flex_chat_gpt_cost_cents = 1.337, flex_chat_gpt_unit = 1.337, + flex_llm_cost_cents = 1.337, + flex_llm_unit = 1.337, flex_minimum_cost_cents = 1.337, flex_managed_tenant_cost_cents = 1.337, flex_sso_admin_cost_cents = 1.337, flex_sso_admin_unit = 1.337, flex_sso_moderator_cost_cents = 1.337, flex_sso_moderator_unit = 1.337, - is_sso_billing_monthly_active_users = True + is_sso_billing_monthly_active_users = True, + has_ai_agents = True, + max_ai_agents = 1.337, + ai_agent_daily_budget_cents = 1.337, + ai_agent_monthly_budget_cents = 1.337 ) else: return TenantPackage( diff --git a/client/test/test_un_block_comment_public200_response.py b/client/test/test_un_block_comment_public200_response.py deleted file mode 100644 index 7f2bb15..0000000 --- a/client/test/test_un_block_comment_public200_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.un_block_comment_public200_response import UnBlockCommentPublic200Response - -class TestUnBlockCommentPublic200Response(unittest.TestCase): - """UnBlockCommentPublic200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UnBlockCommentPublic200Response: - """Test UnBlockCommentPublic200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UnBlockCommentPublic200Response` - """ - model = UnBlockCommentPublic200Response() - if include_optional: - return UnBlockCommentPublic200Response( - status = 'success', - comment_statuses = { - 'key' : True - }, - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return UnBlockCommentPublic200Response( - status = 'success', - comment_statuses = { - 'key' : True - }, - reason = '', - code = '', - ) - """ - - def testUnBlockCommentPublic200Response(self): - """Test UnBlockCommentPublic200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_update_user_badge200_response.py b/client/test/test_update_user_badge200_response.py deleted file mode 100644 index 7dd99ec..0000000 --- a/client/test/test_update_user_badge200_response.py +++ /dev/null @@ -1,161 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.update_user_badge200_response import UpdateUserBadge200Response - -class TestUpdateUserBadge200Response(unittest.TestCase): - """UpdateUserBadge200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdateUserBadge200Response: - """Test UpdateUserBadge200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdateUserBadge200Response` - """ - model = UpdateUserBadge200Response() - if include_optional: - return UpdateUserBadge200Response( - status = 'success', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return UpdateUserBadge200Response( - status = 'success', - reason = '', - code = '', - ) - """ - - def testUpdateUserBadge200Response(self): - """Test UpdateUserBadge200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_update_user_notification_comment_subscription_status_response.py b/client/test/test_update_user_notification_comment_subscription_status_response.py new file mode 100644 index 0000000..576dbfc --- /dev/null +++ b/client/test/test_update_user_notification_comment_subscription_status_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.update_user_notification_comment_subscription_status_response import UpdateUserNotificationCommentSubscriptionStatusResponse + +class TestUpdateUserNotificationCommentSubscriptionStatusResponse(unittest.TestCase): + """UpdateUserNotificationCommentSubscriptionStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateUserNotificationCommentSubscriptionStatusResponse: + """Test UpdateUserNotificationCommentSubscriptionStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateUserNotificationCommentSubscriptionStatusResponse` + """ + model = UpdateUserNotificationCommentSubscriptionStatusResponse() + if include_optional: + return UpdateUserNotificationCommentSubscriptionStatusResponse( + status = 'success', + matched_count = 56, + modified_count = 56, + note = 'ignored-since-impersonated' + ) + else: + return UpdateUserNotificationCommentSubscriptionStatusResponse( + status = 'success', + matched_count = 56, + modified_count = 56, + note = 'ignored-since-impersonated', + ) + """ + + def testUpdateUserNotificationCommentSubscriptionStatusResponse(self): + """Test UpdateUserNotificationCommentSubscriptionStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_update_user_notification_page_subscription_status_response.py b/client/test/test_update_user_notification_page_subscription_status_response.py new file mode 100644 index 0000000..254224c --- /dev/null +++ b/client/test/test_update_user_notification_page_subscription_status_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.update_user_notification_page_subscription_status_response import UpdateUserNotificationPageSubscriptionStatusResponse + +class TestUpdateUserNotificationPageSubscriptionStatusResponse(unittest.TestCase): + """UpdateUserNotificationPageSubscriptionStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateUserNotificationPageSubscriptionStatusResponse: + """Test UpdateUserNotificationPageSubscriptionStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateUserNotificationPageSubscriptionStatusResponse` + """ + model = UpdateUserNotificationPageSubscriptionStatusResponse() + if include_optional: + return UpdateUserNotificationPageSubscriptionStatusResponse( + status = 'success', + matched_count = 56, + modified_count = 56, + note = 'ignored-since-impersonated' + ) + else: + return UpdateUserNotificationPageSubscriptionStatusResponse( + status = 'success', + matched_count = 56, + modified_count = 56, + note = 'ignored-since-impersonated', + ) + """ + + def testUpdateUserNotificationPageSubscriptionStatusResponse(self): + """Test UpdateUserNotificationPageSubscriptionStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_update_user_notification_status200_response.py b/client/test/test_update_user_notification_status200_response.py deleted file mode 100644 index 4d44cb3..0000000 --- a/client/test/test_update_user_notification_status200_response.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.update_user_notification_status200_response import UpdateUserNotificationStatus200Response - -class TestUpdateUserNotificationStatus200Response(unittest.TestCase): - """UpdateUserNotificationStatus200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> UpdateUserNotificationStatus200Response: - """Test UpdateUserNotificationStatus200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `UpdateUserNotificationStatus200Response` - """ - model = UpdateUserNotificationStatus200Response() - if include_optional: - return UpdateUserNotificationStatus200Response( - status = 'success', - matched_count = 56, - modified_count = 56, - note = 'ignored-since-impersonated', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return UpdateUserNotificationStatus200Response( - status = 'success', - matched_count = 56, - modified_count = 56, - note = 'ignored-since-impersonated', - reason = '', - code = '', - ) - """ - - def testUpdateUserNotificationStatus200Response(self): - """Test UpdateUserNotificationStatus200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() diff --git a/client/test/test_update_user_notification_status_response.py b/client/test/test_update_user_notification_status_response.py new file mode 100644 index 0000000..0beede2 --- /dev/null +++ b/client/test/test_update_user_notification_status_response.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.update_user_notification_status_response import UpdateUserNotificationStatusResponse + +class TestUpdateUserNotificationStatusResponse(unittest.TestCase): + """UpdateUserNotificationStatusResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateUserNotificationStatusResponse: + """Test UpdateUserNotificationStatusResponse + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # uncomment below to create an instance of `UpdateUserNotificationStatusResponse` + """ + model = UpdateUserNotificationStatusResponse() + if include_optional: + return UpdateUserNotificationStatusResponse( + status = 'success', + matched_count = 56, + modified_count = 56, + note = 'ignored-since-impersonated' + ) + else: + return UpdateUserNotificationStatusResponse( + status = 'success', + matched_count = 56, + modified_count = 56, + note = 'ignored-since-impersonated', + ) + """ + + def testUpdateUserNotificationStatusResponse(self): + """Test UpdateUserNotificationStatusResponse""" + # inst_req_only = self.make_instance(include_optional=False) + # inst_req_and_optional = self.make_instance(include_optional=True) + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_user.py b/client/test/test_user.py index 4b61542..392b852 100644 --- a/client/test/test_user.py +++ b/client/test/test_user.py @@ -76,6 +76,7 @@ def make_instance(self, include_optional) -> User: digest_email_frequency = -1, notification_frequency = 1.337, admin_notification_frequency = 1.337, + agent_approval_notification_frequency = -1, last_tenant_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), last_reply_notification_sent_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ignored_add_to_my_site_messages = True, diff --git a/client/test/test_users_list_location.py b/client/test/test_users_list_location.py new file mode 100644 index 0000000..2ea0dbc --- /dev/null +++ b/client/test/test_users_list_location.py @@ -0,0 +1,33 @@ +# coding: utf-8 + +""" + 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 OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from client.models.users_list_location import UsersListLocation + +class TestUsersListLocation(unittest.TestCase): + """UsersListLocation unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUsersListLocation(self): + """Test UsersListLocation""" + # inst = UsersListLocation() + +if __name__ == '__main__': + unittest.main() diff --git a/client/test/test_vote_comment200_response.py b/client/test/test_vote_comment200_response.py deleted file mode 100644 index 656d537..0000000 --- a/client/test/test_vote_comment200_response.py +++ /dev/null @@ -1,166 +0,0 @@ -# coding: utf-8 - -""" - 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 OpenAPI Generator (https://openapi-generator.tech) - - Do not edit the class manually. -""" # noqa: E501 - - -import unittest - -from client.models.vote_comment200_response import VoteComment200Response - -class TestVoteComment200Response(unittest.TestCase): - """VoteComment200Response unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional) -> VoteComment200Response: - """Test VoteComment200Response - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # uncomment below to create an instance of `VoteComment200Response` - """ - model = VoteComment200Response() - if include_optional: - return VoteComment200Response( - status = 'success', - vote_id = '', - is_verified = True, - user = client.models.vote_response_user.VoteResponseUser( - session_id = '', ), - edit_key = '', - reason = '', - code = '', - secondary_code = '', - banned_until = 56, - max_character_length = 56, - translated_error = '', - custom_config = client.models.custom_config_parameters.CustomConfigParameters( - absolute_and_relative_dates = True, - absolute_dates = True, - allow_anon = True, - allow_anon_flag = True, - allow_anon_votes = True, - allowed_languages = [ - '' - ], - collapse_replies = True, - comment_count_format = '', - comment_html_rendering_mode = 0, - comment_thread_delete_mode = null, - commenter_name_format = null, - count_above_toggle = 56, - custom_css = '', - default_avatar_src = '', - default_sort_direction = null, - default_username = '', - disable_auto_admin_migration = True, - disable_auto_hash_tag_creation = True, - disable_blocking = True, - disable_commenter_comment_delete = True, - disable_commenter_comment_edit = True, - disable_email_inputs = True, - disable_live_commenting = True, - disable_notification_bell = True, - disable_profile_comments = True, - disable_profile_direct_messages = True, - disable_profiles = True, - disable_success_message = True, - disable_toolbar = True, - disable_unverified_label = True, - disable_voting = True, - enable_commenter_links = True, - enable_search = True, - enable_spoilers = True, - enable_third_party_cookie_bypass = True, - enable_view_counts = True, - enable_vote_list = True, - enable_wysiwyg = True, - gif_rating = 'g', - has_dark_background = True, - header_html = '', - hide_avatars = True, - hide_comments_under_count_text_format = '', - image_content_profanity_level = 'off', - input_after_comments = True, - limit_comments_by_groups = True, - locale = '', - max_comment_character_length = 56, - max_comment_created_count_pupm = 56, - no_custom_config = True, - mention_auto_complete_mode = null, - no_image_uploads = True, - no_styles = True, - page_size = 56, - readonly = True, - no_new_root_comments = True, - require_sso = True, - enable_resize_handle = True, - restricted_link_domains = [ - '' - ], - show_badges_in_top_bar = True, - show_comment_save_success = True, - show_live_right_away = True, - show_question = True, - spam_rules = [ - client.models.spam_rule.SpamRule( - actions = [ - 'spam' - ], - comment_contains = '', ) - ], - sso_sec_lvl = 0, - translations = null, - use_show_comments_toggle = True, - use_single_line_comment_input = True, - vote_style = 0, - widget_question_id = '', - widget_question_results_style = 0, - widget_question_show_breakdown = True, - widget_question_style = 0, - widget_question_when_to_save = 0, - widget_questions_required = 0, - widget_sub_question_visibility = 0, - wrap = True, - ticket_base_url = '', - ticket_kb_search_endpoint = '', - ticket_file_uploads_enabled = True, - ticket_max_file_size = 56, - ticket_auto_assign_user_ids = [ - '' - ], - tos = client.models.tos_config.TOSConfig( - enabled = True, - text_by_locale = { - 'key' : '' - }, - last_updated = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ), ) - ) - else: - return VoteComment200Response( - status = 'success', - reason = '', - code = '', - ) - """ - - def testVoteComment200Response(self): - """Test VoteComment200Response""" - # inst_req_only = self.make_instance(include_optional=False) - # inst_req_and_optional = self.make_instance(include_optional=True) - -if __name__ == '__main__': - unittest.main() 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" + } + ] } } }