From 59a066c09c6896a51defdbec20a0711ff76ac96f Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 21:54:26 -0700 Subject: [PATCH 1/6] Regenerate SDK: add Moderation API + stable response types - Add new Moderation API (43 moderator-dashboard endpoints): comment moderation, bans, badges, trust factor, search; all accept sso param. - Response types are now the real success type directly; APIError is a default error response. Shapes unchanged. Regenerated from openapi.json with swift6 generator (config.json). --- client/.openapi-generator-ignore | 3 - client/.openapi-generator/FILES | 391 +- client/.openapi-generator/VERSION | 2 +- client/FastCommentsSwift.podspec | 8 +- .../FastCommentsSwift/APIs/DefaultAPI.swift | 1120 +- .../APIs/ModerationAPI.swift | 1919 ++ client/FastCommentsSwift/APIs/PublicAPI.swift | 1286 +- .../Infrastructure/APIHelper.swift | 2 +- .../Infrastructure/APIs.swift | 167 +- .../Infrastructure/CodableHelper.swift | 63 +- .../Infrastructure/Extensions.swift | 16 +- .../Infrastructure/Models.swift | 23 +- .../Infrastructure/OpenAPIMutex.swift | 28 + .../SynchronizedDictionary.swift | 17 +- .../Infrastructure/Validation.swift | 10 +- .../Models/APIAuditLog.swift | 2 +- .../Models/APIBanUserChangeLog.swift | 41 + .../Models/APIBanUserChangedValues.swift | 77 + .../Models/APIBannedUser.swift | 77 + .../APIBannedUserWithMultiMatchInfo.swift | 61 + .../FastCommentsSwift/Models/APIComment.swift | 3 +- .../Models/APICommentBase.swift | 3 +- .../Models/APICommentBaseMeta.swift | 2 +- .../Models/APICommentCommonBannedUser.swift | 57 + .../Models/APICreateUserBadgeResponse.swift | 2 +- .../Models/APIDomainConfiguration.swift | 3 +- .../Models/APIEmptyResponse.swift | 2 +- .../Models/APIEmptySuccessResponse.swift | 2 +- .../FastCommentsSwift/Models/APIError.swift | 2 +- .../Models/APIGetCommentResponse.swift | 2 +- .../Models/APIGetCommentsResponse.swift | 2 +- .../APIGetUserBadgeProgressListResponse.swift | 2 +- .../APIGetUserBadgeProgressResponse.swift | 2 +- .../Models/APIGetUserBadgeResponse.swift | 2 +- .../Models/APIGetUserBadgesResponse.swift | 2 +- ...oderateGetUserBanPreferencesResponse.swift | 33 + .../APIModerateUserBanPreferences.swift | 41 + client/FastCommentsSwift/Models/APIPage.swift | 3 +- .../FastCommentsSwift/Models/APISSOUser.swift | 3 +- .../Models/APISaveCommentResponse.swift | 2 +- .../FastCommentsSwift/Models/APITenant.swift | 3 +- .../Models/APITenantDailyUsage.swift | 3 +- .../FastCommentsSwift/Models/APITicket.swift | 2 +- .../Models/APITicketDetail.swift | 2 +- .../Models/APITicketFile.swift | 3 +- .../Models/APIUserSubscription.swift | 3 +- .../Models/AddDomainConfigParams.swift | 2 +- ...se.swift => AddDomainConfigResponse.swift} | 4 +- ...ift => AddDomainConfigResponseAnyOf.swift} | 4 +- .../Models/AddHashTag200Response.swift | 61 - .../Models/AddHashTagsBulk200Response.swift | 61 - .../Models/AddPageAPIResponse.swift | 2 +- .../Models/AddSSOUserAPIResponse.swift | 2 +- .../Models/AdjustCommentVotesParams.swift | 29 + .../Models/AdjustVotesResponse.swift | 33 + .../AggregateQuestionResults200Response.swift | 61 - .../AggregateQuestionResultsResponse.swift | 2 +- .../Models/AggregateResponse.swift | 49 + .../Models/AggregationAPIError.swift | 41 + .../Models/AggregationItem.swift | 2 +- .../Models/AggregationOperation.swift | 2 +- .../Models/AggregationRequest.swift | 2 +- .../Models/AggregationRequestSort.swift | 2 +- .../Models/AggregationResponse.swift | 2 +- .../Models/AggregationResponseStats.swift | 2 +- .../Models/AggregationValue.swift | 2 +- .../Models/AwardUserBadgeResponse.swift | 37 + .../Models/BanUserFromCommentResult.swift | 41 + .../Models/BanUserUndoParams.swift | 29 + .../Models/BannedUserMatch.swift | 33 + ...ft => BannedUserMatchMatchedOnValue.swift} | 4 +- .../Models/BannedUserMatchType.swift | 15 + .../Models/BillingInfo.swift | 2 +- .../Models/BlockFromCommentParams.swift | 2 +- .../BlockFromCommentPublic200Response.swift | 62 - .../Models/BlockSuccess.swift | 2 +- .../Models/BuildModerationFilterParams.swift | 82 + .../BuildModerationFilterResponse.swift | 33 + .../Models/BulkAggregateQuestionItem.swift | 2 +- ...kAggregateQuestionResults200Response.swift | 62 - .../BulkAggregateQuestionResultsRequest.swift | 2 +- ...BulkAggregateQuestionResultsResponse.swift | 2 +- .../Models/BulkCreateHashTagsBody.swift | 2 +- .../BulkCreateHashTagsBodyTagsInner.swift | 2 +- .../Models/BulkCreateHashTagsResponse.swift | 6 +- ...kCreateHashTagsResponseResultsInner.swift} | 4 +- .../Models/BulkPreBanParams.swift | 29 + .../Models/BulkPreBanSummary.swift | 49 + .../ChangeCommentPinStatusResponse.swift | 2 +- .../Models/ChangeTicketState200Response.swift | 61 - .../Models/ChangeTicketStateBody.swift | 2 +- .../Models/ChangeTicketStateResponse.swift | 2 +- .../Models/CheckBlockedCommentsResponse.swift | 2 +- ...CheckedCommentsForBlocked200Response.swift | 62 - ...mmentsWithQuestionResults200Response.swift | 61 - ...eQuestionResultsWithCommentsResponse.swift | 2 +- .../Models/CommentData.swift | 10 +- .../Models/CommentLogData.swift | 8 +- .../Models/CommentLogEntry.swift | 2 +- .../Models/CommentTextUpdateRequest.swift | 2 +- .../Models/CommentUserBadgeInfo.swift | 3 +- .../Models/CommentUserHashTagInfo.swift | 3 +- .../Models/CommentUserMentionInfo.swift | 3 +- .../Models/CommentsByIdsParams.swift | 29 + .../Models/CreateAPIPageData.swift | 2 +- .../Models/CreateAPISSOUserData.swift | 3 +- .../CreateAPIUserSubscriptionData.swift | 2 +- .../Models/CreateCommentParams.swift | 10 +- .../CreateCommentPublic200Response.swift | 74 - .../CreateEmailTemplate200Response.swift | 61 - .../Models/CreateEmailTemplateBody.swift | 2 +- .../Models/CreateEmailTemplateResponse.swift | 2 +- .../Models/CreateFeedPost200Response.swift | 61 - .../Models/CreateFeedPostParams.swift | 2 +- .../CreateFeedPostPublic200Response.swift | 61 - .../Models/CreateFeedPostResponse.swift | 2 +- .../Models/CreateFeedPostsResponse.swift | 2 +- .../Models/CreateHashTagBody.swift | 2 +- .../Models/CreateHashTagResponse.swift | 2 +- .../Models/CreateModerator200Response.swift | 61 - .../Models/CreateModeratorBody.swift | 2 +- .../Models/CreateModeratorResponse.swift | 2 +- .../CreateQuestionConfig200Response.swift | 61 - .../Models/CreateQuestionConfigBody.swift | 2 +- .../Models/CreateQuestionConfigResponse.swift | 2 +- .../CreateQuestionResult200Response.swift | 61 - .../Models/CreateQuestionResultBody.swift | 2 +- .../Models/CreateQuestionResultResponse.swift | 2 +- .../CreateSubscriptionAPIResponse.swift | 2 +- .../Models/CreateTenant200Response.swift | 61 - .../Models/CreateTenantBody.swift | 2 +- .../CreateTenantPackage200Response.swift | 61 - .../Models/CreateTenantPackageBody.swift | 2 +- .../Models/CreateTenantPackageResponse.swift | 2 +- .../Models/CreateTenantResponse.swift | 2 +- .../Models/CreateTenantUser200Response.swift | 61 - .../Models/CreateTenantUserBody.swift | 2 +- .../Models/CreateTenantUserResponse.swift | 2 +- .../Models/CreateTicket200Response.swift | 61 - .../Models/CreateTicketBody.swift | 2 +- .../Models/CreateTicketResponse.swift | 2 +- .../Models/CreateUserBadge200Response.swift | 65 - .../Models/CreateUserBadgeParams.swift | 2 +- .../Models/CreateV1PageReact.swift | 33 + .../Models/CustomConfigParameters.swift | 24 +- .../Models/CustomEmailTemplate.swift | 2 +- .../Models/DeleteComment200Response.swift | 61 - .../DeleteCommentPublic200Response.swift | 65 - .../Models/DeleteCommentResult.swift | 2 +- .../Models/DeleteCommentVote200Response.swift | 61 - ...swift => DeleteDomainConfigResponse.swift} | 4 +- .../DeleteFeedPostPublic200Response.swift | 57 - ...ift => DeleteFeedPostPublicResponse.swift} | 4 +- ...t.swift => DeleteHashTagRequestBody.swift} | 4 +- .../Models/DeletePageAPIResponse.swift | 2 +- .../Models/DeleteSSOUserAPIResponse.swift | 2 +- .../DeleteSubscriptionAPIResponse.swift | 2 +- .../Models/DeletedCommentResultComment.swift | 2 +- .../Models/EmailTemplateDefinition.swift | 2 +- .../EmailTemplateRenderErrorResponse.swift | 3 +- .../Models/EventLogEntry.swift | 2 +- .../FastCommentsSwift/Models/FComment.swift | 8 +- .../Models/FCommentMeta.swift | 2 +- .../FastCommentsSwift/Models/FeedPost.swift | 2 +- .../Models/FeedPostLink.swift | 2 +- .../Models/FeedPostMediaItem.swift | 2 +- .../Models/FeedPostMediaItemAsset.swift | 2 +- .../Models/FeedPostStats.swift | 2 +- .../Models/FeedPostsStatsResponse.swift | 2 +- .../Models/FindCommentsByRangeItem.swift | 2 +- .../Models/FindCommentsByRangeResponse.swift | 2 +- .../Models/FlagComment200Response.swift | 65 - .../Models/FlagCommentPublic200Response.swift | 57 - .../Models/FlagCommentResponse.swift | 2 +- .../Models/GetAuditLogs200Response.swift | 61 - .../Models/GetAuditLogsResponse.swift | 2 +- .../Models/GetBannedUsersCountResponse.swift | 33 + .../GetBannedUsersFromCommentResponse.swift | 41 + ...etCachedNotificationCount200Response.swift | 61 - .../GetCachedNotificationCountResponse.swift | 2 +- .../Models/GetComment200Response.swift | 61 - .../Models/GetCommentBanStatusResponse.swift | 37 + .../Models/GetCommentText200Response.swift | 65 - .../Models/GetCommentTextResponse.swift | 33 + .../GetCommentVoteUserNames200Response.swift | 65 - ...tCommentVoteUserNamesSuccessResponse.swift | 2 +- .../Models/GetComments200Response.swift | 61 - .../Models/GetCommentsForUserResponse.swift | 29 + .../Models/GetCommentsPublic200Response.swift | 150 - .../GetCommentsResponsePublicComment.swift | 2 +- ...ntsResponseWithPresencePublicComment.swift | 2 +- ...se.swift => GetDomainConfigResponse.swift} | 4 +- ...e.swift => GetDomainConfigsResponse.swift} | 4 +- ...ft => GetDomainConfigsResponseAnyOf.swift} | 4 +- ...t => GetDomainConfigsResponseAnyOf1.swift} | 4 +- .../Models/GetEmailTemplate200Response.swift | 61 - ...tEmailTemplateDefinitions200Response.swift | 61 - .../GetEmailTemplateDefinitionsResponse.swift | 2 +- ...EmailTemplateRenderErrors200Response.swift | 61 - ...GetEmailTemplateRenderErrorsResponse.swift | 2 +- .../Models/GetEmailTemplateResponse.swift | 2 +- .../Models/GetEmailTemplates200Response.swift | 61 - .../Models/GetEmailTemplatesResponse.swift | 2 +- .../Models/GetEventLog200Response.swift | 61 - .../Models/GetEventLogResponse.swift | 2 +- .../Models/GetFeedPosts200Response.swift | 61 - .../GetFeedPostsPublic200Response.swift | 81 - .../Models/GetFeedPostsResponse.swift | 2 +- .../Models/GetFeedPostsStats200Response.swift | 61 - .../Models/GetGifsSearchResponse.swift | 37 + .../Models/GetGifsTrendingResponse.swift | 37 + .../Models/GetHashTags200Response.swift | 61 - .../Models/GetHashTagsResponse.swift | 2 +- .../Models/GetModerator200Response.swift | 61 - .../Models/GetModeratorResponse.swift | 2 +- .../Models/GetModerators200Response.swift | 61 - .../Models/GetModeratorsResponse.swift | 2 +- .../Models/GetMyNotificationsResponse.swift | 2 +- .../GetNotificationCount200Response.swift | 61 - .../Models/GetNotificationCountResponse.swift | 2 +- .../Models/GetNotifications200Response.swift | 61 - .../Models/GetNotificationsResponse.swift | 2 +- .../Models/GetPageByURLIdAPIResponse.swift | 2 +- .../Models/GetPagesAPIResponse.swift | 2 +- ...tPendingWebhookEventCount200Response.swift | 61 - .../GetPendingWebhookEventCountResponse.swift | 2 +- .../GetPendingWebhookEvents200Response.swift | 61 - .../GetPendingWebhookEventsResponse.swift | 2 +- .../Models/GetPublicFeedPostsResponse.swift | 2 +- .../Models/GetPublicPagesResponse.swift | 37 + .../Models/GetQuestionConfig200Response.swift | 61 - .../Models/GetQuestionConfigResponse.swift | 2 +- .../GetQuestionConfigs200Response.swift | 61 - .../Models/GetQuestionConfigsResponse.swift | 2 +- .../Models/GetQuestionResult200Response.swift | 61 - .../Models/GetQuestionResultResponse.swift | 2 +- .../GetQuestionResults200Response.swift | 61 - .../Models/GetQuestionResultsResponse.swift | 2 +- .../Models/GetSSOUserByEmailAPIResponse.swift | 2 +- .../Models/GetSSOUserByIdAPIResponse.swift | 2 +- ...sponse.swift => GetSSOUsersResponse.swift} | 4 +- .../Models/GetSubscriptionsAPIResponse.swift | 2 +- .../Models/GetTenant200Response.swift | 61 - .../GetTenantDailyUsages200Response.swift | 61 - .../Models/GetTenantDailyUsagesResponse.swift | 2 +- .../GetTenantManualBadgesResponse.swift | 33 + .../Models/GetTenantPackage200Response.swift | 61 - .../Models/GetTenantPackageResponse.swift | 2 +- .../Models/GetTenantPackages200Response.swift | 61 - .../Models/GetTenantPackagesResponse.swift | 2 +- .../Models/GetTenantResponse.swift | 2 +- .../Models/GetTenantUser200Response.swift | 61 - .../Models/GetTenantUserResponse.swift | 2 +- .../Models/GetTenantUsers200Response.swift | 61 - .../Models/GetTenantUsersResponse.swift | 2 +- .../Models/GetTenants200Response.swift | 61 - .../Models/GetTenantsResponse.swift | 2 +- .../Models/GetTicket200Response.swift | 65 - .../Models/GetTicketResponse.swift | 2 +- .../Models/GetTickets200Response.swift | 61 - .../Models/GetTicketsResponse.swift | 2 +- .../Models/GetTranslationsResponse.swift | 34 + .../Models/GetUser200Response.swift | 61 - .../Models/GetUserBadge200Response.swift | 61 - .../GetUserBadgeProgressById200Response.swift | 61 - .../GetUserBadgeProgressList200Response.swift | 61 - .../Models/GetUserBadges200Response.swift | 61 - .../GetUserInternalProfileResponse.swift | 33 + ...etUserInternalProfileResponseProfile.swift | 93 + .../Models/GetUserManualBadgesResponse.swift | 33 + .../GetUserNotificationCount200Response.swift | 61 - .../GetUserNotificationCountResponse.swift | 2 +- .../GetUserNotifications200Response.swift | 74 - .../GetUserPresenceStatuses200Response.swift | 62 - .../GetUserPresenceStatusesResponse.swift | 2 +- .../GetUserReactsPublic200Response.swift | 61 - .../Models/GetUserResponse.swift | 2 +- .../Models/GetUserTrustFactorResponse.swift | 37 + .../Models/GetV1PageLikes.swift | 45 + .../Models/GetV2PageReactUsersResponse.swift | 33 + .../Models/GetV2PageReacts.swift | 38 + .../Models/GetVotes200Response.swift | 69 - .../Models/GetVotesForUser200Response.swift | 69 - .../Models/GetVotesForUserResponse.swift | 2 +- .../Models/GetVotesResponse.swift | 2 +- .../Models/GifGetLargeResponse.swift | 33 + .../Models/GifSearchInternalError.swift | 33 + .../Models/GifSearchResponse.swift | 33 + .../GifSearchResponseImagesInnerInner.swift | 22 + .../Models/HeaderAccountNotification.swift | 9 +- .../Models/HeaderState.swift | 2 +- .../Models/IgnoredResponse.swift | 2 +- ...edAgentApprovalNotificationFrequency.swift | 15 + .../FastCommentsSwift/Models/LiveEvent.swift | 2 +- .../Models/LiveEventExtraInfo.swift | 2 +- .../Models/LiveEventType.swift | 2 + .../Models/LockComment200Response.swift | 57 - .../FastCommentsSwift/Models/MediaAsset.swift | 2 +- .../FastCommentsSwift/Models/MetaItem.swift | 2 +- .../ModerationAPIChildCommentsResponse.swift | 33 + .../Models/ModerationAPIComment.swift | 193 + .../Models/ModerationAPICommentLog.swift | 41 + .../Models/ModerationAPICommentResponse.swift | 33 + .../ModerationAPICountCommentsResponse.swift | 33 + .../ModerationAPIGetCommentIdsResponse.swift | 37 + .../ModerationAPIGetCommentsResponse.swift | 41 + .../Models/ModerationAPIGetLogsResponse.swift | 33 + .../ModerationCommentSearchResponse.swift | 33 + .../Models/ModerationExportResponse.swift | 33 + .../ModerationExportStatusResponse.swift | 41 + .../Models/ModerationFilter.swift | 75 + .../ModerationPageSearchProjected.swift | 41 + .../Models/ModerationPageSearchResponse.swift | 33 + .../ModerationSiteSearchProjected.swift | 33 + .../Models/ModerationSiteSearchResponse.swift | 33 + .../Models/ModerationSuggestResponse.swift | 41 + .../ModerationUserSearchProjected.swift | 41 + .../Models/ModerationUserSearchResponse.swift | 33 + .../FastCommentsSwift/Models/Moderator.swift | 2 +- .../Models/NotificationAndCount.swift | 2 +- .../Models/PageUserEntry.swift | 43 + .../Models/PageUsersInfoResponse.swift | 33 + .../Models/PageUsersOfflineResponse.swift | 41 + .../Models/PageUsersOnlineResponse.swift | 49 + .../Models/PagesSortBy.swift | 14 + .../Models/PatchDomainConfigParams.swift | 2 +- .../Models/PatchDomainConfigResponse.swift | 41 + .../Models/PatchPageAPIResponse.swift | 2 +- .../Models/PatchSSOUserAPIResponse.swift | 2 +- .../Models/PendingCommentToSyncOutbound.swift | 2 +- .../Models/PinComment200Response.swift | 62 - .../Models/PostRemoveCommentResponse.swift | 33 + .../Models/PreBanSummary.swift | 37 + .../Models/PubSubComment.swift | 2 +- .../Models/PubSubCommentBase.swift | 2 +- .../FastCommentsSwift/Models/PubSubVote.swift | 2 +- .../PublicAPIDeleteCommentResponse.swift | 2 +- .../PublicAPIGetCommentTextResponse.swift | 2 +- .../PublicAPISetCommentTextResponse.swift | 2 +- .../Models/PublicBlockFromCommentParams.swift | 2 +- .../Models/PublicComment.swift | 2 +- .../Models/PublicCommentBase.swift | 2 +- .../Models/PublicFeedPostsResponse.swift | 2 +- .../FastCommentsSwift/Models/PublicPage.swift | 45 + .../FastCommentsSwift/Models/PublicVote.swift | 3 +- .../Models/PutDomainConfigResponse.swift | 41 + .../Models/PutSSOUserAPIResponse.swift | 2 +- .../Models/QueryPredicate.swift | 2 +- .../Models/QueryPredicateValue.swift | 2 +- .../Models/QuestionConfig.swift | 2 +- .../QuestionConfigCustomOptionsInner.swift | 2 +- .../Models/QuestionDatum.swift | 2 +- .../Models/QuestionResult.swift | 2 +- .../QuestionResultAggregationOverall.swift | 2 +- .../Models/ReactBodyParams.swift | 2 +- .../ReactFeedPostPublic200Response.swift | 65 - .../Models/ReactFeedPostResponse.swift | 2 +- ...reStringOrNullAfterStringOrNullValue.swift | 2 +- .../Models/RemoveCommentActionResponse.swift | 33 + .../Models/RemoveUserBadgeResponse.swift | 33 + .../RenderEmailTemplate200Response.swift | 61 - .../Models/RenderEmailTemplateBody.swift | 2 +- .../Models/RenderEmailTemplateResponse.swift | 2 +- .../Models/RenderableUserNotification.swift | 2 +- .../Models/ReplaceTenantPackageBody.swift | 2 +- .../Models/ReplaceTenantUserBody.swift | 2 +- .../ResetUserNotifications200Response.swift | 57 - .../ResetUserNotificationsResponse.swift | 2 +- .../Models/SaveCommentResponseOptimized.swift | 2 +- ...e.swift => SaveCommentsBulkResponse.swift} | 4 +- .../SaveCommentsResponseWithPresence.swift | 2 +- .../Models/SearchUsers200Response.swift | 65 - .../Models/SearchUsersResponse.swift | 2 +- .../Models/SearchUsersResult.swift | 37 + .../Models/SearchUsersSectionedResponse.swift | 2 +- .../Models/SetCommentApprovedResponse.swift | 33 + .../Models/SetCommentText200Response.swift | 61 - .../Models/SetCommentTextParams.swift | 29 + .../Models/SetCommentTextResponse.swift | 33 + .../Models/SetCommentTextResult.swift | 2 +- .../Models/SetUserTrustFactorResponse.swift | 33 + .../FastCommentsSwift/Models/SpamRule.swift | 2 +- .../FastCommentsSwift/Models/TOSConfig.swift | 2 +- .../Models/TenantBadge.swift | 109 + .../Models/TenantHashTag.swift | 2 +- .../Models/TenantPackage.swift | 24 +- .../UnBlockCommentPublic200Response.swift | 62 - .../Models/UnBlockFromCommentParams.swift | 2 +- .../Models/UnblockSuccess.swift | 2 +- .../Models/UpdatableCommentParams.swift | 2 +- .../Models/UpdateAPIPageData.swift | 2 +- .../Models/UpdateAPISSOUserData.swift | 3 +- .../UpdateAPIUserSubscriptionData.swift | 2 +- .../Models/UpdateDomainConfigParams.swift | 2 +- .../Models/UpdateEmailTemplateBody.swift | 2 +- .../Models/UpdateFeedPostParams.swift | 2 +- .../Models/UpdateHashTagBody.swift | 2 +- .../Models/UpdateHashTagResponse.swift | 2 +- .../Models/UpdateModeratorBody.swift | 2 +- .../Models/UpdateNotificationBody.swift | 2 +- .../Models/UpdateQuestionConfigBody.swift | 2 +- .../Models/UpdateQuestionResultBody.swift | 2 +- .../UpdateSubscriptionAPIResponse.swift | 2 +- .../Models/UpdateTenantBody.swift | 2 +- .../Models/UpdateTenantPackageBody.swift | 2 +- .../Models/UpdateTenantUserBody.swift | 2 +- .../Models/UpdateUserBadge200Response.swift | 57 - .../Models/UpdateUserBadgeParams.swift | 2 +- ...ionCommentSubscriptionStatusResponse.swift | 45 + ...cationPageSubscriptionStatusResponse.swift | 45 + ...ateUserNotificationStatus200Response.swift | 73 - ...UpdateUserNotificationStatusResponse.swift | 45 + .../Models/UploadImageResponse.swift | 2 +- client/FastCommentsSwift/Models/User.swift | 8 +- .../FastCommentsSwift/Models/UserBadge.swift | 2 +- .../Models/UserBadgeProgress.swift | 2 +- .../Models/UserNotification.swift | 2 +- .../Models/UserNotificationCount.swift | 2 +- .../UserNotificationWriteResponse.swift | 2 +- .../Models/UserPresenceData.swift | 2 +- .../Models/UserReactsResponse.swift | 2 +- .../Models/UserSearchResult.swift | 3 +- .../Models/UserSearchSectionResult.swift | 2 +- .../Models/UserSessionInfo.swift | 3 +- .../Models/UsersListLocation.swift | 15 + .../Models/VoteBodyParams.swift | 2 +- .../Models/VoteComment200Response.swift | 73 - .../Models/VoteDeleteResponse.swift | 2 +- .../Models/VoteResponse.swift | 2 +- .../Models/VoteResponseUser.swift | 2 +- client/README.md | 256 +- client/docs/APIBanUserChangeLog.md | 13 + client/docs/APIBanUserChangedValues.md | 22 + client/docs/APIBannedUser.md | 22 + .../docs/APIBannedUserWithMultiMatchInfo.md | 18 + client/docs/APICommentCommonBannedUser.md | 17 + ...PIModerateGetUserBanPreferencesResponse.md | 11 + client/docs/APIModerateUserBanPreferences.md | 13 + ...Response.md => AddDomainConfigResponse.md} | 6 +- ...yOf.md => AddDomainConfigResponseAnyOf.md} | 2 +- client/docs/AddHashTag200Response.md | 18 - client/docs/AddHashTagsBulk200Response.md | 18 - client/docs/AdjustCommentVotesParams.md | 10 + client/docs/AdjustVotesResponse.md | 11 + .../AggregateQuestionResults200Response.md | 18 - ...ent200Response.md => AggregateResponse.md} | 10 +- client/docs/AggregationAPIError.md | 13 + client/docs/AwardUserBadgeResponse.md | 12 + client/docs/BanUserFromCommentResult.md | 13 + client/docs/BanUserUndoParams.md | 10 + client/docs/BannedUserMatch.md | 11 + ...ue.md => BannedUserMatchMatchedOnValue.md} | 2 +- client/docs/BannedUserMatchType.md | 9 + .../docs/BlockFromCommentPublic200Response.md | 18 - client/docs/BuildModerationFilterParams.md | 14 + client/docs/BuildModerationFilterResponse.md | 11 + ...BulkAggregateQuestionResults200Response.md | 18 - client/docs/BulkCreateHashTagsResponse.md | 2 +- ...BulkCreateHashTagsResponseResultsInner.md} | 2 +- client/docs/BulkPreBanParams.md | 10 + client/docs/BulkPreBanSummary.md | 15 + client/docs/ChangeTicketState200Response.md | 18 - .../CheckedCommentsForBlocked200Response.md | 18 - ...eCommentsWithQuestionResults200Response.md | 18 - client/docs/CommentData.md | 3 +- client/docs/CommentLogData.md | 1 + client/docs/CommentsByIdsParams.md | 10 + client/docs/CreateCommentParams.md | 3 +- client/docs/CreateCommentPublic200Response.md | 21 - client/docs/CreateEmailTemplate200Response.md | 18 - client/docs/CreateFeedPost200Response.md | 18 - .../docs/CreateFeedPostPublic200Response.md | 18 - client/docs/CreateModerator200Response.md | 18 - .../docs/CreateQuestionConfig200Response.md | 18 - .../docs/CreateQuestionResult200Response.md | 18 - client/docs/CreateTenant200Response.md | 18 - client/docs/CreateTenantPackage200Response.md | 18 - client/docs/CreateTenantUser200Response.md | 18 - client/docs/CreateTicket200Response.md | 18 - client/docs/CreateUserBadge200Response.md | 19 - client/docs/CreateV1PageReact.md | 11 + client/docs/CustomConfigParameters.md | 5 + client/docs/DefaultAPI.md | 412 +- client/docs/DeleteComment200Response.md | 18 - client/docs/DeleteCommentPublic200Response.md | 19 - client/docs/DeleteCommentVote200Response.md | 18 - ...ponse.md => DeleteDomainConfigResponse.md} | 2 +- .../docs/DeleteFeedPostPublic200Response.md | 17 - ...yOf.md => DeleteFeedPostPublicResponse.md} | 2 +- ...Request.md => DeleteHashTagRequestBody.md} | 2 +- client/docs/FComment.md | 1 + client/docs/FlagComment200Response.md | 19 - client/docs/FlagCommentPublic200Response.md | 17 - client/docs/GetAuditLogs200Response.md | 18 - client/docs/GetBannedUsersCountResponse.md | 11 + .../docs/GetBannedUsersFromCommentResponse.md | 12 + .../GetCachedNotificationCount200Response.md | 18 - client/docs/GetComment200Response.md | 18 - client/docs/GetCommentBanStatusResponse.md | 12 + client/docs/GetCommentText200Response.md | 19 - client/docs/GetCommentTextResponse.md | 11 + .../GetCommentVoteUserNames200Response.md | 19 - client/docs/GetComments200Response.md | 18 - client/docs/GetCommentsForUserResponse.md | 10 + client/docs/GetCommentsPublic200Response.md | 40 - ...Response.md => GetDomainConfigResponse.md} | 6 +- ...esponse.md => GetDomainConfigsResponse.md} | 2 +- ...Of.md => GetDomainConfigsResponseAnyOf.md} | 2 +- ...1.md => GetDomainConfigsResponseAnyOf1.md} | 2 +- client/docs/GetEmailTemplate200Response.md | 18 - .../GetEmailTemplateDefinitions200Response.md | 18 - ...GetEmailTemplateRenderErrors200Response.md | 18 - client/docs/GetEmailTemplates200Response.md | 18 - client/docs/GetEventLog200Response.md | 18 - client/docs/GetFeedPosts200Response.md | 18 - client/docs/GetFeedPostsPublic200Response.md | 23 - client/docs/GetFeedPostsStats200Response.md | 18 - client/docs/GetGifsSearchResponse.md | 12 + client/docs/GetGifsTrendingResponse.md | 12 + client/docs/GetHashTags200Response.md | 18 - client/docs/GetModerator200Response.md | 18 - client/docs/GetModerators200Response.md | 18 - .../docs/GetNotificationCount200Response.md | 18 - client/docs/GetNotifications200Response.md | 18 - .../GetPendingWebhookEventCount200Response.md | 18 - .../GetPendingWebhookEvents200Response.md | 18 - client/docs/GetPublicPagesResponse.md | 12 + client/docs/GetQuestionConfig200Response.md | 18 - client/docs/GetQuestionConfigs200Response.md | 18 - client/docs/GetQuestionResult200Response.md | 18 - client/docs/GetQuestionResults200Response.md | 18 - ...s200Response.md => GetSSOUsersResponse.md} | 2 +- client/docs/GetTenant200Response.md | 18 - .../docs/GetTenantDailyUsages200Response.md | 18 - client/docs/GetTenantManualBadgesResponse.md | 11 + client/docs/GetTenantPackage200Response.md | 18 - client/docs/GetTenantPackages200Response.md | 18 - client/docs/GetTenantUser200Response.md | 18 - client/docs/GetTenantUsers200Response.md | 18 - client/docs/GetTenants200Response.md | 18 - client/docs/GetTicket200Response.md | 19 - client/docs/GetTickets200Response.md | 18 - client/docs/GetTranslationsResponse.md | 11 + client/docs/GetUser200Response.md | 18 - client/docs/GetUserBadge200Response.md | 18 - .../GetUserBadgeProgressById200Response.md | 18 - .../GetUserBadgeProgressList200Response.md | 18 - client/docs/GetUserBadges200Response.md | 18 - client/docs/GetUserInternalProfileResponse.md | 11 + .../GetUserInternalProfileResponseProfile.md | 26 + client/docs/GetUserManualBadgesResponse.md | 11 + .../GetUserNotificationCount200Response.md | 18 - .../docs/GetUserNotifications200Response.md | 21 - .../GetUserPresenceStatuses200Response.md | 18 - client/docs/GetUserReactsPublic200Response.md | 18 - client/docs/GetUserTrustFactorResponse.md | 12 + client/docs/GetV1PageLikes.md | 14 + client/docs/GetV2PageReactUsersResponse.md | 11 + client/docs/GetV2PageReacts.md | 12 + client/docs/GetVotes200Response.md | 20 - client/docs/GetVotesForUser200Response.md | 20 - client/docs/GifGetLargeResponse.md | 11 + client/docs/GifSearchInternalError.md | 11 + client/docs/GifSearchResponse.md | 11 + .../docs/GifSearchResponseImagesInnerInner.md | 9 + client/docs/HeaderAccountNotification.md | 1 + ...ortedAgentApprovalNotificationFrequency.md | 9 + client/docs/ModerationAPI.md | 2260 ++ .../ModerationAPIChildCommentsResponse.md | 11 + client/docs/ModerationAPIComment.md | 51 + client/docs/ModerationAPICommentLog.md | 13 + client/docs/ModerationAPICommentResponse.md | 11 + .../ModerationAPICountCommentsResponse.md | 11 + .../ModerationAPIGetCommentIdsResponse.md | 12 + .../docs/ModerationAPIGetCommentsResponse.md | 13 + client/docs/ModerationAPIGetLogsResponse.md | 11 + .../docs/ModerationCommentSearchResponse.md | 11 + client/docs/ModerationExportResponse.md | 11 + client/docs/ModerationExportStatusResponse.md | 13 + client/docs/ModerationFilter.md | 21 + client/docs/ModerationPageSearchProjected.md | 13 + client/docs/ModerationPageSearchResponse.md | 11 + client/docs/ModerationSiteSearchProjected.md | 11 + client/docs/ModerationSiteSearchResponse.md | 11 + client/docs/ModerationSuggestResponse.md | 13 + client/docs/ModerationUserSearchProjected.md | 13 + client/docs/ModerationUserSearchResponse.md | 11 + client/docs/PageUserEntry.md | 13 + client/docs/PageUsersInfoResponse.md | 11 + client/docs/PageUsersOfflineResponse.md | 13 + client/docs/PageUsersOnlineResponse.md | 15 + client/docs/PagesSortBy.md | 9 + client/docs/PatchDomainConfigResponse.md | 13 + client/docs/PinComment200Response.md | 18 - client/docs/PostRemoveCommentResponse.md | 11 + client/docs/PreBanSummary.md | 12 + client/docs/PublicAPI.md | 1446 +- client/docs/PublicPage.md | 14 + client/docs/PutDomainConfigResponse.md | 13 + client/docs/ReactFeedPostPublic200Response.md | 19 - client/docs/RemoveCommentActionResponse.md | 11 + client/docs/RemoveUserBadgeResponse.md | 11 + client/docs/RenderEmailTemplate200Response.md | 18 - .../docs/ResetUserNotifications200Response.md | 17 - ...esponse.md => SaveCommentsBulkResponse.md} | 2 +- client/docs/SearchUsers200Response.md | 19 - client/docs/SearchUsersResult.md | 12 + client/docs/SetCommentApprovedResponse.md | 11 + client/docs/SetCommentText200Response.md | 18 - client/docs/SetCommentTextParams.md | 10 + client/docs/SetCommentTextResponse.md | 11 + client/docs/SetUserTrustFactorResponse.md | 11 + client/docs/TenantBadge.md | 30 + client/docs/TenantPackage.md | 5 + .../docs/UnBlockCommentPublic200Response.md | 18 - client/docs/UpdateUserBadge200Response.md | 17 - ...cationCommentSubscriptionStatusResponse.md | 13 + ...ificationPageSubscriptionStatusResponse.md | 13 + ...UpdateUserNotificationStatus200Response.md | 20 - .../UpdateUserNotificationStatusResponse.md | 13 + client/docs/User.md | 1 + client/docs/UsersListLocation.md | 9 + client/docs/VoteComment200Response.md | 21 - openapi.json | 19900 ++++++++++------ 624 files changed, 25611 insertions(+), 15774 deletions(-) create mode 100644 client/FastCommentsSwift/APIs/ModerationAPI.swift create mode 100644 client/FastCommentsSwift/Infrastructure/OpenAPIMutex.swift create mode 100644 client/FastCommentsSwift/Models/APIBanUserChangeLog.swift create mode 100644 client/FastCommentsSwift/Models/APIBanUserChangedValues.swift create mode 100644 client/FastCommentsSwift/Models/APIBannedUser.swift create mode 100644 client/FastCommentsSwift/Models/APIBannedUserWithMultiMatchInfo.swift create mode 100644 client/FastCommentsSwift/Models/APICommentCommonBannedUser.swift create mode 100644 client/FastCommentsSwift/Models/APIModerateGetUserBanPreferencesResponse.swift create mode 100644 client/FastCommentsSwift/Models/APIModerateUserBanPreferences.swift rename client/FastCommentsSwift/Models/{AddDomainConfig200Response.swift => AddDomainConfigResponse.swift} (89%) rename client/FastCommentsSwift/Models/{AddDomainConfig200ResponseAnyOf.swift => AddDomainConfigResponseAnyOf.swift} (83%) delete mode 100644 client/FastCommentsSwift/Models/AddHashTag200Response.swift delete mode 100644 client/FastCommentsSwift/Models/AddHashTagsBulk200Response.swift create mode 100644 client/FastCommentsSwift/Models/AdjustCommentVotesParams.swift create mode 100644 client/FastCommentsSwift/Models/AdjustVotesResponse.swift delete mode 100644 client/FastCommentsSwift/Models/AggregateQuestionResults200Response.swift create mode 100644 client/FastCommentsSwift/Models/AggregateResponse.swift create mode 100644 client/FastCommentsSwift/Models/AggregationAPIError.swift create mode 100644 client/FastCommentsSwift/Models/AwardUserBadgeResponse.swift create mode 100644 client/FastCommentsSwift/Models/BanUserFromCommentResult.swift create mode 100644 client/FastCommentsSwift/Models/BanUserUndoParams.swift create mode 100644 client/FastCommentsSwift/Models/BannedUserMatch.swift rename client/FastCommentsSwift/Models/{RecordStringStringOrNumberValue.swift => BannedUserMatchMatchedOnValue.swift} (69%) create mode 100644 client/FastCommentsSwift/Models/BannedUserMatchType.swift delete mode 100644 client/FastCommentsSwift/Models/BlockFromCommentPublic200Response.swift create mode 100644 client/FastCommentsSwift/Models/BuildModerationFilterParams.swift create mode 100644 client/FastCommentsSwift/Models/BuildModerationFilterResponse.swift delete mode 100644 client/FastCommentsSwift/Models/BulkAggregateQuestionResults200Response.swift rename client/FastCommentsSwift/Models/{PatchHashTag200Response.swift => BulkCreateHashTagsResponseResultsInner.swift} (94%) create mode 100644 client/FastCommentsSwift/Models/BulkPreBanParams.swift create mode 100644 client/FastCommentsSwift/Models/BulkPreBanSummary.swift delete mode 100644 client/FastCommentsSwift/Models/ChangeTicketState200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CheckedCommentsForBlocked200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CombineCommentsWithQuestionResults200Response.swift create mode 100644 client/FastCommentsSwift/Models/CommentsByIdsParams.swift delete mode 100644 client/FastCommentsSwift/Models/CreateCommentPublic200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateEmailTemplate200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateFeedPost200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateFeedPostPublic200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateModerator200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateQuestionConfig200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateQuestionResult200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateTenant200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateTenantPackage200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateTenantUser200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateTicket200Response.swift delete mode 100644 client/FastCommentsSwift/Models/CreateUserBadge200Response.swift create mode 100644 client/FastCommentsSwift/Models/CreateV1PageReact.swift delete mode 100644 client/FastCommentsSwift/Models/DeleteComment200Response.swift delete mode 100644 client/FastCommentsSwift/Models/DeleteCommentPublic200Response.swift delete mode 100644 client/FastCommentsSwift/Models/DeleteCommentVote200Response.swift rename client/FastCommentsSwift/Models/{DeleteDomainConfig200Response.swift => DeleteDomainConfigResponse.swift} (79%) delete mode 100644 client/FastCommentsSwift/Models/DeleteFeedPostPublic200Response.swift rename client/FastCommentsSwift/Models/{DeleteFeedPostPublic200ResponseAnyOf.swift => DeleteFeedPostPublicResponse.swift} (77%) rename client/FastCommentsSwift/Models/{DeleteHashTagRequest.swift => DeleteHashTagRequestBody.swift} (82%) delete mode 100644 client/FastCommentsSwift/Models/FlagComment200Response.swift delete mode 100644 client/FastCommentsSwift/Models/FlagCommentPublic200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetAuditLogs200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetBannedUsersCountResponse.swift create mode 100644 client/FastCommentsSwift/Models/GetBannedUsersFromCommentResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetCachedNotificationCount200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetComment200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetCommentBanStatusResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetCommentText200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetCommentTextResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetCommentVoteUserNames200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetComments200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetCommentsForUserResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetCommentsPublic200Response.swift rename client/FastCommentsSwift/Models/{GetDomainConfig200Response.swift => GetDomainConfigResponse.swift} (89%) rename client/FastCommentsSwift/Models/{GetDomainConfigs200Response.swift => GetDomainConfigsResponse.swift} (88%) rename client/FastCommentsSwift/Models/{GetDomainConfigs200ResponseAnyOf.swift => GetDomainConfigsResponseAnyOf.swift} (83%) rename client/FastCommentsSwift/Models/{GetDomainConfigs200ResponseAnyOf1.swift => GetDomainConfigsResponseAnyOf1.swift} (84%) delete mode 100644 client/FastCommentsSwift/Models/GetEmailTemplate200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetEmailTemplateDefinitions200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetEmailTemplateRenderErrors200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetEmailTemplates200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetEventLog200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetFeedPosts200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetFeedPostsPublic200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetFeedPostsStats200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetGifsSearchResponse.swift create mode 100644 client/FastCommentsSwift/Models/GetGifsTrendingResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetHashTags200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetModerator200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetModerators200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetNotificationCount200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetNotifications200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetPendingWebhookEventCount200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetPendingWebhookEvents200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetPublicPagesResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetQuestionConfig200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetQuestionConfigs200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetQuestionResult200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetQuestionResults200Response.swift rename client/FastCommentsSwift/Models/{GetSSOUsers200Response.swift => GetSSOUsersResponse.swift} (84%) delete mode 100644 client/FastCommentsSwift/Models/GetTenant200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetTenantDailyUsages200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetTenantManualBadgesResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetTenantPackage200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetTenantPackages200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetTenantUser200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetTenantUsers200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetTenants200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetTicket200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetTickets200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetTranslationsResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetUser200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetUserBadge200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetUserBadgeProgressById200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetUserBadgeProgressList200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetUserBadges200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetUserInternalProfileResponse.swift create mode 100644 client/FastCommentsSwift/Models/GetUserInternalProfileResponseProfile.swift create mode 100644 client/FastCommentsSwift/Models/GetUserManualBadgesResponse.swift delete mode 100644 client/FastCommentsSwift/Models/GetUserNotificationCount200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetUserNotifications200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetUserPresenceStatuses200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetUserReactsPublic200Response.swift create mode 100644 client/FastCommentsSwift/Models/GetUserTrustFactorResponse.swift create mode 100644 client/FastCommentsSwift/Models/GetV1PageLikes.swift create mode 100644 client/FastCommentsSwift/Models/GetV2PageReactUsersResponse.swift create mode 100644 client/FastCommentsSwift/Models/GetV2PageReacts.swift delete mode 100644 client/FastCommentsSwift/Models/GetVotes200Response.swift delete mode 100644 client/FastCommentsSwift/Models/GetVotesForUser200Response.swift create mode 100644 client/FastCommentsSwift/Models/GifGetLargeResponse.swift create mode 100644 client/FastCommentsSwift/Models/GifSearchInternalError.swift create mode 100644 client/FastCommentsSwift/Models/GifSearchResponse.swift create mode 100644 client/FastCommentsSwift/Models/GifSearchResponseImagesInnerInner.swift create mode 100644 client/FastCommentsSwift/Models/ImportedAgentApprovalNotificationFrequency.swift delete mode 100644 client/FastCommentsSwift/Models/LockComment200Response.swift create mode 100644 client/FastCommentsSwift/Models/ModerationAPIChildCommentsResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationAPIComment.swift create mode 100644 client/FastCommentsSwift/Models/ModerationAPICommentLog.swift create mode 100644 client/FastCommentsSwift/Models/ModerationAPICommentResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationAPICountCommentsResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationAPIGetCommentIdsResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationAPIGetCommentsResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationAPIGetLogsResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationCommentSearchResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationExportResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationExportStatusResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationFilter.swift create mode 100644 client/FastCommentsSwift/Models/ModerationPageSearchProjected.swift create mode 100644 client/FastCommentsSwift/Models/ModerationPageSearchResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationSiteSearchProjected.swift create mode 100644 client/FastCommentsSwift/Models/ModerationSiteSearchResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationSuggestResponse.swift create mode 100644 client/FastCommentsSwift/Models/ModerationUserSearchProjected.swift create mode 100644 client/FastCommentsSwift/Models/ModerationUserSearchResponse.swift create mode 100644 client/FastCommentsSwift/Models/PageUserEntry.swift create mode 100644 client/FastCommentsSwift/Models/PageUsersInfoResponse.swift create mode 100644 client/FastCommentsSwift/Models/PageUsersOfflineResponse.swift create mode 100644 client/FastCommentsSwift/Models/PageUsersOnlineResponse.swift create mode 100644 client/FastCommentsSwift/Models/PagesSortBy.swift create mode 100644 client/FastCommentsSwift/Models/PatchDomainConfigResponse.swift delete mode 100644 client/FastCommentsSwift/Models/PinComment200Response.swift create mode 100644 client/FastCommentsSwift/Models/PostRemoveCommentResponse.swift create mode 100644 client/FastCommentsSwift/Models/PreBanSummary.swift create mode 100644 client/FastCommentsSwift/Models/PublicPage.swift create mode 100644 client/FastCommentsSwift/Models/PutDomainConfigResponse.swift delete mode 100644 client/FastCommentsSwift/Models/ReactFeedPostPublic200Response.swift create mode 100644 client/FastCommentsSwift/Models/RemoveCommentActionResponse.swift create mode 100644 client/FastCommentsSwift/Models/RemoveUserBadgeResponse.swift delete mode 100644 client/FastCommentsSwift/Models/RenderEmailTemplate200Response.swift delete mode 100644 client/FastCommentsSwift/Models/ResetUserNotifications200Response.swift rename client/FastCommentsSwift/Models/{SaveComment200Response.swift => SaveCommentsBulkResponse.swift} (95%) delete mode 100644 client/FastCommentsSwift/Models/SearchUsers200Response.swift create mode 100644 client/FastCommentsSwift/Models/SearchUsersResult.swift create mode 100644 client/FastCommentsSwift/Models/SetCommentApprovedResponse.swift delete mode 100644 client/FastCommentsSwift/Models/SetCommentText200Response.swift create mode 100644 client/FastCommentsSwift/Models/SetCommentTextParams.swift create mode 100644 client/FastCommentsSwift/Models/SetCommentTextResponse.swift create mode 100644 client/FastCommentsSwift/Models/SetUserTrustFactorResponse.swift create mode 100644 client/FastCommentsSwift/Models/TenantBadge.swift delete mode 100644 client/FastCommentsSwift/Models/UnBlockCommentPublic200Response.swift delete mode 100644 client/FastCommentsSwift/Models/UpdateUserBadge200Response.swift create mode 100644 client/FastCommentsSwift/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.swift create mode 100644 client/FastCommentsSwift/Models/UpdateUserNotificationPageSubscriptionStatusResponse.swift delete mode 100644 client/FastCommentsSwift/Models/UpdateUserNotificationStatus200Response.swift create mode 100644 client/FastCommentsSwift/Models/UpdateUserNotificationStatusResponse.swift create mode 100644 client/FastCommentsSwift/Models/UsersListLocation.swift delete mode 100644 client/FastCommentsSwift/Models/VoteComment200Response.swift create mode 100644 client/docs/APIBanUserChangeLog.md create mode 100644 client/docs/APIBanUserChangedValues.md create mode 100644 client/docs/APIBannedUser.md create mode 100644 client/docs/APIBannedUserWithMultiMatchInfo.md create mode 100644 client/docs/APICommentCommonBannedUser.md create mode 100644 client/docs/APIModerateGetUserBanPreferencesResponse.md create mode 100644 client/docs/APIModerateUserBanPreferences.md rename client/docs/{GetDomainConfig200Response.md => AddDomainConfigResponse.md} (93%) rename client/docs/{AddDomainConfig200ResponseAnyOf.md => AddDomainConfigResponseAnyOf.md} (91%) delete mode 100644 client/docs/AddHashTag200Response.md delete mode 100644 client/docs/AddHashTagsBulk200Response.md create mode 100644 client/docs/AdjustCommentVotesParams.md create mode 100644 client/docs/AdjustVotesResponse.md delete mode 100644 client/docs/AggregateQuestionResults200Response.md rename client/docs/{LockComment200Response.md => AggregateResponse.md} (56%) create mode 100644 client/docs/AggregationAPIError.md create mode 100644 client/docs/AwardUserBadgeResponse.md create mode 100644 client/docs/BanUserFromCommentResult.md create mode 100644 client/docs/BanUserUndoParams.md create mode 100644 client/docs/BannedUserMatch.md rename client/docs/{RecordStringStringOrNumberValue.md => BannedUserMatchMatchedOnValue.md} (88%) create mode 100644 client/docs/BannedUserMatchType.md delete mode 100644 client/docs/BlockFromCommentPublic200Response.md create mode 100644 client/docs/BuildModerationFilterParams.md create mode 100644 client/docs/BuildModerationFilterResponse.md delete mode 100644 client/docs/BulkAggregateQuestionResults200Response.md rename client/docs/{PatchHashTag200Response.md => BulkCreateHashTagsResponseResultsInner.md} (94%) create mode 100644 client/docs/BulkPreBanParams.md create mode 100644 client/docs/BulkPreBanSummary.md delete mode 100644 client/docs/ChangeTicketState200Response.md delete mode 100644 client/docs/CheckedCommentsForBlocked200Response.md delete mode 100644 client/docs/CombineCommentsWithQuestionResults200Response.md create mode 100644 client/docs/CommentsByIdsParams.md delete mode 100644 client/docs/CreateCommentPublic200Response.md delete mode 100644 client/docs/CreateEmailTemplate200Response.md delete mode 100644 client/docs/CreateFeedPost200Response.md delete mode 100644 client/docs/CreateFeedPostPublic200Response.md delete mode 100644 client/docs/CreateModerator200Response.md delete mode 100644 client/docs/CreateQuestionConfig200Response.md delete mode 100644 client/docs/CreateQuestionResult200Response.md delete mode 100644 client/docs/CreateTenant200Response.md delete mode 100644 client/docs/CreateTenantPackage200Response.md delete mode 100644 client/docs/CreateTenantUser200Response.md delete mode 100644 client/docs/CreateTicket200Response.md delete mode 100644 client/docs/CreateUserBadge200Response.md create mode 100644 client/docs/CreateV1PageReact.md delete mode 100644 client/docs/DeleteComment200Response.md delete mode 100644 client/docs/DeleteCommentPublic200Response.md delete mode 100644 client/docs/DeleteCommentVote200Response.md rename client/docs/{DeleteDomainConfig200Response.md => DeleteDomainConfigResponse.md} (90%) delete mode 100644 client/docs/DeleteFeedPostPublic200Response.md rename client/docs/{DeleteFeedPostPublic200ResponseAnyOf.md => DeleteFeedPostPublicResponse.md} (89%) rename client/docs/{DeleteHashTagRequest.md => DeleteHashTagRequestBody.md} (92%) delete mode 100644 client/docs/FlagComment200Response.md delete mode 100644 client/docs/FlagCommentPublic200Response.md delete mode 100644 client/docs/GetAuditLogs200Response.md create mode 100644 client/docs/GetBannedUsersCountResponse.md create mode 100644 client/docs/GetBannedUsersFromCommentResponse.md delete mode 100644 client/docs/GetCachedNotificationCount200Response.md delete mode 100644 client/docs/GetComment200Response.md create mode 100644 client/docs/GetCommentBanStatusResponse.md delete mode 100644 client/docs/GetCommentText200Response.md create mode 100644 client/docs/GetCommentTextResponse.md delete mode 100644 client/docs/GetCommentVoteUserNames200Response.md delete mode 100644 client/docs/GetComments200Response.md create mode 100644 client/docs/GetCommentsForUserResponse.md delete mode 100644 client/docs/GetCommentsPublic200Response.md rename client/docs/{AddDomainConfig200Response.md => GetDomainConfigResponse.md} (93%) rename client/docs/{GetDomainConfigs200Response.md => GetDomainConfigsResponse.md} (93%) rename client/docs/{GetDomainConfigs200ResponseAnyOf.md => GetDomainConfigsResponseAnyOf.md} (90%) rename client/docs/{GetDomainConfigs200ResponseAnyOf1.md => GetDomainConfigsResponseAnyOf1.md} (91%) delete mode 100644 client/docs/GetEmailTemplate200Response.md delete mode 100644 client/docs/GetEmailTemplateDefinitions200Response.md delete mode 100644 client/docs/GetEmailTemplateRenderErrors200Response.md delete mode 100644 client/docs/GetEmailTemplates200Response.md delete mode 100644 client/docs/GetEventLog200Response.md delete mode 100644 client/docs/GetFeedPosts200Response.md delete mode 100644 client/docs/GetFeedPostsPublic200Response.md delete mode 100644 client/docs/GetFeedPostsStats200Response.md create mode 100644 client/docs/GetGifsSearchResponse.md create mode 100644 client/docs/GetGifsTrendingResponse.md delete mode 100644 client/docs/GetHashTags200Response.md delete mode 100644 client/docs/GetModerator200Response.md delete mode 100644 client/docs/GetModerators200Response.md delete mode 100644 client/docs/GetNotificationCount200Response.md delete mode 100644 client/docs/GetNotifications200Response.md delete mode 100644 client/docs/GetPendingWebhookEventCount200Response.md delete mode 100644 client/docs/GetPendingWebhookEvents200Response.md create mode 100644 client/docs/GetPublicPagesResponse.md delete mode 100644 client/docs/GetQuestionConfig200Response.md delete mode 100644 client/docs/GetQuestionConfigs200Response.md delete mode 100644 client/docs/GetQuestionResult200Response.md delete mode 100644 client/docs/GetQuestionResults200Response.md rename client/docs/{GetSSOUsers200Response.md => GetSSOUsersResponse.md} (93%) delete mode 100644 client/docs/GetTenant200Response.md delete mode 100644 client/docs/GetTenantDailyUsages200Response.md create mode 100644 client/docs/GetTenantManualBadgesResponse.md delete mode 100644 client/docs/GetTenantPackage200Response.md delete mode 100644 client/docs/GetTenantPackages200Response.md delete mode 100644 client/docs/GetTenantUser200Response.md delete mode 100644 client/docs/GetTenantUsers200Response.md delete mode 100644 client/docs/GetTenants200Response.md delete mode 100644 client/docs/GetTicket200Response.md delete mode 100644 client/docs/GetTickets200Response.md create mode 100644 client/docs/GetTranslationsResponse.md delete mode 100644 client/docs/GetUser200Response.md delete mode 100644 client/docs/GetUserBadge200Response.md delete mode 100644 client/docs/GetUserBadgeProgressById200Response.md delete mode 100644 client/docs/GetUserBadgeProgressList200Response.md delete mode 100644 client/docs/GetUserBadges200Response.md create mode 100644 client/docs/GetUserInternalProfileResponse.md create mode 100644 client/docs/GetUserInternalProfileResponseProfile.md create mode 100644 client/docs/GetUserManualBadgesResponse.md delete mode 100644 client/docs/GetUserNotificationCount200Response.md delete mode 100644 client/docs/GetUserNotifications200Response.md delete mode 100644 client/docs/GetUserPresenceStatuses200Response.md delete mode 100644 client/docs/GetUserReactsPublic200Response.md create mode 100644 client/docs/GetUserTrustFactorResponse.md create mode 100644 client/docs/GetV1PageLikes.md create mode 100644 client/docs/GetV2PageReactUsersResponse.md create mode 100644 client/docs/GetV2PageReacts.md delete mode 100644 client/docs/GetVotes200Response.md delete mode 100644 client/docs/GetVotesForUser200Response.md create mode 100644 client/docs/GifGetLargeResponse.md create mode 100644 client/docs/GifSearchInternalError.md create mode 100644 client/docs/GifSearchResponse.md create mode 100644 client/docs/GifSearchResponseImagesInnerInner.md create mode 100644 client/docs/ImportedAgentApprovalNotificationFrequency.md create mode 100644 client/docs/ModerationAPI.md create mode 100644 client/docs/ModerationAPIChildCommentsResponse.md create mode 100644 client/docs/ModerationAPIComment.md create mode 100644 client/docs/ModerationAPICommentLog.md create mode 100644 client/docs/ModerationAPICommentResponse.md create mode 100644 client/docs/ModerationAPICountCommentsResponse.md create mode 100644 client/docs/ModerationAPIGetCommentIdsResponse.md create mode 100644 client/docs/ModerationAPIGetCommentsResponse.md create mode 100644 client/docs/ModerationAPIGetLogsResponse.md create mode 100644 client/docs/ModerationCommentSearchResponse.md create mode 100644 client/docs/ModerationExportResponse.md create mode 100644 client/docs/ModerationExportStatusResponse.md create mode 100644 client/docs/ModerationFilter.md create mode 100644 client/docs/ModerationPageSearchProjected.md create mode 100644 client/docs/ModerationPageSearchResponse.md create mode 100644 client/docs/ModerationSiteSearchProjected.md create mode 100644 client/docs/ModerationSiteSearchResponse.md create mode 100644 client/docs/ModerationSuggestResponse.md create mode 100644 client/docs/ModerationUserSearchProjected.md create mode 100644 client/docs/ModerationUserSearchResponse.md create mode 100644 client/docs/PageUserEntry.md create mode 100644 client/docs/PageUsersInfoResponse.md create mode 100644 client/docs/PageUsersOfflineResponse.md create mode 100644 client/docs/PageUsersOnlineResponse.md create mode 100644 client/docs/PagesSortBy.md create mode 100644 client/docs/PatchDomainConfigResponse.md delete mode 100644 client/docs/PinComment200Response.md create mode 100644 client/docs/PostRemoveCommentResponse.md create mode 100644 client/docs/PreBanSummary.md create mode 100644 client/docs/PublicPage.md create mode 100644 client/docs/PutDomainConfigResponse.md delete mode 100644 client/docs/ReactFeedPostPublic200Response.md create mode 100644 client/docs/RemoveCommentActionResponse.md create mode 100644 client/docs/RemoveUserBadgeResponse.md delete mode 100644 client/docs/RenderEmailTemplate200Response.md delete mode 100644 client/docs/ResetUserNotifications200Response.md rename client/docs/{SaveComment200Response.md => SaveCommentsBulkResponse.md} (97%) delete mode 100644 client/docs/SearchUsers200Response.md create mode 100644 client/docs/SearchUsersResult.md create mode 100644 client/docs/SetCommentApprovedResponse.md delete mode 100644 client/docs/SetCommentText200Response.md create mode 100644 client/docs/SetCommentTextParams.md create mode 100644 client/docs/SetCommentTextResponse.md create mode 100644 client/docs/SetUserTrustFactorResponse.md create mode 100644 client/docs/TenantBadge.md delete mode 100644 client/docs/UnBlockCommentPublic200Response.md delete mode 100644 client/docs/UpdateUserBadge200Response.md create mode 100644 client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md create mode 100644 client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md delete mode 100644 client/docs/UpdateUserNotificationStatus200Response.md create mode 100644 client/docs/UpdateUserNotificationStatusResponse.md create mode 100644 client/docs/UsersListLocation.md delete mode 100644 client/docs/VoteComment200Response.md diff --git a/client/.openapi-generator-ignore b/client/.openapi-generator-ignore index 166c13f..7484ee5 100644 --- a/client/.openapi-generator-ignore +++ b/client/.openapi-generator-ignore @@ -8,9 +8,6 @@ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: #ApiClient.cs -# Preserve manually-patched infrastructure files from being overwritten -FastCommentsSwift/Infrastructure/URLSessionImplementations.swift - # You can match any string of characters against a directory, file or extension with a single asterisk (*): #foo/*/qux # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index d243e5d..49cabea 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -4,6 +4,7 @@ Cartfile FastCommentsSwift.podspec FastCommentsSwift/APIs/DefaultAPI.swift +FastCommentsSwift/APIs/ModerationAPI.swift FastCommentsSwift/APIs/PublicAPI.swift FastCommentsSwift/Infrastructure/APIHelper.swift FastCommentsSwift/Infrastructure/APIs.swift @@ -13,14 +14,20 @@ FastCommentsSwift/Infrastructure/JSONDataEncoding.swift FastCommentsSwift/Infrastructure/JSONEncodingHelper.swift FastCommentsSwift/Infrastructure/JSONValue.swift FastCommentsSwift/Infrastructure/Models.swift +FastCommentsSwift/Infrastructure/OpenAPIMutex.swift FastCommentsSwift/Infrastructure/OpenISO8601DateFormatter.swift FastCommentsSwift/Infrastructure/SynchronizedDictionary.swift FastCommentsSwift/Infrastructure/URLSessionImplementations.swift FastCommentsSwift/Infrastructure/Validation.swift FastCommentsSwift/Models/APIAuditLog.swift +FastCommentsSwift/Models/APIBanUserChangeLog.swift +FastCommentsSwift/Models/APIBanUserChangedValues.swift +FastCommentsSwift/Models/APIBannedUser.swift +FastCommentsSwift/Models/APIBannedUserWithMultiMatchInfo.swift FastCommentsSwift/Models/APIComment.swift FastCommentsSwift/Models/APICommentBase.swift FastCommentsSwift/Models/APICommentBaseMeta.swift +FastCommentsSwift/Models/APICommentCommonBannedUser.swift FastCommentsSwift/Models/APICreateUserBadgeResponse.swift FastCommentsSwift/Models/APIDomainConfiguration.swift FastCommentsSwift/Models/APIEmptyResponse.swift @@ -32,6 +39,8 @@ FastCommentsSwift/Models/APIGetUserBadgeProgressListResponse.swift FastCommentsSwift/Models/APIGetUserBadgeProgressResponse.swift FastCommentsSwift/Models/APIGetUserBadgeResponse.swift FastCommentsSwift/Models/APIGetUserBadgesResponse.swift +FastCommentsSwift/Models/APIModerateGetUserBanPreferencesResponse.swift +FastCommentsSwift/Models/APIModerateUserBanPreferences.swift FastCommentsSwift/Models/APIPage.swift FastCommentsSwift/Models/APISSOUser.swift FastCommentsSwift/Models/APISaveCommentResponse.swift @@ -42,16 +51,17 @@ FastCommentsSwift/Models/APITicket.swift FastCommentsSwift/Models/APITicketDetail.swift FastCommentsSwift/Models/APITicketFile.swift FastCommentsSwift/Models/APIUserSubscription.swift -FastCommentsSwift/Models/AddDomainConfig200Response.swift -FastCommentsSwift/Models/AddDomainConfig200ResponseAnyOf.swift FastCommentsSwift/Models/AddDomainConfigParams.swift -FastCommentsSwift/Models/AddHashTag200Response.swift -FastCommentsSwift/Models/AddHashTagsBulk200Response.swift +FastCommentsSwift/Models/AddDomainConfigResponse.swift +FastCommentsSwift/Models/AddDomainConfigResponseAnyOf.swift FastCommentsSwift/Models/AddPageAPIResponse.swift FastCommentsSwift/Models/AddSSOUserAPIResponse.swift -FastCommentsSwift/Models/AggregateQuestionResults200Response.swift +FastCommentsSwift/Models/AdjustCommentVotesParams.swift +FastCommentsSwift/Models/AdjustVotesResponse.swift FastCommentsSwift/Models/AggregateQuestionResultsResponse.swift +FastCommentsSwift/Models/AggregateResponse.swift FastCommentsSwift/Models/AggregateTimeBucket.swift +FastCommentsSwift/Models/AggregationAPIError.swift FastCommentsSwift/Models/AggregationItem.swift FastCommentsSwift/Models/AggregationOpType.swift FastCommentsSwift/Models/AggregationOperation.swift @@ -60,24 +70,30 @@ FastCommentsSwift/Models/AggregationRequestSort.swift FastCommentsSwift/Models/AggregationResponse.swift FastCommentsSwift/Models/AggregationResponseStats.swift FastCommentsSwift/Models/AggregationValue.swift +FastCommentsSwift/Models/AwardUserBadgeResponse.swift +FastCommentsSwift/Models/BanUserFromCommentResult.swift +FastCommentsSwift/Models/BanUserUndoParams.swift +FastCommentsSwift/Models/BannedUserMatch.swift +FastCommentsSwift/Models/BannedUserMatchMatchedOnValue.swift +FastCommentsSwift/Models/BannedUserMatchType.swift FastCommentsSwift/Models/BillingInfo.swift FastCommentsSwift/Models/BlockFromCommentParams.swift -FastCommentsSwift/Models/BlockFromCommentPublic200Response.swift FastCommentsSwift/Models/BlockSuccess.swift +FastCommentsSwift/Models/BuildModerationFilterParams.swift +FastCommentsSwift/Models/BuildModerationFilterResponse.swift FastCommentsSwift/Models/BulkAggregateQuestionItem.swift -FastCommentsSwift/Models/BulkAggregateQuestionResults200Response.swift FastCommentsSwift/Models/BulkAggregateQuestionResultsRequest.swift FastCommentsSwift/Models/BulkAggregateQuestionResultsResponse.swift FastCommentsSwift/Models/BulkCreateHashTagsBody.swift FastCommentsSwift/Models/BulkCreateHashTagsBodyTagsInner.swift FastCommentsSwift/Models/BulkCreateHashTagsResponse.swift +FastCommentsSwift/Models/BulkCreateHashTagsResponseResultsInner.swift +FastCommentsSwift/Models/BulkPreBanParams.swift +FastCommentsSwift/Models/BulkPreBanSummary.swift FastCommentsSwift/Models/ChangeCommentPinStatusResponse.swift -FastCommentsSwift/Models/ChangeTicketState200Response.swift FastCommentsSwift/Models/ChangeTicketStateBody.swift FastCommentsSwift/Models/ChangeTicketStateResponse.swift FastCommentsSwift/Models/CheckBlockedCommentsResponse.swift -FastCommentsSwift/Models/CheckedCommentsForBlocked200Response.swift -FastCommentsSwift/Models/CombineCommentsWithQuestionResults200Response.swift FastCommentsSwift/Models/CombineQuestionResultsWithCommentsResponse.swift FastCommentsSwift/Models/CommentData.swift FastCommentsSwift/Models/CommentHTMLRenderingMode.swift @@ -92,56 +108,42 @@ FastCommentsSwift/Models/CommentUserBadgeInfo.swift FastCommentsSwift/Models/CommentUserHashTagInfo.swift FastCommentsSwift/Models/CommentUserMentionInfo.swift FastCommentsSwift/Models/CommenterNameFormats.swift +FastCommentsSwift/Models/CommentsByIdsParams.swift FastCommentsSwift/Models/CreateAPIPageData.swift FastCommentsSwift/Models/CreateAPISSOUserData.swift FastCommentsSwift/Models/CreateAPIUserSubscriptionData.swift FastCommentsSwift/Models/CreateCommentParams.swift -FastCommentsSwift/Models/CreateCommentPublic200Response.swift -FastCommentsSwift/Models/CreateEmailTemplate200Response.swift FastCommentsSwift/Models/CreateEmailTemplateBody.swift FastCommentsSwift/Models/CreateEmailTemplateResponse.swift -FastCommentsSwift/Models/CreateFeedPost200Response.swift FastCommentsSwift/Models/CreateFeedPostParams.swift -FastCommentsSwift/Models/CreateFeedPostPublic200Response.swift FastCommentsSwift/Models/CreateFeedPostResponse.swift FastCommentsSwift/Models/CreateFeedPostsResponse.swift FastCommentsSwift/Models/CreateHashTagBody.swift FastCommentsSwift/Models/CreateHashTagResponse.swift -FastCommentsSwift/Models/CreateModerator200Response.swift FastCommentsSwift/Models/CreateModeratorBody.swift FastCommentsSwift/Models/CreateModeratorResponse.swift -FastCommentsSwift/Models/CreateQuestionConfig200Response.swift FastCommentsSwift/Models/CreateQuestionConfigBody.swift FastCommentsSwift/Models/CreateQuestionConfigResponse.swift -FastCommentsSwift/Models/CreateQuestionResult200Response.swift FastCommentsSwift/Models/CreateQuestionResultBody.swift FastCommentsSwift/Models/CreateQuestionResultResponse.swift FastCommentsSwift/Models/CreateSubscriptionAPIResponse.swift -FastCommentsSwift/Models/CreateTenant200Response.swift FastCommentsSwift/Models/CreateTenantBody.swift -FastCommentsSwift/Models/CreateTenantPackage200Response.swift FastCommentsSwift/Models/CreateTenantPackageBody.swift FastCommentsSwift/Models/CreateTenantPackageResponse.swift FastCommentsSwift/Models/CreateTenantResponse.swift -FastCommentsSwift/Models/CreateTenantUser200Response.swift FastCommentsSwift/Models/CreateTenantUserBody.swift FastCommentsSwift/Models/CreateTenantUserResponse.swift -FastCommentsSwift/Models/CreateTicket200Response.swift FastCommentsSwift/Models/CreateTicketBody.swift FastCommentsSwift/Models/CreateTicketResponse.swift -FastCommentsSwift/Models/CreateUserBadge200Response.swift FastCommentsSwift/Models/CreateUserBadgeParams.swift +FastCommentsSwift/Models/CreateV1PageReact.swift FastCommentsSwift/Models/CustomConfigParameters.swift FastCommentsSwift/Models/CustomEmailTemplate.swift -FastCommentsSwift/Models/DeleteComment200Response.swift FastCommentsSwift/Models/DeleteCommentAction.swift -FastCommentsSwift/Models/DeleteCommentPublic200Response.swift FastCommentsSwift/Models/DeleteCommentResult.swift -FastCommentsSwift/Models/DeleteCommentVote200Response.swift -FastCommentsSwift/Models/DeleteDomainConfig200Response.swift -FastCommentsSwift/Models/DeleteFeedPostPublic200Response.swift -FastCommentsSwift/Models/DeleteFeedPostPublic200ResponseAnyOf.swift -FastCommentsSwift/Models/DeleteHashTagRequest.swift +FastCommentsSwift/Models/DeleteDomainConfigResponse.swift +FastCommentsSwift/Models/DeleteFeedPostPublicResponse.swift +FastCommentsSwift/Models/DeleteHashTagRequestBody.swift FastCommentsSwift/Models/DeletePageAPIResponse.swift FastCommentsSwift/Models/DeleteSSOUserAPIResponse.swift FastCommentsSwift/Models/DeleteSubscriptionAPIResponse.swift @@ -160,126 +162,124 @@ FastCommentsSwift/Models/FeedPostStats.swift FastCommentsSwift/Models/FeedPostsStatsResponse.swift FastCommentsSwift/Models/FindCommentsByRangeItem.swift FastCommentsSwift/Models/FindCommentsByRangeResponse.swift -FastCommentsSwift/Models/FlagComment200Response.swift -FastCommentsSwift/Models/FlagCommentPublic200Response.swift FastCommentsSwift/Models/FlagCommentResponse.swift -FastCommentsSwift/Models/GetAuditLogs200Response.swift FastCommentsSwift/Models/GetAuditLogsResponse.swift -FastCommentsSwift/Models/GetCachedNotificationCount200Response.swift +FastCommentsSwift/Models/GetBannedUsersCountResponse.swift +FastCommentsSwift/Models/GetBannedUsersFromCommentResponse.swift FastCommentsSwift/Models/GetCachedNotificationCountResponse.swift -FastCommentsSwift/Models/GetComment200Response.swift -FastCommentsSwift/Models/GetCommentText200Response.swift -FastCommentsSwift/Models/GetCommentVoteUserNames200Response.swift +FastCommentsSwift/Models/GetCommentBanStatusResponse.swift +FastCommentsSwift/Models/GetCommentTextResponse.swift FastCommentsSwift/Models/GetCommentVoteUserNamesSuccessResponse.swift -FastCommentsSwift/Models/GetComments200Response.swift -FastCommentsSwift/Models/GetCommentsPublic200Response.swift +FastCommentsSwift/Models/GetCommentsForUserResponse.swift FastCommentsSwift/Models/GetCommentsResponsePublicComment.swift FastCommentsSwift/Models/GetCommentsResponseWithPresencePublicComment.swift -FastCommentsSwift/Models/GetDomainConfig200Response.swift -FastCommentsSwift/Models/GetDomainConfigs200Response.swift -FastCommentsSwift/Models/GetDomainConfigs200ResponseAnyOf.swift -FastCommentsSwift/Models/GetDomainConfigs200ResponseAnyOf1.swift -FastCommentsSwift/Models/GetEmailTemplate200Response.swift -FastCommentsSwift/Models/GetEmailTemplateDefinitions200Response.swift +FastCommentsSwift/Models/GetDomainConfigResponse.swift +FastCommentsSwift/Models/GetDomainConfigsResponse.swift +FastCommentsSwift/Models/GetDomainConfigsResponseAnyOf.swift +FastCommentsSwift/Models/GetDomainConfigsResponseAnyOf1.swift FastCommentsSwift/Models/GetEmailTemplateDefinitionsResponse.swift -FastCommentsSwift/Models/GetEmailTemplateRenderErrors200Response.swift FastCommentsSwift/Models/GetEmailTemplateRenderErrorsResponse.swift FastCommentsSwift/Models/GetEmailTemplateResponse.swift -FastCommentsSwift/Models/GetEmailTemplates200Response.swift FastCommentsSwift/Models/GetEmailTemplatesResponse.swift -FastCommentsSwift/Models/GetEventLog200Response.swift FastCommentsSwift/Models/GetEventLogResponse.swift -FastCommentsSwift/Models/GetFeedPosts200Response.swift -FastCommentsSwift/Models/GetFeedPostsPublic200Response.swift FastCommentsSwift/Models/GetFeedPostsResponse.swift -FastCommentsSwift/Models/GetFeedPostsStats200Response.swift -FastCommentsSwift/Models/GetHashTags200Response.swift +FastCommentsSwift/Models/GetGifsSearchResponse.swift +FastCommentsSwift/Models/GetGifsTrendingResponse.swift FastCommentsSwift/Models/GetHashTagsResponse.swift -FastCommentsSwift/Models/GetModerator200Response.swift FastCommentsSwift/Models/GetModeratorResponse.swift -FastCommentsSwift/Models/GetModerators200Response.swift FastCommentsSwift/Models/GetModeratorsResponse.swift FastCommentsSwift/Models/GetMyNotificationsResponse.swift -FastCommentsSwift/Models/GetNotificationCount200Response.swift FastCommentsSwift/Models/GetNotificationCountResponse.swift -FastCommentsSwift/Models/GetNotifications200Response.swift FastCommentsSwift/Models/GetNotificationsResponse.swift FastCommentsSwift/Models/GetPageByURLIdAPIResponse.swift FastCommentsSwift/Models/GetPagesAPIResponse.swift -FastCommentsSwift/Models/GetPendingWebhookEventCount200Response.swift FastCommentsSwift/Models/GetPendingWebhookEventCountResponse.swift -FastCommentsSwift/Models/GetPendingWebhookEvents200Response.swift FastCommentsSwift/Models/GetPendingWebhookEventsResponse.swift FastCommentsSwift/Models/GetPublicFeedPostsResponse.swift -FastCommentsSwift/Models/GetQuestionConfig200Response.swift +FastCommentsSwift/Models/GetPublicPagesResponse.swift FastCommentsSwift/Models/GetQuestionConfigResponse.swift -FastCommentsSwift/Models/GetQuestionConfigs200Response.swift FastCommentsSwift/Models/GetQuestionConfigsResponse.swift -FastCommentsSwift/Models/GetQuestionResult200Response.swift FastCommentsSwift/Models/GetQuestionResultResponse.swift -FastCommentsSwift/Models/GetQuestionResults200Response.swift FastCommentsSwift/Models/GetQuestionResultsResponse.swift FastCommentsSwift/Models/GetSSOUserByEmailAPIResponse.swift FastCommentsSwift/Models/GetSSOUserByIdAPIResponse.swift -FastCommentsSwift/Models/GetSSOUsers200Response.swift +FastCommentsSwift/Models/GetSSOUsersResponse.swift FastCommentsSwift/Models/GetSubscriptionsAPIResponse.swift -FastCommentsSwift/Models/GetTenant200Response.swift -FastCommentsSwift/Models/GetTenantDailyUsages200Response.swift FastCommentsSwift/Models/GetTenantDailyUsagesResponse.swift -FastCommentsSwift/Models/GetTenantPackage200Response.swift +FastCommentsSwift/Models/GetTenantManualBadgesResponse.swift FastCommentsSwift/Models/GetTenantPackageResponse.swift -FastCommentsSwift/Models/GetTenantPackages200Response.swift FastCommentsSwift/Models/GetTenantPackagesResponse.swift FastCommentsSwift/Models/GetTenantResponse.swift -FastCommentsSwift/Models/GetTenantUser200Response.swift FastCommentsSwift/Models/GetTenantUserResponse.swift -FastCommentsSwift/Models/GetTenantUsers200Response.swift FastCommentsSwift/Models/GetTenantUsersResponse.swift -FastCommentsSwift/Models/GetTenants200Response.swift FastCommentsSwift/Models/GetTenantsResponse.swift -FastCommentsSwift/Models/GetTicket200Response.swift FastCommentsSwift/Models/GetTicketResponse.swift -FastCommentsSwift/Models/GetTickets200Response.swift FastCommentsSwift/Models/GetTicketsResponse.swift -FastCommentsSwift/Models/GetUser200Response.swift -FastCommentsSwift/Models/GetUserBadge200Response.swift -FastCommentsSwift/Models/GetUserBadgeProgressById200Response.swift -FastCommentsSwift/Models/GetUserBadgeProgressList200Response.swift -FastCommentsSwift/Models/GetUserBadges200Response.swift -FastCommentsSwift/Models/GetUserNotificationCount200Response.swift +FastCommentsSwift/Models/GetTranslationsResponse.swift +FastCommentsSwift/Models/GetUserInternalProfileResponse.swift +FastCommentsSwift/Models/GetUserInternalProfileResponseProfile.swift +FastCommentsSwift/Models/GetUserManualBadgesResponse.swift FastCommentsSwift/Models/GetUserNotificationCountResponse.swift -FastCommentsSwift/Models/GetUserNotifications200Response.swift -FastCommentsSwift/Models/GetUserPresenceStatuses200Response.swift FastCommentsSwift/Models/GetUserPresenceStatusesResponse.swift -FastCommentsSwift/Models/GetUserReactsPublic200Response.swift FastCommentsSwift/Models/GetUserResponse.swift -FastCommentsSwift/Models/GetVotes200Response.swift -FastCommentsSwift/Models/GetVotesForUser200Response.swift +FastCommentsSwift/Models/GetUserTrustFactorResponse.swift +FastCommentsSwift/Models/GetV1PageLikes.swift +FastCommentsSwift/Models/GetV2PageReactUsersResponse.swift +FastCommentsSwift/Models/GetV2PageReacts.swift FastCommentsSwift/Models/GetVotesForUserResponse.swift FastCommentsSwift/Models/GetVotesResponse.swift +FastCommentsSwift/Models/GifGetLargeResponse.swift FastCommentsSwift/Models/GifRating.swift +FastCommentsSwift/Models/GifSearchInternalError.swift +FastCommentsSwift/Models/GifSearchResponse.swift +FastCommentsSwift/Models/GifSearchResponseImagesInnerInner.swift FastCommentsSwift/Models/HeaderAccountNotification.swift FastCommentsSwift/Models/HeaderState.swift FastCommentsSwift/Models/IgnoredResponse.swift FastCommentsSwift/Models/ImageContentProfanityLevel.swift +FastCommentsSwift/Models/ImportedAgentApprovalNotificationFrequency.swift FastCommentsSwift/Models/ImportedSiteType.swift FastCommentsSwift/Models/LiveEvent.swift FastCommentsSwift/Models/LiveEventExtraInfo.swift FastCommentsSwift/Models/LiveEventType.swift -FastCommentsSwift/Models/LockComment200Response.swift FastCommentsSwift/Models/MediaAsset.swift FastCommentsSwift/Models/MentionAutoCompleteMode.swift FastCommentsSwift/Models/MetaItem.swift +FastCommentsSwift/Models/ModerationAPIChildCommentsResponse.swift +FastCommentsSwift/Models/ModerationAPIComment.swift +FastCommentsSwift/Models/ModerationAPICommentLog.swift +FastCommentsSwift/Models/ModerationAPICommentResponse.swift +FastCommentsSwift/Models/ModerationAPICountCommentsResponse.swift +FastCommentsSwift/Models/ModerationAPIGetCommentIdsResponse.swift +FastCommentsSwift/Models/ModerationAPIGetCommentsResponse.swift +FastCommentsSwift/Models/ModerationAPIGetLogsResponse.swift +FastCommentsSwift/Models/ModerationCommentSearchResponse.swift +FastCommentsSwift/Models/ModerationExportResponse.swift +FastCommentsSwift/Models/ModerationExportStatusResponse.swift +FastCommentsSwift/Models/ModerationFilter.swift +FastCommentsSwift/Models/ModerationPageSearchProjected.swift +FastCommentsSwift/Models/ModerationPageSearchResponse.swift +FastCommentsSwift/Models/ModerationSiteSearchProjected.swift +FastCommentsSwift/Models/ModerationSiteSearchResponse.swift +FastCommentsSwift/Models/ModerationSuggestResponse.swift +FastCommentsSwift/Models/ModerationUserSearchProjected.swift +FastCommentsSwift/Models/ModerationUserSearchResponse.swift FastCommentsSwift/Models/Moderator.swift FastCommentsSwift/Models/NotificationAndCount.swift FastCommentsSwift/Models/NotificationObjectType.swift FastCommentsSwift/Models/NotificationType.swift +FastCommentsSwift/Models/PageUserEntry.swift +FastCommentsSwift/Models/PageUsersInfoResponse.swift +FastCommentsSwift/Models/PageUsersOfflineResponse.swift +FastCommentsSwift/Models/PageUsersOnlineResponse.swift +FastCommentsSwift/Models/PagesSortBy.swift FastCommentsSwift/Models/PatchDomainConfigParams.swift -FastCommentsSwift/Models/PatchHashTag200Response.swift +FastCommentsSwift/Models/PatchDomainConfigResponse.swift FastCommentsSwift/Models/PatchPageAPIResponse.swift FastCommentsSwift/Models/PatchSSOUserAPIResponse.swift FastCommentsSwift/Models/PendingCommentToSyncOutbound.swift -FastCommentsSwift/Models/PinComment200Response.swift +FastCommentsSwift/Models/PostRemoveCommentResponse.swift +FastCommentsSwift/Models/PreBanSummary.swift FastCommentsSwift/Models/PubSubComment.swift FastCommentsSwift/Models/PubSubCommentBase.swift FastCommentsSwift/Models/PubSubVote.swift @@ -290,7 +290,9 @@ FastCommentsSwift/Models/PublicBlockFromCommentParams.swift FastCommentsSwift/Models/PublicComment.swift FastCommentsSwift/Models/PublicCommentBase.swift FastCommentsSwift/Models/PublicFeedPostsResponse.swift +FastCommentsSwift/Models/PublicPage.swift FastCommentsSwift/Models/PublicVote.swift +FastCommentsSwift/Models/PutDomainConfigResponse.swift FastCommentsSwift/Models/PutSSOUserAPIResponse.swift FastCommentsSwift/Models/QueryPredicate.swift FastCommentsSwift/Models/QueryPredicateValue.swift @@ -303,11 +305,10 @@ FastCommentsSwift/Models/QuestionResultAggregationOverall.swift FastCommentsSwift/Models/QuestionSubQuestionVisibility.swift FastCommentsSwift/Models/QuestionWhenSave.swift FastCommentsSwift/Models/ReactBodyParams.swift -FastCommentsSwift/Models/ReactFeedPostPublic200Response.swift FastCommentsSwift/Models/ReactFeedPostResponse.swift FastCommentsSwift/Models/RecordStringBeforeStringOrNullAfterStringOrNullValue.swift -FastCommentsSwift/Models/RecordStringStringOrNumberValue.swift -FastCommentsSwift/Models/RenderEmailTemplate200Response.swift +FastCommentsSwift/Models/RemoveCommentActionResponse.swift +FastCommentsSwift/Models/RemoveUserBadgeResponse.swift FastCommentsSwift/Models/RenderEmailTemplateBody.swift FastCommentsSwift/Models/RenderEmailTemplateResponse.swift FastCommentsSwift/Models/RenderableUserNotification.swift @@ -315,25 +316,27 @@ FastCommentsSwift/Models/RepeatCommentCheckIgnoredReason.swift FastCommentsSwift/Models/RepeatCommentHandlingAction.swift FastCommentsSwift/Models/ReplaceTenantPackageBody.swift FastCommentsSwift/Models/ReplaceTenantUserBody.swift -FastCommentsSwift/Models/ResetUserNotifications200Response.swift FastCommentsSwift/Models/ResetUserNotificationsResponse.swift FastCommentsSwift/Models/SORTDIR.swift FastCommentsSwift/Models/SSOSecurityLevel.swift -FastCommentsSwift/Models/SaveComment200Response.swift FastCommentsSwift/Models/SaveCommentResponseOptimized.swift +FastCommentsSwift/Models/SaveCommentsBulkResponse.swift FastCommentsSwift/Models/SaveCommentsResponseWithPresence.swift -FastCommentsSwift/Models/SearchUsers200Response.swift FastCommentsSwift/Models/SearchUsersResponse.swift +FastCommentsSwift/Models/SearchUsersResult.swift FastCommentsSwift/Models/SearchUsersSectionedResponse.swift -FastCommentsSwift/Models/SetCommentText200Response.swift +FastCommentsSwift/Models/SetCommentApprovedResponse.swift +FastCommentsSwift/Models/SetCommentTextParams.swift +FastCommentsSwift/Models/SetCommentTextResponse.swift FastCommentsSwift/Models/SetCommentTextResult.swift +FastCommentsSwift/Models/SetUserTrustFactorResponse.swift FastCommentsSwift/Models/SizePreset.swift FastCommentsSwift/Models/SortDirections.swift FastCommentsSwift/Models/SpamRule.swift FastCommentsSwift/Models/TOSConfig.swift +FastCommentsSwift/Models/TenantBadge.swift FastCommentsSwift/Models/TenantHashTag.swift FastCommentsSwift/Models/TenantPackage.swift -FastCommentsSwift/Models/UnBlockCommentPublic200Response.swift FastCommentsSwift/Models/UnBlockFromCommentParams.swift FastCommentsSwift/Models/UnblockSuccess.swift FastCommentsSwift/Models/UpdatableCommentParams.swift @@ -353,9 +356,10 @@ FastCommentsSwift/Models/UpdateSubscriptionAPIResponse.swift FastCommentsSwift/Models/UpdateTenantBody.swift FastCommentsSwift/Models/UpdateTenantPackageBody.swift FastCommentsSwift/Models/UpdateTenantUserBody.swift -FastCommentsSwift/Models/UpdateUserBadge200Response.swift FastCommentsSwift/Models/UpdateUserBadgeParams.swift -FastCommentsSwift/Models/UpdateUserNotificationStatus200Response.swift +FastCommentsSwift/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.swift +FastCommentsSwift/Models/UpdateUserNotificationPageSubscriptionStatusResponse.swift +FastCommentsSwift/Models/UpdateUserNotificationStatusResponse.swift FastCommentsSwift/Models/UploadImageResponse.swift FastCommentsSwift/Models/User.swift FastCommentsSwift/Models/UserBadge.swift @@ -369,8 +373,8 @@ FastCommentsSwift/Models/UserSearchResult.swift FastCommentsSwift/Models/UserSearchSection.swift FastCommentsSwift/Models/UserSearchSectionResult.swift FastCommentsSwift/Models/UserSessionInfo.swift +FastCommentsSwift/Models/UsersListLocation.swift FastCommentsSwift/Models/VoteBodyParams.swift -FastCommentsSwift/Models/VoteComment200Response.swift FastCommentsSwift/Models/VoteDeleteResponse.swift FastCommentsSwift/Models/VoteResponse.swift FastCommentsSwift/Models/VoteResponseUser.swift @@ -378,9 +382,14 @@ FastCommentsSwift/Models/VoteStyle.swift Package.swift README.md docs/APIAuditLog.md +docs/APIBanUserChangeLog.md +docs/APIBanUserChangedValues.md +docs/APIBannedUser.md +docs/APIBannedUserWithMultiMatchInfo.md docs/APIComment.md docs/APICommentBase.md docs/APICommentBaseMeta.md +docs/APICommentCommonBannedUser.md docs/APICreateUserBadgeResponse.md docs/APIDomainConfiguration.md docs/APIEmptyResponse.md @@ -392,6 +401,8 @@ 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 @@ -402,16 +413,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 @@ -420,24 +432,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 @@ -452,57 +470,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 @@ -521,126 +525,125 @@ docs/FeedPostStats.md docs/FeedPostsStatsResponse.md docs/FindCommentsByRangeItem.md docs/FindCommentsByRangeResponse.md -docs/FlagComment200Response.md -docs/FlagCommentPublic200Response.md docs/FlagCommentResponse.md -docs/GetAuditLogs200Response.md docs/GetAuditLogsResponse.md -docs/GetCachedNotificationCount200Response.md +docs/GetBannedUsersCountResponse.md +docs/GetBannedUsersFromCommentResponse.md docs/GetCachedNotificationCountResponse.md -docs/GetComment200Response.md -docs/GetCommentText200Response.md -docs/GetCommentVoteUserNames200Response.md +docs/GetCommentBanStatusResponse.md +docs/GetCommentTextResponse.md docs/GetCommentVoteUserNamesSuccessResponse.md -docs/GetComments200Response.md -docs/GetCommentsPublic200Response.md +docs/GetCommentsForUserResponse.md docs/GetCommentsResponsePublicComment.md docs/GetCommentsResponseWithPresencePublicComment.md -docs/GetDomainConfig200Response.md -docs/GetDomainConfigs200Response.md -docs/GetDomainConfigs200ResponseAnyOf.md -docs/GetDomainConfigs200ResponseAnyOf1.md -docs/GetEmailTemplate200Response.md -docs/GetEmailTemplateDefinitions200Response.md +docs/GetDomainConfigResponse.md +docs/GetDomainConfigsResponse.md +docs/GetDomainConfigsResponseAnyOf.md +docs/GetDomainConfigsResponseAnyOf1.md docs/GetEmailTemplateDefinitionsResponse.md -docs/GetEmailTemplateRenderErrors200Response.md docs/GetEmailTemplateRenderErrorsResponse.md docs/GetEmailTemplateResponse.md -docs/GetEmailTemplates200Response.md docs/GetEmailTemplatesResponse.md -docs/GetEventLog200Response.md docs/GetEventLogResponse.md -docs/GetFeedPosts200Response.md -docs/GetFeedPostsPublic200Response.md docs/GetFeedPostsResponse.md -docs/GetFeedPostsStats200Response.md -docs/GetHashTags200Response.md +docs/GetGifsSearchResponse.md +docs/GetGifsTrendingResponse.md docs/GetHashTagsResponse.md -docs/GetModerator200Response.md docs/GetModeratorResponse.md -docs/GetModerators200Response.md docs/GetModeratorsResponse.md docs/GetMyNotificationsResponse.md -docs/GetNotificationCount200Response.md docs/GetNotificationCountResponse.md -docs/GetNotifications200Response.md docs/GetNotificationsResponse.md docs/GetPageByURLIdAPIResponse.md docs/GetPagesAPIResponse.md -docs/GetPendingWebhookEventCount200Response.md docs/GetPendingWebhookEventCountResponse.md -docs/GetPendingWebhookEvents200Response.md docs/GetPendingWebhookEventsResponse.md docs/GetPublicFeedPostsResponse.md -docs/GetQuestionConfig200Response.md +docs/GetPublicPagesResponse.md docs/GetQuestionConfigResponse.md -docs/GetQuestionConfigs200Response.md docs/GetQuestionConfigsResponse.md -docs/GetQuestionResult200Response.md docs/GetQuestionResultResponse.md -docs/GetQuestionResults200Response.md docs/GetQuestionResultsResponse.md docs/GetSSOUserByEmailAPIResponse.md docs/GetSSOUserByIdAPIResponse.md -docs/GetSSOUsers200Response.md +docs/GetSSOUsersResponse.md docs/GetSubscriptionsAPIResponse.md -docs/GetTenant200Response.md -docs/GetTenantDailyUsages200Response.md docs/GetTenantDailyUsagesResponse.md -docs/GetTenantPackage200Response.md +docs/GetTenantManualBadgesResponse.md docs/GetTenantPackageResponse.md -docs/GetTenantPackages200Response.md docs/GetTenantPackagesResponse.md docs/GetTenantResponse.md -docs/GetTenantUser200Response.md docs/GetTenantUserResponse.md -docs/GetTenantUsers200Response.md docs/GetTenantUsersResponse.md -docs/GetTenants200Response.md docs/GetTenantsResponse.md -docs/GetTicket200Response.md docs/GetTicketResponse.md -docs/GetTickets200Response.md docs/GetTicketsResponse.md -docs/GetUser200Response.md -docs/GetUserBadge200Response.md -docs/GetUserBadgeProgressById200Response.md -docs/GetUserBadgeProgressList200Response.md -docs/GetUserBadges200Response.md -docs/GetUserNotificationCount200Response.md +docs/GetTranslationsResponse.md +docs/GetUserInternalProfileResponse.md +docs/GetUserInternalProfileResponseProfile.md +docs/GetUserManualBadgesResponse.md docs/GetUserNotificationCountResponse.md -docs/GetUserNotifications200Response.md -docs/GetUserPresenceStatuses200Response.md docs/GetUserPresenceStatusesResponse.md -docs/GetUserReactsPublic200Response.md docs/GetUserResponse.md -docs/GetVotes200Response.md -docs/GetVotesForUser200Response.md +docs/GetUserTrustFactorResponse.md +docs/GetV1PageLikes.md +docs/GetV2PageReactUsersResponse.md +docs/GetV2PageReacts.md docs/GetVotesForUserResponse.md docs/GetVotesResponse.md +docs/GifGetLargeResponse.md docs/GifRating.md +docs/GifSearchInternalError.md +docs/GifSearchResponse.md +docs/GifSearchResponseImagesInnerInner.md docs/HeaderAccountNotification.md docs/HeaderState.md docs/IgnoredResponse.md docs/ImageContentProfanityLevel.md +docs/ImportedAgentApprovalNotificationFrequency.md docs/ImportedSiteType.md docs/LiveEvent.md docs/LiveEventExtraInfo.md docs/LiveEventType.md -docs/LockComment200Response.md docs/MediaAsset.md docs/MentionAutoCompleteMode.md docs/MetaItem.md +docs/ModerationAPI.md +docs/ModerationAPIChildCommentsResponse.md +docs/ModerationAPIComment.md +docs/ModerationAPICommentLog.md +docs/ModerationAPICommentResponse.md +docs/ModerationAPICountCommentsResponse.md +docs/ModerationAPIGetCommentIdsResponse.md +docs/ModerationAPIGetCommentsResponse.md +docs/ModerationAPIGetLogsResponse.md +docs/ModerationCommentSearchResponse.md +docs/ModerationExportResponse.md +docs/ModerationExportStatusResponse.md +docs/ModerationFilter.md +docs/ModerationPageSearchProjected.md +docs/ModerationPageSearchResponse.md +docs/ModerationSiteSearchProjected.md +docs/ModerationSiteSearchResponse.md +docs/ModerationSuggestResponse.md +docs/ModerationUserSearchProjected.md +docs/ModerationUserSearchResponse.md docs/Moderator.md docs/NotificationAndCount.md docs/NotificationObjectType.md docs/NotificationType.md +docs/PageUserEntry.md +docs/PageUsersInfoResponse.md +docs/PageUsersOfflineResponse.md +docs/PageUsersOnlineResponse.md +docs/PagesSortBy.md docs/PatchDomainConfigParams.md -docs/PatchHashTag200Response.md +docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PinComment200Response.md +docs/PostRemoveCommentResponse.md +docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md docs/PubSubVote.md @@ -652,7 +655,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 @@ -665,11 +670,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 @@ -677,25 +681,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/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 @@ -715,9 +721,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 @@ -731,8 +738,8 @@ docs/UserSearchResult.md docs/UserSearchSection.md docs/UserSearchSectionResult.md docs/UserSessionInfo.md +docs/UsersListLocation.md docs/VoteBodyParams.md -docs/VoteComment200Response.md docs/VoteDeleteResponse.md docs/VoteResponse.md docs/VoteResponseUser.md diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION index 909dcd0..ca7bf6e 100644 --- a/client/.openapi-generator/VERSION +++ b/client/.openapi-generator/VERSION @@ -1 +1 @@ -7.19.0-SNAPSHOT +7.23.0-SNAPSHOT diff --git a/client/FastCommentsSwift.podspec b/client/FastCommentsSwift.podspec index cb7f791..500b28c 100644 --- a/client/FastCommentsSwift.podspec +++ b/client/FastCommentsSwift.podspec @@ -1,9 +1,9 @@ Pod::Spec.new do |s| s.name = 'FastCommentsSwift' - s.ios.deployment_target = '12.0' - s.osx.deployment_target = '10.13' - s.tvos.deployment_target = '12.0' - s.watchos.deployment_target = '4.0' + s.ios.deployment_target = '13.0' + s.osx.deployment_target = '10.15' + s.tvos.deployment_target = '13.0' + s.watchos.deployment_target = '6.0' s.version = '1.3.2' s.source = {"git":"https://github.com/fastcomments/fastcomments-swift.git","tag":"1.3.2"} s.authors = 'FastComments' diff --git a/client/FastCommentsSwift/APIs/DefaultAPI.swift b/client/FastCommentsSwift/APIs/DefaultAPI.swift index f6d433b..593612c 100644 --- a/client/FastCommentsSwift/APIs/DefaultAPI.swift +++ b/client/FastCommentsSwift/APIs/DefaultAPI.swift @@ -14,10 +14,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter addDomainConfigParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: AddDomainConfig200Response + - returns: AddDomainConfigResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func addDomainConfig(tenantId: String, addDomainConfigParams: AddDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AddDomainConfig200Response { + open class func addDomainConfig(tenantId: String, addDomainConfigParams: AddDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AddDomainConfigResponse { return try await addDomainConfigWithRequestBuilder(tenantId: tenantId, addDomainConfigParams: addDomainConfigParams, apiConfiguration: apiConfiguration).execute().body } @@ -29,9 +28,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter addDomainConfigParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func addDomainConfigWithRequestBuilder(tenantId: String, addDomainConfigParams: AddDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func addDomainConfigWithRequestBuilder(tenantId: String, addDomainConfigParams: AddDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/domain-configs" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: addDomainConfigParams, codableHelper: apiConfiguration.codableHelper) @@ -47,7 +46,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -57,10 +56,9 @@ open class DefaultAPI { - parameter tenantId: (query) (optional) - parameter createHashTagBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: AddHashTag200Response + - returns: CreateHashTagResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func addHashTag(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AddHashTag200Response { + open class func addHashTag(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateHashTagResponse { return try await addHashTagWithRequestBuilder(tenantId: tenantId, createHashTagBody: createHashTagBody, apiConfiguration: apiConfiguration).execute().body } @@ -72,9 +70,9 @@ open class DefaultAPI { - parameter tenantId: (query) (optional) - parameter createHashTagBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func addHashTagWithRequestBuilder(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func addHashTagWithRequestBuilder(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/hash-tags" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createHashTagBody, codableHelper: apiConfiguration.codableHelper) @@ -90,7 +88,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -100,10 +98,9 @@ open class DefaultAPI { - parameter tenantId: (query) (optional) - parameter bulkCreateHashTagsBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: AddHashTagsBulk200Response + - returns: BulkCreateHashTagsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func addHashTagsBulk(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AddHashTagsBulk200Response { + open class func addHashTagsBulk(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BulkCreateHashTagsResponse { return try await addHashTagsBulkWithRequestBuilder(tenantId: tenantId, bulkCreateHashTagsBody: bulkCreateHashTagsBody, apiConfiguration: apiConfiguration).execute().body } @@ -115,9 +112,9 @@ open class DefaultAPI { - parameter tenantId: (query) (optional) - parameter bulkCreateHashTagsBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func addHashTagsBulkWithRequestBuilder(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func addHashTagsBulkWithRequestBuilder(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/hash-tags/bulk" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: bulkCreateHashTagsBody, codableHelper: apiConfiguration.codableHelper) @@ -133,7 +130,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -145,7 +142,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: AddPageAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func addPage(tenantId: String, createAPIPageData: CreateAPIPageData, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AddPageAPIResponse { return try await addPageWithRequestBuilder(tenantId: tenantId, createAPIPageData: createAPIPageData, apiConfiguration: apiConfiguration).execute().body } @@ -188,7 +184,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: AddSSOUserAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func addSSOUser(tenantId: String, createAPISSOUserData: CreateAPISSOUserData, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AddSSOUserAPIResponse { return try await addSSOUserWithRequestBuilder(tenantId: tenantId, createAPISSOUserData: createAPISSOUserData, apiConfiguration: apiConfiguration).execute().body } @@ -231,10 +226,9 @@ open class DefaultAPI { - parameter parentTenantId: (query) (optional) - parameter includeStats: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: AggregationResponse + - returns: AggregateResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func aggregate(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AggregationResponse { + open class func aggregate(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AggregateResponse { return try await aggregateWithRequestBuilder(tenantId: tenantId, aggregationRequest: aggregationRequest, parentTenantId: parentTenantId, includeStats: includeStats, apiConfiguration: apiConfiguration).execute().body } @@ -249,9 +243,9 @@ open class DefaultAPI { - parameter parentTenantId: (query) (optional) - parameter includeStats: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func aggregateWithRequestBuilder(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func aggregateWithRequestBuilder(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/aggregate" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: aggregationRequest, codableHelper: apiConfiguration.codableHelper) @@ -269,7 +263,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -284,10 +278,9 @@ open class DefaultAPI { - parameter startDate: (query) (optional) - parameter forceRecalculate: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: AggregateQuestionResults200Response + - returns: AggregateQuestionResultsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func aggregateQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AggregateQuestionResults200Response { + open class func aggregateQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AggregateQuestionResultsResponse { return try await aggregateQuestionResultsWithRequestBuilder(tenantId: tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, timeBucket: timeBucket, startDate: startDate, forceRecalculate: forceRecalculate, apiConfiguration: apiConfiguration).execute().body } @@ -304,9 +297,9 @@ open class DefaultAPI { - parameter startDate: (query) (optional) - parameter forceRecalculate: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func aggregateQuestionResultsWithRequestBuilder(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func aggregateQuestionResultsWithRequestBuilder(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/question-results-aggregation" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -328,7 +321,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -341,10 +334,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: BlockFromCommentPublic200Response + - returns: BlockSuccess */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func blockUserFromComment(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BlockFromCommentPublic200Response { + open class func blockUserFromComment(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BlockSuccess { return try await blockUserFromCommentWithRequestBuilder(tenantId: tenantId, id: id, blockFromCommentParams: blockFromCommentParams, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body } @@ -359,9 +351,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func blockUserFromCommentWithRequestBuilder(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func blockUserFromCommentWithRequestBuilder(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/comments/{id}/block" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -382,7 +374,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -393,10 +385,9 @@ open class DefaultAPI { - parameter bulkAggregateQuestionResultsRequest: (body) - parameter forceRecalculate: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: BulkAggregateQuestionResults200Response + - returns: BulkAggregateQuestionResultsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func bulkAggregateQuestionResults(tenantId: String, bulkAggregateQuestionResultsRequest: BulkAggregateQuestionResultsRequest, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BulkAggregateQuestionResults200Response { + open class func bulkAggregateQuestionResults(tenantId: String, bulkAggregateQuestionResultsRequest: BulkAggregateQuestionResultsRequest, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BulkAggregateQuestionResultsResponse { return try await bulkAggregateQuestionResultsWithRequestBuilder(tenantId: tenantId, bulkAggregateQuestionResultsRequest: bulkAggregateQuestionResultsRequest, forceRecalculate: forceRecalculate, apiConfiguration: apiConfiguration).execute().body } @@ -409,9 +400,9 @@ open class DefaultAPI { - parameter bulkAggregateQuestionResultsRequest: (body) - parameter forceRecalculate: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func bulkAggregateQuestionResultsWithRequestBuilder(tenantId: String, bulkAggregateQuestionResultsRequest: BulkAggregateQuestionResultsRequest, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func bulkAggregateQuestionResultsWithRequestBuilder(tenantId: String, bulkAggregateQuestionResultsRequest: BulkAggregateQuestionResultsRequest, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/question-results-aggregation/bulk" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: bulkAggregateQuestionResultsRequest, codableHelper: apiConfiguration.codableHelper) @@ -428,7 +419,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -440,10 +431,9 @@ open class DefaultAPI { - parameter id: (path) - parameter changeTicketStateBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: ChangeTicketState200Response + - returns: ChangeTicketStateResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func changeTicketState(tenantId: String, userId: String, id: String, changeTicketStateBody: ChangeTicketStateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ChangeTicketState200Response { + open class func changeTicketState(tenantId: String, userId: String, id: String, changeTicketStateBody: ChangeTicketStateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ChangeTicketStateResponse { return try await changeTicketStateWithRequestBuilder(tenantId: tenantId, userId: userId, id: id, changeTicketStateBody: changeTicketStateBody, apiConfiguration: apiConfiguration).execute().body } @@ -457,9 +447,9 @@ open class DefaultAPI { - parameter id: (path) - parameter changeTicketStateBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func changeTicketStateWithRequestBuilder(tenantId: String, userId: String, id: String, changeTicketStateBody: ChangeTicketStateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func changeTicketStateWithRequestBuilder(tenantId: String, userId: String, id: String, changeTicketStateBody: ChangeTicketStateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tickets/{id}/state" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -479,7 +469,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -496,10 +486,9 @@ open class DefaultAPI { - parameter maxValue: (query) (optional) - parameter limit: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: CombineCommentsWithQuestionResults200Response + - returns: CombineQuestionResultsWithCommentsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func combineCommentsWithQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CombineCommentsWithQuestionResults200Response { + open class func combineCommentsWithQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CombineQuestionResultsWithCommentsResponse { return try await combineCommentsWithQuestionResultsWithRequestBuilder(tenantId: tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, startDate: startDate, forceRecalculate: forceRecalculate, minValue: minValue, maxValue: maxValue, limit: limit, apiConfiguration: apiConfiguration).execute().body } @@ -518,9 +507,9 @@ open class DefaultAPI { - parameter maxValue: (query) (optional) - parameter limit: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func combineCommentsWithQuestionResultsWithRequestBuilder(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func combineCommentsWithQuestionResultsWithRequestBuilder(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/question-results-aggregation/combine/comments" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -544,7 +533,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -554,10 +543,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createEmailTemplateBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateEmailTemplate200Response + - returns: CreateEmailTemplateResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createEmailTemplate(tenantId: String, createEmailTemplateBody: CreateEmailTemplateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateEmailTemplate200Response { + open class func createEmailTemplate(tenantId: String, createEmailTemplateBody: CreateEmailTemplateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateEmailTemplateResponse { return try await createEmailTemplateWithRequestBuilder(tenantId: tenantId, createEmailTemplateBody: createEmailTemplateBody, apiConfiguration: apiConfiguration).execute().body } @@ -569,9 +557,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createEmailTemplateBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createEmailTemplateWithRequestBuilder(tenantId: String, createEmailTemplateBody: CreateEmailTemplateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createEmailTemplateWithRequestBuilder(tenantId: String, createEmailTemplateBody: CreateEmailTemplateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/email-templates" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createEmailTemplateBody, codableHelper: apiConfiguration.codableHelper) @@ -587,7 +575,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -601,10 +589,9 @@ open class DefaultAPI { - parameter doSpamCheck: (query) (optional) - parameter skipDupCheck: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateFeedPost200Response + - returns: CreateFeedPostsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createFeedPost(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPost200Response { + open class func createFeedPost(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostsResponse { return try await createFeedPostWithRequestBuilder(tenantId: tenantId, createFeedPostParams: createFeedPostParams, broadcastId: broadcastId, isLive: isLive, doSpamCheck: doSpamCheck, skipDupCheck: skipDupCheck, apiConfiguration: apiConfiguration).execute().body } @@ -620,9 +607,9 @@ open class DefaultAPI { - parameter doSpamCheck: (query) (optional) - parameter skipDupCheck: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createFeedPostWithRequestBuilder(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createFeedPostWithRequestBuilder(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/feed-posts" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createFeedPostParams, codableHelper: apiConfiguration.codableHelper) @@ -642,7 +629,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -652,10 +639,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createModeratorBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateModerator200Response + - returns: CreateModeratorResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createModerator(tenantId: String, createModeratorBody: CreateModeratorBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateModerator200Response { + open class func createModerator(tenantId: String, createModeratorBody: CreateModeratorBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateModeratorResponse { return try await createModeratorWithRequestBuilder(tenantId: tenantId, createModeratorBody: createModeratorBody, apiConfiguration: apiConfiguration).execute().body } @@ -667,9 +653,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createModeratorBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createModeratorWithRequestBuilder(tenantId: String, createModeratorBody: CreateModeratorBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createModeratorWithRequestBuilder(tenantId: String, createModeratorBody: CreateModeratorBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/moderators" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createModeratorBody, codableHelper: apiConfiguration.codableHelper) @@ -685,7 +671,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -695,10 +681,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createQuestionConfigBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateQuestionConfig200Response + - returns: CreateQuestionConfigResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createQuestionConfig(tenantId: String, createQuestionConfigBody: CreateQuestionConfigBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateQuestionConfig200Response { + open class func createQuestionConfig(tenantId: String, createQuestionConfigBody: CreateQuestionConfigBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateQuestionConfigResponse { return try await createQuestionConfigWithRequestBuilder(tenantId: tenantId, createQuestionConfigBody: createQuestionConfigBody, apiConfiguration: apiConfiguration).execute().body } @@ -710,9 +695,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createQuestionConfigBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createQuestionConfigWithRequestBuilder(tenantId: String, createQuestionConfigBody: CreateQuestionConfigBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createQuestionConfigWithRequestBuilder(tenantId: String, createQuestionConfigBody: CreateQuestionConfigBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/question-configs" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createQuestionConfigBody, codableHelper: apiConfiguration.codableHelper) @@ -728,7 +713,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -738,10 +723,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createQuestionResultBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateQuestionResult200Response + - returns: CreateQuestionResultResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createQuestionResult(tenantId: String, createQuestionResultBody: CreateQuestionResultBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateQuestionResult200Response { + open class func createQuestionResult(tenantId: String, createQuestionResultBody: CreateQuestionResultBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateQuestionResultResponse { return try await createQuestionResultWithRequestBuilder(tenantId: tenantId, createQuestionResultBody: createQuestionResultBody, apiConfiguration: apiConfiguration).execute().body } @@ -753,9 +737,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createQuestionResultBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createQuestionResultWithRequestBuilder(tenantId: String, createQuestionResultBody: CreateQuestionResultBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createQuestionResultWithRequestBuilder(tenantId: String, createQuestionResultBody: CreateQuestionResultBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/question-results" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createQuestionResultBody, codableHelper: apiConfiguration.codableHelper) @@ -771,7 +755,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -783,7 +767,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: CreateSubscriptionAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func createSubscription(tenantId: String, createAPIUserSubscriptionData: CreateAPIUserSubscriptionData, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateSubscriptionAPIResponse { return try await createSubscriptionWithRequestBuilder(tenantId: tenantId, createAPIUserSubscriptionData: createAPIUserSubscriptionData, apiConfiguration: apiConfiguration).execute().body } @@ -824,10 +807,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createTenantBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateTenant200Response + - returns: CreateTenantResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createTenant(tenantId: String, createTenantBody: CreateTenantBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateTenant200Response { + open class func createTenant(tenantId: String, createTenantBody: CreateTenantBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateTenantResponse { return try await createTenantWithRequestBuilder(tenantId: tenantId, createTenantBody: createTenantBody, apiConfiguration: apiConfiguration).execute().body } @@ -839,9 +821,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createTenantBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createTenantWithRequestBuilder(tenantId: String, createTenantBody: CreateTenantBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createTenantWithRequestBuilder(tenantId: String, createTenantBody: CreateTenantBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tenants" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createTenantBody, codableHelper: apiConfiguration.codableHelper) @@ -857,7 +839,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -867,10 +849,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createTenantPackageBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateTenantPackage200Response + - returns: CreateTenantPackageResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createTenantPackage(tenantId: String, createTenantPackageBody: CreateTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateTenantPackage200Response { + open class func createTenantPackage(tenantId: String, createTenantPackageBody: CreateTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateTenantPackageResponse { return try await createTenantPackageWithRequestBuilder(tenantId: tenantId, createTenantPackageBody: createTenantPackageBody, apiConfiguration: apiConfiguration).execute().body } @@ -882,9 +863,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createTenantPackageBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createTenantPackageWithRequestBuilder(tenantId: String, createTenantPackageBody: CreateTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createTenantPackageWithRequestBuilder(tenantId: String, createTenantPackageBody: CreateTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tenant-packages" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createTenantPackageBody, codableHelper: apiConfiguration.codableHelper) @@ -900,7 +881,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -910,10 +891,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createTenantUserBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateTenantUser200Response + - returns: CreateTenantUserResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createTenantUser(tenantId: String, createTenantUserBody: CreateTenantUserBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateTenantUser200Response { + open class func createTenantUser(tenantId: String, createTenantUserBody: CreateTenantUserBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateTenantUserResponse { return try await createTenantUserWithRequestBuilder(tenantId: tenantId, createTenantUserBody: createTenantUserBody, apiConfiguration: apiConfiguration).execute().body } @@ -925,9 +905,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createTenantUserBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createTenantUserWithRequestBuilder(tenantId: String, createTenantUserBody: CreateTenantUserBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createTenantUserWithRequestBuilder(tenantId: String, createTenantUserBody: CreateTenantUserBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tenant-users" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createTenantUserBody, codableHelper: apiConfiguration.codableHelper) @@ -943,7 +923,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -954,10 +934,9 @@ open class DefaultAPI { - parameter userId: (query) - parameter createTicketBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateTicket200Response + - returns: CreateTicketResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createTicket(tenantId: String, userId: String, createTicketBody: CreateTicketBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateTicket200Response { + open class func createTicket(tenantId: String, userId: String, createTicketBody: CreateTicketBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateTicketResponse { return try await createTicketWithRequestBuilder(tenantId: tenantId, userId: userId, createTicketBody: createTicketBody, apiConfiguration: apiConfiguration).execute().body } @@ -970,9 +949,9 @@ open class DefaultAPI { - parameter userId: (query) - parameter createTicketBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createTicketWithRequestBuilder(tenantId: String, userId: String, createTicketBody: CreateTicketBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createTicketWithRequestBuilder(tenantId: String, userId: String, createTicketBody: CreateTicketBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tickets" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createTicketBody, codableHelper: apiConfiguration.codableHelper) @@ -989,7 +968,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -999,10 +978,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createUserBadgeParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateUserBadge200Response + - returns: APICreateUserBadgeResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createUserBadge(tenantId: String, createUserBadgeParams: CreateUserBadgeParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateUserBadge200Response { + open class func createUserBadge(tenantId: String, createUserBadgeParams: CreateUserBadgeParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APICreateUserBadgeResponse { return try await createUserBadgeWithRequestBuilder(tenantId: tenantId, createUserBadgeParams: createUserBadgeParams, apiConfiguration: apiConfiguration).execute().body } @@ -1014,9 +992,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter createUserBadgeParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createUserBadgeWithRequestBuilder(tenantId: String, createUserBadgeParams: CreateUserBadgeParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createUserBadgeWithRequestBuilder(tenantId: String, createUserBadgeParams: CreateUserBadgeParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/user-badges" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createUserBadgeParams, codableHelper: apiConfiguration.codableHelper) @@ -1032,7 +1010,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1053,10 +1031,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: VoteComment200Response + - returns: VoteResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createVote(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteComment200Response { + open class func createVote(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { return try await createVoteWithRequestBuilder(tenantId: tenantId, commentId: commentId, direction: direction, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body } @@ -1071,9 +1048,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createVoteWithRequestBuilder(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createVoteWithRequestBuilder(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/votes" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -1093,7 +1070,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1105,10 +1082,9 @@ open class DefaultAPI { - parameter contextUserId: (query) (optional) - parameter isLive: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: DeleteComment200Response + - returns: DeleteCommentResult */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteComment(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteComment200Response { + open class func deleteComment(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteCommentResult { return try await deleteCommentWithRequestBuilder(tenantId: tenantId, id: id, contextUserId: contextUserId, isLive: isLive, apiConfiguration: apiConfiguration).execute().body } @@ -1122,9 +1098,9 @@ open class DefaultAPI { - parameter contextUserId: (query) (optional) - parameter isLive: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteCommentWithRequestBuilder(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteCommentWithRequestBuilder(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/comments/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1145,7 +1121,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1155,10 +1131,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter domain: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: DeleteDomainConfig200Response + - returns: DeleteDomainConfigResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteDomainConfig(tenantId: String, domain: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteDomainConfig200Response { + open class func deleteDomainConfig(tenantId: String, domain: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteDomainConfigResponse { return try await deleteDomainConfigWithRequestBuilder(tenantId: tenantId, domain: domain, apiConfiguration: apiConfiguration).execute().body } @@ -1170,9 +1145,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter domain: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteDomainConfigWithRequestBuilder(tenantId: String, domain: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteDomainConfigWithRequestBuilder(tenantId: String, domain: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/domain-configs/{domain}" let domainPreEscape = "\(APIHelper.mapValueToPathItem(domain))" let domainPostEscape = domainPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1191,7 +1166,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1201,10 +1176,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteEmailTemplate(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteEmailTemplate(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteEmailTemplateWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -1216,9 +1190,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteEmailTemplateWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteEmailTemplateWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/email-templates/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1237,7 +1211,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1248,10 +1222,9 @@ open class DefaultAPI { - parameter id: (path) - parameter errorId: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteEmailTemplateRenderError(tenantId: String, id: String, errorId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteEmailTemplateRenderError(tenantId: String, id: String, errorId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteEmailTemplateRenderErrorWithRequestBuilder(tenantId: tenantId, id: id, errorId: errorId, apiConfiguration: apiConfiguration).execute().body } @@ -1264,9 +1237,9 @@ open class DefaultAPI { - parameter id: (path) - parameter errorId: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteEmailTemplateRenderErrorWithRequestBuilder(tenantId: String, id: String, errorId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteEmailTemplateRenderErrorWithRequestBuilder(tenantId: String, id: String, errorId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/email-templates/{id}/render-errors/{errorId}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1288,7 +1261,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1297,13 +1270,12 @@ open class DefaultAPI { - parameter tag: (path) - parameter tenantId: (query) (optional) - - parameter deleteHashTagRequest: (body) (optional) + - parameter deleteHashTagRequestBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteHashTag(tag: String, tenantId: String? = nil, deleteHashTagRequest: DeleteHashTagRequest? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { - return try await deleteHashTagWithRequestBuilder(tag: tag, tenantId: tenantId, deleteHashTagRequest: deleteHashTagRequest, apiConfiguration: apiConfiguration).execute().body + open class func deleteHashTag(tag: String, tenantId: String? = nil, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await deleteHashTagWithRequestBuilder(tag: tag, tenantId: tenantId, deleteHashTagRequestBody: deleteHashTagRequestBody, apiConfiguration: apiConfiguration).execute().body } /** @@ -1313,17 +1285,17 @@ open class DefaultAPI { - name: api_key - parameter tag: (path) - parameter tenantId: (query) (optional) - - parameter deleteHashTagRequest: (body) (optional) + - parameter deleteHashTagRequestBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteHashTagWithRequestBuilder(tag: String, tenantId: String? = nil, deleteHashTagRequest: DeleteHashTagRequest? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteHashTagWithRequestBuilder(tag: String, tenantId: String? = nil, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/hash-tags/{tag}" let tagPreEscape = "\(APIHelper.mapValueToPathItem(tag))" let tagPostEscape = tagPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{tag}", with: tagPostEscape, options: .literal, range: nil) let localVariableURLString = apiConfiguration.basePath + localVariablePath - let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: deleteHashTagRequest, codableHelper: apiConfiguration.codableHelper) + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: deleteHashTagRequestBody, codableHelper: apiConfiguration.codableHelper) var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ @@ -1336,7 +1308,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1347,10 +1319,9 @@ open class DefaultAPI { - parameter id: (path) - parameter sendEmail: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteModerator(tenantId: String, id: String, sendEmail: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteModerator(tenantId: String, id: String, sendEmail: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteModeratorWithRequestBuilder(tenantId: tenantId, id: id, sendEmail: sendEmail, apiConfiguration: apiConfiguration).execute().body } @@ -1363,9 +1334,9 @@ open class DefaultAPI { - parameter id: (path) - parameter sendEmail: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteModeratorWithRequestBuilder(tenantId: String, id: String, sendEmail: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteModeratorWithRequestBuilder(tenantId: String, id: String, sendEmail: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/moderators/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1385,7 +1356,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1395,10 +1366,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteNotificationCount(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteNotificationCount(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteNotificationCountWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -1410,9 +1380,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteNotificationCountWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteNotificationCountWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/notification-count/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1431,7 +1401,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1443,7 +1413,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: DeletePageAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deletePage(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeletePageAPIResponse { return try await deletePageWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -1487,10 +1456,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deletePendingWebhookEvent(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deletePendingWebhookEvent(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deletePendingWebhookEventWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -1502,9 +1470,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deletePendingWebhookEventWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deletePendingWebhookEventWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/pending-webhook-events/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1523,7 +1491,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1533,10 +1501,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteQuestionConfig(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteQuestionConfig(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteQuestionConfigWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -1548,9 +1515,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteQuestionConfigWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteQuestionConfigWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/question-configs/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1569,7 +1536,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1579,10 +1546,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteQuestionResult(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteQuestionResult(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteQuestionResultWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -1594,9 +1560,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteQuestionResultWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteQuestionResultWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/question-results/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1615,7 +1581,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1629,7 +1595,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: DeleteSSOUserAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteSSOUser(tenantId: String, id: String, deleteComments: Bool? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteSSOUserAPIResponse { return try await deleteSSOUserWithRequestBuilder(tenantId: tenantId, id: id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode, apiConfiguration: apiConfiguration).execute().body } @@ -1680,7 +1645,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: DeleteSubscriptionAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func deleteSubscription(tenantId: String, id: String, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteSubscriptionAPIResponse { return try await deleteSubscriptionWithRequestBuilder(tenantId: tenantId, id: id, userId: userId, apiConfiguration: apiConfiguration).execute().body } @@ -1727,10 +1691,9 @@ open class DefaultAPI { - parameter id: (path) - parameter sure: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteTenant(tenantId: String, id: String, sure: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteTenant(tenantId: String, id: String, sure: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteTenantWithRequestBuilder(tenantId: tenantId, id: id, sure: sure, apiConfiguration: apiConfiguration).execute().body } @@ -1743,9 +1706,9 @@ open class DefaultAPI { - parameter id: (path) - parameter sure: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteTenantWithRequestBuilder(tenantId: String, id: String, sure: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteTenantWithRequestBuilder(tenantId: String, id: String, sure: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenants/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1765,7 +1728,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1775,10 +1738,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteTenantPackage(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteTenantPackage(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteTenantPackageWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -1790,9 +1752,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteTenantPackageWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteTenantPackageWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-packages/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1811,7 +1773,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1823,10 +1785,9 @@ open class DefaultAPI { - parameter deleteComments: (query) (optional) - parameter commentDeleteMode: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteTenantUser(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func deleteTenantUser(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await deleteTenantUserWithRequestBuilder(tenantId: tenantId, id: id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode, apiConfiguration: apiConfiguration).execute().body } @@ -1840,9 +1801,9 @@ open class DefaultAPI { - parameter deleteComments: (query) (optional) - parameter commentDeleteMode: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteTenantUserWithRequestBuilder(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteTenantUserWithRequestBuilder(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-users/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1863,7 +1824,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1873,10 +1834,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: UpdateUserBadge200Response + - returns: APIEmptySuccessResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteUserBadge(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateUserBadge200Response { + open class func deleteUserBadge(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptySuccessResponse { return try await deleteUserBadgeWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -1888,9 +1848,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteUserBadgeWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteUserBadgeWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/user-badges/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1909,7 +1869,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1920,10 +1880,9 @@ open class DefaultAPI { - parameter id: (path) - parameter editKey: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: DeleteCommentVote200Response + - returns: VoteDeleteResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteVote(tenantId: String, id: String, editKey: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteCommentVote200Response { + open class func deleteVote(tenantId: String, id: String, editKey: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteDeleteResponse { return try await deleteVoteWithRequestBuilder(tenantId: tenantId, id: id, editKey: editKey, apiConfiguration: apiConfiguration).execute().body } @@ -1936,9 +1895,9 @@ open class DefaultAPI { - parameter id: (path) - parameter editKey: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteVoteWithRequestBuilder(tenantId: String, id: String, editKey: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteVoteWithRequestBuilder(tenantId: String, id: String, editKey: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/votes/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1958,7 +1917,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -1970,10 +1929,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagComment200Response + - returns: FlagCommentResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func flagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagComment200Response { + open class func flagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentResponse { return try await flagCommentWithRequestBuilder(tenantId: tenantId, id: id, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body } @@ -1987,9 +1945,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func flagCommentWithRequestBuilder(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func flagCommentWithRequestBuilder(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/comments/{id}/flag" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2010,7 +1968,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2024,10 +1982,9 @@ open class DefaultAPI { - parameter after: (query) (optional) - parameter before: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetAuditLogs200Response + - returns: GetAuditLogsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getAuditLogs(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetAuditLogs200Response { + open class func getAuditLogs(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetAuditLogsResponse { return try await getAuditLogsWithRequestBuilder(tenantId: tenantId, limit: limit, skip: skip, order: order, after: after, before: before, apiConfiguration: apiConfiguration).execute().body } @@ -2043,9 +2000,9 @@ open class DefaultAPI { - parameter after: (query) (optional) - parameter before: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getAuditLogsWithRequestBuilder(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getAuditLogsWithRequestBuilder(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/audit-logs" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2066,7 +2023,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2076,10 +2033,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetCachedNotificationCount200Response + - returns: GetCachedNotificationCountResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getCachedNotificationCount(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCachedNotificationCount200Response { + open class func getCachedNotificationCount(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCachedNotificationCountResponse { return try await getCachedNotificationCountWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -2091,9 +2047,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getCachedNotificationCountWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCachedNotificationCountWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/notification-count/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2112,7 +2068,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2122,10 +2078,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetComment200Response + - returns: APIGetCommentResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getComment(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetComment200Response { + open class func getComment(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetCommentResponse { return try await getCommentWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -2137,9 +2092,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getCommentWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/comments/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2158,7 +2113,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2180,12 +2135,13 @@ open class DefaultAPI { - parameter hashTag: (query) (optional) - parameter parentId: (query) (optional) - parameter direction: (query) (optional) + - parameter fromDate: (query) (optional) + - parameter toDate: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetComments200Response + - returns: APIGetCommentsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getComments(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetComments200Response { - return try await getCommentsWithRequestBuilder(tenantId: tenantId, page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, apiConfiguration: apiConfiguration).execute().body + open class func getComments(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, fromDate: Int64? = nil, toDate: Int64? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetCommentsResponse { + return try await getCommentsWithRequestBuilder(tenantId: tenantId, page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, fromDate: fromDate, toDate: toDate, apiConfiguration: apiConfiguration).execute().body } /** @@ -2208,10 +2164,12 @@ open class DefaultAPI { - parameter hashTag: (query) (optional) - parameter parentId: (query) (optional) - parameter direction: (query) (optional) + - parameter fromDate: (query) (optional) + - parameter toDate: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getCommentsWithRequestBuilder(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentsWithRequestBuilder(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, fromDate: Int64? = nil, toDate: Int64? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/comments" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2233,6 +2191,8 @@ open class DefaultAPI { "hashTag": (wrappedValue: hashTag?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "parentId": (wrappedValue: parentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "direction": (wrappedValue: direction?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "fromDate": (wrappedValue: fromDate?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "toDate": (wrappedValue: toDate?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -2241,7 +2201,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2251,10 +2211,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter domain: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetDomainConfig200Response + - returns: GetDomainConfigResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getDomainConfig(tenantId: String, domain: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetDomainConfig200Response { + open class func getDomainConfig(tenantId: String, domain: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetDomainConfigResponse { return try await getDomainConfigWithRequestBuilder(tenantId: tenantId, domain: domain, apiConfiguration: apiConfiguration).execute().body } @@ -2266,9 +2225,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter domain: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getDomainConfigWithRequestBuilder(tenantId: String, domain: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getDomainConfigWithRequestBuilder(tenantId: String, domain: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/domain-configs/{domain}" let domainPreEscape = "\(APIHelper.mapValueToPathItem(domain))" let domainPostEscape = domainPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2287,7 +2246,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2296,10 +2255,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: GetDomainConfigs200Response + - returns: GetDomainConfigsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getDomainConfigs(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetDomainConfigs200Response { + open class func getDomainConfigs(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetDomainConfigsResponse { return try await getDomainConfigsWithRequestBuilder(tenantId: tenantId, apiConfiguration: apiConfiguration).execute().body } @@ -2310,9 +2268,9 @@ open class DefaultAPI { - name: api_key - parameter tenantId: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getDomainConfigsWithRequestBuilder(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getDomainConfigsWithRequestBuilder(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/domain-configs" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2328,7 +2286,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2338,10 +2296,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetEmailTemplate200Response + - returns: GetEmailTemplateResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getEmailTemplate(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEmailTemplate200Response { + open class func getEmailTemplate(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEmailTemplateResponse { return try await getEmailTemplateWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -2353,9 +2310,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getEmailTemplateWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getEmailTemplateWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/email-templates/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2374,7 +2331,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2383,10 +2340,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: GetEmailTemplateDefinitions200Response + - returns: GetEmailTemplateDefinitionsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getEmailTemplateDefinitions(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEmailTemplateDefinitions200Response { + open class func getEmailTemplateDefinitions(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEmailTemplateDefinitionsResponse { return try await getEmailTemplateDefinitionsWithRequestBuilder(tenantId: tenantId, apiConfiguration: apiConfiguration).execute().body } @@ -2397,9 +2353,9 @@ open class DefaultAPI { - name: api_key - parameter tenantId: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getEmailTemplateDefinitionsWithRequestBuilder(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getEmailTemplateDefinitionsWithRequestBuilder(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/email-templates/definitions" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2415,7 +2371,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2426,10 +2382,9 @@ open class DefaultAPI { - parameter id: (path) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetEmailTemplateRenderErrors200Response + - returns: GetEmailTemplateRenderErrorsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getEmailTemplateRenderErrors(tenantId: String, id: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEmailTemplateRenderErrors200Response { + open class func getEmailTemplateRenderErrors(tenantId: String, id: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEmailTemplateRenderErrorsResponse { return try await getEmailTemplateRenderErrorsWithRequestBuilder(tenantId: tenantId, id: id, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -2442,9 +2397,9 @@ open class DefaultAPI { - parameter id: (path) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getEmailTemplateRenderErrorsWithRequestBuilder(tenantId: String, id: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getEmailTemplateRenderErrorsWithRequestBuilder(tenantId: String, id: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/email-templates/{id}/render-errors" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2464,7 +2419,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2474,10 +2429,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetEmailTemplates200Response + - returns: GetEmailTemplatesResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getEmailTemplates(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEmailTemplates200Response { + open class func getEmailTemplates(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEmailTemplatesResponse { return try await getEmailTemplatesWithRequestBuilder(tenantId: tenantId, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -2489,9 +2443,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getEmailTemplatesWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getEmailTemplatesWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/email-templates" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2508,7 +2462,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2520,10 +2474,9 @@ open class DefaultAPI { - parameter limit: (query) (optional) - parameter tags: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetFeedPosts200Response + - returns: GetFeedPostsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getFeedPosts(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetFeedPosts200Response { + open class func getFeedPosts(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetFeedPostsResponse { return try await getFeedPostsWithRequestBuilder(tenantId: tenantId, afterId: afterId, limit: limit, tags: tags, apiConfiguration: apiConfiguration).execute().body } @@ -2538,9 +2491,9 @@ open class DefaultAPI { - parameter limit: (query) (optional) - parameter tags: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getFeedPostsWithRequestBuilder(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getFeedPostsWithRequestBuilder(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/feed-posts" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2559,7 +2512,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2569,10 +2522,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter page: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetHashTags200Response + - returns: GetHashTagsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getHashTags(tenantId: String, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetHashTags200Response { + open class func getHashTags(tenantId: String, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetHashTagsResponse { return try await getHashTagsWithRequestBuilder(tenantId: tenantId, page: page, apiConfiguration: apiConfiguration).execute().body } @@ -2584,9 +2536,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter page: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getHashTagsWithRequestBuilder(tenantId: String, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getHashTagsWithRequestBuilder(tenantId: String, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/hash-tags" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2603,7 +2555,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2613,10 +2565,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetModerator200Response + - returns: GetModeratorResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getModerator(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetModerator200Response { + open class func getModerator(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetModeratorResponse { return try await getModeratorWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -2628,9 +2579,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getModeratorWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getModeratorWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/moderators/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2649,7 +2600,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2659,10 +2610,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetModerators200Response + - returns: GetModeratorsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getModerators(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetModerators200Response { + open class func getModerators(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetModeratorsResponse { return try await getModeratorsWithRequestBuilder(tenantId: tenantId, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -2674,9 +2624,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getModeratorsWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getModeratorsWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/moderators" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2693,7 +2643,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2707,10 +2657,9 @@ open class DefaultAPI { - parameter viewed: (query) (optional) - parameter type: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetNotificationCount200Response + - returns: GetNotificationCountResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getNotificationCount(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetNotificationCount200Response { + open class func getNotificationCount(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetNotificationCountResponse { return try await getNotificationCountWithRequestBuilder(tenantId: tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, apiConfiguration: apiConfiguration).execute().body } @@ -2726,9 +2675,9 @@ open class DefaultAPI { - parameter viewed: (query) (optional) - parameter type: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getNotificationCountWithRequestBuilder(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getNotificationCountWithRequestBuilder(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/notifications/count" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2749,7 +2698,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2764,10 +2713,9 @@ open class DefaultAPI { - parameter type: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetNotifications200Response + - returns: GetNotificationsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getNotifications(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetNotifications200Response { + open class func getNotifications(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetNotificationsResponse { return try await getNotificationsWithRequestBuilder(tenantId: tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -2784,9 +2732,9 @@ open class DefaultAPI { - parameter type: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getNotificationsWithRequestBuilder(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getNotificationsWithRequestBuilder(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/notifications" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2808,7 +2756,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2820,7 +2768,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetPageByURLIdAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getPageByURLId(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPageByURLIdAPIResponse { return try await getPageByURLIdWithRequestBuilder(tenantId: tenantId, urlId: urlId, apiConfiguration: apiConfiguration).execute().body } @@ -2863,7 +2810,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetPagesAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getPages(tenantId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPagesAPIResponse { return try await getPagesWithRequestBuilder(tenantId: tenantId, apiConfiguration: apiConfiguration).execute().body } @@ -2908,10 +2854,9 @@ open class DefaultAPI { - parameter domain: (query) (optional) - parameter attemptCountGT: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetPendingWebhookEventCount200Response + - returns: GetPendingWebhookEventCountResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getPendingWebhookEventCount(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPendingWebhookEventCount200Response { + open class func getPendingWebhookEventCount(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPendingWebhookEventCountResponse { return try await getPendingWebhookEventCountWithRequestBuilder(tenantId: tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, apiConfiguration: apiConfiguration).execute().body } @@ -2928,9 +2873,9 @@ open class DefaultAPI { - parameter domain: (query) (optional) - parameter attemptCountGT: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getPendingWebhookEventCountWithRequestBuilder(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getPendingWebhookEventCountWithRequestBuilder(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/pending-webhook-events/count" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2952,7 +2897,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -2968,10 +2913,9 @@ open class DefaultAPI { - parameter attemptCountGT: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetPendingWebhookEvents200Response + - returns: GetPendingWebhookEventsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getPendingWebhookEvents(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPendingWebhookEvents200Response { + open class func getPendingWebhookEvents(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPendingWebhookEventsResponse { return try await getPendingWebhookEventsWithRequestBuilder(tenantId: tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -2989,9 +2933,9 @@ open class DefaultAPI { - parameter attemptCountGT: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getPendingWebhookEventsWithRequestBuilder(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getPendingWebhookEventsWithRequestBuilder(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/pending-webhook-events" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3014,7 +2958,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3024,10 +2968,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetQuestionConfig200Response + - returns: GetQuestionConfigResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getQuestionConfig(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionConfig200Response { + open class func getQuestionConfig(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionConfigResponse { return try await getQuestionConfigWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3039,9 +2982,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getQuestionConfigWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getQuestionConfigWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/question-configs/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3060,7 +3003,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3070,10 +3013,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetQuestionConfigs200Response + - returns: GetQuestionConfigsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getQuestionConfigs(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionConfigs200Response { + open class func getQuestionConfigs(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionConfigsResponse { return try await getQuestionConfigsWithRequestBuilder(tenantId: tenantId, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -3085,9 +3027,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getQuestionConfigsWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getQuestionConfigsWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/question-configs" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3104,7 +3046,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3114,10 +3056,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetQuestionResult200Response + - returns: GetQuestionResultResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getQuestionResult(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionResult200Response { + open class func getQuestionResult(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionResultResponse { return try await getQuestionResultWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3129,9 +3070,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getQuestionResultWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getQuestionResultWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/question-results/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3150,7 +3091,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3165,10 +3106,9 @@ open class DefaultAPI { - parameter questionIds: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetQuestionResults200Response + - returns: GetQuestionResultsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getQuestionResults(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionResults200Response { + open class func getQuestionResults(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionResultsResponse { return try await getQuestionResultsWithRequestBuilder(tenantId: tenantId, urlId: urlId, userId: userId, startDate: startDate, questionId: questionId, questionIds: questionIds, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -3185,9 +3125,9 @@ open class DefaultAPI { - parameter questionIds: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getQuestionResultsWithRequestBuilder(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getQuestionResultsWithRequestBuilder(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/question-results" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3209,7 +3149,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3221,7 +3161,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetSSOUserByEmailAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getSSOUserByEmail(tenantId: String, email: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetSSOUserByEmailAPIResponse { return try await getSSOUserByEmailWithRequestBuilder(tenantId: tenantId, email: email, apiConfiguration: apiConfiguration).execute().body } @@ -3267,7 +3206,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetSSOUserByIdAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getSSOUserById(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetSSOUserByIdAPIResponse { return try await getSSOUserByIdWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3311,10 +3249,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetSSOUsers200Response + - returns: GetSSOUsersResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getSSOUsers(tenantId: String, skip: Int? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetSSOUsers200Response { + open class func getSSOUsers(tenantId: String, skip: Int? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetSSOUsersResponse { return try await getSSOUsersWithRequestBuilder(tenantId: tenantId, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -3326,9 +3263,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getSSOUsersWithRequestBuilder(tenantId: String, skip: Int? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getSSOUsersWithRequestBuilder(tenantId: String, skip: Int? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/sso-users" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3345,7 +3282,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3357,7 +3294,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetSubscriptionsAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func getSubscriptions(tenantId: String, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetSubscriptionsAPIResponse { return try await getSubscriptionsWithRequestBuilder(tenantId: tenantId, userId: userId, apiConfiguration: apiConfiguration).execute().body } @@ -3399,10 +3335,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTenant200Response + - returns: GetTenantResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTenant(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenant200Response { + open class func getTenant(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantResponse { return try await getTenantWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3414,9 +3349,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTenantWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenants/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3435,7 +3370,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3448,10 +3383,9 @@ open class DefaultAPI { - parameter dayNumber: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTenantDailyUsages200Response + - returns: GetTenantDailyUsagesResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTenantDailyUsages(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantDailyUsages200Response { + open class func getTenantDailyUsages(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantDailyUsagesResponse { return try await getTenantDailyUsagesWithRequestBuilder(tenantId: tenantId, yearNumber: yearNumber, monthNumber: monthNumber, dayNumber: dayNumber, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -3466,9 +3400,9 @@ open class DefaultAPI { - parameter dayNumber: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTenantDailyUsagesWithRequestBuilder(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantDailyUsagesWithRequestBuilder(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tenant-daily-usage" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3488,7 +3422,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3498,10 +3432,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTenantPackage200Response + - returns: GetTenantPackageResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTenantPackage(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantPackage200Response { + open class func getTenantPackage(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantPackageResponse { return try await getTenantPackageWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3513,9 +3446,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTenantPackageWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantPackageWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-packages/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3534,7 +3467,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3544,10 +3477,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTenantPackages200Response + - returns: GetTenantPackagesResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTenantPackages(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantPackages200Response { + open class func getTenantPackages(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantPackagesResponse { return try await getTenantPackagesWithRequestBuilder(tenantId: tenantId, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -3559,9 +3491,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTenantPackagesWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantPackagesWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tenant-packages" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3578,7 +3510,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3588,10 +3520,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTenantUser200Response + - returns: GetTenantUserResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTenantUser(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantUser200Response { + open class func getTenantUser(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantUserResponse { return try await getTenantUserWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3603,9 +3534,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTenantUserWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantUserWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-users/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3624,7 +3555,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3634,10 +3565,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTenantUsers200Response + - returns: GetTenantUsersResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTenantUsers(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantUsers200Response { + open class func getTenantUsers(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantUsersResponse { return try await getTenantUsersWithRequestBuilder(tenantId: tenantId, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -3649,9 +3579,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTenantUsersWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantUsersWithRequestBuilder(tenantId: String, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tenant-users" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3668,7 +3598,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3679,10 +3609,9 @@ open class DefaultAPI { - parameter meta: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTenants200Response + - returns: GetTenantsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTenants(tenantId: String, meta: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenants200Response { + open class func getTenants(tenantId: String, meta: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantsResponse { return try await getTenantsWithRequestBuilder(tenantId: tenantId, meta: meta, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -3695,9 +3624,9 @@ open class DefaultAPI { - parameter meta: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTenantsWithRequestBuilder(tenantId: String, meta: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantsWithRequestBuilder(tenantId: String, meta: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tenants" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3715,7 +3644,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3726,10 +3655,9 @@ open class DefaultAPI { - parameter id: (path) - parameter userId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTicket200Response + - returns: GetTicketResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTicket(tenantId: String, id: String, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTicket200Response { + open class func getTicket(tenantId: String, id: String, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTicketResponse { return try await getTicketWithRequestBuilder(tenantId: tenantId, id: id, userId: userId, apiConfiguration: apiConfiguration).execute().body } @@ -3742,9 +3670,9 @@ open class DefaultAPI { - parameter id: (path) - parameter userId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTicketWithRequestBuilder(tenantId: String, id: String, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTicketWithRequestBuilder(tenantId: String, id: String, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tickets/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3764,7 +3692,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3777,10 +3705,9 @@ open class DefaultAPI { - parameter skip: (query) (optional) - parameter limit: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetTickets200Response + - returns: GetTicketsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getTickets(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTickets200Response { + open class func getTickets(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTicketsResponse { return try await getTicketsWithRequestBuilder(tenantId: tenantId, userId: userId, state: state, skip: skip, limit: limit, apiConfiguration: apiConfiguration).execute().body } @@ -3795,9 +3722,9 @@ open class DefaultAPI { - parameter skip: (query) (optional) - parameter limit: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getTicketsWithRequestBuilder(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTicketsWithRequestBuilder(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/tickets" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3817,7 +3744,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3827,10 +3754,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUser200Response + - returns: GetUserResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUser(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUser200Response { + open class func getUser(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserResponse { return try await getUserWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3842,9 +3768,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/users/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3863,7 +3789,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3873,10 +3799,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserBadge200Response + - returns: APIGetUserBadgeResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserBadge(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserBadge200Response { + open class func getUserBadge(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgeResponse { return try await getUserBadgeWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3888,9 +3813,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserBadgeWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserBadgeWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/user-badges/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3909,7 +3834,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3919,10 +3844,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserBadgeProgressById200Response + - returns: APIGetUserBadgeProgressResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserBadgeProgressById(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserBadgeProgressById200Response { + open class func getUserBadgeProgressById(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgeProgressResponse { return try await getUserBadgeProgressByIdWithRequestBuilder(tenantId: tenantId, id: id, apiConfiguration: apiConfiguration).execute().body } @@ -3934,9 +3858,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter id: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserBadgeProgressByIdWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserBadgeProgressByIdWithRequestBuilder(tenantId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/user-badge-progress/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -3955,7 +3879,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -3965,10 +3889,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter userId: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserBadgeProgressById200Response + - returns: APIGetUserBadgeProgressResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserBadgeProgressByUserId(tenantId: String, userId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserBadgeProgressById200Response { + open class func getUserBadgeProgressByUserId(tenantId: String, userId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgeProgressResponse { return try await getUserBadgeProgressByUserIdWithRequestBuilder(tenantId: tenantId, userId: userId, apiConfiguration: apiConfiguration).execute().body } @@ -3980,9 +3903,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter userId: (path) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserBadgeProgressByUserIdWithRequestBuilder(tenantId: String, userId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserBadgeProgressByUserIdWithRequestBuilder(tenantId: String, userId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/user-badge-progress/user/{userId}" let userIdPreEscape = "\(APIHelper.mapValueToPathItem(userId))" let userIdPostEscape = userIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4001,7 +3924,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4013,10 +3936,9 @@ open class DefaultAPI { - parameter limit: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserBadgeProgressList200Response + - returns: APIGetUserBadgeProgressListResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserBadgeProgressList(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserBadgeProgressList200Response { + open class func getUserBadgeProgressList(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgeProgressListResponse { return try await getUserBadgeProgressListWithRequestBuilder(tenantId: tenantId, userId: userId, limit: limit, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -4030,9 +3952,9 @@ open class DefaultAPI { - parameter limit: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserBadgeProgressListWithRequestBuilder(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserBadgeProgressListWithRequestBuilder(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/user-badge-progress" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -4051,7 +3973,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4066,10 +3988,9 @@ open class DefaultAPI { - parameter limit: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserBadges200Response + - returns: APIGetUserBadgesResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserBadges(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserBadges200Response { + open class func getUserBadges(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgesResponse { return try await getUserBadgesWithRequestBuilder(tenantId: tenantId, userId: userId, badgeId: badgeId, type: type, displayedOnComments: displayedOnComments, limit: limit, skip: skip, apiConfiguration: apiConfiguration).execute().body } @@ -4086,9 +4007,9 @@ open class DefaultAPI { - parameter limit: (query) (optional) - parameter skip: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserBadgesWithRequestBuilder(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserBadgesWithRequestBuilder(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/user-badges" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -4110,7 +4031,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4120,10 +4041,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter urlId: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: GetVotes200Response + - returns: GetVotesResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getVotes(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetVotes200Response { + open class func getVotes(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetVotesResponse { return try await getVotesWithRequestBuilder(tenantId: tenantId, urlId: urlId, apiConfiguration: apiConfiguration).execute().body } @@ -4135,9 +4055,9 @@ open class DefaultAPI { - parameter tenantId: (query) - parameter urlId: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getVotesWithRequestBuilder(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getVotesWithRequestBuilder(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/votes" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -4154,7 +4074,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4166,10 +4086,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetVotesForUser200Response + - returns: GetVotesForUserResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getVotesForUser(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetVotesForUser200Response { + open class func getVotesForUser(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetVotesForUserResponse { return try await getVotesForUserWithRequestBuilder(tenantId: tenantId, urlId: urlId, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body } @@ -4183,9 +4102,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getVotesForUserWithRequestBuilder(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getVotesForUserWithRequestBuilder(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/votes/for-user" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -4204,7 +4123,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4215,10 +4134,9 @@ open class DefaultAPI { - parameter domainToUpdate: (path) - parameter patchDomainConfigParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: GetDomainConfig200Response + - returns: PatchDomainConfigResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func patchDomainConfig(tenantId: String, domainToUpdate: String, patchDomainConfigParams: PatchDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetDomainConfig200Response { + open class func patchDomainConfig(tenantId: String, domainToUpdate: String, patchDomainConfigParams: PatchDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PatchDomainConfigResponse { return try await patchDomainConfigWithRequestBuilder(tenantId: tenantId, domainToUpdate: domainToUpdate, patchDomainConfigParams: patchDomainConfigParams, apiConfiguration: apiConfiguration).execute().body } @@ -4231,9 +4149,9 @@ open class DefaultAPI { - parameter domainToUpdate: (path) - parameter patchDomainConfigParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func patchDomainConfigWithRequestBuilder(tenantId: String, domainToUpdate: String, patchDomainConfigParams: PatchDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func patchDomainConfigWithRequestBuilder(tenantId: String, domainToUpdate: String, patchDomainConfigParams: PatchDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/domain-configs/{domainToUpdate}" let domainToUpdatePreEscape = "\(APIHelper.mapValueToPathItem(domainToUpdate))" let domainToUpdatePostEscape = domainToUpdatePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4252,7 +4170,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4263,10 +4181,9 @@ open class DefaultAPI { - parameter tenantId: (query) (optional) - parameter updateHashTagBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: PatchHashTag200Response + - returns: UpdateHashTagResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func patchHashTag(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PatchHashTag200Response { + open class func patchHashTag(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateHashTagResponse { return try await patchHashTagWithRequestBuilder(tag: tag, tenantId: tenantId, updateHashTagBody: updateHashTagBody, apiConfiguration: apiConfiguration).execute().body } @@ -4279,9 +4196,9 @@ open class DefaultAPI { - parameter tenantId: (query) (optional) - parameter updateHashTagBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func patchHashTagWithRequestBuilder(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func patchHashTagWithRequestBuilder(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/hash-tags/{tag}" let tagPreEscape = "\(APIHelper.mapValueToPathItem(tag))" let tagPostEscape = tagPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4300,7 +4217,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4313,7 +4230,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PatchPageAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func patchPage(tenantId: String, id: String, updateAPIPageData: UpdateAPIPageData, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PatchPageAPIResponse { return try await patchPageWithRequestBuilder(tenantId: tenantId, id: id, updateAPIPageData: updateAPIPageData, apiConfiguration: apiConfiguration).execute().body } @@ -4362,7 +4278,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PatchSSOUserAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func patchSSOUser(tenantId: String, id: String, updateAPISSOUserData: UpdateAPISSOUserData, updateComments: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PatchSSOUserAPIResponse { return try await patchSSOUserWithRequestBuilder(tenantId: tenantId, id: id, updateAPISSOUserData: updateAPISSOUserData, updateComments: updateComments, apiConfiguration: apiConfiguration).execute().body } @@ -4410,10 +4325,9 @@ open class DefaultAPI { - parameter domainToUpdate: (path) - parameter updateDomainConfigParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: GetDomainConfig200Response + - returns: PutDomainConfigResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func putDomainConfig(tenantId: String, domainToUpdate: String, updateDomainConfigParams: UpdateDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetDomainConfig200Response { + open class func putDomainConfig(tenantId: String, domainToUpdate: String, updateDomainConfigParams: UpdateDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PutDomainConfigResponse { return try await putDomainConfigWithRequestBuilder(tenantId: tenantId, domainToUpdate: domainToUpdate, updateDomainConfigParams: updateDomainConfigParams, apiConfiguration: apiConfiguration).execute().body } @@ -4426,9 +4340,9 @@ open class DefaultAPI { - parameter domainToUpdate: (path) - parameter updateDomainConfigParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func putDomainConfigWithRequestBuilder(tenantId: String, domainToUpdate: String, updateDomainConfigParams: UpdateDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func putDomainConfigWithRequestBuilder(tenantId: String, domainToUpdate: String, updateDomainConfigParams: UpdateDomainConfigParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/domain-configs/{domainToUpdate}" let domainToUpdatePreEscape = "\(APIHelper.mapValueToPathItem(domainToUpdate))" let domainToUpdatePostEscape = domainToUpdatePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4447,7 +4361,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4461,7 +4375,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PutSSOUserAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func putSSOUser(tenantId: String, id: String, updateAPISSOUserData: UpdateAPISSOUserData, updateComments: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PutSSOUserAPIResponse { return try await putSSOUserWithRequestBuilder(tenantId: tenantId, id: id, updateAPISSOUserData: updateAPISSOUserData, updateComments: updateComments, apiConfiguration: apiConfiguration).execute().body } @@ -4509,10 +4422,9 @@ open class DefaultAPI { - parameter renderEmailTemplateBody: (body) - parameter locale: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RenderEmailTemplate200Response + - returns: RenderEmailTemplateResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func renderEmailTemplate(tenantId: String, renderEmailTemplateBody: RenderEmailTemplateBody, locale: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> RenderEmailTemplate200Response { + open class func renderEmailTemplate(tenantId: String, renderEmailTemplateBody: RenderEmailTemplateBody, locale: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> RenderEmailTemplateResponse { return try await renderEmailTemplateWithRequestBuilder(tenantId: tenantId, renderEmailTemplateBody: renderEmailTemplateBody, locale: locale, apiConfiguration: apiConfiguration).execute().body } @@ -4525,9 +4437,9 @@ open class DefaultAPI { - parameter renderEmailTemplateBody: (body) - parameter locale: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func renderEmailTemplateWithRequestBuilder(tenantId: String, renderEmailTemplateBody: RenderEmailTemplateBody, locale: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func renderEmailTemplateWithRequestBuilder(tenantId: String, renderEmailTemplateBody: RenderEmailTemplateBody, locale: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/email-templates/render" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: renderEmailTemplateBody, codableHelper: apiConfiguration.codableHelper) @@ -4544,7 +4456,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4555,10 +4467,9 @@ open class DefaultAPI { - parameter id: (path) - parameter replaceTenantPackageBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func replaceTenantPackage(tenantId: String, id: String, replaceTenantPackageBody: ReplaceTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func replaceTenantPackage(tenantId: String, id: String, replaceTenantPackageBody: ReplaceTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await replaceTenantPackageWithRequestBuilder(tenantId: tenantId, id: id, replaceTenantPackageBody: replaceTenantPackageBody, apiConfiguration: apiConfiguration).execute().body } @@ -4571,9 +4482,9 @@ open class DefaultAPI { - parameter id: (path) - parameter replaceTenantPackageBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func replaceTenantPackageWithRequestBuilder(tenantId: String, id: String, replaceTenantPackageBody: ReplaceTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func replaceTenantPackageWithRequestBuilder(tenantId: String, id: String, replaceTenantPackageBody: ReplaceTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-packages/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4592,7 +4503,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4604,10 +4515,9 @@ open class DefaultAPI { - parameter replaceTenantUserBody: (body) - parameter updateComments: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func replaceTenantUser(tenantId: String, id: String, replaceTenantUserBody: ReplaceTenantUserBody, updateComments: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func replaceTenantUser(tenantId: String, id: String, replaceTenantUserBody: ReplaceTenantUserBody, updateComments: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await replaceTenantUserWithRequestBuilder(tenantId: tenantId, id: id, replaceTenantUserBody: replaceTenantUserBody, updateComments: updateComments, apiConfiguration: apiConfiguration).execute().body } @@ -4621,9 +4531,9 @@ open class DefaultAPI { - parameter replaceTenantUserBody: (body) - parameter updateComments: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func replaceTenantUserWithRequestBuilder(tenantId: String, id: String, replaceTenantUserBody: ReplaceTenantUserBody, updateComments: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func replaceTenantUserWithRequestBuilder(tenantId: String, id: String, replaceTenantUserBody: ReplaceTenantUserBody, updateComments: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-users/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4643,7 +4553,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4657,10 +4567,9 @@ open class DefaultAPI { - parameter sendEmails: (query) (optional) - parameter populateNotifications: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: SaveComment200Response + - returns: APISaveCommentResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func saveComment(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SaveComment200Response { + open class func saveComment(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APISaveCommentResponse { return try await saveCommentWithRequestBuilder(tenantId: tenantId, createCommentParams: createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications, apiConfiguration: apiConfiguration).execute().body } @@ -4676,9 +4585,9 @@ open class DefaultAPI { - parameter sendEmails: (query) (optional) - parameter populateNotifications: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func saveCommentWithRequestBuilder(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func saveCommentWithRequestBuilder(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/comments" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createCommentParams, codableHelper: apiConfiguration.codableHelper) @@ -4698,7 +4607,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4712,10 +4621,9 @@ open class DefaultAPI { - parameter sendEmails: (query) (optional) - parameter populateNotifications: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: [SaveComment200Response] + - returns: [SaveCommentsBulkResponse] */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func saveCommentsBulk(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> [SaveComment200Response] { + open class func saveCommentsBulk(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> [SaveCommentsBulkResponse] { return try await saveCommentsBulkWithRequestBuilder(tenantId: tenantId, createCommentParams: createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications, apiConfiguration: apiConfiguration).execute().body } @@ -4731,9 +4639,9 @@ open class DefaultAPI { - parameter sendEmails: (query) (optional) - parameter populateNotifications: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder<[SaveComment200Response]> + - returns: RequestBuilder<[SaveCommentsBulkResponse]> */ - open class func saveCommentsBulkWithRequestBuilder(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder<[SaveComment200Response]> { + open class func saveCommentsBulkWithRequestBuilder(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder<[SaveCommentsBulkResponse]> { let localVariablePath = "/api/v1/comments/bulk" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createCommentParams, codableHelper: apiConfiguration.codableHelper) @@ -4753,7 +4661,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder<[SaveComment200Response]>.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder<[SaveCommentsBulkResponse]>.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4764,10 +4672,9 @@ open class DefaultAPI { - parameter id: (path) - parameter fromName: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func sendInvite(tenantId: String, id: String, fromName: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func sendInvite(tenantId: String, id: String, fromName: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await sendInviteWithRequestBuilder(tenantId: tenantId, id: id, fromName: fromName, apiConfiguration: apiConfiguration).execute().body } @@ -4780,9 +4687,9 @@ open class DefaultAPI { - parameter id: (path) - parameter fromName: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func sendInviteWithRequestBuilder(tenantId: String, id: String, fromName: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func sendInviteWithRequestBuilder(tenantId: String, id: String, fromName: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/moderators/{id}/send-invite" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4802,7 +4709,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4813,10 +4720,9 @@ open class DefaultAPI { - parameter id: (path) - parameter redirectURL: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func sendLoginLink(tenantId: String, id: String, redirectURL: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func sendLoginLink(tenantId: String, id: String, redirectURL: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await sendLoginLinkWithRequestBuilder(tenantId: tenantId, id: id, redirectURL: redirectURL, apiConfiguration: apiConfiguration).execute().body } @@ -4829,9 +4735,9 @@ open class DefaultAPI { - parameter id: (path) - parameter redirectURL: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func sendLoginLinkWithRequestBuilder(tenantId: String, id: String, redirectURL: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func sendLoginLinkWithRequestBuilder(tenantId: String, id: String, redirectURL: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-users/{id}/send-login-link" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4851,7 +4757,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4864,10 +4770,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: UnBlockCommentPublic200Response + - returns: UnblockSuccess */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func unBlockUserFromComment(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UnBlockCommentPublic200Response { + open class func unBlockUserFromComment(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UnblockSuccess { return try await unBlockUserFromCommentWithRequestBuilder(tenantId: tenantId, id: id, unBlockFromCommentParams: unBlockFromCommentParams, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body } @@ -4882,9 +4787,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func unBlockUserFromCommentWithRequestBuilder(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func unBlockUserFromCommentWithRequestBuilder(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/comments/{id}/un-block" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4905,7 +4810,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4917,10 +4822,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagComment200Response + - returns: FlagCommentResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func unFlagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagComment200Response { + open class func unFlagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentResponse { return try await unFlagCommentWithRequestBuilder(tenantId: tenantId, id: id, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body } @@ -4934,9 +4838,9 @@ open class DefaultAPI { - parameter userId: (query) (optional) - parameter anonUserId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func unFlagCommentWithRequestBuilder(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func unFlagCommentWithRequestBuilder(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/comments/{id}/un-flag" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4957,7 +4861,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -4971,10 +4875,9 @@ open class DefaultAPI { - parameter doSpamCheck: (query) (optional) - parameter isLive: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateComment(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateComment(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateCommentWithRequestBuilder(tenantId: tenantId, id: id, updatableCommentParams: updatableCommentParams, contextUserId: contextUserId, doSpamCheck: doSpamCheck, isLive: isLive, apiConfiguration: apiConfiguration).execute().body } @@ -4990,9 +4893,9 @@ open class DefaultAPI { - parameter doSpamCheck: (query) (optional) - parameter isLive: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateCommentWithRequestBuilder(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateCommentWithRequestBuilder(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/comments/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5014,7 +4917,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5025,10 +4928,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateEmailTemplateBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateEmailTemplate(tenantId: String, id: String, updateEmailTemplateBody: UpdateEmailTemplateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateEmailTemplate(tenantId: String, id: String, updateEmailTemplateBody: UpdateEmailTemplateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateEmailTemplateWithRequestBuilder(tenantId: tenantId, id: id, updateEmailTemplateBody: updateEmailTemplateBody, apiConfiguration: apiConfiguration).execute().body } @@ -5041,9 +4943,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateEmailTemplateBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateEmailTemplateWithRequestBuilder(tenantId: String, id: String, updateEmailTemplateBody: UpdateEmailTemplateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateEmailTemplateWithRequestBuilder(tenantId: String, id: String, updateEmailTemplateBody: UpdateEmailTemplateBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/email-templates/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5062,7 +4964,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5073,10 +4975,9 @@ open class DefaultAPI { - parameter id: (path) - parameter feedPost: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateFeedPost(tenantId: String, id: String, feedPost: FeedPost, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateFeedPost(tenantId: String, id: String, feedPost: FeedPost, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateFeedPostWithRequestBuilder(tenantId: tenantId, id: id, feedPost: feedPost, apiConfiguration: apiConfiguration).execute().body } @@ -5089,9 +4990,9 @@ open class DefaultAPI { - parameter id: (path) - parameter feedPost: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateFeedPostWithRequestBuilder(tenantId: String, id: String, feedPost: FeedPost, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateFeedPostWithRequestBuilder(tenantId: String, id: String, feedPost: FeedPost, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/feed-posts/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5110,7 +5011,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5121,10 +5022,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateModeratorBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateModerator(tenantId: String, id: String, updateModeratorBody: UpdateModeratorBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateModerator(tenantId: String, id: String, updateModeratorBody: UpdateModeratorBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateModeratorWithRequestBuilder(tenantId: tenantId, id: id, updateModeratorBody: updateModeratorBody, apiConfiguration: apiConfiguration).execute().body } @@ -5137,9 +5037,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateModeratorBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateModeratorWithRequestBuilder(tenantId: String, id: String, updateModeratorBody: UpdateModeratorBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateModeratorWithRequestBuilder(tenantId: String, id: String, updateModeratorBody: UpdateModeratorBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/moderators/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5158,7 +5058,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5170,10 +5070,9 @@ open class DefaultAPI { - parameter updateNotificationBody: (body) - parameter userId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateNotification(tenantId: String, id: String, updateNotificationBody: UpdateNotificationBody, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateNotification(tenantId: String, id: String, updateNotificationBody: UpdateNotificationBody, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateNotificationWithRequestBuilder(tenantId: tenantId, id: id, updateNotificationBody: updateNotificationBody, userId: userId, apiConfiguration: apiConfiguration).execute().body } @@ -5187,9 +5086,9 @@ open class DefaultAPI { - parameter updateNotificationBody: (body) - parameter userId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateNotificationWithRequestBuilder(tenantId: String, id: String, updateNotificationBody: UpdateNotificationBody, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateNotificationWithRequestBuilder(tenantId: String, id: String, updateNotificationBody: UpdateNotificationBody, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/notifications/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5209,7 +5108,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5220,10 +5119,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateQuestionConfigBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateQuestionConfig(tenantId: String, id: String, updateQuestionConfigBody: UpdateQuestionConfigBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateQuestionConfig(tenantId: String, id: String, updateQuestionConfigBody: UpdateQuestionConfigBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateQuestionConfigWithRequestBuilder(tenantId: tenantId, id: id, updateQuestionConfigBody: updateQuestionConfigBody, apiConfiguration: apiConfiguration).execute().body } @@ -5236,9 +5134,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateQuestionConfigBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateQuestionConfigWithRequestBuilder(tenantId: String, id: String, updateQuestionConfigBody: UpdateQuestionConfigBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateQuestionConfigWithRequestBuilder(tenantId: String, id: String, updateQuestionConfigBody: UpdateQuestionConfigBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/question-configs/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5257,7 +5155,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5268,10 +5166,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateQuestionResultBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateQuestionResult(tenantId: String, id: String, updateQuestionResultBody: UpdateQuestionResultBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateQuestionResult(tenantId: String, id: String, updateQuestionResultBody: UpdateQuestionResultBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateQuestionResultWithRequestBuilder(tenantId: tenantId, id: id, updateQuestionResultBody: updateQuestionResultBody, apiConfiguration: apiConfiguration).execute().body } @@ -5284,9 +5181,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateQuestionResultBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateQuestionResultWithRequestBuilder(tenantId: String, id: String, updateQuestionResultBody: UpdateQuestionResultBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateQuestionResultWithRequestBuilder(tenantId: String, id: String, updateQuestionResultBody: UpdateQuestionResultBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/question-results/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5305,7 +5202,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5319,7 +5216,6 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: UpdateSubscriptionAPIResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func updateSubscription(tenantId: String, id: String, updateAPIUserSubscriptionData: UpdateAPIUserSubscriptionData, userId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateSubscriptionAPIResponse { return try await updateSubscriptionWithRequestBuilder(tenantId: tenantId, id: id, updateAPIUserSubscriptionData: updateAPIUserSubscriptionData, userId: userId, apiConfiguration: apiConfiguration).execute().body } @@ -5367,10 +5263,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateTenantBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateTenant(tenantId: String, id: String, updateTenantBody: UpdateTenantBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateTenant(tenantId: String, id: String, updateTenantBody: UpdateTenantBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateTenantWithRequestBuilder(tenantId: tenantId, id: id, updateTenantBody: updateTenantBody, apiConfiguration: apiConfiguration).execute().body } @@ -5383,9 +5278,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateTenantBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateTenantWithRequestBuilder(tenantId: String, id: String, updateTenantBody: UpdateTenantBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateTenantWithRequestBuilder(tenantId: String, id: String, updateTenantBody: UpdateTenantBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenants/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5404,7 +5299,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5415,10 +5310,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateTenantPackageBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateTenantPackage(tenantId: String, id: String, updateTenantPackageBody: UpdateTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateTenantPackage(tenantId: String, id: String, updateTenantPackageBody: UpdateTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateTenantPackageWithRequestBuilder(tenantId: tenantId, id: id, updateTenantPackageBody: updateTenantPackageBody, apiConfiguration: apiConfiguration).execute().body } @@ -5431,9 +5325,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateTenantPackageBody: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateTenantPackageWithRequestBuilder(tenantId: String, id: String, updateTenantPackageBody: UpdateTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateTenantPackageWithRequestBuilder(tenantId: String, id: String, updateTenantPackageBody: UpdateTenantPackageBody, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-packages/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5452,7 +5346,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5464,10 +5358,9 @@ open class DefaultAPI { - parameter updateTenantUserBody: (body) - parameter updateComments: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateTenantUser(tenantId: String, id: String, updateTenantUserBody: UpdateTenantUserBody, updateComments: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func updateTenantUser(tenantId: String, id: String, updateTenantUserBody: UpdateTenantUserBody, updateComments: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await updateTenantUserWithRequestBuilder(tenantId: tenantId, id: id, updateTenantUserBody: updateTenantUserBody, updateComments: updateComments, apiConfiguration: apiConfiguration).execute().body } @@ -5481,9 +5374,9 @@ open class DefaultAPI { - parameter updateTenantUserBody: (body) - parameter updateComments: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateTenantUserWithRequestBuilder(tenantId: String, id: String, updateTenantUserBody: UpdateTenantUserBody, updateComments: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateTenantUserWithRequestBuilder(tenantId: String, id: String, updateTenantUserBody: UpdateTenantUserBody, updateComments: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/tenant-users/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5503,7 +5396,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } @@ -5514,10 +5407,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateUserBadgeParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: UpdateUserBadge200Response + - returns: APIEmptySuccessResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateUserBadge(tenantId: String, id: String, updateUserBadgeParams: UpdateUserBadgeParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateUserBadge200Response { + open class func updateUserBadge(tenantId: String, id: String, updateUserBadgeParams: UpdateUserBadgeParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptySuccessResponse { return try await updateUserBadgeWithRequestBuilder(tenantId: tenantId, id: id, updateUserBadgeParams: updateUserBadgeParams, apiConfiguration: apiConfiguration).execute().body } @@ -5530,9 +5422,9 @@ open class DefaultAPI { - parameter id: (path) - parameter updateUserBadgeParams: (body) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateUserBadgeWithRequestBuilder(tenantId: String, id: String, updateUserBadgeParams: UpdateUserBadgeParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateUserBadgeWithRequestBuilder(tenantId: String, id: String, updateUserBadgeParams: UpdateUserBadgeParams, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/user-badges/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -5551,7 +5443,7 @@ open class DefaultAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } diff --git a/client/FastCommentsSwift/APIs/ModerationAPI.swift b/client/FastCommentsSwift/APIs/ModerationAPI.swift new file mode 100644 index 0000000..722a34c --- /dev/null +++ b/client/FastCommentsSwift/APIs/ModerationAPI.swift @@ -0,0 +1,1919 @@ +// +// ModerationAPI.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +open class ModerationAPI { + + /** + + - parameter commentId: (path) + - parameter voteId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: VoteDeleteResponse + */ + open class func deleteModerationVote(commentId: String, voteId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteDeleteResponse { + return try await deleteModerationVoteWithRequestBuilder(commentId: commentId, voteId: voteId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - DELETE /auth/my-account/moderate-comments/vote/{commentId}/{voteId} + - parameter commentId: (path) + - parameter voteId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func deleteModerationVoteWithRequestBuilder(commentId: String, voteId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let voteIdPreEscape = "\(APIHelper.mapValueToPathItem(voteId))" + let voteIdPostEscape = voteIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{voteId}", with: voteIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter page: (query) (optional) + - parameter count: (query) (optional) + - parameter textSearch: (query) (optional) + - parameter byIPFromComment: (query) (optional) + - parameter filters: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter sorts: (query) (optional) + - parameter demo: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationAPIGetCommentsResponse + */ + open class func getApiComments(page: Double? = nil, count: Double? = nil, textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetCommentsResponse { + return try await getApiCommentsWithRequestBuilder(page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/api/comments + - parameter page: (query) (optional) + - parameter count: (query) (optional) + - parameter textSearch: (query) (optional) + - parameter byIPFromComment: (query) (optional) + - parameter filters: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter sorts: (query) (optional) + - parameter demo: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getApiCommentsWithRequestBuilder(page: Double? = nil, count: Double? = nil, textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/api/comments" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "count": (wrappedValue: count?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "byIPFromComment": (wrappedValue: byIPFromComment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "filters": (wrappedValue: filters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "searchFilters": (wrappedValue: searchFilters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sorts": (wrappedValue: sorts?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "demo": (wrappedValue: demo?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter batchJobId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationExportStatusResponse + */ + open class func getApiExportStatus(batchJobId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationExportStatusResponse { + return try await getApiExportStatusWithRequestBuilder(batchJobId: batchJobId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/api/export/status + - parameter batchJobId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getApiExportStatusWithRequestBuilder(batchJobId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/api/export/status" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "batchJobId": (wrappedValue: batchJobId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter textSearch: (query) (optional) + - parameter byIPFromComment: (query) (optional) + - parameter filters: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter afterId: (query) (optional) + - parameter demo: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationAPIGetCommentIdsResponse + */ + open class func getApiIds(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, afterId: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetCommentIdsResponse { + return try await getApiIdsWithRequestBuilder(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/api/ids + - parameter textSearch: (query) (optional) + - parameter byIPFromComment: (query) (optional) + - parameter filters: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter afterId: (query) (optional) + - parameter demo: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getApiIdsWithRequestBuilder(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, afterId: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/api/ids" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "byIPFromComment": (wrappedValue: byIPFromComment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "filters": (wrappedValue: filters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "searchFilters": (wrappedValue: searchFilters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "afterId": (wrappedValue: afterId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "demo": (wrappedValue: demo?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetBannedUsersFromCommentResponse + */ + open class func getBanUsersFromComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetBannedUsersFromCommentResponse { + return try await getBanUsersFromCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getBanUsersFromCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetCommentBanStatusResponse + */ + open class func getCommentBanStatus(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentBanStatusResponse { + return try await getCommentBanStatusWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getCommentBanStatusWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationAPIChildCommentsResponse + */ + open class func getCommentChildren(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIChildCommentsResponse { + return try await getCommentChildrenWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/comment-children/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getCommentChildrenWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/comment-children/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter textSearch: (query) (optional) + - parameter byIPFromComment: (query) (optional) + - parameter filter: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter demo: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationAPICountCommentsResponse + */ + open class func getCount(textSearch: String? = nil, byIPFromComment: String? = nil, filter: String? = nil, searchFilters: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPICountCommentsResponse { + return try await getCountWithRequestBuilder(textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/count + - parameter textSearch: (query) (optional) + - parameter byIPFromComment: (query) (optional) + - parameter filter: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter demo: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getCountWithRequestBuilder(textSearch: String? = nil, byIPFromComment: String? = nil, filter: String? = nil, searchFilters: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/count" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "byIPFromComment": (wrappedValue: byIPFromComment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "filter": (wrappedValue: filter?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "searchFilters": (wrappedValue: searchFilters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "demo": (wrappedValue: demo?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetBannedUsersCountResponse + */ + open class func getCounts(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetBannedUsersCountResponse { + return try await getCountsWithRequestBuilder(sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/banned-users/counts + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getCountsWithRequestBuilder(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/banned-users/counts" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationAPIGetLogsResponse + */ + open class func getLogs(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetLogsResponse { + return try await getLogsWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/logs/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getLogsWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/logs/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetTenantManualBadgesResponse + */ + open class func getManualBadges(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantManualBadgesResponse { + return try await getManualBadgesWithRequestBuilder(sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/get-manual-badges + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getManualBadgesWithRequestBuilder(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/get-manual-badges" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter badgesUserId: (query) (optional) + - parameter commentId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetUserManualBadgesResponse + */ + open class func getManualBadgesForUser(badgesUserId: String? = nil, commentId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserManualBadgesResponse { + return try await getManualBadgesForUserWithRequestBuilder(badgesUserId: badgesUserId, commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/get-manual-badges-for-user + - parameter badgesUserId: (query) (optional) + - parameter commentId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getManualBadgesForUserWithRequestBuilder(badgesUserId: String? = nil, commentId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/get-manual-badges-for-user" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "badgesUserId": (wrappedValue: badgesUserId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "commentId": (wrappedValue: commentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter includeEmail: (query) (optional) + - parameter includeIP: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationAPICommentResponse + */ + open class func getModerationComment(commentId: String, includeEmail: Bool? = nil, includeIP: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPICommentResponse { + return try await getModerationCommentWithRequestBuilder(commentId: commentId, includeEmail: includeEmail, includeIP: includeIP, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/comment/{commentId} + - parameter commentId: (path) + - parameter includeEmail: (query) (optional) + - parameter includeIP: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getModerationCommentWithRequestBuilder(commentId: String, includeEmail: Bool? = nil, includeIP: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/comment/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "includeEmail": (wrappedValue: includeEmail?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includeIP": (wrappedValue: includeIP?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetCommentTextResponse + */ + open class func getModerationCommentText(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentTextResponse { + return try await getModerationCommentTextWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/get-comment-text/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getModerationCommentTextWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/get-comment-text/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter includeByUserIdAndEmail: (query) (optional) + - parameter includeByIP: (query) (optional) + - parameter includeByEmailDomain: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: PreBanSummary + */ + open class func getPreBanSummary(commentId: String, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PreBanSummary { + return try await getPreBanSummaryWithRequestBuilder(commentId: commentId, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/pre-ban-summary/{commentId} + - parameter commentId: (path) + - parameter includeByUserIdAndEmail: (query) (optional) + - parameter includeByIP: (query) (optional) + - parameter includeByEmailDomain: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getPreBanSummaryWithRequestBuilder(commentId: String, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "includeByUserIdAndEmail": (wrappedValue: includeByUserIdAndEmail?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includeByIP": (wrappedValue: includeByIP?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includeByEmailDomain": (wrappedValue: includeByEmailDomain?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter value: (query) (optional) + - parameter filters: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationCommentSearchResponse + */ + open class func getSearchCommentsSummary(value: String? = nil, filters: String? = nil, searchFilters: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationCommentSearchResponse { + return try await getSearchCommentsSummaryWithRequestBuilder(value: value, filters: filters, searchFilters: searchFilters, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/search/comments/summary + - parameter value: (query) (optional) + - parameter filters: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getSearchCommentsSummaryWithRequestBuilder(value: String? = nil, filters: String? = nil, searchFilters: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/search/comments/summary" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "value": (wrappedValue: value?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "filters": (wrappedValue: filters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "searchFilters": (wrappedValue: searchFilters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter value: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationPageSearchResponse + */ + open class func getSearchPages(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationPageSearchResponse { + return try await getSearchPagesWithRequestBuilder(value: value, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/search/pages + - parameter value: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getSearchPagesWithRequestBuilder(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/search/pages" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "value": (wrappedValue: value?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter value: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationSiteSearchResponse + */ + open class func getSearchSites(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationSiteSearchResponse { + return try await getSearchSitesWithRequestBuilder(value: value, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/search/sites + - parameter value: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getSearchSitesWithRequestBuilder(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/search/sites" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "value": (wrappedValue: value?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter textSearch: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationSuggestResponse + */ + open class func getSearchSuggest(textSearch: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationSuggestResponse { + return try await getSearchSuggestWithRequestBuilder(textSearch: textSearch, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/search/suggest + - parameter textSearch: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getSearchSuggestWithRequestBuilder(textSearch: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/search/suggest" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter value: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationUserSearchResponse + */ + open class func getSearchUsers(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationUserSearchResponse { + return try await getSearchUsersWithRequestBuilder(value: value, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/search/users + - parameter value: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getSearchUsersWithRequestBuilder(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/search/users" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "value": (wrappedValue: value?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter userId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetUserTrustFactorResponse + */ + open class func getTrustFactor(userId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserTrustFactorResponse { + return try await getTrustFactorWithRequestBuilder(userId: userId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/get-trust-factor + - parameter userId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getTrustFactorWithRequestBuilder(userId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/get-trust-factor" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIModerateGetUserBanPreferencesResponse + */ + open class func getUserBanPreference(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIModerateGetUserBanPreferencesResponse { + return try await getUserBanPreferenceWithRequestBuilder(sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/user-ban-preference + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getUserBanPreferenceWithRequestBuilder(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/user-ban-preference" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetUserInternalProfileResponse + */ + open class func getUserInternalProfile(commentId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserInternalProfileResponse { + return try await getUserInternalProfileWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /auth/my-account/moderate-comments/get-user-internal-profile + - parameter commentId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getUserInternalProfileWithRequestBuilder(commentId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/get-user-internal-profile" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "commentId": (wrappedValue: commentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter adjustCommentVotesParams: (body) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: AdjustVotesResponse + */ + open class func postAdjustCommentVotes(commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AdjustVotesResponse { + return try await postAdjustCommentVotesWithRequestBuilder(commentId: commentId, adjustCommentVotesParams: adjustCommentVotesParams, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} + - parameter commentId: (path) + - parameter adjustCommentVotesParams: (body) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postAdjustCommentVotesWithRequestBuilder(commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: adjustCommentVotesParams, codableHelper: apiConfiguration.codableHelper) + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter textSearch: (query) (optional) + - parameter byIPFromComment: (query) (optional) + - parameter filters: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter sorts: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationExportResponse + */ + open class func postApiExport(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationExportResponse { + return try await postApiExportWithRequestBuilder(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/api/export + - parameter textSearch: (query) (optional) + - parameter byIPFromComment: (query) (optional) + - parameter filters: (query) (optional) + - parameter searchFilters: (query) (optional) + - parameter sorts: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postApiExportWithRequestBuilder(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/api/export" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "byIPFromComment": (wrappedValue: byIPFromComment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "filters": (wrappedValue: filters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "searchFilters": (wrappedValue: searchFilters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sorts": (wrappedValue: sorts?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter banEmail: (query) (optional) + - parameter banEmailDomain: (query) (optional) + - parameter banIP: (query) (optional) + - parameter deleteAllUsersComments: (query) (optional) + - parameter bannedUntil: (query) (optional) + - parameter isShadowBan: (query) (optional) + - parameter updateId: (query) (optional) + - parameter banReason: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: BanUserFromCommentResult + */ + open class func postBanUserFromComment(commentId: String, banEmail: Bool? = nil, banEmailDomain: Bool? = nil, banIP: Bool? = nil, deleteAllUsersComments: Bool? = nil, bannedUntil: String? = nil, isShadowBan: Bool? = nil, updateId: String? = nil, banReason: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BanUserFromCommentResult { + return try await postBanUserFromCommentWithRequestBuilder(commentId: commentId, banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} + - parameter commentId: (path) + - parameter banEmail: (query) (optional) + - parameter banEmailDomain: (query) (optional) + - parameter banIP: (query) (optional) + - parameter deleteAllUsersComments: (query) (optional) + - parameter bannedUntil: (query) (optional) + - parameter isShadowBan: (query) (optional) + - parameter updateId: (query) (optional) + - parameter banReason: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postBanUserFromCommentWithRequestBuilder(commentId: String, banEmail: Bool? = nil, banEmailDomain: Bool? = nil, banIP: Bool? = nil, deleteAllUsersComments: Bool? = nil, bannedUntil: String? = nil, isShadowBan: Bool? = nil, updateId: String? = nil, banReason: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "banEmail": (wrappedValue: banEmail?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "banEmailDomain": (wrappedValue: banEmailDomain?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "banIP": (wrappedValue: banIP?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "deleteAllUsersComments": (wrappedValue: deleteAllUsersComments?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "bannedUntil": (wrappedValue: bannedUntil?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "isShadowBan": (wrappedValue: isShadowBan?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "updateId": (wrappedValue: updateId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "banReason": (wrappedValue: banReason?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter banUserUndoParams: (body) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func postBanUserUndo(banUserUndoParams: BanUserUndoParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postBanUserUndoWithRequestBuilder(banUserUndoParams: banUserUndoParams, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/ban-user/undo + - parameter banUserUndoParams: (body) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postBanUserUndoWithRequestBuilder(banUserUndoParams: BanUserUndoParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/ban-user/undo" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: banUserUndoParams, codableHelper: apiConfiguration.codableHelper) + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter bulkPreBanParams: (body) + - parameter includeByUserIdAndEmail: (query) (optional) + - parameter includeByIP: (query) (optional) + - parameter includeByEmailDomain: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: BulkPreBanSummary + */ + open class func postBulkPreBanSummary(bulkPreBanParams: BulkPreBanParams, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BulkPreBanSummary { + return try await postBulkPreBanSummaryWithRequestBuilder(bulkPreBanParams: bulkPreBanParams, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/bulk-pre-ban-summary + - parameter bulkPreBanParams: (body) + - parameter includeByUserIdAndEmail: (query) (optional) + - parameter includeByIP: (query) (optional) + - parameter includeByEmailDomain: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postBulkPreBanSummaryWithRequestBuilder(bulkPreBanParams: BulkPreBanParams, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/bulk-pre-ban-summary" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: bulkPreBanParams, codableHelper: apiConfiguration.codableHelper) + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "includeByUserIdAndEmail": (wrappedValue: includeByUserIdAndEmail?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includeByIP": (wrappedValue: includeByIP?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includeByEmailDomain": (wrappedValue: includeByEmailDomain?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentsByIdsParams: (body) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: ModerationAPIChildCommentsResponse + */ + open class func postCommentsByIds(commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIChildCommentsResponse { + return try await postCommentsByIdsWithRequestBuilder(commentsByIdsParams: commentsByIdsParams, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/comments-by-ids + - parameter commentsByIdsParams: (body) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postCommentsByIdsWithRequestBuilder(commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/comments-by-ids" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: commentsByIdsParams, codableHelper: apiConfiguration.codableHelper) + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func postFlagComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postFlagCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/flag-comment/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postFlagCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/flag-comment/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: PostRemoveCommentResponse + */ + open class func postRemoveComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PostRemoveCommentResponse { + return try await postRemoveCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/remove-comment/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postRemoveCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/remove-comment/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func postRestoreDeletedComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postRestoreDeletedCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postRestoreDeletedCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter approved: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: SetCommentApprovedResponse + */ + open class func postSetCommentApprovalStatus(commentId: String, approved: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetCommentApprovedResponse { + return try await postSetCommentApprovalStatusWithRequestBuilder(commentId: commentId, approved: approved, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} + - parameter commentId: (path) + - parameter approved: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postSetCommentApprovalStatusWithRequestBuilder(commentId: String, approved: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "approved": (wrappedValue: approved?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter reviewed: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func postSetCommentReviewStatus(commentId: String, reviewed: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postSetCommentReviewStatusWithRequestBuilder(commentId: commentId, reviewed: reviewed, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/set-comment-review-status/{commentId} + - parameter commentId: (path) + - parameter reviewed: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postSetCommentReviewStatusWithRequestBuilder(commentId: String, reviewed: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "reviewed": (wrappedValue: reviewed?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter spam: (query) (optional) + - parameter permNotSpam: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func postSetCommentSpamStatus(commentId: String, spam: Bool? = nil, permNotSpam: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postSetCommentSpamStatusWithRequestBuilder(commentId: commentId, spam: spam, permNotSpam: permNotSpam, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} + - parameter commentId: (path) + - parameter spam: (query) (optional) + - parameter permNotSpam: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postSetCommentSpamStatusWithRequestBuilder(commentId: String, spam: Bool? = nil, permNotSpam: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "spam": (wrappedValue: spam?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "permNotSpam": (wrappedValue: permNotSpam?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter setCommentTextParams: (body) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: SetCommentTextResponse + */ + open class func postSetCommentText(commentId: String, setCommentTextParams: SetCommentTextParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetCommentTextResponse { + return try await postSetCommentTextWithRequestBuilder(commentId: commentId, setCommentTextParams: setCommentTextParams, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/set-comment-text/{commentId} + - parameter commentId: (path) + - parameter setCommentTextParams: (body) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postSetCommentTextWithRequestBuilder(commentId: String, setCommentTextParams: SetCommentTextParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/set-comment-text/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: setCommentTextParams, codableHelper: apiConfiguration.codableHelper) + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + "Content-Type": "application/json", + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func postUnFlagComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postUnFlagCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/un-flag-comment/{commentId} + - parameter commentId: (path) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postUnFlagCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/un-flag-comment/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter commentId: (path) + - parameter direction: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: VoteResponse + */ + open class func postVote(commentId: String, direction: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { + return try await postVoteWithRequestBuilder(commentId: commentId, direction: direction, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /auth/my-account/moderate-comments/vote/{commentId} + - parameter commentId: (path) + - parameter direction: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func postVoteWithRequestBuilder(commentId: String, direction: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/vote/{commentId}" + let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" + let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "direction": (wrappedValue: direction?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter badgeId: (query) + - parameter userId: (query) (optional) + - parameter commentId: (query) (optional) + - parameter broadcastId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: AwardUserBadgeResponse + */ + open class func putAwardBadge(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AwardUserBadgeResponse { + return try await putAwardBadgeWithRequestBuilder(badgeId: badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - PUT /auth/my-account/moderate-comments/award-badge + - parameter badgeId: (query) + - parameter userId: (query) (optional) + - parameter commentId: (query) (optional) + - parameter broadcastId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func putAwardBadgeWithRequestBuilder(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/award-badge" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "badgeId": (wrappedValue: badgeId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "commentId": (wrappedValue: commentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter urlId: (query) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func putCloseThread(urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await putCloseThreadWithRequestBuilder(urlId: urlId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - PUT /auth/my-account/moderate-comments/close-thread + - parameter urlId: (query) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func putCloseThreadWithRequestBuilder(urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/close-thread" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter badgeId: (query) + - parameter userId: (query) (optional) + - parameter commentId: (query) (optional) + - parameter broadcastId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RemoveUserBadgeResponse + */ + open class func putRemoveBadge(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> RemoveUserBadgeResponse { + return try await putRemoveBadgeWithRequestBuilder(badgeId: badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - PUT /auth/my-account/moderate-comments/remove-badge + - parameter badgeId: (query) + - parameter userId: (query) (optional) + - parameter commentId: (query) (optional) + - parameter broadcastId: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func putRemoveBadgeWithRequestBuilder(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/remove-badge" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "badgeId": (wrappedValue: badgeId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "commentId": (wrappedValue: commentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter urlId: (query) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func putReopenThread(urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await putReopenThreadWithRequestBuilder(urlId: urlId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - PUT /auth/my-account/moderate-comments/reopen-thread + - parameter urlId: (query) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func putReopenThreadWithRequestBuilder(urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/reopen-thread" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter userId: (query) (optional) + - parameter trustFactor: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: SetUserTrustFactorResponse + */ + open class func setTrustFactor(userId: String? = nil, trustFactor: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetUserTrustFactorResponse { + return try await setTrustFactorWithRequestBuilder(userId: userId, trustFactor: trustFactor, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - PUT /auth/my-account/moderate-comments/set-trust-factor + - parameter userId: (query) (optional) + - parameter trustFactor: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func setTrustFactorWithRequestBuilder(userId: String? = nil, trustFactor: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/set-trust-factor" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "trustFactor": (wrappedValue: trustFactor?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } +} diff --git a/client/FastCommentsSwift/APIs/PublicAPI.swift b/client/FastCommentsSwift/APIs/PublicAPI.swift index 8adc3ca..e140e85 100644 --- a/client/FastCommentsSwift/APIs/PublicAPI.swift +++ b/client/FastCommentsSwift/APIs/PublicAPI.swift @@ -16,10 +16,9 @@ open class PublicAPI { - parameter publicBlockFromCommentParams: (body) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: BlockFromCommentPublic200Response + - returns: BlockSuccess */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func blockFromCommentPublic(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BlockFromCommentPublic200Response { + open class func blockFromCommentPublic(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BlockSuccess { return try await blockFromCommentPublicWithRequestBuilder(tenantId: tenantId, commentId: commentId, publicBlockFromCommentParams: publicBlockFromCommentParams, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -30,9 +29,9 @@ open class PublicAPI { - parameter publicBlockFromCommentParams: (body) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func blockFromCommentPublicWithRequestBuilder(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func blockFromCommentPublicWithRequestBuilder(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/block-from-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -52,7 +51,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -63,10 +62,9 @@ open class PublicAPI { - parameter commentIds: (query) A comma separated list of comment ids. - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: CheckedCommentsForBlocked200Response + - returns: CheckBlockedCommentsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func checkedCommentsForBlocked(tenantId: String, commentIds: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CheckedCommentsForBlocked200Response { + open class func checkedCommentsForBlocked(tenantId: String, commentIds: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CheckBlockedCommentsResponse { return try await checkedCommentsForBlockedWithRequestBuilder(tenantId: tenantId, commentIds: commentIds, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -76,9 +74,9 @@ open class PublicAPI { - parameter commentIds: (query) A comma separated list of comment ids. - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func checkedCommentsForBlockedWithRequestBuilder(tenantId: String, commentIds: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func checkedCommentsForBlockedWithRequestBuilder(tenantId: String, commentIds: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/check-blocked-comments" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -96,7 +94,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -110,10 +108,9 @@ open class PublicAPI { - parameter sessionId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateCommentPublic200Response + - returns: SaveCommentsResponseWithPresence */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createCommentPublic(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateCommentPublic200Response { + open class func createCommentPublic(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SaveCommentsResponseWithPresence { return try await createCommentPublicWithRequestBuilder(tenantId: tenantId, urlId: urlId, broadcastId: broadcastId, commentData: commentData, sessionId: sessionId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -126,9 +123,9 @@ open class PublicAPI { - parameter sessionId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createCommentPublicWithRequestBuilder(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createCommentPublicWithRequestBuilder(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -150,7 +147,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -162,10 +159,9 @@ open class PublicAPI { - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateFeedPostPublic200Response + - returns: CreateFeedPostResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func createFeedPostPublic(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostPublic200Response { + open class func createFeedPostPublic(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostResponse { return try await createFeedPostPublicWithRequestBuilder(tenantId: tenantId, createFeedPostParams: createFeedPostParams, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -176,9 +172,9 @@ open class PublicAPI { - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func createFeedPostPublicWithRequestBuilder(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createFeedPostPublicWithRequestBuilder(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/feed-posts/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -198,7 +194,100 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter title: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: CreateV1PageReact + */ + open class func createV1PageReact(tenantId: String, urlId: String, title: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateV1PageReact { + return try await createV1PageReactWithRequestBuilder(tenantId: tenantId, urlId: urlId, title: title, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /page-reacts/v1/likes/{tenantId} + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter title: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func createV1PageReactWithRequestBuilder(tenantId: String, urlId: String, title: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/page-reacts/v1/likes/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "title": (wrappedValue: title?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter id: (query) + - parameter title: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: CreateV1PageReact + */ + open class func createV2PageReact(tenantId: String, urlId: String, id: String, title: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateV1PageReact { + return try await createV2PageReactWithRequestBuilder(tenantId: tenantId, urlId: urlId, id: id, title: title, apiConfiguration: apiConfiguration).execute().body + } + + /** + - POST /page-reacts/v2/{tenantId} + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter id: (query) + - parameter title: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func createV2PageReactWithRequestBuilder(tenantId: String, urlId: String, id: String, title: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/page-reacts/v2/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "id": (wrappedValue: id.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "title": (wrappedValue: title?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -211,10 +300,9 @@ open class PublicAPI { - parameter editKey: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: DeleteCommentPublic200Response + - returns: PublicAPIDeleteCommentResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteCommentPublic(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteCommentPublic200Response { + open class func deleteCommentPublic(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPIDeleteCommentResponse { return try await deleteCommentPublicWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, editKey: editKey, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -226,9 +314,9 @@ open class PublicAPI { - parameter editKey: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteCommentPublicWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteCommentPublicWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -252,7 +340,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -267,10 +355,9 @@ open class PublicAPI { - parameter editKey: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: DeleteCommentVote200Response + - returns: VoteDeleteResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteCommentVote(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteCommentVote200Response { + open class func deleteCommentVote(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteDeleteResponse { return try await deleteCommentVoteWithRequestBuilder(tenantId: tenantId, commentId: commentId, voteId: voteId, urlId: urlId, broadcastId: broadcastId, editKey: editKey, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -284,9 +371,9 @@ open class PublicAPI { - parameter editKey: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteCommentVoteWithRequestBuilder(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteCommentVoteWithRequestBuilder(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/vote/{voteId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -314,7 +401,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -326,10 +413,9 @@ open class PublicAPI { - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: DeleteFeedPostPublic200Response + - returns: DeleteFeedPostPublicResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func deleteFeedPostPublic(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteFeedPostPublic200Response { + open class func deleteFeedPostPublic(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteFeedPostPublicResponse { return try await deleteFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -340,9 +426,9 @@ open class PublicAPI { - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func deleteFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/feed-posts/{tenantId}/{postId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -365,7 +451,94 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: CreateV1PageReact + */ + open class func deleteV1PageReact(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateV1PageReact { + return try await deleteV1PageReactWithRequestBuilder(tenantId: tenantId, urlId: urlId, apiConfiguration: apiConfiguration).execute().body + } + + /** + - DELETE /page-reacts/v1/likes/{tenantId} + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func deleteV1PageReactWithRequestBuilder(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/page-reacts/v1/likes/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter id: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: CreateV1PageReact + */ + open class func deleteV2PageReact(tenantId: String, urlId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateV1PageReact { + return try await deleteV2PageReactWithRequestBuilder(tenantId: tenantId, urlId: urlId, id: id, apiConfiguration: apiConfiguration).execute().body + } + + /** + - DELETE /page-reacts/v2/{tenantId} + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter id: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func deleteV2PageReactWithRequestBuilder(tenantId: String, urlId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/page-reacts/v2/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "id": (wrappedValue: id.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -377,10 +550,9 @@ open class PublicAPI { - parameter isFlagged: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: FlagCommentPublic200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func flagCommentPublic(tenantId: String, commentId: String, isFlagged: Bool, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentPublic200Response { + open class func flagCommentPublic(tenantId: String, commentId: String, isFlagged: Bool, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await flagCommentPublicWithRequestBuilder(tenantId: tenantId, commentId: commentId, isFlagged: isFlagged, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -391,9 +563,9 @@ open class PublicAPI { - parameter isFlagged: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func flagCommentPublicWithRequestBuilder(tenantId: String, commentId: String, isFlagged: Bool, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func flagCommentPublicWithRequestBuilder(tenantId: String, commentId: String, isFlagged: Bool, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/flag-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -414,7 +586,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -426,10 +598,9 @@ open class PublicAPI { - parameter editKey: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetCommentText200Response + - returns: PublicAPIGetCommentTextResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getCommentText(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentText200Response { + open class func getCommentText(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPIGetCommentTextResponse { return try await getCommentTextWithRequestBuilder(tenantId: tenantId, commentId: commentId, editKey: editKey, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -440,9 +611,9 @@ open class PublicAPI { - parameter editKey: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getCommentTextWithRequestBuilder(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentTextWithRequestBuilder(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/text" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -465,7 +636,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -477,10 +648,9 @@ open class PublicAPI { - parameter dir: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetCommentVoteUserNames200Response + - returns: GetCommentVoteUserNamesSuccessResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getCommentVoteUserNames(tenantId: String, commentId: String, dir: Int, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentVoteUserNames200Response { + open class func getCommentVoteUserNames(tenantId: String, commentId: String, dir: Int, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentVoteUserNamesSuccessResponse { return try await getCommentVoteUserNamesWithRequestBuilder(tenantId: tenantId, commentId: commentId, dir: dir, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -491,9 +661,9 @@ open class PublicAPI { - parameter dir: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getCommentVoteUserNamesWithRequestBuilder(tenantId: String, commentId: String, dir: Int, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentVoteUserNamesWithRequestBuilder(tenantId: String, commentId: String, dir: Int, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/votes" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -516,7 +686,62 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter userId: (query) (optional) + - parameter direction: (query) (optional) + - parameter repliesToUserId: (query) (optional) + - parameter page: (query) (optional) + - parameter includei10n: (query) (optional) + - parameter locale: (query) (optional) + - parameter isCrawler: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetCommentsForUserResponse + */ + open class func getCommentsForUser(userId: String? = nil, direction: SortDirections? = nil, repliesToUserId: String? = nil, page: Double? = nil, includei10n: Bool? = nil, locale: String? = nil, isCrawler: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentsForUserResponse { + return try await getCommentsForUserWithRequestBuilder(userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /comments-for-user + - parameter userId: (query) (optional) + - parameter direction: (query) (optional) + - parameter repliesToUserId: (query) (optional) + - parameter page: (query) (optional) + - parameter includei10n: (query) (optional) + - parameter locale: (query) (optional) + - parameter isCrawler: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getCommentsForUserWithRequestBuilder(userId: String? = nil, direction: SortDirections? = nil, repliesToUserId: String? = nil, page: Double? = nil, includei10n: Bool? = nil, locale: String? = nil, isCrawler: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/comments-for-user" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "direction": (wrappedValue: direction?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "repliesToUserId": (wrappedValue: repliesToUserId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includei10n": (wrappedValue: includei10n?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "locale": (wrappedValue: locale?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "isCrawler": (wrappedValue: isCrawler?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -552,10 +777,9 @@ open class PublicAPI { - parameter afterCommentId: (query) (optional) - parameter beforeCommentId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetCommentsPublic200Response + - returns: GetCommentsResponseWithPresencePublicComment */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getCommentsPublic(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentsPublic200Response { + open class func getCommentsPublic(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentsResponseWithPresencePublicComment { return try await getCommentsPublicWithRequestBuilder(tenantId: tenantId, urlId: urlId, page: page, direction: direction, sso: sso, skip: skip, skipChildren: skipChildren, limit: limit, limitChildren: limitChildren, countChildren: countChildren, fetchPageForCommentId: fetchPageForCommentId, includeConfig: includeConfig, countAll: countAll, includei10n: includei10n, locale: locale, modules: modules, isCrawler: isCrawler, includeNotificationCount: includeNotificationCount, asTree: asTree, maxTreeDepth: maxTreeDepth, useFullTranslationIds: useFullTranslationIds, parentId: parentId, searchText: searchText, hashTags: hashTags, userId: userId, customConfigStr: customConfigStr, afterCommentId: afterCommentId, beforeCommentId: beforeCommentId, apiConfiguration: apiConfiguration).execute().body } @@ -591,9 +815,9 @@ open class PublicAPI { - parameter afterCommentId: (query) (optional) - parameter beforeCommentId: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getCommentsPublicWithRequestBuilder(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentsPublicWithRequestBuilder(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -638,7 +862,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -649,12 +873,11 @@ open class PublicAPI { - parameter urlId: (query) - parameter userIdWS: (query) - parameter startTime: (query) - - parameter endTime: (query) + - parameter endTime: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetEventLog200Response + - returns: GetEventLogResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getEventLog(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEventLog200Response { + open class func getEventLog(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEventLogResponse { return try await getEventLogWithRequestBuilder(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS, startTime: startTime, endTime: endTime, apiConfiguration: apiConfiguration).execute().body } @@ -665,11 +888,11 @@ open class PublicAPI { - parameter urlId: (query) - parameter userIdWS: (query) - parameter startTime: (query) - - parameter endTime: (query) + - parameter endTime: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getEventLogWithRequestBuilder(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getEventLogWithRequestBuilder(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/event-log/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -682,7 +905,7 @@ open class PublicAPI { "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "userIdWS": (wrappedValue: userIdWS.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "startTime": (wrappedValue: startTime.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "endTime": (wrappedValue: endTime.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "endTime": (wrappedValue: endTime?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -691,7 +914,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -706,10 +929,9 @@ open class PublicAPI { - parameter isCrawler: (query) (optional) - parameter includeUserInfo: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetFeedPostsPublic200Response + - returns: PublicFeedPostsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getFeedPostsPublic(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetFeedPostsPublic200Response { + open class func getFeedPostsPublic(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicFeedPostsResponse { return try await getFeedPostsPublicWithRequestBuilder(tenantId: tenantId, afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo, apiConfiguration: apiConfiguration).execute().body } @@ -724,9 +946,9 @@ open class PublicAPI { - parameter isCrawler: (query) (optional) - parameter includeUserInfo: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getFeedPostsPublicWithRequestBuilder(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getFeedPostsPublicWithRequestBuilder(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/feed-posts/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -750,7 +972,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -761,10 +983,9 @@ open class PublicAPI { - parameter postIds: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetFeedPostsStats200Response + - returns: FeedPostsStatsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getFeedPostsStats(tenantId: String, postIds: [String], sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetFeedPostsStats200Response { + open class func getFeedPostsStats(tenantId: String, postIds: [String], sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FeedPostsStatsResponse { return try await getFeedPostsStatsWithRequestBuilder(tenantId: tenantId, postIds: postIds, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -774,9 +995,9 @@ open class PublicAPI { - parameter postIds: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getFeedPostsStatsWithRequestBuilder(tenantId: String, postIds: [String], sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getFeedPostsStatsWithRequestBuilder(tenantId: String, postIds: [String], sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/feed-posts/{tenantId}/stats" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -796,7 +1017,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -804,31 +1025,23 @@ open class PublicAPI { /** - parameter tenantId: (path) - - parameter urlId: (query) - - parameter userIdWS: (query) - - parameter startTime: (query) - - parameter endTime: (query) + - parameter largeInternalURLSanitized: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: GetEventLog200Response + - returns: GifGetLargeResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getGlobalEventLog(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEventLog200Response { - return try await getGlobalEventLogWithRequestBuilder(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS, startTime: startTime, endTime: endTime, apiConfiguration: apiConfiguration).execute().body + open class func getGifLarge(tenantId: String, largeInternalURLSanitized: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GifGetLargeResponse { + return try await getGifLargeWithRequestBuilder(tenantId: tenantId, largeInternalURLSanitized: largeInternalURLSanitized, apiConfiguration: apiConfiguration).execute().body } /** - - GET /event-log/global/{tenantId} - - req tenantId urlId userIdWS + - GET /gifs/get-large/{tenantId} - parameter tenantId: (path) - - parameter urlId: (query) - - parameter userIdWS: (query) - - parameter startTime: (query) - - parameter endTime: (query) + - parameter largeInternalURLSanitized: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getGlobalEventLogWithRequestBuilder(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/event-log/global/{tenantId}" + open class func getGifLargeWithRequestBuilder(tenantId: String, largeInternalURLSanitized: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/gifs/get-large/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) @@ -837,10 +1050,7 @@ open class PublicAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "userIdWS": (wrappedValue: userIdWS.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "startTime": (wrappedValue: startTime.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "endTime": (wrappedValue: endTime.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "largeInternalURLSanitized": (wrappedValue: largeInternalURLSanitized.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -849,39 +1059,49 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } /** - - parameter tenantId: (query) - - parameter sso: (query) (optional) + - parameter tenantId: (path) + - parameter search: (query) + - parameter locale: (query) (optional) + - parameter rating: (query) (optional) + - parameter page: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserNotificationCount200Response + - returns: GetGifsSearchResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserNotificationCount(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserNotificationCount200Response { - return try await getUserNotificationCountWithRequestBuilder(tenantId: tenantId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getGifsSearch(tenantId: String, search: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetGifsSearchResponse { + return try await getGifsSearchWithRequestBuilder(tenantId: tenantId, search: search, locale: locale, rating: rating, page: page, apiConfiguration: apiConfiguration).execute().body } /** - - GET /user-notifications/get-count - - parameter tenantId: (query) - - parameter sso: (query) (optional) + - GET /gifs/search/{tenantId} + - parameter tenantId: (path) + - parameter search: (query) + - parameter locale: (query) (optional) + - parameter rating: (query) (optional) + - parameter page: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserNotificationCountWithRequestBuilder(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/user-notifications/get-count" + open class func getGifsSearchWithRequestBuilder(tenantId: String, search: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/gifs/search/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "search": (wrappedValue: search.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "locale": (wrappedValue: locale?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "rating": (wrappedValue: rating?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -890,63 +1110,46 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } /** - - parameter tenantId: (query) - - parameter pageSize: (query) (optional) - - parameter afterId: (query) (optional) - - parameter includeContext: (query) (optional) - - parameter afterCreatedAt: (query) (optional) - - parameter unreadOnly: (query) (optional) - - parameter dmOnly: (query) (optional) - - parameter noDm: (query) (optional) - - parameter includeTranslations: (query) (optional) - - parameter sso: (query) (optional) + - parameter tenantId: (path) + - parameter locale: (query) (optional) + - parameter rating: (query) (optional) + - parameter page: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserNotifications200Response + - returns: GetGifsTrendingResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserNotifications(tenantId: String, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserNotifications200Response { - return try await getUserNotificationsWithRequestBuilder(tenantId: tenantId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getGifsTrending(tenantId: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetGifsTrendingResponse { + return try await getGifsTrendingWithRequestBuilder(tenantId: tenantId, locale: locale, rating: rating, page: page, apiConfiguration: apiConfiguration).execute().body } /** - - GET /user-notifications - - parameter tenantId: (query) - - parameter pageSize: (query) (optional) - - parameter afterId: (query) (optional) - - parameter includeContext: (query) (optional) - - parameter afterCreatedAt: (query) (optional) - - parameter unreadOnly: (query) (optional) - - parameter dmOnly: (query) (optional) - - parameter noDm: (query) (optional) - - parameter includeTranslations: (query) (optional) - - parameter sso: (query) (optional) + - GET /gifs/trending/{tenantId} + - parameter tenantId: (path) + - parameter locale: (query) (optional) + - parameter rating: (query) (optional) + - parameter page: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserNotificationsWithRequestBuilder(tenantId: String, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/user-notifications" + open class func getGifsTrendingWithRequestBuilder(tenantId: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/gifs/trending/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "pageSize": (wrappedValue: pageSize?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "afterId": (wrappedValue: afterId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "includeContext": (wrappedValue: includeContext?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "afterCreatedAt": (wrappedValue: afterCreatedAt?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "unreadOnly": (wrappedValue: unreadOnly?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "dmOnly": (wrappedValue: dmOnly?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "noDm": (wrappedValue: noDm?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "includeTranslations": (wrappedValue: includeTranslations?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), - "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "locale": (wrappedValue: locale?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "rating": (wrappedValue: rating?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -955,7 +1158,372 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter userIdWS: (query) + - parameter startTime: (query) + - parameter endTime: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetEventLogResponse + */ + open class func getGlobalEventLog(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetEventLogResponse { + return try await getGlobalEventLogWithRequestBuilder(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS, startTime: startTime, endTime: endTime, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /event-log/global/{tenantId} + - req tenantId urlId userIdWS + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter userIdWS: (query) + - parameter startTime: (query) + - parameter endTime: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getGlobalEventLogWithRequestBuilder(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/event-log/global/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "userIdWS": (wrappedValue: userIdWS.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "startTime": (wrappedValue: startTime.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "endTime": (wrappedValue: endTime?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) Page URL identifier (cleaned server-side). + - parameter afterName: (query) Cursor: pass nextAfterName from the previous response. (optional) + - parameter afterUserId: (query) Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: PageUsersOfflineResponse + */ + open class func getOfflineUsers(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PageUsersOfflineResponse { + return try await getOfflineUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, afterName: afterName, afterUserId: afterUserId, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /pages/{tenantId}/users/offline + - 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. + - parameter tenantId: (path) + - parameter urlId: (query) Page URL identifier (cleaned server-side). + - parameter afterName: (query) Cursor: pass nextAfterName from the previous response. (optional) + - parameter afterUserId: (query) Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getOfflineUsersWithRequestBuilder(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/pages/{tenantId}/users/offline" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "afterName": (wrappedValue: afterName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "afterUserId": (wrappedValue: afterUserId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) Page URL identifier (cleaned server-side). + - parameter afterName: (query) Cursor: pass nextAfterName from the previous response. (optional) + - parameter afterUserId: (query) Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: PageUsersOnlineResponse + */ + open class func getOnlineUsers(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PageUsersOnlineResponse { + return try await getOnlineUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, afterName: afterName, afterUserId: afterUserId, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /pages/{tenantId}/users/online + - 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). + - parameter tenantId: (path) + - parameter urlId: (query) Page URL identifier (cleaned server-side). + - parameter afterName: (query) Cursor: pass nextAfterName from the previous response. (optional) + - parameter afterUserId: (query) Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getOnlineUsersWithRequestBuilder(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/pages/{tenantId}/users/online" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "afterName": (wrappedValue: afterName?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "afterUserId": (wrappedValue: afterUserId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter cursor: (query) Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. (optional) + - parameter limit: (query) 1..200, default 50 (optional) + - parameter q: (query) Optional case-insensitive title prefix filter. (optional) + - parameter sortBy: (query) Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional) + - parameter hasComments: (query) If true, only return pages with at least one comment. (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetPublicPagesResponse + */ + open class func getPagesPublic(tenantId: String, cursor: String? = nil, limit: Int? = nil, q: String? = nil, sortBy: PagesSortBy? = nil, hasComments: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPublicPagesResponse { + return try await getPagesPublicWithRequestBuilder(tenantId: tenantId, cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /pages/{tenantId} + - 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. + - parameter tenantId: (path) + - parameter cursor: (query) Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. (optional) + - parameter limit: (query) 1..200, default 50 (optional) + - parameter q: (query) Optional case-insensitive title prefix filter. (optional) + - parameter sortBy: (query) Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional) + - parameter hasComments: (query) If true, only return pages with at least one comment. (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getPagesPublicWithRequestBuilder(tenantId: String, cursor: String? = nil, limit: Int? = nil, q: String? = nil, sortBy: PagesSortBy? = nil, hasComments: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/pages/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "cursor": (wrappedValue: cursor?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "limit": (wrappedValue: limit?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "q": (wrappedValue: q?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sortBy": (wrappedValue: sortBy?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "hasComments": (wrappedValue: hasComments?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter namespace: (path) + - parameter component: (path) + - parameter locale: (query) (optional) + - parameter useFullTranslationIds: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetTranslationsResponse + */ + open class func getTranslations(namespace: String, component: String, locale: String? = nil, useFullTranslationIds: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTranslationsResponse { + return try await getTranslationsWithRequestBuilder(namespace: namespace, component: component, locale: locale, useFullTranslationIds: useFullTranslationIds, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /translations/{namespace}/{component} + - parameter namespace: (path) + - parameter component: (path) + - parameter locale: (query) (optional) + - parameter useFullTranslationIds: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getTranslationsWithRequestBuilder(namespace: String, component: String, locale: String? = nil, useFullTranslationIds: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/translations/{namespace}/{component}" + let namespacePreEscape = "\(APIHelper.mapValueToPathItem(namespace))" + let namespacePostEscape = namespacePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{namespace}", with: namespacePostEscape, options: .literal, range: nil) + let componentPreEscape = "\(APIHelper.mapValueToPathItem(component))" + let componentPostEscape = componentPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{component}", with: componentPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "locale": (wrappedValue: locale?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "useFullTranslationIds": (wrappedValue: useFullTranslationIds?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (query) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetUserNotificationCountResponse + */ + open class func getUserNotificationCount(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserNotificationCountResponse { + return try await getUserNotificationCountWithRequestBuilder(tenantId: tenantId, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /user-notifications/get-count + - parameter tenantId: (query) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getUserNotificationCountWithRequestBuilder(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/user-notifications/get-count" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (query) + - parameter urlId: (query) Used to determine whether the current page is subscribed. (optional) + - parameter pageSize: (query) (optional) + - parameter afterId: (query) (optional) + - parameter includeContext: (query) (optional) + - parameter afterCreatedAt: (query) (optional) + - parameter unreadOnly: (query) (optional) + - parameter dmOnly: (query) (optional) + - parameter noDm: (query) (optional) + - parameter includeTranslations: (query) (optional) + - parameter includeTenantNotifications: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetMyNotificationsResponse + */ + open class func getUserNotifications(tenantId: String, urlId: String? = nil, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, includeTenantNotifications: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetMyNotificationsResponse { + return try await getUserNotificationsWithRequestBuilder(tenantId: tenantId, urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /user-notifications + - parameter tenantId: (query) + - parameter urlId: (query) Used to determine whether the current page is subscribed. (optional) + - parameter pageSize: (query) (optional) + - parameter afterId: (query) (optional) + - parameter includeContext: (query) (optional) + - parameter afterCreatedAt: (query) (optional) + - parameter unreadOnly: (query) (optional) + - parameter dmOnly: (query) (optional) + - parameter noDm: (query) (optional) + - parameter includeTranslations: (query) (optional) + - parameter includeTenantNotifications: (query) (optional) + - parameter sso: (query) (optional) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getUserNotificationsWithRequestBuilder(tenantId: String, urlId: String? = nil, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, includeTenantNotifications: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/user-notifications" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "urlId": (wrappedValue: urlId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "pageSize": (wrappedValue: pageSize?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "afterId": (wrappedValue: afterId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includeContext": (wrappedValue: includeContext?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "afterCreatedAt": (wrappedValue: afterCreatedAt?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "unreadOnly": (wrappedValue: unreadOnly?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "dmOnly": (wrappedValue: dmOnly?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "noDm": (wrappedValue: noDm?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includeTranslations": (wrappedValue: includeTranslations?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "includeTenantNotifications": (wrappedValue: includeTenantNotifications?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -966,10 +1534,9 @@ open class PublicAPI { - parameter urlIdWS: (query) - parameter userIds: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserPresenceStatuses200Response + - returns: GetUserPresenceStatusesResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserPresenceStatuses(tenantId: String, urlIdWS: String, userIds: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserPresenceStatuses200Response { + open class func getUserPresenceStatuses(tenantId: String, urlIdWS: String, userIds: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserPresenceStatusesResponse { return try await getUserPresenceStatusesWithRequestBuilder(tenantId: tenantId, urlIdWS: urlIdWS, userIds: userIds, apiConfiguration: apiConfiguration).execute().body } @@ -979,9 +1546,9 @@ open class PublicAPI { - parameter urlIdWS: (query) - parameter userIds: (query) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserPresenceStatusesWithRequestBuilder(tenantId: String, urlIdWS: String, userIds: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserPresenceStatusesWithRequestBuilder(tenantId: String, urlIdWS: String, userIds: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/user-presence-status" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -999,7 +1566,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1010,10 +1577,9 @@ open class PublicAPI { - parameter postIds: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: GetUserReactsPublic200Response + - returns: UserReactsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func getUserReactsPublic(tenantId: String, postIds: [String]? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserReactsPublic200Response { + open class func getUserReactsPublic(tenantId: String, postIds: [String]? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UserReactsResponse { return try await getUserReactsPublicWithRequestBuilder(tenantId: tenantId, postIds: postIds, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1023,9 +1589,9 @@ open class PublicAPI { - parameter postIds: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func getUserReactsPublicWithRequestBuilder(tenantId: String, postIds: [String]? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserReactsPublicWithRequestBuilder(tenantId: String, postIds: [String]? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/feed-posts/{tenantId}/user-reacts" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1045,7 +1611,179 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter ids: (query) Comma-delimited userIds. + - parameter apiConfiguration: The configuration for the http request. + - returns: PageUsersInfoResponse + */ + open class func getUsersInfo(tenantId: String, ids: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PageUsersInfoResponse { + return try await getUsersInfoWithRequestBuilder(tenantId: tenantId, ids: ids, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /pages/{tenantId}/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). + - parameter tenantId: (path) + - parameter ids: (query) Comma-delimited userIds. + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getUsersInfoWithRequestBuilder(tenantId: String, ids: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/pages/{tenantId}/users/info" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "ids": (wrappedValue: ids.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetV1PageLikes + */ + open class func getV1PageLikes(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetV1PageLikes { + return try await getV1PageLikesWithRequestBuilder(tenantId: tenantId, urlId: urlId, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /page-reacts/v1/likes/{tenantId} + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getV1PageLikesWithRequestBuilder(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/page-reacts/v1/likes/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter id: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetV2PageReactUsersResponse + */ + open class func getV2PageReactUsers(tenantId: String, urlId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetV2PageReactUsersResponse { + return try await getV2PageReactUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, id: id, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /page-reacts/v2/{tenantId}/list + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter id: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getV2PageReactUsersWithRequestBuilder(tenantId: String, urlId: String, id: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/page-reacts/v2/{tenantId}/list" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "id": (wrappedValue: id.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + + /** + + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: GetV2PageReacts + */ + open class func getV2PageReacts(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetV2PageReacts { + return try await getV2PageReactsWithRequestBuilder(tenantId: tenantId, urlId: urlId, apiConfiguration: apiConfiguration).execute().body + } + + /** + - GET /page-reacts/v2/{tenantId} + - parameter tenantId: (path) + - parameter urlId: (query) + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func getV2PageReactsWithRequestBuilder(tenantId: String, urlId: String, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/page-reacts/v2/{tenantId}" + let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" + let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" + localVariablePath = localVariablePath.replacingOccurrences(of: "{tenantId}", with: tenantIdPostEscape, options: .literal, range: nil) + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + var localVariableUrlComponents = URLComponents(string: localVariableURLString) + localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + ]) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1057,10 +1795,9 @@ open class PublicAPI { - parameter broadcastId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: LockComment200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func lockComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> LockComment200Response { + open class func lockComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await lockCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1071,9 +1808,9 @@ open class PublicAPI { - parameter broadcastId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func lockCommentWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func lockCommentWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/lock" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1096,11 +1833,43 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** + + - parameter apiConfiguration: The configuration for the http request. + - returns: APIEmptyResponse + */ + open class func logoutPublic(apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await logoutPublicWithRequestBuilder(apiConfiguration: apiConfiguration).execute().body + } + + /** + - PUT /auth/logout + - parameter apiConfiguration: The configuration for the http request. + - returns: RequestBuilder + */ + open class func logoutPublicWithRequestBuilder(apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/logout" + let localVariableURLString = apiConfiguration.basePath + localVariablePath + let localVariableParameters: [String: any Sendable]? = nil + + let localVariableUrlComponents = URLComponents(string: localVariableURLString) + + let localVariableNillableHeaders: [String: (any Sendable)?] = [ + : + ] + + let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) + + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + + return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) + } + /** - parameter tenantId: (path) @@ -1108,10 +1877,9 @@ open class PublicAPI { - parameter broadcastId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: PinComment200Response + - returns: ChangeCommentPinStatusResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func pinComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PinComment200Response { + open class func pinComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ChangeCommentPinStatusResponse { return try await pinCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1122,9 +1890,9 @@ open class PublicAPI { - parameter broadcastId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func pinCommentWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func pinCommentWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/pin" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1147,7 +1915,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1161,10 +1929,9 @@ open class PublicAPI { - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: ReactFeedPostPublic200Response + - returns: ReactFeedPostResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func reactFeedPostPublic(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ReactFeedPostPublic200Response { + open class func reactFeedPostPublic(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ReactFeedPostResponse { return try await reactFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, reactBodyParams: reactBodyParams, isUndo: isUndo, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1177,9 +1944,9 @@ open class PublicAPI { - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func reactFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func reactFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/feed-posts/{tenantId}/react/{postId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1203,7 +1970,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1213,10 +1980,9 @@ open class PublicAPI { - parameter tenantId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: ResetUserNotifications200Response + - returns: ResetUserNotificationsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func resetUserNotificationCount(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ResetUserNotifications200Response { + open class func resetUserNotificationCount(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ResetUserNotificationsResponse { return try await resetUserNotificationCountWithRequestBuilder(tenantId: tenantId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1225,9 +1991,9 @@ open class PublicAPI { - parameter tenantId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func resetUserNotificationCountWithRequestBuilder(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func resetUserNotificationCountWithRequestBuilder(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/user-notifications/reset-count" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -1244,7 +2010,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1259,10 +2025,9 @@ open class PublicAPI { - parameter noDm: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: ResetUserNotifications200Response + - returns: ResetUserNotificationsResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func resetUserNotifications(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ResetUserNotifications200Response { + open class func resetUserNotifications(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ResetUserNotificationsResponse { return try await resetUserNotificationsWithRequestBuilder(tenantId: tenantId, afterId: afterId, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1276,9 +2041,9 @@ open class PublicAPI { - parameter noDm: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func resetUserNotificationsWithRequestBuilder(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func resetUserNotificationsWithRequestBuilder(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/user-notifications/reset" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -1300,7 +2065,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1322,10 +2087,9 @@ open class PublicAPI { - parameter sso: (query) (optional) - parameter searchSection: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: SearchUsers200Response + - returns: SearchUsersResult */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func searchUsers(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SearchUsers200Response { + open class func searchUsers(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SearchUsersResult { return try await searchUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, usernameStartsWith: usernameStartsWith, mentionGroupIds: mentionGroupIds, sso: sso, searchSection: searchSection, apiConfiguration: apiConfiguration).execute().body } @@ -1338,9 +2102,9 @@ open class PublicAPI { - parameter sso: (query) (optional) - parameter searchSection: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func searchUsersWithRequestBuilder(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func searchUsersWithRequestBuilder(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/user-search/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1363,7 +2127,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1377,10 +2141,9 @@ open class PublicAPI { - parameter editKey: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: SetCommentText200Response + - returns: PublicAPISetCommentTextResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func setCommentText(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetCommentText200Response { + open class func setCommentText(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPISetCommentTextResponse { return try await setCommentTextWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, commentTextUpdateRequest: commentTextUpdateRequest, editKey: editKey, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1393,9 +2156,9 @@ open class PublicAPI { - parameter editKey: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func setCommentTextWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func setCommentTextWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/update-text" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1419,7 +2182,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1431,10 +2194,9 @@ open class PublicAPI { - parameter publicBlockFromCommentParams: (body) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: UnBlockCommentPublic200Response + - returns: UnblockSuccess */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func unBlockCommentPublic(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UnBlockCommentPublic200Response { + open class func unBlockCommentPublic(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UnblockSuccess { return try await unBlockCommentPublicWithRequestBuilder(tenantId: tenantId, commentId: commentId, publicBlockFromCommentParams: publicBlockFromCommentParams, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1445,9 +2207,9 @@ open class PublicAPI { - parameter publicBlockFromCommentParams: (body) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func unBlockCommentPublicWithRequestBuilder(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func unBlockCommentPublicWithRequestBuilder(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/block-from-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1467,7 +2229,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1479,10 +2241,9 @@ open class PublicAPI { - parameter broadcastId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: LockComment200Response + - returns: APIEmptyResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func unLockComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> LockComment200Response { + open class func unLockComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { return try await unLockCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1493,9 +2254,9 @@ open class PublicAPI { - parameter broadcastId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func unLockCommentWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func unLockCommentWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/unlock" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1518,7 +2279,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1530,10 +2291,9 @@ open class PublicAPI { - parameter broadcastId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: PinComment200Response + - returns: ChangeCommentPinStatusResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func unPinComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PinComment200Response { + open class func unPinComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ChangeCommentPinStatusResponse { return try await unPinCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1544,9 +2304,9 @@ open class PublicAPI { - parameter broadcastId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func unPinCommentWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func unPinCommentWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/unpin" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1569,7 +2329,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1582,10 +2342,9 @@ open class PublicAPI { - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: CreateFeedPostPublic200Response + - returns: CreateFeedPostResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateFeedPostPublic(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostPublic200Response { + open class func updateFeedPostPublic(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostResponse { return try await updateFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, updateFeedPostParams: updateFeedPostParams, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1597,9 +2356,9 @@ open class PublicAPI { - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/feed-posts/{tenantId}/{postId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1622,7 +2381,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1643,10 +2402,9 @@ open class PublicAPI { - parameter commentId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: UpdateUserNotificationStatus200Response + - returns: UpdateUserNotificationCommentSubscriptionStatusResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateUserNotificationCommentSubscriptionStatus(tenantId: String, notificationId: String, optedInOrOut: OptedInOrOut_updateUserNotificationCommentSubscriptionStatus, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateUserNotificationStatus200Response { + open class func updateUserNotificationCommentSubscriptionStatus(tenantId: String, notificationId: String, optedInOrOut: OptedInOrOut_updateUserNotificationCommentSubscriptionStatus, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateUserNotificationCommentSubscriptionStatusResponse { return try await updateUserNotificationCommentSubscriptionStatusWithRequestBuilder(tenantId: tenantId, notificationId: notificationId, optedInOrOut: optedInOrOut, commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1659,9 +2417,9 @@ open class PublicAPI { - parameter commentId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateUserNotificationCommentSubscriptionStatusWithRequestBuilder(tenantId: String, notificationId: String, optedInOrOut: OptedInOrOut_updateUserNotificationCommentSubscriptionStatus, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateUserNotificationCommentSubscriptionStatusWithRequestBuilder(tenantId: String, notificationId: String, optedInOrOut: OptedInOrOut_updateUserNotificationCommentSubscriptionStatus, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/user-notifications/{notificationId}/mark-opted/{optedInOrOut}" let notificationIdPreEscape = "\(APIHelper.mapValueToPathItem(notificationId))" let notificationIdPostEscape = notificationIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1685,7 +2443,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1707,10 +2465,9 @@ open class PublicAPI { - parameter subscribedOrUnsubscribed: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: UpdateUserNotificationStatus200Response + - returns: UpdateUserNotificationPageSubscriptionStatusResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateUserNotificationPageSubscriptionStatus(tenantId: String, urlId: String, url: String, pageTitle: String, subscribedOrUnsubscribed: SubscribedOrUnsubscribed_updateUserNotificationPageSubscriptionStatus, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateUserNotificationStatus200Response { + open class func updateUserNotificationPageSubscriptionStatus(tenantId: String, urlId: String, url: String, pageTitle: String, subscribedOrUnsubscribed: SubscribedOrUnsubscribed_updateUserNotificationPageSubscriptionStatus, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateUserNotificationPageSubscriptionStatusResponse { return try await updateUserNotificationPageSubscriptionStatusWithRequestBuilder(tenantId: tenantId, urlId: urlId, url: url, pageTitle: pageTitle, subscribedOrUnsubscribed: subscribedOrUnsubscribed, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1724,9 +2481,9 @@ open class PublicAPI { - parameter subscribedOrUnsubscribed: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateUserNotificationPageSubscriptionStatusWithRequestBuilder(tenantId: String, urlId: String, url: String, pageTitle: String, subscribedOrUnsubscribed: SubscribedOrUnsubscribed_updateUserNotificationPageSubscriptionStatus, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateUserNotificationPageSubscriptionStatusWithRequestBuilder(tenantId: String, urlId: String, url: String, pageTitle: String, subscribedOrUnsubscribed: SubscribedOrUnsubscribed_updateUserNotificationPageSubscriptionStatus, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}" let subscribedOrUnsubscribedPreEscape = "\(subscribedOrUnsubscribed.rawValue)" let subscribedOrUnsubscribedPostEscape = subscribedOrUnsubscribedPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1749,7 +2506,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1769,10 +2526,9 @@ open class PublicAPI { - parameter newStatus: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: UpdateUserNotificationStatus200Response + - returns: UpdateUserNotificationStatusResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func updateUserNotificationStatus(tenantId: String, notificationId: String, newStatus: NewStatus_updateUserNotificationStatus, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateUserNotificationStatus200Response { + open class func updateUserNotificationStatus(tenantId: String, notificationId: String, newStatus: NewStatus_updateUserNotificationStatus, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateUserNotificationStatusResponse { return try await updateUserNotificationStatusWithRequestBuilder(tenantId: tenantId, notificationId: notificationId, newStatus: newStatus, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1783,9 +2539,9 @@ open class PublicAPI { - parameter newStatus: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func updateUserNotificationStatusWithRequestBuilder(tenantId: String, notificationId: String, newStatus: NewStatus_updateUserNotificationStatus, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateUserNotificationStatusWithRequestBuilder(tenantId: String, notificationId: String, newStatus: NewStatus_updateUserNotificationStatus, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/user-notifications/{notificationId}/mark/{newStatus}" let notificationIdPreEscape = "\(APIHelper.mapValueToPathItem(notificationId))" let notificationIdPostEscape = notificationIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1808,7 +2564,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } @@ -1822,7 +2578,6 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: UploadImageResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) open class func uploadImage(tenantId: String, file: URL, sizePreset: SizePreset? = nil, urlId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UploadImageResponse { return try await uploadImageWithRequestBuilder(tenantId: tenantId, file: file, sizePreset: sizePreset, urlId: urlId, apiConfiguration: apiConfiguration).execute().body } @@ -1877,10 +2632,9 @@ open class PublicAPI { - parameter sessionId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: VoteComment200Response + - returns: VoteResponse */ - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) - open class func voteComment(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteComment200Response { + open class func voteComment(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { return try await voteCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, urlId: urlId, broadcastId: broadcastId, voteBodyParams: voteBodyParams, sessionId: sessionId, sso: sso, apiConfiguration: apiConfiguration).execute().body } @@ -1894,9 +2648,9 @@ open class PublicAPI { - parameter sessionId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func voteCommentWithRequestBuilder(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func voteCommentWithRequestBuilder(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/comments/{tenantId}/{commentId}/vote" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1921,7 +2675,7 @@ open class PublicAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } diff --git a/client/FastCommentsSwift/Infrastructure/APIHelper.swift b/client/FastCommentsSwift/Infrastructure/APIHelper.swift index b4218d3..5308eaa 100644 --- a/client/FastCommentsSwift/Infrastructure/APIHelper.swift +++ b/client/FastCommentsSwift/Infrastructure/APIHelper.swift @@ -6,7 +6,7 @@ import Foundation -public struct APIHelper { +public struct APIHelper: Sendable { public static func rejectNil(_ source: [String: (any Sendable)?]) -> [String: any Sendable]? { let destination = source.reduce(into: [String: any Sendable]()) { result, item in if let value = item.value { diff --git a/client/FastCommentsSwift/Infrastructure/APIs.swift b/client/FastCommentsSwift/Infrastructure/APIs.swift index ece85d5..a65437c 100644 --- a/client/FastCommentsSwift/Infrastructure/APIs.swift +++ b/client/FastCommentsSwift/Infrastructure/APIs.swift @@ -10,19 +10,68 @@ import FoundationNetworking #endif open class FastCommentsSwiftAPIConfiguration: @unchecked Sendable { - public var basePath: String - public var customHeaders: [String: String] - public var credential: URLCredential? - public var requestBuilderFactory: RequestBuilderFactory - public var apiResponseQueue: DispatchQueue - public var codableHelper: CodableHelper - - /// Configures the range of HTTP status codes that will result in a successful response + + // MARK: - Private state + + private struct State { + var basePath: String + var customHeaders: [String: String] + var credential: URLCredential? + var requestBuilderFactory: RequestBuilderFactory + var apiResponseQueue: DispatchQueue + var codableHelper: CodableHelper + var successfulStatusCodeRange: Range + var interceptor: OpenAPIInterceptor + } + + private let _state: OpenAPIMutex + + // MARK: - Public interface + + public var basePath: String { + get { _state.value.basePath } + set { _state.withValue { $0.basePath = newValue } } + } + + public var customHeaders: [String: String] { + get { _state.value.customHeaders } + set { _state.withValue { $0.customHeaders = newValue } } + } + + public var credential: URLCredential? { + get { _state.value.credential } + set { _state.withValue { $0.credential = newValue } } + } + + public var requestBuilderFactory: RequestBuilderFactory { + get { _state.value.requestBuilderFactory } + set { _state.withValue { $0.requestBuilderFactory = newValue } } + } + + public var apiResponseQueue: DispatchQueue { + get { _state.value.apiResponseQueue } + set { _state.withValue { $0.apiResponseQueue = newValue } } + } + + public var codableHelper: CodableHelper { + get { _state.value.codableHelper } + set { _state.withValue { $0.codableHelper = newValue } } + } + + /// Configures the range of HTTP status codes that will result in a successful response. /// /// If a HTTP status code is outside of this range the response will be interpreted as failed. - public var successfulStatusCodeRange: Range + public var successfulStatusCodeRange: Range { + get { _state.value.successfulStatusCodeRange } + set { _state.withValue { $0.successfulStatusCodeRange = newValue } } + } + + public var interceptor: OpenAPIInterceptor { + get { _state.value.interceptor } + set { _state.withValue { $0.interceptor = newValue } } + } - public var interceptor: OpenAPIInterceptor + // MARK: - Init public init( basePath: String = "https://fastcomments.com", @@ -34,22 +83,25 @@ open class FastCommentsSwiftAPIConfiguration: @unchecked Sendable { successfulStatusCodeRange: Range = 200..<300, interceptor: OpenAPIInterceptor = DefaultOpenAPIInterceptor() ) { - self.basePath = basePath - self.customHeaders = customHeaders - self.credential = credential - self.requestBuilderFactory = requestBuilderFactory - self.apiResponseQueue = apiResponseQueue - self.codableHelper = codableHelper - self.successfulStatusCodeRange = successfulStatusCodeRange - self.interceptor = interceptor + _state = OpenAPIMutex(State( + basePath: basePath, + customHeaders: customHeaders, + credential: credential, + requestBuilderFactory: requestBuilderFactory, + apiResponseQueue: apiResponseQueue, + codableHelper: codableHelper, + successfulStatusCodeRange: successfulStatusCodeRange, + interceptor: interceptor + )) } public static let shared = FastCommentsSwiftAPIConfiguration() } -open class RequestBuilder: @unchecked Sendable, Identifiable { - public var credential: URLCredential? - public var headers: [String: String] +open class RequestBuilder: @unchecked Sendable, Identifiable { + + // MARK: - Immutable properties + public let parameters: [String: any Sendable]? public let method: String public let URLString: String @@ -57,24 +109,62 @@ open class RequestBuilder: @unchecked Sendable, Identifiable { public let requiresAuthentication: Bool public let apiConfiguration: FastCommentsSwiftAPIConfiguration + // MARK: - Private mutable state + + private struct MutableState { + var credential: URLCredential? = nil + var headers: [String: String] + var onProgressReady: ((Progress) -> Void)? = nil + } + + private let _state: OpenAPIMutex + + // MARK: - Public mutable interface + + public var credential: URLCredential? { + get { _state.value.credential } + set { _state.withValue { $0.credential = newValue } } + } + + public var headers: [String: String] { + get { _state.value.headers } + set { _state.withValue { $0.headers = newValue } } + } + /// Optional block to obtain a reference to the request's progress instance when available. - public var onProgressReady: ((Progress) -> Void)? + public var onProgressReady: ((Progress) -> Void)? { + get { _state.value.onProgressReady } + set { _state.withValue { $0.onProgressReady = newValue } } + } + + // MARK: - Init - required public init(method: String, URLString: String, parameters: [String: any Sendable]?, headers: [String: String] = [:], requiresAuthentication: Bool, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) { + required public init( + method: String, + URLString: String, + parameters: [String: any Sendable]?, + headers: [String: String] = [:], + requiresAuthentication: Bool, + apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared + ) { self.method = method self.URLString = URLString self.parameters = parameters - self.headers = headers self.requiresAuthentication = requiresAuthentication self.apiConfiguration = apiConfiguration + self._state = OpenAPIMutex(MutableState(headers: headers)) addHeaders(apiConfiguration.customHeaders) addCredential() } + // MARK: - Public methods + open func addHeaders(_ aHeaders: [String: String]) { - for (header, value) in aHeaders { - headers[header] = value + _state.withValue { state in + for (header, value) in aHeaders { + state.headers[header] = value + } } } @@ -83,9 +173,21 @@ open class RequestBuilder: @unchecked Sendable, Identifiable { return requestTask } - @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *) + #if compiler(>=6.2) + @concurrent + @discardableResult + open func execute() async throws(ErrorResponse) -> Response { + try await _execute() + } + #else @discardableResult open func execute() async throws(ErrorResponse) -> Response { + try await _execute() + } + #endif + + @discardableResult + private func _execute() async throws(ErrorResponse) -> Response { do { let requestTask = self.requestTask return try await withTaskCancellationHandler { @@ -99,7 +201,6 @@ open class RequestBuilder: @unchecked Sendable, Identifiable { self.execute { result in switch result { case let .success(response): - nonisolated(unsafe) let response = response continuation.resume(returning: response) case let .failure(error): continuation.resume(throwing: error) @@ -117,20 +218,22 @@ open class RequestBuilder: @unchecked Sendable, Identifiable { } } } - + public func addHeader(name: String, value: String) -> Self { if !value.isEmpty { - headers[name] = value + _state.withValue { $0.headers[name] = value } } return self } open func addCredential() { - credential = apiConfiguration.credential + _state.withValue { [apiConfiguration] state in + state.credential = apiConfiguration.credential + } } } -public protocol RequestBuilderFactory { +public protocol RequestBuilderFactory: Sendable { func getNonDecodableBuilder() -> RequestBuilder.Type func getBuilder() -> RequestBuilder.Type } diff --git a/client/FastCommentsSwift/Infrastructure/CodableHelper.swift b/client/FastCommentsSwift/Infrastructure/CodableHelper.swift index b8990f9..7d6f7a6 100644 --- a/client/FastCommentsSwift/Infrastructure/CodableHelper.swift +++ b/client/FastCommentsSwift/Infrastructure/CodableHelper.swift @@ -8,37 +8,56 @@ import Foundation open class CodableHelper: @unchecked Sendable { - public init() {} - private var customDateFormatter: DateFormatter? - private var defaultDateFormatter: DateFormatter = OpenISO8601DateFormatter() + // MARK: - Private state + + private struct State { + var customDateFormatter: DateFormatter? + var defaultDateFormatter: DateFormatter = OpenISO8601DateFormatter() + + var customJSONDecoder: JSONDecoder? + var defaultJSONDecoder: JSONDecoder = JSONDecoder() + + var customJSONEncoder: JSONEncoder? + var defaultJSONEncoder: JSONEncoder = JSONEncoder() + + init() { + defaultJSONEncoder.outputFormatting = .prettyPrinted + rebuildDefaultCoders() + } + + mutating func rebuildDefaultCoders() { + defaultJSONDecoder.dateDecodingStrategy = .formatted(customDateFormatter ?? defaultDateFormatter) + defaultJSONEncoder.dateEncodingStrategy = .formatted(customDateFormatter ?? defaultDateFormatter) + } + } + + private let _state = OpenAPIMutex(State()) + + // MARK: - Init - private var customJSONDecoder: JSONDecoder? - private lazy var defaultJSONDecoder: JSONDecoder = { - let decoder = JSONDecoder() - decoder.dateDecodingStrategy = .formatted(dateFormatter) - return decoder - }() + public init() {} - private var customJSONEncoder: JSONEncoder? - private lazy var defaultJSONEncoder: JSONEncoder = { - let encoder = JSONEncoder() - encoder.dateEncodingStrategy = .formatted(dateFormatter) - encoder.outputFormatting = .prettyPrinted - return encoder - }() + // MARK: - Public interface public var dateFormatter: DateFormatter { - get { return customDateFormatter ?? defaultDateFormatter } - set { customDateFormatter = newValue } + get { _state.withValue { $0.customDateFormatter ?? $0.defaultDateFormatter } } + set { + _state.withValue { state in + state.customDateFormatter = newValue + state.rebuildDefaultCoders() + } + } } + public var jsonDecoder: JSONDecoder { - get { return customJSONDecoder ?? defaultJSONDecoder } - set { customJSONDecoder = newValue } + get { _state.withValue { $0.customJSONDecoder ?? $0.defaultJSONDecoder } } + set { _state.withValue { $0.customJSONDecoder = newValue } } } + public var jsonEncoder: JSONEncoder { - get { return customJSONEncoder ?? defaultJSONEncoder } - set { customJSONEncoder = newValue } + get { _state.withValue { $0.customJSONEncoder ?? $0.defaultJSONEncoder } } + set { _state.withValue { $0.customJSONEncoder = newValue } } } open func decode(_ type: T.Type, from data: Data) -> Swift.Result where T: Decodable { diff --git a/client/FastCommentsSwift/Infrastructure/Extensions.swift b/client/FastCommentsSwift/Infrastructure/Extensions.swift index fc0b544..3125887 100644 --- a/client/FastCommentsSwift/Infrastructure/Extensions.swift +++ b/client/FastCommentsSwift/Infrastructure/Extensions.swift @@ -49,8 +49,10 @@ extension UUID: ParameterConvertible { func asParameter(codableHelper: CodableHelper) -> any Sendable { self } } -extension RawRepresentable where RawValue: ParameterConvertible, RawValue: Sendable { - func asParameter(codableHelper: CodableHelper) -> any Sendable { return self.rawValue } +extension RawRepresentable where RawValue: ParameterConvertible { + func asParameter(codableHelper: CodableHelper) -> any Sendable { + rawValue.asParameter(codableHelper: codableHelper) + } } private func encodeIfPossible(_ object: T, codableHelper: CodableHelper) -> any Sendable { @@ -95,15 +97,6 @@ extension Date: ParameterConvertible { } } -extension ParameterConvertible where Self: Encodable { - func asParameter(codableHelper: CodableHelper) -> any Sendable { - guard let data = try? codableHelper.jsonEncoder.encode(self) else { - fatalError("Could not encode to json: \(self)") - } - return data.asParameter(codableHelper: codableHelper) - } -} - extension String: @retroactive CodingKey { public var stringValue: String { @@ -154,6 +147,7 @@ extension KeyedEncodingContainerProtocol { let numberFormatter = NumberFormatter() numberFormatter.numberStyle = .decimal numberFormatter.locale = Locale(identifier: "en_US") + numberFormatter.usesGroupingSeparator = false let formattedString = numberFormatter.string(from: decimalNumber) ?? "\(value)" try encode(formattedString, forKey: key) } diff --git a/client/FastCommentsSwift/Infrastructure/Models.swift b/client/FastCommentsSwift/Infrastructure/Models.swift index 6e7a633..e98056e 100644 --- a/client/FastCommentsSwift/Infrastructure/Models.swift +++ b/client/FastCommentsSwift/Infrastructure/Models.swift @@ -69,11 +69,11 @@ extension NullEncodable: Codable where Wrapped: Codable { } } -public enum ErrorResponse: Error { +public enum ErrorResponse: Error, Sendable { case error(Int, Data?, URLResponse?, Error) } -public enum DownloadException: Error { +public enum DownloadException: Error, Sendable { case responseDataMissing case responseFailed case requestMissing @@ -81,7 +81,7 @@ public enum DownloadException: Error { case requestMissingURL } -public enum DecodableRequestBuilderError: Error { +public enum DecodableRequestBuilderError: Error, Sendable { case emptyDataResponse case nilHTTPResponse case unsuccessfulHTTPStatusCode @@ -116,25 +116,20 @@ public struct Response { extension Response : Sendable where T : Sendable {} public final class RequestTask: @unchecked Sendable { - private let lock = NSRecursiveLock() - private var task: URLSessionDataTaskProtocol? + private let _state = OpenAPIMutex(nil) internal func set(task: URLSessionDataTaskProtocol) { - lock.withLock { - self.task = task - } + _state.withValue { $0 = task } } internal func get() -> URLSessionDataTaskProtocol? { - lock.withLock { - task - } + _state.value } public func cancel() { - lock.withLock { - task?.cancel() - task = nil + _state.withValue { + $0?.cancel() + $0 = nil } } } diff --git a/client/FastCommentsSwift/Infrastructure/OpenAPIMutex.swift b/client/FastCommentsSwift/Infrastructure/OpenAPIMutex.swift new file mode 100644 index 0000000..d7be0b6 --- /dev/null +++ b/client/FastCommentsSwift/Infrastructure/OpenAPIMutex.swift @@ -0,0 +1,28 @@ +// OpenAPIMutex.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +internal final class OpenAPIMutex: @unchecked Sendable { + + private var _value: Value + private let lock = NSRecursiveLock() + + internal init(_ value: Value) { + self._value = value + } + + internal var value: Value { + lock.withLock { _value } + } + + @discardableResult + internal func withValue( + _ body: (inout Value) throws -> Result + ) rethrows -> Result { + try lock.withLock { try body(&_value) } + } +} diff --git a/client/FastCommentsSwift/Infrastructure/SynchronizedDictionary.swift b/client/FastCommentsSwift/Infrastructure/SynchronizedDictionary.swift index 24a1f32..6c80862 100644 --- a/client/FastCommentsSwift/Infrastructure/SynchronizedDictionary.swift +++ b/client/FastCommentsSwift/Infrastructure/SynchronizedDictionary.swift @@ -6,21 +6,12 @@ import Foundation -internal struct SynchronizedDictionary : @unchecked Sendable { +internal final class SynchronizedDictionary: @unchecked Sendable { - private var dictionary = [K: V]() - private let lock = NSRecursiveLock() + private let _state = OpenAPIMutex<[K: V]>([:]) internal subscript(key: K) -> V? { - get { - lock.withLock { - self.dictionary[key] - } - } - set { - lock.withLock { - self.dictionary[key] = newValue - } - } + get { _state.value[key] } + set { _state.withValue { $0[key] = newValue } } } } diff --git a/client/FastCommentsSwift/Infrastructure/Validation.swift b/client/FastCommentsSwift/Infrastructure/Validation.swift index b830e2d..11b7ac6 100644 --- a/client/FastCommentsSwift/Infrastructure/Validation.swift +++ b/client/FastCommentsSwift/Infrastructure/Validation.swift @@ -27,23 +27,23 @@ public struct ArrayRule: Sendable { public var uniqueItems: Bool } -public enum StringValidationErrorKind: Error { +public enum StringValidationErrorKind: Error, Sendable { case minLength, maxLength, pattern } -public enum NumericValidationErrorKind: Error { +public enum NumericValidationErrorKind: Error, Sendable { case minimum, maximum, multipleOf } -public enum ArrayValidationErrorKind: Error { +public enum ArrayValidationErrorKind: Error, Sendable { case minItems, maxItems, uniqueItems } -public struct ValidationError: Error { +public struct ValidationError: Error, Sendable { public fileprivate(set) var kinds: Set } -public struct Validator { +public struct Validator: Sendable { /// Validate a string against a rule. /// - Parameter string: The String you wish to validate. /// - Parameter rule: The StringRule you wish to use for validation. diff --git a/client/FastCommentsSwift/Models/APIAuditLog.swift b/client/FastCommentsSwift/Models/APIAuditLog.swift index 8524562..5609534 100644 --- a/client/FastCommentsSwift/Models/APIAuditLog.swift +++ b/client/FastCommentsSwift/Models/APIAuditLog.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIAuditLog: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIAuditLog: Sendable, Codable, Hashable { public enum CrudType: String, Sendable, Codable, CaseIterable { case c = "c" diff --git a/client/FastCommentsSwift/Models/APIBanUserChangeLog.swift b/client/FastCommentsSwift/Models/APIBanUserChangeLog.swift new file mode 100644 index 0000000..af014fc --- /dev/null +++ b/client/FastCommentsSwift/Models/APIBanUserChangeLog.swift @@ -0,0 +1,41 @@ +// +// APIBanUserChangeLog.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct APIBanUserChangeLog: Sendable, Codable, Hashable { + + public var createdBannedUserId: String? + public var updatedBannedUserId: String? + public var deletedBannedUsers: [APIBannedUser]? + public var changedValuesBefore: APIBanUserChangedValues? + + public init(createdBannedUserId: String? = nil, updatedBannedUserId: String? = nil, deletedBannedUsers: [APIBannedUser]? = nil, changedValuesBefore: APIBanUserChangedValues? = nil) { + self.createdBannedUserId = createdBannedUserId + self.updatedBannedUserId = updatedBannedUserId + self.deletedBannedUsers = deletedBannedUsers + self.changedValuesBefore = changedValuesBefore + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case createdBannedUserId + case updatedBannedUserId + case deletedBannedUsers + case changedValuesBefore + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(createdBannedUserId, forKey: .createdBannedUserId) + try container.encodeIfPresent(updatedBannedUserId, forKey: .updatedBannedUserId) + try container.encodeIfPresent(deletedBannedUsers, forKey: .deletedBannedUsers) + try container.encodeIfPresent(changedValuesBefore, forKey: .changedValuesBefore) + } +} + diff --git a/client/FastCommentsSwift/Models/APIBanUserChangedValues.swift b/client/FastCommentsSwift/Models/APIBanUserChangedValues.swift new file mode 100644 index 0000000..177110b --- /dev/null +++ b/client/FastCommentsSwift/Models/APIBanUserChangedValues.swift @@ -0,0 +1,77 @@ +// +// APIBanUserChangedValues.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct APIBanUserChangedValues: Sendable, Codable, Hashable { + + public var id: String? + public var tenantId: String? + public var userId: String? + public var email: String? + public var username: String? + public var ipHash: String? + public var createdAt: Date? + public var bannedByUserId: String? + public var bannedCommentText: String? + public var banType: String? + public var bannedUntil: Date? + public var hasEmailWildcard: Bool? + public var banReason: String? + + public init(id: String? = nil, tenantId: String? = nil, userId: String? = nil, email: String? = nil, username: String? = nil, ipHash: String? = nil, createdAt: Date? = nil, bannedByUserId: String? = nil, bannedCommentText: String? = nil, banType: String? = nil, bannedUntil: Date? = nil, hasEmailWildcard: Bool? = nil, banReason: String? = nil) { + self.id = id + self.tenantId = tenantId + self.userId = userId + self.email = email + self.username = username + self.ipHash = ipHash + self.createdAt = createdAt + self.bannedByUserId = bannedByUserId + self.bannedCommentText = bannedCommentText + self.banType = banType + self.bannedUntil = bannedUntil + self.hasEmailWildcard = hasEmailWildcard + self.banReason = banReason + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id = "_id" + case tenantId + case userId + case email + case username + case ipHash + case createdAt + case bannedByUserId + case bannedCommentText + case banType + case bannedUntil + case hasEmailWildcard + case banReason + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(id, forKey: .id) + try container.encodeIfPresent(tenantId, forKey: .tenantId) + try container.encodeIfPresent(userId, forKey: .userId) + try container.encodeIfPresent(email, forKey: .email) + try container.encodeIfPresent(username, forKey: .username) + try container.encodeIfPresent(ipHash, forKey: .ipHash) + try container.encodeIfPresent(createdAt, forKey: .createdAt) + try container.encodeIfPresent(bannedByUserId, forKey: .bannedByUserId) + try container.encodeIfPresent(bannedCommentText, forKey: .bannedCommentText) + try container.encodeIfPresent(banType, forKey: .banType) + try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) + try container.encodeIfPresent(hasEmailWildcard, forKey: .hasEmailWildcard) + try container.encodeIfPresent(banReason, forKey: .banReason) + } +} + diff --git a/client/FastCommentsSwift/Models/APIBannedUser.swift b/client/FastCommentsSwift/Models/APIBannedUser.swift new file mode 100644 index 0000000..9d0f38f --- /dev/null +++ b/client/FastCommentsSwift/Models/APIBannedUser.swift @@ -0,0 +1,77 @@ +// +// APIBannedUser.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct APIBannedUser: Sendable, Codable, Hashable { + + public var id: String + public var tenantId: String + public var userId: String? + public var email: String? + public var username: String? + public var ipHash: String? + public var createdAt: Date + public var bannedByUserId: String + public var bannedCommentText: String + public var banType: String + public var bannedUntil: Date? + public var hasEmailWildcard: Bool + public var banReason: String? + + public init(id: String, tenantId: String, userId: String? = nil, email: String? = nil, username: String? = nil, ipHash: String? = nil, createdAt: Date, bannedByUserId: String, bannedCommentText: String, banType: String, bannedUntil: Date?, hasEmailWildcard: Bool, banReason: String? = nil) { + self.id = id + self.tenantId = tenantId + self.userId = userId + self.email = email + self.username = username + self.ipHash = ipHash + self.createdAt = createdAt + self.bannedByUserId = bannedByUserId + self.bannedCommentText = bannedCommentText + self.banType = banType + self.bannedUntil = bannedUntil + self.hasEmailWildcard = hasEmailWildcard + self.banReason = banReason + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id = "_id" + case tenantId + case userId + case email + case username + case ipHash + case createdAt + case bannedByUserId + case bannedCommentText + case banType + case bannedUntil + case hasEmailWildcard + case banReason + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encode(tenantId, forKey: .tenantId) + try container.encodeIfPresent(userId, forKey: .userId) + try container.encodeIfPresent(email, forKey: .email) + try container.encodeIfPresent(username, forKey: .username) + try container.encodeIfPresent(ipHash, forKey: .ipHash) + try container.encode(createdAt, forKey: .createdAt) + try container.encode(bannedByUserId, forKey: .bannedByUserId) + try container.encode(bannedCommentText, forKey: .bannedCommentText) + try container.encode(banType, forKey: .banType) + try container.encode(bannedUntil, forKey: .bannedUntil) + try container.encode(hasEmailWildcard, forKey: .hasEmailWildcard) + try container.encodeIfPresent(banReason, forKey: .banReason) + } +} + diff --git a/client/FastCommentsSwift/Models/APIBannedUserWithMultiMatchInfo.swift b/client/FastCommentsSwift/Models/APIBannedUserWithMultiMatchInfo.swift new file mode 100644 index 0000000..aeb0935 --- /dev/null +++ b/client/FastCommentsSwift/Models/APIBannedUserWithMultiMatchInfo.swift @@ -0,0 +1,61 @@ +// +// APIBannedUserWithMultiMatchInfo.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct APIBannedUserWithMultiMatchInfo: Sendable, Codable, Hashable { + + public var id: String + public var userId: String? + public var banType: String + public var email: String? + public var ipHash: String? + public var bannedUntil: Date? + public var hasEmailWildcard: Bool + public var banReason: String? + public var matches: [BannedUserMatch] + + public init(id: String, userId: String? = nil, banType: String, email: String? = nil, ipHash: String? = nil, bannedUntil: Date?, hasEmailWildcard: Bool, banReason: String? = nil, matches: [BannedUserMatch]) { + self.id = id + self.userId = userId + self.banType = banType + self.email = email + self.ipHash = ipHash + self.bannedUntil = bannedUntil + self.hasEmailWildcard = hasEmailWildcard + self.banReason = banReason + self.matches = matches + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id = "_id" + case userId + case banType + case email + case ipHash + case bannedUntil + case hasEmailWildcard + case banReason + case matches + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encodeIfPresent(userId, forKey: .userId) + try container.encode(banType, forKey: .banType) + try container.encodeIfPresent(email, forKey: .email) + try container.encodeIfPresent(ipHash, forKey: .ipHash) + try container.encode(bannedUntil, forKey: .bannedUntil) + try container.encode(hasEmailWildcard, forKey: .hasEmailWildcard) + try container.encodeIfPresent(banReason, forKey: .banReason) + try container.encode(matches, forKey: .matches) + } +} + diff --git a/client/FastCommentsSwift/Models/APIComment.swift b/client/FastCommentsSwift/Models/APIComment.swift index d989b96..edd24d7 100644 --- a/client/FastCommentsSwift/Models/APIComment.swift +++ b/client/FastCommentsSwift/Models/APIComment.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIComment: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIComment: Sendable, Codable, Hashable { public var id: String public var aiDeterminedSpam: Bool? @@ -236,5 +236,4 @@ public struct APIComment: Sendable, Codable, ParameterConvertible, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APIComment: Identifiable {} diff --git a/client/FastCommentsSwift/Models/APICommentBase.swift b/client/FastCommentsSwift/Models/APICommentBase.swift index ba57f45..5bfe878 100644 --- a/client/FastCommentsSwift/Models/APICommentBase.swift +++ b/client/FastCommentsSwift/Models/APICommentBase.swift @@ -7,7 +7,7 @@ import Foundation -public struct APICommentBase: Sendable, Codable, ParameterConvertible, Hashable { +public struct APICommentBase: Sendable, Codable, Hashable { public var id: String public var aiDeterminedSpam: Bool? @@ -236,5 +236,4 @@ public struct APICommentBase: Sendable, Codable, ParameterConvertible, Hashable } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APICommentBase: Identifiable {} diff --git a/client/FastCommentsSwift/Models/APICommentBaseMeta.swift b/client/FastCommentsSwift/Models/APICommentBaseMeta.swift index 2151412..2ada175 100644 --- a/client/FastCommentsSwift/Models/APICommentBaseMeta.swift +++ b/client/FastCommentsSwift/Models/APICommentBaseMeta.swift @@ -7,7 +7,7 @@ import Foundation -public struct APICommentBaseMeta: Sendable, Codable, ParameterConvertible, Hashable { +public struct APICommentBaseMeta: Sendable, Codable, Hashable { public var wpUserId: String? public var wpPostId: String? diff --git a/client/FastCommentsSwift/Models/APICommentCommonBannedUser.swift b/client/FastCommentsSwift/Models/APICommentCommonBannedUser.swift new file mode 100644 index 0000000..ad135d1 --- /dev/null +++ b/client/FastCommentsSwift/Models/APICommentCommonBannedUser.swift @@ -0,0 +1,57 @@ +// +// APICommentCommonBannedUser.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct APICommentCommonBannedUser: Sendable, Codable, Hashable { + + public var id: String + public var userId: String? + public var banType: String + public var email: String? + public var ipHash: String? + public var bannedUntil: Date? + public var hasEmailWildcard: Bool + public var banReason: String? + + public init(id: String, userId: String? = nil, banType: String, email: String? = nil, ipHash: String? = nil, bannedUntil: Date?, hasEmailWildcard: Bool, banReason: String? = nil) { + self.id = id + self.userId = userId + self.banType = banType + self.email = email + self.ipHash = ipHash + self.bannedUntil = bannedUntil + self.hasEmailWildcard = hasEmailWildcard + self.banReason = banReason + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id = "_id" + case userId + case banType + case email + case ipHash + case bannedUntil + case hasEmailWildcard + case banReason + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encodeIfPresent(userId, forKey: .userId) + try container.encode(banType, forKey: .banType) + try container.encodeIfPresent(email, forKey: .email) + try container.encodeIfPresent(ipHash, forKey: .ipHash) + try container.encode(bannedUntil, forKey: .bannedUntil) + try container.encode(hasEmailWildcard, forKey: .hasEmailWildcard) + try container.encodeIfPresent(banReason, forKey: .banReason) + } +} + diff --git a/client/FastCommentsSwift/Models/APICreateUserBadgeResponse.swift b/client/FastCommentsSwift/Models/APICreateUserBadgeResponse.swift index 224c5fa..c12d23c 100644 --- a/client/FastCommentsSwift/Models/APICreateUserBadgeResponse.swift +++ b/client/FastCommentsSwift/Models/APICreateUserBadgeResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APICreateUserBadgeResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APICreateUserBadgeResponse: Sendable, Codable, Hashable { public var status: APIStatus public var userBadge: UserBadge diff --git a/client/FastCommentsSwift/Models/APIDomainConfiguration.swift b/client/FastCommentsSwift/Models/APIDomainConfiguration.swift index 7fcb2bb..92ee2e6 100644 --- a/client/FastCommentsSwift/Models/APIDomainConfiguration.swift +++ b/client/FastCommentsSwift/Models/APIDomainConfiguration.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIDomainConfiguration: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIDomainConfiguration: Sendable, Codable, Hashable { public var id: String public var domain: String @@ -85,5 +85,4 @@ public struct APIDomainConfiguration: Sendable, Codable, ParameterConvertible, H } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APIDomainConfiguration: Identifiable {} diff --git a/client/FastCommentsSwift/Models/APIEmptyResponse.swift b/client/FastCommentsSwift/Models/APIEmptyResponse.swift index 92f0c86..3ca73a9 100644 --- a/client/FastCommentsSwift/Models/APIEmptyResponse.swift +++ b/client/FastCommentsSwift/Models/APIEmptyResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIEmptyResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIEmptyResponse: Sendable, Codable, Hashable { public var status: APIStatus diff --git a/client/FastCommentsSwift/Models/APIEmptySuccessResponse.swift b/client/FastCommentsSwift/Models/APIEmptySuccessResponse.swift index 1ccc611..b694697 100644 --- a/client/FastCommentsSwift/Models/APIEmptySuccessResponse.swift +++ b/client/FastCommentsSwift/Models/APIEmptySuccessResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIEmptySuccessResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIEmptySuccessResponse: Sendable, Codable, Hashable { public var status: APIStatus diff --git a/client/FastCommentsSwift/Models/APIError.swift b/client/FastCommentsSwift/Models/APIError.swift index d94347d..56dd90e 100644 --- a/client/FastCommentsSwift/Models/APIError.swift +++ b/client/FastCommentsSwift/Models/APIError.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIError: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIError: Sendable, Codable, Hashable { public var status: APIStatus public var reason: String diff --git a/client/FastCommentsSwift/Models/APIGetCommentResponse.swift b/client/FastCommentsSwift/Models/APIGetCommentResponse.swift index 388f016..e5cac08 100644 --- a/client/FastCommentsSwift/Models/APIGetCommentResponse.swift +++ b/client/FastCommentsSwift/Models/APIGetCommentResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIGetCommentResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIGetCommentResponse: Sendable, Codable, Hashable { public var status: APIStatus public var comment: APIComment diff --git a/client/FastCommentsSwift/Models/APIGetCommentsResponse.swift b/client/FastCommentsSwift/Models/APIGetCommentsResponse.swift index 74b1125..c8935b9 100644 --- a/client/FastCommentsSwift/Models/APIGetCommentsResponse.swift +++ b/client/FastCommentsSwift/Models/APIGetCommentsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIGetCommentsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIGetCommentsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var comments: [APIComment] diff --git a/client/FastCommentsSwift/Models/APIGetUserBadgeProgressListResponse.swift b/client/FastCommentsSwift/Models/APIGetUserBadgeProgressListResponse.swift index f20da09..9f71e23 100644 --- a/client/FastCommentsSwift/Models/APIGetUserBadgeProgressListResponse.swift +++ b/client/FastCommentsSwift/Models/APIGetUserBadgeProgressListResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIGetUserBadgeProgressListResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIGetUserBadgeProgressListResponse: Sendable, Codable, Hashable { public var status: APIStatus public var userBadgeProgresses: [UserBadgeProgress] diff --git a/client/FastCommentsSwift/Models/APIGetUserBadgeProgressResponse.swift b/client/FastCommentsSwift/Models/APIGetUserBadgeProgressResponse.swift index 1ca2c17..2feb839 100644 --- a/client/FastCommentsSwift/Models/APIGetUserBadgeProgressResponse.swift +++ b/client/FastCommentsSwift/Models/APIGetUserBadgeProgressResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIGetUserBadgeProgressResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIGetUserBadgeProgressResponse: Sendable, Codable, Hashable { public var status: APIStatus public var userBadgeProgress: UserBadgeProgress diff --git a/client/FastCommentsSwift/Models/APIGetUserBadgeResponse.swift b/client/FastCommentsSwift/Models/APIGetUserBadgeResponse.swift index a1aa459..af137ae 100644 --- a/client/FastCommentsSwift/Models/APIGetUserBadgeResponse.swift +++ b/client/FastCommentsSwift/Models/APIGetUserBadgeResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIGetUserBadgeResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIGetUserBadgeResponse: Sendable, Codable, Hashable { public var status: APIStatus public var userBadge: UserBadge diff --git a/client/FastCommentsSwift/Models/APIGetUserBadgesResponse.swift b/client/FastCommentsSwift/Models/APIGetUserBadgesResponse.swift index 62814e5..58badfd 100644 --- a/client/FastCommentsSwift/Models/APIGetUserBadgesResponse.swift +++ b/client/FastCommentsSwift/Models/APIGetUserBadgesResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIGetUserBadgesResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIGetUserBadgesResponse: Sendable, Codable, Hashable { public var status: APIStatus public var userBadges: [UserBadge] diff --git a/client/FastCommentsSwift/Models/APIModerateGetUserBanPreferencesResponse.swift b/client/FastCommentsSwift/Models/APIModerateGetUserBanPreferencesResponse.swift new file mode 100644 index 0000000..af7ef18 --- /dev/null +++ b/client/FastCommentsSwift/Models/APIModerateGetUserBanPreferencesResponse.swift @@ -0,0 +1,33 @@ +// +// APIModerateGetUserBanPreferencesResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct APIModerateGetUserBanPreferencesResponse: Sendable, Codable, Hashable { + + public var preferences: APIModerateUserBanPreferences? + public var status: APIStatus + + public init(preferences: APIModerateUserBanPreferences?, status: APIStatus) { + self.preferences = preferences + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case preferences + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(preferences, forKey: .preferences) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/APIModerateUserBanPreferences.swift b/client/FastCommentsSwift/Models/APIModerateUserBanPreferences.swift new file mode 100644 index 0000000..4de6c11 --- /dev/null +++ b/client/FastCommentsSwift/Models/APIModerateUserBanPreferences.swift @@ -0,0 +1,41 @@ +// +// APIModerateUserBanPreferences.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct APIModerateUserBanPreferences: Sendable, Codable, Hashable { + + public var shouldBanEmail: Bool + public var shouldBanByIP: Bool + public var lastBanType: String + public var lastBanDuration: String + + public init(shouldBanEmail: Bool, shouldBanByIP: Bool, lastBanType: String, lastBanDuration: String) { + self.shouldBanEmail = shouldBanEmail + self.shouldBanByIP = shouldBanByIP + self.lastBanType = lastBanType + self.lastBanDuration = lastBanDuration + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case shouldBanEmail + case shouldBanByIP + case lastBanType + case lastBanDuration + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(shouldBanEmail, forKey: .shouldBanEmail) + try container.encode(shouldBanByIP, forKey: .shouldBanByIP) + try container.encode(lastBanType, forKey: .lastBanType) + try container.encode(lastBanDuration, forKey: .lastBanDuration) + } +} + diff --git a/client/FastCommentsSwift/Models/APIPage.swift b/client/FastCommentsSwift/Models/APIPage.swift index 641c231..63d4f06 100644 --- a/client/FastCommentsSwift/Models/APIPage.swift +++ b/client/FastCommentsSwift/Models/APIPage.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIPage: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIPage: Sendable, Codable, Hashable { public var isClosed: Bool? public var accessibleByGroupIds: [String]? @@ -60,5 +60,4 @@ public struct APIPage: Sendable, Codable, ParameterConvertible, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APIPage: Identifiable {} diff --git a/client/FastCommentsSwift/Models/APISSOUser.swift b/client/FastCommentsSwift/Models/APISSOUser.swift index 53335fd..5bc3422 100644 --- a/client/FastCommentsSwift/Models/APISSOUser.swift +++ b/client/FastCommentsSwift/Models/APISSOUser.swift @@ -7,7 +7,7 @@ import Foundation -public struct APISSOUser: Sendable, Codable, ParameterConvertible, Hashable { +public struct APISSOUser: Sendable, Codable, Hashable { public var id: String public var username: String @@ -104,5 +104,4 @@ public struct APISSOUser: Sendable, Codable, ParameterConvertible, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APISSOUser: Identifiable {} diff --git a/client/FastCommentsSwift/Models/APISaveCommentResponse.swift b/client/FastCommentsSwift/Models/APISaveCommentResponse.swift index bb0d810..5c9caf2 100644 --- a/client/FastCommentsSwift/Models/APISaveCommentResponse.swift +++ b/client/FastCommentsSwift/Models/APISaveCommentResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct APISaveCommentResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct APISaveCommentResponse: Sendable, Codable, Hashable { public var status: APIStatus public var comment: APIComment diff --git a/client/FastCommentsSwift/Models/APITenant.swift b/client/FastCommentsSwift/Models/APITenant.swift index 3f89738..4cfdc64 100644 --- a/client/FastCommentsSwift/Models/APITenant.swift +++ b/client/FastCommentsSwift/Models/APITenant.swift @@ -7,7 +7,7 @@ import Foundation -public struct APITenant: Sendable, Codable, ParameterConvertible, Hashable { +public struct APITenant: Sendable, Codable, Hashable { public var id: String public var name: String @@ -137,5 +137,4 @@ public struct APITenant: Sendable, Codable, ParameterConvertible, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APITenant: Identifiable {} diff --git a/client/FastCommentsSwift/Models/APITenantDailyUsage.swift b/client/FastCommentsSwift/Models/APITenantDailyUsage.swift index 588db8c..1573c20 100644 --- a/client/FastCommentsSwift/Models/APITenantDailyUsage.swift +++ b/client/FastCommentsSwift/Models/APITenantDailyUsage.swift @@ -7,7 +7,7 @@ import Foundation -public struct APITenantDailyUsage: Sendable, Codable, ParameterConvertible, Hashable { +public struct APITenantDailyUsage: Sendable, Codable, Hashable { public var id: String public var tenantId: String @@ -100,5 +100,4 @@ public struct APITenantDailyUsage: Sendable, Codable, ParameterConvertible, Hash } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APITenantDailyUsage: Identifiable {} diff --git a/client/FastCommentsSwift/Models/APITicket.swift b/client/FastCommentsSwift/Models/APITicket.swift index be28029..5d56160 100644 --- a/client/FastCommentsSwift/Models/APITicket.swift +++ b/client/FastCommentsSwift/Models/APITicket.swift @@ -7,7 +7,7 @@ import Foundation -public struct APITicket: Sendable, Codable, ParameterConvertible, Hashable { +public struct APITicket: Sendable, Codable, Hashable { public var id: String public var urlId: String diff --git a/client/FastCommentsSwift/Models/APITicketDetail.swift b/client/FastCommentsSwift/Models/APITicketDetail.swift index 70c41be..c1ef743 100644 --- a/client/FastCommentsSwift/Models/APITicketDetail.swift +++ b/client/FastCommentsSwift/Models/APITicketDetail.swift @@ -7,7 +7,7 @@ import Foundation -public struct APITicketDetail: Sendable, Codable, ParameterConvertible, Hashable { +public struct APITicketDetail: Sendable, Codable, Hashable { public var id: String public var urlId: String diff --git a/client/FastCommentsSwift/Models/APITicketFile.swift b/client/FastCommentsSwift/Models/APITicketFile.swift index 0ed4f07..7801b28 100644 --- a/client/FastCommentsSwift/Models/APITicketFile.swift +++ b/client/FastCommentsSwift/Models/APITicketFile.swift @@ -7,7 +7,7 @@ import Foundation -public struct APITicketFile: Sendable, Codable, ParameterConvertible, Hashable { +public struct APITicketFile: Sendable, Codable, Hashable { public var id: String public var s3Key: String @@ -64,5 +64,4 @@ public struct APITicketFile: Sendable, Codable, ParameterConvertible, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APITicketFile: Identifiable {} diff --git a/client/FastCommentsSwift/Models/APIUserSubscription.swift b/client/FastCommentsSwift/Models/APIUserSubscription.swift index fc31305..f7b8207 100644 --- a/client/FastCommentsSwift/Models/APIUserSubscription.swift +++ b/client/FastCommentsSwift/Models/APIUserSubscription.swift @@ -7,7 +7,7 @@ import Foundation -public struct APIUserSubscription: Sendable, Codable, ParameterConvertible, Hashable { +public struct APIUserSubscription: Sendable, Codable, Hashable { public var notificationFrequency: Double? public var createdAt: Date @@ -56,5 +56,4 @@ public struct APIUserSubscription: Sendable, Codable, ParameterConvertible, Hash } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension APIUserSubscription: Identifiable {} diff --git a/client/FastCommentsSwift/Models/AddDomainConfigParams.swift b/client/FastCommentsSwift/Models/AddDomainConfigParams.swift index 1b8f0e6..b02a462 100644 --- a/client/FastCommentsSwift/Models/AddDomainConfigParams.swift +++ b/client/FastCommentsSwift/Models/AddDomainConfigParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct AddDomainConfigParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct AddDomainConfigParams: Sendable, Codable, Hashable { public var domain: String public var emailFromName: String? diff --git a/client/FastCommentsSwift/Models/AddDomainConfig200Response.swift b/client/FastCommentsSwift/Models/AddDomainConfigResponse.swift similarity index 89% rename from client/FastCommentsSwift/Models/AddDomainConfig200Response.swift rename to client/FastCommentsSwift/Models/AddDomainConfigResponse.swift index fbe2288..9812b94 100644 --- a/client/FastCommentsSwift/Models/AddDomainConfig200Response.swift +++ b/client/FastCommentsSwift/Models/AddDomainConfigResponse.swift @@ -1,5 +1,5 @@ // -// AddDomainConfig200Response.swift +// AddDomainConfigResponse.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct AddDomainConfig200Response: Sendable, Codable, ParameterConvertible, Hashable { +public struct AddDomainConfigResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/AddDomainConfig200ResponseAnyOf.swift b/client/FastCommentsSwift/Models/AddDomainConfigResponseAnyOf.swift similarity index 83% rename from client/FastCommentsSwift/Models/AddDomainConfig200ResponseAnyOf.swift rename to client/FastCommentsSwift/Models/AddDomainConfigResponseAnyOf.swift index 9061f9b..e46e098 100644 --- a/client/FastCommentsSwift/Models/AddDomainConfig200ResponseAnyOf.swift +++ b/client/FastCommentsSwift/Models/AddDomainConfigResponseAnyOf.swift @@ -1,5 +1,5 @@ // -// AddDomainConfig200ResponseAnyOf.swift +// AddDomainConfigResponseAnyOf.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct AddDomainConfig200ResponseAnyOf: Sendable, Codable, ParameterConvertible, Hashable { +public struct AddDomainConfigResponseAnyOf: Sendable, Codable, Hashable { public var configuration: JSONValue? public var status: JSONValue? diff --git a/client/FastCommentsSwift/Models/AddHashTag200Response.swift b/client/FastCommentsSwift/Models/AddHashTag200Response.swift deleted file mode 100644 index 1c4d547..0000000 --- a/client/FastCommentsSwift/Models/AddHashTag200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// AddHashTag200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct AddHashTag200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var hashTag: TenantHashTag? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, hashTag: TenantHashTag? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.hashTag = hashTag - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case hashTag - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(hashTag, forKey: .hashTag) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/AddHashTagsBulk200Response.swift b/client/FastCommentsSwift/Models/AddHashTagsBulk200Response.swift deleted file mode 100644 index 48d74d2..0000000 --- a/client/FastCommentsSwift/Models/AddHashTagsBulk200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// AddHashTagsBulk200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct AddHashTagsBulk200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var results: [AddHashTag200Response]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, results: [AddHashTag200Response]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.results = results - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case results - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(results, forKey: .results) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/AddPageAPIResponse.swift b/client/FastCommentsSwift/Models/AddPageAPIResponse.swift index c5cf215..e059bc2 100644 --- a/client/FastCommentsSwift/Models/AddPageAPIResponse.swift +++ b/client/FastCommentsSwift/Models/AddPageAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct AddPageAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct AddPageAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/AddSSOUserAPIResponse.swift b/client/FastCommentsSwift/Models/AddSSOUserAPIResponse.swift index 2a31442..fce11cb 100644 --- a/client/FastCommentsSwift/Models/AddSSOUserAPIResponse.swift +++ b/client/FastCommentsSwift/Models/AddSSOUserAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct AddSSOUserAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct AddSSOUserAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/AdjustCommentVotesParams.swift b/client/FastCommentsSwift/Models/AdjustCommentVotesParams.swift new file mode 100644 index 0000000..9990ec6 --- /dev/null +++ b/client/FastCommentsSwift/Models/AdjustCommentVotesParams.swift @@ -0,0 +1,29 @@ +// +// AdjustCommentVotesParams.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct AdjustCommentVotesParams: Sendable, Codable, Hashable { + + public var adjustVoteAmount: Double + + public init(adjustVoteAmount: Double) { + self.adjustVoteAmount = adjustVoteAmount + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case adjustVoteAmount + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(adjustVoteAmount, forKey: .adjustVoteAmount) + } +} + diff --git a/client/FastCommentsSwift/Models/AdjustVotesResponse.swift b/client/FastCommentsSwift/Models/AdjustVotesResponse.swift new file mode 100644 index 0000000..1d1f776 --- /dev/null +++ b/client/FastCommentsSwift/Models/AdjustVotesResponse.swift @@ -0,0 +1,33 @@ +// +// AdjustVotesResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct AdjustVotesResponse: Sendable, Codable, Hashable { + + public var status: String + public var newCommentVotes: Int + + public init(status: String, newCommentVotes: Int) { + self.status = status + self.newCommentVotes = newCommentVotes + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case newCommentVotes + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(newCommentVotes, forKey: .newCommentVotes) + } +} + diff --git a/client/FastCommentsSwift/Models/AggregateQuestionResults200Response.swift b/client/FastCommentsSwift/Models/AggregateQuestionResults200Response.swift deleted file mode 100644 index 6f29082..0000000 --- a/client/FastCommentsSwift/Models/AggregateQuestionResults200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// AggregateQuestionResults200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct AggregateQuestionResults200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var data: QuestionResultAggregationOverall? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, data: QuestionResultAggregationOverall? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.data = data - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case data - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(data, forKey: .data) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/AggregateQuestionResultsResponse.swift b/client/FastCommentsSwift/Models/AggregateQuestionResultsResponse.swift index 3064eb5..5026195 100644 --- a/client/FastCommentsSwift/Models/AggregateQuestionResultsResponse.swift +++ b/client/FastCommentsSwift/Models/AggregateQuestionResultsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct AggregateQuestionResultsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct AggregateQuestionResultsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var data: QuestionResultAggregationOverall diff --git a/client/FastCommentsSwift/Models/AggregateResponse.swift b/client/FastCommentsSwift/Models/AggregateResponse.swift new file mode 100644 index 0000000..4e89108 --- /dev/null +++ b/client/FastCommentsSwift/Models/AggregateResponse.swift @@ -0,0 +1,49 @@ +// +// AggregateResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct AggregateResponse: Sendable, Codable, Hashable { + + public var status: APIStatus + public var data: [AggregationItem]? + public var stats: AggregationResponseStats? + public var reason: String? + public var code: String? + public var validResourceNames: [String]? + + public init(status: APIStatus, data: [AggregationItem]? = nil, stats: AggregationResponseStats? = nil, reason: String? = nil, code: String? = nil, validResourceNames: [String]? = nil) { + self.status = status + self.data = data + self.stats = stats + self.reason = reason + self.code = code + self.validResourceNames = validResourceNames + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case data + case stats + case reason + case code + case validResourceNames + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(data, forKey: .data) + try container.encodeIfPresent(stats, forKey: .stats) + try container.encodeIfPresent(reason, forKey: .reason) + try container.encodeIfPresent(code, forKey: .code) + try container.encodeIfPresent(validResourceNames, forKey: .validResourceNames) + } +} + diff --git a/client/FastCommentsSwift/Models/AggregationAPIError.swift b/client/FastCommentsSwift/Models/AggregationAPIError.swift new file mode 100644 index 0000000..2139f00 --- /dev/null +++ b/client/FastCommentsSwift/Models/AggregationAPIError.swift @@ -0,0 +1,41 @@ +// +// AggregationAPIError.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct AggregationAPIError: Sendable, Codable, Hashable { + + public var status: APIStatus + public var reason: String + public var code: String + public var validResourceNames: [String]? + + public init(status: APIStatus, reason: String, code: String, validResourceNames: [String]? = nil) { + self.status = status + self.reason = reason + self.code = code + self.validResourceNames = validResourceNames + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case reason + case code + case validResourceNames + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(reason, forKey: .reason) + try container.encode(code, forKey: .code) + try container.encodeIfPresent(validResourceNames, forKey: .validResourceNames) + } +} + diff --git a/client/FastCommentsSwift/Models/AggregationItem.swift b/client/FastCommentsSwift/Models/AggregationItem.swift index 17a3dcc..b855b33 100644 --- a/client/FastCommentsSwift/Models/AggregationItem.swift +++ b/client/FastCommentsSwift/Models/AggregationItem.swift @@ -7,7 +7,7 @@ import Foundation -public struct AggregationItem: Sendable, Codable, ParameterConvertible, Hashable { +public struct AggregationItem: Sendable, Codable, Hashable { /** Construct a type with a set of properties K of type T */ public var groups: [String: String]? diff --git a/client/FastCommentsSwift/Models/AggregationOperation.swift b/client/FastCommentsSwift/Models/AggregationOperation.swift index 3fe1f2e..a017b1e 100644 --- a/client/FastCommentsSwift/Models/AggregationOperation.swift +++ b/client/FastCommentsSwift/Models/AggregationOperation.swift @@ -8,7 +8,7 @@ import Foundation /** An operation that will be applied on a field */ -public struct AggregationOperation: Sendable, Codable, ParameterConvertible, Hashable { +public struct AggregationOperation: Sendable, Codable, Hashable { /** The field to operate on */ public var field: String diff --git a/client/FastCommentsSwift/Models/AggregationRequest.swift b/client/FastCommentsSwift/Models/AggregationRequest.swift index cc92b44..5f0622a 100644 --- a/client/FastCommentsSwift/Models/AggregationRequest.swift +++ b/client/FastCommentsSwift/Models/AggregationRequest.swift @@ -8,7 +8,7 @@ import Foundation /** The aggregation request accepts a resource, optional grouping keys, an array of operations, and an optional sort */ -public struct AggregationRequest: Sendable, Codable, ParameterConvertible, Hashable { +public struct AggregationRequest: Sendable, Codable, Hashable { public var query: [QueryPredicate]? public var resourceName: String diff --git a/client/FastCommentsSwift/Models/AggregationRequestSort.swift b/client/FastCommentsSwift/Models/AggregationRequestSort.swift index 12d6f22..511f923 100644 --- a/client/FastCommentsSwift/Models/AggregationRequestSort.swift +++ b/client/FastCommentsSwift/Models/AggregationRequestSort.swift @@ -7,7 +7,7 @@ import Foundation -public struct AggregationRequestSort: Sendable, Codable, ParameterConvertible, Hashable { +public struct AggregationRequestSort: Sendable, Codable, Hashable { public enum Dir: String, Sendable, Codable, CaseIterable { case asc = "asc" diff --git a/client/FastCommentsSwift/Models/AggregationResponse.swift b/client/FastCommentsSwift/Models/AggregationResponse.swift index 065b1db..04e3d1e 100644 --- a/client/FastCommentsSwift/Models/AggregationResponse.swift +++ b/client/FastCommentsSwift/Models/AggregationResponse.swift @@ -8,7 +8,7 @@ import Foundation /** The API response returns the aggregated data along with simple stats */ -public struct AggregationResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct AggregationResponse: Sendable, Codable, Hashable { public var status: APIStatus public var data: [AggregationItem] diff --git a/client/FastCommentsSwift/Models/AggregationResponseStats.swift b/client/FastCommentsSwift/Models/AggregationResponseStats.swift index 6a96442..f613be9 100644 --- a/client/FastCommentsSwift/Models/AggregationResponseStats.swift +++ b/client/FastCommentsSwift/Models/AggregationResponseStats.swift @@ -7,7 +7,7 @@ import Foundation -public struct AggregationResponseStats: Sendable, Codable, ParameterConvertible, Hashable { +public struct AggregationResponseStats: Sendable, Codable, Hashable { public var timeMS: Int64 public var scanned: Int64 diff --git a/client/FastCommentsSwift/Models/AggregationValue.swift b/client/FastCommentsSwift/Models/AggregationValue.swift index 3bb6370..cc7bf74 100644 --- a/client/FastCommentsSwift/Models/AggregationValue.swift +++ b/client/FastCommentsSwift/Models/AggregationValue.swift @@ -7,7 +7,7 @@ import Foundation -public struct AggregationValue: Sendable, Codable, ParameterConvertible, Hashable { +public struct AggregationValue: Sendable, Codable, Hashable { /** Construct a type with a set of properties K of type T */ public var groups: [String: String]? diff --git a/client/FastCommentsSwift/Models/AwardUserBadgeResponse.swift b/client/FastCommentsSwift/Models/AwardUserBadgeResponse.swift new file mode 100644 index 0000000..743ec0f --- /dev/null +++ b/client/FastCommentsSwift/Models/AwardUserBadgeResponse.swift @@ -0,0 +1,37 @@ +// +// AwardUserBadgeResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct AwardUserBadgeResponse: Sendable, Codable, Hashable { + + public var notes: [String]? + public var badges: [CommentUserBadgeInfo]? + public var status: APIStatus + + public init(notes: [String]? = nil, badges: [CommentUserBadgeInfo]? = nil, status: APIStatus) { + self.notes = notes + self.badges = badges + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case notes + case badges + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(notes, forKey: .notes) + try container.encodeIfPresent(badges, forKey: .badges) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/BanUserFromCommentResult.swift b/client/FastCommentsSwift/Models/BanUserFromCommentResult.swift new file mode 100644 index 0000000..0a5a076 --- /dev/null +++ b/client/FastCommentsSwift/Models/BanUserFromCommentResult.swift @@ -0,0 +1,41 @@ +// +// BanUserFromCommentResult.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct BanUserFromCommentResult: Sendable, Codable, Hashable { + + public var status: String + public var changelog: APIBanUserChangeLog? + public var code: String? + public var reason: String? + + public init(status: String, changelog: APIBanUserChangeLog? = nil, code: String? = nil, reason: String? = nil) { + self.status = status + self.changelog = changelog + self.code = code + self.reason = reason + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case changelog + case code + case reason + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(changelog, forKey: .changelog) + try container.encodeIfPresent(code, forKey: .code) + try container.encodeIfPresent(reason, forKey: .reason) + } +} + diff --git a/client/FastCommentsSwift/Models/BanUserUndoParams.swift b/client/FastCommentsSwift/Models/BanUserUndoParams.swift new file mode 100644 index 0000000..c1d6a7d --- /dev/null +++ b/client/FastCommentsSwift/Models/BanUserUndoParams.swift @@ -0,0 +1,29 @@ +// +// BanUserUndoParams.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct BanUserUndoParams: Sendable, Codable, Hashable { + + public var changelog: APIBanUserChangeLog + + public init(changelog: APIBanUserChangeLog) { + self.changelog = changelog + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case changelog + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(changelog, forKey: .changelog) + } +} + diff --git a/client/FastCommentsSwift/Models/BannedUserMatch.swift b/client/FastCommentsSwift/Models/BannedUserMatch.swift new file mode 100644 index 0000000..a0179ea --- /dev/null +++ b/client/FastCommentsSwift/Models/BannedUserMatch.swift @@ -0,0 +1,33 @@ +// +// BannedUserMatch.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct BannedUserMatch: Sendable, Codable, Hashable { + + public var matchedOn: BannedUserMatchType + public var matchedOnValue: BannedUserMatchMatchedOnValue? + + public init(matchedOn: BannedUserMatchType, matchedOnValue: BannedUserMatchMatchedOnValue?) { + self.matchedOn = matchedOn + self.matchedOnValue = matchedOnValue + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case matchedOn + case matchedOnValue + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(matchedOn, forKey: .matchedOn) + try container.encode(matchedOnValue, forKey: .matchedOnValue) + } +} + diff --git a/client/FastCommentsSwift/Models/RecordStringStringOrNumberValue.swift b/client/FastCommentsSwift/Models/BannedUserMatchMatchedOnValue.swift similarity index 69% rename from client/FastCommentsSwift/Models/RecordStringStringOrNumberValue.swift rename to client/FastCommentsSwift/Models/BannedUserMatchMatchedOnValue.swift index 3fd536f..3c78b07 100644 --- a/client/FastCommentsSwift/Models/RecordStringStringOrNumberValue.swift +++ b/client/FastCommentsSwift/Models/BannedUserMatchMatchedOnValue.swift @@ -1,5 +1,5 @@ // -// RecordStringStringOrNumberValue.swift +// BannedUserMatchMatchedOnValue.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct RecordStringStringOrNumberValue: Sendable, Codable, ParameterConvertible, Hashable { +public struct BannedUserMatchMatchedOnValue: Sendable, Codable, Hashable { public enum CodingKeys: CodingKey, CaseIterable { diff --git a/client/FastCommentsSwift/Models/BannedUserMatchType.swift b/client/FastCommentsSwift/Models/BannedUserMatchType.swift new file mode 100644 index 0000000..0b15492 --- /dev/null +++ b/client/FastCommentsSwift/Models/BannedUserMatchType.swift @@ -0,0 +1,15 @@ +// +// BannedUserMatchType.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public enum BannedUserMatchType: String, Sendable, Codable, CaseIterable { + case userid = "userId" + case email = "email" + case emailWildcard = "email-wildcard" + case ip = "IP" +} diff --git a/client/FastCommentsSwift/Models/BillingInfo.swift b/client/FastCommentsSwift/Models/BillingInfo.swift index a6fd76e..bcac566 100644 --- a/client/FastCommentsSwift/Models/BillingInfo.swift +++ b/client/FastCommentsSwift/Models/BillingInfo.swift @@ -7,7 +7,7 @@ import Foundation -public struct BillingInfo: Sendable, Codable, ParameterConvertible, Hashable { +public struct BillingInfo: Sendable, Codable, Hashable { public var name: String public var address: String diff --git a/client/FastCommentsSwift/Models/BlockFromCommentParams.swift b/client/FastCommentsSwift/Models/BlockFromCommentParams.swift index 0b0abdf..336cb0a 100644 --- a/client/FastCommentsSwift/Models/BlockFromCommentParams.swift +++ b/client/FastCommentsSwift/Models/BlockFromCommentParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct BlockFromCommentParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct BlockFromCommentParams: Sendable, Codable, Hashable { public var commentIdsToCheck: [String]? diff --git a/client/FastCommentsSwift/Models/BlockFromCommentPublic200Response.swift b/client/FastCommentsSwift/Models/BlockFromCommentPublic200Response.swift deleted file mode 100644 index 714bd7f..0000000 --- a/client/FastCommentsSwift/Models/BlockFromCommentPublic200Response.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// BlockFromCommentPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct BlockFromCommentPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - /** Construct a type with a set of properties K of type T */ - public var commentStatuses: [String: Bool]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, commentStatuses: [String: Bool]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.commentStatuses = commentStatuses - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case commentStatuses - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(commentStatuses, forKey: .commentStatuses) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/BlockSuccess.swift b/client/FastCommentsSwift/Models/BlockSuccess.swift index e86b6b4..0b9888e 100644 --- a/client/FastCommentsSwift/Models/BlockSuccess.swift +++ b/client/FastCommentsSwift/Models/BlockSuccess.swift @@ -7,7 +7,7 @@ import Foundation -public struct BlockSuccess: Sendable, Codable, ParameterConvertible, Hashable { +public struct BlockSuccess: Sendable, Codable, Hashable { public var status: APIStatus /** Construct a type with a set of properties K of type T */ diff --git a/client/FastCommentsSwift/Models/BuildModerationFilterParams.swift b/client/FastCommentsSwift/Models/BuildModerationFilterParams.swift new file mode 100644 index 0000000..48895c2 --- /dev/null +++ b/client/FastCommentsSwift/Models/BuildModerationFilterParams.swift @@ -0,0 +1,82 @@ +// +// BuildModerationFilterParams.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct BuildModerationFilterParams: Sendable, Codable, Hashable { + + public var userId: String + public var tenantId: String + public var filters: String? + public var searchFilters: String? + public var textSearch: String? + + public init(userId: String, tenantId: String, filters: String? = nil, searchFilters: String? = nil, textSearch: String? = nil) { + self.userId = userId + self.tenantId = tenantId + self.filters = filters + self.searchFilters = searchFilters + self.textSearch = textSearch + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case userId + case tenantId + case filters + case searchFilters + case textSearch + } + + public var additionalProperties: [String: JSONValue] = [:] + + public subscript(key: String) -> JSONValue? { + get { + if let value = additionalProperties[key] { + return value + } + return nil + } + + set { + additionalProperties[key] = newValue + } + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(userId, forKey: .userId) + try container.encode(tenantId, forKey: .tenantId) + try container.encodeIfPresent(filters, forKey: .filters) + try container.encodeIfPresent(searchFilters, forKey: .searchFilters) + try container.encodeIfPresent(textSearch, forKey: .textSearch) + var additionalPropertiesContainer = encoder.container(keyedBy: String.self) + try additionalPropertiesContainer.encodeMap(additionalProperties) + } + + // Decodable protocol methods + + public init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + + userId = try container.decode(String.self, forKey: .userId) + tenantId = try container.decode(String.self, forKey: .tenantId) + filters = try container.decodeIfPresent(String.self, forKey: .filters) + searchFilters = try container.decodeIfPresent(String.self, forKey: .searchFilters) + textSearch = try container.decodeIfPresent(String.self, forKey: .textSearch) + var nonAdditionalPropertyKeys = Set() + nonAdditionalPropertyKeys.insert("userId") + nonAdditionalPropertyKeys.insert("tenantId") + nonAdditionalPropertyKeys.insert("filters") + nonAdditionalPropertyKeys.insert("searchFilters") + nonAdditionalPropertyKeys.insert("textSearch") + let additionalPropertiesContainer = try decoder.container(keyedBy: String.self) + additionalProperties = try additionalPropertiesContainer.decodeMap(JSONValue.self, excludedKeys: nonAdditionalPropertyKeys) + } +} + diff --git a/client/FastCommentsSwift/Models/BuildModerationFilterResponse.swift b/client/FastCommentsSwift/Models/BuildModerationFilterResponse.swift new file mode 100644 index 0000000..9f216e5 --- /dev/null +++ b/client/FastCommentsSwift/Models/BuildModerationFilterResponse.swift @@ -0,0 +1,33 @@ +// +// BuildModerationFilterResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct BuildModerationFilterResponse: Sendable, Codable, Hashable { + + public var status: String + public var moderationFilter: ModerationFilter + + public init(status: String, moderationFilter: ModerationFilter) { + self.status = status + self.moderationFilter = moderationFilter + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case moderationFilter + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(moderationFilter, forKey: .moderationFilter) + } +} + diff --git a/client/FastCommentsSwift/Models/BulkAggregateQuestionItem.swift b/client/FastCommentsSwift/Models/BulkAggregateQuestionItem.swift index 4d4b420..07fa63b 100644 --- a/client/FastCommentsSwift/Models/BulkAggregateQuestionItem.swift +++ b/client/FastCommentsSwift/Models/BulkAggregateQuestionItem.swift @@ -7,7 +7,7 @@ import Foundation -public struct BulkAggregateQuestionItem: Sendable, Codable, ParameterConvertible, Hashable { +public struct BulkAggregateQuestionItem: Sendable, Codable, Hashable { public var aggId: String public var questionId: String? diff --git a/client/FastCommentsSwift/Models/BulkAggregateQuestionResults200Response.swift b/client/FastCommentsSwift/Models/BulkAggregateQuestionResults200Response.swift deleted file mode 100644 index 30fbf37..0000000 --- a/client/FastCommentsSwift/Models/BulkAggregateQuestionResults200Response.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// BulkAggregateQuestionResults200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct BulkAggregateQuestionResults200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - /** Construct a type with a set of properties K of type T */ - public var data: [String: QuestionResultAggregationOverall]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, data: [String: QuestionResultAggregationOverall]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.data = data - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case data - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(data, forKey: .data) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/BulkAggregateQuestionResultsRequest.swift b/client/FastCommentsSwift/Models/BulkAggregateQuestionResultsRequest.swift index d26eff1..21a64ff 100644 --- a/client/FastCommentsSwift/Models/BulkAggregateQuestionResultsRequest.swift +++ b/client/FastCommentsSwift/Models/BulkAggregateQuestionResultsRequest.swift @@ -7,7 +7,7 @@ import Foundation -public struct BulkAggregateQuestionResultsRequest: Sendable, Codable, ParameterConvertible, Hashable { +public struct BulkAggregateQuestionResultsRequest: Sendable, Codable, Hashable { public var aggregations: [BulkAggregateQuestionItem] diff --git a/client/FastCommentsSwift/Models/BulkAggregateQuestionResultsResponse.swift b/client/FastCommentsSwift/Models/BulkAggregateQuestionResultsResponse.swift index 3c8e27d..c66534d 100644 --- a/client/FastCommentsSwift/Models/BulkAggregateQuestionResultsResponse.swift +++ b/client/FastCommentsSwift/Models/BulkAggregateQuestionResultsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct BulkAggregateQuestionResultsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct BulkAggregateQuestionResultsResponse: Sendable, Codable, Hashable { public var status: APIStatus /** Construct a type with a set of properties K of type T */ diff --git a/client/FastCommentsSwift/Models/BulkCreateHashTagsBody.swift b/client/FastCommentsSwift/Models/BulkCreateHashTagsBody.swift index 096b3f8..fbc75a4 100644 --- a/client/FastCommentsSwift/Models/BulkCreateHashTagsBody.swift +++ b/client/FastCommentsSwift/Models/BulkCreateHashTagsBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct BulkCreateHashTagsBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct BulkCreateHashTagsBody: Sendable, Codable, Hashable { public var tenantId: String? public var tags: [BulkCreateHashTagsBodyTagsInner] diff --git a/client/FastCommentsSwift/Models/BulkCreateHashTagsBodyTagsInner.swift b/client/FastCommentsSwift/Models/BulkCreateHashTagsBodyTagsInner.swift index 68c4e6c..0fbdb36 100644 --- a/client/FastCommentsSwift/Models/BulkCreateHashTagsBodyTagsInner.swift +++ b/client/FastCommentsSwift/Models/BulkCreateHashTagsBodyTagsInner.swift @@ -7,7 +7,7 @@ import Foundation -public struct BulkCreateHashTagsBodyTagsInner: Sendable, Codable, ParameterConvertible, Hashable { +public struct BulkCreateHashTagsBodyTagsInner: Sendable, Codable, Hashable { public var url: String? public var tag: String diff --git a/client/FastCommentsSwift/Models/BulkCreateHashTagsResponse.swift b/client/FastCommentsSwift/Models/BulkCreateHashTagsResponse.swift index 93d5760..53d9ee6 100644 --- a/client/FastCommentsSwift/Models/BulkCreateHashTagsResponse.swift +++ b/client/FastCommentsSwift/Models/BulkCreateHashTagsResponse.swift @@ -7,12 +7,12 @@ import Foundation -public struct BulkCreateHashTagsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct BulkCreateHashTagsResponse: Sendable, Codable, Hashable { public var status: APIStatus - public var results: [AddHashTag200Response] + public var results: [BulkCreateHashTagsResponseResultsInner] - public init(status: APIStatus, results: [AddHashTag200Response]) { + public init(status: APIStatus, results: [BulkCreateHashTagsResponseResultsInner]) { self.status = status self.results = results } diff --git a/client/FastCommentsSwift/Models/PatchHashTag200Response.swift b/client/FastCommentsSwift/Models/BulkCreateHashTagsResponseResultsInner.swift similarity index 94% rename from client/FastCommentsSwift/Models/PatchHashTag200Response.swift rename to client/FastCommentsSwift/Models/BulkCreateHashTagsResponseResultsInner.swift index e5c3f7d..3fff4da 100644 --- a/client/FastCommentsSwift/Models/PatchHashTag200Response.swift +++ b/client/FastCommentsSwift/Models/BulkCreateHashTagsResponseResultsInner.swift @@ -1,5 +1,5 @@ // -// PatchHashTag200Response.swift +// BulkCreateHashTagsResponseResultsInner.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct PatchHashTag200Response: Sendable, Codable, ParameterConvertible, Hashable { +public struct BulkCreateHashTagsResponseResultsInner: Sendable, Codable, Hashable { public var status: APIStatus public var hashTag: TenantHashTag? diff --git a/client/FastCommentsSwift/Models/BulkPreBanParams.swift b/client/FastCommentsSwift/Models/BulkPreBanParams.swift new file mode 100644 index 0000000..5cd0c3b --- /dev/null +++ b/client/FastCommentsSwift/Models/BulkPreBanParams.swift @@ -0,0 +1,29 @@ +// +// BulkPreBanParams.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct BulkPreBanParams: Sendable, Codable, Hashable { + + public var commentIds: [String] + + public init(commentIds: [String]) { + self.commentIds = commentIds + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case commentIds + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(commentIds, forKey: .commentIds) + } +} + diff --git a/client/FastCommentsSwift/Models/BulkPreBanSummary.swift b/client/FastCommentsSwift/Models/BulkPreBanSummary.swift new file mode 100644 index 0000000..35f3d8f --- /dev/null +++ b/client/FastCommentsSwift/Models/BulkPreBanSummary.swift @@ -0,0 +1,49 @@ +// +// BulkPreBanSummary.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct BulkPreBanSummary: Sendable, Codable, Hashable { + + public var status: String + public var totalRelatedCommentCount: Int + public var emailDomains: [String] + public var emails: [String] + public var userIds: [String] + public var ipHashes: [String] + + public init(status: String, totalRelatedCommentCount: Int, emailDomains: [String], emails: [String], userIds: [String], ipHashes: [String]) { + self.status = status + self.totalRelatedCommentCount = totalRelatedCommentCount + self.emailDomains = emailDomains + self.emails = emails + self.userIds = userIds + self.ipHashes = ipHashes + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case totalRelatedCommentCount + case emailDomains + case emails + case userIds + case ipHashes + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(totalRelatedCommentCount, forKey: .totalRelatedCommentCount) + try container.encode(emailDomains, forKey: .emailDomains) + try container.encode(emails, forKey: .emails) + try container.encode(userIds, forKey: .userIds) + try container.encode(ipHashes, forKey: .ipHashes) + } +} + diff --git a/client/FastCommentsSwift/Models/ChangeCommentPinStatusResponse.swift b/client/FastCommentsSwift/Models/ChangeCommentPinStatusResponse.swift index 0bcc0b7..a7e1b84 100644 --- a/client/FastCommentsSwift/Models/ChangeCommentPinStatusResponse.swift +++ b/client/FastCommentsSwift/Models/ChangeCommentPinStatusResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct ChangeCommentPinStatusResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct ChangeCommentPinStatusResponse: Sendable, Codable, Hashable { /** Construct a type with a set of properties K of type T */ public var commentPositions: [String: RecordStringBeforeStringOrNullAfterStringOrNullValue] diff --git a/client/FastCommentsSwift/Models/ChangeTicketState200Response.swift b/client/FastCommentsSwift/Models/ChangeTicketState200Response.swift deleted file mode 100644 index 1a06e41..0000000 --- a/client/FastCommentsSwift/Models/ChangeTicketState200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// ChangeTicketState200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct ChangeTicketState200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var ticket: APITicket? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, ticket: APITicket? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.ticket = ticket - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case ticket - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(ticket, forKey: .ticket) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/ChangeTicketStateBody.swift b/client/FastCommentsSwift/Models/ChangeTicketStateBody.swift index 3a072fb..e2ae134 100644 --- a/client/FastCommentsSwift/Models/ChangeTicketStateBody.swift +++ b/client/FastCommentsSwift/Models/ChangeTicketStateBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct ChangeTicketStateBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct ChangeTicketStateBody: Sendable, Codable, Hashable { public var state: Int diff --git a/client/FastCommentsSwift/Models/ChangeTicketStateResponse.swift b/client/FastCommentsSwift/Models/ChangeTicketStateResponse.swift index 1e7f31f..54aa586 100644 --- a/client/FastCommentsSwift/Models/ChangeTicketStateResponse.swift +++ b/client/FastCommentsSwift/Models/ChangeTicketStateResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct ChangeTicketStateResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct ChangeTicketStateResponse: Sendable, Codable, Hashable { public var status: APIStatus public var ticket: APITicket diff --git a/client/FastCommentsSwift/Models/CheckBlockedCommentsResponse.swift b/client/FastCommentsSwift/Models/CheckBlockedCommentsResponse.swift index e8d142e..4d49036 100644 --- a/client/FastCommentsSwift/Models/CheckBlockedCommentsResponse.swift +++ b/client/FastCommentsSwift/Models/CheckBlockedCommentsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CheckBlockedCommentsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CheckBlockedCommentsResponse: Sendable, Codable, Hashable { /** Construct a type with a set of properties K of type T */ public var commentStatuses: [String: Bool] diff --git a/client/FastCommentsSwift/Models/CheckedCommentsForBlocked200Response.swift b/client/FastCommentsSwift/Models/CheckedCommentsForBlocked200Response.swift deleted file mode 100644 index ab369b5..0000000 --- a/client/FastCommentsSwift/Models/CheckedCommentsForBlocked200Response.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// CheckedCommentsForBlocked200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CheckedCommentsForBlocked200Response: Sendable, Codable, ParameterConvertible, Hashable { - - /** Construct a type with a set of properties K of type T */ - public var commentStatuses: [String: Bool]? - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(commentStatuses: [String: Bool]? = nil, status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.commentStatuses = commentStatuses - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case commentStatuses - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(commentStatuses, forKey: .commentStatuses) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CombineCommentsWithQuestionResults200Response.swift b/client/FastCommentsSwift/Models/CombineCommentsWithQuestionResults200Response.swift deleted file mode 100644 index 52bae83..0000000 --- a/client/FastCommentsSwift/Models/CombineCommentsWithQuestionResults200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CombineCommentsWithQuestionResults200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CombineCommentsWithQuestionResults200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var data: FindCommentsByRangeResponse? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, data: FindCommentsByRangeResponse? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.data = data - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case data - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(data, forKey: .data) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CombineQuestionResultsWithCommentsResponse.swift b/client/FastCommentsSwift/Models/CombineQuestionResultsWithCommentsResponse.swift index 76326d5..4982d46 100644 --- a/client/FastCommentsSwift/Models/CombineQuestionResultsWithCommentsResponse.swift +++ b/client/FastCommentsSwift/Models/CombineQuestionResultsWithCommentsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CombineQuestionResultsWithCommentsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CombineQuestionResultsWithCommentsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var data: FindCommentsByRangeResponse diff --git a/client/FastCommentsSwift/Models/CommentData.swift b/client/FastCommentsSwift/Models/CommentData.swift index 60f0429..3323acc 100644 --- a/client/FastCommentsSwift/Models/CommentData.swift +++ b/client/FastCommentsSwift/Models/CommentData.swift @@ -7,7 +7,7 @@ import Foundation -public struct CommentData: Sendable, Codable, ParameterConvertible, Hashable { +public struct CommentData: Sendable, Codable, Hashable { public var date: Int64? public var localDateString: String? @@ -33,10 +33,11 @@ public struct CommentData: Sendable, Codable, ParameterConvertible, Hashable { public var autoplayDelayMS: Int64? public var feedbackIds: [String]? /** Construct a type with a set of properties K of type T */ - public var questionValues: [String: RecordStringStringOrNumberValue]? + public var questionValues: [String: GifSearchResponseImagesInnerInner]? public var tos: Bool? + public var botId: String? - public init(date: Int64? = nil, localDateString: String? = nil, localDateHours: Int? = nil, commenterName: String, commenterEmail: String? = nil, commenterLink: String? = nil, comment: String, productId: Int? = nil, userId: String? = nil, avatarSrc: String? = nil, parentId: String? = nil, mentions: [CommentUserMentionInfo]? = nil, hashTags: [CommentUserHashTagInfo]? = nil, pageTitle: String? = nil, isFromMyAccountPage: Bool? = nil, url: String, urlId: String, meta: JSONValue? = nil, moderationGroupIds: [String]? = nil, rating: Double? = nil, fromOfflineRestore: Bool? = nil, autoplayDelayMS: Int64? = nil, feedbackIds: [String]? = nil, questionValues: [String: RecordStringStringOrNumberValue]? = nil, tos: Bool? = nil) { + public init(date: Int64? = nil, localDateString: String? = nil, localDateHours: Int? = nil, commenterName: String, commenterEmail: String? = nil, commenterLink: String? = nil, comment: String, productId: Int? = nil, userId: String? = nil, avatarSrc: String? = nil, parentId: String? = nil, mentions: [CommentUserMentionInfo]? = nil, hashTags: [CommentUserHashTagInfo]? = nil, pageTitle: String? = nil, isFromMyAccountPage: Bool? = nil, url: String, urlId: String, meta: JSONValue? = nil, moderationGroupIds: [String]? = nil, rating: Double? = nil, fromOfflineRestore: Bool? = nil, autoplayDelayMS: Int64? = nil, feedbackIds: [String]? = nil, questionValues: [String: GifSearchResponseImagesInnerInner]? = nil, tos: Bool? = nil, botId: String? = nil) { self.date = date self.localDateString = localDateString self.localDateHours = localDateHours @@ -62,6 +63,7 @@ public struct CommentData: Sendable, Codable, ParameterConvertible, Hashable { self.feedbackIds = feedbackIds self.questionValues = questionValues self.tos = tos + self.botId = botId } public enum CodingKeys: String, CodingKey, CaseIterable { @@ -90,6 +92,7 @@ public struct CommentData: Sendable, Codable, ParameterConvertible, Hashable { case feedbackIds case questionValues case tos + case botId } // Encodable protocol methods @@ -121,6 +124,7 @@ public struct CommentData: Sendable, Codable, ParameterConvertible, Hashable { try container.encodeIfPresent(feedbackIds, forKey: .feedbackIds) try container.encodeIfPresent(questionValues, forKey: .questionValues) try container.encodeIfPresent(tos, forKey: .tos) + try container.encodeIfPresent(botId, forKey: .botId) } } diff --git a/client/FastCommentsSwift/Models/CommentLogData.swift b/client/FastCommentsSwift/Models/CommentLogData.swift index 2033145..d2d2c8a 100644 --- a/client/FastCommentsSwift/Models/CommentLogData.swift +++ b/client/FastCommentsSwift/Models/CommentLogData.swift @@ -7,7 +7,7 @@ import Foundation -public struct CommentLogData: Sendable, Codable, ParameterConvertible, Hashable { +public struct CommentLogData: Sendable, Codable, Hashable { public enum PermanentFlag: String, Sendable, Codable, CaseIterable { case permanent = "permanent" @@ -27,6 +27,7 @@ public struct CommentLogData: Sendable, Codable, ParameterConvertible, Hashable public var engineResponse: String? public var engineTokens: Double? public var trustFactor: Double? + public var source: String? public var rule: SpamRule? public var userId: String? public var subscribers: Double? @@ -59,7 +60,7 @@ public struct CommentLogData: Sendable, Codable, ParameterConvertible, Hashable public var detectedLocale: String? public var detectedLanguage: String? - public init(clearContent: Bool? = nil, isDeletedUser: Bool? = nil, phrase: String? = nil, badWord: String? = nil, word: String? = nil, locale: String? = nil, tenantBadgeId: String? = nil, badgeId: String? = nil, wasLoggedIn: Bool? = nil, foundUser: Bool? = nil, verified: Bool? = nil, engine: String? = nil, engineResponse: String? = nil, engineTokens: Double? = nil, trustFactor: Double? = nil, rule: SpamRule? = nil, userId: String? = nil, subscribers: Double? = nil, notificationCount: Double? = nil, votesBefore: Double? = nil, votesUpBefore: Double? = nil, votesDownBefore: Double? = nil, votesAfter: Double? = nil, votesUpAfter: Double? = nil, votesDownAfter: Double? = nil, repeatAction: RepeatCommentHandlingAction? = nil, reason: RepeatCommentCheckIgnoredReason? = nil, otherData: JSONValue? = nil, spamBefore: Bool? = nil, spamAfter: Bool? = nil, permanentFlag: PermanentFlag? = nil, approvedBefore: Bool? = nil, approvedAfter: Bool? = nil, reviewedBefore: Bool? = nil, reviewedAfter: Bool? = nil, textBefore: String? = nil, textAfter: String? = nil, expireBefore: Date? = nil, expireAfter: Date? = nil, flagCountBefore: Double? = nil, trustFactorBefore: Double? = nil, trustFactorAfter: Double? = nil, referencedCommentId: String? = nil, invalidLocale: String? = nil, detectedLocale: String? = nil, detectedLanguage: String? = nil) { + public init(clearContent: Bool? = nil, isDeletedUser: Bool? = nil, phrase: String? = nil, badWord: String? = nil, word: String? = nil, locale: String? = nil, tenantBadgeId: String? = nil, badgeId: String? = nil, wasLoggedIn: Bool? = nil, foundUser: Bool? = nil, verified: Bool? = nil, engine: String? = nil, engineResponse: String? = nil, engineTokens: Double? = nil, trustFactor: Double? = nil, source: String? = nil, rule: SpamRule? = nil, userId: String? = nil, subscribers: Double? = nil, notificationCount: Double? = nil, votesBefore: Double? = nil, votesUpBefore: Double? = nil, votesDownBefore: Double? = nil, votesAfter: Double? = nil, votesUpAfter: Double? = nil, votesDownAfter: Double? = nil, repeatAction: RepeatCommentHandlingAction? = nil, reason: RepeatCommentCheckIgnoredReason? = nil, otherData: JSONValue? = nil, spamBefore: Bool? = nil, spamAfter: Bool? = nil, permanentFlag: PermanentFlag? = nil, approvedBefore: Bool? = nil, approvedAfter: Bool? = nil, reviewedBefore: Bool? = nil, reviewedAfter: Bool? = nil, textBefore: String? = nil, textAfter: String? = nil, expireBefore: Date? = nil, expireAfter: Date? = nil, flagCountBefore: Double? = nil, trustFactorBefore: Double? = nil, trustFactorAfter: Double? = nil, referencedCommentId: String? = nil, invalidLocale: String? = nil, detectedLocale: String? = nil, detectedLanguage: String? = nil) { self.clearContent = clearContent self.isDeletedUser = isDeletedUser self.phrase = phrase @@ -75,6 +76,7 @@ public struct CommentLogData: Sendable, Codable, ParameterConvertible, Hashable self.engineResponse = engineResponse self.engineTokens = engineTokens self.trustFactor = trustFactor + self.source = source self.rule = rule self.userId = userId self.subscribers = subscribers @@ -124,6 +126,7 @@ public struct CommentLogData: Sendable, Codable, ParameterConvertible, Hashable case engineResponse case engineTokens case trustFactor + case source case rule case userId case subscribers @@ -176,6 +179,7 @@ public struct CommentLogData: Sendable, Codable, ParameterConvertible, Hashable try container.encodeIfPresent(engineResponse, forKey: .engineResponse) try container.encodeIfPresent(engineTokens, forKey: .engineTokens) try container.encodeIfPresent(trustFactor, forKey: .trustFactor) + try container.encodeIfPresent(source, forKey: .source) try container.encodeIfPresent(rule, forKey: .rule) try container.encodeIfPresent(userId, forKey: .userId) try container.encodeIfPresent(subscribers, forKey: .subscribers) diff --git a/client/FastCommentsSwift/Models/CommentLogEntry.swift b/client/FastCommentsSwift/Models/CommentLogEntry.swift index b4cb712..8c65f27 100644 --- a/client/FastCommentsSwift/Models/CommentLogEntry.swift +++ b/client/FastCommentsSwift/Models/CommentLogEntry.swift @@ -7,7 +7,7 @@ import Foundation -public struct CommentLogEntry: Sendable, Codable, ParameterConvertible, Hashable { +public struct CommentLogEntry: Sendable, Codable, Hashable { public var d: Date public var t: CommentLogType diff --git a/client/FastCommentsSwift/Models/CommentTextUpdateRequest.swift b/client/FastCommentsSwift/Models/CommentTextUpdateRequest.swift index 74b5b6d..d821f45 100644 --- a/client/FastCommentsSwift/Models/CommentTextUpdateRequest.swift +++ b/client/FastCommentsSwift/Models/CommentTextUpdateRequest.swift @@ -7,7 +7,7 @@ import Foundation -public struct CommentTextUpdateRequest: Sendable, Codable, ParameterConvertible, Hashable { +public struct CommentTextUpdateRequest: Sendable, Codable, Hashable { public var comment: String public var mentions: [CommentUserMentionInfo]? diff --git a/client/FastCommentsSwift/Models/CommentUserBadgeInfo.swift b/client/FastCommentsSwift/Models/CommentUserBadgeInfo.swift index 117b02b..b9d4371 100644 --- a/client/FastCommentsSwift/Models/CommentUserBadgeInfo.swift +++ b/client/FastCommentsSwift/Models/CommentUserBadgeInfo.swift @@ -7,7 +7,7 @@ import Foundation -public struct CommentUserBadgeInfo: Sendable, Codable, ParameterConvertible, Hashable { +public struct CommentUserBadgeInfo: Sendable, Codable, Hashable { public var id: String public var type: Int @@ -60,5 +60,4 @@ public struct CommentUserBadgeInfo: Sendable, Codable, ParameterConvertible, Has } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension CommentUserBadgeInfo: Identifiable {} diff --git a/client/FastCommentsSwift/Models/CommentUserHashTagInfo.swift b/client/FastCommentsSwift/Models/CommentUserHashTagInfo.swift index 9dfd4a3..f858aaf 100644 --- a/client/FastCommentsSwift/Models/CommentUserHashTagInfo.swift +++ b/client/FastCommentsSwift/Models/CommentUserHashTagInfo.swift @@ -7,7 +7,7 @@ import Foundation -public struct CommentUserHashTagInfo: Sendable, Codable, ParameterConvertible, Hashable { +public struct CommentUserHashTagInfo: Sendable, Codable, Hashable { public var id: String public var tag: String @@ -40,5 +40,4 @@ public struct CommentUserHashTagInfo: Sendable, Codable, ParameterConvertible, H } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension CommentUserHashTagInfo: Identifiable {} diff --git a/client/FastCommentsSwift/Models/CommentUserMentionInfo.swift b/client/FastCommentsSwift/Models/CommentUserMentionInfo.swift index 05c836e..c2fa4dc 100644 --- a/client/FastCommentsSwift/Models/CommentUserMentionInfo.swift +++ b/client/FastCommentsSwift/Models/CommentUserMentionInfo.swift @@ -7,7 +7,7 @@ import Foundation -public struct CommentUserMentionInfo: Sendable, Codable, ParameterConvertible, Hashable { +public struct CommentUserMentionInfo: Sendable, Codable, Hashable { public enum ModelType: String, Sendable, Codable, CaseIterable { case user = "user" @@ -48,5 +48,4 @@ public struct CommentUserMentionInfo: Sendable, Codable, ParameterConvertible, H } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension CommentUserMentionInfo: Identifiable {} diff --git a/client/FastCommentsSwift/Models/CommentsByIdsParams.swift b/client/FastCommentsSwift/Models/CommentsByIdsParams.swift new file mode 100644 index 0000000..990ec24 --- /dev/null +++ b/client/FastCommentsSwift/Models/CommentsByIdsParams.swift @@ -0,0 +1,29 @@ +// +// CommentsByIdsParams.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct CommentsByIdsParams: Sendable, Codable, Hashable { + + public var ids: [String] + + public init(ids: [String]) { + self.ids = ids + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case ids + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(ids, forKey: .ids) + } +} + diff --git a/client/FastCommentsSwift/Models/CreateAPIPageData.swift b/client/FastCommentsSwift/Models/CreateAPIPageData.swift index 38f165e..3469a70 100644 --- a/client/FastCommentsSwift/Models/CreateAPIPageData.swift +++ b/client/FastCommentsSwift/Models/CreateAPIPageData.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateAPIPageData: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateAPIPageData: Sendable, Codable, Hashable { public var accessibleByGroupIds: [String]? public var rootCommentCount: Int64? diff --git a/client/FastCommentsSwift/Models/CreateAPISSOUserData.swift b/client/FastCommentsSwift/Models/CreateAPISSOUserData.swift index a75db97..7d4b512 100644 --- a/client/FastCommentsSwift/Models/CreateAPISSOUserData.swift +++ b/client/FastCommentsSwift/Models/CreateAPISSOUserData.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateAPISSOUserData: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateAPISSOUserData: Sendable, Codable, Hashable { public var groupIds: [String]? public var hasBlockedUsers: Bool? @@ -104,5 +104,4 @@ public struct CreateAPISSOUserData: Sendable, Codable, ParameterConvertible, Has } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension CreateAPISSOUserData: Identifiable {} diff --git a/client/FastCommentsSwift/Models/CreateAPIUserSubscriptionData.swift b/client/FastCommentsSwift/Models/CreateAPIUserSubscriptionData.swift index 3edf9f7..05aad76 100644 --- a/client/FastCommentsSwift/Models/CreateAPIUserSubscriptionData.swift +++ b/client/FastCommentsSwift/Models/CreateAPIUserSubscriptionData.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateAPIUserSubscriptionData: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateAPIUserSubscriptionData: Sendable, Codable, Hashable { public var notificationFrequency: Double? public var pageTitle: String? diff --git a/client/FastCommentsSwift/Models/CreateCommentParams.swift b/client/FastCommentsSwift/Models/CreateCommentParams.swift index 01cdc2b..0b3f037 100644 --- a/client/FastCommentsSwift/Models/CreateCommentParams.swift +++ b/client/FastCommentsSwift/Models/CreateCommentParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateCommentParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateCommentParams: Sendable, Codable, Hashable { public var date: Int64? public var localDateString: String? @@ -33,8 +33,9 @@ public struct CreateCommentParams: Sendable, Codable, ParameterConvertible, Hash public var autoplayDelayMS: Int64? public var feedbackIds: [String]? /** Construct a type with a set of properties K of type T */ - public var questionValues: [String: RecordStringStringOrNumberValue]? + public var questionValues: [String: GifSearchResponseImagesInnerInner]? public var tos: Bool? + public var botId: String? public var approved: Bool? public var domain: String? public var ip: String? @@ -47,7 +48,7 @@ public struct CreateCommentParams: Sendable, Codable, ParameterConvertible, Hash public var votesDown: Int? public var votesUp: Int? - public init(date: Int64? = nil, localDateString: String? = nil, localDateHours: Int? = nil, commenterName: String, commenterEmail: String? = nil, commenterLink: String? = nil, comment: String, productId: Int? = nil, userId: String? = nil, avatarSrc: String? = nil, parentId: String? = nil, mentions: [CommentUserMentionInfo]? = nil, hashTags: [CommentUserHashTagInfo]? = nil, pageTitle: String? = nil, isFromMyAccountPage: Bool? = nil, url: String, urlId: String, meta: JSONValue? = nil, moderationGroupIds: [String]? = nil, rating: Double? = nil, fromOfflineRestore: Bool? = nil, autoplayDelayMS: Int64? = nil, feedbackIds: [String]? = nil, questionValues: [String: RecordStringStringOrNumberValue]? = nil, tos: Bool? = nil, approved: Bool? = nil, domain: String? = nil, ip: String? = nil, isPinned: Bool? = nil, locale: String, reviewed: Bool? = nil, verified: Bool? = nil, votes: Int? = nil, votesDown: Int? = nil, votesUp: Int? = nil) { + public init(date: Int64? = nil, localDateString: String? = nil, localDateHours: Int? = nil, commenterName: String, commenterEmail: String? = nil, commenterLink: String? = nil, comment: String, productId: Int? = nil, userId: String? = nil, avatarSrc: String? = nil, parentId: String? = nil, mentions: [CommentUserMentionInfo]? = nil, hashTags: [CommentUserHashTagInfo]? = nil, pageTitle: String? = nil, isFromMyAccountPage: Bool? = nil, url: String, urlId: String, meta: JSONValue? = nil, moderationGroupIds: [String]? = nil, rating: Double? = nil, fromOfflineRestore: Bool? = nil, autoplayDelayMS: Int64? = nil, feedbackIds: [String]? = nil, questionValues: [String: GifSearchResponseImagesInnerInner]? = nil, tos: Bool? = nil, botId: String? = nil, approved: Bool? = nil, domain: String? = nil, ip: String? = nil, isPinned: Bool? = nil, locale: String, reviewed: Bool? = nil, verified: Bool? = nil, votes: Int? = nil, votesDown: Int? = nil, votesUp: Int? = nil) { self.date = date self.localDateString = localDateString self.localDateHours = localDateHours @@ -73,6 +74,7 @@ public struct CreateCommentParams: Sendable, Codable, ParameterConvertible, Hash self.feedbackIds = feedbackIds self.questionValues = questionValues self.tos = tos + self.botId = botId self.approved = approved self.domain = domain self.ip = ip @@ -111,6 +113,7 @@ public struct CreateCommentParams: Sendable, Codable, ParameterConvertible, Hash case feedbackIds case questionValues case tos + case botId case approved case domain case ip @@ -152,6 +155,7 @@ public struct CreateCommentParams: Sendable, Codable, ParameterConvertible, Hash try container.encodeIfPresent(feedbackIds, forKey: .feedbackIds) try container.encodeIfPresent(questionValues, forKey: .questionValues) try container.encodeIfPresent(tos, forKey: .tos) + try container.encodeIfPresent(botId, forKey: .botId) try container.encodeIfPresent(approved, forKey: .approved) try container.encodeIfPresent(domain, forKey: .domain) try container.encodeIfPresent(ip, forKey: .ip) diff --git a/client/FastCommentsSwift/Models/CreateCommentPublic200Response.swift b/client/FastCommentsSwift/Models/CreateCommentPublic200Response.swift deleted file mode 100644 index 9b46c1e..0000000 --- a/client/FastCommentsSwift/Models/CreateCommentPublic200Response.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// CreateCommentPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateCommentPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var comment: PublicComment? - public var user: UserSessionInfo? - /** Construct a type with a set of properties K of type T */ - public var moduleData: [String: JSONValue]? - public var userIdWS: String? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, comment: PublicComment? = nil, user: UserSessionInfo? = nil, moduleData: [String: JSONValue]? = nil, userIdWS: String? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.comment = comment - self.user = user - self.moduleData = moduleData - self.userIdWS = userIdWS - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case comment - case user - case moduleData - case userIdWS - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(comment, forKey: .comment) - try container.encodeIfPresent(user, forKey: .user) - try container.encodeIfPresent(moduleData, forKey: .moduleData) - try container.encodeIfPresent(userIdWS, forKey: .userIdWS) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateEmailTemplate200Response.swift b/client/FastCommentsSwift/Models/CreateEmailTemplate200Response.swift deleted file mode 100644 index 987f918..0000000 --- a/client/FastCommentsSwift/Models/CreateEmailTemplate200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateEmailTemplate200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateEmailTemplate200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var emailTemplate: CustomEmailTemplate? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, emailTemplate: CustomEmailTemplate? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.emailTemplate = emailTemplate - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case emailTemplate - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(emailTemplate, forKey: .emailTemplate) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateEmailTemplateBody.swift b/client/FastCommentsSwift/Models/CreateEmailTemplateBody.swift index 0e5546e..ef86bb7 100644 --- a/client/FastCommentsSwift/Models/CreateEmailTemplateBody.swift +++ b/client/FastCommentsSwift/Models/CreateEmailTemplateBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateEmailTemplateBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateEmailTemplateBody: Sendable, Codable, Hashable { public var emailTemplateId: String public var displayName: String diff --git a/client/FastCommentsSwift/Models/CreateEmailTemplateResponse.swift b/client/FastCommentsSwift/Models/CreateEmailTemplateResponse.swift index 26781a5..7ee95aa 100644 --- a/client/FastCommentsSwift/Models/CreateEmailTemplateResponse.swift +++ b/client/FastCommentsSwift/Models/CreateEmailTemplateResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateEmailTemplateResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateEmailTemplateResponse: Sendable, Codable, Hashable { public var status: APIStatus public var emailTemplate: CustomEmailTemplate diff --git a/client/FastCommentsSwift/Models/CreateFeedPost200Response.swift b/client/FastCommentsSwift/Models/CreateFeedPost200Response.swift deleted file mode 100644 index 660879e..0000000 --- a/client/FastCommentsSwift/Models/CreateFeedPost200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateFeedPost200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateFeedPost200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var feedPost: FeedPost? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, feedPost: FeedPost? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.feedPost = feedPost - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case feedPost - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(feedPost, forKey: .feedPost) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateFeedPostParams.swift b/client/FastCommentsSwift/Models/CreateFeedPostParams.swift index 1a032fa..b783c0f 100644 --- a/client/FastCommentsSwift/Models/CreateFeedPostParams.swift +++ b/client/FastCommentsSwift/Models/CreateFeedPostParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateFeedPostParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateFeedPostParams: Sendable, Codable, Hashable { public var title: String? public var contentHTML: String? diff --git a/client/FastCommentsSwift/Models/CreateFeedPostPublic200Response.swift b/client/FastCommentsSwift/Models/CreateFeedPostPublic200Response.swift deleted file mode 100644 index e0f2bff..0000000 --- a/client/FastCommentsSwift/Models/CreateFeedPostPublic200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateFeedPostPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateFeedPostPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var feedPost: FeedPost? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, feedPost: FeedPost? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.feedPost = feedPost - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case feedPost - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(feedPost, forKey: .feedPost) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateFeedPostResponse.swift b/client/FastCommentsSwift/Models/CreateFeedPostResponse.swift index 0662611..f3b44b3 100644 --- a/client/FastCommentsSwift/Models/CreateFeedPostResponse.swift +++ b/client/FastCommentsSwift/Models/CreateFeedPostResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateFeedPostResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateFeedPostResponse: Sendable, Codable, Hashable { public var status: APIStatus public var feedPost: FeedPost diff --git a/client/FastCommentsSwift/Models/CreateFeedPostsResponse.swift b/client/FastCommentsSwift/Models/CreateFeedPostsResponse.swift index fd50a11..053151d 100644 --- a/client/FastCommentsSwift/Models/CreateFeedPostsResponse.swift +++ b/client/FastCommentsSwift/Models/CreateFeedPostsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateFeedPostsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateFeedPostsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var feedPost: FeedPost diff --git a/client/FastCommentsSwift/Models/CreateHashTagBody.swift b/client/FastCommentsSwift/Models/CreateHashTagBody.swift index 0770bbc..c41881e 100644 --- a/client/FastCommentsSwift/Models/CreateHashTagBody.swift +++ b/client/FastCommentsSwift/Models/CreateHashTagBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateHashTagBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateHashTagBody: Sendable, Codable, Hashable { public var tenantId: String? public var tag: String diff --git a/client/FastCommentsSwift/Models/CreateHashTagResponse.swift b/client/FastCommentsSwift/Models/CreateHashTagResponse.swift index f0c430c..846e132 100644 --- a/client/FastCommentsSwift/Models/CreateHashTagResponse.swift +++ b/client/FastCommentsSwift/Models/CreateHashTagResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateHashTagResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateHashTagResponse: Sendable, Codable, Hashable { public var status: APIStatus public var hashTag: TenantHashTag diff --git a/client/FastCommentsSwift/Models/CreateModerator200Response.swift b/client/FastCommentsSwift/Models/CreateModerator200Response.swift deleted file mode 100644 index 085cdce..0000000 --- a/client/FastCommentsSwift/Models/CreateModerator200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateModerator200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateModerator200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var moderator: Moderator? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, moderator: Moderator? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.moderator = moderator - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case moderator - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(moderator, forKey: .moderator) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateModeratorBody.swift b/client/FastCommentsSwift/Models/CreateModeratorBody.swift index a4787c1..a78a0df 100644 --- a/client/FastCommentsSwift/Models/CreateModeratorBody.swift +++ b/client/FastCommentsSwift/Models/CreateModeratorBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateModeratorBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateModeratorBody: Sendable, Codable, Hashable { public var name: String public var email: String diff --git a/client/FastCommentsSwift/Models/CreateModeratorResponse.swift b/client/FastCommentsSwift/Models/CreateModeratorResponse.swift index 79ae0b2..a0bf024 100644 --- a/client/FastCommentsSwift/Models/CreateModeratorResponse.swift +++ b/client/FastCommentsSwift/Models/CreateModeratorResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateModeratorResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateModeratorResponse: Sendable, Codable, Hashable { public var status: APIStatus public var moderator: Moderator diff --git a/client/FastCommentsSwift/Models/CreateQuestionConfig200Response.swift b/client/FastCommentsSwift/Models/CreateQuestionConfig200Response.swift deleted file mode 100644 index f471730..0000000 --- a/client/FastCommentsSwift/Models/CreateQuestionConfig200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateQuestionConfig200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateQuestionConfig200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var questionConfig: QuestionConfig? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, questionConfig: QuestionConfig? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.questionConfig = questionConfig - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case questionConfig - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(questionConfig, forKey: .questionConfig) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateQuestionConfigBody.swift b/client/FastCommentsSwift/Models/CreateQuestionConfigBody.swift index 0eb0484..e0ea455 100644 --- a/client/FastCommentsSwift/Models/CreateQuestionConfigBody.swift +++ b/client/FastCommentsSwift/Models/CreateQuestionConfigBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateQuestionConfigBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateQuestionConfigBody: Sendable, Codable, Hashable { public var name: String public var question: String diff --git a/client/FastCommentsSwift/Models/CreateQuestionConfigResponse.swift b/client/FastCommentsSwift/Models/CreateQuestionConfigResponse.swift index 3e00aa1..62ef9a6 100644 --- a/client/FastCommentsSwift/Models/CreateQuestionConfigResponse.swift +++ b/client/FastCommentsSwift/Models/CreateQuestionConfigResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateQuestionConfigResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateQuestionConfigResponse: Sendable, Codable, Hashable { public var status: APIStatus public var questionConfig: QuestionConfig diff --git a/client/FastCommentsSwift/Models/CreateQuestionResult200Response.swift b/client/FastCommentsSwift/Models/CreateQuestionResult200Response.swift deleted file mode 100644 index 0e4f363..0000000 --- a/client/FastCommentsSwift/Models/CreateQuestionResult200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateQuestionResult200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateQuestionResult200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var questionResult: QuestionResult? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, questionResult: QuestionResult? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.questionResult = questionResult - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case questionResult - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(questionResult, forKey: .questionResult) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateQuestionResultBody.swift b/client/FastCommentsSwift/Models/CreateQuestionResultBody.swift index d0b821b..fa6a9f6 100644 --- a/client/FastCommentsSwift/Models/CreateQuestionResultBody.swift +++ b/client/FastCommentsSwift/Models/CreateQuestionResultBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateQuestionResultBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateQuestionResultBody: Sendable, Codable, Hashable { public var urlId: String public var value: Double diff --git a/client/FastCommentsSwift/Models/CreateQuestionResultResponse.swift b/client/FastCommentsSwift/Models/CreateQuestionResultResponse.swift index f20367f..5f5d6b3 100644 --- a/client/FastCommentsSwift/Models/CreateQuestionResultResponse.swift +++ b/client/FastCommentsSwift/Models/CreateQuestionResultResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateQuestionResultResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateQuestionResultResponse: Sendable, Codable, Hashable { public var status: APIStatus public var questionResult: QuestionResult diff --git a/client/FastCommentsSwift/Models/CreateSubscriptionAPIResponse.swift b/client/FastCommentsSwift/Models/CreateSubscriptionAPIResponse.swift index cb3a6b3..f7a0ae9 100644 --- a/client/FastCommentsSwift/Models/CreateSubscriptionAPIResponse.swift +++ b/client/FastCommentsSwift/Models/CreateSubscriptionAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateSubscriptionAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateSubscriptionAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/CreateTenant200Response.swift b/client/FastCommentsSwift/Models/CreateTenant200Response.swift deleted file mode 100644 index 2faa3e3..0000000 --- a/client/FastCommentsSwift/Models/CreateTenant200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateTenant200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateTenant200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenant: APITenant? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenant: APITenant? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenant = tenant - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenant - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenant, forKey: .tenant) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateTenantBody.swift b/client/FastCommentsSwift/Models/CreateTenantBody.swift index 91030e5..ec61663 100644 --- a/client/FastCommentsSwift/Models/CreateTenantBody.swift +++ b/client/FastCommentsSwift/Models/CreateTenantBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateTenantBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateTenantBody: Sendable, Codable, Hashable { public var name: String public var domainConfiguration: [APIDomainConfiguration] diff --git a/client/FastCommentsSwift/Models/CreateTenantPackage200Response.swift b/client/FastCommentsSwift/Models/CreateTenantPackage200Response.swift deleted file mode 100644 index 439216c..0000000 --- a/client/FastCommentsSwift/Models/CreateTenantPackage200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateTenantPackage200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateTenantPackage200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenantPackage: TenantPackage? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenantPackage: TenantPackage? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenantPackage = tenantPackage - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenantPackage - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenantPackage, forKey: .tenantPackage) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateTenantPackageBody.swift b/client/FastCommentsSwift/Models/CreateTenantPackageBody.swift index 73e44d3..ef52e71 100644 --- a/client/FastCommentsSwift/Models/CreateTenantPackageBody.swift +++ b/client/FastCommentsSwift/Models/CreateTenantPackageBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateTenantPackageBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateTenantPackageBody: Sendable, Codable, Hashable { public var name: String public var monthlyCostUSD: Double? diff --git a/client/FastCommentsSwift/Models/CreateTenantPackageResponse.swift b/client/FastCommentsSwift/Models/CreateTenantPackageResponse.swift index c959129..a86e08e 100644 --- a/client/FastCommentsSwift/Models/CreateTenantPackageResponse.swift +++ b/client/FastCommentsSwift/Models/CreateTenantPackageResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateTenantPackageResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateTenantPackageResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenantPackage: TenantPackage diff --git a/client/FastCommentsSwift/Models/CreateTenantResponse.swift b/client/FastCommentsSwift/Models/CreateTenantResponse.swift index 3e26e45..bfaa4d2 100644 --- a/client/FastCommentsSwift/Models/CreateTenantResponse.swift +++ b/client/FastCommentsSwift/Models/CreateTenantResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateTenantResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateTenantResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenant: APITenant diff --git a/client/FastCommentsSwift/Models/CreateTenantUser200Response.swift b/client/FastCommentsSwift/Models/CreateTenantUser200Response.swift deleted file mode 100644 index eebbbf2..0000000 --- a/client/FastCommentsSwift/Models/CreateTenantUser200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateTenantUser200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateTenantUser200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenantUser: User? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenantUser: User? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenantUser = tenantUser - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenantUser - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenantUser, forKey: .tenantUser) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateTenantUserBody.swift b/client/FastCommentsSwift/Models/CreateTenantUserBody.swift index 28da06f..505b805 100644 --- a/client/FastCommentsSwift/Models/CreateTenantUserBody.swift +++ b/client/FastCommentsSwift/Models/CreateTenantUserBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateTenantUserBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateTenantUserBody: Sendable, Codable, Hashable { public var username: String public var email: String diff --git a/client/FastCommentsSwift/Models/CreateTenantUserResponse.swift b/client/FastCommentsSwift/Models/CreateTenantUserResponse.swift index f53d86f..2b71d96 100644 --- a/client/FastCommentsSwift/Models/CreateTenantUserResponse.swift +++ b/client/FastCommentsSwift/Models/CreateTenantUserResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateTenantUserResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateTenantUserResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenantUser: User diff --git a/client/FastCommentsSwift/Models/CreateTicket200Response.swift b/client/FastCommentsSwift/Models/CreateTicket200Response.swift deleted file mode 100644 index 3c0960c..0000000 --- a/client/FastCommentsSwift/Models/CreateTicket200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// CreateTicket200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateTicket200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var ticket: APITicket? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, ticket: APITicket? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.ticket = ticket - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case ticket - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(ticket, forKey: .ticket) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateTicketBody.swift b/client/FastCommentsSwift/Models/CreateTicketBody.swift index ceabcd9..9e1e2e0 100644 --- a/client/FastCommentsSwift/Models/CreateTicketBody.swift +++ b/client/FastCommentsSwift/Models/CreateTicketBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateTicketBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateTicketBody: Sendable, Codable, Hashable { public var subject: String diff --git a/client/FastCommentsSwift/Models/CreateTicketResponse.swift b/client/FastCommentsSwift/Models/CreateTicketResponse.swift index 8fef7f1..5ccc38f 100644 --- a/client/FastCommentsSwift/Models/CreateTicketResponse.swift +++ b/client/FastCommentsSwift/Models/CreateTicketResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateTicketResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateTicketResponse: Sendable, Codable, Hashable { public var status: APIStatus public var ticket: APITicket diff --git a/client/FastCommentsSwift/Models/CreateUserBadge200Response.swift b/client/FastCommentsSwift/Models/CreateUserBadge200Response.swift deleted file mode 100644 index 3546536..0000000 --- a/client/FastCommentsSwift/Models/CreateUserBadge200Response.swift +++ /dev/null @@ -1,65 +0,0 @@ -// -// CreateUserBadge200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct CreateUserBadge200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var userBadge: UserBadge? - public var notes: [String]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, userBadge: UserBadge? = nil, notes: [String]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.userBadge = userBadge - self.notes = notes - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case userBadge - case notes - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(userBadge, forKey: .userBadge) - try container.encodeIfPresent(notes, forKey: .notes) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/CreateUserBadgeParams.swift b/client/FastCommentsSwift/Models/CreateUserBadgeParams.swift index 7c6abec..8f05675 100644 --- a/client/FastCommentsSwift/Models/CreateUserBadgeParams.swift +++ b/client/FastCommentsSwift/Models/CreateUserBadgeParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct CreateUserBadgeParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct CreateUserBadgeParams: Sendable, Codable, Hashable { public var userId: String public var badgeId: String diff --git a/client/FastCommentsSwift/Models/CreateV1PageReact.swift b/client/FastCommentsSwift/Models/CreateV1PageReact.swift new file mode 100644 index 0000000..1896a0f --- /dev/null +++ b/client/FastCommentsSwift/Models/CreateV1PageReact.swift @@ -0,0 +1,33 @@ +// +// CreateV1PageReact.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct CreateV1PageReact: Sendable, Codable, Hashable { + + public var code: String? + public var status: APIStatus + + public init(code: String? = nil, status: APIStatus) { + self.code = code + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case code + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(code, forKey: .code) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/CustomConfigParameters.swift b/client/FastCommentsSwift/Models/CustomConfigParameters.swift index f54f4a8..ecbeabb 100644 --- a/client/FastCommentsSwift/Models/CustomConfigParameters.swift +++ b/client/FastCommentsSwift/Models/CustomConfigParameters.swift @@ -7,7 +7,7 @@ import Foundation -public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, Hashable { +public struct CustomConfigParameters: Sendable, Codable, Hashable { public var absoluteAndRelativeDates: Bool? public var absoluteDates: Bool? @@ -61,11 +61,14 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H public var noCustomConfig: Bool? public var mentionAutoCompleteMode: MentionAutoCompleteMode? public var noImageUploads: Bool? + public var allowEmbeds: Bool? + public var allowedEmbedDomains: [String]? public var noStyles: Bool? public var pageSize: Int? public var readonly: Bool? public var noNewRootComments: Bool? public var requireSSO: Bool? + public var enableFChat: Bool? public var enableResizeHandle: Bool? public var restrictedLinkDomains: [String]? public var showBadgesInTopBar: Bool? @@ -87,6 +90,8 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H public var widgetQuestionsRequired: CommentQuestionsRequired? public var widgetSubQuestionVisibility: QuestionSubQuestionVisibility? public var wrap: Bool? + public var usersListLocation: UsersListLocation? + public var usersListIncludeOffline: Bool? public var ticketBaseUrl: String? public var ticketKBSearchEndpoint: String? public var ticketFileUploadsEnabled: Bool? @@ -94,7 +99,7 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H public var ticketAutoAssignUserIds: [String]? public var tos: TOSConfig? - public init(absoluteAndRelativeDates: Bool? = nil, absoluteDates: Bool? = nil, allowAnon: Bool? = nil, allowAnonFlag: Bool? = nil, allowAnonVotes: Bool? = nil, allowedLanguages: [String]? = nil, collapseReplies: Bool? = nil, commentCountFormat: String? = nil, commentHTMLRenderingMode: CommentHTMLRenderingMode? = nil, commentThreadDeleteMode: CommentThreadDeletionMode? = nil, commenterNameFormat: CommenterNameFormats? = nil, countAboveToggle: Int? = nil, customCSS: String? = nil, defaultAvatarSrc: String? = nil, defaultSortDirection: SortDirections? = nil, defaultUsername: String? = nil, disableAutoAdminMigration: Bool? = nil, disableAutoHashTagCreation: Bool? = nil, disableBlocking: Bool? = nil, disableCommenterCommentDelete: Bool? = nil, disableCommenterCommentEdit: Bool? = nil, disableEmailInputs: Bool? = nil, disableLiveCommenting: Bool? = nil, disableNotificationBell: Bool? = nil, disableProfileComments: Bool? = nil, disableProfileDirectMessages: Bool? = nil, disableProfiles: Bool? = nil, disableSuccessMessage: Bool? = nil, disableToolbar: Bool? = nil, disableUnverifiedLabel: Bool? = nil, disableVoting: Bool? = nil, enableCommenterLinks: Bool? = nil, enableSearch: Bool? = nil, enableSpoilers: Bool? = nil, enableThirdPartyCookieBypass: Bool? = nil, enableViewCounts: Bool? = nil, enableVoteList: Bool? = nil, enableWYSIWYG: Bool? = nil, gifRating: GifRating? = nil, hasDarkBackground: Bool? = nil, headerHTML: String? = nil, hideAvatars: Bool? = nil, hideCommentsUnderCountTextFormat: String? = nil, imageContentProfanityLevel: ImageContentProfanityLevel? = nil, inputAfterComments: Bool? = nil, limitCommentsByGroups: Bool? = nil, locale: String? = nil, maxCommentCharacterLength: Int? = nil, maxCommentCreatedCountPUPM: Int? = nil, noCustomConfig: Bool? = nil, mentionAutoCompleteMode: MentionAutoCompleteMode? = nil, noImageUploads: Bool? = nil, noStyles: Bool? = nil, pageSize: Int? = nil, readonly: Bool? = nil, noNewRootComments: Bool? = nil, requireSSO: Bool? = nil, enableResizeHandle: Bool? = nil, restrictedLinkDomains: [String]? = nil, showBadgesInTopBar: Bool? = nil, showCommentSaveSuccess: Bool? = nil, showLiveRightAway: Bool? = nil, showQuestion: Bool? = nil, spamRules: [SpamRule]? = nil, ssoSecLvl: SSOSecurityLevel? = nil, translations: [String: String]? = nil, useShowCommentsToggle: Bool? = nil, useSingleLineCommentInput: Bool? = nil, voteStyle: VoteStyle? = nil, widgetQuestionId: String? = nil, widgetQuestionResultsStyle: CommentQuestionResultsRenderingType? = nil, widgetQuestionShowBreakdown: Bool? = nil, widgetQuestionStyle: QuestionRenderingType? = nil, widgetQuestionWhenToSave: QuestionWhenSave? = nil, widgetQuestionsRequired: CommentQuestionsRequired? = nil, widgetSubQuestionVisibility: QuestionSubQuestionVisibility? = nil, wrap: Bool? = nil, ticketBaseUrl: String? = nil, ticketKBSearchEndpoint: String? = nil, ticketFileUploadsEnabled: Bool? = nil, ticketMaxFileSize: Int? = nil, ticketAutoAssignUserIds: [String]? = nil, tos: TOSConfig? = nil) { + public init(absoluteAndRelativeDates: Bool? = nil, absoluteDates: Bool? = nil, allowAnon: Bool? = nil, allowAnonFlag: Bool? = nil, allowAnonVotes: Bool? = nil, allowedLanguages: [String]? = nil, collapseReplies: Bool? = nil, commentCountFormat: String? = nil, commentHTMLRenderingMode: CommentHTMLRenderingMode? = nil, commentThreadDeleteMode: CommentThreadDeletionMode? = nil, commenterNameFormat: CommenterNameFormats? = nil, countAboveToggle: Int? = nil, customCSS: String? = nil, defaultAvatarSrc: String? = nil, defaultSortDirection: SortDirections? = nil, defaultUsername: String? = nil, disableAutoAdminMigration: Bool? = nil, disableAutoHashTagCreation: Bool? = nil, disableBlocking: Bool? = nil, disableCommenterCommentDelete: Bool? = nil, disableCommenterCommentEdit: Bool? = nil, disableEmailInputs: Bool? = nil, disableLiveCommenting: Bool? = nil, disableNotificationBell: Bool? = nil, disableProfileComments: Bool? = nil, disableProfileDirectMessages: Bool? = nil, disableProfiles: Bool? = nil, disableSuccessMessage: Bool? = nil, disableToolbar: Bool? = nil, disableUnverifiedLabel: Bool? = nil, disableVoting: Bool? = nil, enableCommenterLinks: Bool? = nil, enableSearch: Bool? = nil, enableSpoilers: Bool? = nil, enableThirdPartyCookieBypass: Bool? = nil, enableViewCounts: Bool? = nil, enableVoteList: Bool? = nil, enableWYSIWYG: Bool? = nil, gifRating: GifRating? = nil, hasDarkBackground: Bool? = nil, headerHTML: String? = nil, hideAvatars: Bool? = nil, hideCommentsUnderCountTextFormat: String? = nil, imageContentProfanityLevel: ImageContentProfanityLevel? = nil, inputAfterComments: Bool? = nil, limitCommentsByGroups: Bool? = nil, locale: String? = nil, maxCommentCharacterLength: Int? = nil, maxCommentCreatedCountPUPM: Int? = nil, noCustomConfig: Bool? = nil, mentionAutoCompleteMode: MentionAutoCompleteMode? = nil, noImageUploads: Bool? = nil, allowEmbeds: Bool? = nil, allowedEmbedDomains: [String]? = nil, noStyles: Bool? = nil, pageSize: Int? = nil, readonly: Bool? = nil, noNewRootComments: Bool? = nil, requireSSO: Bool? = nil, enableFChat: Bool? = nil, enableResizeHandle: Bool? = nil, restrictedLinkDomains: [String]? = nil, showBadgesInTopBar: Bool? = nil, showCommentSaveSuccess: Bool? = nil, showLiveRightAway: Bool? = nil, showQuestion: Bool? = nil, spamRules: [SpamRule]? = nil, ssoSecLvl: SSOSecurityLevel? = nil, translations: [String: String]? = nil, useShowCommentsToggle: Bool? = nil, useSingleLineCommentInput: Bool? = nil, voteStyle: VoteStyle? = nil, widgetQuestionId: String? = nil, widgetQuestionResultsStyle: CommentQuestionResultsRenderingType? = nil, widgetQuestionShowBreakdown: Bool? = nil, widgetQuestionStyle: QuestionRenderingType? = nil, widgetQuestionWhenToSave: QuestionWhenSave? = nil, widgetQuestionsRequired: CommentQuestionsRequired? = nil, widgetSubQuestionVisibility: QuestionSubQuestionVisibility? = nil, wrap: Bool? = nil, usersListLocation: UsersListLocation? = nil, usersListIncludeOffline: Bool? = nil, ticketBaseUrl: String? = nil, ticketKBSearchEndpoint: String? = nil, ticketFileUploadsEnabled: Bool? = nil, ticketMaxFileSize: Int? = nil, ticketAutoAssignUserIds: [String]? = nil, tos: TOSConfig? = nil) { self.absoluteAndRelativeDates = absoluteAndRelativeDates self.absoluteDates = absoluteDates self.allowAnon = allowAnon @@ -147,11 +152,14 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H self.noCustomConfig = noCustomConfig self.mentionAutoCompleteMode = mentionAutoCompleteMode self.noImageUploads = noImageUploads + self.allowEmbeds = allowEmbeds + self.allowedEmbedDomains = allowedEmbedDomains self.noStyles = noStyles self.pageSize = pageSize self.readonly = readonly self.noNewRootComments = noNewRootComments self.requireSSO = requireSSO + self.enableFChat = enableFChat self.enableResizeHandle = enableResizeHandle self.restrictedLinkDomains = restrictedLinkDomains self.showBadgesInTopBar = showBadgesInTopBar @@ -172,6 +180,8 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H self.widgetQuestionsRequired = widgetQuestionsRequired self.widgetSubQuestionVisibility = widgetSubQuestionVisibility self.wrap = wrap + self.usersListLocation = usersListLocation + self.usersListIncludeOffline = usersListIncludeOffline self.ticketBaseUrl = ticketBaseUrl self.ticketKBSearchEndpoint = ticketKBSearchEndpoint self.ticketFileUploadsEnabled = ticketFileUploadsEnabled @@ -233,11 +243,14 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H case noCustomConfig case mentionAutoCompleteMode case noImageUploads + case allowEmbeds + case allowedEmbedDomains case noStyles case pageSize case readonly case noNewRootComments case requireSSO + case enableFChat case enableResizeHandle case restrictedLinkDomains case showBadgesInTopBar @@ -258,6 +271,8 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H case widgetQuestionsRequired case widgetSubQuestionVisibility case wrap + case usersListLocation + case usersListIncludeOffline case ticketBaseUrl case ticketKBSearchEndpoint case ticketFileUploadsEnabled @@ -322,11 +337,14 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H try container.encodeIfPresent(noCustomConfig, forKey: .noCustomConfig) try container.encodeIfPresent(mentionAutoCompleteMode, forKey: .mentionAutoCompleteMode) try container.encodeIfPresent(noImageUploads, forKey: .noImageUploads) + try container.encodeIfPresent(allowEmbeds, forKey: .allowEmbeds) + try container.encodeIfPresent(allowedEmbedDomains, forKey: .allowedEmbedDomains) try container.encodeIfPresent(noStyles, forKey: .noStyles) try container.encodeIfPresent(pageSize, forKey: .pageSize) try container.encodeIfPresent(readonly, forKey: .readonly) try container.encodeIfPresent(noNewRootComments, forKey: .noNewRootComments) try container.encodeIfPresent(requireSSO, forKey: .requireSSO) + try container.encodeIfPresent(enableFChat, forKey: .enableFChat) try container.encodeIfPresent(enableResizeHandle, forKey: .enableResizeHandle) try container.encodeIfPresent(restrictedLinkDomains, forKey: .restrictedLinkDomains) try container.encodeIfPresent(showBadgesInTopBar, forKey: .showBadgesInTopBar) @@ -347,6 +365,8 @@ public struct CustomConfigParameters: Sendable, Codable, ParameterConvertible, H try container.encodeIfPresent(widgetQuestionsRequired, forKey: .widgetQuestionsRequired) try container.encodeIfPresent(widgetSubQuestionVisibility, forKey: .widgetSubQuestionVisibility) try container.encodeIfPresent(wrap, forKey: .wrap) + try container.encodeIfPresent(usersListLocation, forKey: .usersListLocation) + try container.encodeIfPresent(usersListIncludeOffline, forKey: .usersListIncludeOffline) try container.encodeIfPresent(ticketBaseUrl, forKey: .ticketBaseUrl) try container.encodeIfPresent(ticketKBSearchEndpoint, forKey: .ticketKBSearchEndpoint) try container.encodeIfPresent(ticketFileUploadsEnabled, forKey: .ticketFileUploadsEnabled) diff --git a/client/FastCommentsSwift/Models/CustomEmailTemplate.swift b/client/FastCommentsSwift/Models/CustomEmailTemplate.swift index 2f305b0..a6311ab 100644 --- a/client/FastCommentsSwift/Models/CustomEmailTemplate.swift +++ b/client/FastCommentsSwift/Models/CustomEmailTemplate.swift @@ -7,7 +7,7 @@ import Foundation -public struct CustomEmailTemplate: Sendable, Codable, ParameterConvertible, Hashable { +public struct CustomEmailTemplate: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/DeleteComment200Response.swift b/client/FastCommentsSwift/Models/DeleteComment200Response.swift deleted file mode 100644 index 7387f68..0000000 --- a/client/FastCommentsSwift/Models/DeleteComment200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// DeleteComment200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct DeleteComment200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var action: DeleteCommentAction? - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(action: DeleteCommentAction? = nil, status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.action = action - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case action - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(action, forKey: .action) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/DeleteCommentPublic200Response.swift b/client/FastCommentsSwift/Models/DeleteCommentPublic200Response.swift deleted file mode 100644 index 4d0d2a3..0000000 --- a/client/FastCommentsSwift/Models/DeleteCommentPublic200Response.swift +++ /dev/null @@ -1,65 +0,0 @@ -// -// DeleteCommentPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct DeleteCommentPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var comment: DeletedCommentResultComment? - public var hardRemoved: Bool? - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(comment: DeletedCommentResultComment? = nil, hardRemoved: Bool? = nil, status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.comment = comment - self.hardRemoved = hardRemoved - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case comment - case hardRemoved - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(comment, forKey: .comment) - try container.encodeIfPresent(hardRemoved, forKey: .hardRemoved) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/DeleteCommentResult.swift b/client/FastCommentsSwift/Models/DeleteCommentResult.swift index a5950db..20fa908 100644 --- a/client/FastCommentsSwift/Models/DeleteCommentResult.swift +++ b/client/FastCommentsSwift/Models/DeleteCommentResult.swift @@ -7,7 +7,7 @@ import Foundation -public struct DeleteCommentResult: Sendable, Codable, ParameterConvertible, Hashable { +public struct DeleteCommentResult: Sendable, Codable, Hashable { public var action: DeleteCommentAction public var status: APIStatus diff --git a/client/FastCommentsSwift/Models/DeleteCommentVote200Response.swift b/client/FastCommentsSwift/Models/DeleteCommentVote200Response.swift deleted file mode 100644 index 8a13cb5..0000000 --- a/client/FastCommentsSwift/Models/DeleteCommentVote200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// DeleteCommentVote200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct DeleteCommentVote200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var wasPendingVote: Bool? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, wasPendingVote: Bool? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.wasPendingVote = wasPendingVote - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case wasPendingVote - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(wasPendingVote, forKey: .wasPendingVote) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/DeleteDomainConfig200Response.swift b/client/FastCommentsSwift/Models/DeleteDomainConfigResponse.swift similarity index 79% rename from client/FastCommentsSwift/Models/DeleteDomainConfig200Response.swift rename to client/FastCommentsSwift/Models/DeleteDomainConfigResponse.swift index 91c2c4d..a3d9ebd 100644 --- a/client/FastCommentsSwift/Models/DeleteDomainConfig200Response.swift +++ b/client/FastCommentsSwift/Models/DeleteDomainConfigResponse.swift @@ -1,5 +1,5 @@ // -// DeleteDomainConfig200Response.swift +// DeleteDomainConfigResponse.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct DeleteDomainConfig200Response: Sendable, Codable, ParameterConvertible, Hashable { +public struct DeleteDomainConfigResponse: Sendable, Codable, Hashable { public var status: JSONValue? diff --git a/client/FastCommentsSwift/Models/DeleteFeedPostPublic200Response.swift b/client/FastCommentsSwift/Models/DeleteFeedPostPublic200Response.swift deleted file mode 100644 index 0e922df..0000000 --- a/client/FastCommentsSwift/Models/DeleteFeedPostPublic200Response.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// DeleteFeedPostPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct DeleteFeedPostPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/DeleteFeedPostPublic200ResponseAnyOf.swift b/client/FastCommentsSwift/Models/DeleteFeedPostPublicResponse.swift similarity index 77% rename from client/FastCommentsSwift/Models/DeleteFeedPostPublic200ResponseAnyOf.swift rename to client/FastCommentsSwift/Models/DeleteFeedPostPublicResponse.swift index c7ab65f..55d0399 100644 --- a/client/FastCommentsSwift/Models/DeleteFeedPostPublic200ResponseAnyOf.swift +++ b/client/FastCommentsSwift/Models/DeleteFeedPostPublicResponse.swift @@ -1,5 +1,5 @@ // -// DeleteFeedPostPublic200ResponseAnyOf.swift +// DeleteFeedPostPublicResponse.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct DeleteFeedPostPublic200ResponseAnyOf: Sendable, Codable, ParameterConvertible, Hashable { +public struct DeleteFeedPostPublicResponse: Sendable, Codable, Hashable { public var status: APIStatus diff --git a/client/FastCommentsSwift/Models/DeleteHashTagRequest.swift b/client/FastCommentsSwift/Models/DeleteHashTagRequestBody.swift similarity index 82% rename from client/FastCommentsSwift/Models/DeleteHashTagRequest.swift rename to client/FastCommentsSwift/Models/DeleteHashTagRequestBody.swift index 7acacc9..b15d0d4 100644 --- a/client/FastCommentsSwift/Models/DeleteHashTagRequest.swift +++ b/client/FastCommentsSwift/Models/DeleteHashTagRequestBody.swift @@ -1,5 +1,5 @@ // -// DeleteHashTagRequest.swift +// DeleteHashTagRequestBody.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct DeleteHashTagRequest: Sendable, Codable, ParameterConvertible, Hashable { +public struct DeleteHashTagRequestBody: Sendable, Codable, Hashable { public var tenantId: String? diff --git a/client/FastCommentsSwift/Models/DeletePageAPIResponse.swift b/client/FastCommentsSwift/Models/DeletePageAPIResponse.swift index 39e20a7..0a148e0 100644 --- a/client/FastCommentsSwift/Models/DeletePageAPIResponse.swift +++ b/client/FastCommentsSwift/Models/DeletePageAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct DeletePageAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct DeletePageAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/DeleteSSOUserAPIResponse.swift b/client/FastCommentsSwift/Models/DeleteSSOUserAPIResponse.swift index 37793ff..18d8b3a 100644 --- a/client/FastCommentsSwift/Models/DeleteSSOUserAPIResponse.swift +++ b/client/FastCommentsSwift/Models/DeleteSSOUserAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct DeleteSSOUserAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct DeleteSSOUserAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/DeleteSubscriptionAPIResponse.swift b/client/FastCommentsSwift/Models/DeleteSubscriptionAPIResponse.swift index 691311c..374ba39 100644 --- a/client/FastCommentsSwift/Models/DeleteSubscriptionAPIResponse.swift +++ b/client/FastCommentsSwift/Models/DeleteSubscriptionAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct DeleteSubscriptionAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct DeleteSubscriptionAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/DeletedCommentResultComment.swift b/client/FastCommentsSwift/Models/DeletedCommentResultComment.swift index 21bea76..38210a0 100644 --- a/client/FastCommentsSwift/Models/DeletedCommentResultComment.swift +++ b/client/FastCommentsSwift/Models/DeletedCommentResultComment.swift @@ -7,7 +7,7 @@ import Foundation -public struct DeletedCommentResultComment: Sendable, Codable, ParameterConvertible, Hashable { +public struct DeletedCommentResultComment: Sendable, Codable, Hashable { public var isDeleted: Bool? public var commentHTML: String diff --git a/client/FastCommentsSwift/Models/EmailTemplateDefinition.swift b/client/FastCommentsSwift/Models/EmailTemplateDefinition.swift index 5ea9183..de5a524 100644 --- a/client/FastCommentsSwift/Models/EmailTemplateDefinition.swift +++ b/client/FastCommentsSwift/Models/EmailTemplateDefinition.swift @@ -7,7 +7,7 @@ import Foundation -public struct EmailTemplateDefinition: Sendable, Codable, ParameterConvertible, Hashable { +public struct EmailTemplateDefinition: Sendable, Codable, Hashable { public var emailTemplateId: String /** Construct a type with a set of properties K of type T */ diff --git a/client/FastCommentsSwift/Models/EmailTemplateRenderErrorResponse.swift b/client/FastCommentsSwift/Models/EmailTemplateRenderErrorResponse.swift index 1a2ecf3..bd0e96d 100644 --- a/client/FastCommentsSwift/Models/EmailTemplateRenderErrorResponse.swift +++ b/client/FastCommentsSwift/Models/EmailTemplateRenderErrorResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct EmailTemplateRenderErrorResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct EmailTemplateRenderErrorResponse: Sendable, Codable, Hashable { public var id: String public var tenantId: String @@ -52,5 +52,4 @@ public struct EmailTemplateRenderErrorResponse: Sendable, Codable, ParameterConv } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension EmailTemplateRenderErrorResponse: Identifiable {} diff --git a/client/FastCommentsSwift/Models/EventLogEntry.swift b/client/FastCommentsSwift/Models/EventLogEntry.swift index 6a958c2..b55a5de 100644 --- a/client/FastCommentsSwift/Models/EventLogEntry.swift +++ b/client/FastCommentsSwift/Models/EventLogEntry.swift @@ -7,7 +7,7 @@ import Foundation -public struct EventLogEntry: Sendable, Codable, ParameterConvertible, Hashable { +public struct EventLogEntry: Sendable, Codable, Hashable { public var id: String public var createdAt: Date diff --git a/client/FastCommentsSwift/Models/FComment.swift b/client/FastCommentsSwift/Models/FComment.swift index e69a10d..2552e42 100644 --- a/client/FastCommentsSwift/Models/FComment.swift +++ b/client/FastCommentsSwift/Models/FComment.swift @@ -7,7 +7,7 @@ import Foundation -public struct FComment: Sendable, Codable, ParameterConvertible, Hashable { +public struct FComment: Sendable, Codable, Hashable { public var id: String public var tenantId: String @@ -81,8 +81,9 @@ public struct FComment: Sendable, Codable, ParameterConvertible, Hashable { public var requiresVerification: Bool? public var editKey: String? public var tosAcceptedAt: Date? + public var botId: String? - public init(id: String, tenantId: String, urlId: String, urlIdRaw: String? = nil, url: String, pageTitle: String? = nil, userId: String? = nil, anonUserId: String? = nil, commenterEmail: String? = nil, commenterName: String, commenterLink: String? = nil, comment: String, commentHTML: String, parentId: String? = nil, date: Date?, localDateString: String? = nil, localDateHours: Int? = nil, votes: Int? = nil, votesUp: Int? = nil, votesDown: Int? = nil, expireAt: Date? = nil, verified: Bool, verifiedDate: Date? = nil, verificationId: String? = nil, notificationSentForParent: Bool? = nil, notificationSentForParentTenant: Bool? = nil, reviewed: Bool? = nil, imported: Bool? = nil, externalId: String? = nil, externalParentId: String? = nil, avatarSrc: String? = nil, isSpam: Bool? = nil, permNotSpam: Bool? = nil, aiDeterminedSpam: Bool? = nil, hasImages: Bool? = nil, pageNumber: Int? = nil, pageNumberOF: Int? = nil, pageNumberNF: Int? = nil, hasLinks: Bool? = nil, hasCode: Bool? = nil, approved: Bool, locale: String?, isDeleted: Bool? = nil, isDeletedUser: Bool? = nil, isBannedUser: Bool? = nil, isByAdmin: Bool? = nil, isByModerator: Bool? = nil, isPinned: Bool? = nil, isLocked: Bool? = nil, flagCount: Int? = nil, rating: Double? = nil, displayLabel: String? = nil, fromProductId: Int? = nil, meta: FCommentMeta? = nil, ipHash: String? = nil, mentions: [CommentUserMentionInfo]? = nil, hashTags: [CommentUserHashTagInfo]? = nil, badges: [CommentUserBadgeInfo]? = nil, domain: String? = nil, veteranBadgeProcessed: String? = nil, moderationGroupIds: [String]? = nil, didProcessBadges: Bool? = nil, fromOfflineRestore: Bool? = nil, autoplayJobId: String? = nil, autoplayDelayMS: Int64? = nil, feedbackIds: [String]? = nil, logs: [CommentLogEntry]? = nil, groupIds: [String]? = nil, viewCount: Int64? = nil, requiresVerification: Bool? = nil, editKey: String? = nil, tosAcceptedAt: Date? = nil) { + public init(id: String, tenantId: String, urlId: String, urlIdRaw: String? = nil, url: String, pageTitle: String? = nil, userId: String? = nil, anonUserId: String? = nil, commenterEmail: String? = nil, commenterName: String, commenterLink: String? = nil, comment: String, commentHTML: String, parentId: String? = nil, date: Date?, localDateString: String? = nil, localDateHours: Int? = nil, votes: Int? = nil, votesUp: Int? = nil, votesDown: Int? = nil, expireAt: Date? = nil, verified: Bool, verifiedDate: Date? = nil, verificationId: String? = nil, notificationSentForParent: Bool? = nil, notificationSentForParentTenant: Bool? = nil, reviewed: Bool? = nil, imported: Bool? = nil, externalId: String? = nil, externalParentId: String? = nil, avatarSrc: String? = nil, isSpam: Bool? = nil, permNotSpam: Bool? = nil, aiDeterminedSpam: Bool? = nil, hasImages: Bool? = nil, pageNumber: Int? = nil, pageNumberOF: Int? = nil, pageNumberNF: Int? = nil, hasLinks: Bool? = nil, hasCode: Bool? = nil, approved: Bool, locale: String?, isDeleted: Bool? = nil, isDeletedUser: Bool? = nil, isBannedUser: Bool? = nil, isByAdmin: Bool? = nil, isByModerator: Bool? = nil, isPinned: Bool? = nil, isLocked: Bool? = nil, flagCount: Int? = nil, rating: Double? = nil, displayLabel: String? = nil, fromProductId: Int? = nil, meta: FCommentMeta? = nil, ipHash: String? = nil, mentions: [CommentUserMentionInfo]? = nil, hashTags: [CommentUserHashTagInfo]? = nil, badges: [CommentUserBadgeInfo]? = nil, domain: String? = nil, veteranBadgeProcessed: String? = nil, moderationGroupIds: [String]? = nil, didProcessBadges: Bool? = nil, fromOfflineRestore: Bool? = nil, autoplayJobId: String? = nil, autoplayDelayMS: Int64? = nil, feedbackIds: [String]? = nil, logs: [CommentLogEntry]? = nil, groupIds: [String]? = nil, viewCount: Int64? = nil, requiresVerification: Bool? = nil, editKey: String? = nil, tosAcceptedAt: Date? = nil, botId: String? = nil) { self.id = id self.tenantId = tenantId self.urlId = urlId @@ -155,6 +156,7 @@ public struct FComment: Sendable, Codable, ParameterConvertible, Hashable { self.requiresVerification = requiresVerification self.editKey = editKey self.tosAcceptedAt = tosAcceptedAt + self.botId = botId } public enum CodingKeys: String, CodingKey, CaseIterable { @@ -230,6 +232,7 @@ public struct FComment: Sendable, Codable, ParameterConvertible, Hashable { case requiresVerification case editKey case tosAcceptedAt + case botId } // Encodable protocol methods @@ -308,6 +311,7 @@ public struct FComment: Sendable, Codable, ParameterConvertible, Hashable { try container.encodeIfPresent(requiresVerification, forKey: .requiresVerification) try container.encodeIfPresent(editKey, forKey: .editKey) try container.encodeIfPresent(tosAcceptedAt, forKey: .tosAcceptedAt) + try container.encodeIfPresent(botId, forKey: .botId) } } diff --git a/client/FastCommentsSwift/Models/FCommentMeta.swift b/client/FastCommentsSwift/Models/FCommentMeta.swift index 045b9ea..669328f 100644 --- a/client/FastCommentsSwift/Models/FCommentMeta.swift +++ b/client/FastCommentsSwift/Models/FCommentMeta.swift @@ -7,7 +7,7 @@ import Foundation -public struct FCommentMeta: Sendable, Codable, ParameterConvertible, Hashable { +public struct FCommentMeta: Sendable, Codable, Hashable { public var wpId: String? public var wpUserId: String? diff --git a/client/FastCommentsSwift/Models/FeedPost.swift b/client/FastCommentsSwift/Models/FeedPost.swift index 1e4071a..5b3ad81 100644 --- a/client/FastCommentsSwift/Models/FeedPost.swift +++ b/client/FastCommentsSwift/Models/FeedPost.swift @@ -7,7 +7,7 @@ import Foundation -public struct FeedPost: Sendable, Codable, ParameterConvertible, Hashable { +public struct FeedPost: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/FeedPostLink.swift b/client/FastCommentsSwift/Models/FeedPostLink.swift index 1ea6d20..ae168e5 100644 --- a/client/FastCommentsSwift/Models/FeedPostLink.swift +++ b/client/FastCommentsSwift/Models/FeedPostLink.swift @@ -7,7 +7,7 @@ import Foundation -public struct FeedPostLink: Sendable, Codable, ParameterConvertible, Hashable { +public struct FeedPostLink: Sendable, Codable, Hashable { public var text: String? public var title: String? diff --git a/client/FastCommentsSwift/Models/FeedPostMediaItem.swift b/client/FastCommentsSwift/Models/FeedPostMediaItem.swift index e78a76b..69f3f15 100644 --- a/client/FastCommentsSwift/Models/FeedPostMediaItem.swift +++ b/client/FastCommentsSwift/Models/FeedPostMediaItem.swift @@ -7,7 +7,7 @@ import Foundation -public struct FeedPostMediaItem: Sendable, Codable, ParameterConvertible, Hashable { +public struct FeedPostMediaItem: Sendable, Codable, Hashable { public var title: String? public var linkUrl: String? diff --git a/client/FastCommentsSwift/Models/FeedPostMediaItemAsset.swift b/client/FastCommentsSwift/Models/FeedPostMediaItemAsset.swift index 1d6f4f5..85f5aa1 100644 --- a/client/FastCommentsSwift/Models/FeedPostMediaItemAsset.swift +++ b/client/FastCommentsSwift/Models/FeedPostMediaItemAsset.swift @@ -7,7 +7,7 @@ import Foundation -public struct FeedPostMediaItemAsset: Sendable, Codable, ParameterConvertible, Hashable { +public struct FeedPostMediaItemAsset: Sendable, Codable, Hashable { public var w: Int public var h: Int diff --git a/client/FastCommentsSwift/Models/FeedPostStats.swift b/client/FastCommentsSwift/Models/FeedPostStats.swift index d6e3c25..5649f23 100644 --- a/client/FastCommentsSwift/Models/FeedPostStats.swift +++ b/client/FastCommentsSwift/Models/FeedPostStats.swift @@ -7,7 +7,7 @@ import Foundation -public struct FeedPostStats: Sendable, Codable, ParameterConvertible, Hashable { +public struct FeedPostStats: Sendable, Codable, Hashable { public var reacts: [String: Int]? public var commentCount: Int? diff --git a/client/FastCommentsSwift/Models/FeedPostsStatsResponse.swift b/client/FastCommentsSwift/Models/FeedPostsStatsResponse.swift index 8beb2b3..0545bb2 100644 --- a/client/FastCommentsSwift/Models/FeedPostsStatsResponse.swift +++ b/client/FastCommentsSwift/Models/FeedPostsStatsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct FeedPostsStatsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct FeedPostsStatsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var stats: [String: FeedPostStats] diff --git a/client/FastCommentsSwift/Models/FindCommentsByRangeItem.swift b/client/FastCommentsSwift/Models/FindCommentsByRangeItem.swift index 9bd6c83..0613794 100644 --- a/client/FastCommentsSwift/Models/FindCommentsByRangeItem.swift +++ b/client/FastCommentsSwift/Models/FindCommentsByRangeItem.swift @@ -7,7 +7,7 @@ import Foundation -public struct FindCommentsByRangeItem: Sendable, Codable, ParameterConvertible, Hashable { +public struct FindCommentsByRangeItem: Sendable, Codable, Hashable { public var comment: FComment? public var result: QuestionResult diff --git a/client/FastCommentsSwift/Models/FindCommentsByRangeResponse.swift b/client/FastCommentsSwift/Models/FindCommentsByRangeResponse.swift index 7440664..3c3fc50 100644 --- a/client/FastCommentsSwift/Models/FindCommentsByRangeResponse.swift +++ b/client/FastCommentsSwift/Models/FindCommentsByRangeResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct FindCommentsByRangeResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct FindCommentsByRangeResponse: Sendable, Codable, Hashable { public var results: [FindCommentsByRangeItem] public var createdAt: Date diff --git a/client/FastCommentsSwift/Models/FlagComment200Response.swift b/client/FastCommentsSwift/Models/FlagComment200Response.swift deleted file mode 100644 index 0cd3978..0000000 --- a/client/FastCommentsSwift/Models/FlagComment200Response.swift +++ /dev/null @@ -1,65 +0,0 @@ -// -// FlagComment200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct FlagComment200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var statusCode: Int? - public var status: APIStatus - public var code: String? - public var reason: String? - public var wasUnapproved: Bool? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(statusCode: Int? = nil, status: APIStatus, code: String? = nil, reason: String? = nil, wasUnapproved: Bool? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.statusCode = statusCode - self.status = status - self.code = code - self.reason = reason - self.wasUnapproved = wasUnapproved - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case statusCode - case status - case code - case reason - case wasUnapproved - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(statusCode, forKey: .statusCode) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(wasUnapproved, forKey: .wasUnapproved) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/FlagCommentPublic200Response.swift b/client/FastCommentsSwift/Models/FlagCommentPublic200Response.swift deleted file mode 100644 index 84903c6..0000000 --- a/client/FastCommentsSwift/Models/FlagCommentPublic200Response.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// FlagCommentPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct FlagCommentPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/FlagCommentResponse.swift b/client/FastCommentsSwift/Models/FlagCommentResponse.swift index 81908d1..c0a6494 100644 --- a/client/FastCommentsSwift/Models/FlagCommentResponse.swift +++ b/client/FastCommentsSwift/Models/FlagCommentResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct FlagCommentResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct FlagCommentResponse: Sendable, Codable, Hashable { public var statusCode: Int? public var status: APIStatus diff --git a/client/FastCommentsSwift/Models/GetAuditLogs200Response.swift b/client/FastCommentsSwift/Models/GetAuditLogs200Response.swift deleted file mode 100644 index af89b7b..0000000 --- a/client/FastCommentsSwift/Models/GetAuditLogs200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetAuditLogs200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetAuditLogs200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var auditLogs: [APIAuditLog]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, auditLogs: [APIAuditLog]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.auditLogs = auditLogs - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case auditLogs - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(auditLogs, forKey: .auditLogs) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetAuditLogsResponse.swift b/client/FastCommentsSwift/Models/GetAuditLogsResponse.swift index 471fc3d..897868d 100644 --- a/client/FastCommentsSwift/Models/GetAuditLogsResponse.swift +++ b/client/FastCommentsSwift/Models/GetAuditLogsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetAuditLogsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetAuditLogsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var auditLogs: [APIAuditLog] diff --git a/client/FastCommentsSwift/Models/GetBannedUsersCountResponse.swift b/client/FastCommentsSwift/Models/GetBannedUsersCountResponse.swift new file mode 100644 index 0000000..7df9ce6 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetBannedUsersCountResponse.swift @@ -0,0 +1,33 @@ +// +// GetBannedUsersCountResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetBannedUsersCountResponse: Sendable, Codable, Hashable { + + public var totalCount: Double + public var status: String + + public init(totalCount: Double, status: String) { + self.totalCount = totalCount + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case totalCount + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(totalCount, forKey: .totalCount) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetBannedUsersFromCommentResponse.swift b/client/FastCommentsSwift/Models/GetBannedUsersFromCommentResponse.swift new file mode 100644 index 0000000..adfb99f --- /dev/null +++ b/client/FastCommentsSwift/Models/GetBannedUsersFromCommentResponse.swift @@ -0,0 +1,41 @@ +// +// GetBannedUsersFromCommentResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetBannedUsersFromCommentResponse: Sendable, Codable, Hashable { + + public enum Code: String, Sendable, Codable, CaseIterable { + case notFound = "not-found" + case notLoggedIn = "not-logged-in" + } + public var bannedUsers: [APIBannedUserWithMultiMatchInfo] + public var code: Code? + public var status: APIStatus + + public init(bannedUsers: [APIBannedUserWithMultiMatchInfo], code: Code? = nil, status: APIStatus) { + self.bannedUsers = bannedUsers + self.code = code + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case bannedUsers + case code + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(bannedUsers, forKey: .bannedUsers) + try container.encodeIfPresent(code, forKey: .code) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetCachedNotificationCount200Response.swift b/client/FastCommentsSwift/Models/GetCachedNotificationCount200Response.swift deleted file mode 100644 index 4e1619d..0000000 --- a/client/FastCommentsSwift/Models/GetCachedNotificationCount200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetCachedNotificationCount200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetCachedNotificationCount200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var data: UserNotificationCount? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, data: UserNotificationCount? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.data = data - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case data - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(data, forKey: .data) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetCachedNotificationCountResponse.swift b/client/FastCommentsSwift/Models/GetCachedNotificationCountResponse.swift index ea6f07e..e5a50a1 100644 --- a/client/FastCommentsSwift/Models/GetCachedNotificationCountResponse.swift +++ b/client/FastCommentsSwift/Models/GetCachedNotificationCountResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetCachedNotificationCountResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetCachedNotificationCountResponse: Sendable, Codable, Hashable { public var status: APIStatus public var data: UserNotificationCount diff --git a/client/FastCommentsSwift/Models/GetComment200Response.swift b/client/FastCommentsSwift/Models/GetComment200Response.swift deleted file mode 100644 index 119e7cd..0000000 --- a/client/FastCommentsSwift/Models/GetComment200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetComment200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetComment200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var comment: APIComment? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, comment: APIComment? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.comment = comment - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case comment - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(comment, forKey: .comment) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetCommentBanStatusResponse.swift b/client/FastCommentsSwift/Models/GetCommentBanStatusResponse.swift new file mode 100644 index 0000000..d2e97b2 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetCommentBanStatusResponse.swift @@ -0,0 +1,37 @@ +// +// GetCommentBanStatusResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetCommentBanStatusResponse: Sendable, Codable, Hashable { + + public var status: String + public var emailDomain: String? + public var canIPBan: Bool? + + public init(status: String, emailDomain: String?, canIPBan: Bool?) { + self.status = status + self.emailDomain = emailDomain + self.canIPBan = canIPBan + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case emailDomain + case canIPBan + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(emailDomain, forKey: .emailDomain) + try container.encode(canIPBan, forKey: .canIPBan) + } +} + diff --git a/client/FastCommentsSwift/Models/GetCommentText200Response.swift b/client/FastCommentsSwift/Models/GetCommentText200Response.swift deleted file mode 100644 index c466432..0000000 --- a/client/FastCommentsSwift/Models/GetCommentText200Response.swift +++ /dev/null @@ -1,65 +0,0 @@ -// -// GetCommentText200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetCommentText200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var commentText: String? - public var sanitizedCommentText: String? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, commentText: String? = nil, sanitizedCommentText: String? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.commentText = commentText - self.sanitizedCommentText = sanitizedCommentText - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case commentText - case sanitizedCommentText - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(commentText, forKey: .commentText) - try container.encodeIfPresent(sanitizedCommentText, forKey: .sanitizedCommentText) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetCommentTextResponse.swift b/client/FastCommentsSwift/Models/GetCommentTextResponse.swift new file mode 100644 index 0000000..3757c72 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetCommentTextResponse.swift @@ -0,0 +1,33 @@ +// +// GetCommentTextResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetCommentTextResponse: Sendable, Codable, Hashable { + + public var comment: String? + public var status: APIStatus + + public init(comment: String? = nil, status: APIStatus) { + self.comment = comment + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case comment + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(comment, forKey: .comment) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetCommentVoteUserNames200Response.swift b/client/FastCommentsSwift/Models/GetCommentVoteUserNames200Response.swift deleted file mode 100644 index b21428a..0000000 --- a/client/FastCommentsSwift/Models/GetCommentVoteUserNames200Response.swift +++ /dev/null @@ -1,65 +0,0 @@ -// -// GetCommentVoteUserNames200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetCommentVoteUserNames200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var voteUserNames: [String]? - public var hasMore: Bool? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, voteUserNames: [String]? = nil, hasMore: Bool? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.voteUserNames = voteUserNames - self.hasMore = hasMore - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case voteUserNames - case hasMore - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(voteUserNames, forKey: .voteUserNames) - try container.encodeIfPresent(hasMore, forKey: .hasMore) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetCommentVoteUserNamesSuccessResponse.swift b/client/FastCommentsSwift/Models/GetCommentVoteUserNamesSuccessResponse.swift index 8eec6f0..d6fcddf 100644 --- a/client/FastCommentsSwift/Models/GetCommentVoteUserNamesSuccessResponse.swift +++ b/client/FastCommentsSwift/Models/GetCommentVoteUserNamesSuccessResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetCommentVoteUserNamesSuccessResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetCommentVoteUserNamesSuccessResponse: Sendable, Codable, Hashable { public var status: APIStatus public var voteUserNames: [String] diff --git a/client/FastCommentsSwift/Models/GetComments200Response.swift b/client/FastCommentsSwift/Models/GetComments200Response.swift deleted file mode 100644 index f899474..0000000 --- a/client/FastCommentsSwift/Models/GetComments200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetComments200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetComments200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var comments: [APIComment]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, comments: [APIComment]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.comments = comments - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case comments - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(comments, forKey: .comments) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetCommentsForUserResponse.swift b/client/FastCommentsSwift/Models/GetCommentsForUserResponse.swift new file mode 100644 index 0000000..735e68c --- /dev/null +++ b/client/FastCommentsSwift/Models/GetCommentsForUserResponse.swift @@ -0,0 +1,29 @@ +// +// GetCommentsForUserResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetCommentsForUserResponse: Sendable, Codable, Hashable { + + public var moderatingTenantIds: [String]? + + public init(moderatingTenantIds: [String]? = nil) { + self.moderatingTenantIds = moderatingTenantIds + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case moderatingTenantIds + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(moderatingTenantIds, forKey: .moderatingTenantIds) + } +} + diff --git a/client/FastCommentsSwift/Models/GetCommentsPublic200Response.swift b/client/FastCommentsSwift/Models/GetCommentsPublic200Response.swift deleted file mode 100644 index a09da01..0000000 --- a/client/FastCommentsSwift/Models/GetCommentsPublic200Response.swift +++ /dev/null @@ -1,150 +0,0 @@ -// -// GetCommentsPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetCommentsPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var statusCode: Int? - public var status: APIStatus - public var code: String? - public var reason: String? - public var translatedWarning: String? - public var comments: [PublicComment]? - public var user: UserSessionInfo? - public var urlIdClean: String? - public var lastGenDate: Int64? - public var includesPastPages: Bool? - public var isDemo: Bool? - public var commentCount: Int? - public var isSiteAdmin: Bool? - public var hasBillingIssue: Bool? - /** Construct a type with a set of properties K of type T */ - public var moduleData: [String: JSONValue]? - public var pageNumber: Int? - public var isWhiteLabeled: Bool? - public var isProd: Bool? - public var isCrawler: Bool? - public var notificationCount: Int? - public var hasMore: Bool? - public var isClosed: Bool? - public var presencePollState: Int? - public var customConfig: CustomConfigParameters? - public var urlIdWS: String? - public var userIdWS: String? - public var tenantIdWS: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - - public init(statusCode: Int? = nil, status: APIStatus, code: String? = nil, reason: String? = nil, translatedWarning: String? = nil, comments: [PublicComment]? = nil, user: UserSessionInfo? = nil, urlIdClean: String? = nil, lastGenDate: Int64? = nil, includesPastPages: Bool? = nil, isDemo: Bool? = nil, commentCount: Int? = nil, isSiteAdmin: Bool? = nil, hasBillingIssue: Bool? = nil, moduleData: [String: JSONValue]? = nil, pageNumber: Int? = nil, isWhiteLabeled: Bool? = nil, isProd: Bool? = nil, isCrawler: Bool? = nil, notificationCount: Int? = nil, hasMore: Bool? = nil, isClosed: Bool? = nil, presencePollState: Int? = nil, customConfig: CustomConfigParameters? = nil, urlIdWS: String? = nil, userIdWS: String? = nil, tenantIdWS: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil) { - self.statusCode = statusCode - self.status = status - self.code = code - self.reason = reason - self.translatedWarning = translatedWarning - self.comments = comments - self.user = user - self.urlIdClean = urlIdClean - self.lastGenDate = lastGenDate - self.includesPastPages = includesPastPages - self.isDemo = isDemo - self.commentCount = commentCount - self.isSiteAdmin = isSiteAdmin - self.hasBillingIssue = hasBillingIssue - self.moduleData = moduleData - self.pageNumber = pageNumber - self.isWhiteLabeled = isWhiteLabeled - self.isProd = isProd - self.isCrawler = isCrawler - self.notificationCount = notificationCount - self.hasMore = hasMore - self.isClosed = isClosed - self.presencePollState = presencePollState - self.customConfig = customConfig - self.urlIdWS = urlIdWS - self.userIdWS = userIdWS - self.tenantIdWS = tenantIdWS - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case statusCode - case status - case code - case reason - case translatedWarning - case comments - case user - case urlIdClean - case lastGenDate - case includesPastPages - case isDemo - case commentCount - case isSiteAdmin - case hasBillingIssue - case moduleData - case pageNumber - case isWhiteLabeled - case isProd - case isCrawler - case notificationCount - case hasMore - case isClosed - case presencePollState - case customConfig - case urlIdWS - case userIdWS - case tenantIdWS - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(statusCode, forKey: .statusCode) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(translatedWarning, forKey: .translatedWarning) - try container.encodeIfPresent(comments, forKey: .comments) - try container.encodeIfPresent(user, forKey: .user) - try container.encodeIfPresent(urlIdClean, forKey: .urlIdClean) - try container.encodeIfPresent(lastGenDate, forKey: .lastGenDate) - try container.encodeIfPresent(includesPastPages, forKey: .includesPastPages) - try container.encodeIfPresent(isDemo, forKey: .isDemo) - try container.encodeIfPresent(commentCount, forKey: .commentCount) - try container.encodeIfPresent(isSiteAdmin, forKey: .isSiteAdmin) - try container.encodeIfPresent(hasBillingIssue, forKey: .hasBillingIssue) - try container.encodeIfPresent(moduleData, forKey: .moduleData) - try container.encodeIfPresent(pageNumber, forKey: .pageNumber) - try container.encodeIfPresent(isWhiteLabeled, forKey: .isWhiteLabeled) - try container.encodeIfPresent(isProd, forKey: .isProd) - try container.encodeIfPresent(isCrawler, forKey: .isCrawler) - try container.encodeIfPresent(notificationCount, forKey: .notificationCount) - try container.encodeIfPresent(hasMore, forKey: .hasMore) - try container.encodeIfPresent(isClosed, forKey: .isClosed) - try container.encodeIfPresent(presencePollState, forKey: .presencePollState) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - try container.encodeIfPresent(urlIdWS, forKey: .urlIdWS) - try container.encodeIfPresent(userIdWS, forKey: .userIdWS) - try container.encodeIfPresent(tenantIdWS, forKey: .tenantIdWS) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - } -} - diff --git a/client/FastCommentsSwift/Models/GetCommentsResponsePublicComment.swift b/client/FastCommentsSwift/Models/GetCommentsResponsePublicComment.swift index e4265bb..6848ef3 100644 --- a/client/FastCommentsSwift/Models/GetCommentsResponsePublicComment.swift +++ b/client/FastCommentsSwift/Models/GetCommentsResponsePublicComment.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetCommentsResponsePublicComment: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetCommentsResponsePublicComment: Sendable, Codable, Hashable { public var statusCode: Int? public var status: String diff --git a/client/FastCommentsSwift/Models/GetCommentsResponseWithPresencePublicComment.swift b/client/FastCommentsSwift/Models/GetCommentsResponseWithPresencePublicComment.swift index 92cad3d..9b1ca07 100644 --- a/client/FastCommentsSwift/Models/GetCommentsResponseWithPresencePublicComment.swift +++ b/client/FastCommentsSwift/Models/GetCommentsResponseWithPresencePublicComment.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetCommentsResponseWithPresencePublicComment: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetCommentsResponseWithPresencePublicComment: Sendable, Codable, Hashable { public var statusCode: Int? public var status: String diff --git a/client/FastCommentsSwift/Models/GetDomainConfig200Response.swift b/client/FastCommentsSwift/Models/GetDomainConfigResponse.swift similarity index 89% rename from client/FastCommentsSwift/Models/GetDomainConfig200Response.swift rename to client/FastCommentsSwift/Models/GetDomainConfigResponse.swift index b12ee95..417c6fa 100644 --- a/client/FastCommentsSwift/Models/GetDomainConfig200Response.swift +++ b/client/FastCommentsSwift/Models/GetDomainConfigResponse.swift @@ -1,5 +1,5 @@ // -// GetDomainConfig200Response.swift +// GetDomainConfigResponse.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct GetDomainConfig200Response: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetDomainConfigResponse: Sendable, Codable, Hashable { public var configuration: JSONValue? public var status: JSONValue? diff --git a/client/FastCommentsSwift/Models/GetDomainConfigs200Response.swift b/client/FastCommentsSwift/Models/GetDomainConfigsResponse.swift similarity index 88% rename from client/FastCommentsSwift/Models/GetDomainConfigs200Response.swift rename to client/FastCommentsSwift/Models/GetDomainConfigsResponse.swift index 10b670c..6b377dc 100644 --- a/client/FastCommentsSwift/Models/GetDomainConfigs200Response.swift +++ b/client/FastCommentsSwift/Models/GetDomainConfigsResponse.swift @@ -1,5 +1,5 @@ // -// GetDomainConfigs200Response.swift +// GetDomainConfigsResponse.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct GetDomainConfigs200Response: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetDomainConfigsResponse: Sendable, Codable, Hashable { public var configurations: JSONValue? public var status: JSONValue? diff --git a/client/FastCommentsSwift/Models/GetDomainConfigs200ResponseAnyOf.swift b/client/FastCommentsSwift/Models/GetDomainConfigsResponseAnyOf.swift similarity index 83% rename from client/FastCommentsSwift/Models/GetDomainConfigs200ResponseAnyOf.swift rename to client/FastCommentsSwift/Models/GetDomainConfigsResponseAnyOf.swift index f60b29a..debda51 100644 --- a/client/FastCommentsSwift/Models/GetDomainConfigs200ResponseAnyOf.swift +++ b/client/FastCommentsSwift/Models/GetDomainConfigsResponseAnyOf.swift @@ -1,5 +1,5 @@ // -// GetDomainConfigs200ResponseAnyOf.swift +// GetDomainConfigsResponseAnyOf.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct GetDomainConfigs200ResponseAnyOf: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetDomainConfigsResponseAnyOf: Sendable, Codable, Hashable { public var configurations: JSONValue? public var status: JSONValue? diff --git a/client/FastCommentsSwift/Models/GetDomainConfigs200ResponseAnyOf1.swift b/client/FastCommentsSwift/Models/GetDomainConfigsResponseAnyOf1.swift similarity index 84% rename from client/FastCommentsSwift/Models/GetDomainConfigs200ResponseAnyOf1.swift rename to client/FastCommentsSwift/Models/GetDomainConfigsResponseAnyOf1.swift index 0f07b14..3e950ea 100644 --- a/client/FastCommentsSwift/Models/GetDomainConfigs200ResponseAnyOf1.swift +++ b/client/FastCommentsSwift/Models/GetDomainConfigsResponseAnyOf1.swift @@ -1,5 +1,5 @@ // -// GetDomainConfigs200ResponseAnyOf1.swift +// GetDomainConfigsResponseAnyOf1.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct GetDomainConfigs200ResponseAnyOf1: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetDomainConfigsResponseAnyOf1: Sendable, Codable, Hashable { public var reason: String public var code: String diff --git a/client/FastCommentsSwift/Models/GetEmailTemplate200Response.swift b/client/FastCommentsSwift/Models/GetEmailTemplate200Response.swift deleted file mode 100644 index 1f1dbe7..0000000 --- a/client/FastCommentsSwift/Models/GetEmailTemplate200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetEmailTemplate200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetEmailTemplate200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var emailTemplate: CustomEmailTemplate? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, emailTemplate: CustomEmailTemplate? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.emailTemplate = emailTemplate - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case emailTemplate - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(emailTemplate, forKey: .emailTemplate) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetEmailTemplateDefinitions200Response.swift b/client/FastCommentsSwift/Models/GetEmailTemplateDefinitions200Response.swift deleted file mode 100644 index 28b699f..0000000 --- a/client/FastCommentsSwift/Models/GetEmailTemplateDefinitions200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetEmailTemplateDefinitions200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetEmailTemplateDefinitions200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var definitions: [EmailTemplateDefinition]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, definitions: [EmailTemplateDefinition]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.definitions = definitions - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case definitions - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(definitions, forKey: .definitions) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetEmailTemplateDefinitionsResponse.swift b/client/FastCommentsSwift/Models/GetEmailTemplateDefinitionsResponse.swift index 756a96b..78c8b64 100644 --- a/client/FastCommentsSwift/Models/GetEmailTemplateDefinitionsResponse.swift +++ b/client/FastCommentsSwift/Models/GetEmailTemplateDefinitionsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetEmailTemplateDefinitionsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetEmailTemplateDefinitionsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var definitions: [EmailTemplateDefinition] diff --git a/client/FastCommentsSwift/Models/GetEmailTemplateRenderErrors200Response.swift b/client/FastCommentsSwift/Models/GetEmailTemplateRenderErrors200Response.swift deleted file mode 100644 index 77af3ac..0000000 --- a/client/FastCommentsSwift/Models/GetEmailTemplateRenderErrors200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetEmailTemplateRenderErrors200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetEmailTemplateRenderErrors200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var renderErrors: [EmailTemplateRenderErrorResponse]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, renderErrors: [EmailTemplateRenderErrorResponse]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.renderErrors = renderErrors - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case renderErrors - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(renderErrors, forKey: .renderErrors) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetEmailTemplateRenderErrorsResponse.swift b/client/FastCommentsSwift/Models/GetEmailTemplateRenderErrorsResponse.swift index 8b7a56e..e6f6498 100644 --- a/client/FastCommentsSwift/Models/GetEmailTemplateRenderErrorsResponse.swift +++ b/client/FastCommentsSwift/Models/GetEmailTemplateRenderErrorsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetEmailTemplateRenderErrorsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetEmailTemplateRenderErrorsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var renderErrors: [EmailTemplateRenderErrorResponse] diff --git a/client/FastCommentsSwift/Models/GetEmailTemplateResponse.swift b/client/FastCommentsSwift/Models/GetEmailTemplateResponse.swift index b015672..99576af 100644 --- a/client/FastCommentsSwift/Models/GetEmailTemplateResponse.swift +++ b/client/FastCommentsSwift/Models/GetEmailTemplateResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetEmailTemplateResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetEmailTemplateResponse: Sendable, Codable, Hashable { public var status: APIStatus public var emailTemplate: CustomEmailTemplate diff --git a/client/FastCommentsSwift/Models/GetEmailTemplates200Response.swift b/client/FastCommentsSwift/Models/GetEmailTemplates200Response.swift deleted file mode 100644 index 612be75..0000000 --- a/client/FastCommentsSwift/Models/GetEmailTemplates200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetEmailTemplates200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetEmailTemplates200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var emailTemplates: [CustomEmailTemplate]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, emailTemplates: [CustomEmailTemplate]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.emailTemplates = emailTemplates - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case emailTemplates - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(emailTemplates, forKey: .emailTemplates) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetEmailTemplatesResponse.swift b/client/FastCommentsSwift/Models/GetEmailTemplatesResponse.swift index a38abd8..77a6f70 100644 --- a/client/FastCommentsSwift/Models/GetEmailTemplatesResponse.swift +++ b/client/FastCommentsSwift/Models/GetEmailTemplatesResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetEmailTemplatesResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetEmailTemplatesResponse: Sendable, Codable, Hashable { public var status: APIStatus public var emailTemplates: [CustomEmailTemplate] diff --git a/client/FastCommentsSwift/Models/GetEventLog200Response.swift b/client/FastCommentsSwift/Models/GetEventLog200Response.swift deleted file mode 100644 index 65f7d41..0000000 --- a/client/FastCommentsSwift/Models/GetEventLog200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetEventLog200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetEventLog200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var events: [EventLogEntry]? - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(events: [EventLogEntry]? = nil, status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.events = events - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case events - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(events, forKey: .events) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetEventLogResponse.swift b/client/FastCommentsSwift/Models/GetEventLogResponse.swift index 793fb32..b86ffc2 100644 --- a/client/FastCommentsSwift/Models/GetEventLogResponse.swift +++ b/client/FastCommentsSwift/Models/GetEventLogResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetEventLogResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetEventLogResponse: Sendable, Codable, Hashable { public var events: [EventLogEntry] public var status: APIStatus diff --git a/client/FastCommentsSwift/Models/GetFeedPosts200Response.swift b/client/FastCommentsSwift/Models/GetFeedPosts200Response.swift deleted file mode 100644 index f200cfa..0000000 --- a/client/FastCommentsSwift/Models/GetFeedPosts200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetFeedPosts200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetFeedPosts200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var feedPosts: [FeedPost]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, feedPosts: [FeedPost]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.feedPosts = feedPosts - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case feedPosts - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(feedPosts, forKey: .feedPosts) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetFeedPostsPublic200Response.swift b/client/FastCommentsSwift/Models/GetFeedPostsPublic200Response.swift deleted file mode 100644 index 6029a5b..0000000 --- a/client/FastCommentsSwift/Models/GetFeedPostsPublic200Response.swift +++ /dev/null @@ -1,81 +0,0 @@ -// -// GetFeedPostsPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetFeedPostsPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var myReacts: [String: [String: Bool]]? - public var status: APIStatus - public var feedPosts: [FeedPost]? - public var user: UserSessionInfo? - public var urlIdWS: String? - public var userIdWS: String? - public var tenantIdWS: String? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(myReacts: [String: [String: Bool]]? = nil, status: APIStatus, feedPosts: [FeedPost]? = nil, user: UserSessionInfo? = nil, urlIdWS: String? = nil, userIdWS: String? = nil, tenantIdWS: String? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.myReacts = myReacts - self.status = status - self.feedPosts = feedPosts - self.user = user - self.urlIdWS = urlIdWS - self.userIdWS = userIdWS - self.tenantIdWS = tenantIdWS - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case myReacts - case status - case feedPosts - case user - case urlIdWS - case userIdWS - case tenantIdWS - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(myReacts, forKey: .myReacts) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(feedPosts, forKey: .feedPosts) - try container.encodeIfPresent(user, forKey: .user) - try container.encodeIfPresent(urlIdWS, forKey: .urlIdWS) - try container.encodeIfPresent(userIdWS, forKey: .userIdWS) - try container.encodeIfPresent(tenantIdWS, forKey: .tenantIdWS) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetFeedPostsResponse.swift b/client/FastCommentsSwift/Models/GetFeedPostsResponse.swift index c3731ce..8b5544c 100644 --- a/client/FastCommentsSwift/Models/GetFeedPostsResponse.swift +++ b/client/FastCommentsSwift/Models/GetFeedPostsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetFeedPostsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetFeedPostsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var feedPosts: [FeedPost] diff --git a/client/FastCommentsSwift/Models/GetFeedPostsStats200Response.swift b/client/FastCommentsSwift/Models/GetFeedPostsStats200Response.swift deleted file mode 100644 index 0ee5d25..0000000 --- a/client/FastCommentsSwift/Models/GetFeedPostsStats200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetFeedPostsStats200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetFeedPostsStats200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var stats: [String: FeedPostStats]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, stats: [String: FeedPostStats]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.stats = stats - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case stats - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(stats, forKey: .stats) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetGifsSearchResponse.swift b/client/FastCommentsSwift/Models/GetGifsSearchResponse.swift new file mode 100644 index 0000000..a4fe714 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetGifsSearchResponse.swift @@ -0,0 +1,37 @@ +// +// GetGifsSearchResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetGifsSearchResponse: Sendable, Codable, Hashable { + + public var images: [[GifSearchResponseImagesInnerInner]]? + public var status: APIStatus + public var code: String? + + public init(images: [[GifSearchResponseImagesInnerInner]]? = nil, status: APIStatus, code: String? = nil) { + self.images = images + self.status = status + self.code = code + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case images + case status + case code + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(images, forKey: .images) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(code, forKey: .code) + } +} + diff --git a/client/FastCommentsSwift/Models/GetGifsTrendingResponse.swift b/client/FastCommentsSwift/Models/GetGifsTrendingResponse.swift new file mode 100644 index 0000000..73f12cd --- /dev/null +++ b/client/FastCommentsSwift/Models/GetGifsTrendingResponse.swift @@ -0,0 +1,37 @@ +// +// GetGifsTrendingResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetGifsTrendingResponse: Sendable, Codable, Hashable { + + public var images: [[GifSearchResponseImagesInnerInner]]? + public var status: APIStatus + public var code: String? + + public init(images: [[GifSearchResponseImagesInnerInner]]? = nil, status: APIStatus, code: String? = nil) { + self.images = images + self.status = status + self.code = code + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case images + case status + case code + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(images, forKey: .images) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(code, forKey: .code) + } +} + diff --git a/client/FastCommentsSwift/Models/GetHashTags200Response.swift b/client/FastCommentsSwift/Models/GetHashTags200Response.swift deleted file mode 100644 index 1007d03..0000000 --- a/client/FastCommentsSwift/Models/GetHashTags200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetHashTags200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetHashTags200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var hashTags: [TenantHashTag]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, hashTags: [TenantHashTag]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.hashTags = hashTags - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case hashTags - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(hashTags, forKey: .hashTags) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetHashTagsResponse.swift b/client/FastCommentsSwift/Models/GetHashTagsResponse.swift index ae35748..947f74c 100644 --- a/client/FastCommentsSwift/Models/GetHashTagsResponse.swift +++ b/client/FastCommentsSwift/Models/GetHashTagsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetHashTagsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetHashTagsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var hashTags: [TenantHashTag] diff --git a/client/FastCommentsSwift/Models/GetModerator200Response.swift b/client/FastCommentsSwift/Models/GetModerator200Response.swift deleted file mode 100644 index 2ba8554..0000000 --- a/client/FastCommentsSwift/Models/GetModerator200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetModerator200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetModerator200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var moderator: Moderator? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, moderator: Moderator? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.moderator = moderator - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case moderator - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(moderator, forKey: .moderator) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetModeratorResponse.swift b/client/FastCommentsSwift/Models/GetModeratorResponse.swift index b722b23..1ed3966 100644 --- a/client/FastCommentsSwift/Models/GetModeratorResponse.swift +++ b/client/FastCommentsSwift/Models/GetModeratorResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetModeratorResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetModeratorResponse: Sendable, Codable, Hashable { public var status: APIStatus public var moderator: Moderator diff --git a/client/FastCommentsSwift/Models/GetModerators200Response.swift b/client/FastCommentsSwift/Models/GetModerators200Response.swift deleted file mode 100644 index 937e4b9..0000000 --- a/client/FastCommentsSwift/Models/GetModerators200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetModerators200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetModerators200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var moderators: [Moderator]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, moderators: [Moderator]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.moderators = moderators - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case moderators - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(moderators, forKey: .moderators) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetModeratorsResponse.swift b/client/FastCommentsSwift/Models/GetModeratorsResponse.swift index df46624..3f60db6 100644 --- a/client/FastCommentsSwift/Models/GetModeratorsResponse.swift +++ b/client/FastCommentsSwift/Models/GetModeratorsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetModeratorsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetModeratorsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var moderators: [Moderator] diff --git a/client/FastCommentsSwift/Models/GetMyNotificationsResponse.swift b/client/FastCommentsSwift/Models/GetMyNotificationsResponse.swift index e5cb3db..2b6240d 100644 --- a/client/FastCommentsSwift/Models/GetMyNotificationsResponse.swift +++ b/client/FastCommentsSwift/Models/GetMyNotificationsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetMyNotificationsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetMyNotificationsResponse: Sendable, Codable, Hashable { /** Construct a type with a set of properties K of type T */ public var translations: [String: String]? diff --git a/client/FastCommentsSwift/Models/GetNotificationCount200Response.swift b/client/FastCommentsSwift/Models/GetNotificationCount200Response.swift deleted file mode 100644 index b196945..0000000 --- a/client/FastCommentsSwift/Models/GetNotificationCount200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetNotificationCount200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetNotificationCount200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var count: Double? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, count: Double? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.count = count - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case count - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(count, forKey: .count) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetNotificationCountResponse.swift b/client/FastCommentsSwift/Models/GetNotificationCountResponse.swift index 5e4ae8d..03ae3d5 100644 --- a/client/FastCommentsSwift/Models/GetNotificationCountResponse.swift +++ b/client/FastCommentsSwift/Models/GetNotificationCountResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetNotificationCountResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetNotificationCountResponse: Sendable, Codable, Hashable { public var status: APIStatus public var count: Double diff --git a/client/FastCommentsSwift/Models/GetNotifications200Response.swift b/client/FastCommentsSwift/Models/GetNotifications200Response.swift deleted file mode 100644 index 2701df2..0000000 --- a/client/FastCommentsSwift/Models/GetNotifications200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetNotifications200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetNotifications200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var notifications: [UserNotification]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, notifications: [UserNotification]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.notifications = notifications - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case notifications - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(notifications, forKey: .notifications) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetNotificationsResponse.swift b/client/FastCommentsSwift/Models/GetNotificationsResponse.swift index 48f953c..acfcaeb 100644 --- a/client/FastCommentsSwift/Models/GetNotificationsResponse.swift +++ b/client/FastCommentsSwift/Models/GetNotificationsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetNotificationsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetNotificationsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var notifications: [UserNotification] diff --git a/client/FastCommentsSwift/Models/GetPageByURLIdAPIResponse.swift b/client/FastCommentsSwift/Models/GetPageByURLIdAPIResponse.swift index ebcba19..a83657a 100644 --- a/client/FastCommentsSwift/Models/GetPageByURLIdAPIResponse.swift +++ b/client/FastCommentsSwift/Models/GetPageByURLIdAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetPageByURLIdAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetPageByURLIdAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/GetPagesAPIResponse.swift b/client/FastCommentsSwift/Models/GetPagesAPIResponse.swift index 1d499b2..9615483 100644 --- a/client/FastCommentsSwift/Models/GetPagesAPIResponse.swift +++ b/client/FastCommentsSwift/Models/GetPagesAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetPagesAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetPagesAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/GetPendingWebhookEventCount200Response.swift b/client/FastCommentsSwift/Models/GetPendingWebhookEventCount200Response.swift deleted file mode 100644 index e9dcfd9..0000000 --- a/client/FastCommentsSwift/Models/GetPendingWebhookEventCount200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetPendingWebhookEventCount200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetPendingWebhookEventCount200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var count: Double? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, count: Double? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.count = count - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case count - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(count, forKey: .count) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetPendingWebhookEventCountResponse.swift b/client/FastCommentsSwift/Models/GetPendingWebhookEventCountResponse.swift index 25aafb9..dfadad8 100644 --- a/client/FastCommentsSwift/Models/GetPendingWebhookEventCountResponse.swift +++ b/client/FastCommentsSwift/Models/GetPendingWebhookEventCountResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetPendingWebhookEventCountResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetPendingWebhookEventCountResponse: Sendable, Codable, Hashable { public var status: APIStatus public var count: Double diff --git a/client/FastCommentsSwift/Models/GetPendingWebhookEvents200Response.swift b/client/FastCommentsSwift/Models/GetPendingWebhookEvents200Response.swift deleted file mode 100644 index d732b59..0000000 --- a/client/FastCommentsSwift/Models/GetPendingWebhookEvents200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetPendingWebhookEvents200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetPendingWebhookEvents200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var pendingWebhookEvents: [PendingCommentToSyncOutbound]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, pendingWebhookEvents: [PendingCommentToSyncOutbound]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.pendingWebhookEvents = pendingWebhookEvents - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case pendingWebhookEvents - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(pendingWebhookEvents, forKey: .pendingWebhookEvents) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetPendingWebhookEventsResponse.swift b/client/FastCommentsSwift/Models/GetPendingWebhookEventsResponse.swift index 291d584..8699954 100644 --- a/client/FastCommentsSwift/Models/GetPendingWebhookEventsResponse.swift +++ b/client/FastCommentsSwift/Models/GetPendingWebhookEventsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetPendingWebhookEventsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetPendingWebhookEventsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var pendingWebhookEvents: [PendingCommentToSyncOutbound] diff --git a/client/FastCommentsSwift/Models/GetPublicFeedPostsResponse.swift b/client/FastCommentsSwift/Models/GetPublicFeedPostsResponse.swift index 0755c99..58040f8 100644 --- a/client/FastCommentsSwift/Models/GetPublicFeedPostsResponse.swift +++ b/client/FastCommentsSwift/Models/GetPublicFeedPostsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetPublicFeedPostsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetPublicFeedPostsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var feedPosts: [FeedPost] diff --git a/client/FastCommentsSwift/Models/GetPublicPagesResponse.swift b/client/FastCommentsSwift/Models/GetPublicPagesResponse.swift new file mode 100644 index 0000000..01ea6f7 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetPublicPagesResponse.swift @@ -0,0 +1,37 @@ +// +// GetPublicPagesResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetPublicPagesResponse: Sendable, Codable, Hashable { + + public var nextCursor: String? + public var pages: [PublicPage] + public var status: APIStatus + + public init(nextCursor: String?, pages: [PublicPage], status: APIStatus) { + self.nextCursor = nextCursor + self.pages = pages + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case nextCursor + case pages + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(nextCursor, forKey: .nextCursor) + try container.encode(pages, forKey: .pages) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetQuestionConfig200Response.swift b/client/FastCommentsSwift/Models/GetQuestionConfig200Response.swift deleted file mode 100644 index 59266c5..0000000 --- a/client/FastCommentsSwift/Models/GetQuestionConfig200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetQuestionConfig200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetQuestionConfig200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var questionConfig: QuestionConfig? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, questionConfig: QuestionConfig? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.questionConfig = questionConfig - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case questionConfig - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(questionConfig, forKey: .questionConfig) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetQuestionConfigResponse.swift b/client/FastCommentsSwift/Models/GetQuestionConfigResponse.swift index 9e4522a..7793377 100644 --- a/client/FastCommentsSwift/Models/GetQuestionConfigResponse.swift +++ b/client/FastCommentsSwift/Models/GetQuestionConfigResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetQuestionConfigResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetQuestionConfigResponse: Sendable, Codable, Hashable { public var status: APIStatus public var questionConfig: QuestionConfig diff --git a/client/FastCommentsSwift/Models/GetQuestionConfigs200Response.swift b/client/FastCommentsSwift/Models/GetQuestionConfigs200Response.swift deleted file mode 100644 index a823076..0000000 --- a/client/FastCommentsSwift/Models/GetQuestionConfigs200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetQuestionConfigs200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetQuestionConfigs200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var questionConfigs: [QuestionConfig]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, questionConfigs: [QuestionConfig]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.questionConfigs = questionConfigs - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case questionConfigs - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(questionConfigs, forKey: .questionConfigs) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetQuestionConfigsResponse.swift b/client/FastCommentsSwift/Models/GetQuestionConfigsResponse.swift index 3da52b4..24ffd1f 100644 --- a/client/FastCommentsSwift/Models/GetQuestionConfigsResponse.swift +++ b/client/FastCommentsSwift/Models/GetQuestionConfigsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetQuestionConfigsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetQuestionConfigsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var questionConfigs: [QuestionConfig] diff --git a/client/FastCommentsSwift/Models/GetQuestionResult200Response.swift b/client/FastCommentsSwift/Models/GetQuestionResult200Response.swift deleted file mode 100644 index ba8d312..0000000 --- a/client/FastCommentsSwift/Models/GetQuestionResult200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetQuestionResult200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetQuestionResult200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var questionResult: QuestionResult? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, questionResult: QuestionResult? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.questionResult = questionResult - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case questionResult - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(questionResult, forKey: .questionResult) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetQuestionResultResponse.swift b/client/FastCommentsSwift/Models/GetQuestionResultResponse.swift index e83cf00..917a917 100644 --- a/client/FastCommentsSwift/Models/GetQuestionResultResponse.swift +++ b/client/FastCommentsSwift/Models/GetQuestionResultResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetQuestionResultResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetQuestionResultResponse: Sendable, Codable, Hashable { public var status: APIStatus public var questionResult: QuestionResult diff --git a/client/FastCommentsSwift/Models/GetQuestionResults200Response.swift b/client/FastCommentsSwift/Models/GetQuestionResults200Response.swift deleted file mode 100644 index cbd6290..0000000 --- a/client/FastCommentsSwift/Models/GetQuestionResults200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetQuestionResults200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetQuestionResults200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var questionResults: [QuestionResult]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, questionResults: [QuestionResult]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.questionResults = questionResults - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case questionResults - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(questionResults, forKey: .questionResults) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetQuestionResultsResponse.swift b/client/FastCommentsSwift/Models/GetQuestionResultsResponse.swift index b2a548b..30a4936 100644 --- a/client/FastCommentsSwift/Models/GetQuestionResultsResponse.swift +++ b/client/FastCommentsSwift/Models/GetQuestionResultsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetQuestionResultsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetQuestionResultsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var questionResults: [QuestionResult] diff --git a/client/FastCommentsSwift/Models/GetSSOUserByEmailAPIResponse.swift b/client/FastCommentsSwift/Models/GetSSOUserByEmailAPIResponse.swift index 2ebb659..0c9d4f1 100644 --- a/client/FastCommentsSwift/Models/GetSSOUserByEmailAPIResponse.swift +++ b/client/FastCommentsSwift/Models/GetSSOUserByEmailAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetSSOUserByEmailAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetSSOUserByEmailAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/GetSSOUserByIdAPIResponse.swift b/client/FastCommentsSwift/Models/GetSSOUserByIdAPIResponse.swift index 43af857..d4ac8b0 100644 --- a/client/FastCommentsSwift/Models/GetSSOUserByIdAPIResponse.swift +++ b/client/FastCommentsSwift/Models/GetSSOUserByIdAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetSSOUserByIdAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetSSOUserByIdAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/GetSSOUsers200Response.swift b/client/FastCommentsSwift/Models/GetSSOUsersResponse.swift similarity index 84% rename from client/FastCommentsSwift/Models/GetSSOUsers200Response.swift rename to client/FastCommentsSwift/Models/GetSSOUsersResponse.swift index 7b54742..97117f8 100644 --- a/client/FastCommentsSwift/Models/GetSSOUsers200Response.swift +++ b/client/FastCommentsSwift/Models/GetSSOUsersResponse.swift @@ -1,5 +1,5 @@ // -// GetSSOUsers200Response.swift +// GetSSOUsersResponse.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct GetSSOUsers200Response: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetSSOUsersResponse: Sendable, Codable, Hashable { public var users: [APISSOUser] public var status: String diff --git a/client/FastCommentsSwift/Models/GetSubscriptionsAPIResponse.swift b/client/FastCommentsSwift/Models/GetSubscriptionsAPIResponse.swift index dcb9fa8..1fdbfd3 100644 --- a/client/FastCommentsSwift/Models/GetSubscriptionsAPIResponse.swift +++ b/client/FastCommentsSwift/Models/GetSubscriptionsAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetSubscriptionsAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetSubscriptionsAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/GetTenant200Response.swift b/client/FastCommentsSwift/Models/GetTenant200Response.swift deleted file mode 100644 index 5cf87e5..0000000 --- a/client/FastCommentsSwift/Models/GetTenant200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetTenant200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTenant200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenant: APITenant? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenant: APITenant? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenant = tenant - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenant - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenant, forKey: .tenant) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTenantDailyUsages200Response.swift b/client/FastCommentsSwift/Models/GetTenantDailyUsages200Response.swift deleted file mode 100644 index c17fc3e..0000000 --- a/client/FastCommentsSwift/Models/GetTenantDailyUsages200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetTenantDailyUsages200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTenantDailyUsages200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenantDailyUsages: [APITenantDailyUsage]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenantDailyUsages: [APITenantDailyUsage]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenantDailyUsages = tenantDailyUsages - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenantDailyUsages - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenantDailyUsages, forKey: .tenantDailyUsages) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTenantDailyUsagesResponse.swift b/client/FastCommentsSwift/Models/GetTenantDailyUsagesResponse.swift index f266b08..83855e4 100644 --- a/client/FastCommentsSwift/Models/GetTenantDailyUsagesResponse.swift +++ b/client/FastCommentsSwift/Models/GetTenantDailyUsagesResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTenantDailyUsagesResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTenantDailyUsagesResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenantDailyUsages: [APITenantDailyUsage] diff --git a/client/FastCommentsSwift/Models/GetTenantManualBadgesResponse.swift b/client/FastCommentsSwift/Models/GetTenantManualBadgesResponse.swift new file mode 100644 index 0000000..c5b0230 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetTenantManualBadgesResponse.swift @@ -0,0 +1,33 @@ +// +// GetTenantManualBadgesResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetTenantManualBadgesResponse: Sendable, Codable, Hashable { + + public var badges: [TenantBadge] + public var status: APIStatus + + public init(badges: [TenantBadge], status: APIStatus) { + self.badges = badges + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case badges + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(badges, forKey: .badges) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetTenantPackage200Response.swift b/client/FastCommentsSwift/Models/GetTenantPackage200Response.swift deleted file mode 100644 index 0599016..0000000 --- a/client/FastCommentsSwift/Models/GetTenantPackage200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetTenantPackage200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTenantPackage200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenantPackage: TenantPackage? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenantPackage: TenantPackage? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenantPackage = tenantPackage - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenantPackage - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenantPackage, forKey: .tenantPackage) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTenantPackageResponse.swift b/client/FastCommentsSwift/Models/GetTenantPackageResponse.swift index b3ac51e..ffbe7a7 100644 --- a/client/FastCommentsSwift/Models/GetTenantPackageResponse.swift +++ b/client/FastCommentsSwift/Models/GetTenantPackageResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTenantPackageResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTenantPackageResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenantPackage: TenantPackage diff --git a/client/FastCommentsSwift/Models/GetTenantPackages200Response.swift b/client/FastCommentsSwift/Models/GetTenantPackages200Response.swift deleted file mode 100644 index 47fd3ea..0000000 --- a/client/FastCommentsSwift/Models/GetTenantPackages200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetTenantPackages200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTenantPackages200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenantPackages: [TenantPackage]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenantPackages: [TenantPackage]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenantPackages = tenantPackages - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenantPackages - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenantPackages, forKey: .tenantPackages) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTenantPackagesResponse.swift b/client/FastCommentsSwift/Models/GetTenantPackagesResponse.swift index 1c2a470..82f2b05 100644 --- a/client/FastCommentsSwift/Models/GetTenantPackagesResponse.swift +++ b/client/FastCommentsSwift/Models/GetTenantPackagesResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTenantPackagesResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTenantPackagesResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenantPackages: [TenantPackage] diff --git a/client/FastCommentsSwift/Models/GetTenantResponse.swift b/client/FastCommentsSwift/Models/GetTenantResponse.swift index 428277d..04b9cd5 100644 --- a/client/FastCommentsSwift/Models/GetTenantResponse.swift +++ b/client/FastCommentsSwift/Models/GetTenantResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTenantResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTenantResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenant: APITenant diff --git a/client/FastCommentsSwift/Models/GetTenantUser200Response.swift b/client/FastCommentsSwift/Models/GetTenantUser200Response.swift deleted file mode 100644 index ee6229b..0000000 --- a/client/FastCommentsSwift/Models/GetTenantUser200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetTenantUser200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTenantUser200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenantUser: User? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenantUser: User? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenantUser = tenantUser - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenantUser - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenantUser, forKey: .tenantUser) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTenantUserResponse.swift b/client/FastCommentsSwift/Models/GetTenantUserResponse.swift index 5ee0ffa..b16c7b9 100644 --- a/client/FastCommentsSwift/Models/GetTenantUserResponse.swift +++ b/client/FastCommentsSwift/Models/GetTenantUserResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTenantUserResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTenantUserResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenantUser: User diff --git a/client/FastCommentsSwift/Models/GetTenantUsers200Response.swift b/client/FastCommentsSwift/Models/GetTenantUsers200Response.swift deleted file mode 100644 index 7ff0d89..0000000 --- a/client/FastCommentsSwift/Models/GetTenantUsers200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetTenantUsers200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTenantUsers200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenantUsers: [User]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenantUsers: [User]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenantUsers = tenantUsers - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenantUsers - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenantUsers, forKey: .tenantUsers) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTenantUsersResponse.swift b/client/FastCommentsSwift/Models/GetTenantUsersResponse.swift index bcdebb0..8008746 100644 --- a/client/FastCommentsSwift/Models/GetTenantUsersResponse.swift +++ b/client/FastCommentsSwift/Models/GetTenantUsersResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTenantUsersResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTenantUsersResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenantUsers: [User] diff --git a/client/FastCommentsSwift/Models/GetTenants200Response.swift b/client/FastCommentsSwift/Models/GetTenants200Response.swift deleted file mode 100644 index be27fe5..0000000 --- a/client/FastCommentsSwift/Models/GetTenants200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetTenants200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTenants200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tenants: [APITenant]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tenants: [APITenant]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tenants = tenants - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tenants - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tenants, forKey: .tenants) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTenantsResponse.swift b/client/FastCommentsSwift/Models/GetTenantsResponse.swift index 5ecd6e0..cf4fcef 100644 --- a/client/FastCommentsSwift/Models/GetTenantsResponse.swift +++ b/client/FastCommentsSwift/Models/GetTenantsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTenantsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTenantsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tenants: [APITenant] diff --git a/client/FastCommentsSwift/Models/GetTicket200Response.swift b/client/FastCommentsSwift/Models/GetTicket200Response.swift deleted file mode 100644 index f76317e..0000000 --- a/client/FastCommentsSwift/Models/GetTicket200Response.swift +++ /dev/null @@ -1,65 +0,0 @@ -// -// GetTicket200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTicket200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var ticket: APITicketDetail? - public var availableStates: [Double]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, ticket: APITicketDetail? = nil, availableStates: [Double]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.ticket = ticket - self.availableStates = availableStates - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case ticket - case availableStates - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(ticket, forKey: .ticket) - try container.encodeIfPresent(availableStates, forKey: .availableStates) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTicketResponse.swift b/client/FastCommentsSwift/Models/GetTicketResponse.swift index 9284f30..5ccc554 100644 --- a/client/FastCommentsSwift/Models/GetTicketResponse.swift +++ b/client/FastCommentsSwift/Models/GetTicketResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTicketResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTicketResponse: Sendable, Codable, Hashable { public var status: APIStatus public var ticket: APITicketDetail diff --git a/client/FastCommentsSwift/Models/GetTickets200Response.swift b/client/FastCommentsSwift/Models/GetTickets200Response.swift deleted file mode 100644 index ce1c5d8..0000000 --- a/client/FastCommentsSwift/Models/GetTickets200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetTickets200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetTickets200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var tickets: [APITicket]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, tickets: [APITicket]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.tickets = tickets - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case tickets - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(tickets, forKey: .tickets) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetTicketsResponse.swift b/client/FastCommentsSwift/Models/GetTicketsResponse.swift index dd6093a..37bc8fe 100644 --- a/client/FastCommentsSwift/Models/GetTicketsResponse.swift +++ b/client/FastCommentsSwift/Models/GetTicketsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetTicketsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetTicketsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var tickets: [APITicket] diff --git a/client/FastCommentsSwift/Models/GetTranslationsResponse.swift b/client/FastCommentsSwift/Models/GetTranslationsResponse.swift new file mode 100644 index 0000000..a117312 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetTranslationsResponse.swift @@ -0,0 +1,34 @@ +// +// GetTranslationsResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetTranslationsResponse: Sendable, Codable, Hashable { + + /** Construct a type with a set of properties K of type T */ + public var translations: [String: String] + public var status: APIStatus + + public init(translations: [String: String], status: APIStatus) { + self.translations = translations + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case translations + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(translations, forKey: .translations) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetUser200Response.swift b/client/FastCommentsSwift/Models/GetUser200Response.swift deleted file mode 100644 index 91f5eda..0000000 --- a/client/FastCommentsSwift/Models/GetUser200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetUser200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUser200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var user: User? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, user: User? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.user = user - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case user - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(user, forKey: .user) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserBadge200Response.swift b/client/FastCommentsSwift/Models/GetUserBadge200Response.swift deleted file mode 100644 index 49c1fa9..0000000 --- a/client/FastCommentsSwift/Models/GetUserBadge200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetUserBadge200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUserBadge200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var userBadge: UserBadge? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, userBadge: UserBadge? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.userBadge = userBadge - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case userBadge - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(userBadge, forKey: .userBadge) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserBadgeProgressById200Response.swift b/client/FastCommentsSwift/Models/GetUserBadgeProgressById200Response.swift deleted file mode 100644 index 5791a30..0000000 --- a/client/FastCommentsSwift/Models/GetUserBadgeProgressById200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetUserBadgeProgressById200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUserBadgeProgressById200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var userBadgeProgress: UserBadgeProgress? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, userBadgeProgress: UserBadgeProgress? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.userBadgeProgress = userBadgeProgress - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case userBadgeProgress - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(userBadgeProgress, forKey: .userBadgeProgress) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserBadgeProgressList200Response.swift b/client/FastCommentsSwift/Models/GetUserBadgeProgressList200Response.swift deleted file mode 100644 index 63e0c60..0000000 --- a/client/FastCommentsSwift/Models/GetUserBadgeProgressList200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetUserBadgeProgressList200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUserBadgeProgressList200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var userBadgeProgresses: [UserBadgeProgress]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, userBadgeProgresses: [UserBadgeProgress]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.userBadgeProgresses = userBadgeProgresses - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case userBadgeProgresses - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(userBadgeProgresses, forKey: .userBadgeProgresses) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserBadges200Response.swift b/client/FastCommentsSwift/Models/GetUserBadges200Response.swift deleted file mode 100644 index a203afe..0000000 --- a/client/FastCommentsSwift/Models/GetUserBadges200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetUserBadges200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUserBadges200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var userBadges: [UserBadge]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, userBadges: [UserBadge]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.userBadges = userBadges - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case userBadges - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(userBadges, forKey: .userBadges) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserInternalProfileResponse.swift b/client/FastCommentsSwift/Models/GetUserInternalProfileResponse.swift new file mode 100644 index 0000000..f523fe3 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetUserInternalProfileResponse.swift @@ -0,0 +1,33 @@ +// +// GetUserInternalProfileResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetUserInternalProfileResponse: Sendable, Codable, Hashable { + + public var profile: GetUserInternalProfileResponseProfile + public var status: APIStatus + + public init(profile: GetUserInternalProfileResponseProfile, status: APIStatus) { + self.profile = profile + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case profile + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(profile, forKey: .profile) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetUserInternalProfileResponseProfile.swift b/client/FastCommentsSwift/Models/GetUserInternalProfileResponseProfile.swift new file mode 100644 index 0000000..aed7e4a --- /dev/null +++ b/client/FastCommentsSwift/Models/GetUserInternalProfileResponseProfile.swift @@ -0,0 +1,93 @@ +// +// GetUserInternalProfileResponseProfile.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetUserInternalProfileResponseProfile: Sendable, Codable, Hashable { + + public var commenterName: String? + public var firstCommentDate: Date? + public var ipHash: String? + public var countryFlag: String? + public var countryCode: String? + public var websiteUrl: String? + public var bio: String? + public var karma: Double? + public var locale: String? + public var verified: Bool? + public var avatarSrc: String? + public var displayName: String? + public var username: String? + public var commenterEmail: String? + public var email: String? + public var anonUserId: String? + public var userId: String? + + public init(commenterName: String? = nil, firstCommentDate: Date? = nil, ipHash: String? = nil, countryFlag: String? = nil, countryCode: String? = nil, websiteUrl: String? = nil, bio: String? = nil, karma: Double? = nil, locale: String? = nil, verified: Bool? = nil, avatarSrc: String? = nil, displayName: String? = nil, username: String? = nil, commenterEmail: String? = nil, email: String? = nil, anonUserId: String? = nil, userId: String? = nil) { + self.commenterName = commenterName + self.firstCommentDate = firstCommentDate + self.ipHash = ipHash + self.countryFlag = countryFlag + self.countryCode = countryCode + self.websiteUrl = websiteUrl + self.bio = bio + self.karma = karma + self.locale = locale + self.verified = verified + self.avatarSrc = avatarSrc + self.displayName = displayName + self.username = username + self.commenterEmail = commenterEmail + self.email = email + self.anonUserId = anonUserId + self.userId = userId + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case commenterName + case firstCommentDate + case ipHash + case countryFlag + case countryCode + case websiteUrl + case bio + case karma + case locale + case verified + case avatarSrc + case displayName + case username + case commenterEmail + case email + case anonUserId + case userId + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(commenterName, forKey: .commenterName) + try container.encodeIfPresent(firstCommentDate, forKey: .firstCommentDate) + try container.encodeIfPresent(ipHash, forKey: .ipHash) + try container.encodeIfPresent(countryFlag, forKey: .countryFlag) + try container.encodeIfPresent(countryCode, forKey: .countryCode) + try container.encodeIfPresent(websiteUrl, forKey: .websiteUrl) + try container.encodeIfPresent(bio, forKey: .bio) + try container.encodeIfPresent(karma, forKey: .karma) + try container.encodeIfPresent(locale, forKey: .locale) + try container.encodeIfPresent(verified, forKey: .verified) + try container.encodeIfPresent(avatarSrc, forKey: .avatarSrc) + try container.encodeIfPresent(displayName, forKey: .displayName) + try container.encodeIfPresent(username, forKey: .username) + try container.encodeIfPresent(commenterEmail, forKey: .commenterEmail) + try container.encodeIfPresent(email, forKey: .email) + try container.encodeIfPresent(anonUserId, forKey: .anonUserId) + try container.encodeIfPresent(userId, forKey: .userId) + } +} + diff --git a/client/FastCommentsSwift/Models/GetUserManualBadgesResponse.swift b/client/FastCommentsSwift/Models/GetUserManualBadgesResponse.swift new file mode 100644 index 0000000..105d645 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetUserManualBadgesResponse.swift @@ -0,0 +1,33 @@ +// +// GetUserManualBadgesResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetUserManualBadgesResponse: Sendable, Codable, Hashable { + + public var badges: [UserBadge] + public var status: APIStatus + + public init(badges: [UserBadge], status: APIStatus) { + self.badges = badges + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case badges + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(badges, forKey: .badges) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetUserNotificationCount200Response.swift b/client/FastCommentsSwift/Models/GetUserNotificationCount200Response.swift deleted file mode 100644 index 8784909..0000000 --- a/client/FastCommentsSwift/Models/GetUserNotificationCount200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetUserNotificationCount200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUserNotificationCount200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var count: Int64? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, count: Int64? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.count = count - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case count - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(count, forKey: .count) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserNotificationCountResponse.swift b/client/FastCommentsSwift/Models/GetUserNotificationCountResponse.swift index c37d21c..e42cd5f 100644 --- a/client/FastCommentsSwift/Models/GetUserNotificationCountResponse.swift +++ b/client/FastCommentsSwift/Models/GetUserNotificationCountResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetUserNotificationCountResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetUserNotificationCountResponse: Sendable, Codable, Hashable { public var status: APIStatus public var count: Int64 diff --git a/client/FastCommentsSwift/Models/GetUserNotifications200Response.swift b/client/FastCommentsSwift/Models/GetUserNotifications200Response.swift deleted file mode 100644 index cffb1d1..0000000 --- a/client/FastCommentsSwift/Models/GetUserNotifications200Response.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// GetUserNotifications200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUserNotifications200Response: Sendable, Codable, ParameterConvertible, Hashable { - - /** Construct a type with a set of properties K of type T */ - public var translations: [String: String]? - public var isSubscribed: Bool? - public var hasMore: Bool? - public var notifications: [RenderableUserNotification]? - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(translations: [String: String]? = nil, isSubscribed: Bool? = nil, hasMore: Bool? = nil, notifications: [RenderableUserNotification]? = nil, status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.translations = translations - self.isSubscribed = isSubscribed - self.hasMore = hasMore - self.notifications = notifications - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case translations - case isSubscribed - case hasMore - case notifications - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(translations, forKey: .translations) - try container.encodeIfPresent(isSubscribed, forKey: .isSubscribed) - try container.encodeIfPresent(hasMore, forKey: .hasMore) - try container.encodeIfPresent(notifications, forKey: .notifications) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserPresenceStatuses200Response.swift b/client/FastCommentsSwift/Models/GetUserPresenceStatuses200Response.swift deleted file mode 100644 index ca2488f..0000000 --- a/client/FastCommentsSwift/Models/GetUserPresenceStatuses200Response.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// GetUserPresenceStatuses200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUserPresenceStatuses200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - /** Construct a type with a set of properties K of type T */ - public var userIdsOnline: [String: Bool]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, userIdsOnline: [String: Bool]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.userIdsOnline = userIdsOnline - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case userIdsOnline - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(userIdsOnline, forKey: .userIdsOnline) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserPresenceStatusesResponse.swift b/client/FastCommentsSwift/Models/GetUserPresenceStatusesResponse.swift index ff6eb51..6456a26 100644 --- a/client/FastCommentsSwift/Models/GetUserPresenceStatusesResponse.swift +++ b/client/FastCommentsSwift/Models/GetUserPresenceStatusesResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetUserPresenceStatusesResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetUserPresenceStatusesResponse: Sendable, Codable, Hashable { public var status: APIStatus /** Construct a type with a set of properties K of type T */ diff --git a/client/FastCommentsSwift/Models/GetUserReactsPublic200Response.swift b/client/FastCommentsSwift/Models/GetUserReactsPublic200Response.swift deleted file mode 100644 index e65caa8..0000000 --- a/client/FastCommentsSwift/Models/GetUserReactsPublic200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// GetUserReactsPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetUserReactsPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var reacts: [String: [String: Bool]]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, reacts: [String: [String: Bool]]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.reacts = reacts - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case reacts - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reacts, forKey: .reacts) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetUserResponse.swift b/client/FastCommentsSwift/Models/GetUserResponse.swift index f382ccb..4a296fb 100644 --- a/client/FastCommentsSwift/Models/GetUserResponse.swift +++ b/client/FastCommentsSwift/Models/GetUserResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetUserResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetUserResponse: Sendable, Codable, Hashable { public var status: APIStatus public var user: User diff --git a/client/FastCommentsSwift/Models/GetUserTrustFactorResponse.swift b/client/FastCommentsSwift/Models/GetUserTrustFactorResponse.swift new file mode 100644 index 0000000..7964bb4 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetUserTrustFactorResponse.swift @@ -0,0 +1,37 @@ +// +// GetUserTrustFactorResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetUserTrustFactorResponse: Sendable, Codable, Hashable { + + public var manualTrustFactor: Double? + public var autoTrustFactor: Double? + public var status: APIStatus + + public init(manualTrustFactor: Double? = nil, autoTrustFactor: Double? = nil, status: APIStatus) { + self.manualTrustFactor = manualTrustFactor + self.autoTrustFactor = autoTrustFactor + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case manualTrustFactor + case autoTrustFactor + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(manualTrustFactor, forKey: .manualTrustFactor) + try container.encodeIfPresent(autoTrustFactor, forKey: .autoTrustFactor) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetV1PageLikes.swift b/client/FastCommentsSwift/Models/GetV1PageLikes.swift new file mode 100644 index 0000000..6dd9547 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetV1PageLikes.swift @@ -0,0 +1,45 @@ +// +// GetV1PageLikes.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetV1PageLikes: Sendable, Codable, Hashable { + + public var urlIdWS: String + public var didLike: Bool + public var commentCount: Int + public var likeCount: Int + public var status: APIStatus + + public init(urlIdWS: String, didLike: Bool, commentCount: Int, likeCount: Int, status: APIStatus) { + self.urlIdWS = urlIdWS + self.didLike = didLike + self.commentCount = commentCount + self.likeCount = likeCount + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case urlIdWS + case didLike + case commentCount + case likeCount + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(urlIdWS, forKey: .urlIdWS) + try container.encode(didLike, forKey: .didLike) + try container.encode(commentCount, forKey: .commentCount) + try container.encode(likeCount, forKey: .likeCount) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetV2PageReactUsersResponse.swift b/client/FastCommentsSwift/Models/GetV2PageReactUsersResponse.swift new file mode 100644 index 0000000..8da26cd --- /dev/null +++ b/client/FastCommentsSwift/Models/GetV2PageReactUsersResponse.swift @@ -0,0 +1,33 @@ +// +// GetV2PageReactUsersResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetV2PageReactUsersResponse: Sendable, Codable, Hashable { + + public var userNames: [String] + public var status: APIStatus + + public init(userNames: [String], status: APIStatus) { + self.userNames = userNames + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case userNames + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(userNames, forKey: .userNames) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetV2PageReacts.swift b/client/FastCommentsSwift/Models/GetV2PageReacts.swift new file mode 100644 index 0000000..b33dcf4 --- /dev/null +++ b/client/FastCommentsSwift/Models/GetV2PageReacts.swift @@ -0,0 +1,38 @@ +// +// GetV2PageReacts.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GetV2PageReacts: Sendable, Codable, Hashable { + + public var reactedIds: [String]? + /** Construct a type with a set of properties K of type T */ + public var counts: [String: Double]? + public var status: APIStatus + + public init(reactedIds: [String]? = nil, counts: [String: Double]? = nil, status: APIStatus) { + self.reactedIds = reactedIds + self.counts = counts + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case reactedIds + case counts + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(reactedIds, forKey: .reactedIds) + try container.encodeIfPresent(counts, forKey: .counts) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GetVotes200Response.swift b/client/FastCommentsSwift/Models/GetVotes200Response.swift deleted file mode 100644 index 5fdf94c..0000000 --- a/client/FastCommentsSwift/Models/GetVotes200Response.swift +++ /dev/null @@ -1,69 +0,0 @@ -// -// GetVotes200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetVotes200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var appliedAuthorizedVotes: [PublicVote]? - public var appliedAnonymousVotes: [PublicVote]? - public var pendingVotes: [PublicVote]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, appliedAuthorizedVotes: [PublicVote]? = nil, appliedAnonymousVotes: [PublicVote]? = nil, pendingVotes: [PublicVote]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.appliedAuthorizedVotes = appliedAuthorizedVotes - self.appliedAnonymousVotes = appliedAnonymousVotes - self.pendingVotes = pendingVotes - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case appliedAuthorizedVotes - case appliedAnonymousVotes - case pendingVotes - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(appliedAuthorizedVotes, forKey: .appliedAuthorizedVotes) - try container.encodeIfPresent(appliedAnonymousVotes, forKey: .appliedAnonymousVotes) - try container.encodeIfPresent(pendingVotes, forKey: .pendingVotes) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetVotesForUser200Response.swift b/client/FastCommentsSwift/Models/GetVotesForUser200Response.swift deleted file mode 100644 index 70cb959..0000000 --- a/client/FastCommentsSwift/Models/GetVotesForUser200Response.swift +++ /dev/null @@ -1,69 +0,0 @@ -// -// GetVotesForUser200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct GetVotesForUser200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var appliedAuthorizedVotes: [PublicVote]? - public var appliedAnonymousVotes: [PublicVote]? - public var pendingVotes: [PublicVote]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, appliedAuthorizedVotes: [PublicVote]? = nil, appliedAnonymousVotes: [PublicVote]? = nil, pendingVotes: [PublicVote]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.appliedAuthorizedVotes = appliedAuthorizedVotes - self.appliedAnonymousVotes = appliedAnonymousVotes - self.pendingVotes = pendingVotes - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case appliedAuthorizedVotes - case appliedAnonymousVotes - case pendingVotes - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(appliedAuthorizedVotes, forKey: .appliedAuthorizedVotes) - try container.encodeIfPresent(appliedAnonymousVotes, forKey: .appliedAnonymousVotes) - try container.encodeIfPresent(pendingVotes, forKey: .pendingVotes) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/GetVotesForUserResponse.swift b/client/FastCommentsSwift/Models/GetVotesForUserResponse.swift index fd2e4e9..5cfbed1 100644 --- a/client/FastCommentsSwift/Models/GetVotesForUserResponse.swift +++ b/client/FastCommentsSwift/Models/GetVotesForUserResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetVotesForUserResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetVotesForUserResponse: Sendable, Codable, Hashable { public var status: APIStatus public var appliedAuthorizedVotes: [PublicVote] diff --git a/client/FastCommentsSwift/Models/GetVotesResponse.swift b/client/FastCommentsSwift/Models/GetVotesResponse.swift index 8fe7728..491ffdb 100644 --- a/client/FastCommentsSwift/Models/GetVotesResponse.swift +++ b/client/FastCommentsSwift/Models/GetVotesResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct GetVotesResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct GetVotesResponse: Sendable, Codable, Hashable { public var status: APIStatus public var appliedAuthorizedVotes: [PublicVote] diff --git a/client/FastCommentsSwift/Models/GifGetLargeResponse.swift b/client/FastCommentsSwift/Models/GifGetLargeResponse.swift new file mode 100644 index 0000000..283b5ae --- /dev/null +++ b/client/FastCommentsSwift/Models/GifGetLargeResponse.swift @@ -0,0 +1,33 @@ +// +// GifGetLargeResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GifGetLargeResponse: Sendable, Codable, Hashable { + + public var src: String + public var status: APIStatus + + public init(src: String, status: APIStatus) { + self.src = src + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case src + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(src, forKey: .src) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GifSearchInternalError.swift b/client/FastCommentsSwift/Models/GifSearchInternalError.swift new file mode 100644 index 0000000..2e8207c --- /dev/null +++ b/client/FastCommentsSwift/Models/GifSearchInternalError.swift @@ -0,0 +1,33 @@ +// +// GifSearchInternalError.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GifSearchInternalError: Sendable, Codable, Hashable { + + public var code: String + public var status: APIStatus + + public init(code: String, status: APIStatus) { + self.code = code + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case code + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(code, forKey: .code) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GifSearchResponse.swift b/client/FastCommentsSwift/Models/GifSearchResponse.swift new file mode 100644 index 0000000..ba45cf1 --- /dev/null +++ b/client/FastCommentsSwift/Models/GifSearchResponse.swift @@ -0,0 +1,33 @@ +// +// GifSearchResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GifSearchResponse: Sendable, Codable, Hashable { + + public var images: [[GifSearchResponseImagesInnerInner]] + public var status: APIStatus + + public init(images: [[GifSearchResponseImagesInnerInner]], status: APIStatus) { + self.images = images + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case images + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(images, forKey: .images) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/GifSearchResponseImagesInnerInner.swift b/client/FastCommentsSwift/Models/GifSearchResponseImagesInnerInner.swift new file mode 100644 index 0000000..7dbd6cd --- /dev/null +++ b/client/FastCommentsSwift/Models/GifSearchResponseImagesInnerInner.swift @@ -0,0 +1,22 @@ +// +// GifSearchResponseImagesInnerInner.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct GifSearchResponseImagesInnerInner: Sendable, Codable, Hashable { + + + public enum CodingKeys: CodingKey, CaseIterable { + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + } +} + diff --git a/client/FastCommentsSwift/Models/HeaderAccountNotification.swift b/client/FastCommentsSwift/Models/HeaderAccountNotification.swift index 8ca0090..75d0c0e 100644 --- a/client/FastCommentsSwift/Models/HeaderAccountNotification.swift +++ b/client/FastCommentsSwift/Models/HeaderAccountNotification.swift @@ -7,7 +7,7 @@ import Foundation -public struct HeaderAccountNotification: Sendable, Codable, ParameterConvertible, Hashable { +public struct HeaderAccountNotification: Sendable, Codable, Hashable { public var id: String public var title: String @@ -20,8 +20,10 @@ public struct HeaderAccountNotification: Sendable, Codable, ParameterConvertible public var linkUrl: String? public var linkText: String? public var createdAt: Date + /** Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). */ + public var type: String? - public init(id: String, title: String, message: String, messagesByLocale: [String: String]?, dates: [String: String]?, severity: String, linkUrl: String?, linkText: String?, createdAt: Date) { + public init(id: String, title: String, message: String, messagesByLocale: [String: String]?, dates: [String: String]?, severity: String, linkUrl: String?, linkText: String?, createdAt: Date, type: String? = nil) { self.id = id self.title = title self.message = message @@ -31,6 +33,7 @@ public struct HeaderAccountNotification: Sendable, Codable, ParameterConvertible self.linkUrl = linkUrl self.linkText = linkText self.createdAt = createdAt + self.type = type } public enum CodingKeys: String, CodingKey, CaseIterable { @@ -43,6 +46,7 @@ public struct HeaderAccountNotification: Sendable, Codable, ParameterConvertible case linkUrl case linkText case createdAt + case type } // Encodable protocol methods @@ -58,6 +62,7 @@ public struct HeaderAccountNotification: Sendable, Codable, ParameterConvertible try container.encode(linkUrl, forKey: .linkUrl) try container.encode(linkText, forKey: .linkText) try container.encode(createdAt, forKey: .createdAt) + try container.encodeIfPresent(type, forKey: .type) } } diff --git a/client/FastCommentsSwift/Models/HeaderState.swift b/client/FastCommentsSwift/Models/HeaderState.swift index 5aa7ad0..1e1930a 100644 --- a/client/FastCommentsSwift/Models/HeaderState.swift +++ b/client/FastCommentsSwift/Models/HeaderState.swift @@ -7,7 +7,7 @@ import Foundation -public struct HeaderState: Sendable, Codable, ParameterConvertible, Hashable { +public struct HeaderState: Sendable, Codable, Hashable { public var status: APIStatus public var notificationType: JSONValue diff --git a/client/FastCommentsSwift/Models/IgnoredResponse.swift b/client/FastCommentsSwift/Models/IgnoredResponse.swift index 45f9dff..deebdd5 100644 --- a/client/FastCommentsSwift/Models/IgnoredResponse.swift +++ b/client/FastCommentsSwift/Models/IgnoredResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct IgnoredResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct IgnoredResponse: Sendable, Codable, Hashable { public enum Note: String, Sendable, Codable, CaseIterable { case ignoredSinceImpersonated = "ignored-since-impersonated" diff --git a/client/FastCommentsSwift/Models/ImportedAgentApprovalNotificationFrequency.swift b/client/FastCommentsSwift/Models/ImportedAgentApprovalNotificationFrequency.swift new file mode 100644 index 0000000..039c7bb --- /dev/null +++ b/client/FastCommentsSwift/Models/ImportedAgentApprovalNotificationFrequency.swift @@ -0,0 +1,15 @@ +// +// ImportedAgentApprovalNotificationFrequency.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public enum ImportedAgentApprovalNotificationFrequency: Int, Sendable, Codable, CaseIterable { + case number1 = -1 + case _0 = 0 + case _1 = 1 + case _2 = 2 +} diff --git a/client/FastCommentsSwift/Models/LiveEvent.swift b/client/FastCommentsSwift/Models/LiveEvent.swift index 52fb1c8..7c83f49 100644 --- a/client/FastCommentsSwift/Models/LiveEvent.swift +++ b/client/FastCommentsSwift/Models/LiveEvent.swift @@ -7,7 +7,7 @@ import Foundation -public struct LiveEvent: Sendable, Codable, ParameterConvertible, Hashable { +public struct LiveEvent: Sendable, Codable, Hashable { public var type: LiveEventType public var timestamp: Int64? diff --git a/client/FastCommentsSwift/Models/LiveEventExtraInfo.swift b/client/FastCommentsSwift/Models/LiveEventExtraInfo.swift index 6d4c668..926611b 100644 --- a/client/FastCommentsSwift/Models/LiveEventExtraInfo.swift +++ b/client/FastCommentsSwift/Models/LiveEventExtraInfo.swift @@ -7,7 +7,7 @@ import Foundation -public struct LiveEventExtraInfo: Sendable, Codable, ParameterConvertible, Hashable { +public struct LiveEventExtraInfo: Sendable, Codable, Hashable { /** Construct a type with a set of properties K of type T */ public var commentPositions: [String: RecordStringBeforeStringOrNullAfterStringOrNullValue]? diff --git a/client/FastCommentsSwift/Models/LiveEventType.swift b/client/FastCommentsSwift/Models/LiveEventType.swift index f31bf6c..d73a468 100644 --- a/client/FastCommentsSwift/Models/LiveEventType.swift +++ b/client/FastCommentsSwift/Models/LiveEventType.swift @@ -29,4 +29,6 @@ public enum LiveEventType: String, Sendable, Codable, CaseIterable { case updatedTicketState = "updated-ticket-state" case updatedTicketAssignment = "updated-ticket-assignment" case deletedTicket = "deleted-ticket" + case pageReact = "page-react" + case questionResult = "question-result" } diff --git a/client/FastCommentsSwift/Models/LockComment200Response.swift b/client/FastCommentsSwift/Models/LockComment200Response.swift deleted file mode 100644 index 5d68722..0000000 --- a/client/FastCommentsSwift/Models/LockComment200Response.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// LockComment200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct LockComment200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/MediaAsset.swift b/client/FastCommentsSwift/Models/MediaAsset.swift index 1124716..79d0c78 100644 --- a/client/FastCommentsSwift/Models/MediaAsset.swift +++ b/client/FastCommentsSwift/Models/MediaAsset.swift @@ -7,7 +7,7 @@ import Foundation -public struct MediaAsset: Sendable, Codable, ParameterConvertible, Hashable { +public struct MediaAsset: Sendable, Codable, Hashable { public var w: Int public var h: Int diff --git a/client/FastCommentsSwift/Models/MetaItem.swift b/client/FastCommentsSwift/Models/MetaItem.swift index e2b9f4c..615f2f4 100644 --- a/client/FastCommentsSwift/Models/MetaItem.swift +++ b/client/FastCommentsSwift/Models/MetaItem.swift @@ -7,7 +7,7 @@ import Foundation -public struct MetaItem: Sendable, Codable, ParameterConvertible, Hashable { +public struct MetaItem: Sendable, Codable, Hashable { public var name: String public var values: [String] diff --git a/client/FastCommentsSwift/Models/ModerationAPIChildCommentsResponse.swift b/client/FastCommentsSwift/Models/ModerationAPIChildCommentsResponse.swift new file mode 100644 index 0000000..562c845 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationAPIChildCommentsResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationAPIChildCommentsResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationAPIChildCommentsResponse: Sendable, Codable, Hashable { + + public var comments: [ModerationAPIComment] + public var status: APIStatus + + public init(comments: [ModerationAPIComment], status: APIStatus) { + self.comments = comments + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case comments + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(comments, forKey: .comments) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationAPIComment.swift b/client/FastCommentsSwift/Models/ModerationAPIComment.swift new file mode 100644 index 0000000..fa9b506 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationAPIComment.swift @@ -0,0 +1,193 @@ +// +// ModerationAPIComment.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationAPIComment: Sendable, Codable, Hashable { + + public var isLocalDeleted: Bool? + public var replyCount: Double? + public var feedbackResults: [String]? + public var isVotedUp: Bool? + public var isVotedDown: Bool? + public var myVoteId: String? + public var id: String + public var tenantId: String + public var urlId: String + public var url: String + public var pageTitle: String? + public var userId: String? + public var anonUserId: String? + public var commenterName: String + public var commenterLink: String? + public var commentHTML: String + public var parentId: String? + public var date: Date? + public var localDateString: String? + public var votes: Double? + public var votesUp: Double? + public var votesDown: Double? + public var expireAt: Date? + public var reviewed: Bool? + public var avatarSrc: String? + public var isSpam: Bool? + public var permNotSpam: Bool? + public var hasLinks: Bool? + public var hasCode: Bool? + public var approved: Bool + public var locale: String? + public var isBannedUser: Bool? + public var isByAdmin: Bool? + public var isByModerator: Bool? + public var isPinned: Bool? + public var isLocked: Bool? + public var flagCount: Double? + public var displayLabel: String? + public var badges: [CommentUserBadgeInfo]? + public var verified: Bool + public var feedbackIds: [String]? + public var isDeleted: Bool? + + public init(isLocalDeleted: Bool? = nil, replyCount: Double? = nil, feedbackResults: [String]? = nil, isVotedUp: Bool? = nil, isVotedDown: Bool? = nil, myVoteId: String? = nil, id: String, tenantId: String, urlId: String, url: String, pageTitle: String? = nil, userId: String? = nil, anonUserId: String? = nil, commenterName: String, commenterLink: String? = nil, commentHTML: String, parentId: String? = nil, date: Date?, localDateString: String? = nil, votes: Double? = nil, votesUp: Double? = nil, votesDown: Double? = nil, expireAt: Date? = nil, reviewed: Bool? = nil, avatarSrc: String? = nil, isSpam: Bool? = nil, permNotSpam: Bool? = nil, hasLinks: Bool? = nil, hasCode: Bool? = nil, approved: Bool, locale: String?, isBannedUser: Bool? = nil, isByAdmin: Bool? = nil, isByModerator: Bool? = nil, isPinned: Bool? = nil, isLocked: Bool? = nil, flagCount: Double? = nil, displayLabel: String? = nil, badges: [CommentUserBadgeInfo]? = nil, verified: Bool, feedbackIds: [String]? = nil, isDeleted: Bool? = nil) { + self.isLocalDeleted = isLocalDeleted + self.replyCount = replyCount + self.feedbackResults = feedbackResults + self.isVotedUp = isVotedUp + self.isVotedDown = isVotedDown + self.myVoteId = myVoteId + self.id = id + self.tenantId = tenantId + self.urlId = urlId + self.url = url + self.pageTitle = pageTitle + self.userId = userId + self.anonUserId = anonUserId + self.commenterName = commenterName + self.commenterLink = commenterLink + self.commentHTML = commentHTML + self.parentId = parentId + self.date = date + self.localDateString = localDateString + self.votes = votes + self.votesUp = votesUp + self.votesDown = votesDown + self.expireAt = expireAt + self.reviewed = reviewed + self.avatarSrc = avatarSrc + self.isSpam = isSpam + self.permNotSpam = permNotSpam + self.hasLinks = hasLinks + self.hasCode = hasCode + self.approved = approved + self.locale = locale + self.isBannedUser = isBannedUser + self.isByAdmin = isByAdmin + self.isByModerator = isByModerator + self.isPinned = isPinned + self.isLocked = isLocked + self.flagCount = flagCount + self.displayLabel = displayLabel + self.badges = badges + self.verified = verified + self.feedbackIds = feedbackIds + self.isDeleted = isDeleted + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case isLocalDeleted + case replyCount + case feedbackResults + case isVotedUp + case isVotedDown + case myVoteId + case id = "_id" + case tenantId + case urlId + case url + case pageTitle + case userId + case anonUserId + case commenterName + case commenterLink + case commentHTML + case parentId + case date + case localDateString + case votes + case votesUp + case votesDown + case expireAt + case reviewed + case avatarSrc + case isSpam + case permNotSpam + case hasLinks + case hasCode + case approved + case locale + case isBannedUser + case isByAdmin + case isByModerator + case isPinned + case isLocked + case flagCount + case displayLabel + case badges + case verified + case feedbackIds + case isDeleted + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(isLocalDeleted, forKey: .isLocalDeleted) + try container.encodeIfPresent(replyCount, forKey: .replyCount) + try container.encodeIfPresent(feedbackResults, forKey: .feedbackResults) + try container.encodeIfPresent(isVotedUp, forKey: .isVotedUp) + try container.encodeIfPresent(isVotedDown, forKey: .isVotedDown) + try container.encodeIfPresent(myVoteId, forKey: .myVoteId) + try container.encode(id, forKey: .id) + try container.encode(tenantId, forKey: .tenantId) + try container.encode(urlId, forKey: .urlId) + try container.encode(url, forKey: .url) + try container.encodeIfPresent(pageTitle, forKey: .pageTitle) + try container.encodeIfPresent(userId, forKey: .userId) + try container.encodeIfPresent(anonUserId, forKey: .anonUserId) + try container.encode(commenterName, forKey: .commenterName) + try container.encodeIfPresent(commenterLink, forKey: .commenterLink) + try container.encode(commentHTML, forKey: .commentHTML) + try container.encodeIfPresent(parentId, forKey: .parentId) + try container.encode(date, forKey: .date) + try container.encodeIfPresent(localDateString, forKey: .localDateString) + try container.encodeIfPresent(votes, forKey: .votes) + try container.encodeIfPresent(votesUp, forKey: .votesUp) + try container.encodeIfPresent(votesDown, forKey: .votesDown) + try container.encodeIfPresent(expireAt, forKey: .expireAt) + try container.encodeIfPresent(reviewed, forKey: .reviewed) + try container.encodeIfPresent(avatarSrc, forKey: .avatarSrc) + try container.encodeIfPresent(isSpam, forKey: .isSpam) + try container.encodeIfPresent(permNotSpam, forKey: .permNotSpam) + try container.encodeIfPresent(hasLinks, forKey: .hasLinks) + try container.encodeIfPresent(hasCode, forKey: .hasCode) + try container.encode(approved, forKey: .approved) + try container.encode(locale, forKey: .locale) + try container.encodeIfPresent(isBannedUser, forKey: .isBannedUser) + try container.encodeIfPresent(isByAdmin, forKey: .isByAdmin) + try container.encodeIfPresent(isByModerator, forKey: .isByModerator) + try container.encodeIfPresent(isPinned, forKey: .isPinned) + try container.encodeIfPresent(isLocked, forKey: .isLocked) + try container.encodeIfPresent(flagCount, forKey: .flagCount) + try container.encodeIfPresent(displayLabel, forKey: .displayLabel) + try container.encodeIfPresent(badges, forKey: .badges) + try container.encode(verified, forKey: .verified) + try container.encodeIfPresent(feedbackIds, forKey: .feedbackIds) + try container.encodeIfPresent(isDeleted, forKey: .isDeleted) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationAPICommentLog.swift b/client/FastCommentsSwift/Models/ModerationAPICommentLog.swift new file mode 100644 index 0000000..8de037e --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationAPICommentLog.swift @@ -0,0 +1,41 @@ +// +// ModerationAPICommentLog.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationAPICommentLog: Sendable, Codable, Hashable { + + public var date: Date + public var username: String? + public var actionName: String + public var messageHTML: String + + public init(date: Date, username: String? = nil, actionName: String, messageHTML: String) { + self.date = date + self.username = username + self.actionName = actionName + self.messageHTML = messageHTML + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case date + case username + case actionName + case messageHTML + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(date, forKey: .date) + try container.encodeIfPresent(username, forKey: .username) + try container.encode(actionName, forKey: .actionName) + try container.encode(messageHTML, forKey: .messageHTML) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationAPICommentResponse.swift b/client/FastCommentsSwift/Models/ModerationAPICommentResponse.swift new file mode 100644 index 0000000..f09352c --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationAPICommentResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationAPICommentResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationAPICommentResponse: Sendable, Codable, Hashable { + + public var comment: ModerationAPIComment + public var status: APIStatus + + public init(comment: ModerationAPIComment, status: APIStatus) { + self.comment = comment + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case comment + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(comment, forKey: .comment) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationAPICountCommentsResponse.swift b/client/FastCommentsSwift/Models/ModerationAPICountCommentsResponse.swift new file mode 100644 index 0000000..9eac435 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationAPICountCommentsResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationAPICountCommentsResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationAPICountCommentsResponse: Sendable, Codable, Hashable { + + public var status: APIStatus + public var count: Double + + public init(status: APIStatus, count: Double) { + self.status = status + self.count = count + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case count + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(count, forKey: .count) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationAPIGetCommentIdsResponse.swift b/client/FastCommentsSwift/Models/ModerationAPIGetCommentIdsResponse.swift new file mode 100644 index 0000000..2fc7438 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationAPIGetCommentIdsResponse.swift @@ -0,0 +1,37 @@ +// +// ModerationAPIGetCommentIdsResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationAPIGetCommentIdsResponse: Sendable, Codable, Hashable { + + public var ids: [String] + public var hasMore: Bool + public var status: APIStatus + + public init(ids: [String], hasMore: Bool, status: APIStatus) { + self.ids = ids + self.hasMore = hasMore + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case ids + case hasMore + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(ids, forKey: .ids) + try container.encode(hasMore, forKey: .hasMore) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationAPIGetCommentsResponse.swift b/client/FastCommentsSwift/Models/ModerationAPIGetCommentsResponse.swift new file mode 100644 index 0000000..3e5b823 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationAPIGetCommentsResponse.swift @@ -0,0 +1,41 @@ +// +// ModerationAPIGetCommentsResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationAPIGetCommentsResponse: Sendable, Codable, Hashable { + + public var status: APIStatus + public var translations: JSONValue + public var comments: [ModerationAPIComment] + public var moderationFilter: ModerationFilter? + + public init(status: APIStatus, translations: JSONValue, comments: [ModerationAPIComment], moderationFilter: ModerationFilter? = nil) { + self.status = status + self.translations = translations + self.comments = comments + self.moderationFilter = moderationFilter + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case translations + case comments + case moderationFilter + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(translations, forKey: .translations) + try container.encode(comments, forKey: .comments) + try container.encodeIfPresent(moderationFilter, forKey: .moderationFilter) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationAPIGetLogsResponse.swift b/client/FastCommentsSwift/Models/ModerationAPIGetLogsResponse.swift new file mode 100644 index 0000000..d23fa1b --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationAPIGetLogsResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationAPIGetLogsResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationAPIGetLogsResponse: Sendable, Codable, Hashable { + + public var logs: [ModerationAPICommentLog] + public var status: APIStatus + + public init(logs: [ModerationAPICommentLog], status: APIStatus) { + self.logs = logs + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case logs + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(logs, forKey: .logs) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationCommentSearchResponse.swift b/client/FastCommentsSwift/Models/ModerationCommentSearchResponse.swift new file mode 100644 index 0000000..f444c03 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationCommentSearchResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationCommentSearchResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationCommentSearchResponse: Sendable, Codable, Hashable { + + public var commentCount: Int + public var status: APIStatus + + public init(commentCount: Int, status: APIStatus) { + self.commentCount = commentCount + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case commentCount + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(commentCount, forKey: .commentCount) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationExportResponse.swift b/client/FastCommentsSwift/Models/ModerationExportResponse.swift new file mode 100644 index 0000000..bb99eaa --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationExportResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationExportResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationExportResponse: Sendable, Codable, Hashable { + + public var status: String + public var batchJobId: String + + public init(status: String, batchJobId: String) { + self.status = status + self.batchJobId = batchJobId + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case batchJobId + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(batchJobId, forKey: .batchJobId) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationExportStatusResponse.swift b/client/FastCommentsSwift/Models/ModerationExportStatusResponse.swift new file mode 100644 index 0000000..a4fc1be --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationExportStatusResponse.swift @@ -0,0 +1,41 @@ +// +// ModerationExportStatusResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationExportStatusResponse: Sendable, Codable, Hashable { + + public var status: String + public var jobStatus: String + public var recordCount: Int + public var downloadUrl: String? + + public init(status: String, jobStatus: String, recordCount: Int, downloadUrl: String? = nil) { + self.status = status + self.jobStatus = jobStatus + self.recordCount = recordCount + self.downloadUrl = downloadUrl + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case jobStatus + case recordCount + case downloadUrl + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(jobStatus, forKey: .jobStatus) + try container.encode(recordCount, forKey: .recordCount) + try container.encodeIfPresent(downloadUrl, forKey: .downloadUrl) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationFilter.swift b/client/FastCommentsSwift/Models/ModerationFilter.swift new file mode 100644 index 0000000..b91c7e0 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationFilter.swift @@ -0,0 +1,75 @@ +// +// ModerationFilter.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationFilter: Sendable, Codable, Hashable { + + public var reviewed: Bool? + public var approved: Bool? + public var isSpam: Bool? + public var isBannedUser: Bool? + public var isLocked: Bool? + public var flagCountGt: Double? + public var userId: String? + public var urlId: String? + public var domain: String? + public var moderationGroupIds: [String]? + /** Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. */ + public var commentTextSearch: [String]? + /** Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. */ + public var exactCommentText: String? + + public init(reviewed: Bool? = nil, approved: Bool? = nil, isSpam: Bool? = nil, isBannedUser: Bool? = nil, isLocked: Bool? = nil, flagCountGt: Double? = nil, userId: String? = nil, urlId: String? = nil, domain: String? = nil, moderationGroupIds: [String]? = nil, commentTextSearch: [String]? = nil, exactCommentText: String? = nil) { + self.reviewed = reviewed + self.approved = approved + self.isSpam = isSpam + self.isBannedUser = isBannedUser + self.isLocked = isLocked + self.flagCountGt = flagCountGt + self.userId = userId + self.urlId = urlId + self.domain = domain + self.moderationGroupIds = moderationGroupIds + self.commentTextSearch = commentTextSearch + self.exactCommentText = exactCommentText + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case reviewed + case approved + case isSpam + case isBannedUser + case isLocked + case flagCountGt + case userId + case urlId + case domain + case moderationGroupIds + case commentTextSearch + case exactCommentText + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(reviewed, forKey: .reviewed) + try container.encodeIfPresent(approved, forKey: .approved) + try container.encodeIfPresent(isSpam, forKey: .isSpam) + try container.encodeIfPresent(isBannedUser, forKey: .isBannedUser) + try container.encodeIfPresent(isLocked, forKey: .isLocked) + try container.encodeIfPresent(flagCountGt, forKey: .flagCountGt) + try container.encodeIfPresent(userId, forKey: .userId) + try container.encodeIfPresent(urlId, forKey: .urlId) + try container.encodeIfPresent(domain, forKey: .domain) + try container.encodeIfPresent(moderationGroupIds, forKey: .moderationGroupIds) + try container.encodeIfPresent(commentTextSearch, forKey: .commentTextSearch) + try container.encodeIfPresent(exactCommentText, forKey: .exactCommentText) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationPageSearchProjected.swift b/client/FastCommentsSwift/Models/ModerationPageSearchProjected.swift new file mode 100644 index 0000000..9e84ff2 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationPageSearchProjected.swift @@ -0,0 +1,41 @@ +// +// ModerationPageSearchProjected.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationPageSearchProjected: Sendable, Codable, Hashable { + + public var urlId: String + public var url: String + public var title: String + public var commentCount: Double + + public init(urlId: String, url: String, title: String, commentCount: Double) { + self.urlId = urlId + self.url = url + self.title = title + self.commentCount = commentCount + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case urlId + case url + case title + case commentCount + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(urlId, forKey: .urlId) + try container.encode(url, forKey: .url) + try container.encode(title, forKey: .title) + try container.encode(commentCount, forKey: .commentCount) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationPageSearchResponse.swift b/client/FastCommentsSwift/Models/ModerationPageSearchResponse.swift new file mode 100644 index 0000000..9ce1680 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationPageSearchResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationPageSearchResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationPageSearchResponse: Sendable, Codable, Hashable { + + public var pages: [ModerationPageSearchProjected] + public var status: APIStatus + + public init(pages: [ModerationPageSearchProjected], status: APIStatus) { + self.pages = pages + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case pages + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(pages, forKey: .pages) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationSiteSearchProjected.swift b/client/FastCommentsSwift/Models/ModerationSiteSearchProjected.swift new file mode 100644 index 0000000..dcd9c3c --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationSiteSearchProjected.swift @@ -0,0 +1,33 @@ +// +// ModerationSiteSearchProjected.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationSiteSearchProjected: Sendable, Codable, Hashable { + + public var domain: String + public var logoSrc100px: String? + + public init(domain: String, logoSrc100px: String? = nil) { + self.domain = domain + self.logoSrc100px = logoSrc100px + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case domain + case logoSrc100px + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(domain, forKey: .domain) + try container.encodeIfPresent(logoSrc100px, forKey: .logoSrc100px) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationSiteSearchResponse.swift b/client/FastCommentsSwift/Models/ModerationSiteSearchResponse.swift new file mode 100644 index 0000000..f946380 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationSiteSearchResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationSiteSearchResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationSiteSearchResponse: Sendable, Codable, Hashable { + + public var sites: [ModerationSiteSearchProjected] + public var status: APIStatus + + public init(sites: [ModerationSiteSearchProjected], status: APIStatus) { + self.sites = sites + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case sites + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(sites, forKey: .sites) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationSuggestResponse.swift b/client/FastCommentsSwift/Models/ModerationSuggestResponse.swift new file mode 100644 index 0000000..c2f62c6 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationSuggestResponse.swift @@ -0,0 +1,41 @@ +// +// ModerationSuggestResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationSuggestResponse: Sendable, Codable, Hashable { + + public var status: String + public var pages: [ModerationPageSearchProjected]? + public var users: [ModerationUserSearchProjected]? + public var code: String? + + public init(status: String, pages: [ModerationPageSearchProjected]? = nil, users: [ModerationUserSearchProjected]? = nil, code: String? = nil) { + self.status = status + self.pages = pages + self.users = users + self.code = code + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case pages + case users + case code + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(pages, forKey: .pages) + try container.encodeIfPresent(users, forKey: .users) + try container.encodeIfPresent(code, forKey: .code) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationUserSearchProjected.swift b/client/FastCommentsSwift/Models/ModerationUserSearchProjected.swift new file mode 100644 index 0000000..d4bffa4 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationUserSearchProjected.swift @@ -0,0 +1,41 @@ +// +// ModerationUserSearchProjected.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationUserSearchProjected: Sendable, Codable, Hashable { + + public var id: String + public var username: String + public var displayName: String? + public var avatarSrc: String? + + public init(id: String, username: String, displayName: String? = nil, avatarSrc: String? = nil) { + self.id = id + self.username = username + self.displayName = displayName + self.avatarSrc = avatarSrc + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id = "_id" + case username + case displayName + case avatarSrc + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encode(username, forKey: .username) + try container.encodeIfPresent(displayName, forKey: .displayName) + try container.encodeIfPresent(avatarSrc, forKey: .avatarSrc) + } +} + diff --git a/client/FastCommentsSwift/Models/ModerationUserSearchResponse.swift b/client/FastCommentsSwift/Models/ModerationUserSearchResponse.swift new file mode 100644 index 0000000..5148fb0 --- /dev/null +++ b/client/FastCommentsSwift/Models/ModerationUserSearchResponse.swift @@ -0,0 +1,33 @@ +// +// ModerationUserSearchResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct ModerationUserSearchResponse: Sendable, Codable, Hashable { + + public var users: [ModerationUserSearchProjected] + public var status: APIStatus + + public init(users: [ModerationUserSearchProjected], status: APIStatus) { + self.users = users + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case users + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(users, forKey: .users) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/Moderator.swift b/client/FastCommentsSwift/Models/Moderator.swift index 61802d3..486909a 100644 --- a/client/FastCommentsSwift/Models/Moderator.swift +++ b/client/FastCommentsSwift/Models/Moderator.swift @@ -7,7 +7,7 @@ import Foundation -public struct Moderator: Sendable, Codable, ParameterConvertible, Hashable { +public struct Moderator: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/NotificationAndCount.swift b/client/FastCommentsSwift/Models/NotificationAndCount.swift index 9b9ea33..9696fb8 100644 --- a/client/FastCommentsSwift/Models/NotificationAndCount.swift +++ b/client/FastCommentsSwift/Models/NotificationAndCount.swift @@ -7,7 +7,7 @@ import Foundation -public struct NotificationAndCount: Sendable, Codable, ParameterConvertible, Hashable { +public struct NotificationAndCount: Sendable, Codable, Hashable { public var type: NotificationType public var count: Int64 diff --git a/client/FastCommentsSwift/Models/PageUserEntry.swift b/client/FastCommentsSwift/Models/PageUserEntry.swift new file mode 100644 index 0000000..55052e0 --- /dev/null +++ b/client/FastCommentsSwift/Models/PageUserEntry.swift @@ -0,0 +1,43 @@ +// +// PageUserEntry.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PageUserEntry: Sendable, Codable, Hashable { + + public var isPrivate: Bool? + public var avatarSrc: String? + public var displayName: String + public var id: String + + public init(isPrivate: Bool? = nil, avatarSrc: String? = nil, displayName: String, id: String) { + self.isPrivate = isPrivate + self.avatarSrc = avatarSrc + self.displayName = displayName + self.id = id + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case isPrivate + case avatarSrc + case displayName + case id + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(isPrivate, forKey: .isPrivate) + try container.encodeIfPresent(avatarSrc, forKey: .avatarSrc) + try container.encode(displayName, forKey: .displayName) + try container.encode(id, forKey: .id) + } +} + + +extension PageUserEntry: Identifiable {} diff --git a/client/FastCommentsSwift/Models/PageUsersInfoResponse.swift b/client/FastCommentsSwift/Models/PageUsersInfoResponse.swift new file mode 100644 index 0000000..8276600 --- /dev/null +++ b/client/FastCommentsSwift/Models/PageUsersInfoResponse.swift @@ -0,0 +1,33 @@ +// +// PageUsersInfoResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PageUsersInfoResponse: Sendable, Codable, Hashable { + + public var users: [PageUserEntry] + public var status: APIStatus + + public init(users: [PageUserEntry], status: APIStatus) { + self.users = users + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case users + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(users, forKey: .users) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/PageUsersOfflineResponse.swift b/client/FastCommentsSwift/Models/PageUsersOfflineResponse.swift new file mode 100644 index 0000000..03c4bc6 --- /dev/null +++ b/client/FastCommentsSwift/Models/PageUsersOfflineResponse.swift @@ -0,0 +1,41 @@ +// +// PageUsersOfflineResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PageUsersOfflineResponse: Sendable, Codable, Hashable { + + public var nextAfterUserId: String? + public var nextAfterName: String? + public var users: [PageUserEntry] + public var status: APIStatus + + public init(nextAfterUserId: String?, nextAfterName: String?, users: [PageUserEntry], status: APIStatus) { + self.nextAfterUserId = nextAfterUserId + self.nextAfterName = nextAfterName + self.users = users + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case nextAfterUserId + case nextAfterName + case users + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(nextAfterUserId, forKey: .nextAfterUserId) + try container.encode(nextAfterName, forKey: .nextAfterName) + try container.encode(users, forKey: .users) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/PageUsersOnlineResponse.swift b/client/FastCommentsSwift/Models/PageUsersOnlineResponse.swift new file mode 100644 index 0000000..88132c4 --- /dev/null +++ b/client/FastCommentsSwift/Models/PageUsersOnlineResponse.swift @@ -0,0 +1,49 @@ +// +// PageUsersOnlineResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PageUsersOnlineResponse: Sendable, Codable, Hashable { + + public var nextAfterUserId: String? + public var nextAfterName: String? + public var totalCount: Double + public var anonCount: Double + public var users: [PageUserEntry] + public var status: APIStatus + + public init(nextAfterUserId: String?, nextAfterName: String?, totalCount: Double, anonCount: Double, users: [PageUserEntry], status: APIStatus) { + self.nextAfterUserId = nextAfterUserId + self.nextAfterName = nextAfterName + self.totalCount = totalCount + self.anonCount = anonCount + self.users = users + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case nextAfterUserId + case nextAfterName + case totalCount + case anonCount + case users + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(nextAfterUserId, forKey: .nextAfterUserId) + try container.encode(nextAfterName, forKey: .nextAfterName) + try container.encode(totalCount, forKey: .totalCount) + try container.encode(anonCount, forKey: .anonCount) + try container.encode(users, forKey: .users) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/PagesSortBy.swift b/client/FastCommentsSwift/Models/PagesSortBy.swift new file mode 100644 index 0000000..3a844d1 --- /dev/null +++ b/client/FastCommentsSwift/Models/PagesSortBy.swift @@ -0,0 +1,14 @@ +// +// PagesSortBy.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public enum PagesSortBy: String, Sendable, Codable, CaseIterable { + case updatedat = "updatedAt" + case commentcount = "commentCount" + case title = "title" +} diff --git a/client/FastCommentsSwift/Models/PatchDomainConfigParams.swift b/client/FastCommentsSwift/Models/PatchDomainConfigParams.swift index 34a47ee..43c0be7 100644 --- a/client/FastCommentsSwift/Models/PatchDomainConfigParams.swift +++ b/client/FastCommentsSwift/Models/PatchDomainConfigParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct PatchDomainConfigParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct PatchDomainConfigParams: Sendable, Codable, Hashable { public var domain: String? public var emailFromName: String? diff --git a/client/FastCommentsSwift/Models/PatchDomainConfigResponse.swift b/client/FastCommentsSwift/Models/PatchDomainConfigResponse.swift new file mode 100644 index 0000000..79c6869 --- /dev/null +++ b/client/FastCommentsSwift/Models/PatchDomainConfigResponse.swift @@ -0,0 +1,41 @@ +// +// PatchDomainConfigResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PatchDomainConfigResponse: Sendable, Codable, Hashable { + + public var configuration: JSONValue? + public var status: JSONValue? + public var reason: String? + public var code: String? + + public init(configuration: JSONValue? = nil, status: JSONValue?, reason: String? = nil, code: String? = nil) { + self.configuration = configuration + self.status = status + self.reason = reason + self.code = code + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case configuration + case status + case reason + case code + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(configuration, forKey: .configuration) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(reason, forKey: .reason) + try container.encodeIfPresent(code, forKey: .code) + } +} + diff --git a/client/FastCommentsSwift/Models/PatchPageAPIResponse.swift b/client/FastCommentsSwift/Models/PatchPageAPIResponse.swift index fa241f4..917ee73 100644 --- a/client/FastCommentsSwift/Models/PatchPageAPIResponse.swift +++ b/client/FastCommentsSwift/Models/PatchPageAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct PatchPageAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct PatchPageAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/PatchSSOUserAPIResponse.swift b/client/FastCommentsSwift/Models/PatchSSOUserAPIResponse.swift index 0499588..4db45ba 100644 --- a/client/FastCommentsSwift/Models/PatchSSOUserAPIResponse.swift +++ b/client/FastCommentsSwift/Models/PatchSSOUserAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct PatchSSOUserAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct PatchSSOUserAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/PendingCommentToSyncOutbound.swift b/client/FastCommentsSwift/Models/PendingCommentToSyncOutbound.swift index af8591d..1fb76f4 100644 --- a/client/FastCommentsSwift/Models/PendingCommentToSyncOutbound.swift +++ b/client/FastCommentsSwift/Models/PendingCommentToSyncOutbound.swift @@ -7,7 +7,7 @@ import Foundation -public struct PendingCommentToSyncOutbound: Sendable, Codable, ParameterConvertible, Hashable { +public struct PendingCommentToSyncOutbound: Sendable, Codable, Hashable { public var id: String public var commentId: String diff --git a/client/FastCommentsSwift/Models/PinComment200Response.swift b/client/FastCommentsSwift/Models/PinComment200Response.swift deleted file mode 100644 index 079dfc7..0000000 --- a/client/FastCommentsSwift/Models/PinComment200Response.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// PinComment200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct PinComment200Response: Sendable, Codable, ParameterConvertible, Hashable { - - /** Construct a type with a set of properties K of type T */ - public var commentPositions: [String: RecordStringBeforeStringOrNullAfterStringOrNullValue]? - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(commentPositions: [String: RecordStringBeforeStringOrNullAfterStringOrNullValue]? = nil, status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.commentPositions = commentPositions - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case commentPositions - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(commentPositions, forKey: .commentPositions) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/PostRemoveCommentResponse.swift b/client/FastCommentsSwift/Models/PostRemoveCommentResponse.swift new file mode 100644 index 0000000..450a2f7 --- /dev/null +++ b/client/FastCommentsSwift/Models/PostRemoveCommentResponse.swift @@ -0,0 +1,33 @@ +// +// PostRemoveCommentResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PostRemoveCommentResponse: Sendable, Codable, Hashable { + + public var action: String + public var status: String + + public init(action: String, status: String) { + self.action = action + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case action + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(action, forKey: .action) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/PreBanSummary.swift b/client/FastCommentsSwift/Models/PreBanSummary.swift new file mode 100644 index 0000000..d462a29 --- /dev/null +++ b/client/FastCommentsSwift/Models/PreBanSummary.swift @@ -0,0 +1,37 @@ +// +// PreBanSummary.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PreBanSummary: Sendable, Codable, Hashable { + + public var status: APIStatus + public var usernames: [String] + public var count: Double + + public init(status: APIStatus, usernames: [String], count: Double) { + self.status = status + self.usernames = usernames + self.count = count + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case usernames + case count + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(usernames, forKey: .usernames) + try container.encode(count, forKey: .count) + } +} + diff --git a/client/FastCommentsSwift/Models/PubSubComment.swift b/client/FastCommentsSwift/Models/PubSubComment.swift index 63e603c..b52ec6e 100644 --- a/client/FastCommentsSwift/Models/PubSubComment.swift +++ b/client/FastCommentsSwift/Models/PubSubComment.swift @@ -7,7 +7,7 @@ import Foundation -public struct PubSubComment: Sendable, Codable, ParameterConvertible, Hashable { +public struct PubSubComment: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/PubSubCommentBase.swift b/client/FastCommentsSwift/Models/PubSubCommentBase.swift index cef7001..587bf26 100644 --- a/client/FastCommentsSwift/Models/PubSubCommentBase.swift +++ b/client/FastCommentsSwift/Models/PubSubCommentBase.swift @@ -7,7 +7,7 @@ import Foundation -public struct PubSubCommentBase: Sendable, Codable, ParameterConvertible, Hashable { +public struct PubSubCommentBase: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/PubSubVote.swift b/client/FastCommentsSwift/Models/PubSubVote.swift index d177d48..62b1116 100644 --- a/client/FastCommentsSwift/Models/PubSubVote.swift +++ b/client/FastCommentsSwift/Models/PubSubVote.swift @@ -7,7 +7,7 @@ import Foundation -public struct PubSubVote: Sendable, Codable, ParameterConvertible, Hashable { +public struct PubSubVote: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/PublicAPIDeleteCommentResponse.swift b/client/FastCommentsSwift/Models/PublicAPIDeleteCommentResponse.swift index fefb009..f5dd274 100644 --- a/client/FastCommentsSwift/Models/PublicAPIDeleteCommentResponse.swift +++ b/client/FastCommentsSwift/Models/PublicAPIDeleteCommentResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct PublicAPIDeleteCommentResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct PublicAPIDeleteCommentResponse: Sendable, Codable, Hashable { public var comment: DeletedCommentResultComment? public var hardRemoved: Bool diff --git a/client/FastCommentsSwift/Models/PublicAPIGetCommentTextResponse.swift b/client/FastCommentsSwift/Models/PublicAPIGetCommentTextResponse.swift index 9a12af4..89b52bf 100644 --- a/client/FastCommentsSwift/Models/PublicAPIGetCommentTextResponse.swift +++ b/client/FastCommentsSwift/Models/PublicAPIGetCommentTextResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct PublicAPIGetCommentTextResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct PublicAPIGetCommentTextResponse: Sendable, Codable, Hashable { public var status: APIStatus public var commentText: String diff --git a/client/FastCommentsSwift/Models/PublicAPISetCommentTextResponse.swift b/client/FastCommentsSwift/Models/PublicAPISetCommentTextResponse.swift index ac781a3..4ceb5f0 100644 --- a/client/FastCommentsSwift/Models/PublicAPISetCommentTextResponse.swift +++ b/client/FastCommentsSwift/Models/PublicAPISetCommentTextResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct PublicAPISetCommentTextResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct PublicAPISetCommentTextResponse: Sendable, Codable, Hashable { public var comment: SetCommentTextResult public var status: APIStatus diff --git a/client/FastCommentsSwift/Models/PublicBlockFromCommentParams.swift b/client/FastCommentsSwift/Models/PublicBlockFromCommentParams.swift index c8e572e..5fe35b9 100644 --- a/client/FastCommentsSwift/Models/PublicBlockFromCommentParams.swift +++ b/client/FastCommentsSwift/Models/PublicBlockFromCommentParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct PublicBlockFromCommentParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct PublicBlockFromCommentParams: Sendable, Codable, Hashable { /** A list of comment ids to check if are blocked after performing the update. */ public var commentIds: [String]? diff --git a/client/FastCommentsSwift/Models/PublicComment.swift b/client/FastCommentsSwift/Models/PublicComment.swift index 9d6043a..cb8c9fc 100644 --- a/client/FastCommentsSwift/Models/PublicComment.swift +++ b/client/FastCommentsSwift/Models/PublicComment.swift @@ -7,7 +7,7 @@ import Foundation -public struct PublicComment: Sendable, Codable, ParameterConvertible, Hashable { +public struct PublicComment: Sendable, Codable, Hashable { public var id: String public var userId: String? diff --git a/client/FastCommentsSwift/Models/PublicCommentBase.swift b/client/FastCommentsSwift/Models/PublicCommentBase.swift index bd5b7ab..0984b04 100644 --- a/client/FastCommentsSwift/Models/PublicCommentBase.swift +++ b/client/FastCommentsSwift/Models/PublicCommentBase.swift @@ -7,7 +7,7 @@ import Foundation -public struct PublicCommentBase: Sendable, Codable, ParameterConvertible, Hashable { +public struct PublicCommentBase: Sendable, Codable, Hashable { public var id: String public var userId: String? diff --git a/client/FastCommentsSwift/Models/PublicFeedPostsResponse.swift b/client/FastCommentsSwift/Models/PublicFeedPostsResponse.swift index a1aaa44..5135fd2 100644 --- a/client/FastCommentsSwift/Models/PublicFeedPostsResponse.swift +++ b/client/FastCommentsSwift/Models/PublicFeedPostsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct PublicFeedPostsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct PublicFeedPostsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var feedPosts: [FeedPost] diff --git a/client/FastCommentsSwift/Models/PublicPage.swift b/client/FastCommentsSwift/Models/PublicPage.swift new file mode 100644 index 0000000..91cded4 --- /dev/null +++ b/client/FastCommentsSwift/Models/PublicPage.swift @@ -0,0 +1,45 @@ +// +// PublicPage.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PublicPage: Sendable, Codable, Hashable { + + public var updatedAt: Int64 + public var commentCount: Int + public var title: String + public var url: String + public var urlId: String + + public init(updatedAt: Int64, commentCount: Int, title: String, url: String, urlId: String) { + self.updatedAt = updatedAt + self.commentCount = commentCount + self.title = title + self.url = url + self.urlId = urlId + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case updatedAt + case commentCount + case title + case url + case urlId + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(updatedAt, forKey: .updatedAt) + try container.encode(commentCount, forKey: .commentCount) + try container.encode(title, forKey: .title) + try container.encode(url, forKey: .url) + try container.encode(urlId, forKey: .urlId) + } +} + diff --git a/client/FastCommentsSwift/Models/PublicVote.swift b/client/FastCommentsSwift/Models/PublicVote.swift index 8da2f81..f9fa010 100644 --- a/client/FastCommentsSwift/Models/PublicVote.swift +++ b/client/FastCommentsSwift/Models/PublicVote.swift @@ -7,7 +7,7 @@ import Foundation -public struct PublicVote: Sendable, Codable, ParameterConvertible, Hashable { +public struct PublicVote: Sendable, Codable, Hashable { public var id: String public var urlId: String @@ -48,5 +48,4 @@ public struct PublicVote: Sendable, Codable, ParameterConvertible, Hashable { } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension PublicVote: Identifiable {} diff --git a/client/FastCommentsSwift/Models/PutDomainConfigResponse.swift b/client/FastCommentsSwift/Models/PutDomainConfigResponse.swift new file mode 100644 index 0000000..ef8c0f2 --- /dev/null +++ b/client/FastCommentsSwift/Models/PutDomainConfigResponse.swift @@ -0,0 +1,41 @@ +// +// PutDomainConfigResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct PutDomainConfigResponse: Sendable, Codable, Hashable { + + public var configuration: JSONValue? + public var status: JSONValue? + public var reason: String? + public var code: String? + + public init(configuration: JSONValue? = nil, status: JSONValue?, reason: String? = nil, code: String? = nil) { + self.configuration = configuration + self.status = status + self.reason = reason + self.code = code + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case configuration + case status + case reason + case code + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(configuration, forKey: .configuration) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(reason, forKey: .reason) + try container.encodeIfPresent(code, forKey: .code) + } +} + diff --git a/client/FastCommentsSwift/Models/PutSSOUserAPIResponse.swift b/client/FastCommentsSwift/Models/PutSSOUserAPIResponse.swift index 358ebab..0ed3de2 100644 --- a/client/FastCommentsSwift/Models/PutSSOUserAPIResponse.swift +++ b/client/FastCommentsSwift/Models/PutSSOUserAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct PutSSOUserAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct PutSSOUserAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/QueryPredicate.swift b/client/FastCommentsSwift/Models/QueryPredicate.swift index 1c49745..ab9e438 100644 --- a/client/FastCommentsSwift/Models/QueryPredicate.swift +++ b/client/FastCommentsSwift/Models/QueryPredicate.swift @@ -7,7 +7,7 @@ import Foundation -public struct QueryPredicate: Sendable, Codable, ParameterConvertible, Hashable { +public struct QueryPredicate: Sendable, Codable, Hashable { public enum Operator: String, Sendable, Codable, CaseIterable { case eq = "eq" diff --git a/client/FastCommentsSwift/Models/QueryPredicateValue.swift b/client/FastCommentsSwift/Models/QueryPredicateValue.swift index e52a036..cefe6f9 100644 --- a/client/FastCommentsSwift/Models/QueryPredicateValue.swift +++ b/client/FastCommentsSwift/Models/QueryPredicateValue.swift @@ -7,7 +7,7 @@ import Foundation -public struct QueryPredicateValue: Sendable, Codable, ParameterConvertible, Hashable { +public struct QueryPredicateValue: Sendable, Codable, Hashable { public enum CodingKeys: CodingKey, CaseIterable { diff --git a/client/FastCommentsSwift/Models/QuestionConfig.swift b/client/FastCommentsSwift/Models/QuestionConfig.swift index 4b7295c..3782cf5 100644 --- a/client/FastCommentsSwift/Models/QuestionConfig.swift +++ b/client/FastCommentsSwift/Models/QuestionConfig.swift @@ -7,7 +7,7 @@ import Foundation -public struct QuestionConfig: Sendable, Codable, ParameterConvertible, Hashable { +public struct QuestionConfig: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/QuestionConfigCustomOptionsInner.swift b/client/FastCommentsSwift/Models/QuestionConfigCustomOptionsInner.swift index 0bca3fd..3cb72a5 100644 --- a/client/FastCommentsSwift/Models/QuestionConfigCustomOptionsInner.swift +++ b/client/FastCommentsSwift/Models/QuestionConfigCustomOptionsInner.swift @@ -7,7 +7,7 @@ import Foundation -public struct QuestionConfigCustomOptionsInner: Sendable, Codable, ParameterConvertible, Hashable { +public struct QuestionConfigCustomOptionsInner: Sendable, Codable, Hashable { public var imageSrc: String public var name: String diff --git a/client/FastCommentsSwift/Models/QuestionDatum.swift b/client/FastCommentsSwift/Models/QuestionDatum.swift index 805a97c..ab40189 100644 --- a/client/FastCommentsSwift/Models/QuestionDatum.swift +++ b/client/FastCommentsSwift/Models/QuestionDatum.swift @@ -7,7 +7,7 @@ import Foundation -public struct QuestionDatum: Sendable, Codable, ParameterConvertible, Hashable { +public struct QuestionDatum: Sendable, Codable, Hashable { /** Construct a type with a set of properties K of type T */ public var v: [String: Double] diff --git a/client/FastCommentsSwift/Models/QuestionResult.swift b/client/FastCommentsSwift/Models/QuestionResult.swift index 76a9adb..0b5a78d 100644 --- a/client/FastCommentsSwift/Models/QuestionResult.swift +++ b/client/FastCommentsSwift/Models/QuestionResult.swift @@ -7,7 +7,7 @@ import Foundation -public struct QuestionResult: Sendable, Codable, ParameterConvertible, Hashable { +public struct QuestionResult: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/QuestionResultAggregationOverall.swift b/client/FastCommentsSwift/Models/QuestionResultAggregationOverall.swift index f928279..7cb35b0 100644 --- a/client/FastCommentsSwift/Models/QuestionResultAggregationOverall.swift +++ b/client/FastCommentsSwift/Models/QuestionResultAggregationOverall.swift @@ -7,7 +7,7 @@ import Foundation -public struct QuestionResultAggregationOverall: Sendable, Codable, ParameterConvertible, Hashable { +public struct QuestionResultAggregationOverall: Sendable, Codable, Hashable { /** Construct a type with a set of properties K of type T */ public var dataByDateBucket: [String: QuestionDatum]? diff --git a/client/FastCommentsSwift/Models/ReactBodyParams.swift b/client/FastCommentsSwift/Models/ReactBodyParams.swift index 73fac69..5a6584d 100644 --- a/client/FastCommentsSwift/Models/ReactBodyParams.swift +++ b/client/FastCommentsSwift/Models/ReactBodyParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct ReactBodyParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct ReactBodyParams: Sendable, Codable, Hashable { public var reactType: String? diff --git a/client/FastCommentsSwift/Models/ReactFeedPostPublic200Response.swift b/client/FastCommentsSwift/Models/ReactFeedPostPublic200Response.swift deleted file mode 100644 index 3d46e91..0000000 --- a/client/FastCommentsSwift/Models/ReactFeedPostPublic200Response.swift +++ /dev/null @@ -1,65 +0,0 @@ -// -// ReactFeedPostPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct ReactFeedPostPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var reactType: String? - public var isUndo: Bool? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, reactType: String? = nil, isUndo: Bool? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.reactType = reactType - self.isUndo = isUndo - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case reactType - case isUndo - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reactType, forKey: .reactType) - try container.encodeIfPresent(isUndo, forKey: .isUndo) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/ReactFeedPostResponse.swift b/client/FastCommentsSwift/Models/ReactFeedPostResponse.swift index a347cd8..8fd7b62 100644 --- a/client/FastCommentsSwift/Models/ReactFeedPostResponse.swift +++ b/client/FastCommentsSwift/Models/ReactFeedPostResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct ReactFeedPostResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct ReactFeedPostResponse: Sendable, Codable, Hashable { public var status: APIStatus public var reactType: String diff --git a/client/FastCommentsSwift/Models/RecordStringBeforeStringOrNullAfterStringOrNullValue.swift b/client/FastCommentsSwift/Models/RecordStringBeforeStringOrNullAfterStringOrNullValue.swift index 3338675..58b931c 100644 --- a/client/FastCommentsSwift/Models/RecordStringBeforeStringOrNullAfterStringOrNullValue.swift +++ b/client/FastCommentsSwift/Models/RecordStringBeforeStringOrNullAfterStringOrNullValue.swift @@ -7,7 +7,7 @@ import Foundation -public struct RecordStringBeforeStringOrNullAfterStringOrNullValue: Sendable, Codable, ParameterConvertible, Hashable { +public struct RecordStringBeforeStringOrNullAfterStringOrNullValue: Sendable, Codable, Hashable { public var after: String? public var before: String? diff --git a/client/FastCommentsSwift/Models/RemoveCommentActionResponse.swift b/client/FastCommentsSwift/Models/RemoveCommentActionResponse.swift new file mode 100644 index 0000000..a9fff49 --- /dev/null +++ b/client/FastCommentsSwift/Models/RemoveCommentActionResponse.swift @@ -0,0 +1,33 @@ +// +// RemoveCommentActionResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct RemoveCommentActionResponse: Sendable, Codable, Hashable { + + public var status: String + public var action: String + + public init(status: String, action: String) { + self.status = status + self.action = action + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case action + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encode(action, forKey: .action) + } +} + diff --git a/client/FastCommentsSwift/Models/RemoveUserBadgeResponse.swift b/client/FastCommentsSwift/Models/RemoveUserBadgeResponse.swift new file mode 100644 index 0000000..18c7e8a --- /dev/null +++ b/client/FastCommentsSwift/Models/RemoveUserBadgeResponse.swift @@ -0,0 +1,33 @@ +// +// RemoveUserBadgeResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct RemoveUserBadgeResponse: Sendable, Codable, Hashable { + + public var badges: [CommentUserBadgeInfo]? + public var status: APIStatus + + public init(badges: [CommentUserBadgeInfo]? = nil, status: APIStatus) { + self.badges = badges + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case badges + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(badges, forKey: .badges) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/RenderEmailTemplate200Response.swift b/client/FastCommentsSwift/Models/RenderEmailTemplate200Response.swift deleted file mode 100644 index 534b9ab..0000000 --- a/client/FastCommentsSwift/Models/RenderEmailTemplate200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// RenderEmailTemplate200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct RenderEmailTemplate200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var html: String? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, html: String? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.html = html - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case html - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(html, forKey: .html) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/RenderEmailTemplateBody.swift b/client/FastCommentsSwift/Models/RenderEmailTemplateBody.swift index fb6e76d..d506cb0 100644 --- a/client/FastCommentsSwift/Models/RenderEmailTemplateBody.swift +++ b/client/FastCommentsSwift/Models/RenderEmailTemplateBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct RenderEmailTemplateBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct RenderEmailTemplateBody: Sendable, Codable, Hashable { public var emailTemplateId: String public var ejs: String diff --git a/client/FastCommentsSwift/Models/RenderEmailTemplateResponse.swift b/client/FastCommentsSwift/Models/RenderEmailTemplateResponse.swift index 8999006..ee67b91 100644 --- a/client/FastCommentsSwift/Models/RenderEmailTemplateResponse.swift +++ b/client/FastCommentsSwift/Models/RenderEmailTemplateResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct RenderEmailTemplateResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct RenderEmailTemplateResponse: Sendable, Codable, Hashable { public var status: APIStatus public var html: String diff --git a/client/FastCommentsSwift/Models/RenderableUserNotification.swift b/client/FastCommentsSwift/Models/RenderableUserNotification.swift index f52e692..1f1272c 100644 --- a/client/FastCommentsSwift/Models/RenderableUserNotification.swift +++ b/client/FastCommentsSwift/Models/RenderableUserNotification.swift @@ -7,7 +7,7 @@ import Foundation -public struct RenderableUserNotification: Sendable, Codable, ParameterConvertible, Hashable { +public struct RenderableUserNotification: Sendable, Codable, Hashable { public var conversationId: String? public var contextHTML: String? diff --git a/client/FastCommentsSwift/Models/ReplaceTenantPackageBody.swift b/client/FastCommentsSwift/Models/ReplaceTenantPackageBody.swift index 0b403df..07c4c8b 100644 --- a/client/FastCommentsSwift/Models/ReplaceTenantPackageBody.swift +++ b/client/FastCommentsSwift/Models/ReplaceTenantPackageBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct ReplaceTenantPackageBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct ReplaceTenantPackageBody: Sendable, Codable, Hashable { public var name: String public var monthlyCostUSD: Double diff --git a/client/FastCommentsSwift/Models/ReplaceTenantUserBody.swift b/client/FastCommentsSwift/Models/ReplaceTenantUserBody.swift index 3024359..57d03ea 100644 --- a/client/FastCommentsSwift/Models/ReplaceTenantUserBody.swift +++ b/client/FastCommentsSwift/Models/ReplaceTenantUserBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct ReplaceTenantUserBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct ReplaceTenantUserBody: Sendable, Codable, Hashable { public var username: String public var email: String diff --git a/client/FastCommentsSwift/Models/ResetUserNotifications200Response.swift b/client/FastCommentsSwift/Models/ResetUserNotifications200Response.swift deleted file mode 100644 index f95c613..0000000 --- a/client/FastCommentsSwift/Models/ResetUserNotifications200Response.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// ResetUserNotifications200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct ResetUserNotifications200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var code: String? - public var reason: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, code: String? = nil, reason: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.code = code - self.reason = reason - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case code - case reason - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/ResetUserNotificationsResponse.swift b/client/FastCommentsSwift/Models/ResetUserNotificationsResponse.swift index a1b7705..e239803 100644 --- a/client/FastCommentsSwift/Models/ResetUserNotificationsResponse.swift +++ b/client/FastCommentsSwift/Models/ResetUserNotificationsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct ResetUserNotificationsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct ResetUserNotificationsResponse: Sendable, Codable, Hashable { public enum Code: String, Sendable, Codable, CaseIterable { case ignoredSinceImpersonated = "ignored-since-impersonated" diff --git a/client/FastCommentsSwift/Models/SaveCommentResponseOptimized.swift b/client/FastCommentsSwift/Models/SaveCommentResponseOptimized.swift index a0bbfc7..63ae343 100644 --- a/client/FastCommentsSwift/Models/SaveCommentResponseOptimized.swift +++ b/client/FastCommentsSwift/Models/SaveCommentResponseOptimized.swift @@ -7,7 +7,7 @@ import Foundation -public struct SaveCommentResponseOptimized: Sendable, Codable, ParameterConvertible, Hashable { +public struct SaveCommentResponseOptimized: Sendable, Codable, Hashable { public var status: APIStatus public var comment: PublicComment diff --git a/client/FastCommentsSwift/Models/SaveComment200Response.swift b/client/FastCommentsSwift/Models/SaveCommentsBulkResponse.swift similarity index 95% rename from client/FastCommentsSwift/Models/SaveComment200Response.swift rename to client/FastCommentsSwift/Models/SaveCommentsBulkResponse.swift index 7416817..8087ffd 100644 --- a/client/FastCommentsSwift/Models/SaveComment200Response.swift +++ b/client/FastCommentsSwift/Models/SaveCommentsBulkResponse.swift @@ -1,5 +1,5 @@ // -// SaveComment200Response.swift +// SaveCommentsBulkResponse.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct SaveComment200Response: Sendable, Codable, ParameterConvertible, Hashable { +public struct SaveCommentsBulkResponse: Sendable, Codable, Hashable { public var status: APIStatus public var comment: APIComment? diff --git a/client/FastCommentsSwift/Models/SaveCommentsResponseWithPresence.swift b/client/FastCommentsSwift/Models/SaveCommentsResponseWithPresence.swift index 8cca92e..919a5c1 100644 --- a/client/FastCommentsSwift/Models/SaveCommentsResponseWithPresence.swift +++ b/client/FastCommentsSwift/Models/SaveCommentsResponseWithPresence.swift @@ -7,7 +7,7 @@ import Foundation -public struct SaveCommentsResponseWithPresence: Sendable, Codable, ParameterConvertible, Hashable { +public struct SaveCommentsResponseWithPresence: Sendable, Codable, Hashable { public var status: APIStatus public var comment: PublicComment diff --git a/client/FastCommentsSwift/Models/SearchUsers200Response.swift b/client/FastCommentsSwift/Models/SearchUsers200Response.swift deleted file mode 100644 index 4648a39..0000000 --- a/client/FastCommentsSwift/Models/SearchUsers200Response.swift +++ /dev/null @@ -1,65 +0,0 @@ -// -// SearchUsers200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct SearchUsers200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var sections: [UserSearchSectionResult]? - public var users: [UserSearchResult]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, sections: [UserSearchSectionResult]? = nil, users: [UserSearchResult]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.sections = sections - self.users = users - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case sections - case users - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(sections, forKey: .sections) - try container.encodeIfPresent(users, forKey: .users) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/SearchUsersResponse.swift b/client/FastCommentsSwift/Models/SearchUsersResponse.swift index 946849b..3fb5ebb 100644 --- a/client/FastCommentsSwift/Models/SearchUsersResponse.swift +++ b/client/FastCommentsSwift/Models/SearchUsersResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct SearchUsersResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct SearchUsersResponse: Sendable, Codable, Hashable { public var status: APIStatus public var users: [UserSearchResult] diff --git a/client/FastCommentsSwift/Models/SearchUsersResult.swift b/client/FastCommentsSwift/Models/SearchUsersResult.swift new file mode 100644 index 0000000..d454003 --- /dev/null +++ b/client/FastCommentsSwift/Models/SearchUsersResult.swift @@ -0,0 +1,37 @@ +// +// SearchUsersResult.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct SearchUsersResult: Sendable, Codable, Hashable { + + public var status: APIStatus + public var sections: [UserSearchSectionResult]? + public var users: [UserSearchResult]? + + public init(status: APIStatus, sections: [UserSearchSectionResult]? = nil, users: [UserSearchResult]? = nil) { + self.status = status + self.sections = sections + self.users = users + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case sections + case users + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(sections, forKey: .sections) + try container.encodeIfPresent(users, forKey: .users) + } +} + diff --git a/client/FastCommentsSwift/Models/SearchUsersSectionedResponse.swift b/client/FastCommentsSwift/Models/SearchUsersSectionedResponse.swift index 3ab6283..67840f9 100644 --- a/client/FastCommentsSwift/Models/SearchUsersSectionedResponse.swift +++ b/client/FastCommentsSwift/Models/SearchUsersSectionedResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct SearchUsersSectionedResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct SearchUsersSectionedResponse: Sendable, Codable, Hashable { public var status: APIStatus public var sections: [UserSearchSectionResult] diff --git a/client/FastCommentsSwift/Models/SetCommentApprovedResponse.swift b/client/FastCommentsSwift/Models/SetCommentApprovedResponse.swift new file mode 100644 index 0000000..024e811 --- /dev/null +++ b/client/FastCommentsSwift/Models/SetCommentApprovedResponse.swift @@ -0,0 +1,33 @@ +// +// SetCommentApprovedResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct SetCommentApprovedResponse: Sendable, Codable, Hashable { + + public var didResetFlaggedCount: Bool? + public var status: APIStatus + + public init(didResetFlaggedCount: Bool? = nil, status: APIStatus) { + self.didResetFlaggedCount = didResetFlaggedCount + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case didResetFlaggedCount + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(didResetFlaggedCount, forKey: .didResetFlaggedCount) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/SetCommentText200Response.swift b/client/FastCommentsSwift/Models/SetCommentText200Response.swift deleted file mode 100644 index 89f914e..0000000 --- a/client/FastCommentsSwift/Models/SetCommentText200Response.swift +++ /dev/null @@ -1,61 +0,0 @@ -// -// SetCommentText200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct SetCommentText200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var comment: SetCommentTextResult? - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(comment: SetCommentTextResult? = nil, status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.comment = comment - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case comment - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encodeIfPresent(comment, forKey: .comment) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/SetCommentTextParams.swift b/client/FastCommentsSwift/Models/SetCommentTextParams.swift new file mode 100644 index 0000000..b3bde19 --- /dev/null +++ b/client/FastCommentsSwift/Models/SetCommentTextParams.swift @@ -0,0 +1,29 @@ +// +// SetCommentTextParams.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct SetCommentTextParams: Sendable, Codable, Hashable { + + public var comment: String + + public init(comment: String) { + self.comment = comment + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case comment + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(comment, forKey: .comment) + } +} + diff --git a/client/FastCommentsSwift/Models/SetCommentTextResponse.swift b/client/FastCommentsSwift/Models/SetCommentTextResponse.swift new file mode 100644 index 0000000..985ca89 --- /dev/null +++ b/client/FastCommentsSwift/Models/SetCommentTextResponse.swift @@ -0,0 +1,33 @@ +// +// SetCommentTextResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct SetCommentTextResponse: Sendable, Codable, Hashable { + + public var newCommentTextHTML: String + public var status: APIStatus + + public init(newCommentTextHTML: String, status: APIStatus) { + self.newCommentTextHTML = newCommentTextHTML + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case newCommentTextHTML + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(newCommentTextHTML, forKey: .newCommentTextHTML) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/SetCommentTextResult.swift b/client/FastCommentsSwift/Models/SetCommentTextResult.swift index d578734..d59a4dc 100644 --- a/client/FastCommentsSwift/Models/SetCommentTextResult.swift +++ b/client/FastCommentsSwift/Models/SetCommentTextResult.swift @@ -7,7 +7,7 @@ import Foundation -public struct SetCommentTextResult: Sendable, Codable, ParameterConvertible, Hashable { +public struct SetCommentTextResult: Sendable, Codable, Hashable { public var approved: Bool public var commentHTML: String diff --git a/client/FastCommentsSwift/Models/SetUserTrustFactorResponse.swift b/client/FastCommentsSwift/Models/SetUserTrustFactorResponse.swift new file mode 100644 index 0000000..a8f5fe7 --- /dev/null +++ b/client/FastCommentsSwift/Models/SetUserTrustFactorResponse.swift @@ -0,0 +1,33 @@ +// +// SetUserTrustFactorResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct SetUserTrustFactorResponse: Sendable, Codable, Hashable { + + public var previousManualTrustFactor: Double? + public var status: APIStatus + + public init(previousManualTrustFactor: Double? = nil, status: APIStatus) { + self.previousManualTrustFactor = previousManualTrustFactor + self.status = status + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case previousManualTrustFactor + case status + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encodeIfPresent(previousManualTrustFactor, forKey: .previousManualTrustFactor) + try container.encode(status, forKey: .status) + } +} + diff --git a/client/FastCommentsSwift/Models/SpamRule.swift b/client/FastCommentsSwift/Models/SpamRule.swift index 126664f..ae1b295 100644 --- a/client/FastCommentsSwift/Models/SpamRule.swift +++ b/client/FastCommentsSwift/Models/SpamRule.swift @@ -7,7 +7,7 @@ import Foundation -public struct SpamRule: Sendable, Codable, ParameterConvertible, Hashable { +public struct SpamRule: Sendable, Codable, Hashable { public enum Actions: String, Sendable, Codable, CaseIterable { case spam = "spam" diff --git a/client/FastCommentsSwift/Models/TOSConfig.swift b/client/FastCommentsSwift/Models/TOSConfig.swift index 2e32faf..c9ca1a3 100644 --- a/client/FastCommentsSwift/Models/TOSConfig.swift +++ b/client/FastCommentsSwift/Models/TOSConfig.swift @@ -7,7 +7,7 @@ import Foundation -public struct TOSConfig: Sendable, Codable, ParameterConvertible, Hashable { +public struct TOSConfig: Sendable, Codable, Hashable { public var enabled: Bool? /** Construct a type with a set of properties K of type T */ diff --git a/client/FastCommentsSwift/Models/TenantBadge.swift b/client/FastCommentsSwift/Models/TenantBadge.swift new file mode 100644 index 0000000..0808ed0 --- /dev/null +++ b/client/FastCommentsSwift/Models/TenantBadge.swift @@ -0,0 +1,109 @@ +// +// TenantBadge.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct TenantBadge: Sendable, Codable, Hashable { + + public var id: String + public var tenantId: String + public var createdByUserId: String + public var createdAt: Date + public var enabled: Bool + public var urlId: String? + public var type: Double + public var threshold: Double + public var uses: Double + public var name: String + public var description: String + public var displayLabel: String + public var displaySrc: String? + public var backgroundColor: String? + public var borderColor: String? + public var textColor: String? + public var cssClass: String? + public var veteranUserThresholdMillis: Double? + public var isAwaitingReprocess: Bool + public var isAwaitingDeletion: Bool + public var replacesBadgeId: String? + + public init(id: String, tenantId: String, createdByUserId: String, createdAt: Date, enabled: Bool, urlId: String? = nil, type: Double, threshold: Double, uses: Double, name: String, description: String, displayLabel: String, displaySrc: String?, backgroundColor: String?, borderColor: String?, textColor: String?, cssClass: String? = nil, veteranUserThresholdMillis: Double? = nil, isAwaitingReprocess: Bool, isAwaitingDeletion: Bool, replacesBadgeId: String? = nil) { + self.id = id + self.tenantId = tenantId + self.createdByUserId = createdByUserId + self.createdAt = createdAt + self.enabled = enabled + self.urlId = urlId + self.type = type + self.threshold = threshold + self.uses = uses + self.name = name + self.description = description + self.displayLabel = displayLabel + self.displaySrc = displaySrc + self.backgroundColor = backgroundColor + self.borderColor = borderColor + self.textColor = textColor + self.cssClass = cssClass + self.veteranUserThresholdMillis = veteranUserThresholdMillis + self.isAwaitingReprocess = isAwaitingReprocess + self.isAwaitingDeletion = isAwaitingDeletion + self.replacesBadgeId = replacesBadgeId + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case id = "_id" + case tenantId + case createdByUserId + case createdAt + case enabled + case urlId + case type + case threshold + case uses + case name + case description + case displayLabel + case displaySrc + case backgroundColor + case borderColor + case textColor + case cssClass + case veteranUserThresholdMillis + case isAwaitingReprocess + case isAwaitingDeletion + case replacesBadgeId + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(id, forKey: .id) + try container.encode(tenantId, forKey: .tenantId) + try container.encode(createdByUserId, forKey: .createdByUserId) + try container.encode(createdAt, forKey: .createdAt) + try container.encode(enabled, forKey: .enabled) + try container.encodeIfPresent(urlId, forKey: .urlId) + try container.encode(type, forKey: .type) + try container.encode(threshold, forKey: .threshold) + try container.encode(uses, forKey: .uses) + try container.encode(name, forKey: .name) + try container.encode(description, forKey: .description) + try container.encode(displayLabel, forKey: .displayLabel) + try container.encode(displaySrc, forKey: .displaySrc) + try container.encode(backgroundColor, forKey: .backgroundColor) + try container.encode(borderColor, forKey: .borderColor) + try container.encode(textColor, forKey: .textColor) + try container.encodeIfPresent(cssClass, forKey: .cssClass) + try container.encodeIfPresent(veteranUserThresholdMillis, forKey: .veteranUserThresholdMillis) + try container.encode(isAwaitingReprocess, forKey: .isAwaitingReprocess) + try container.encode(isAwaitingDeletion, forKey: .isAwaitingDeletion) + try container.encodeIfPresent(replacesBadgeId, forKey: .replacesBadgeId) + } +} + diff --git a/client/FastCommentsSwift/Models/TenantHashTag.swift b/client/FastCommentsSwift/Models/TenantHashTag.swift index e3d5d48..2682403 100644 --- a/client/FastCommentsSwift/Models/TenantHashTag.swift +++ b/client/FastCommentsSwift/Models/TenantHashTag.swift @@ -7,7 +7,7 @@ import Foundation -public struct TenantHashTag: Sendable, Codable, ParameterConvertible, Hashable { +public struct TenantHashTag: Sendable, Codable, Hashable { public var id: String public var createdAt: Date diff --git a/client/FastCommentsSwift/Models/TenantPackage.swift b/client/FastCommentsSwift/Models/TenantPackage.swift index 6f5c415..ba5bed2 100644 --- a/client/FastCommentsSwift/Models/TenantPackage.swift +++ b/client/FastCommentsSwift/Models/TenantPackage.swift @@ -7,12 +7,13 @@ import Foundation -public struct TenantPackage: Sendable, Codable, ParameterConvertible, Hashable { +public struct TenantPackage: Sendable, Codable, Hashable { public var id: String public var name: String public var tenantId: String public var createdAt: Date + public var templateId: String? public var monthlyCostUSD: Double? public var yearlyCostUSD: Double? public var monthlyStripePlanId: String? @@ -65,12 +66,17 @@ public struct TenantPackage: Sendable, Codable, ParameterConvertible, Hashable { public var flexSSOModeratorCostCents: Double? public var flexSSOModeratorUnit: Double? public var isSSOBillingMonthlyActiveUsers: Bool? + public var hasAIAgents: Bool? + public var maxAIAgents: Double? + public var aiAgentDailyBudgetCents: Double? + public var aiAgentMonthlyBudgetCents: Double? - public init(id: String, name: String, tenantId: String, createdAt: Date, monthlyCostUSD: Double?, yearlyCostUSD: Double?, monthlyStripePlanId: String?, yearlyStripePlanId: String?, maxMonthlyPageLoads: Double, maxMonthlyAPICredits: Double, maxMonthlySmallWidgetsCredits: Double, maxMonthlyComments: Double, maxConcurrentUsers: Double, maxTenantUsers: Double, maxSSOUsers: Double, maxModerators: Double, maxDomains: Double, maxWhiteLabeledTenants: Double, maxMonthlyEventLogRequests: Double, maxCustomCollectionSize: Double, hasWhiteLabeling: Bool, hasDebranding: Bool, hasLLMSpamDetection: Bool, forWhoText: String, featureTaglines: [String], hasAuditing: Bool, hasFlexPricing: Bool, enableSAML: Bool? = nil, enableCanvasLTI: Bool? = nil, flexPageLoadCostCents: Double? = nil, flexPageLoadUnit: Double? = nil, flexCommentCostCents: Double? = nil, flexCommentUnit: Double? = nil, flexSSOUserCostCents: Double? = nil, flexSSOUserUnit: Double? = nil, flexAPICreditCostCents: Double? = nil, flexAPICreditUnit: Double? = nil, flexSmallWidgetsCreditCostCents: Double? = nil, flexSmallWidgetsCreditUnit: Double? = nil, flexModeratorCostCents: Double? = nil, flexModeratorUnit: Double? = nil, flexAdminCostCents: Double? = nil, flexAdminUnit: Double? = nil, flexDomainCostCents: Double? = nil, flexDomainUnit: Double? = nil, flexChatGPTCostCents: Double? = nil, flexChatGPTUnit: Double? = nil, flexLLMCostCents: Double? = nil, flexLLMUnit: Double? = nil, flexMinimumCostCents: Double? = nil, flexManagedTenantCostCents: Double? = nil, flexSSOAdminCostCents: Double? = nil, flexSSOAdminUnit: Double? = nil, flexSSOModeratorCostCents: Double? = nil, flexSSOModeratorUnit: Double? = nil, isSSOBillingMonthlyActiveUsers: Bool? = nil) { + public init(id: String, name: String, tenantId: String, createdAt: Date, templateId: String? = nil, monthlyCostUSD: Double?, yearlyCostUSD: Double?, monthlyStripePlanId: String?, yearlyStripePlanId: String?, maxMonthlyPageLoads: Double, maxMonthlyAPICredits: Double, maxMonthlySmallWidgetsCredits: Double, maxMonthlyComments: Double, maxConcurrentUsers: Double, maxTenantUsers: Double, maxSSOUsers: Double, maxModerators: Double, maxDomains: Double, maxWhiteLabeledTenants: Double, maxMonthlyEventLogRequests: Double, maxCustomCollectionSize: Double, hasWhiteLabeling: Bool, hasDebranding: Bool, hasLLMSpamDetection: Bool, forWhoText: String, featureTaglines: [String], hasAuditing: Bool, hasFlexPricing: Bool, enableSAML: Bool? = nil, enableCanvasLTI: Bool? = nil, flexPageLoadCostCents: Double? = nil, flexPageLoadUnit: Double? = nil, flexCommentCostCents: Double? = nil, flexCommentUnit: Double? = nil, flexSSOUserCostCents: Double? = nil, flexSSOUserUnit: Double? = nil, flexAPICreditCostCents: Double? = nil, flexAPICreditUnit: Double? = nil, flexSmallWidgetsCreditCostCents: Double? = nil, flexSmallWidgetsCreditUnit: Double? = nil, flexModeratorCostCents: Double? = nil, flexModeratorUnit: Double? = nil, flexAdminCostCents: Double? = nil, flexAdminUnit: Double? = nil, flexDomainCostCents: Double? = nil, flexDomainUnit: Double? = nil, flexChatGPTCostCents: Double? = nil, flexChatGPTUnit: Double? = nil, flexLLMCostCents: Double? = nil, flexLLMUnit: Double? = nil, flexMinimumCostCents: Double? = nil, flexManagedTenantCostCents: Double? = nil, flexSSOAdminCostCents: Double? = nil, flexSSOAdminUnit: Double? = nil, flexSSOModeratorCostCents: Double? = nil, flexSSOModeratorUnit: Double? = nil, isSSOBillingMonthlyActiveUsers: Bool? = nil, hasAIAgents: Bool? = nil, maxAIAgents: Double? = nil, aiAgentDailyBudgetCents: Double? = nil, aiAgentMonthlyBudgetCents: Double? = nil) { self.id = id self.name = name self.tenantId = tenantId self.createdAt = createdAt + self.templateId = templateId self.monthlyCostUSD = monthlyCostUSD self.yearlyCostUSD = yearlyCostUSD self.monthlyStripePlanId = monthlyStripePlanId @@ -123,6 +129,10 @@ public struct TenantPackage: Sendable, Codable, ParameterConvertible, Hashable { self.flexSSOModeratorCostCents = flexSSOModeratorCostCents self.flexSSOModeratorUnit = flexSSOModeratorUnit self.isSSOBillingMonthlyActiveUsers = isSSOBillingMonthlyActiveUsers + self.hasAIAgents = hasAIAgents + self.maxAIAgents = maxAIAgents + self.aiAgentDailyBudgetCents = aiAgentDailyBudgetCents + self.aiAgentMonthlyBudgetCents = aiAgentMonthlyBudgetCents } public enum CodingKeys: String, CodingKey, CaseIterable { @@ -130,6 +140,7 @@ public struct TenantPackage: Sendable, Codable, ParameterConvertible, Hashable { case name case tenantId case createdAt + case templateId case monthlyCostUSD case yearlyCostUSD case monthlyStripePlanId @@ -182,6 +193,10 @@ public struct TenantPackage: Sendable, Codable, ParameterConvertible, Hashable { case flexSSOModeratorCostCents case flexSSOModeratorUnit case isSSOBillingMonthlyActiveUsers + case hasAIAgents + case maxAIAgents + case aiAgentDailyBudgetCents + case aiAgentMonthlyBudgetCents } // Encodable protocol methods @@ -192,6 +207,7 @@ public struct TenantPackage: Sendable, Codable, ParameterConvertible, Hashable { try container.encode(name, forKey: .name) try container.encode(tenantId, forKey: .tenantId) try container.encode(createdAt, forKey: .createdAt) + try container.encodeIfPresent(templateId, forKey: .templateId) try container.encode(monthlyCostUSD, forKey: .monthlyCostUSD) try container.encode(yearlyCostUSD, forKey: .yearlyCostUSD) try container.encode(monthlyStripePlanId, forKey: .monthlyStripePlanId) @@ -244,6 +260,10 @@ public struct TenantPackage: Sendable, Codable, ParameterConvertible, Hashable { try container.encodeIfPresent(flexSSOModeratorCostCents, forKey: .flexSSOModeratorCostCents) try container.encodeIfPresent(flexSSOModeratorUnit, forKey: .flexSSOModeratorUnit) try container.encodeIfPresent(isSSOBillingMonthlyActiveUsers, forKey: .isSSOBillingMonthlyActiveUsers) + try container.encodeIfPresent(hasAIAgents, forKey: .hasAIAgents) + try container.encodeIfPresent(maxAIAgents, forKey: .maxAIAgents) + try container.encodeIfPresent(aiAgentDailyBudgetCents, forKey: .aiAgentDailyBudgetCents) + try container.encodeIfPresent(aiAgentMonthlyBudgetCents, forKey: .aiAgentMonthlyBudgetCents) } } diff --git a/client/FastCommentsSwift/Models/UnBlockCommentPublic200Response.swift b/client/FastCommentsSwift/Models/UnBlockCommentPublic200Response.swift deleted file mode 100644 index e3f8ddb..0000000 --- a/client/FastCommentsSwift/Models/UnBlockCommentPublic200Response.swift +++ /dev/null @@ -1,62 +0,0 @@ -// -// UnBlockCommentPublic200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct UnBlockCommentPublic200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - /** Construct a type with a set of properties K of type T */ - public var commentStatuses: [String: Bool]? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, commentStatuses: [String: Bool]? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.commentStatuses = commentStatuses - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case commentStatuses - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(commentStatuses, forKey: .commentStatuses) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/UnBlockFromCommentParams.swift b/client/FastCommentsSwift/Models/UnBlockFromCommentParams.swift index 794384e..94f019c 100644 --- a/client/FastCommentsSwift/Models/UnBlockFromCommentParams.swift +++ b/client/FastCommentsSwift/Models/UnBlockFromCommentParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct UnBlockFromCommentParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct UnBlockFromCommentParams: Sendable, Codable, Hashable { public var commentIdsToCheck: [String]? diff --git a/client/FastCommentsSwift/Models/UnblockSuccess.swift b/client/FastCommentsSwift/Models/UnblockSuccess.swift index 78dfef7..e02b48f 100644 --- a/client/FastCommentsSwift/Models/UnblockSuccess.swift +++ b/client/FastCommentsSwift/Models/UnblockSuccess.swift @@ -7,7 +7,7 @@ import Foundation -public struct UnblockSuccess: Sendable, Codable, ParameterConvertible, Hashable { +public struct UnblockSuccess: Sendable, Codable, Hashable { public var status: APIStatus /** Construct a type with a set of properties K of type T */ diff --git a/client/FastCommentsSwift/Models/UpdatableCommentParams.swift b/client/FastCommentsSwift/Models/UpdatableCommentParams.swift index ae976cf..946367f 100644 --- a/client/FastCommentsSwift/Models/UpdatableCommentParams.swift +++ b/client/FastCommentsSwift/Models/UpdatableCommentParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdatableCommentParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdatableCommentParams: Sendable, Codable, Hashable { public var urlId: String? public var urlIdRaw: String? diff --git a/client/FastCommentsSwift/Models/UpdateAPIPageData.swift b/client/FastCommentsSwift/Models/UpdateAPIPageData.swift index 371481c..10f17ba 100644 --- a/client/FastCommentsSwift/Models/UpdateAPIPageData.swift +++ b/client/FastCommentsSwift/Models/UpdateAPIPageData.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateAPIPageData: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateAPIPageData: Sendable, Codable, Hashable { public var isClosed: Bool? public var accessibleByGroupIds: [String]? diff --git a/client/FastCommentsSwift/Models/UpdateAPISSOUserData.swift b/client/FastCommentsSwift/Models/UpdateAPISSOUserData.swift index 2342415..ca1f410 100644 --- a/client/FastCommentsSwift/Models/UpdateAPISSOUserData.swift +++ b/client/FastCommentsSwift/Models/UpdateAPISSOUserData.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateAPISSOUserData: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateAPISSOUserData: Sendable, Codable, Hashable { public var groupIds: [String]? public var hasBlockedUsers: Bool? @@ -104,5 +104,4 @@ public struct UpdateAPISSOUserData: Sendable, Codable, ParameterConvertible, Has } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension UpdateAPISSOUserData: Identifiable {} diff --git a/client/FastCommentsSwift/Models/UpdateAPIUserSubscriptionData.swift b/client/FastCommentsSwift/Models/UpdateAPIUserSubscriptionData.swift index 5da9804..f03ffdc 100644 --- a/client/FastCommentsSwift/Models/UpdateAPIUserSubscriptionData.swift +++ b/client/FastCommentsSwift/Models/UpdateAPIUserSubscriptionData.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateAPIUserSubscriptionData: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateAPIUserSubscriptionData: Sendable, Codable, Hashable { public var notificationFrequency: Double? diff --git a/client/FastCommentsSwift/Models/UpdateDomainConfigParams.swift b/client/FastCommentsSwift/Models/UpdateDomainConfigParams.swift index e469872..5645429 100644 --- a/client/FastCommentsSwift/Models/UpdateDomainConfigParams.swift +++ b/client/FastCommentsSwift/Models/UpdateDomainConfigParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateDomainConfigParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateDomainConfigParams: Sendable, Codable, Hashable { public var domain: String public var emailFromName: String? diff --git a/client/FastCommentsSwift/Models/UpdateEmailTemplateBody.swift b/client/FastCommentsSwift/Models/UpdateEmailTemplateBody.swift index 808ff50..790018a 100644 --- a/client/FastCommentsSwift/Models/UpdateEmailTemplateBody.swift +++ b/client/FastCommentsSwift/Models/UpdateEmailTemplateBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateEmailTemplateBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateEmailTemplateBody: Sendable, Codable, Hashable { public var emailTemplateId: String? public var displayName: String? diff --git a/client/FastCommentsSwift/Models/UpdateFeedPostParams.swift b/client/FastCommentsSwift/Models/UpdateFeedPostParams.swift index e722546..478e150 100644 --- a/client/FastCommentsSwift/Models/UpdateFeedPostParams.swift +++ b/client/FastCommentsSwift/Models/UpdateFeedPostParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateFeedPostParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateFeedPostParams: Sendable, Codable, Hashable { public var title: String? public var contentHTML: String? diff --git a/client/FastCommentsSwift/Models/UpdateHashTagBody.swift b/client/FastCommentsSwift/Models/UpdateHashTagBody.swift index 4353f55..b942504 100644 --- a/client/FastCommentsSwift/Models/UpdateHashTagBody.swift +++ b/client/FastCommentsSwift/Models/UpdateHashTagBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateHashTagBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateHashTagBody: Sendable, Codable, Hashable { public var tenantId: String? public var url: String? diff --git a/client/FastCommentsSwift/Models/UpdateHashTagResponse.swift b/client/FastCommentsSwift/Models/UpdateHashTagResponse.swift index 398ea7d..e84d513 100644 --- a/client/FastCommentsSwift/Models/UpdateHashTagResponse.swift +++ b/client/FastCommentsSwift/Models/UpdateHashTagResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateHashTagResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateHashTagResponse: Sendable, Codable, Hashable { public var status: APIStatus public var hashTag: TenantHashTag diff --git a/client/FastCommentsSwift/Models/UpdateModeratorBody.swift b/client/FastCommentsSwift/Models/UpdateModeratorBody.swift index 925bd7a..2afb60b 100644 --- a/client/FastCommentsSwift/Models/UpdateModeratorBody.swift +++ b/client/FastCommentsSwift/Models/UpdateModeratorBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateModeratorBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateModeratorBody: Sendable, Codable, Hashable { public var name: String? public var email: String? diff --git a/client/FastCommentsSwift/Models/UpdateNotificationBody.swift b/client/FastCommentsSwift/Models/UpdateNotificationBody.swift index fbdf6da..efa1d47 100644 --- a/client/FastCommentsSwift/Models/UpdateNotificationBody.swift +++ b/client/FastCommentsSwift/Models/UpdateNotificationBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateNotificationBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateNotificationBody: Sendable, Codable, Hashable { public var viewed: Bool? public var optedOut: Bool? diff --git a/client/FastCommentsSwift/Models/UpdateQuestionConfigBody.swift b/client/FastCommentsSwift/Models/UpdateQuestionConfigBody.swift index f07f85b..cd300fa 100644 --- a/client/FastCommentsSwift/Models/UpdateQuestionConfigBody.swift +++ b/client/FastCommentsSwift/Models/UpdateQuestionConfigBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateQuestionConfigBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateQuestionConfigBody: Sendable, Codable, Hashable { public var name: String? public var question: String? diff --git a/client/FastCommentsSwift/Models/UpdateQuestionResultBody.swift b/client/FastCommentsSwift/Models/UpdateQuestionResultBody.swift index 3e75a70..80c69db 100644 --- a/client/FastCommentsSwift/Models/UpdateQuestionResultBody.swift +++ b/client/FastCommentsSwift/Models/UpdateQuestionResultBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateQuestionResultBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateQuestionResultBody: Sendable, Codable, Hashable { public var urlId: String? public var anonUserId: String? diff --git a/client/FastCommentsSwift/Models/UpdateSubscriptionAPIResponse.swift b/client/FastCommentsSwift/Models/UpdateSubscriptionAPIResponse.swift index 89c89c9..824a0ee 100644 --- a/client/FastCommentsSwift/Models/UpdateSubscriptionAPIResponse.swift +++ b/client/FastCommentsSwift/Models/UpdateSubscriptionAPIResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateSubscriptionAPIResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateSubscriptionAPIResponse: Sendable, Codable, Hashable { public var reason: String? public var code: String? diff --git a/client/FastCommentsSwift/Models/UpdateTenantBody.swift b/client/FastCommentsSwift/Models/UpdateTenantBody.swift index 53e0d7f..988cfcf 100644 --- a/client/FastCommentsSwift/Models/UpdateTenantBody.swift +++ b/client/FastCommentsSwift/Models/UpdateTenantBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateTenantBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateTenantBody: Sendable, Codable, Hashable { public var name: String? public var email: String? diff --git a/client/FastCommentsSwift/Models/UpdateTenantPackageBody.swift b/client/FastCommentsSwift/Models/UpdateTenantPackageBody.swift index f2a7ba6..fe62443 100644 --- a/client/FastCommentsSwift/Models/UpdateTenantPackageBody.swift +++ b/client/FastCommentsSwift/Models/UpdateTenantPackageBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateTenantPackageBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateTenantPackageBody: Sendable, Codable, Hashable { public var name: String? public var monthlyCostUSD: Double? diff --git a/client/FastCommentsSwift/Models/UpdateTenantUserBody.swift b/client/FastCommentsSwift/Models/UpdateTenantUserBody.swift index 266fa87..0740c26 100644 --- a/client/FastCommentsSwift/Models/UpdateTenantUserBody.swift +++ b/client/FastCommentsSwift/Models/UpdateTenantUserBody.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateTenantUserBody: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateTenantUserBody: Sendable, Codable, Hashable { public var username: String? public var displayName: String? diff --git a/client/FastCommentsSwift/Models/UpdateUserBadge200Response.swift b/client/FastCommentsSwift/Models/UpdateUserBadge200Response.swift deleted file mode 100644 index ac894cc..0000000 --- a/client/FastCommentsSwift/Models/UpdateUserBadge200Response.swift +++ /dev/null @@ -1,57 +0,0 @@ -// -// UpdateUserBadge200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct UpdateUserBadge200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/UpdateUserBadgeParams.swift b/client/FastCommentsSwift/Models/UpdateUserBadgeParams.swift index d3241c5..a90f578 100644 --- a/client/FastCommentsSwift/Models/UpdateUserBadgeParams.swift +++ b/client/FastCommentsSwift/Models/UpdateUserBadgeParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct UpdateUserBadgeParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct UpdateUserBadgeParams: Sendable, Codable, Hashable { public var displayedOnComments: Bool? diff --git a/client/FastCommentsSwift/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.swift b/client/FastCommentsSwift/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.swift new file mode 100644 index 0000000..0732d53 --- /dev/null +++ b/client/FastCommentsSwift/Models/UpdateUserNotificationCommentSubscriptionStatusResponse.swift @@ -0,0 +1,45 @@ +// +// UpdateUserNotificationCommentSubscriptionStatusResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct UpdateUserNotificationCommentSubscriptionStatusResponse: Sendable, Codable, Hashable { + + public enum Note: String, Sendable, Codable, CaseIterable { + case ignoredSinceImpersonated = "ignored-since-impersonated" + case demoNoop = "demo-noop" + } + public var status: APIStatus + public var matchedCount: Int64? + public var modifiedCount: Int64? + public var note: Note? + + public init(status: APIStatus, matchedCount: Int64? = nil, modifiedCount: Int64? = nil, note: Note? = nil) { + self.status = status + self.matchedCount = matchedCount + self.modifiedCount = modifiedCount + self.note = note + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case matchedCount + case modifiedCount + case note + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(matchedCount, forKey: .matchedCount) + try container.encodeIfPresent(modifiedCount, forKey: .modifiedCount) + try container.encodeIfPresent(note, forKey: .note) + } +} + diff --git a/client/FastCommentsSwift/Models/UpdateUserNotificationPageSubscriptionStatusResponse.swift b/client/FastCommentsSwift/Models/UpdateUserNotificationPageSubscriptionStatusResponse.swift new file mode 100644 index 0000000..ba8fe3e --- /dev/null +++ b/client/FastCommentsSwift/Models/UpdateUserNotificationPageSubscriptionStatusResponse.swift @@ -0,0 +1,45 @@ +// +// UpdateUserNotificationPageSubscriptionStatusResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct UpdateUserNotificationPageSubscriptionStatusResponse: Sendable, Codable, Hashable { + + public enum Note: String, Sendable, Codable, CaseIterable { + case ignoredSinceImpersonated = "ignored-since-impersonated" + case demoNoop = "demo-noop" + } + public var status: APIStatus + public var matchedCount: Int64? + public var modifiedCount: Int64? + public var note: Note? + + public init(status: APIStatus, matchedCount: Int64? = nil, modifiedCount: Int64? = nil, note: Note? = nil) { + self.status = status + self.matchedCount = matchedCount + self.modifiedCount = modifiedCount + self.note = note + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case matchedCount + case modifiedCount + case note + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(matchedCount, forKey: .matchedCount) + try container.encodeIfPresent(modifiedCount, forKey: .modifiedCount) + try container.encodeIfPresent(note, forKey: .note) + } +} + diff --git a/client/FastCommentsSwift/Models/UpdateUserNotificationStatus200Response.swift b/client/FastCommentsSwift/Models/UpdateUserNotificationStatus200Response.swift deleted file mode 100644 index 52409b9..0000000 --- a/client/FastCommentsSwift/Models/UpdateUserNotificationStatus200Response.swift +++ /dev/null @@ -1,73 +0,0 @@ -// -// UpdateUserNotificationStatus200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct UpdateUserNotificationStatus200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public enum Note: String, Sendable, Codable, CaseIterable { - case ignoredSinceImpersonated = "ignored-since-impersonated" - case demoNoop = "demo-noop" - } - public var status: APIStatus - public var matchedCount: Int64? - public var modifiedCount: Int64? - public var note: Note? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, matchedCount: Int64? = nil, modifiedCount: Int64? = nil, note: Note? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.matchedCount = matchedCount - self.modifiedCount = modifiedCount - self.note = note - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case matchedCount - case modifiedCount - case note - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(matchedCount, forKey: .matchedCount) - try container.encodeIfPresent(modifiedCount, forKey: .modifiedCount) - try container.encodeIfPresent(note, forKey: .note) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/UpdateUserNotificationStatusResponse.swift b/client/FastCommentsSwift/Models/UpdateUserNotificationStatusResponse.swift new file mode 100644 index 0000000..2b549a5 --- /dev/null +++ b/client/FastCommentsSwift/Models/UpdateUserNotificationStatusResponse.swift @@ -0,0 +1,45 @@ +// +// UpdateUserNotificationStatusResponse.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public struct UpdateUserNotificationStatusResponse: Sendable, Codable, Hashable { + + public enum Note: String, Sendable, Codable, CaseIterable { + case ignoredSinceImpersonated = "ignored-since-impersonated" + case demoNoop = "demo-noop" + } + public var status: APIStatus + public var matchedCount: Int64? + public var modifiedCount: Int64? + public var note: Note? + + public init(status: APIStatus, matchedCount: Int64? = nil, modifiedCount: Int64? = nil, note: Note? = nil) { + self.status = status + self.matchedCount = matchedCount + self.modifiedCount = modifiedCount + self.note = note + } + + public enum CodingKeys: String, CodingKey, CaseIterable { + case status + case matchedCount + case modifiedCount + case note + } + + // Encodable protocol methods + + public func encode(to encoder: Encoder) throws { + var container = encoder.container(keyedBy: CodingKeys.self) + try container.encode(status, forKey: .status) + try container.encodeIfPresent(matchedCount, forKey: .matchedCount) + try container.encodeIfPresent(modifiedCount, forKey: .modifiedCount) + try container.encodeIfPresent(note, forKey: .note) + } +} + diff --git a/client/FastCommentsSwift/Models/UploadImageResponse.swift b/client/FastCommentsSwift/Models/UploadImageResponse.swift index e8d7c1a..cbfece6 100644 --- a/client/FastCommentsSwift/Models/UploadImageResponse.swift +++ b/client/FastCommentsSwift/Models/UploadImageResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct UploadImageResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct UploadImageResponse: Sendable, Codable, Hashable { public var status: APIStatus public var url: String? diff --git a/client/FastCommentsSwift/Models/User.swift b/client/FastCommentsSwift/Models/User.swift index 9d7dcf5..e1f13ec 100644 --- a/client/FastCommentsSwift/Models/User.swift +++ b/client/FastCommentsSwift/Models/User.swift @@ -7,7 +7,7 @@ import Foundation -public struct User: Sendable, Codable, ParameterConvertible, Hashable { +public struct User: Sendable, Codable, Hashable { public var id: String public var tenantId: String? @@ -48,6 +48,7 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable { public var digestEmailFrequency: DigestEmailFrequency? public var notificationFrequency: Double? public var adminNotificationFrequency: Double? + public var agentApprovalNotificationFrequency: ImportedAgentApprovalNotificationFrequency? public var lastTenantNotificationSentDate: Date? public var lastReplyNotificationSentDate: Date? public var ignoredAddToMySiteMessages: Bool? @@ -69,7 +70,7 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable { public var hasTwoFactor: Bool? public var isEmailSuppressed: Bool? - public init(id: String, tenantId: String? = nil, username: String, displayName: String? = nil, websiteUrl: String? = nil, email: String?, pendingEmail: String? = nil, backupEmail: String? = nil, pendingBackupEmail: String? = nil, signUpDate: Int64, createdFromUrlId: String? = nil, createdFromTenantId: String?, createdFromIpHashed: String, verified: Bool, loginId: String, loginIdDate: Int64, loginCount: Int? = nil, optedInNotifications: Bool? = nil, optedInTenantNotifications: Bool? = nil, hideAccountCode: Bool? = nil, avatarSrc: String? = nil, isFastCommentsHelpRequestAdmin: Bool? = nil, isHelpRequestAdmin: Bool? = nil, isAccountOwner: Bool? = nil, isAdminAdmin: Bool? = nil, isBillingAdmin: Bool? = nil, isAnalyticsAdmin: Bool? = nil, isCustomizationAdmin: Bool? = nil, isManageDataAdmin: Bool? = nil, isCommentModeratorAdmin: Bool? = nil, isAPIAdmin: Bool? = nil, isSiteAdmin: Bool? = nil, moderatorIds: [String]? = nil, isImpersonator: Bool? = nil, isCouponManager: Bool? = nil, locale: String? = nil, digestEmailFrequency: DigestEmailFrequency? = nil, notificationFrequency: Double? = nil, adminNotificationFrequency: Double? = nil, lastTenantNotificationSentDate: Date? = nil, lastReplyNotificationSentDate: Date? = nil, ignoredAddToMySiteMessages: Bool? = nil, lastLoginDate: Date? = nil, displayLabel: String? = nil, isProfileActivityPrivate: Bool? = nil, isProfileCommentsPrivate: Bool? = nil, isProfileDMDisabled: Bool? = nil, profileCommentApprovalMode: Double? = nil, karma: Double? = nil, passwordHash: String? = nil, averageTicketAckTimeMS: Double? = nil, hasBlockedUsers: Bool? = nil, bio: String? = nil, headerBackgroundSrc: String? = nil, countryCode: String? = nil, countryFlag: String? = nil, socialLinks: [String]? = nil, hasTwoFactor: Bool? = nil, isEmailSuppressed: Bool? = nil) { + public init(id: String, tenantId: String? = nil, username: String, displayName: String? = nil, websiteUrl: String? = nil, email: String?, pendingEmail: String? = nil, backupEmail: String? = nil, pendingBackupEmail: String? = nil, signUpDate: Int64, createdFromUrlId: String? = nil, createdFromTenantId: String?, createdFromIpHashed: String, verified: Bool, loginId: String, loginIdDate: Int64, loginCount: Int? = nil, optedInNotifications: Bool? = nil, optedInTenantNotifications: Bool? = nil, hideAccountCode: Bool? = nil, avatarSrc: String? = nil, isFastCommentsHelpRequestAdmin: Bool? = nil, isHelpRequestAdmin: Bool? = nil, isAccountOwner: Bool? = nil, isAdminAdmin: Bool? = nil, isBillingAdmin: Bool? = nil, isAnalyticsAdmin: Bool? = nil, isCustomizationAdmin: Bool? = nil, isManageDataAdmin: Bool? = nil, isCommentModeratorAdmin: Bool? = nil, isAPIAdmin: Bool? = nil, isSiteAdmin: Bool? = nil, moderatorIds: [String]? = nil, isImpersonator: Bool? = nil, isCouponManager: Bool? = nil, locale: String? = nil, digestEmailFrequency: DigestEmailFrequency? = nil, notificationFrequency: Double? = nil, adminNotificationFrequency: Double? = nil, agentApprovalNotificationFrequency: ImportedAgentApprovalNotificationFrequency? = nil, lastTenantNotificationSentDate: Date? = nil, lastReplyNotificationSentDate: Date? = nil, ignoredAddToMySiteMessages: Bool? = nil, lastLoginDate: Date? = nil, displayLabel: String? = nil, isProfileActivityPrivate: Bool? = nil, isProfileCommentsPrivate: Bool? = nil, isProfileDMDisabled: Bool? = nil, profileCommentApprovalMode: Double? = nil, karma: Double? = nil, passwordHash: String? = nil, averageTicketAckTimeMS: Double? = nil, hasBlockedUsers: Bool? = nil, bio: String? = nil, headerBackgroundSrc: String? = nil, countryCode: String? = nil, countryFlag: String? = nil, socialLinks: [String]? = nil, hasTwoFactor: Bool? = nil, isEmailSuppressed: Bool? = nil) { self.id = id self.tenantId = tenantId self.username = username @@ -109,6 +110,7 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable { self.digestEmailFrequency = digestEmailFrequency self.notificationFrequency = notificationFrequency self.adminNotificationFrequency = adminNotificationFrequency + self.agentApprovalNotificationFrequency = agentApprovalNotificationFrequency self.lastTenantNotificationSentDate = lastTenantNotificationSentDate self.lastReplyNotificationSentDate = lastReplyNotificationSentDate self.ignoredAddToMySiteMessages = ignoredAddToMySiteMessages @@ -171,6 +173,7 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable { case digestEmailFrequency case notificationFrequency case adminNotificationFrequency + case agentApprovalNotificationFrequency case lastTenantNotificationSentDate case lastReplyNotificationSentDate case ignoredAddToMySiteMessages @@ -236,6 +239,7 @@ public struct User: Sendable, Codable, ParameterConvertible, Hashable { try container.encodeIfPresent(digestEmailFrequency, forKey: .digestEmailFrequency) try container.encodeIfPresent(notificationFrequency, forKey: .notificationFrequency) try container.encodeIfPresent(adminNotificationFrequency, forKey: .adminNotificationFrequency) + try container.encodeIfPresent(agentApprovalNotificationFrequency, forKey: .agentApprovalNotificationFrequency) try container.encodeIfPresent(lastTenantNotificationSentDate, forKey: .lastTenantNotificationSentDate) try container.encodeIfPresent(lastReplyNotificationSentDate, forKey: .lastReplyNotificationSentDate) try container.encodeIfPresent(ignoredAddToMySiteMessages, forKey: .ignoredAddToMySiteMessages) diff --git a/client/FastCommentsSwift/Models/UserBadge.swift b/client/FastCommentsSwift/Models/UserBadge.swift index 740b1ce..dd4d910 100644 --- a/client/FastCommentsSwift/Models/UserBadge.swift +++ b/client/FastCommentsSwift/Models/UserBadge.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserBadge: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserBadge: Sendable, Codable, Hashable { public var id: String public var userId: String diff --git a/client/FastCommentsSwift/Models/UserBadgeProgress.swift b/client/FastCommentsSwift/Models/UserBadgeProgress.swift index aa70f4a..926e09c 100644 --- a/client/FastCommentsSwift/Models/UserBadgeProgress.swift +++ b/client/FastCommentsSwift/Models/UserBadgeProgress.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserBadgeProgress: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserBadgeProgress: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/UserNotification.swift b/client/FastCommentsSwift/Models/UserNotification.swift index dec3a50..ff7b4c1 100644 --- a/client/FastCommentsSwift/Models/UserNotification.swift +++ b/client/FastCommentsSwift/Models/UserNotification.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserNotification: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserNotification: Sendable, Codable, Hashable { public var id: String public var tenantId: String diff --git a/client/FastCommentsSwift/Models/UserNotificationCount.swift b/client/FastCommentsSwift/Models/UserNotificationCount.swift index 93bea80..7025443 100644 --- a/client/FastCommentsSwift/Models/UserNotificationCount.swift +++ b/client/FastCommentsSwift/Models/UserNotificationCount.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserNotificationCount: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserNotificationCount: Sendable, Codable, Hashable { public var id: String public var count: Double diff --git a/client/FastCommentsSwift/Models/UserNotificationWriteResponse.swift b/client/FastCommentsSwift/Models/UserNotificationWriteResponse.swift index 5b24d55..11f23b8 100644 --- a/client/FastCommentsSwift/Models/UserNotificationWriteResponse.swift +++ b/client/FastCommentsSwift/Models/UserNotificationWriteResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserNotificationWriteResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserNotificationWriteResponse: Sendable, Codable, Hashable { public var status: APIStatus public var matchedCount: Int64 diff --git a/client/FastCommentsSwift/Models/UserPresenceData.swift b/client/FastCommentsSwift/Models/UserPresenceData.swift index 7aea7c8..438965d 100644 --- a/client/FastCommentsSwift/Models/UserPresenceData.swift +++ b/client/FastCommentsSwift/Models/UserPresenceData.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserPresenceData: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserPresenceData: Sendable, Codable, Hashable { public var urlIdWS: String? public var userIdWS: String? diff --git a/client/FastCommentsSwift/Models/UserReactsResponse.swift b/client/FastCommentsSwift/Models/UserReactsResponse.swift index d107d2b..61e1461 100644 --- a/client/FastCommentsSwift/Models/UserReactsResponse.swift +++ b/client/FastCommentsSwift/Models/UserReactsResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserReactsResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserReactsResponse: Sendable, Codable, Hashable { public var status: APIStatus public var reacts: [String: [String: Bool]] diff --git a/client/FastCommentsSwift/Models/UserSearchResult.swift b/client/FastCommentsSwift/Models/UserSearchResult.swift index ecc7178..6724bde 100644 --- a/client/FastCommentsSwift/Models/UserSearchResult.swift +++ b/client/FastCommentsSwift/Models/UserSearchResult.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserSearchResult: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserSearchResult: Sendable, Codable, Hashable { public enum ModelType: String, Sendable, Codable, CaseIterable { case user = "user" @@ -48,5 +48,4 @@ public struct UserSearchResult: Sendable, Codable, ParameterConvertible, Hashabl } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension UserSearchResult: Identifiable {} diff --git a/client/FastCommentsSwift/Models/UserSearchSectionResult.swift b/client/FastCommentsSwift/Models/UserSearchSectionResult.swift index 78869c6..a38be9e 100644 --- a/client/FastCommentsSwift/Models/UserSearchSectionResult.swift +++ b/client/FastCommentsSwift/Models/UserSearchSectionResult.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserSearchSectionResult: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserSearchSectionResult: Sendable, Codable, Hashable { public var section: UserSearchSection public var users: [UserSearchResult] diff --git a/client/FastCommentsSwift/Models/UserSessionInfo.swift b/client/FastCommentsSwift/Models/UserSessionInfo.swift index 69a97a9..c1be6ee 100644 --- a/client/FastCommentsSwift/Models/UserSessionInfo.swift +++ b/client/FastCommentsSwift/Models/UserSessionInfo.swift @@ -7,7 +7,7 @@ import Foundation -public struct UserSessionInfo: Sendable, Codable, ParameterConvertible, Hashable { +public struct UserSessionInfo: Sendable, Codable, Hashable { public var id: String? public var authorized: Bool? @@ -80,5 +80,4 @@ public struct UserSessionInfo: Sendable, Codable, ParameterConvertible, Hashable } -@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *) extension UserSessionInfo: Identifiable {} diff --git a/client/FastCommentsSwift/Models/UsersListLocation.swift b/client/FastCommentsSwift/Models/UsersListLocation.swift new file mode 100644 index 0000000..d27232b --- /dev/null +++ b/client/FastCommentsSwift/Models/UsersListLocation.swift @@ -0,0 +1,15 @@ +// +// UsersListLocation.swift +// +// Generated by openapi-generator +// https://openapi-generator.tech +// + +import Foundation + +public enum UsersListLocation: Int, Sendable, Codable, CaseIterable { + case _0 = 0 + case _1 = 1 + case _2 = 2 + case _3 = 3 +} diff --git a/client/FastCommentsSwift/Models/VoteBodyParams.swift b/client/FastCommentsSwift/Models/VoteBodyParams.swift index d8a245d..b920734 100644 --- a/client/FastCommentsSwift/Models/VoteBodyParams.swift +++ b/client/FastCommentsSwift/Models/VoteBodyParams.swift @@ -7,7 +7,7 @@ import Foundation -public struct VoteBodyParams: Sendable, Codable, ParameterConvertible, Hashable { +public struct VoteBodyParams: Sendable, Codable, Hashable { public enum VoteDir: String, Sendable, Codable, CaseIterable { case up = "up" diff --git a/client/FastCommentsSwift/Models/VoteComment200Response.swift b/client/FastCommentsSwift/Models/VoteComment200Response.swift deleted file mode 100644 index 503496e..0000000 --- a/client/FastCommentsSwift/Models/VoteComment200Response.swift +++ /dev/null @@ -1,73 +0,0 @@ -// -// VoteComment200Response.swift -// -// Generated by openapi-generator -// https://openapi-generator.tech -// - -import Foundation - -public struct VoteComment200Response: Sendable, Codable, ParameterConvertible, Hashable { - - public var status: APIStatus - public var voteId: String? - public var isVerified: Bool? - public var user: VoteResponseUser? - public var editKey: String? - public var reason: String? - public var code: String? - public var secondaryCode: String? - public var bannedUntil: Int64? - public var maxCharacterLength: Int? - public var translatedError: String? - public var customConfig: CustomConfigParameters? - - public init(status: APIStatus, voteId: String? = nil, isVerified: Bool? = nil, user: VoteResponseUser? = nil, editKey: String? = nil, reason: String? = nil, code: String? = nil, secondaryCode: String? = nil, bannedUntil: Int64? = nil, maxCharacterLength: Int? = nil, translatedError: String? = nil, customConfig: CustomConfigParameters? = nil) { - self.status = status - self.voteId = voteId - self.isVerified = isVerified - self.user = user - self.editKey = editKey - self.reason = reason - self.code = code - self.secondaryCode = secondaryCode - self.bannedUntil = bannedUntil - self.maxCharacterLength = maxCharacterLength - self.translatedError = translatedError - self.customConfig = customConfig - } - - public enum CodingKeys: String, CodingKey, CaseIterable { - case status - case voteId - case isVerified - case user - case editKey - case reason - case code - case secondaryCode - case bannedUntil - case maxCharacterLength - case translatedError - case customConfig - } - - // Encodable protocol methods - - public func encode(to encoder: Encoder) throws { - var container = encoder.container(keyedBy: CodingKeys.self) - try container.encode(status, forKey: .status) - try container.encodeIfPresent(voteId, forKey: .voteId) - try container.encodeIfPresent(isVerified, forKey: .isVerified) - try container.encodeIfPresent(user, forKey: .user) - try container.encodeIfPresent(editKey, forKey: .editKey) - try container.encodeIfPresent(reason, forKey: .reason) - try container.encodeIfPresent(code, forKey: .code) - try container.encodeIfPresent(secondaryCode, forKey: .secondaryCode) - try container.encodeIfPresent(bannedUntil, forKey: .bannedUntil) - try container.encodeIfPresent(maxCharacterLength, forKey: .maxCharacterLength) - try container.encodeIfPresent(translatedError, forKey: .translatedError) - try container.encodeIfPresent(customConfig, forKey: .customConfig) - } -} - diff --git a/client/FastCommentsSwift/Models/VoteDeleteResponse.swift b/client/FastCommentsSwift/Models/VoteDeleteResponse.swift index 4828fca..a1eaff6 100644 --- a/client/FastCommentsSwift/Models/VoteDeleteResponse.swift +++ b/client/FastCommentsSwift/Models/VoteDeleteResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct VoteDeleteResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct VoteDeleteResponse: Sendable, Codable, Hashable { public var status: APIStatus public var wasPendingVote: Bool? diff --git a/client/FastCommentsSwift/Models/VoteResponse.swift b/client/FastCommentsSwift/Models/VoteResponse.swift index cf116fd..3739825 100644 --- a/client/FastCommentsSwift/Models/VoteResponse.swift +++ b/client/FastCommentsSwift/Models/VoteResponse.swift @@ -7,7 +7,7 @@ import Foundation -public struct VoteResponse: Sendable, Codable, ParameterConvertible, Hashable { +public struct VoteResponse: Sendable, Codable, Hashable { public enum Status: String, Sendable, Codable, CaseIterable { case success = "success" diff --git a/client/FastCommentsSwift/Models/VoteResponseUser.swift b/client/FastCommentsSwift/Models/VoteResponseUser.swift index a6064c6..7f440de 100644 --- a/client/FastCommentsSwift/Models/VoteResponseUser.swift +++ b/client/FastCommentsSwift/Models/VoteResponseUser.swift @@ -7,7 +7,7 @@ import Foundation -public struct VoteResponseUser: Sendable, Codable, ParameterConvertible, Hashable { +public struct VoteResponseUser: Sendable, Codable, Hashable { public var sessionId: String? diff --git a/client/README.md b/client/README.md index 3a84164..5b84f41 100644 --- a/client/README.md +++ b/client/README.md @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat - API version: 0.0.0 - Package version: -- Generator version: 7.19.0-SNAPSHOT +- Generator version: 7.23.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.Swift6ClientCodegen ## Installation @@ -140,26 +140,86 @@ Class | Method | HTTP request | Description *DefaultAPI* | [**updateTenantPackage**](docs/DefaultAPI.md#updatetenantpackage) | **PATCH** /api/v1/tenant-packages/{id} | *DefaultAPI* | [**updateTenantUser**](docs/DefaultAPI.md#updatetenantuser) | **PATCH** /api/v1/tenant-users/{id} | *DefaultAPI* | [**updateUserBadge**](docs/DefaultAPI.md#updateuserbadge) | **PUT** /api/v1/user-badges/{id} | +*ModerationAPI* | [**deleteModerationVote**](docs/ModerationAPI.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | +*ModerationAPI* | [**getApiComments**](docs/ModerationAPI.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | +*ModerationAPI* | [**getApiExportStatus**](docs/ModerationAPI.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | +*ModerationAPI* | [**getApiIds**](docs/ModerationAPI.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | +*ModerationAPI* | [**getBanUsersFromComment**](docs/ModerationAPI.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | +*ModerationAPI* | [**getCommentBanStatus**](docs/ModerationAPI.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | +*ModerationAPI* | [**getCommentChildren**](docs/ModerationAPI.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | +*ModerationAPI* | [**getCount**](docs/ModerationAPI.md#getcount) | **GET** /auth/my-account/moderate-comments/count | +*ModerationAPI* | [**getCounts**](docs/ModerationAPI.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | +*ModerationAPI* | [**getLogs**](docs/ModerationAPI.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | +*ModerationAPI* | [**getManualBadges**](docs/ModerationAPI.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | +*ModerationAPI* | [**getManualBadgesForUser**](docs/ModerationAPI.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | +*ModerationAPI* | [**getModerationComment**](docs/ModerationAPI.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | +*ModerationAPI* | [**getModerationCommentText**](docs/ModerationAPI.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | +*ModerationAPI* | [**getPreBanSummary**](docs/ModerationAPI.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | +*ModerationAPI* | [**getSearchCommentsSummary**](docs/ModerationAPI.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | +*ModerationAPI* | [**getSearchPages**](docs/ModerationAPI.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | +*ModerationAPI* | [**getSearchSites**](docs/ModerationAPI.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | +*ModerationAPI* | [**getSearchSuggest**](docs/ModerationAPI.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | +*ModerationAPI* | [**getSearchUsers**](docs/ModerationAPI.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | +*ModerationAPI* | [**getTrustFactor**](docs/ModerationAPI.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | +*ModerationAPI* | [**getUserBanPreference**](docs/ModerationAPI.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | +*ModerationAPI* | [**getUserInternalProfile**](docs/ModerationAPI.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | +*ModerationAPI* | [**postAdjustCommentVotes**](docs/ModerationAPI.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | +*ModerationAPI* | [**postApiExport**](docs/ModerationAPI.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | +*ModerationAPI* | [**postBanUserFromComment**](docs/ModerationAPI.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | +*ModerationAPI* | [**postBanUserUndo**](docs/ModerationAPI.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | +*ModerationAPI* | [**postBulkPreBanSummary**](docs/ModerationAPI.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | +*ModerationAPI* | [**postCommentsByIds**](docs/ModerationAPI.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | +*ModerationAPI* | [**postFlagComment**](docs/ModerationAPI.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | +*ModerationAPI* | [**postRemoveComment**](docs/ModerationAPI.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | +*ModerationAPI* | [**postRestoreDeletedComment**](docs/ModerationAPI.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | +*ModerationAPI* | [**postSetCommentApprovalStatus**](docs/ModerationAPI.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | +*ModerationAPI* | [**postSetCommentReviewStatus**](docs/ModerationAPI.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | +*ModerationAPI* | [**postSetCommentSpamStatus**](docs/ModerationAPI.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | +*ModerationAPI* | [**postSetCommentText**](docs/ModerationAPI.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | +*ModerationAPI* | [**postUnFlagComment**](docs/ModerationAPI.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | +*ModerationAPI* | [**postVote**](docs/ModerationAPI.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | +*ModerationAPI* | [**putAwardBadge**](docs/ModerationAPI.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | +*ModerationAPI* | [**putCloseThread**](docs/ModerationAPI.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | +*ModerationAPI* | [**putRemoveBadge**](docs/ModerationAPI.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | +*ModerationAPI* | [**putReopenThread**](docs/ModerationAPI.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | +*ModerationAPI* | [**setTrustFactor**](docs/ModerationAPI.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | *PublicAPI* | [**blockFromCommentPublic**](docs/PublicAPI.md#blockfromcommentpublic) | **POST** /block-from-comment/{commentId} | *PublicAPI* | [**checkedCommentsForBlocked**](docs/PublicAPI.md#checkedcommentsforblocked) | **GET** /check-blocked-comments | *PublicAPI* | [**createCommentPublic**](docs/PublicAPI.md#createcommentpublic) | **POST** /comments/{tenantId} | *PublicAPI* | [**createFeedPostPublic**](docs/PublicAPI.md#createfeedpostpublic) | **POST** /feed-posts/{tenantId} | +*PublicAPI* | [**createV1PageReact**](docs/PublicAPI.md#createv1pagereact) | **POST** /page-reacts/v1/likes/{tenantId} | +*PublicAPI* | [**createV2PageReact**](docs/PublicAPI.md#createv2pagereact) | **POST** /page-reacts/v2/{tenantId} | *PublicAPI* | [**deleteCommentPublic**](docs/PublicAPI.md#deletecommentpublic) | **DELETE** /comments/{tenantId}/{commentId} | *PublicAPI* | [**deleteCommentVote**](docs/PublicAPI.md#deletecommentvote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | *PublicAPI* | [**deleteFeedPostPublic**](docs/PublicAPI.md#deletefeedpostpublic) | **DELETE** /feed-posts/{tenantId}/{postId} | +*PublicAPI* | [**deleteV1PageReact**](docs/PublicAPI.md#deletev1pagereact) | **DELETE** /page-reacts/v1/likes/{tenantId} | +*PublicAPI* | [**deleteV2PageReact**](docs/PublicAPI.md#deletev2pagereact) | **DELETE** /page-reacts/v2/{tenantId} | *PublicAPI* | [**flagCommentPublic**](docs/PublicAPI.md#flagcommentpublic) | **POST** /flag-comment/{commentId} | *PublicAPI* | [**getCommentText**](docs/PublicAPI.md#getcommenttext) | **GET** /comments/{tenantId}/{commentId}/text | *PublicAPI* | [**getCommentVoteUserNames**](docs/PublicAPI.md#getcommentvoteusernames) | **GET** /comments/{tenantId}/{commentId}/votes | +*PublicAPI* | [**getCommentsForUser**](docs/PublicAPI.md#getcommentsforuser) | **GET** /comments-for-user | *PublicAPI* | [**getCommentsPublic**](docs/PublicAPI.md#getcommentspublic) | **GET** /comments/{tenantId} | *PublicAPI* | [**getEventLog**](docs/PublicAPI.md#geteventlog) | **GET** /event-log/{tenantId} | *PublicAPI* | [**getFeedPostsPublic**](docs/PublicAPI.md#getfeedpostspublic) | **GET** /feed-posts/{tenantId} | *PublicAPI* | [**getFeedPostsStats**](docs/PublicAPI.md#getfeedpostsstats) | **GET** /feed-posts/{tenantId}/stats | +*PublicAPI* | [**getGifLarge**](docs/PublicAPI.md#getgiflarge) | **GET** /gifs/get-large/{tenantId} | +*PublicAPI* | [**getGifsSearch**](docs/PublicAPI.md#getgifssearch) | **GET** /gifs/search/{tenantId} | +*PublicAPI* | [**getGifsTrending**](docs/PublicAPI.md#getgifstrending) | **GET** /gifs/trending/{tenantId} | *PublicAPI* | [**getGlobalEventLog**](docs/PublicAPI.md#getglobaleventlog) | **GET** /event-log/global/{tenantId} | +*PublicAPI* | [**getOfflineUsers**](docs/PublicAPI.md#getofflineusers) | **GET** /pages/{tenantId}/users/offline | +*PublicAPI* | [**getOnlineUsers**](docs/PublicAPI.md#getonlineusers) | **GET** /pages/{tenantId}/users/online | +*PublicAPI* | [**getPagesPublic**](docs/PublicAPI.md#getpagespublic) | **GET** /pages/{tenantId} | +*PublicAPI* | [**getTranslations**](docs/PublicAPI.md#gettranslations) | **GET** /translations/{namespace}/{component} | *PublicAPI* | [**getUserNotificationCount**](docs/PublicAPI.md#getusernotificationcount) | **GET** /user-notifications/get-count | *PublicAPI* | [**getUserNotifications**](docs/PublicAPI.md#getusernotifications) | **GET** /user-notifications | *PublicAPI* | [**getUserPresenceStatuses**](docs/PublicAPI.md#getuserpresencestatuses) | **GET** /user-presence-status | *PublicAPI* | [**getUserReactsPublic**](docs/PublicAPI.md#getuserreactspublic) | **GET** /feed-posts/{tenantId}/user-reacts | +*PublicAPI* | [**getUsersInfo**](docs/PublicAPI.md#getusersinfo) | **GET** /pages/{tenantId}/users/info | +*PublicAPI* | [**getV1PageLikes**](docs/PublicAPI.md#getv1pagelikes) | **GET** /page-reacts/v1/likes/{tenantId} | +*PublicAPI* | [**getV2PageReactUsers**](docs/PublicAPI.md#getv2pagereactusers) | **GET** /page-reacts/v2/{tenantId}/list | +*PublicAPI* | [**getV2PageReacts**](docs/PublicAPI.md#getv2pagereacts) | **GET** /page-reacts/v2/{tenantId} | *PublicAPI* | [**lockComment**](docs/PublicAPI.md#lockcomment) | **POST** /comments/{tenantId}/{commentId}/lock | +*PublicAPI* | [**logoutPublic**](docs/PublicAPI.md#logoutpublic) | **PUT** /auth/logout | *PublicAPI* | [**pinComment**](docs/PublicAPI.md#pincomment) | **POST** /comments/{tenantId}/{commentId}/pin | *PublicAPI* | [**reactFeedPostPublic**](docs/PublicAPI.md#reactfeedpostpublic) | **POST** /feed-posts/{tenantId}/react/{postId} | *PublicAPI* | [**resetUserNotificationCount**](docs/PublicAPI.md#resetusernotificationcount) | **POST** /user-notifications/reset-count | @@ -180,9 +240,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) @@ -194,6 +259,8 @@ 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) @@ -204,16 +271,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) @@ -222,24 +290,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) @@ -254,56 +328,42 @@ Class | Method | HTTP request | Description - [CommentUserHashTagInfo](docs/CommentUserHashTagInfo.md) - [CommentUserMentionInfo](docs/CommentUserMentionInfo.md) - [CommenterNameFormats](docs/CommenterNameFormats.md) + - [CommentsByIdsParams](docs/CommentsByIdsParams.md) - [CreateAPIPageData](docs/CreateAPIPageData.md) - [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) @@ -322,126 +382,124 @@ Class | Method | HTTP request | Description - [FeedPostsStatsResponse](docs/FeedPostsStatsResponse.md) - [FindCommentsByRangeItem](docs/FindCommentsByRangeItem.md) - [FindCommentsByRangeResponse](docs/FindCommentsByRangeResponse.md) - - [FlagComment200Response](docs/FlagComment200Response.md) - - [FlagCommentPublic200Response](docs/FlagCommentPublic200Response.md) - [FlagCommentResponse](docs/FlagCommentResponse.md) - - [GetAuditLogs200Response](docs/GetAuditLogs200Response.md) - [GetAuditLogsResponse](docs/GetAuditLogsResponse.md) - - [GetCachedNotificationCount200Response](docs/GetCachedNotificationCount200Response.md) + - [GetBannedUsersCountResponse](docs/GetBannedUsersCountResponse.md) + - [GetBannedUsersFromCommentResponse](docs/GetBannedUsersFromCommentResponse.md) - [GetCachedNotificationCountResponse](docs/GetCachedNotificationCountResponse.md) - - [GetComment200Response](docs/GetComment200Response.md) - - [GetCommentText200Response](docs/GetCommentText200Response.md) - - [GetCommentVoteUserNames200Response](docs/GetCommentVoteUserNames200Response.md) + - [GetCommentBanStatusResponse](docs/GetCommentBanStatusResponse.md) + - [GetCommentTextResponse](docs/GetCommentTextResponse.md) - [GetCommentVoteUserNamesSuccessResponse](docs/GetCommentVoteUserNamesSuccessResponse.md) - - [GetComments200Response](docs/GetComments200Response.md) - - [GetCommentsPublic200Response](docs/GetCommentsPublic200Response.md) + - [GetCommentsForUserResponse](docs/GetCommentsForUserResponse.md) - [GetCommentsResponsePublicComment](docs/GetCommentsResponsePublicComment.md) - [GetCommentsResponseWithPresencePublicComment](docs/GetCommentsResponseWithPresencePublicComment.md) - - [GetDomainConfig200Response](docs/GetDomainConfig200Response.md) - - [GetDomainConfigs200Response](docs/GetDomainConfigs200Response.md) - - [GetDomainConfigs200ResponseAnyOf](docs/GetDomainConfigs200ResponseAnyOf.md) - - [GetDomainConfigs200ResponseAnyOf1](docs/GetDomainConfigs200ResponseAnyOf1.md) - - [GetEmailTemplate200Response](docs/GetEmailTemplate200Response.md) - - [GetEmailTemplateDefinitions200Response](docs/GetEmailTemplateDefinitions200Response.md) + - [GetDomainConfigResponse](docs/GetDomainConfigResponse.md) + - [GetDomainConfigsResponse](docs/GetDomainConfigsResponse.md) + - [GetDomainConfigsResponseAnyOf](docs/GetDomainConfigsResponseAnyOf.md) + - [GetDomainConfigsResponseAnyOf1](docs/GetDomainConfigsResponseAnyOf1.md) - [GetEmailTemplateDefinitionsResponse](docs/GetEmailTemplateDefinitionsResponse.md) - - [GetEmailTemplateRenderErrors200Response](docs/GetEmailTemplateRenderErrors200Response.md) - [GetEmailTemplateRenderErrorsResponse](docs/GetEmailTemplateRenderErrorsResponse.md) - [GetEmailTemplateResponse](docs/GetEmailTemplateResponse.md) - - [GetEmailTemplates200Response](docs/GetEmailTemplates200Response.md) - [GetEmailTemplatesResponse](docs/GetEmailTemplatesResponse.md) - - [GetEventLog200Response](docs/GetEventLog200Response.md) - [GetEventLogResponse](docs/GetEventLogResponse.md) - - [GetFeedPosts200Response](docs/GetFeedPosts200Response.md) - - [GetFeedPostsPublic200Response](docs/GetFeedPostsPublic200Response.md) - [GetFeedPostsResponse](docs/GetFeedPostsResponse.md) - - [GetFeedPostsStats200Response](docs/GetFeedPostsStats200Response.md) - - [GetHashTags200Response](docs/GetHashTags200Response.md) + - [GetGifsSearchResponse](docs/GetGifsSearchResponse.md) + - [GetGifsTrendingResponse](docs/GetGifsTrendingResponse.md) - [GetHashTagsResponse](docs/GetHashTagsResponse.md) - - [GetModerator200Response](docs/GetModerator200Response.md) - [GetModeratorResponse](docs/GetModeratorResponse.md) - - [GetModerators200Response](docs/GetModerators200Response.md) - [GetModeratorsResponse](docs/GetModeratorsResponse.md) - [GetMyNotificationsResponse](docs/GetMyNotificationsResponse.md) - - [GetNotificationCount200Response](docs/GetNotificationCount200Response.md) - [GetNotificationCountResponse](docs/GetNotificationCountResponse.md) - - [GetNotifications200Response](docs/GetNotifications200Response.md) - [GetNotificationsResponse](docs/GetNotificationsResponse.md) - [GetPageByURLIdAPIResponse](docs/GetPageByURLIdAPIResponse.md) - [GetPagesAPIResponse](docs/GetPagesAPIResponse.md) - - [GetPendingWebhookEventCount200Response](docs/GetPendingWebhookEventCount200Response.md) - [GetPendingWebhookEventCountResponse](docs/GetPendingWebhookEventCountResponse.md) - - [GetPendingWebhookEvents200Response](docs/GetPendingWebhookEvents200Response.md) - [GetPendingWebhookEventsResponse](docs/GetPendingWebhookEventsResponse.md) - [GetPublicFeedPostsResponse](docs/GetPublicFeedPostsResponse.md) - - [GetQuestionConfig200Response](docs/GetQuestionConfig200Response.md) + - [GetPublicPagesResponse](docs/GetPublicPagesResponse.md) - [GetQuestionConfigResponse](docs/GetQuestionConfigResponse.md) - - [GetQuestionConfigs200Response](docs/GetQuestionConfigs200Response.md) - [GetQuestionConfigsResponse](docs/GetQuestionConfigsResponse.md) - - [GetQuestionResult200Response](docs/GetQuestionResult200Response.md) - [GetQuestionResultResponse](docs/GetQuestionResultResponse.md) - - [GetQuestionResults200Response](docs/GetQuestionResults200Response.md) - [GetQuestionResultsResponse](docs/GetQuestionResultsResponse.md) - [GetSSOUserByEmailAPIResponse](docs/GetSSOUserByEmailAPIResponse.md) - [GetSSOUserByIdAPIResponse](docs/GetSSOUserByIdAPIResponse.md) - - [GetSSOUsers200Response](docs/GetSSOUsers200Response.md) + - [GetSSOUsersResponse](docs/GetSSOUsersResponse.md) - [GetSubscriptionsAPIResponse](docs/GetSubscriptionsAPIResponse.md) - - [GetTenant200Response](docs/GetTenant200Response.md) - - [GetTenantDailyUsages200Response](docs/GetTenantDailyUsages200Response.md) - [GetTenantDailyUsagesResponse](docs/GetTenantDailyUsagesResponse.md) - - [GetTenantPackage200Response](docs/GetTenantPackage200Response.md) + - [GetTenantManualBadgesResponse](docs/GetTenantManualBadgesResponse.md) - [GetTenantPackageResponse](docs/GetTenantPackageResponse.md) - - [GetTenantPackages200Response](docs/GetTenantPackages200Response.md) - [GetTenantPackagesResponse](docs/GetTenantPackagesResponse.md) - [GetTenantResponse](docs/GetTenantResponse.md) - - [GetTenantUser200Response](docs/GetTenantUser200Response.md) - [GetTenantUserResponse](docs/GetTenantUserResponse.md) - - [GetTenantUsers200Response](docs/GetTenantUsers200Response.md) - [GetTenantUsersResponse](docs/GetTenantUsersResponse.md) - - [GetTenants200Response](docs/GetTenants200Response.md) - [GetTenantsResponse](docs/GetTenantsResponse.md) - - [GetTicket200Response](docs/GetTicket200Response.md) - [GetTicketResponse](docs/GetTicketResponse.md) - - [GetTickets200Response](docs/GetTickets200Response.md) - [GetTicketsResponse](docs/GetTicketsResponse.md) - - [GetUser200Response](docs/GetUser200Response.md) - - [GetUserBadge200Response](docs/GetUserBadge200Response.md) - - [GetUserBadgeProgressById200Response](docs/GetUserBadgeProgressById200Response.md) - - [GetUserBadgeProgressList200Response](docs/GetUserBadgeProgressList200Response.md) - - [GetUserBadges200Response](docs/GetUserBadges200Response.md) - - [GetUserNotificationCount200Response](docs/GetUserNotificationCount200Response.md) + - [GetTranslationsResponse](docs/GetTranslationsResponse.md) + - [GetUserInternalProfileResponse](docs/GetUserInternalProfileResponse.md) + - [GetUserInternalProfileResponseProfile](docs/GetUserInternalProfileResponseProfile.md) + - [GetUserManualBadgesResponse](docs/GetUserManualBadgesResponse.md) - [GetUserNotificationCountResponse](docs/GetUserNotificationCountResponse.md) - - [GetUserNotifications200Response](docs/GetUserNotifications200Response.md) - - [GetUserPresenceStatuses200Response](docs/GetUserPresenceStatuses200Response.md) - [GetUserPresenceStatusesResponse](docs/GetUserPresenceStatusesResponse.md) - - [GetUserReactsPublic200Response](docs/GetUserReactsPublic200Response.md) - [GetUserResponse](docs/GetUserResponse.md) - - [GetVotes200Response](docs/GetVotes200Response.md) - - [GetVotesForUser200Response](docs/GetVotesForUser200Response.md) + - [GetUserTrustFactorResponse](docs/GetUserTrustFactorResponse.md) + - [GetV1PageLikes](docs/GetV1PageLikes.md) + - [GetV2PageReactUsersResponse](docs/GetV2PageReactUsersResponse.md) + - [GetV2PageReacts](docs/GetV2PageReacts.md) - [GetVotesForUserResponse](docs/GetVotesForUserResponse.md) - [GetVotesResponse](docs/GetVotesResponse.md) + - [GifGetLargeResponse](docs/GifGetLargeResponse.md) - [GifRating](docs/GifRating.md) + - [GifSearchInternalError](docs/GifSearchInternalError.md) + - [GifSearchResponse](docs/GifSearchResponse.md) + - [GifSearchResponseImagesInnerInner](docs/GifSearchResponseImagesInnerInner.md) - [HeaderAccountNotification](docs/HeaderAccountNotification.md) - [HeaderState](docs/HeaderState.md) - [IgnoredResponse](docs/IgnoredResponse.md) - [ImageContentProfanityLevel](docs/ImageContentProfanityLevel.md) + - [ImportedAgentApprovalNotificationFrequency](docs/ImportedAgentApprovalNotificationFrequency.md) - [ImportedSiteType](docs/ImportedSiteType.md) - [LiveEvent](docs/LiveEvent.md) - [LiveEventExtraInfo](docs/LiveEventExtraInfo.md) - [LiveEventType](docs/LiveEventType.md) - - [LockComment200Response](docs/LockComment200Response.md) - [MediaAsset](docs/MediaAsset.md) - [MentionAutoCompleteMode](docs/MentionAutoCompleteMode.md) - [MetaItem](docs/MetaItem.md) + - [ModerationAPIChildCommentsResponse](docs/ModerationAPIChildCommentsResponse.md) + - [ModerationAPIComment](docs/ModerationAPIComment.md) + - [ModerationAPICommentLog](docs/ModerationAPICommentLog.md) + - [ModerationAPICommentResponse](docs/ModerationAPICommentResponse.md) + - [ModerationAPICountCommentsResponse](docs/ModerationAPICountCommentsResponse.md) + - [ModerationAPIGetCommentIdsResponse](docs/ModerationAPIGetCommentIdsResponse.md) + - [ModerationAPIGetCommentsResponse](docs/ModerationAPIGetCommentsResponse.md) + - [ModerationAPIGetLogsResponse](docs/ModerationAPIGetLogsResponse.md) + - [ModerationCommentSearchResponse](docs/ModerationCommentSearchResponse.md) + - [ModerationExportResponse](docs/ModerationExportResponse.md) + - [ModerationExportStatusResponse](docs/ModerationExportStatusResponse.md) + - [ModerationFilter](docs/ModerationFilter.md) + - [ModerationPageSearchProjected](docs/ModerationPageSearchProjected.md) + - [ModerationPageSearchResponse](docs/ModerationPageSearchResponse.md) + - [ModerationSiteSearchProjected](docs/ModerationSiteSearchProjected.md) + - [ModerationSiteSearchResponse](docs/ModerationSiteSearchResponse.md) + - [ModerationSuggestResponse](docs/ModerationSuggestResponse.md) + - [ModerationUserSearchProjected](docs/ModerationUserSearchProjected.md) + - [ModerationUserSearchResponse](docs/ModerationUserSearchResponse.md) - [Moderator](docs/Moderator.md) - [NotificationAndCount](docs/NotificationAndCount.md) - [NotificationObjectType](docs/NotificationObjectType.md) - [NotificationType](docs/NotificationType.md) + - [PageUserEntry](docs/PageUserEntry.md) + - [PageUsersInfoResponse](docs/PageUsersInfoResponse.md) + - [PageUsersOfflineResponse](docs/PageUsersOfflineResponse.md) + - [PageUsersOnlineResponse](docs/PageUsersOnlineResponse.md) + - [PagesSortBy](docs/PagesSortBy.md) - [PatchDomainConfigParams](docs/PatchDomainConfigParams.md) - - [PatchHashTag200Response](docs/PatchHashTag200Response.md) + - [PatchDomainConfigResponse](docs/PatchDomainConfigResponse.md) - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PinComment200Response](docs/PinComment200Response.md) + - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) - [PubSubVote](docs/PubSubVote.md) @@ -452,7 +510,9 @@ Class | Method | HTTP request | Description - [PublicComment](docs/PublicComment.md) - [PublicCommentBase](docs/PublicCommentBase.md) - [PublicFeedPostsResponse](docs/PublicFeedPostsResponse.md) + - [PublicPage](docs/PublicPage.md) - [PublicVote](docs/PublicVote.md) + - [PutDomainConfigResponse](docs/PutDomainConfigResponse.md) - [PutSSOUserAPIResponse](docs/PutSSOUserAPIResponse.md) - [QueryPredicate](docs/QueryPredicate.md) - [QueryPredicateValue](docs/QueryPredicateValue.md) @@ -465,11 +525,10 @@ Class | Method | HTTP request | Description - [QuestionSubQuestionVisibility](docs/QuestionSubQuestionVisibility.md) - [QuestionWhenSave](docs/QuestionWhenSave.md) - [ReactBodyParams](docs/ReactBodyParams.md) - - [ReactFeedPostPublic200Response](docs/ReactFeedPostPublic200Response.md) - [ReactFeedPostResponse](docs/ReactFeedPostResponse.md) - [RecordStringBeforeStringOrNullAfterStringOrNullValue](docs/RecordStringBeforeStringOrNullAfterStringOrNullValue.md) - - [RecordStringStringOrNumberValue](docs/RecordStringStringOrNumberValue.md) - - [RenderEmailTemplate200Response](docs/RenderEmailTemplate200Response.md) + - [RemoveCommentActionResponse](docs/RemoveCommentActionResponse.md) + - [RemoveUserBadgeResponse](docs/RemoveUserBadgeResponse.md) - [RenderEmailTemplateBody](docs/RenderEmailTemplateBody.md) - [RenderEmailTemplateResponse](docs/RenderEmailTemplateResponse.md) - [RenderableUserNotification](docs/RenderableUserNotification.md) @@ -477,25 +536,27 @@ Class | Method | HTTP request | Description - [RepeatCommentHandlingAction](docs/RepeatCommentHandlingAction.md) - [ReplaceTenantPackageBody](docs/ReplaceTenantPackageBody.md) - [ReplaceTenantUserBody](docs/ReplaceTenantUserBody.md) - - [ResetUserNotifications200Response](docs/ResetUserNotifications200Response.md) - [ResetUserNotificationsResponse](docs/ResetUserNotificationsResponse.md) - [SORTDIR](docs/SORTDIR.md) - [SSOSecurityLevel](docs/SSOSecurityLevel.md) - - [SaveComment200Response](docs/SaveComment200Response.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) @@ -515,9 +576,10 @@ Class | Method | HTTP request | Description - [UpdateTenantBody](docs/UpdateTenantBody.md) - [UpdateTenantPackageBody](docs/UpdateTenantPackageBody.md) - [UpdateTenantUserBody](docs/UpdateTenantUserBody.md) - - [UpdateUserBadge200Response](docs/UpdateUserBadge200Response.md) - [UpdateUserBadgeParams](docs/UpdateUserBadgeParams.md) - - [UpdateUserNotificationStatus200Response](docs/UpdateUserNotificationStatus200Response.md) + - [UpdateUserNotificationCommentSubscriptionStatusResponse](docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md) + - [UpdateUserNotificationPageSubscriptionStatusResponse](docs/UpdateUserNotificationPageSubscriptionStatusResponse.md) + - [UpdateUserNotificationStatusResponse](docs/UpdateUserNotificationStatusResponse.md) - [UploadImageResponse](docs/UploadImageResponse.md) - [User](docs/User.md) - [UserBadge](docs/UserBadge.md) @@ -531,8 +593,8 @@ Class | Method | HTTP request | Description - [UserSearchSection](docs/UserSearchSection.md) - [UserSearchSectionResult](docs/UserSearchSectionResult.md) - [UserSessionInfo](docs/UserSessionInfo.md) + - [UsersListLocation](docs/UsersListLocation.md) - [VoteBodyParams](docs/VoteBodyParams.md) - - [VoteComment200Response](docs/VoteComment200Response.md) - [VoteDeleteResponse](docs/VoteDeleteResponse.md) - [VoteResponse](docs/VoteResponse.md) - [VoteResponseUser](docs/VoteResponseUser.md) diff --git a/client/docs/APIBanUserChangeLog.md b/client/docs/APIBanUserChangeLog.md new file mode 100644 index 0000000..0e1af49 --- /dev/null +++ b/client/docs/APIBanUserChangeLog.md @@ -0,0 +1,13 @@ +# APIBanUserChangeLog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdBannedUserId** | **String** | | [optional] +**updatedBannedUserId** | **String** | | [optional] +**deletedBannedUsers** | [APIBannedUser] | | [optional] +**changedValuesBefore** | [**APIBanUserChangedValues**](APIBanUserChangedValues.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIBanUserChangedValues.md b/client/docs/APIBanUserChangedValues.md new file mode 100644 index 0000000..385364c --- /dev/null +++ b/client/docs/APIBanUserChangedValues.md @@ -0,0 +1,22 @@ +# APIBanUserChangedValues + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**tenantId** | **String** | | [optional] +**userId** | **String** | | [optional] +**email** | **String** | | [optional] +**username** | **String** | | [optional] +**ipHash** | **String** | | [optional] +**createdAt** | **Date** | | [optional] +**bannedByUserId** | **String** | | [optional] +**bannedCommentText** | **String** | | [optional] +**banType** | **String** | | [optional] +**bannedUntil** | **Date** | | [optional] +**hasEmailWildcard** | **Bool** | | [optional] +**banReason** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIBannedUser.md b/client/docs/APIBannedUser.md new file mode 100644 index 0000000..9aeaba0 --- /dev/null +++ b/client/docs/APIBannedUser.md @@ -0,0 +1,22 @@ +# APIBannedUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**tenantId** | **String** | | +**userId** | **String** | | [optional] +**email** | **String** | | [optional] +**username** | **String** | | [optional] +**ipHash** | **String** | | [optional] +**createdAt** | **Date** | | +**bannedByUserId** | **String** | | +**bannedCommentText** | **String** | | +**banType** | **String** | | +**bannedUntil** | **Date** | | +**hasEmailWildcard** | **Bool** | | +**banReason** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIBannedUserWithMultiMatchInfo.md b/client/docs/APIBannedUserWithMultiMatchInfo.md new file mode 100644 index 0000000..bc9aa34 --- /dev/null +++ b/client/docs/APIBannedUserWithMultiMatchInfo.md @@ -0,0 +1,18 @@ +# APIBannedUserWithMultiMatchInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**userId** | **String** | | [optional] +**banType** | **String** | | +**email** | **String** | | [optional] +**ipHash** | **String** | | [optional] +**bannedUntil** | **Date** | | +**hasEmailWildcard** | **Bool** | | +**banReason** | **String** | | [optional] +**matches** | [BannedUserMatch] | | + +[[Back to Model list]](../README.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..4c06b24 --- /dev/null +++ b/client/docs/APICommentCommonBannedUser.md @@ -0,0 +1,17 @@ +# APICommentCommonBannedUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**userId** | **String** | | [optional] +**banType** | **String** | | +**email** | **String** | | [optional] +**ipHash** | **String** | | [optional] +**bannedUntil** | **Date** | | +**hasEmailWildcard** | **Bool** | | +**banReason** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIModerateGetUserBanPreferencesResponse.md b/client/docs/APIModerateGetUserBanPreferencesResponse.md new file mode 100644 index 0000000..e236f2c --- /dev/null +++ b/client/docs/APIModerateGetUserBanPreferencesResponse.md @@ -0,0 +1,11 @@ +# APIModerateGetUserBanPreferencesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**preferences** | [**APIModerateUserBanPreferences**](APIModerateUserBanPreferences.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/APIModerateUserBanPreferences.md b/client/docs/APIModerateUserBanPreferences.md new file mode 100644 index 0000000..429f80b --- /dev/null +++ b/client/docs/APIModerateUserBanPreferences.md @@ -0,0 +1,13 @@ +# APIModerateUserBanPreferences + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**shouldBanEmail** | **Bool** | | +**shouldBanByIP** | **Bool** | | +**lastBanType** | **String** | | +**lastBanDuration** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetDomainConfig200Response.md b/client/docs/AddDomainConfigResponse.md similarity index 93% rename from client/docs/GetDomainConfig200Response.md rename to client/docs/AddDomainConfigResponse.md index 005bbf6..270c49a 100644 --- a/client/docs/GetDomainConfig200Response.md +++ b/client/docs/AddDomainConfigResponse.md @@ -1,12 +1,12 @@ -# GetDomainConfig200Response +# AddDomainConfigResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configuration** | **JSONValue** | | [optional] -**status** | **JSONValue** | | **reason** | **String** | | [optional] **code** | **String** | | [optional] +**status** | **JSONValue** | | +**configuration** | **JSONValue** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/AddDomainConfig200ResponseAnyOf.md b/client/docs/AddDomainConfigResponseAnyOf.md similarity index 91% rename from client/docs/AddDomainConfig200ResponseAnyOf.md rename to client/docs/AddDomainConfigResponseAnyOf.md index d394bcb..1ddb87e 100644 --- a/client/docs/AddDomainConfig200ResponseAnyOf.md +++ b/client/docs/AddDomainConfigResponseAnyOf.md @@ -1,4 +1,4 @@ -# AddDomainConfig200ResponseAnyOf +# AddDomainConfigResponseAnyOf ## Properties Name | Type | Description | Notes diff --git a/client/docs/AddHashTag200Response.md b/client/docs/AddHashTag200Response.md deleted file mode 100644 index e36d6d6..0000000 --- a/client/docs/AddHashTag200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# AddHashTag200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**hashTag** | [**TenantHashTag**](TenantHashTag.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AddHashTagsBulk200Response.md b/client/docs/AddHashTagsBulk200Response.md deleted file mode 100644 index 064ab8d..0000000 --- a/client/docs/AddHashTagsBulk200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# AddHashTagsBulk200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**results** | [AddHashTag200Response] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AdjustCommentVotesParams.md b/client/docs/AdjustCommentVotesParams.md new file mode 100644 index 0000000..af2bbbf --- /dev/null +++ b/client/docs/AdjustCommentVotesParams.md @@ -0,0 +1,10 @@ +# AdjustCommentVotesParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**adjustVoteAmount** | **Double** | | + +[[Back to Model list]](../README.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..444d6bd --- /dev/null +++ b/client/docs/AdjustVotesResponse.md @@ -0,0 +1,11 @@ +# AdjustVotesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**newCommentVotes** | **Int** | | + +[[Back to Model list]](../README.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 7715488..0000000 --- a/client/docs/AggregateQuestionResults200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# AggregateQuestionResults200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**QuestionResultAggregationOverall**](QuestionResultAggregationOverall.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/LockComment200Response.md b/client/docs/AggregateResponse.md similarity index 56% rename from client/docs/LockComment200Response.md rename to client/docs/AggregateResponse.md index f0b2abb..3d0bef2 100644 --- a/client/docs/LockComment200Response.md +++ b/client/docs/AggregateResponse.md @@ -1,16 +1,14 @@ -# LockComment200Response +# AggregateResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | +**data** | [AggregationItem] | | [optional] +**stats** | [**AggregationResponseStats**](AggregationResponseStats.md) | | [optional] **reason** | **String** | | [optional] **code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] +**validResourceNames** | **[String]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/AggregationAPIError.md b/client/docs/AggregationAPIError.md new file mode 100644 index 0000000..d254982 --- /dev/null +++ b/client/docs/AggregationAPIError.md @@ -0,0 +1,13 @@ +# AggregationAPIError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**reason** | **String** | | +**code** | **String** | | +**validResourceNames** | **[String]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/AwardUserBadgeResponse.md b/client/docs/AwardUserBadgeResponse.md new file mode 100644 index 0000000..d54d3ce --- /dev/null +++ b/client/docs/AwardUserBadgeResponse.md @@ -0,0 +1,12 @@ +# AwardUserBadgeResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**notes** | **[String]** | | [optional] +**badges** | [CommentUserBadgeInfo] | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BanUserFromCommentResult.md b/client/docs/BanUserFromCommentResult.md new file mode 100644 index 0000000..00e29b1 --- /dev/null +++ b/client/docs/BanUserFromCommentResult.md @@ -0,0 +1,13 @@ +# BanUserFromCommentResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | [optional] +**code** | **String** | | [optional] +**reason** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BanUserUndoParams.md b/client/docs/BanUserUndoParams.md new file mode 100644 index 0000000..4edc3d3 --- /dev/null +++ b/client/docs/BanUserUndoParams.md @@ -0,0 +1,10 @@ +# BanUserUndoParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**changelog** | [**APIBanUserChangeLog**](APIBanUserChangeLog.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BannedUserMatch.md b/client/docs/BannedUserMatch.md new file mode 100644 index 0000000..d76ce0c --- /dev/null +++ b/client/docs/BannedUserMatch.md @@ -0,0 +1,11 @@ +# BannedUserMatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**matchedOn** | [**BannedUserMatchType**](BannedUserMatchType.md) | | +**matchedOnValue** | [**BannedUserMatchMatchedOnValue**](BannedUserMatchMatchedOnValue.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RecordStringStringOrNumberValue.md b/client/docs/BannedUserMatchMatchedOnValue.md similarity index 88% rename from client/docs/RecordStringStringOrNumberValue.md rename to client/docs/BannedUserMatchMatchedOnValue.md index 4e2467f..e17f88a 100644 --- a/client/docs/RecordStringStringOrNumberValue.md +++ b/client/docs/BannedUserMatchMatchedOnValue.md @@ -1,4 +1,4 @@ -# RecordStringStringOrNumberValue +# BannedUserMatchMatchedOnValue ## Properties Name | Type | Description | Notes diff --git a/client/docs/BannedUserMatchType.md b/client/docs/BannedUserMatchType.md new file mode 100644 index 0000000..a9b9aaa --- /dev/null +++ b/client/docs/BannedUserMatchType.md @@ -0,0 +1,9 @@ +# BannedUserMatchType + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BlockFromCommentPublic200Response.md b/client/docs/BlockFromCommentPublic200Response.md deleted file mode 100644 index 0d3135e..0000000 --- a/client/docs/BlockFromCommentPublic200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# BlockFromCommentPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**commentStatuses** | **[String: Bool]** | Construct a type with a set of properties K of type T | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/BuildModerationFilterParams.md b/client/docs/BuildModerationFilterParams.md new file mode 100644 index 0000000..c4b15dc --- /dev/null +++ b/client/docs/BuildModerationFilterParams.md @@ -0,0 +1,14 @@ +# BuildModerationFilterParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userId** | **String** | | +**tenantId** | **String** | | +**filters** | **String** | | [optional] +**searchFilters** | **String** | | [optional] +**textSearch** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BuildModerationFilterResponse.md b/client/docs/BuildModerationFilterResponse.md new file mode 100644 index 0000000..8a4a511 --- /dev/null +++ b/client/docs/BuildModerationFilterResponse.md @@ -0,0 +1,11 @@ +# BuildModerationFilterResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BulkAggregateQuestionResults200Response.md b/client/docs/BulkAggregateQuestionResults200Response.md deleted file mode 100644 index c437201..0000000 --- a/client/docs/BulkAggregateQuestionResults200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# BulkAggregateQuestionResults200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [String: QuestionResultAggregationOverall] | Construct a type with a set of properties K of type T | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/BulkCreateHashTagsResponse.md b/client/docs/BulkCreateHashTagsResponse.md index 7d203fa..168dce7 100644 --- a/client/docs/BulkCreateHashTagsResponse.md +++ b/client/docs/BulkCreateHashTagsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **status** | [**APIStatus**](APIStatus.md) | | -**results** | [AddHashTag200Response] | | +**results** | [BulkCreateHashTagsResponseResultsInner] | | [[Back to Model list]](../README.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/BulkCreateHashTagsResponseResultsInner.md similarity index 94% rename from client/docs/PatchHashTag200Response.md rename to client/docs/BulkCreateHashTagsResponseResultsInner.md index 792aaa7..3e4f3a0 100644 --- a/client/docs/PatchHashTag200Response.md +++ b/client/docs/BulkCreateHashTagsResponseResultsInner.md @@ -1,4 +1,4 @@ -# PatchHashTag200Response +# BulkCreateHashTagsResponseResultsInner ## Properties Name | Type | Description | Notes diff --git a/client/docs/BulkPreBanParams.md b/client/docs/BulkPreBanParams.md new file mode 100644 index 0000000..5901108 --- /dev/null +++ b/client/docs/BulkPreBanParams.md @@ -0,0 +1,10 @@ +# BulkPreBanParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commentIds** | **[String]** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BulkPreBanSummary.md b/client/docs/BulkPreBanSummary.md new file mode 100644 index 0000000..f8bc294 --- /dev/null +++ b/client/docs/BulkPreBanSummary.md @@ -0,0 +1,15 @@ +# BulkPreBanSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**totalRelatedCommentCount** | **Int** | | +**emailDomains** | **[String]** | | +**emails** | **[String]** | | +**userIds** | **[String]** | | +**ipHashes** | **[String]** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ChangeTicketState200Response.md b/client/docs/ChangeTicketState200Response.md deleted file mode 100644 index e1ab130..0000000 --- a/client/docs/ChangeTicketState200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# ChangeTicketState200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicket**](APITicket.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CheckedCommentsForBlocked200Response.md b/client/docs/CheckedCommentsForBlocked200Response.md deleted file mode 100644 index 117f98d..0000000 --- a/client/docs/CheckedCommentsForBlocked200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CheckedCommentsForBlocked200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**commentStatuses** | **[String: Bool]** | Construct a type with a set of properties K of type T | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CombineCommentsWithQuestionResults200Response.md b/client/docs/CombineCommentsWithQuestionResults200Response.md deleted file mode 100644 index 63b5f11..0000000 --- a/client/docs/CombineCommentsWithQuestionResults200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CombineCommentsWithQuestionResults200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**FindCommentsByRangeResponse**](FindCommentsByRangeResponse.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CommentData.md b/client/docs/CommentData.md index b86dfda..f09c924 100644 --- a/client/docs/CommentData.md +++ b/client/docs/CommentData.md @@ -26,8 +26,9 @@ Name | Type | Description | Notes **fromOfflineRestore** | **Bool** | | [optional] **autoplayDelayMS** | **Int64** | | [optional] **feedbackIds** | **[String]** | | [optional] -**questionValues** | [String: RecordStringStringOrNumberValue] | Construct a type with a set of properties K of type T | [optional] +**questionValues** | [String: GifSearchResponseImagesInnerInner] | Construct a type with a set of properties K of type T | [optional] **tos** | **Bool** | | [optional] +**botId** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/CommentLogData.md b/client/docs/CommentLogData.md index e2ed0f4..828d34c 100644 --- a/client/docs/CommentLogData.md +++ b/client/docs/CommentLogData.md @@ -18,6 +18,7 @@ Name | Type | Description | Notes **engineResponse** | **String** | | [optional] **engineTokens** | **Double** | | [optional] **trustFactor** | **Double** | | [optional] +**source** | **String** | | [optional] **rule** | [**SpamRule**](SpamRule.md) | | [optional] **userId** | **String** | | [optional] **subscribers** | **Double** | | [optional] diff --git a/client/docs/CommentsByIdsParams.md b/client/docs/CommentsByIdsParams.md new file mode 100644 index 0000000..02936a1 --- /dev/null +++ b/client/docs/CommentsByIdsParams.md @@ -0,0 +1,10 @@ +# CommentsByIdsParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **[String]** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CreateCommentParams.md b/client/docs/CreateCommentParams.md index 4236f39..114f43a 100644 --- a/client/docs/CreateCommentParams.md +++ b/client/docs/CreateCommentParams.md @@ -26,8 +26,9 @@ Name | Type | Description | Notes **fromOfflineRestore** | **Bool** | | [optional] **autoplayDelayMS** | **Int64** | | [optional] **feedbackIds** | **[String]** | | [optional] -**questionValues** | [String: RecordStringStringOrNumberValue] | Construct a type with a set of properties K of type T | [optional] +**questionValues** | [String: GifSearchResponseImagesInnerInner] | Construct a type with a set of properties K of type T | [optional] **tos** | **Bool** | | [optional] +**botId** | **String** | | [optional] **approved** | **Bool** | | [optional] **domain** | **String** | | [optional] **ip** | **String** | | [optional] diff --git a/client/docs/CreateCommentPublic200Response.md b/client/docs/CreateCommentPublic200Response.md deleted file mode 100644 index d33bce7..0000000 --- a/client/docs/CreateCommentPublic200Response.md +++ /dev/null @@ -1,21 +0,0 @@ -# CreateCommentPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**PublicComment**](PublicComment.md) | | [optional] -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] -**moduleData** | **[String: JSONValue]** | Construct a type with a set of properties K of type T | [optional] -**userIdWS** | **String** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateEmailTemplate200Response.md b/client/docs/CreateEmailTemplate200Response.md deleted file mode 100644 index b1ba0d8..0000000 --- a/client/docs/CreateEmailTemplate200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateEmailTemplate200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateFeedPost200Response.md b/client/docs/CreateFeedPost200Response.md deleted file mode 100644 index 996a71b..0000000 --- a/client/docs/CreateFeedPost200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateFeedPost200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feedPost** | [**FeedPost**](FeedPost.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateFeedPostPublic200Response.md b/client/docs/CreateFeedPostPublic200Response.md deleted file mode 100644 index 3843b89..0000000 --- a/client/docs/CreateFeedPostPublic200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateFeedPostPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feedPost** | [**FeedPost**](FeedPost.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateModerator200Response.md b/client/docs/CreateModerator200Response.md deleted file mode 100644 index 7221592..0000000 --- a/client/docs/CreateModerator200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateModerator200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderator** | [**Moderator**](Moderator.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateQuestionConfig200Response.md b/client/docs/CreateQuestionConfig200Response.md deleted file mode 100644 index bd79faa..0000000 --- a/client/docs/CreateQuestionConfig200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateQuestionConfig200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateQuestionResult200Response.md b/client/docs/CreateQuestionResult200Response.md deleted file mode 100644 index 2604042..0000000 --- a/client/docs/CreateQuestionResult200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateQuestionResult200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionResult** | [**QuestionResult**](QuestionResult.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenant200Response.md b/client/docs/CreateTenant200Response.md deleted file mode 100644 index 64ce766..0000000 --- a/client/docs/CreateTenant200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateTenant200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant** | [**APITenant**](APITenant.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenantPackage200Response.md b/client/docs/CreateTenantPackage200Response.md deleted file mode 100644 index 48e8bc2..0000000 --- a/client/docs/CreateTenantPackage200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateTenantPackage200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTenantUser200Response.md b/client/docs/CreateTenantUser200Response.md deleted file mode 100644 index 1c442b9..0000000 --- a/client/docs/CreateTenantUser200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateTenantUser200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantUser** | [**User**](User.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateTicket200Response.md b/client/docs/CreateTicket200Response.md deleted file mode 100644 index 90d2feb..0000000 --- a/client/docs/CreateTicket200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# CreateTicket200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicket**](APITicket.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateUserBadge200Response.md b/client/docs/CreateUserBadge200Response.md deleted file mode 100644 index 7e5c47c..0000000 --- a/client/docs/CreateUserBadge200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# CreateUserBadge200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadge** | [**UserBadge**](UserBadge.md) | | [optional] -**notes** | **[String]** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/CreateV1PageReact.md b/client/docs/CreateV1PageReact.md new file mode 100644 index 0000000..5da1fbe --- /dev/null +++ b/client/docs/CreateV1PageReact.md @@ -0,0 +1,11 @@ +# CreateV1PageReact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/CustomConfigParameters.md b/client/docs/CustomConfigParameters.md index ff6edee..83e657d 100644 --- a/client/docs/CustomConfigParameters.md +++ b/client/docs/CustomConfigParameters.md @@ -55,11 +55,14 @@ Name | Type | Description | Notes **noCustomConfig** | **Bool** | | [optional] **mentionAutoCompleteMode** | [**MentionAutoCompleteMode**](MentionAutoCompleteMode.md) | | [optional] **noImageUploads** | **Bool** | | [optional] +**allowEmbeds** | **Bool** | | [optional] +**allowedEmbedDomains** | **[String]** | | [optional] **noStyles** | **Bool** | | [optional] **pageSize** | **Int** | | [optional] **readonly** | **Bool** | | [optional] **noNewRootComments** | **Bool** | | [optional] **requireSSO** | **Bool** | | [optional] +**enableFChat** | **Bool** | | [optional] **enableResizeHandle** | **Bool** | | [optional] **restrictedLinkDomains** | **[String]** | | [optional] **showBadgesInTopBar** | **Bool** | | [optional] @@ -80,6 +83,8 @@ Name | Type | Description | Notes **widgetQuestionsRequired** | [**CommentQuestionsRequired**](CommentQuestionsRequired.md) | | [optional] **widgetSubQuestionVisibility** | [**QuestionSubQuestionVisibility**](QuestionSubQuestionVisibility.md) | | [optional] **wrap** | **Bool** | | [optional] +**usersListLocation** | [**UsersListLocation**](UsersListLocation.md) | | [optional] +**usersListIncludeOffline** | **Bool** | | [optional] **ticketBaseUrl** | **String** | | [optional] **ticketKBSearchEndpoint** | **String** | | [optional] **ticketFileUploadsEnabled** | **Bool** | | [optional] diff --git a/client/docs/DefaultAPI.md b/client/docs/DefaultAPI.md index cc59589..a687699 100644 --- a/client/docs/DefaultAPI.md +++ b/client/docs/DefaultAPI.md @@ -122,7 +122,7 @@ Method | HTTP request | Description # **addDomainConfig** ```swift - open class func addDomainConfig(tenantId: String, addDomainConfigParams: AddDomainConfigParams, completion: @escaping (_ data: AddDomainConfig200Response?, _ error: Error?) -> Void) + open class func addDomainConfig(tenantId: String, addDomainConfigParams: AddDomainConfigParams, completion: @escaping (_ data: AddDomainConfigResponse?, _ error: Error?) -> Void) ``` @@ -156,7 +156,7 @@ Name | Type | Description | Notes ### Return type -[**AddDomainConfig200Response**](AddDomainConfig200Response.md) +[**AddDomainConfigResponse**](AddDomainConfigResponse.md) ### Authorization @@ -171,7 +171,7 @@ Name | Type | Description | Notes # **addHashTag** ```swift - open class func addHashTag(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, completion: @escaping (_ data: AddHashTag200Response?, _ error: Error?) -> Void) + open class func addHashTag(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, completion: @escaping (_ data: CreateHashTagResponse?, _ error: Error?) -> Void) ``` @@ -205,7 +205,7 @@ Name | Type | Description | Notes ### Return type -[**AddHashTag200Response**](AddHashTag200Response.md) +[**CreateHashTagResponse**](CreateHashTagResponse.md) ### Authorization @@ -220,7 +220,7 @@ Name | Type | Description | Notes # **addHashTagsBulk** ```swift - open class func addHashTagsBulk(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, completion: @escaping (_ data: AddHashTagsBulk200Response?, _ error: Error?) -> Void) + open class func addHashTagsBulk(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, completion: @escaping (_ data: BulkCreateHashTagsResponse?, _ error: Error?) -> Void) ``` @@ -254,7 +254,7 @@ Name | Type | Description | Notes ### Return type -[**AddHashTagsBulk200Response**](AddHashTagsBulk200Response.md) +[**BulkCreateHashTagsResponse**](BulkCreateHashTagsResponse.md) ### Authorization @@ -367,7 +367,7 @@ Name | Type | Description | Notes # **aggregate** ```swift - open class func aggregate(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, completion: @escaping (_ data: AggregationResponse?, _ error: Error?) -> Void) + open class func aggregate(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, completion: @escaping (_ data: AggregateResponse?, _ error: Error?) -> Void) ``` @@ -407,7 +407,7 @@ Name | Type | Description | Notes ### Return type -[**AggregationResponse**](AggregationResponse.md) +[**AggregateResponse**](AggregateResponse.md) ### Authorization @@ -422,7 +422,7 @@ Name | Type | Description | Notes # **aggregateQuestionResults** ```swift - open class func aggregateQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, completion: @escaping (_ data: AggregateQuestionResults200Response?, _ error: Error?) -> Void) + open class func aggregateQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, completion: @escaping (_ data: AggregateQuestionResultsResponse?, _ error: Error?) -> Void) ``` @@ -466,7 +466,7 @@ Name | Type | Description | Notes ### Return type -[**AggregateQuestionResults200Response**](AggregateQuestionResults200Response.md) +[**AggregateQuestionResultsResponse**](AggregateQuestionResultsResponse.md) ### Authorization @@ -481,7 +481,7 @@ Name | Type | Description | Notes # **blockUserFromComment** ```swift - open class func blockUserFromComment(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: BlockFromCommentPublic200Response?, _ error: Error?) -> Void) + open class func blockUserFromComment(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: BlockSuccess?, _ error: Error?) -> Void) ``` @@ -521,7 +521,7 @@ Name | Type | Description | Notes ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -536,7 +536,7 @@ Name | Type | Description | Notes # **bulkAggregateQuestionResults** ```swift - open class func bulkAggregateQuestionResults(tenantId: String, bulkAggregateQuestionResultsRequest: BulkAggregateQuestionResultsRequest, forceRecalculate: Bool? = nil, completion: @escaping (_ data: BulkAggregateQuestionResults200Response?, _ error: Error?) -> Void) + open class func bulkAggregateQuestionResults(tenantId: String, bulkAggregateQuestionResultsRequest: BulkAggregateQuestionResultsRequest, forceRecalculate: Bool? = nil, completion: @escaping (_ data: BulkAggregateQuestionResultsResponse?, _ error: Error?) -> Void) ``` @@ -572,7 +572,7 @@ Name | Type | Description | Notes ### Return type -[**BulkAggregateQuestionResults200Response**](BulkAggregateQuestionResults200Response.md) +[**BulkAggregateQuestionResultsResponse**](BulkAggregateQuestionResultsResponse.md) ### Authorization @@ -587,7 +587,7 @@ Name | Type | Description | Notes # **changeTicketState** ```swift - open class func changeTicketState(tenantId: String, userId: String, id: String, changeTicketStateBody: ChangeTicketStateBody, completion: @escaping (_ data: ChangeTicketState200Response?, _ error: Error?) -> Void) + open class func changeTicketState(tenantId: String, userId: String, id: String, changeTicketStateBody: ChangeTicketStateBody, completion: @escaping (_ data: ChangeTicketStateResponse?, _ error: Error?) -> Void) ``` @@ -625,7 +625,7 @@ Name | Type | Description | Notes ### Return type -[**ChangeTicketState200Response**](ChangeTicketState200Response.md) +[**ChangeTicketStateResponse**](ChangeTicketStateResponse.md) ### Authorization @@ -640,7 +640,7 @@ Name | Type | Description | Notes # **combineCommentsWithQuestionResults** ```swift - open class func combineCommentsWithQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, completion: @escaping (_ data: CombineCommentsWithQuestionResults200Response?, _ error: Error?) -> Void) + open class func combineCommentsWithQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, completion: @escaping (_ data: CombineQuestionResultsWithCommentsResponse?, _ error: Error?) -> Void) ``` @@ -688,7 +688,7 @@ Name | Type | Description | Notes ### Return type -[**CombineCommentsWithQuestionResults200Response**](CombineCommentsWithQuestionResults200Response.md) +[**CombineQuestionResultsWithCommentsResponse**](CombineQuestionResultsWithCommentsResponse.md) ### Authorization @@ -703,7 +703,7 @@ Name | Type | Description | Notes # **createEmailTemplate** ```swift - open class func createEmailTemplate(tenantId: String, createEmailTemplateBody: CreateEmailTemplateBody, completion: @escaping (_ data: CreateEmailTemplate200Response?, _ error: Error?) -> Void) + open class func createEmailTemplate(tenantId: String, createEmailTemplateBody: CreateEmailTemplateBody, completion: @escaping (_ data: CreateEmailTemplateResponse?, _ error: Error?) -> Void) ``` @@ -737,7 +737,7 @@ Name | Type | Description | Notes ### Return type -[**CreateEmailTemplate200Response**](CreateEmailTemplate200Response.md) +[**CreateEmailTemplateResponse**](CreateEmailTemplateResponse.md) ### Authorization @@ -752,7 +752,7 @@ Name | Type | Description | Notes # **createFeedPost** ```swift - open class func createFeedPost(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, completion: @escaping (_ data: CreateFeedPost200Response?, _ error: Error?) -> Void) + open class func createFeedPost(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, completion: @escaping (_ data: CreateFeedPostsResponse?, _ error: Error?) -> Void) ``` @@ -794,7 +794,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPost200Response**](CreateFeedPost200Response.md) +[**CreateFeedPostsResponse**](CreateFeedPostsResponse.md) ### Authorization @@ -809,7 +809,7 @@ Name | Type | Description | Notes # **createModerator** ```swift - open class func createModerator(tenantId: String, createModeratorBody: CreateModeratorBody, completion: @escaping (_ data: CreateModerator200Response?, _ error: Error?) -> Void) + open class func createModerator(tenantId: String, createModeratorBody: CreateModeratorBody, completion: @escaping (_ data: CreateModeratorResponse?, _ error: Error?) -> Void) ``` @@ -843,7 +843,7 @@ Name | Type | Description | Notes ### Return type -[**CreateModerator200Response**](CreateModerator200Response.md) +[**CreateModeratorResponse**](CreateModeratorResponse.md) ### Authorization @@ -858,7 +858,7 @@ Name | Type | Description | Notes # **createQuestionConfig** ```swift - open class func createQuestionConfig(tenantId: String, createQuestionConfigBody: CreateQuestionConfigBody, completion: @escaping (_ data: CreateQuestionConfig200Response?, _ error: Error?) -> Void) + open class func createQuestionConfig(tenantId: String, createQuestionConfigBody: CreateQuestionConfigBody, completion: @escaping (_ data: CreateQuestionConfigResponse?, _ error: Error?) -> Void) ``` @@ -892,7 +892,7 @@ Name | Type | Description | Notes ### Return type -[**CreateQuestionConfig200Response**](CreateQuestionConfig200Response.md) +[**CreateQuestionConfigResponse**](CreateQuestionConfigResponse.md) ### Authorization @@ -907,7 +907,7 @@ Name | Type | Description | Notes # **createQuestionResult** ```swift - open class func createQuestionResult(tenantId: String, createQuestionResultBody: CreateQuestionResultBody, completion: @escaping (_ data: CreateQuestionResult200Response?, _ error: Error?) -> Void) + open class func createQuestionResult(tenantId: String, createQuestionResultBody: CreateQuestionResultBody, completion: @escaping (_ data: CreateQuestionResultResponse?, _ error: Error?) -> Void) ``` @@ -941,7 +941,7 @@ Name | Type | Description | Notes ### Return type -[**CreateQuestionResult200Response**](CreateQuestionResult200Response.md) +[**CreateQuestionResultResponse**](CreateQuestionResultResponse.md) ### Authorization @@ -1005,7 +1005,7 @@ Name | Type | Description | Notes # **createTenant** ```swift - open class func createTenant(tenantId: String, createTenantBody: CreateTenantBody, completion: @escaping (_ data: CreateTenant200Response?, _ error: Error?) -> Void) + open class func createTenant(tenantId: String, createTenantBody: CreateTenantBody, completion: @escaping (_ data: CreateTenantResponse?, _ error: Error?) -> Void) ``` @@ -1039,7 +1039,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenant200Response**](CreateTenant200Response.md) +[**CreateTenantResponse**](CreateTenantResponse.md) ### Authorization @@ -1054,7 +1054,7 @@ Name | Type | Description | Notes # **createTenantPackage** ```swift - open class func createTenantPackage(tenantId: String, createTenantPackageBody: CreateTenantPackageBody, completion: @escaping (_ data: CreateTenantPackage200Response?, _ error: Error?) -> Void) + open class func createTenantPackage(tenantId: String, createTenantPackageBody: CreateTenantPackageBody, completion: @escaping (_ data: CreateTenantPackageResponse?, _ error: Error?) -> Void) ``` @@ -1088,7 +1088,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenantPackage200Response**](CreateTenantPackage200Response.md) +[**CreateTenantPackageResponse**](CreateTenantPackageResponse.md) ### Authorization @@ -1103,7 +1103,7 @@ Name | Type | Description | Notes # **createTenantUser** ```swift - open class func createTenantUser(tenantId: String, createTenantUserBody: CreateTenantUserBody, completion: @escaping (_ data: CreateTenantUser200Response?, _ error: Error?) -> Void) + open class func createTenantUser(tenantId: String, createTenantUserBody: CreateTenantUserBody, completion: @escaping (_ data: CreateTenantUserResponse?, _ error: Error?) -> Void) ``` @@ -1137,7 +1137,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTenantUser200Response**](CreateTenantUser200Response.md) +[**CreateTenantUserResponse**](CreateTenantUserResponse.md) ### Authorization @@ -1152,7 +1152,7 @@ Name | Type | Description | Notes # **createTicket** ```swift - open class func createTicket(tenantId: String, userId: String, createTicketBody: CreateTicketBody, completion: @escaping (_ data: CreateTicket200Response?, _ error: Error?) -> Void) + open class func createTicket(tenantId: String, userId: String, createTicketBody: CreateTicketBody, completion: @escaping (_ data: CreateTicketResponse?, _ error: Error?) -> Void) ``` @@ -1188,7 +1188,7 @@ Name | Type | Description | Notes ### Return type -[**CreateTicket200Response**](CreateTicket200Response.md) +[**CreateTicketResponse**](CreateTicketResponse.md) ### Authorization @@ -1203,7 +1203,7 @@ Name | Type | Description | Notes # **createUserBadge** ```swift - open class func createUserBadge(tenantId: String, createUserBadgeParams: CreateUserBadgeParams, completion: @escaping (_ data: CreateUserBadge200Response?, _ error: Error?) -> Void) + open class func createUserBadge(tenantId: String, createUserBadgeParams: CreateUserBadgeParams, completion: @escaping (_ data: APICreateUserBadgeResponse?, _ error: Error?) -> Void) ``` @@ -1237,7 +1237,7 @@ Name | Type | Description | Notes ### Return type -[**CreateUserBadge200Response**](CreateUserBadge200Response.md) +[**APICreateUserBadgeResponse**](APICreateUserBadgeResponse.md) ### Authorization @@ -1252,7 +1252,7 @@ Name | Type | Description | Notes # **createVote** ```swift - open class func createVote(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: VoteComment200Response?, _ error: Error?) -> Void) + open class func createVote(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) ``` @@ -1292,7 +1292,7 @@ Name | Type | Description | Notes ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization @@ -1307,7 +1307,7 @@ Name | Type | Description | Notes # **deleteComment** ```swift - open class func deleteComment(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, completion: @escaping (_ data: DeleteComment200Response?, _ error: Error?) -> Void) + open class func deleteComment(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, completion: @escaping (_ data: DeleteCommentResult?, _ error: Error?) -> Void) ``` @@ -1345,7 +1345,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteComment200Response**](DeleteComment200Response.md) +[**DeleteCommentResult**](DeleteCommentResult.md) ### Authorization @@ -1360,7 +1360,7 @@ Name | Type | Description | Notes # **deleteDomainConfig** ```swift - open class func deleteDomainConfig(tenantId: String, domain: String, completion: @escaping (_ data: DeleteDomainConfig200Response?, _ error: Error?) -> Void) + open class func deleteDomainConfig(tenantId: String, domain: String, completion: @escaping (_ data: DeleteDomainConfigResponse?, _ error: Error?) -> Void) ``` @@ -1394,7 +1394,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteDomainConfig200Response**](DeleteDomainConfig200Response.md) +[**DeleteDomainConfigResponse**](DeleteDomainConfigResponse.md) ### Authorization @@ -1409,7 +1409,7 @@ Name | Type | Description | Notes # **deleteEmailTemplate** ```swift - open class func deleteEmailTemplate(tenantId: String, id: String, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteEmailTemplate(tenantId: String, id: String, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1443,7 +1443,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1458,7 +1458,7 @@ Name | Type | Description | Notes # **deleteEmailTemplateRenderError** ```swift - open class func deleteEmailTemplateRenderError(tenantId: String, id: String, errorId: String, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteEmailTemplateRenderError(tenantId: String, id: String, errorId: String, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1494,7 +1494,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1509,7 +1509,7 @@ Name | Type | Description | Notes # **deleteHashTag** ```swift - open class func deleteHashTag(tag: String, tenantId: String? = nil, deleteHashTagRequest: DeleteHashTagRequest? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteHashTag(tag: String, tenantId: String? = nil, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1521,9 +1521,9 @@ import FastCommentsSwift let tag = "tag_example" // String | let tenantId = "tenantId_example" // String | (optional) -let deleteHashTagRequest = DeleteHashTag_request(tenantId: "tenantId_example") // DeleteHashTagRequest | (optional) +let deleteHashTagRequestBody = DeleteHashTagRequestBody(tenantId: "tenantId_example") // DeleteHashTagRequestBody | (optional) -DefaultAPI.deleteHashTag(tag: tag, tenantId: tenantId, deleteHashTagRequest: deleteHashTagRequest) { (response, error) in +DefaultAPI.deleteHashTag(tag: tag, tenantId: tenantId, deleteHashTagRequestBody: deleteHashTagRequestBody) { (response, error) in guard error == nil else { print(error) return @@ -1541,11 +1541,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tag** | **String** | | **tenantId** | **String** | | [optional] - **deleteHashTagRequest** | [**DeleteHashTagRequest**](DeleteHashTagRequest.md) | | [optional] + **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md) | | [optional] ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1560,7 +1560,7 @@ Name | Type | Description | Notes # **deleteModerator** ```swift - open class func deleteModerator(tenantId: String, id: String, sendEmail: String? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteModerator(tenantId: String, id: String, sendEmail: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1596,7 +1596,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1611,7 +1611,7 @@ Name | Type | Description | Notes # **deleteNotificationCount** ```swift - open class func deleteNotificationCount(tenantId: String, id: String, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteNotificationCount(tenantId: String, id: String, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1645,7 +1645,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1709,7 +1709,7 @@ Name | Type | Description | Notes # **deletePendingWebhookEvent** ```swift - open class func deletePendingWebhookEvent(tenantId: String, id: String, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deletePendingWebhookEvent(tenantId: String, id: String, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1743,7 +1743,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1758,7 +1758,7 @@ Name | Type | Description | Notes # **deleteQuestionConfig** ```swift - open class func deleteQuestionConfig(tenantId: String, id: String, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteQuestionConfig(tenantId: String, id: String, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1792,7 +1792,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1807,7 +1807,7 @@ Name | Type | Description | Notes # **deleteQuestionResult** ```swift - open class func deleteQuestionResult(tenantId: String, id: String, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteQuestionResult(tenantId: String, id: String, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1841,7 +1841,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1960,7 +1960,7 @@ Name | Type | Description | Notes # **deleteTenant** ```swift - open class func deleteTenant(tenantId: String, id: String, sure: String? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteTenant(tenantId: String, id: String, sure: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1996,7 +1996,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2011,7 +2011,7 @@ Name | Type | Description | Notes # **deleteTenantPackage** ```swift - open class func deleteTenantPackage(tenantId: String, id: String, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteTenantPackage(tenantId: String, id: String, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -2045,7 +2045,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2060,7 +2060,7 @@ Name | Type | Description | Notes # **deleteTenantUser** ```swift - open class func deleteTenantUser(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteTenantUser(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -2098,7 +2098,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -2113,7 +2113,7 @@ Name | Type | Description | Notes # **deleteUserBadge** ```swift - open class func deleteUserBadge(tenantId: String, id: String, completion: @escaping (_ data: UpdateUserBadge200Response?, _ error: Error?) -> Void) + open class func deleteUserBadge(tenantId: String, id: String, completion: @escaping (_ data: APIEmptySuccessResponse?, _ error: Error?) -> Void) ``` @@ -2147,7 +2147,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization @@ -2162,7 +2162,7 @@ Name | Type | Description | Notes # **deleteVote** ```swift - open class func deleteVote(tenantId: String, id: String, editKey: String? = nil, completion: @escaping (_ data: DeleteCommentVote200Response?, _ error: Error?) -> Void) + open class func deleteVote(tenantId: String, id: String, editKey: String? = nil, completion: @escaping (_ data: VoteDeleteResponse?, _ error: Error?) -> Void) ``` @@ -2198,7 +2198,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**VoteDeleteResponse**](VoteDeleteResponse.md) ### Authorization @@ -2213,7 +2213,7 @@ Name | Type | Description | Notes # **flagComment** ```swift - open class func flagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: FlagComment200Response?, _ error: Error?) -> Void) + open class func flagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: FlagCommentResponse?, _ error: Error?) -> Void) ``` @@ -2251,7 +2251,7 @@ Name | Type | Description | Notes ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -2266,7 +2266,7 @@ Name | Type | Description | Notes # **getAuditLogs** ```swift - open class func getAuditLogs(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, completion: @escaping (_ data: GetAuditLogs200Response?, _ error: Error?) -> Void) + open class func getAuditLogs(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, completion: @escaping (_ data: GetAuditLogsResponse?, _ error: Error?) -> Void) ``` @@ -2308,7 +2308,7 @@ Name | Type | Description | Notes ### Return type -[**GetAuditLogs200Response**](GetAuditLogs200Response.md) +[**GetAuditLogsResponse**](GetAuditLogsResponse.md) ### Authorization @@ -2323,7 +2323,7 @@ Name | Type | Description | Notes # **getCachedNotificationCount** ```swift - open class func getCachedNotificationCount(tenantId: String, id: String, completion: @escaping (_ data: GetCachedNotificationCount200Response?, _ error: Error?) -> Void) + open class func getCachedNotificationCount(tenantId: String, id: String, completion: @escaping (_ data: GetCachedNotificationCountResponse?, _ error: Error?) -> Void) ``` @@ -2357,7 +2357,7 @@ Name | Type | Description | Notes ### Return type -[**GetCachedNotificationCount200Response**](GetCachedNotificationCount200Response.md) +[**GetCachedNotificationCountResponse**](GetCachedNotificationCountResponse.md) ### Authorization @@ -2372,7 +2372,7 @@ Name | Type | Description | Notes # **getComment** ```swift - open class func getComment(tenantId: String, id: String, completion: @escaping (_ data: GetComment200Response?, _ error: Error?) -> Void) + open class func getComment(tenantId: String, id: String, completion: @escaping (_ data: APIGetCommentResponse?, _ error: Error?) -> Void) ``` @@ -2406,7 +2406,7 @@ Name | Type | Description | Notes ### Return type -[**GetComment200Response**](GetComment200Response.md) +[**APIGetCommentResponse**](APIGetCommentResponse.md) ### Authorization @@ -2421,7 +2421,7 @@ Name | Type | Description | Notes # **getComments** ```swift - open class func getComments(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, completion: @escaping (_ data: GetComments200Response?, _ error: Error?) -> Void) + open class func getComments(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, fromDate: Int64? = nil, toDate: Int64? = nil, completion: @escaping (_ data: APIGetCommentsResponse?, _ error: Error?) -> Void) ``` @@ -2446,8 +2446,10 @@ let contextUserId = "contextUserId_example" // String | (optional) let hashTag = "hashTag_example" // String | (optional) let parentId = "parentId_example" // String | (optional) let direction = SortDirections() // SortDirections | (optional) +let fromDate = 987 // Int64 | (optional) +let toDate = 987 // Int64 | (optional) -DefaultAPI.getComments(tenantId: tenantId, page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction) { (response, error) in +DefaultAPI.getComments(tenantId: tenantId, page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, fromDate: fromDate, toDate: toDate) { (response, error) in guard error == nil else { print(error) return @@ -2478,10 +2480,12 @@ Name | Type | Description | Notes **hashTag** | **String** | | [optional] **parentId** | **String** | | [optional] **direction** | [**SortDirections**](.md) | | [optional] + **fromDate** | **Int64** | | [optional] + **toDate** | **Int64** | | [optional] ### Return type -[**GetComments200Response**](GetComments200Response.md) +[**APIGetCommentsResponse**](APIGetCommentsResponse.md) ### Authorization @@ -2496,7 +2500,7 @@ Name | Type | Description | Notes # **getDomainConfig** ```swift - open class func getDomainConfig(tenantId: String, domain: String, completion: @escaping (_ data: GetDomainConfig200Response?, _ error: Error?) -> Void) + open class func getDomainConfig(tenantId: String, domain: String, completion: @escaping (_ data: GetDomainConfigResponse?, _ error: Error?) -> Void) ``` @@ -2530,7 +2534,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**GetDomainConfigResponse**](GetDomainConfigResponse.md) ### Authorization @@ -2545,7 +2549,7 @@ Name | Type | Description | Notes # **getDomainConfigs** ```swift - open class func getDomainConfigs(tenantId: String, completion: @escaping (_ data: GetDomainConfigs200Response?, _ error: Error?) -> Void) + open class func getDomainConfigs(tenantId: String, completion: @escaping (_ data: GetDomainConfigsResponse?, _ error: Error?) -> Void) ``` @@ -2577,7 +2581,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfigs200Response**](GetDomainConfigs200Response.md) +[**GetDomainConfigsResponse**](GetDomainConfigsResponse.md) ### Authorization @@ -2592,7 +2596,7 @@ Name | Type | Description | Notes # **getEmailTemplate** ```swift - open class func getEmailTemplate(tenantId: String, id: String, completion: @escaping (_ data: GetEmailTemplate200Response?, _ error: Error?) -> Void) + open class func getEmailTemplate(tenantId: String, id: String, completion: @escaping (_ data: GetEmailTemplateResponse?, _ error: Error?) -> Void) ``` @@ -2626,7 +2630,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplate200Response**](GetEmailTemplate200Response.md) +[**GetEmailTemplateResponse**](GetEmailTemplateResponse.md) ### Authorization @@ -2641,7 +2645,7 @@ Name | Type | Description | Notes # **getEmailTemplateDefinitions** ```swift - open class func getEmailTemplateDefinitions(tenantId: String, completion: @escaping (_ data: GetEmailTemplateDefinitions200Response?, _ error: Error?) -> Void) + open class func getEmailTemplateDefinitions(tenantId: String, completion: @escaping (_ data: GetEmailTemplateDefinitionsResponse?, _ error: Error?) -> Void) ``` @@ -2673,7 +2677,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplateDefinitions200Response**](GetEmailTemplateDefinitions200Response.md) +[**GetEmailTemplateDefinitionsResponse**](GetEmailTemplateDefinitionsResponse.md) ### Authorization @@ -2688,7 +2692,7 @@ Name | Type | Description | Notes # **getEmailTemplateRenderErrors** ```swift - open class func getEmailTemplateRenderErrors(tenantId: String, id: String, skip: Double? = nil, completion: @escaping (_ data: GetEmailTemplateRenderErrors200Response?, _ error: Error?) -> Void) + open class func getEmailTemplateRenderErrors(tenantId: String, id: String, skip: Double? = nil, completion: @escaping (_ data: GetEmailTemplateRenderErrorsResponse?, _ error: Error?) -> Void) ``` @@ -2724,7 +2728,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplateRenderErrors200Response**](GetEmailTemplateRenderErrors200Response.md) +[**GetEmailTemplateRenderErrorsResponse**](GetEmailTemplateRenderErrorsResponse.md) ### Authorization @@ -2739,7 +2743,7 @@ Name | Type | Description | Notes # **getEmailTemplates** ```swift - open class func getEmailTemplates(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetEmailTemplates200Response?, _ error: Error?) -> Void) + open class func getEmailTemplates(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetEmailTemplatesResponse?, _ error: Error?) -> Void) ``` @@ -2773,7 +2777,7 @@ Name | Type | Description | Notes ### Return type -[**GetEmailTemplates200Response**](GetEmailTemplates200Response.md) +[**GetEmailTemplatesResponse**](GetEmailTemplatesResponse.md) ### Authorization @@ -2788,7 +2792,7 @@ Name | Type | Description | Notes # **getFeedPosts** ```swift - open class func getFeedPosts(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, completion: @escaping (_ data: GetFeedPosts200Response?, _ error: Error?) -> Void) + open class func getFeedPosts(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, completion: @escaping (_ data: GetFeedPostsResponse?, _ error: Error?) -> Void) ``` @@ -2828,7 +2832,7 @@ Name | Type | Description | Notes ### Return type -[**GetFeedPosts200Response**](GetFeedPosts200Response.md) +[**GetFeedPostsResponse**](GetFeedPostsResponse.md) ### Authorization @@ -2843,7 +2847,7 @@ Name | Type | Description | Notes # **getHashTags** ```swift - open class func getHashTags(tenantId: String, page: Double? = nil, completion: @escaping (_ data: GetHashTags200Response?, _ error: Error?) -> Void) + open class func getHashTags(tenantId: String, page: Double? = nil, completion: @escaping (_ data: GetHashTagsResponse?, _ error: Error?) -> Void) ``` @@ -2877,7 +2881,7 @@ Name | Type | Description | Notes ### Return type -[**GetHashTags200Response**](GetHashTags200Response.md) +[**GetHashTagsResponse**](GetHashTagsResponse.md) ### Authorization @@ -2892,7 +2896,7 @@ Name | Type | Description | Notes # **getModerator** ```swift - open class func getModerator(tenantId: String, id: String, completion: @escaping (_ data: GetModerator200Response?, _ error: Error?) -> Void) + open class func getModerator(tenantId: String, id: String, completion: @escaping (_ data: GetModeratorResponse?, _ error: Error?) -> Void) ``` @@ -2926,7 +2930,7 @@ Name | Type | Description | Notes ### Return type -[**GetModerator200Response**](GetModerator200Response.md) +[**GetModeratorResponse**](GetModeratorResponse.md) ### Authorization @@ -2941,7 +2945,7 @@ Name | Type | Description | Notes # **getModerators** ```swift - open class func getModerators(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetModerators200Response?, _ error: Error?) -> Void) + open class func getModerators(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetModeratorsResponse?, _ error: Error?) -> Void) ``` @@ -2975,7 +2979,7 @@ Name | Type | Description | Notes ### Return type -[**GetModerators200Response**](GetModerators200Response.md) +[**GetModeratorsResponse**](GetModeratorsResponse.md) ### Authorization @@ -2990,7 +2994,7 @@ Name | Type | Description | Notes # **getNotificationCount** ```swift - open class func getNotificationCount(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, completion: @escaping (_ data: GetNotificationCount200Response?, _ error: Error?) -> Void) + open class func getNotificationCount(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, completion: @escaping (_ data: GetNotificationCountResponse?, _ error: Error?) -> Void) ``` @@ -3032,7 +3036,7 @@ Name | Type | Description | Notes ### Return type -[**GetNotificationCount200Response**](GetNotificationCount200Response.md) +[**GetNotificationCountResponse**](GetNotificationCountResponse.md) ### Authorization @@ -3047,7 +3051,7 @@ Name | Type | Description | Notes # **getNotifications** ```swift - open class func getNotifications(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetNotifications200Response?, _ error: Error?) -> Void) + open class func getNotifications(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetNotificationsResponse?, _ error: Error?) -> Void) ``` @@ -3091,7 +3095,7 @@ Name | Type | Description | Notes ### Return type -[**GetNotifications200Response**](GetNotifications200Response.md) +[**GetNotificationsResponse**](GetNotificationsResponse.md) ### Authorization @@ -3202,7 +3206,7 @@ Name | Type | Description | Notes # **getPendingWebhookEventCount** ```swift - open class func getPendingWebhookEventCount(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, completion: @escaping (_ data: GetPendingWebhookEventCount200Response?, _ error: Error?) -> Void) + open class func getPendingWebhookEventCount(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, completion: @escaping (_ data: GetPendingWebhookEventCountResponse?, _ error: Error?) -> Void) ``` @@ -3246,7 +3250,7 @@ Name | Type | Description | Notes ### Return type -[**GetPendingWebhookEventCount200Response**](GetPendingWebhookEventCount200Response.md) +[**GetPendingWebhookEventCountResponse**](GetPendingWebhookEventCountResponse.md) ### Authorization @@ -3261,7 +3265,7 @@ Name | Type | Description | Notes # **getPendingWebhookEvents** ```swift - open class func getPendingWebhookEvents(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: GetPendingWebhookEvents200Response?, _ error: Error?) -> Void) + open class func getPendingWebhookEvents(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: GetPendingWebhookEventsResponse?, _ error: Error?) -> Void) ``` @@ -3307,7 +3311,7 @@ Name | Type | Description | Notes ### Return type -[**GetPendingWebhookEvents200Response**](GetPendingWebhookEvents200Response.md) +[**GetPendingWebhookEventsResponse**](GetPendingWebhookEventsResponse.md) ### Authorization @@ -3322,7 +3326,7 @@ Name | Type | Description | Notes # **getQuestionConfig** ```swift - open class func getQuestionConfig(tenantId: String, id: String, completion: @escaping (_ data: GetQuestionConfig200Response?, _ error: Error?) -> Void) + open class func getQuestionConfig(tenantId: String, id: String, completion: @escaping (_ data: GetQuestionConfigResponse?, _ error: Error?) -> Void) ``` @@ -3356,7 +3360,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionConfig200Response**](GetQuestionConfig200Response.md) +[**GetQuestionConfigResponse**](GetQuestionConfigResponse.md) ### Authorization @@ -3371,7 +3375,7 @@ Name | Type | Description | Notes # **getQuestionConfigs** ```swift - open class func getQuestionConfigs(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetQuestionConfigs200Response?, _ error: Error?) -> Void) + open class func getQuestionConfigs(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetQuestionConfigsResponse?, _ error: Error?) -> Void) ``` @@ -3405,7 +3409,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionConfigs200Response**](GetQuestionConfigs200Response.md) +[**GetQuestionConfigsResponse**](GetQuestionConfigsResponse.md) ### Authorization @@ -3420,7 +3424,7 @@ Name | Type | Description | Notes # **getQuestionResult** ```swift - open class func getQuestionResult(tenantId: String, id: String, completion: @escaping (_ data: GetQuestionResult200Response?, _ error: Error?) -> Void) + open class func getQuestionResult(tenantId: String, id: String, completion: @escaping (_ data: GetQuestionResultResponse?, _ error: Error?) -> Void) ``` @@ -3454,7 +3458,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionResult200Response**](GetQuestionResult200Response.md) +[**GetQuestionResultResponse**](GetQuestionResultResponse.md) ### Authorization @@ -3469,7 +3473,7 @@ Name | Type | Description | Notes # **getQuestionResults** ```swift - open class func getQuestionResults(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetQuestionResults200Response?, _ error: Error?) -> Void) + open class func getQuestionResults(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetQuestionResultsResponse?, _ error: Error?) -> Void) ``` @@ -3513,7 +3517,7 @@ Name | Type | Description | Notes ### Return type -[**GetQuestionResults200Response**](GetQuestionResults200Response.md) +[**GetQuestionResultsResponse**](GetQuestionResultsResponse.md) ### Authorization @@ -3626,7 +3630,7 @@ Name | Type | Description | Notes # **getSSOUsers** ```swift - open class func getSSOUsers(tenantId: String, skip: Int? = nil, completion: @escaping (_ data: GetSSOUsers200Response?, _ error: Error?) -> Void) + open class func getSSOUsers(tenantId: String, skip: Int? = nil, completion: @escaping (_ data: GetSSOUsersResponse?, _ error: Error?) -> Void) ``` @@ -3660,7 +3664,7 @@ Name | Type | Description | Notes ### Return type -[**GetSSOUsers200Response**](GetSSOUsers200Response.md) +[**GetSSOUsersResponse**](GetSSOUsersResponse.md) ### Authorization @@ -3724,7 +3728,7 @@ Name | Type | Description | Notes # **getTenant** ```swift - open class func getTenant(tenantId: String, id: String, completion: @escaping (_ data: GetTenant200Response?, _ error: Error?) -> Void) + open class func getTenant(tenantId: String, id: String, completion: @escaping (_ data: GetTenantResponse?, _ error: Error?) -> Void) ``` @@ -3758,7 +3762,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenant200Response**](GetTenant200Response.md) +[**GetTenantResponse**](GetTenantResponse.md) ### Authorization @@ -3773,7 +3777,7 @@ Name | Type | Description | Notes # **getTenantDailyUsages** ```swift - open class func getTenantDailyUsages(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: GetTenantDailyUsages200Response?, _ error: Error?) -> Void) + open class func getTenantDailyUsages(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: GetTenantDailyUsagesResponse?, _ error: Error?) -> Void) ``` @@ -3813,7 +3817,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantDailyUsages200Response**](GetTenantDailyUsages200Response.md) +[**GetTenantDailyUsagesResponse**](GetTenantDailyUsagesResponse.md) ### Authorization @@ -3828,7 +3832,7 @@ Name | Type | Description | Notes # **getTenantPackage** ```swift - open class func getTenantPackage(tenantId: String, id: String, completion: @escaping (_ data: GetTenantPackage200Response?, _ error: Error?) -> Void) + open class func getTenantPackage(tenantId: String, id: String, completion: @escaping (_ data: GetTenantPackageResponse?, _ error: Error?) -> Void) ``` @@ -3862,7 +3866,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantPackage200Response**](GetTenantPackage200Response.md) +[**GetTenantPackageResponse**](GetTenantPackageResponse.md) ### Authorization @@ -3877,7 +3881,7 @@ Name | Type | Description | Notes # **getTenantPackages** ```swift - open class func getTenantPackages(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetTenantPackages200Response?, _ error: Error?) -> Void) + open class func getTenantPackages(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetTenantPackagesResponse?, _ error: Error?) -> Void) ``` @@ -3911,7 +3915,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantPackages200Response**](GetTenantPackages200Response.md) +[**GetTenantPackagesResponse**](GetTenantPackagesResponse.md) ### Authorization @@ -3926,7 +3930,7 @@ Name | Type | Description | Notes # **getTenantUser** ```swift - open class func getTenantUser(tenantId: String, id: String, completion: @escaping (_ data: GetTenantUser200Response?, _ error: Error?) -> Void) + open class func getTenantUser(tenantId: String, id: String, completion: @escaping (_ data: GetTenantUserResponse?, _ error: Error?) -> Void) ``` @@ -3960,7 +3964,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantUser200Response**](GetTenantUser200Response.md) +[**GetTenantUserResponse**](GetTenantUserResponse.md) ### Authorization @@ -3975,7 +3979,7 @@ Name | Type | Description | Notes # **getTenantUsers** ```swift - open class func getTenantUsers(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetTenantUsers200Response?, _ error: Error?) -> Void) + open class func getTenantUsers(tenantId: String, skip: Double? = nil, completion: @escaping (_ data: GetTenantUsersResponse?, _ error: Error?) -> Void) ``` @@ -4009,7 +4013,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenantUsers200Response**](GetTenantUsers200Response.md) +[**GetTenantUsersResponse**](GetTenantUsersResponse.md) ### Authorization @@ -4024,7 +4028,7 @@ Name | Type | Description | Notes # **getTenants** ```swift - open class func getTenants(tenantId: String, meta: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetTenants200Response?, _ error: Error?) -> Void) + open class func getTenants(tenantId: String, meta: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetTenantsResponse?, _ error: Error?) -> Void) ``` @@ -4060,7 +4064,7 @@ Name | Type | Description | Notes ### Return type -[**GetTenants200Response**](GetTenants200Response.md) +[**GetTenantsResponse**](GetTenantsResponse.md) ### Authorization @@ -4075,7 +4079,7 @@ Name | Type | Description | Notes # **getTicket** ```swift - open class func getTicket(tenantId: String, id: String, userId: String? = nil, completion: @escaping (_ data: GetTicket200Response?, _ error: Error?) -> Void) + open class func getTicket(tenantId: String, id: String, userId: String? = nil, completion: @escaping (_ data: GetTicketResponse?, _ error: Error?) -> Void) ``` @@ -4111,7 +4115,7 @@ Name | Type | Description | Notes ### Return type -[**GetTicket200Response**](GetTicket200Response.md) +[**GetTicketResponse**](GetTicketResponse.md) ### Authorization @@ -4126,7 +4130,7 @@ Name | Type | Description | Notes # **getTickets** ```swift - open class func getTickets(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, completion: @escaping (_ data: GetTickets200Response?, _ error: Error?) -> Void) + open class func getTickets(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, completion: @escaping (_ data: GetTicketsResponse?, _ error: Error?) -> Void) ``` @@ -4166,7 +4170,7 @@ Name | Type | Description | Notes ### Return type -[**GetTickets200Response**](GetTickets200Response.md) +[**GetTicketsResponse**](GetTicketsResponse.md) ### Authorization @@ -4181,7 +4185,7 @@ Name | Type | Description | Notes # **getUser** ```swift - open class func getUser(tenantId: String, id: String, completion: @escaping (_ data: GetUser200Response?, _ error: Error?) -> Void) + open class func getUser(tenantId: String, id: String, completion: @escaping (_ data: GetUserResponse?, _ error: Error?) -> Void) ``` @@ -4215,7 +4219,7 @@ Name | Type | Description | Notes ### Return type -[**GetUser200Response**](GetUser200Response.md) +[**GetUserResponse**](GetUserResponse.md) ### Authorization @@ -4230,7 +4234,7 @@ Name | Type | Description | Notes # **getUserBadge** ```swift - open class func getUserBadge(tenantId: String, id: String, completion: @escaping (_ data: GetUserBadge200Response?, _ error: Error?) -> Void) + open class func getUserBadge(tenantId: String, id: String, completion: @escaping (_ data: APIGetUserBadgeResponse?, _ error: Error?) -> Void) ``` @@ -4264,7 +4268,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadge200Response**](GetUserBadge200Response.md) +[**APIGetUserBadgeResponse**](APIGetUserBadgeResponse.md) ### Authorization @@ -4279,7 +4283,7 @@ Name | Type | Description | Notes # **getUserBadgeProgressById** ```swift - open class func getUserBadgeProgressById(tenantId: String, id: String, completion: @escaping (_ data: GetUserBadgeProgressById200Response?, _ error: Error?) -> Void) + open class func getUserBadgeProgressById(tenantId: String, id: String, completion: @escaping (_ data: APIGetUserBadgeProgressResponse?, _ error: Error?) -> Void) ``` @@ -4313,7 +4317,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -4328,7 +4332,7 @@ Name | Type | Description | Notes # **getUserBadgeProgressByUserId** ```swift - open class func getUserBadgeProgressByUserId(tenantId: String, userId: String, completion: @escaping (_ data: GetUserBadgeProgressById200Response?, _ error: Error?) -> Void) + open class func getUserBadgeProgressByUserId(tenantId: String, userId: String, completion: @escaping (_ data: APIGetUserBadgeProgressResponse?, _ error: Error?) -> Void) ``` @@ -4362,7 +4366,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressById200Response**](GetUserBadgeProgressById200Response.md) +[**APIGetUserBadgeProgressResponse**](APIGetUserBadgeProgressResponse.md) ### Authorization @@ -4377,7 +4381,7 @@ Name | Type | Description | Notes # **getUserBadgeProgressList** ```swift - open class func getUserBadgeProgressList(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: GetUserBadgeProgressList200Response?, _ error: Error?) -> Void) + open class func getUserBadgeProgressList(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: APIGetUserBadgeProgressListResponse?, _ error: Error?) -> Void) ``` @@ -4415,7 +4419,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadgeProgressList200Response**](GetUserBadgeProgressList200Response.md) +[**APIGetUserBadgeProgressListResponse**](APIGetUserBadgeProgressListResponse.md) ### Authorization @@ -4430,7 +4434,7 @@ Name | Type | Description | Notes # **getUserBadges** ```swift - open class func getUserBadges(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: GetUserBadges200Response?, _ error: Error?) -> Void) + open class func getUserBadges(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: APIGetUserBadgesResponse?, _ error: Error?) -> Void) ``` @@ -4474,7 +4478,7 @@ Name | Type | Description | Notes ### Return type -[**GetUserBadges200Response**](GetUserBadges200Response.md) +[**APIGetUserBadgesResponse**](APIGetUserBadgesResponse.md) ### Authorization @@ -4489,7 +4493,7 @@ Name | Type | Description | Notes # **getVotes** ```swift - open class func getVotes(tenantId: String, urlId: String, completion: @escaping (_ data: GetVotes200Response?, _ error: Error?) -> Void) + open class func getVotes(tenantId: String, urlId: String, completion: @escaping (_ data: GetVotesResponse?, _ error: Error?) -> Void) ``` @@ -4523,7 +4527,7 @@ Name | Type | Description | Notes ### Return type -[**GetVotes200Response**](GetVotes200Response.md) +[**GetVotesResponse**](GetVotesResponse.md) ### Authorization @@ -4538,7 +4542,7 @@ Name | Type | Description | Notes # **getVotesForUser** ```swift - open class func getVotesForUser(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: GetVotesForUser200Response?, _ error: Error?) -> Void) + open class func getVotesForUser(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: GetVotesForUserResponse?, _ error: Error?) -> Void) ``` @@ -4576,7 +4580,7 @@ Name | Type | Description | Notes ### Return type -[**GetVotesForUser200Response**](GetVotesForUser200Response.md) +[**GetVotesForUserResponse**](GetVotesForUserResponse.md) ### Authorization @@ -4591,7 +4595,7 @@ Name | Type | Description | Notes # **patchDomainConfig** ```swift - open class func patchDomainConfig(tenantId: String, domainToUpdate: String, patchDomainConfigParams: PatchDomainConfigParams, completion: @escaping (_ data: GetDomainConfig200Response?, _ error: Error?) -> Void) + open class func patchDomainConfig(tenantId: String, domainToUpdate: String, patchDomainConfigParams: PatchDomainConfigParams, completion: @escaping (_ data: PatchDomainConfigResponse?, _ error: Error?) -> Void) ``` @@ -4627,7 +4631,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PatchDomainConfigResponse**](PatchDomainConfigResponse.md) ### Authorization @@ -4642,7 +4646,7 @@ Name | Type | Description | Notes # **patchHashTag** ```swift - open class func patchHashTag(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, completion: @escaping (_ data: PatchHashTag200Response?, _ error: Error?) -> Void) + open class func patchHashTag(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, completion: @escaping (_ data: UpdateHashTagResponse?, _ error: Error?) -> Void) ``` @@ -4678,7 +4682,7 @@ Name | Type | Description | Notes ### Return type -[**PatchHashTag200Response**](PatchHashTag200Response.md) +[**UpdateHashTagResponse**](UpdateHashTagResponse.md) ### Authorization @@ -4797,7 +4801,7 @@ Name | Type | Description | Notes # **putDomainConfig** ```swift - open class func putDomainConfig(tenantId: String, domainToUpdate: String, updateDomainConfigParams: UpdateDomainConfigParams, completion: @escaping (_ data: GetDomainConfig200Response?, _ error: Error?) -> Void) + open class func putDomainConfig(tenantId: String, domainToUpdate: String, updateDomainConfigParams: UpdateDomainConfigParams, completion: @escaping (_ data: PutDomainConfigResponse?, _ error: Error?) -> Void) ``` @@ -4833,7 +4837,7 @@ Name | Type | Description | Notes ### Return type -[**GetDomainConfig200Response**](GetDomainConfig200Response.md) +[**PutDomainConfigResponse**](PutDomainConfigResponse.md) ### Authorization @@ -4901,7 +4905,7 @@ Name | Type | Description | Notes # **renderEmailTemplate** ```swift - open class func renderEmailTemplate(tenantId: String, renderEmailTemplateBody: RenderEmailTemplateBody, locale: String? = nil, completion: @escaping (_ data: RenderEmailTemplate200Response?, _ error: Error?) -> Void) + open class func renderEmailTemplate(tenantId: String, renderEmailTemplateBody: RenderEmailTemplateBody, locale: String? = nil, completion: @escaping (_ data: RenderEmailTemplateResponse?, _ error: Error?) -> Void) ``` @@ -4937,7 +4941,7 @@ Name | Type | Description | Notes ### Return type -[**RenderEmailTemplate200Response**](RenderEmailTemplate200Response.md) +[**RenderEmailTemplateResponse**](RenderEmailTemplateResponse.md) ### Authorization @@ -4952,7 +4956,7 @@ Name | Type | Description | Notes # **replaceTenantPackage** ```swift - open class func replaceTenantPackage(tenantId: String, id: String, replaceTenantPackageBody: ReplaceTenantPackageBody, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func replaceTenantPackage(tenantId: String, id: String, replaceTenantPackageBody: ReplaceTenantPackageBody, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -4988,7 +4992,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5003,7 +5007,7 @@ Name | Type | Description | Notes # **replaceTenantUser** ```swift - open class func replaceTenantUser(tenantId: String, id: String, replaceTenantUserBody: ReplaceTenantUserBody, updateComments: String? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func replaceTenantUser(tenantId: String, id: String, replaceTenantUserBody: ReplaceTenantUserBody, updateComments: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5041,7 +5045,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5056,7 +5060,7 @@ Name | Type | Description | Notes # **saveComment** ```swift - open class func saveComment(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, completion: @escaping (_ data: SaveComment200Response?, _ error: Error?) -> Void) + open class func saveComment(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, completion: @escaping (_ data: APISaveCommentResponse?, _ error: Error?) -> Void) ``` @@ -5067,7 +5071,7 @@ Name | Type | Description | Notes import FastCommentsSwift let tenantId = "tenantId_example" // String | -let createCommentParams = CreateCommentParams(date: 123, localDateString: "localDateString_example", localDateHours: 123, commenterName: "commenterName_example", commenterEmail: "commenterEmail_example", commenterLink: "commenterLink_example", comment: "comment_example", productId: 123, userId: "userId_example", avatarSrc: "avatarSrc_example", parentId: "parentId_example", mentions: [CommentUserMentionInfo(id: "id_example", tag: "tag_example", rawTag: "rawTag_example", type: "type_example", sent: false)], hashTags: [CommentUserHashTagInfo(id: "id_example", tag: "tag_example", url: "url_example", retain: false)], pageTitle: "pageTitle_example", isFromMyAccountPage: false, url: "url_example", urlId: "urlId_example", meta: 123, moderationGroupIds: ["moderationGroupIds_example"], rating: 123, fromOfflineRestore: false, autoplayDelayMS: 123, feedbackIds: ["feedbackIds_example"], questionValues: "TODO", tos: false, approved: false, domain: "domain_example", ip: "ip_example", isPinned: false, locale: "locale_example", reviewed: false, verified: false, votes: 123, votesDown: 123, votesUp: 123) // CreateCommentParams | +let createCommentParams = CreateCommentParams(date: 123, localDateString: "localDateString_example", localDateHours: 123, commenterName: "commenterName_example", commenterEmail: "commenterEmail_example", commenterLink: "commenterLink_example", comment: "comment_example", productId: 123, userId: "userId_example", avatarSrc: "avatarSrc_example", parentId: "parentId_example", mentions: [CommentUserMentionInfo(id: "id_example", tag: "tag_example", rawTag: "rawTag_example", type: "type_example", sent: false)], hashTags: [CommentUserHashTagInfo(id: "id_example", tag: "tag_example", url: "url_example", retain: false)], pageTitle: "pageTitle_example", isFromMyAccountPage: false, url: "url_example", urlId: "urlId_example", meta: 123, moderationGroupIds: ["moderationGroupIds_example"], rating: 123, fromOfflineRestore: false, autoplayDelayMS: 123, feedbackIds: ["feedbackIds_example"], questionValues: "TODO", tos: false, botId: "botId_example", approved: false, domain: "domain_example", ip: "ip_example", isPinned: false, locale: "locale_example", reviewed: false, verified: false, votes: 123, votesDown: 123, votesUp: 123) // CreateCommentParams | let isLive = true // Bool | (optional) let doSpamCheck = true // Bool | (optional) let sendEmails = true // Bool | (optional) @@ -5098,7 +5102,7 @@ Name | Type | Description | Notes ### Return type -[**SaveComment200Response**](SaveComment200Response.md) +[**APISaveCommentResponse**](APISaveCommentResponse.md) ### Authorization @@ -5113,7 +5117,7 @@ Name | Type | Description | Notes # **saveCommentsBulk** ```swift - open class func saveCommentsBulk(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, completion: @escaping (_ data: [SaveComment200Response]?, _ error: Error?) -> Void) + open class func saveCommentsBulk(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, completion: @escaping (_ data: [SaveCommentsBulkResponse]?, _ error: Error?) -> Void) ``` @@ -5124,7 +5128,7 @@ Name | Type | Description | Notes import FastCommentsSwift let tenantId = "tenantId_example" // String | -let createCommentParams = [CreateCommentParams(date: 123, localDateString: "localDateString_example", localDateHours: 123, commenterName: "commenterName_example", commenterEmail: "commenterEmail_example", commenterLink: "commenterLink_example", comment: "comment_example", productId: 123, userId: "userId_example", avatarSrc: "avatarSrc_example", parentId: "parentId_example", mentions: [CommentUserMentionInfo(id: "id_example", tag: "tag_example", rawTag: "rawTag_example", type: "type_example", sent: false)], hashTags: [CommentUserHashTagInfo(id: "id_example", tag: "tag_example", url: "url_example", retain: false)], pageTitle: "pageTitle_example", isFromMyAccountPage: false, url: "url_example", urlId: "urlId_example", meta: 123, moderationGroupIds: ["moderationGroupIds_example"], rating: 123, fromOfflineRestore: false, autoplayDelayMS: 123, feedbackIds: ["feedbackIds_example"], questionValues: "TODO", tos: false, approved: false, domain: "domain_example", ip: "ip_example", isPinned: false, locale: "locale_example", reviewed: false, verified: false, votes: 123, votesDown: 123, votesUp: 123)] // [CreateCommentParams] | +let createCommentParams = [CreateCommentParams(date: 123, localDateString: "localDateString_example", localDateHours: 123, commenterName: "commenterName_example", commenterEmail: "commenterEmail_example", commenterLink: "commenterLink_example", comment: "comment_example", productId: 123, userId: "userId_example", avatarSrc: "avatarSrc_example", parentId: "parentId_example", mentions: [CommentUserMentionInfo(id: "id_example", tag: "tag_example", rawTag: "rawTag_example", type: "type_example", sent: false)], hashTags: [CommentUserHashTagInfo(id: "id_example", tag: "tag_example", url: "url_example", retain: false)], pageTitle: "pageTitle_example", isFromMyAccountPage: false, url: "url_example", urlId: "urlId_example", meta: 123, moderationGroupIds: ["moderationGroupIds_example"], rating: 123, fromOfflineRestore: false, autoplayDelayMS: 123, feedbackIds: ["feedbackIds_example"], questionValues: "TODO", tos: false, botId: "botId_example", approved: false, domain: "domain_example", ip: "ip_example", isPinned: false, locale: "locale_example", reviewed: false, verified: false, votes: 123, votesDown: 123, votesUp: 123)] // [CreateCommentParams] | let isLive = true // Bool | (optional) let doSpamCheck = true // Bool | (optional) let sendEmails = true // Bool | (optional) @@ -5155,7 +5159,7 @@ Name | Type | Description | Notes ### Return type -[**[SaveComment200Response]**](SaveComment200Response.md) +[**[SaveCommentsBulkResponse]**](SaveCommentsBulkResponse.md) ### Authorization @@ -5170,7 +5174,7 @@ Name | Type | Description | Notes # **sendInvite** ```swift - open class func sendInvite(tenantId: String, id: String, fromName: String, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func sendInvite(tenantId: String, id: String, fromName: String, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5206,7 +5210,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5221,7 +5225,7 @@ Name | Type | Description | Notes # **sendLoginLink** ```swift - open class func sendLoginLink(tenantId: String, id: String, redirectURL: String? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func sendLoginLink(tenantId: String, id: String, redirectURL: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5257,7 +5261,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5272,7 +5276,7 @@ Name | Type | Description | Notes # **unBlockUserFromComment** ```swift - open class func unBlockUserFromComment(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: UnBlockCommentPublic200Response?, _ error: Error?) -> Void) + open class func unBlockUserFromComment(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: UnblockSuccess?, _ error: Error?) -> Void) ``` @@ -5312,7 +5316,7 @@ Name | Type | Description | Notes ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -5327,7 +5331,7 @@ Name | Type | Description | Notes # **unFlagComment** ```swift - open class func unFlagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: FlagComment200Response?, _ error: Error?) -> Void) + open class func unFlagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: FlagCommentResponse?, _ error: Error?) -> Void) ``` @@ -5365,7 +5369,7 @@ Name | Type | Description | Notes ### Return type -[**FlagComment200Response**](FlagComment200Response.md) +[**FlagCommentResponse**](FlagCommentResponse.md) ### Authorization @@ -5380,7 +5384,7 @@ Name | Type | Description | Notes # **updateComment** ```swift - open class func updateComment(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateComment(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5422,7 +5426,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5437,7 +5441,7 @@ Name | Type | Description | Notes # **updateEmailTemplate** ```swift - open class func updateEmailTemplate(tenantId: String, id: String, updateEmailTemplateBody: UpdateEmailTemplateBody, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateEmailTemplate(tenantId: String, id: String, updateEmailTemplateBody: UpdateEmailTemplateBody, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5473,7 +5477,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5488,7 +5492,7 @@ Name | Type | Description | Notes # **updateFeedPost** ```swift - open class func updateFeedPost(tenantId: String, id: String, feedPost: FeedPost, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateFeedPost(tenantId: String, id: String, feedPost: FeedPost, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5524,7 +5528,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5539,7 +5543,7 @@ Name | Type | Description | Notes # **updateModerator** ```swift - open class func updateModerator(tenantId: String, id: String, updateModeratorBody: UpdateModeratorBody, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateModerator(tenantId: String, id: String, updateModeratorBody: UpdateModeratorBody, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5575,7 +5579,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5590,7 +5594,7 @@ Name | Type | Description | Notes # **updateNotification** ```swift - open class func updateNotification(tenantId: String, id: String, updateNotificationBody: UpdateNotificationBody, userId: String? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateNotification(tenantId: String, id: String, updateNotificationBody: UpdateNotificationBody, userId: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5628,7 +5632,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5643,7 +5647,7 @@ Name | Type | Description | Notes # **updateQuestionConfig** ```swift - open class func updateQuestionConfig(tenantId: String, id: String, updateQuestionConfigBody: UpdateQuestionConfigBody, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateQuestionConfig(tenantId: String, id: String, updateQuestionConfigBody: UpdateQuestionConfigBody, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5679,7 +5683,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5694,7 +5698,7 @@ Name | Type | Description | Notes # **updateQuestionResult** ```swift - open class func updateQuestionResult(tenantId: String, id: String, updateQuestionResultBody: UpdateQuestionResultBody, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateQuestionResult(tenantId: String, id: String, updateQuestionResultBody: UpdateQuestionResultBody, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5730,7 +5734,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5798,7 +5802,7 @@ Name | Type | Description | Notes # **updateTenant** ```swift - open class func updateTenant(tenantId: String, id: String, updateTenantBody: UpdateTenantBody, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateTenant(tenantId: String, id: String, updateTenantBody: UpdateTenantBody, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5834,7 +5838,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5849,7 +5853,7 @@ Name | Type | Description | Notes # **updateTenantPackage** ```swift - open class func updateTenantPackage(tenantId: String, id: String, updateTenantPackageBody: UpdateTenantPackageBody, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateTenantPackage(tenantId: String, id: String, updateTenantPackageBody: UpdateTenantPackageBody, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5885,7 +5889,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5900,7 +5904,7 @@ Name | Type | Description | Notes # **updateTenantUser** ```swift - open class func updateTenantUser(tenantId: String, id: String, updateTenantUserBody: UpdateTenantUserBody, updateComments: String? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func updateTenantUser(tenantId: String, id: String, updateTenantUserBody: UpdateTenantUserBody, updateComments: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5938,7 +5942,7 @@ Name | Type | Description | Notes ### Return type -[**FlagCommentPublic200Response**](FlagCommentPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -5953,7 +5957,7 @@ Name | Type | Description | Notes # **updateUserBadge** ```swift - open class func updateUserBadge(tenantId: String, id: String, updateUserBadgeParams: UpdateUserBadgeParams, completion: @escaping (_ data: UpdateUserBadge200Response?, _ error: Error?) -> Void) + open class func updateUserBadge(tenantId: String, id: String, updateUserBadgeParams: UpdateUserBadgeParams, completion: @escaping (_ data: APIEmptySuccessResponse?, _ error: Error?) -> Void) ``` @@ -5989,7 +5993,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserBadge200Response**](UpdateUserBadge200Response.md) +[**APIEmptySuccessResponse**](APIEmptySuccessResponse.md) ### Authorization diff --git a/client/docs/DeleteComment200Response.md b/client/docs/DeleteComment200Response.md deleted file mode 100644 index 82e4cef..0000000 --- a/client/docs/DeleteComment200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# DeleteComment200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | [**DeleteCommentAction**](DeleteCommentAction.md) | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteCommentPublic200Response.md b/client/docs/DeleteCommentPublic200Response.md deleted file mode 100644 index ec100d9..0000000 --- a/client/docs/DeleteCommentPublic200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# DeleteCommentPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment** | [**DeletedCommentResultComment**](DeletedCommentResultComment.md) | | [optional] -**hardRemoved** | **Bool** | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteCommentVote200Response.md b/client/docs/DeleteCommentVote200Response.md deleted file mode 100644 index c064970..0000000 --- a/client/docs/DeleteCommentVote200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# DeleteCommentVote200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**wasPendingVote** | **Bool** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteDomainConfig200Response.md b/client/docs/DeleteDomainConfigResponse.md similarity index 90% rename from client/docs/DeleteDomainConfig200Response.md rename to client/docs/DeleteDomainConfigResponse.md index fa9dc50..bdf4594 100644 --- a/client/docs/DeleteDomainConfig200Response.md +++ b/client/docs/DeleteDomainConfigResponse.md @@ -1,4 +1,4 @@ -# DeleteDomainConfig200Response +# DeleteDomainConfigResponse ## Properties Name | Type | Description | Notes diff --git a/client/docs/DeleteFeedPostPublic200Response.md b/client/docs/DeleteFeedPostPublic200Response.md deleted file mode 100644 index 9a07477..0000000 --- a/client/docs/DeleteFeedPostPublic200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# DeleteFeedPostPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md b/client/docs/DeleteFeedPostPublicResponse.md similarity index 89% rename from client/docs/DeleteFeedPostPublic200ResponseAnyOf.md rename to client/docs/DeleteFeedPostPublicResponse.md index 6a00080..7e58491 100644 --- a/client/docs/DeleteFeedPostPublic200ResponseAnyOf.md +++ b/client/docs/DeleteFeedPostPublicResponse.md @@ -1,4 +1,4 @@ -# DeleteFeedPostPublic200ResponseAnyOf +# DeleteFeedPostPublicResponse ## Properties Name | Type | Description | Notes diff --git a/client/docs/DeleteHashTagRequest.md b/client/docs/DeleteHashTagRequestBody.md similarity index 92% rename from client/docs/DeleteHashTagRequest.md rename to client/docs/DeleteHashTagRequestBody.md index 07df5ae..28d74b3 100644 --- a/client/docs/DeleteHashTagRequest.md +++ b/client/docs/DeleteHashTagRequestBody.md @@ -1,4 +1,4 @@ -# DeleteHashTagRequest +# DeleteHashTagRequestBody ## Properties Name | Type | Description | Notes diff --git a/client/docs/FComment.md b/client/docs/FComment.md index 6cea0a8..32d2e4a 100644 --- a/client/docs/FComment.md +++ b/client/docs/FComment.md @@ -75,6 +75,7 @@ Name | Type | Description | Notes **requiresVerification** | **Bool** | | [optional] **editKey** | **String** | | [optional] **tosAcceptedAt** | **Date** | | [optional] +**botId** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/FlagComment200Response.md b/client/docs/FlagComment200Response.md deleted file mode 100644 index 70932d3..0000000 --- a/client/docs/FlagComment200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# FlagComment200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**statusCode** | **Int** | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **String** | | [optional] -**reason** | **String** | | [optional] -**wasUnapproved** | **Bool** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/FlagCommentPublic200Response.md b/client/docs/FlagCommentPublic200Response.md deleted file mode 100644 index 4d1b1ee..0000000 --- a/client/docs/FlagCommentPublic200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# FlagCommentPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetAuditLogs200Response.md b/client/docs/GetAuditLogs200Response.md deleted file mode 100644 index b1f8841..0000000 --- a/client/docs/GetAuditLogs200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetAuditLogs200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**auditLogs** | [APIAuditLog] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetBannedUsersCountResponse.md b/client/docs/GetBannedUsersCountResponse.md new file mode 100644 index 0000000..4b15fcf --- /dev/null +++ b/client/docs/GetBannedUsersCountResponse.md @@ -0,0 +1,11 @@ +# GetBannedUsersCountResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**totalCount** | **Double** | | +**status** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetBannedUsersFromCommentResponse.md b/client/docs/GetBannedUsersFromCommentResponse.md new file mode 100644 index 0000000..c80485a --- /dev/null +++ b/client/docs/GetBannedUsersFromCommentResponse.md @@ -0,0 +1,12 @@ +# GetBannedUsersFromCommentResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bannedUsers** | [APIBannedUserWithMultiMatchInfo] | | +**code** | **String** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCachedNotificationCount200Response.md b/client/docs/GetCachedNotificationCount200Response.md deleted file mode 100644 index 924ea78..0000000 --- a/client/docs/GetCachedNotificationCount200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetCachedNotificationCount200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**data** | [**UserNotificationCount**](UserNotificationCount.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetComment200Response.md b/client/docs/GetComment200Response.md deleted file mode 100644 index b3dcf0f..0000000 --- a/client/docs/GetComment200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetComment200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comment** | [**APIComment**](APIComment.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentBanStatusResponse.md b/client/docs/GetCommentBanStatusResponse.md new file mode 100644 index 0000000..aa2b799 --- /dev/null +++ b/client/docs/GetCommentBanStatusResponse.md @@ -0,0 +1,12 @@ +# GetCommentBanStatusResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**emailDomain** | **String** | | +**canIPBan** | **Bool** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentText200Response.md b/client/docs/GetCommentText200Response.md deleted file mode 100644 index a37c42f..0000000 --- a/client/docs/GetCommentText200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetCommentText200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**commentText** | **String** | | [optional] -**sanitizedCommentText** | **String** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentTextResponse.md b/client/docs/GetCommentTextResponse.md new file mode 100644 index 0000000..e09ea60 --- /dev/null +++ b/client/docs/GetCommentTextResponse.md @@ -0,0 +1,11 @@ +# GetCommentTextResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **String** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentVoteUserNames200Response.md b/client/docs/GetCommentVoteUserNames200Response.md deleted file mode 100644 index d47fae1..0000000 --- a/client/docs/GetCommentVoteUserNames200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetCommentVoteUserNames200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**voteUserNames** | **[String]** | | [optional] -**hasMore** | **Bool** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetComments200Response.md b/client/docs/GetComments200Response.md deleted file mode 100644 index 3dbbe7c..0000000 --- a/client/docs/GetComments200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetComments200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**comments** | [APIComment] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetCommentsForUserResponse.md b/client/docs/GetCommentsForUserResponse.md new file mode 100644 index 0000000..43112f1 --- /dev/null +++ b/client/docs/GetCommentsForUserResponse.md @@ -0,0 +1,10 @@ +# GetCommentsForUserResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**moderatingTenantIds** | **[String]** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetCommentsPublic200Response.md b/client/docs/GetCommentsPublic200Response.md deleted file mode 100644 index 6e6ebc4..0000000 --- a/client/docs/GetCommentsPublic200Response.md +++ /dev/null @@ -1,40 +0,0 @@ -# GetCommentsPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**statusCode** | **Int** | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **String** | | [optional] -**reason** | **String** | | [optional] -**translatedWarning** | **String** | | [optional] -**comments** | [PublicComment] | | [optional] -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] -**urlIdClean** | **String** | | [optional] -**lastGenDate** | **Int64** | | [optional] -**includesPastPages** | **Bool** | | [optional] -**isDemo** | **Bool** | | [optional] -**commentCount** | **Int** | | [optional] -**isSiteAdmin** | **Bool** | | [optional] -**hasBillingIssue** | **Bool** | | [optional] -**moduleData** | **[String: JSONValue]** | Construct a type with a set of properties K of type T | [optional] -**pageNumber** | **Int** | | [optional] -**isWhiteLabeled** | **Bool** | | [optional] -**isProd** | **Bool** | | [optional] -**isCrawler** | **Bool** | | [optional] -**notificationCount** | **Int** | | [optional] -**hasMore** | **Bool** | | [optional] -**isClosed** | **Bool** | | [optional] -**presencePollState** | **Int** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] -**urlIdWS** | **String** | | [optional] -**userIdWS** | **String** | | [optional] -**tenantIdWS** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/AddDomainConfig200Response.md b/client/docs/GetDomainConfigResponse.md similarity index 93% rename from client/docs/AddDomainConfig200Response.md rename to client/docs/GetDomainConfigResponse.md index fbb9a20..b4d06e2 100644 --- a/client/docs/AddDomainConfig200Response.md +++ b/client/docs/GetDomainConfigResponse.md @@ -1,12 +1,12 @@ -# AddDomainConfig200Response +# GetDomainConfigResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**configuration** | **JSONValue** | | [optional] +**status** | **JSONValue** | | **reason** | **String** | | [optional] **code** | **String** | | [optional] -**status** | **JSONValue** | | -**configuration** | **JSONValue** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/GetDomainConfigs200Response.md b/client/docs/GetDomainConfigsResponse.md similarity index 93% rename from client/docs/GetDomainConfigs200Response.md rename to client/docs/GetDomainConfigsResponse.md index efff511..a3ec1ad 100644 --- a/client/docs/GetDomainConfigs200Response.md +++ b/client/docs/GetDomainConfigsResponse.md @@ -1,4 +1,4 @@ -# GetDomainConfigs200Response +# GetDomainConfigsResponse ## Properties Name | Type | Description | Notes diff --git a/client/docs/GetDomainConfigs200ResponseAnyOf.md b/client/docs/GetDomainConfigsResponseAnyOf.md similarity index 90% rename from client/docs/GetDomainConfigs200ResponseAnyOf.md rename to client/docs/GetDomainConfigsResponseAnyOf.md index da13392..381d673 100644 --- a/client/docs/GetDomainConfigs200ResponseAnyOf.md +++ b/client/docs/GetDomainConfigsResponseAnyOf.md @@ -1,4 +1,4 @@ -# GetDomainConfigs200ResponseAnyOf +# GetDomainConfigsResponseAnyOf ## Properties Name | Type | Description | Notes diff --git a/client/docs/GetDomainConfigs200ResponseAnyOf1.md b/client/docs/GetDomainConfigsResponseAnyOf1.md similarity index 91% rename from client/docs/GetDomainConfigs200ResponseAnyOf1.md rename to client/docs/GetDomainConfigsResponseAnyOf1.md index 66d0c7a..541c987 100644 --- a/client/docs/GetDomainConfigs200ResponseAnyOf1.md +++ b/client/docs/GetDomainConfigsResponseAnyOf1.md @@ -1,4 +1,4 @@ -# GetDomainConfigs200ResponseAnyOf1 +# GetDomainConfigsResponseAnyOf1 ## Properties Name | Type | Description | Notes diff --git a/client/docs/GetEmailTemplate200Response.md b/client/docs/GetEmailTemplate200Response.md deleted file mode 100644 index 226c58a..0000000 --- a/client/docs/GetEmailTemplate200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetEmailTemplate200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**emailTemplate** | [**CustomEmailTemplate**](CustomEmailTemplate.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplateDefinitions200Response.md b/client/docs/GetEmailTemplateDefinitions200Response.md deleted file mode 100644 index 93f5286..0000000 --- a/client/docs/GetEmailTemplateDefinitions200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetEmailTemplateDefinitions200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**definitions** | [EmailTemplateDefinition] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplateRenderErrors200Response.md b/client/docs/GetEmailTemplateRenderErrors200Response.md deleted file mode 100644 index 0e02327..0000000 --- a/client/docs/GetEmailTemplateRenderErrors200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetEmailTemplateRenderErrors200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**renderErrors** | [EmailTemplateRenderErrorResponse] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEmailTemplates200Response.md b/client/docs/GetEmailTemplates200Response.md deleted file mode 100644 index 2088da8..0000000 --- a/client/docs/GetEmailTemplates200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetEmailTemplates200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**emailTemplates** | [CustomEmailTemplate] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetEventLog200Response.md b/client/docs/GetEventLog200Response.md deleted file mode 100644 index 98d5b53..0000000 --- a/client/docs/GetEventLog200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetEventLog200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**events** | [EventLogEntry] | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPosts200Response.md b/client/docs/GetFeedPosts200Response.md deleted file mode 100644 index 3623737..0000000 --- a/client/docs/GetFeedPosts200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetFeedPosts200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**feedPosts** | [FeedPost] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPostsPublic200Response.md b/client/docs/GetFeedPostsPublic200Response.md deleted file mode 100644 index 8e1461a..0000000 --- a/client/docs/GetFeedPostsPublic200Response.md +++ /dev/null @@ -1,23 +0,0 @@ -# GetFeedPostsPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**myReacts** | [String: [String: Bool]] | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**feedPosts** | [FeedPost] | | [optional] -**user** | [**UserSessionInfo**](UserSessionInfo.md) | | [optional] -**urlIdWS** | **String** | | [optional] -**userIdWS** | **String** | | [optional] -**tenantIdWS** | **String** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetFeedPostsStats200Response.md b/client/docs/GetFeedPostsStats200Response.md deleted file mode 100644 index 88089c9..0000000 --- a/client/docs/GetFeedPostsStats200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetFeedPostsStats200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**stats** | [String: FeedPostStats] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetGifsSearchResponse.md b/client/docs/GetGifsSearchResponse.md new file mode 100644 index 0000000..bfef346 --- /dev/null +++ b/client/docs/GetGifsSearchResponse.md @@ -0,0 +1,12 @@ +# GetGifsSearchResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [[GifSearchResponseImagesInnerInner]] | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetGifsTrendingResponse.md b/client/docs/GetGifsTrendingResponse.md new file mode 100644 index 0000000..491a376 --- /dev/null +++ b/client/docs/GetGifsTrendingResponse.md @@ -0,0 +1,12 @@ +# GetGifsTrendingResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [[GifSearchResponseImagesInnerInner]] | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetHashTags200Response.md b/client/docs/GetHashTags200Response.md deleted file mode 100644 index ddddbb4..0000000 --- a/client/docs/GetHashTags200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetHashTags200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**hashTags** | [TenantHashTag] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetModerator200Response.md b/client/docs/GetModerator200Response.md deleted file mode 100644 index e646a95..0000000 --- a/client/docs/GetModerator200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetModerator200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderator** | [**Moderator**](Moderator.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetModerators200Response.md b/client/docs/GetModerators200Response.md deleted file mode 100644 index e8e7522..0000000 --- a/client/docs/GetModerators200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetModerators200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**moderators** | [Moderator] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetNotificationCount200Response.md b/client/docs/GetNotificationCount200Response.md deleted file mode 100644 index 05d0df9..0000000 --- a/client/docs/GetNotificationCount200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetNotificationCount200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**count** | **Double** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetNotifications200Response.md b/client/docs/GetNotifications200Response.md deleted file mode 100644 index 2e52d74..0000000 --- a/client/docs/GetNotifications200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetNotifications200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**notifications** | [UserNotification] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetPendingWebhookEventCount200Response.md b/client/docs/GetPendingWebhookEventCount200Response.md deleted file mode 100644 index b82fc03..0000000 --- a/client/docs/GetPendingWebhookEventCount200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPendingWebhookEventCount200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**count** | **Double** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetPendingWebhookEvents200Response.md b/client/docs/GetPendingWebhookEvents200Response.md deleted file mode 100644 index 229980e..0000000 --- a/client/docs/GetPendingWebhookEvents200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetPendingWebhookEvents200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**pendingWebhookEvents** | [PendingCommentToSyncOutbound] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetPublicPagesResponse.md b/client/docs/GetPublicPagesResponse.md new file mode 100644 index 0000000..dc54455 --- /dev/null +++ b/client/docs/GetPublicPagesResponse.md @@ -0,0 +1,12 @@ +# GetPublicPagesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nextCursor** | **String** | | +**pages** | [PublicPage] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetQuestionConfig200Response.md b/client/docs/GetQuestionConfig200Response.md deleted file mode 100644 index dfe4281..0000000 --- a/client/docs/GetQuestionConfig200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetQuestionConfig200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionConfig** | [**QuestionConfig**](QuestionConfig.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionConfigs200Response.md b/client/docs/GetQuestionConfigs200Response.md deleted file mode 100644 index 1dae1a0..0000000 --- a/client/docs/GetQuestionConfigs200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetQuestionConfigs200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionConfigs** | [QuestionConfig] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionResult200Response.md b/client/docs/GetQuestionResult200Response.md deleted file mode 100644 index 0c9ddd9..0000000 --- a/client/docs/GetQuestionResult200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetQuestionResult200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionResult** | [**QuestionResult**](QuestionResult.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetQuestionResults200Response.md b/client/docs/GetQuestionResults200Response.md deleted file mode 100644 index 6caf4b4..0000000 --- a/client/docs/GetQuestionResults200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetQuestionResults200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**questionResults** | [QuestionResult] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetSSOUsers200Response.md b/client/docs/GetSSOUsersResponse.md similarity index 93% rename from client/docs/GetSSOUsers200Response.md rename to client/docs/GetSSOUsersResponse.md index 6e7c5b9..8d1ce7c 100644 --- a/client/docs/GetSSOUsers200Response.md +++ b/client/docs/GetSSOUsersResponse.md @@ -1,4 +1,4 @@ -# GetSSOUsers200Response +# GetSSOUsersResponse ## Properties Name | Type | Description | Notes diff --git a/client/docs/GetTenant200Response.md b/client/docs/GetTenant200Response.md deleted file mode 100644 index c2552c6..0000000 --- a/client/docs/GetTenant200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTenant200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenant** | [**APITenant**](APITenant.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantDailyUsages200Response.md b/client/docs/GetTenantDailyUsages200Response.md deleted file mode 100644 index e7b7b9d..0000000 --- a/client/docs/GetTenantDailyUsages200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTenantDailyUsages200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantDailyUsages** | [APITenantDailyUsage] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantManualBadgesResponse.md b/client/docs/GetTenantManualBadgesResponse.md new file mode 100644 index 0000000..50581c3 --- /dev/null +++ b/client/docs/GetTenantManualBadgesResponse.md @@ -0,0 +1,11 @@ +# GetTenantManualBadgesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [TenantBadge] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetTenantPackage200Response.md b/client/docs/GetTenantPackage200Response.md deleted file mode 100644 index 0081439..0000000 --- a/client/docs/GetTenantPackage200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTenantPackage200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantPackage** | [**TenantPackage**](TenantPackage.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantPackages200Response.md b/client/docs/GetTenantPackages200Response.md deleted file mode 100644 index a4a1f72..0000000 --- a/client/docs/GetTenantPackages200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTenantPackages200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantPackages** | [TenantPackage] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantUser200Response.md b/client/docs/GetTenantUser200Response.md deleted file mode 100644 index 6e5c0c5..0000000 --- a/client/docs/GetTenantUser200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTenantUser200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantUser** | [**User**](User.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenantUsers200Response.md b/client/docs/GetTenantUsers200Response.md deleted file mode 100644 index 951666c..0000000 --- a/client/docs/GetTenantUsers200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTenantUsers200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenantUsers** | [User] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTenants200Response.md b/client/docs/GetTenants200Response.md deleted file mode 100644 index eec624e..0000000 --- a/client/docs/GetTenants200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTenants200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tenants** | [APITenant] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTicket200Response.md b/client/docs/GetTicket200Response.md deleted file mode 100644 index b40b0d4..0000000 --- a/client/docs/GetTicket200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# GetTicket200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**ticket** | [**APITicketDetail**](APITicketDetail.md) | | [optional] -**availableStates** | **[Double]** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTickets200Response.md b/client/docs/GetTickets200Response.md deleted file mode 100644 index a048f11..0000000 --- a/client/docs/GetTickets200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetTickets200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**tickets** | [APITicket] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetTranslationsResponse.md b/client/docs/GetTranslationsResponse.md new file mode 100644 index 0000000..eda9da6 --- /dev/null +++ b/client/docs/GetTranslationsResponse.md @@ -0,0 +1,11 @@ +# GetTranslationsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**translations** | **[String: String]** | Construct a type with a set of properties K of type T | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUser200Response.md b/client/docs/GetUser200Response.md deleted file mode 100644 index 20f4dd2..0000000 --- a/client/docs/GetUser200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUser200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**user** | [**User**](User.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadge200Response.md b/client/docs/GetUserBadge200Response.md deleted file mode 100644 index 8aa883a..0000000 --- a/client/docs/GetUserBadge200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserBadge200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadge** | [**UserBadge**](UserBadge.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadgeProgressById200Response.md b/client/docs/GetUserBadgeProgressById200Response.md deleted file mode 100644 index 19acde0..0000000 --- a/client/docs/GetUserBadgeProgressById200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserBadgeProgressById200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadgeProgress** | [**UserBadgeProgress**](UserBadgeProgress.md) | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadgeProgressList200Response.md b/client/docs/GetUserBadgeProgressList200Response.md deleted file mode 100644 index d41bc6c..0000000 --- a/client/docs/GetUserBadgeProgressList200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserBadgeProgressList200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadgeProgresses** | [UserBadgeProgress] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserBadges200Response.md b/client/docs/GetUserBadges200Response.md deleted file mode 100644 index 3b37c48..0000000 --- a/client/docs/GetUserBadges200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserBadges200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userBadges** | [UserBadge] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserInternalProfileResponse.md b/client/docs/GetUserInternalProfileResponse.md new file mode 100644 index 0000000..83f5c6c --- /dev/null +++ b/client/docs/GetUserInternalProfileResponse.md @@ -0,0 +1,11 @@ +# GetUserInternalProfileResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | [**GetUserInternalProfileResponseProfile**](GetUserInternalProfileResponseProfile.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserInternalProfileResponseProfile.md b/client/docs/GetUserInternalProfileResponseProfile.md new file mode 100644 index 0000000..aa6dbde --- /dev/null +++ b/client/docs/GetUserInternalProfileResponseProfile.md @@ -0,0 +1,26 @@ +# GetUserInternalProfileResponseProfile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commenterName** | **String** | | [optional] +**firstCommentDate** | **Date** | | [optional] +**ipHash** | **String** | | [optional] +**countryFlag** | **String** | | [optional] +**countryCode** | **String** | | [optional] +**websiteUrl** | **String** | | [optional] +**bio** | **String** | | [optional] +**karma** | **Double** | | [optional] +**locale** | **String** | | [optional] +**verified** | **Bool** | | [optional] +**avatarSrc** | **String** | | [optional] +**displayName** | **String** | | [optional] +**username** | **String** | | [optional] +**commenterEmail** | **String** | | [optional] +**email** | **String** | | [optional] +**anonUserId** | **String** | | [optional] +**userId** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserManualBadgesResponse.md b/client/docs/GetUserManualBadgesResponse.md new file mode 100644 index 0000000..6baee2a --- /dev/null +++ b/client/docs/GetUserManualBadgesResponse.md @@ -0,0 +1,11 @@ +# GetUserManualBadgesResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [UserBadge] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetUserNotificationCount200Response.md b/client/docs/GetUserNotificationCount200Response.md deleted file mode 100644 index 760e9bf..0000000 --- a/client/docs/GetUserNotificationCount200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserNotificationCount200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**count** | **Int64** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserNotifications200Response.md b/client/docs/GetUserNotifications200Response.md deleted file mode 100644 index 156fdf6..0000000 --- a/client/docs/GetUserNotifications200Response.md +++ /dev/null @@ -1,21 +0,0 @@ -# GetUserNotifications200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**translations** | **[String: String]** | Construct a type with a set of properties K of type T | [optional] -**isSubscribed** | **Bool** | | [optional] -**hasMore** | **Bool** | | [optional] -**notifications** | [RenderableUserNotification] | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserPresenceStatuses200Response.md b/client/docs/GetUserPresenceStatuses200Response.md deleted file mode 100644 index 0497f46..0000000 --- a/client/docs/GetUserPresenceStatuses200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserPresenceStatuses200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**userIdsOnline** | **[String: Bool]** | Construct a type with a set of properties K of type T | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserReactsPublic200Response.md b/client/docs/GetUserReactsPublic200Response.md deleted file mode 100644 index 3bea59b..0000000 --- a/client/docs/GetUserReactsPublic200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# GetUserReactsPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reacts** | [String: [String: Bool]] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetUserTrustFactorResponse.md b/client/docs/GetUserTrustFactorResponse.md new file mode 100644 index 0000000..efcddfa --- /dev/null +++ b/client/docs/GetUserTrustFactorResponse.md @@ -0,0 +1,12 @@ +# GetUserTrustFactorResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**manualTrustFactor** | **Double** | | [optional] +**autoTrustFactor** | **Double** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV1PageLikes.md b/client/docs/GetV1PageLikes.md new file mode 100644 index 0000000..b3290ba --- /dev/null +++ b/client/docs/GetV1PageLikes.md @@ -0,0 +1,14 @@ +# GetV1PageLikes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**urlIdWS** | **String** | | +**didLike** | **Bool** | | +**commentCount** | **Int** | | +**likeCount** | **Int** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV2PageReactUsersResponse.md b/client/docs/GetV2PageReactUsersResponse.md new file mode 100644 index 0000000..1443d1b --- /dev/null +++ b/client/docs/GetV2PageReactUsersResponse.md @@ -0,0 +1,11 @@ +# GetV2PageReactUsersResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userNames** | **[String]** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetV2PageReacts.md b/client/docs/GetV2PageReacts.md new file mode 100644 index 0000000..7022c7f --- /dev/null +++ b/client/docs/GetV2PageReacts.md @@ -0,0 +1,12 @@ +# GetV2PageReacts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reactedIds** | **[String]** | | [optional] +**counts** | **[String: Double]** | Construct a type with a set of properties K of type T | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GetVotes200Response.md b/client/docs/GetVotes200Response.md deleted file mode 100644 index 64304d3..0000000 --- a/client/docs/GetVotes200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetVotes200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**appliedAuthorizedVotes** | [PublicVote] | | [optional] -**appliedAnonymousVotes** | [PublicVote] | | [optional] -**pendingVotes** | [PublicVote] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GetVotesForUser200Response.md b/client/docs/GetVotesForUser200Response.md deleted file mode 100644 index 9951ed1..0000000 --- a/client/docs/GetVotesForUser200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# GetVotesForUser200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**appliedAuthorizedVotes** | [PublicVote] | | [optional] -**appliedAnonymousVotes** | [PublicVote] | | [optional] -**pendingVotes** | [PublicVote] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/GifGetLargeResponse.md b/client/docs/GifGetLargeResponse.md new file mode 100644 index 0000000..a90ec23 --- /dev/null +++ b/client/docs/GifGetLargeResponse.md @@ -0,0 +1,11 @@ +# GifGetLargeResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**src** | **String** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchInternalError.md b/client/docs/GifSearchInternalError.md new file mode 100644 index 0000000..b82a19b --- /dev/null +++ b/client/docs/GifSearchInternalError.md @@ -0,0 +1,11 @@ +# GifSearchInternalError + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchResponse.md b/client/docs/GifSearchResponse.md new file mode 100644 index 0000000..ca42710 --- /dev/null +++ b/client/docs/GifSearchResponse.md @@ -0,0 +1,11 @@ +# GifSearchResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**images** | [[GifSearchResponseImagesInnerInner]] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/GifSearchResponseImagesInnerInner.md b/client/docs/GifSearchResponseImagesInnerInner.md new file mode 100644 index 0000000..61aac1c --- /dev/null +++ b/client/docs/GifSearchResponseImagesInnerInner.md @@ -0,0 +1,9 @@ +# GifSearchResponseImagesInnerInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/HeaderAccountNotification.md b/client/docs/HeaderAccountNotification.md index 6f5b6db..60bd6dc 100644 --- a/client/docs/HeaderAccountNotification.md +++ b/client/docs/HeaderAccountNotification.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **linkUrl** | **String** | | **linkText** | **String** | | **createdAt** | **Date** | | +**type** | **String** | Discriminator for notifications with a special layout/click handler (e.g. \"feedback-offer\"). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/ImportedAgentApprovalNotificationFrequency.md b/client/docs/ImportedAgentApprovalNotificationFrequency.md new file mode 100644 index 0000000..35d9e22 --- /dev/null +++ b/client/docs/ImportedAgentApprovalNotificationFrequency.md @@ -0,0 +1,9 @@ +# ImportedAgentApprovalNotificationFrequency + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPI.md b/client/docs/ModerationAPI.md new file mode 100644 index 0000000..2e0b145 --- /dev/null +++ b/client/docs/ModerationAPI.md @@ -0,0 +1,2260 @@ +# ModerationAPI + +All URIs are relative to *https://fastcomments.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**deleteModerationVote**](ModerationAPI.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | +[**getApiComments**](ModerationAPI.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | +[**getApiExportStatus**](ModerationAPI.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | +[**getApiIds**](ModerationAPI.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | +[**getBanUsersFromComment**](ModerationAPI.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | +[**getCommentBanStatus**](ModerationAPI.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | +[**getCommentChildren**](ModerationAPI.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | +[**getCount**](ModerationAPI.md#getcount) | **GET** /auth/my-account/moderate-comments/count | +[**getCounts**](ModerationAPI.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | +[**getLogs**](ModerationAPI.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | +[**getManualBadges**](ModerationAPI.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | +[**getManualBadgesForUser**](ModerationAPI.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | +[**getModerationComment**](ModerationAPI.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | +[**getModerationCommentText**](ModerationAPI.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | +[**getPreBanSummary**](ModerationAPI.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | +[**getSearchCommentsSummary**](ModerationAPI.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | +[**getSearchPages**](ModerationAPI.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | +[**getSearchSites**](ModerationAPI.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | +[**getSearchSuggest**](ModerationAPI.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | +[**getSearchUsers**](ModerationAPI.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | +[**getTrustFactor**](ModerationAPI.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | +[**getUserBanPreference**](ModerationAPI.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | +[**getUserInternalProfile**](ModerationAPI.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | +[**postAdjustCommentVotes**](ModerationAPI.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | +[**postApiExport**](ModerationAPI.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | +[**postBanUserFromComment**](ModerationAPI.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | +[**postBanUserUndo**](ModerationAPI.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | +[**postBulkPreBanSummary**](ModerationAPI.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | +[**postCommentsByIds**](ModerationAPI.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | +[**postFlagComment**](ModerationAPI.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | +[**postRemoveComment**](ModerationAPI.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | +[**postRestoreDeletedComment**](ModerationAPI.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | +[**postSetCommentApprovalStatus**](ModerationAPI.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | +[**postSetCommentReviewStatus**](ModerationAPI.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | +[**postSetCommentSpamStatus**](ModerationAPI.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | +[**postSetCommentText**](ModerationAPI.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | +[**postUnFlagComment**](ModerationAPI.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | +[**postVote**](ModerationAPI.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | +[**putAwardBadge**](ModerationAPI.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | +[**putCloseThread**](ModerationAPI.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | +[**putRemoveBadge**](ModerationAPI.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | +[**putReopenThread**](ModerationAPI.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | +[**setTrustFactor**](ModerationAPI.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | + + +# **deleteModerationVote** +```swift + open class func deleteModerationVote(commentId: String, voteId: String, sso: String? = nil, completion: @escaping (_ data: VoteDeleteResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let voteId = "voteId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.deleteModerationVote(commentId: commentId, voteId: voteId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **voteId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**VoteDeleteResponse**](VoteDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getApiComments** +```swift + open class func getApiComments(page: Double? = nil, count: Double? = nil, textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, demo: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationAPIGetCommentsResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let page = 987 // Double | (optional) +let count = 987 // Double | (optional) +let textSearch = "textSearch_example" // String | (optional) +let byIPFromComment = "byIPFromComment_example" // String | (optional) +let filters = "filters_example" // String | (optional) +let searchFilters = "searchFilters_example" // String | (optional) +let sorts = "sorts_example" // String | (optional) +let demo = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getApiComments(page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **page** | **Double** | | [optional] + **count** | **Double** | | [optional] + **textSearch** | **String** | | [optional] + **byIPFromComment** | **String** | | [optional] + **filters** | **String** | | [optional] + **searchFilters** | **String** | | [optional] + **sorts** | **String** | | [optional] + **demo** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationAPIGetCommentsResponse**](ModerationAPIGetCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getApiExportStatus** +```swift + open class func getApiExportStatus(batchJobId: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationExportStatusResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let batchJobId = "batchJobId_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getApiExportStatus(batchJobId: batchJobId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **batchJobId** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationExportStatusResponse**](ModerationExportStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getApiIds** +```swift + open class func getApiIds(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, afterId: String? = nil, demo: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationAPIGetCommentIdsResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let textSearch = "textSearch_example" // String | (optional) +let byIPFromComment = "byIPFromComment_example" // String | (optional) +let filters = "filters_example" // String | (optional) +let searchFilters = "searchFilters_example" // String | (optional) +let afterId = "afterId_example" // String | (optional) +let demo = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getApiIds(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **String** | | [optional] + **byIPFromComment** | **String** | | [optional] + **filters** | **String** | | [optional] + **searchFilters** | **String** | | [optional] + **afterId** | **String** | | [optional] + **demo** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationAPIGetCommentIdsResponse**](ModerationAPIGetCommentIdsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getBanUsersFromComment** +```swift + open class func getBanUsersFromComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: GetBannedUsersFromCommentResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.getBanUsersFromComment(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**GetBannedUsersFromCommentResponse**](GetBannedUsersFromCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentBanStatus** +```swift + open class func getCommentBanStatus(commentId: String, sso: String? = nil, completion: @escaping (_ data: GetCommentBanStatusResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.getCommentBanStatus(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**GetCommentBanStatusResponse**](GetCommentBanStatusResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentChildren** +```swift + open class func getCommentChildren(commentId: String, sso: String? = nil, completion: @escaping (_ data: ModerationAPIChildCommentsResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.getCommentChildren(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCount** +```swift + open class func getCount(textSearch: String? = nil, byIPFromComment: String? = nil, filter: String? = nil, searchFilters: String? = nil, demo: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationAPICountCommentsResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let textSearch = "textSearch_example" // String | (optional) +let byIPFromComment = "byIPFromComment_example" // String | (optional) +let filter = "filter_example" // String | (optional) +let searchFilters = "searchFilters_example" // String | (optional) +let demo = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getCount(textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **String** | | [optional] + **byIPFromComment** | **String** | | [optional] + **filter** | **String** | | [optional] + **searchFilters** | **String** | | [optional] + **demo** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationAPICountCommentsResponse**](ModerationAPICountCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCounts** +```swift + open class func getCounts(sso: String? = nil, completion: @escaping (_ data: GetBannedUsersCountResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let sso = "sso_example" // String | (optional) + +ModerationAPI.getCounts(sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **String** | | [optional] + +### Return type + +[**GetBannedUsersCountResponse**](GetBannedUsersCountResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getLogs** +```swift + open class func getLogs(commentId: String, sso: String? = nil, completion: @escaping (_ data: ModerationAPIGetLogsResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.getLogs(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**ModerationAPIGetLogsResponse**](ModerationAPIGetLogsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getManualBadges** +```swift + open class func getManualBadges(sso: String? = nil, completion: @escaping (_ data: GetTenantManualBadgesResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let sso = "sso_example" // String | (optional) + +ModerationAPI.getManualBadges(sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **String** | | [optional] + +### Return type + +[**GetTenantManualBadgesResponse**](GetTenantManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getManualBadgesForUser** +```swift + open class func getManualBadgesForUser(badgesUserId: String? = nil, commentId: String? = nil, sso: String? = nil, completion: @escaping (_ data: GetUserManualBadgesResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let badgesUserId = "badgesUserId_example" // String | (optional) +let commentId = "commentId_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getManualBadgesForUser(badgesUserId: badgesUserId, commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgesUserId** | **String** | | [optional] + **commentId** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**GetUserManualBadgesResponse**](GetUserManualBadgesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getModerationComment** +```swift + open class func getModerationComment(commentId: String, includeEmail: Bool? = nil, includeIP: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationAPICommentResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let includeEmail = true // Bool | (optional) +let includeIP = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getModerationComment(commentId: commentId, includeEmail: includeEmail, includeIP: includeIP, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **includeEmail** | **Bool** | | [optional] + **includeIP** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationAPICommentResponse**](ModerationAPICommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getModerationCommentText** +```swift + open class func getModerationCommentText(commentId: String, sso: String? = nil, completion: @escaping (_ data: GetCommentTextResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.getModerationCommentText(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**GetCommentTextResponse**](GetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getPreBanSummary** +```swift + open class func getPreBanSummary(commentId: String, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: PreBanSummary?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let includeByUserIdAndEmail = true // Bool | (optional) +let includeByIP = true // Bool | (optional) +let includeByEmailDomain = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getPreBanSummary(commentId: commentId, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **includeByUserIdAndEmail** | **Bool** | | [optional] + **includeByIP** | **Bool** | | [optional] + **includeByEmailDomain** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**PreBanSummary**](PreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchCommentsSummary** +```swift + open class func getSearchCommentsSummary(value: String? = nil, filters: String? = nil, searchFilters: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationCommentSearchResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let value = "value_example" // String | (optional) +let filters = "filters_example" // String | (optional) +let searchFilters = "searchFilters_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getSearchCommentsSummary(value: value, filters: filters, searchFilters: searchFilters, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **String** | | [optional] + **filters** | **String** | | [optional] + **searchFilters** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationCommentSearchResponse**](ModerationCommentSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchPages** +```swift + open class func getSearchPages(value: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationPageSearchResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let value = "value_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getSearchPages(value: value, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationPageSearchResponse**](ModerationPageSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchSites** +```swift + open class func getSearchSites(value: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationSiteSearchResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let value = "value_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getSearchSites(value: value, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationSiteSearchResponse**](ModerationSiteSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchSuggest** +```swift + open class func getSearchSuggest(textSearch: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationSuggestResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let textSearch = "textSearch_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getSearchSuggest(textSearch: textSearch, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationSuggestResponse**](ModerationSuggestResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getSearchUsers** +```swift + open class func getSearchUsers(value: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationUserSearchResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let value = "value_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getSearchUsers(value: value, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **value** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationUserSearchResponse**](ModerationUserSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getTrustFactor** +```swift + open class func getTrustFactor(userId: String? = nil, sso: String? = nil, completion: @escaping (_ data: GetUserTrustFactorResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let userId = "userId_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getTrustFactor(userId: userId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**GetUserTrustFactorResponse**](GetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUserBanPreference** +```swift + open class func getUserBanPreference(sso: String? = nil, completion: @escaping (_ data: APIModerateGetUserBanPreferencesResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let sso = "sso_example" // String | (optional) + +ModerationAPI.getUserBanPreference(sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso** | **String** | | [optional] + +### Return type + +[**APIModerateGetUserBanPreferencesResponse**](APIModerateGetUserBanPreferencesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getUserInternalProfile** +```swift + open class func getUserInternalProfile(commentId: String? = nil, sso: String? = nil, completion: @escaping (_ data: GetUserInternalProfileResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.getUserInternalProfile(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**GetUserInternalProfileResponse**](GetUserInternalProfileResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postAdjustCommentVotes** +```swift + open class func postAdjustCommentVotes(commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, sso: String? = nil, completion: @escaping (_ data: AdjustVotesResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let adjustCommentVotesParams = AdjustCommentVotesParams(adjustVoteAmount: 123) // AdjustCommentVotesParams | +let sso = "sso_example" // String | (optional) + +ModerationAPI.postAdjustCommentVotes(commentId: commentId, adjustCommentVotesParams: adjustCommentVotesParams, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | + **sso** | **String** | | [optional] + +### Return type + +[**AdjustVotesResponse**](AdjustVotesResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postApiExport** +```swift + open class func postApiExport(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationExportResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let textSearch = "textSearch_example" // String | (optional) +let byIPFromComment = "byIPFromComment_example" // String | (optional) +let filters = "filters_example" // String | (optional) +let searchFilters = "searchFilters_example" // String | (optional) +let sorts = "sorts_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.postApiExport(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **textSearch** | **String** | | [optional] + **byIPFromComment** | **String** | | [optional] + **filters** | **String** | | [optional] + **searchFilters** | **String** | | [optional] + **sorts** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**ModerationExportResponse**](ModerationExportResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postBanUserFromComment** +```swift + open class func postBanUserFromComment(commentId: String, banEmail: Bool? = nil, banEmailDomain: Bool? = nil, banIP: Bool? = nil, deleteAllUsersComments: Bool? = nil, bannedUntil: String? = nil, isShadowBan: Bool? = nil, updateId: String? = nil, banReason: String? = nil, sso: String? = nil, completion: @escaping (_ data: BanUserFromCommentResult?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let banEmail = true // Bool | (optional) +let banEmailDomain = true // Bool | (optional) +let banIP = true // Bool | (optional) +let deleteAllUsersComments = true // Bool | (optional) +let bannedUntil = "bannedUntil_example" // String | (optional) +let isShadowBan = true // Bool | (optional) +let updateId = "updateId_example" // String | (optional) +let banReason = "banReason_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.postBanUserFromComment(commentId: commentId, banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **banEmail** | **Bool** | | [optional] + **banEmailDomain** | **Bool** | | [optional] + **banIP** | **Bool** | | [optional] + **deleteAllUsersComments** | **Bool** | | [optional] + **bannedUntil** | **String** | | [optional] + **isShadowBan** | **Bool** | | [optional] + **updateId** | **String** | | [optional] + **banReason** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**BanUserFromCommentResult**](BanUserFromCommentResult.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postBanUserUndo** +```swift + open class func postBanUserUndo(banUserUndoParams: BanUserUndoParams, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let banUserUndoParams = BanUserUndoParams(changelog: APIBanUserChangeLog(createdBannedUserId: "createdBannedUserId_example", updatedBannedUserId: "updatedBannedUserId_example", deletedBannedUsers: [APIBannedUser(id: "id_example", tenantId: "tenantId_example", userId: "userId_example", email: "email_example", username: "username_example", ipHash: "ipHash_example", createdAt: Date(), bannedByUserId: "bannedByUserId_example", bannedCommentText: "bannedCommentText_example", banType: "banType_example", bannedUntil: Date(), hasEmailWildcard: false, banReason: "banReason_example")], changedValuesBefore: APIBanUserChangedValues(id: "id_example", tenantId: "tenantId_example", userId: "userId_example", email: "email_example", username: "username_example", ipHash: "ipHash_example", createdAt: Date(), bannedByUserId: "bannedByUserId_example", bannedCommentText: "bannedCommentText_example", banType: "banType_example", bannedUntil: Date(), hasEmailWildcard: false, banReason: "banReason_example"))) // BanUserUndoParams | +let sso = "sso_example" // String | (optional) + +ModerationAPI.postBanUserUndo(banUserUndoParams: banUserUndoParams, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md) | | + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postBulkPreBanSummary** +```swift + open class func postBulkPreBanSummary(bulkPreBanParams: BulkPreBanParams, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: BulkPreBanSummary?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let bulkPreBanParams = BulkPreBanParams(commentIds: ["commentIds_example"]) // BulkPreBanParams | +let includeByUserIdAndEmail = true // Bool | (optional) +let includeByIP = true // Bool | (optional) +let includeByEmailDomain = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.postBulkPreBanSummary(bulkPreBanParams: bulkPreBanParams, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md) | | + **includeByUserIdAndEmail** | **Bool** | | [optional] + **includeByIP** | **Bool** | | [optional] + **includeByEmailDomain** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**BulkPreBanSummary**](BulkPreBanSummary.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postCommentsByIds** +```swift + open class func postCommentsByIds(commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, completion: @escaping (_ data: ModerationAPIChildCommentsResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentsByIdsParams = CommentsByIdsParams(ids: ["ids_example"]) // CommentsByIdsParams | +let sso = "sso_example" // String | (optional) + +ModerationAPI.postCommentsByIds(commentsByIdsParams: commentsByIdsParams, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | + **sso** | **String** | | [optional] + +### Return type + +[**ModerationAPIChildCommentsResponse**](ModerationAPIChildCommentsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postFlagComment** +```swift + open class func postFlagComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.postFlagComment(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postRemoveComment** +```swift + open class func postRemoveComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: PostRemoveCommentResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.postRemoveComment(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postRestoreDeletedComment** +```swift + open class func postRestoreDeletedComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.postRestoreDeletedComment(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postSetCommentApprovalStatus** +```swift + open class func postSetCommentApprovalStatus(commentId: String, approved: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: SetCommentApprovedResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let approved = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.postSetCommentApprovalStatus(commentId: commentId, approved: approved, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **approved** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**SetCommentApprovedResponse**](SetCommentApprovedResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postSetCommentReviewStatus** +```swift + open class func postSetCommentReviewStatus(commentId: String, reviewed: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let reviewed = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.postSetCommentReviewStatus(commentId: commentId, reviewed: reviewed, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **reviewed** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postSetCommentSpamStatus** +```swift + open class func postSetCommentSpamStatus(commentId: String, spam: Bool? = nil, permNotSpam: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let spam = true // Bool | (optional) +let permNotSpam = true // Bool | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.postSetCommentSpamStatus(commentId: commentId, spam: spam, permNotSpam: permNotSpam, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **spam** | **Bool** | | [optional] + **permNotSpam** | **Bool** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postSetCommentText** +```swift + open class func postSetCommentText(commentId: String, setCommentTextParams: SetCommentTextParams, sso: String? = nil, completion: @escaping (_ data: SetCommentTextResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let setCommentTextParams = SetCommentTextParams(comment: "comment_example") // SetCommentTextParams | +let sso = "sso_example" // String | (optional) + +ModerationAPI.postSetCommentText(commentId: commentId, setCommentTextParams: setCommentTextParams, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md) | | + **sso** | **String** | | [optional] + +### Return type + +[**SetCommentTextResponse**](SetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postUnFlagComment** +```swift + open class func postUnFlagComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.postUnFlagComment(commentId: commentId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **postVote** +```swift + open class func postVote(commentId: String, direction: String? = nil, sso: String? = nil, completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let commentId = "commentId_example" // String | +let direction = "direction_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.postVote(commentId: commentId, direction: direction, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **commentId** | **String** | | + **direction** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**VoteResponse**](VoteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **putAwardBadge** +```swift + open class func putAwardBadge(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: AwardUserBadgeResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let badgeId = "badgeId_example" // String | +let userId = "userId_example" // String | (optional) +let commentId = "commentId_example" // String | (optional) +let broadcastId = "broadcastId_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.putAwardBadge(badgeId: badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgeId** | **String** | | + **userId** | **String** | | [optional] + **commentId** | **String** | | [optional] + **broadcastId** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**AwardUserBadgeResponse**](AwardUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **putCloseThread** +```swift + open class func putCloseThread(urlId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let urlId = "urlId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.putCloseThread(urlId: urlId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **urlId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **putRemoveBadge** +```swift + open class func putRemoveBadge(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: RemoveUserBadgeResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let badgeId = "badgeId_example" // String | +let userId = "userId_example" // String | (optional) +let commentId = "commentId_example" // String | (optional) +let broadcastId = "broadcastId_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.putRemoveBadge(badgeId: badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **badgeId** | **String** | | + **userId** | **String** | | [optional] + **commentId** | **String** | | [optional] + **broadcastId** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**RemoveUserBadgeResponse**](RemoveUserBadgeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **putReopenThread** +```swift + open class func putReopenThread(urlId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let urlId = "urlId_example" // String | +let sso = "sso_example" // String | (optional) + +ModerationAPI.putReopenThread(urlId: urlId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **urlId** | **String** | | + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **setTrustFactor** +```swift + open class func setTrustFactor(userId: String? = nil, trustFactor: String? = nil, sso: String? = nil, completion: @escaping (_ data: SetUserTrustFactorResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let userId = "userId_example" // String | (optional) +let trustFactor = "trustFactor_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +ModerationAPI.setTrustFactor(userId: userId, trustFactor: trustFactor, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String** | | [optional] + **trustFactor** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**SetUserTrustFactorResponse**](SetUserTrustFactorResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/client/docs/ModerationAPIChildCommentsResponse.md b/client/docs/ModerationAPIChildCommentsResponse.md new file mode 100644 index 0000000..896f46a --- /dev/null +++ b/client/docs/ModerationAPIChildCommentsResponse.md @@ -0,0 +1,11 @@ +# ModerationAPIChildCommentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comments** | [ModerationAPIComment] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPIComment.md b/client/docs/ModerationAPIComment.md new file mode 100644 index 0000000..d256afd --- /dev/null +++ b/client/docs/ModerationAPIComment.md @@ -0,0 +1,51 @@ +# ModerationAPIComment + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isLocalDeleted** | **Bool** | | [optional] +**replyCount** | **Double** | | [optional] +**feedbackResults** | **[String]** | | [optional] +**isVotedUp** | **Bool** | | [optional] +**isVotedDown** | **Bool** | | [optional] +**myVoteId** | **String** | | [optional] +**id** | **String** | | +**tenantId** | **String** | | +**urlId** | **String** | | +**url** | **String** | | +**pageTitle** | **String** | | [optional] +**userId** | **String** | | [optional] +**anonUserId** | **String** | | [optional] +**commenterName** | **String** | | +**commenterLink** | **String** | | [optional] +**commentHTML** | **String** | | +**parentId** | **String** | | [optional] +**date** | **Date** | | +**localDateString** | **String** | | [optional] +**votes** | **Double** | | [optional] +**votesUp** | **Double** | | [optional] +**votesDown** | **Double** | | [optional] +**expireAt** | **Date** | | [optional] +**reviewed** | **Bool** | | [optional] +**avatarSrc** | **String** | | [optional] +**isSpam** | **Bool** | | [optional] +**permNotSpam** | **Bool** | | [optional] +**hasLinks** | **Bool** | | [optional] +**hasCode** | **Bool** | | [optional] +**approved** | **Bool** | | +**locale** | **String** | | +**isBannedUser** | **Bool** | | [optional] +**isByAdmin** | **Bool** | | [optional] +**isByModerator** | **Bool** | | [optional] +**isPinned** | **Bool** | | [optional] +**isLocked** | **Bool** | | [optional] +**flagCount** | **Double** | | [optional] +**displayLabel** | **String** | | [optional] +**badges** | [CommentUserBadgeInfo] | | [optional] +**verified** | **Bool** | | +**feedbackIds** | **[String]** | | [optional] +**isDeleted** | **Bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPICommentLog.md b/client/docs/ModerationAPICommentLog.md new file mode 100644 index 0000000..d0681c7 --- /dev/null +++ b/client/docs/ModerationAPICommentLog.md @@ -0,0 +1,13 @@ +# ModerationAPICommentLog + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | **Date** | | +**username** | **String** | | [optional] +**actionName** | **String** | | +**messageHTML** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPICommentResponse.md b/client/docs/ModerationAPICommentResponse.md new file mode 100644 index 0000000..682924e --- /dev/null +++ b/client/docs/ModerationAPICommentResponse.md @@ -0,0 +1,11 @@ +# ModerationAPICommentResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | [**ModerationAPIComment**](ModerationAPIComment.md) | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPICountCommentsResponse.md b/client/docs/ModerationAPICountCommentsResponse.md new file mode 100644 index 0000000..3b876c5 --- /dev/null +++ b/client/docs/ModerationAPICountCommentsResponse.md @@ -0,0 +1,11 @@ +# ModerationAPICountCommentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**count** | **Double** | | + +[[Back to Model list]](../README.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..bd03874 --- /dev/null +++ b/client/docs/ModerationAPIGetCommentIdsResponse.md @@ -0,0 +1,12 @@ +# ModerationAPIGetCommentIdsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ids** | **[String]** | | +**hasMore** | **Bool** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPIGetCommentsResponse.md b/client/docs/ModerationAPIGetCommentsResponse.md new file mode 100644 index 0000000..5c83045 --- /dev/null +++ b/client/docs/ModerationAPIGetCommentsResponse.md @@ -0,0 +1,13 @@ +# ModerationAPIGetCommentsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**translations** | **JSONValue** | | +**comments** | [ModerationAPIComment] | | +**moderationFilter** | [**ModerationFilter**](ModerationFilter.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationAPIGetLogsResponse.md b/client/docs/ModerationAPIGetLogsResponse.md new file mode 100644 index 0000000..f0d992e --- /dev/null +++ b/client/docs/ModerationAPIGetLogsResponse.md @@ -0,0 +1,11 @@ +# ModerationAPIGetLogsResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**logs** | [ModerationAPICommentLog] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationCommentSearchResponse.md b/client/docs/ModerationCommentSearchResponse.md new file mode 100644 index 0000000..97d2323 --- /dev/null +++ b/client/docs/ModerationCommentSearchResponse.md @@ -0,0 +1,11 @@ +# ModerationCommentSearchResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**commentCount** | **Int** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationExportResponse.md b/client/docs/ModerationExportResponse.md new file mode 100644 index 0000000..af4827f --- /dev/null +++ b/client/docs/ModerationExportResponse.md @@ -0,0 +1,11 @@ +# ModerationExportResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**batchJobId** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationExportStatusResponse.md b/client/docs/ModerationExportStatusResponse.md new file mode 100644 index 0000000..e4d987c --- /dev/null +++ b/client/docs/ModerationExportStatusResponse.md @@ -0,0 +1,13 @@ +# ModerationExportStatusResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**jobStatus** | **String** | | +**recordCount** | **Int** | | +**downloadUrl** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationFilter.md b/client/docs/ModerationFilter.md new file mode 100644 index 0000000..8c66da4 --- /dev/null +++ b/client/docs/ModerationFilter.md @@ -0,0 +1,21 @@ +# ModerationFilter + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reviewed** | **Bool** | | [optional] +**approved** | **Bool** | | [optional] +**isSpam** | **Bool** | | [optional] +**isBannedUser** | **Bool** | | [optional] +**isLocked** | **Bool** | | [optional] +**flagCountGt** | **Double** | | [optional] +**userId** | **String** | | [optional] +**urlId** | **String** | | [optional] +**domain** | **String** | | [optional] +**moderationGroupIds** | **[String]** | | [optional] +**commentTextSearch** | **[String]** | Text search terms. Each term is matched case-insensitively against the comment text. A term wrapped in quotes means exact phrase match. | [optional] +**exactCommentText** | **String** | Set by the `exact=\"...\"` search syntax. The comment text must equal this value exactly (case-sensitive, full-string), as opposed to the substring matching of commentTextSearch. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationPageSearchProjected.md b/client/docs/ModerationPageSearchProjected.md new file mode 100644 index 0000000..2fb59b0 --- /dev/null +++ b/client/docs/ModerationPageSearchProjected.md @@ -0,0 +1,13 @@ +# ModerationPageSearchProjected + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**urlId** | **String** | | +**url** | **String** | | +**title** | **String** | | +**commentCount** | **Double** | | + +[[Back to Model list]](../README.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..aaab4e9 --- /dev/null +++ b/client/docs/ModerationPageSearchResponse.md @@ -0,0 +1,11 @@ +# ModerationPageSearchResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pages** | [ModerationPageSearchProjected] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSiteSearchProjected.md b/client/docs/ModerationSiteSearchProjected.md new file mode 100644 index 0000000..c342920 --- /dev/null +++ b/client/docs/ModerationSiteSearchProjected.md @@ -0,0 +1,11 @@ +# ModerationSiteSearchProjected + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **String** | | +**logoSrc100px** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSiteSearchResponse.md b/client/docs/ModerationSiteSearchResponse.md new file mode 100644 index 0000000..43ed695 --- /dev/null +++ b/client/docs/ModerationSiteSearchResponse.md @@ -0,0 +1,11 @@ +# ModerationSiteSearchResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sites** | [ModerationSiteSearchProjected] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationSuggestResponse.md b/client/docs/ModerationSuggestResponse.md new file mode 100644 index 0000000..a2b5328 --- /dev/null +++ b/client/docs/ModerationSuggestResponse.md @@ -0,0 +1,13 @@ +# ModerationSuggestResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**pages** | [ModerationPageSearchProjected] | | [optional] +**users** | [ModerationUserSearchProjected] | | [optional] +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationUserSearchProjected.md b/client/docs/ModerationUserSearchProjected.md new file mode 100644 index 0000000..4453392 --- /dev/null +++ b/client/docs/ModerationUserSearchProjected.md @@ -0,0 +1,13 @@ +# ModerationUserSearchProjected + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**username** | **String** | | +**displayName** | **String** | | [optional] +**avatarSrc** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ModerationUserSearchResponse.md b/client/docs/ModerationUserSearchResponse.md new file mode 100644 index 0000000..5a65a09 --- /dev/null +++ b/client/docs/ModerationUserSearchResponse.md @@ -0,0 +1,11 @@ +# ModerationUserSearchResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [ModerationUserSearchProjected] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUserEntry.md b/client/docs/PageUserEntry.md new file mode 100644 index 0000000..07c6ed0 --- /dev/null +++ b/client/docs/PageUserEntry.md @@ -0,0 +1,13 @@ +# PageUserEntry + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isPrivate** | **Bool** | | [optional] +**avatarSrc** | **String** | | [optional] +**displayName** | **String** | | +**id** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersInfoResponse.md b/client/docs/PageUsersInfoResponse.md new file mode 100644 index 0000000..6d6464b --- /dev/null +++ b/client/docs/PageUsersInfoResponse.md @@ -0,0 +1,11 @@ +# PageUsersInfoResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [PageUserEntry] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersOfflineResponse.md b/client/docs/PageUsersOfflineResponse.md new file mode 100644 index 0000000..c1d360c --- /dev/null +++ b/client/docs/PageUsersOfflineResponse.md @@ -0,0 +1,13 @@ +# PageUsersOfflineResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nextAfterUserId** | **String** | | +**nextAfterName** | **String** | | +**users** | [PageUserEntry] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PageUsersOnlineResponse.md b/client/docs/PageUsersOnlineResponse.md new file mode 100644 index 0000000..6f37159 --- /dev/null +++ b/client/docs/PageUsersOnlineResponse.md @@ -0,0 +1,15 @@ +# PageUsersOnlineResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nextAfterUserId** | **String** | | +**nextAfterName** | **String** | | +**totalCount** | **Double** | | +**anonCount** | **Double** | | +**users** | [PageUserEntry] | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PagesSortBy.md b/client/docs/PagesSortBy.md new file mode 100644 index 0000000..4497950 --- /dev/null +++ b/client/docs/PagesSortBy.md @@ -0,0 +1,9 @@ +# PagesSortBy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PatchDomainConfigResponse.md b/client/docs/PatchDomainConfigResponse.md new file mode 100644 index 0000000..bff0b74 --- /dev/null +++ b/client/docs/PatchDomainConfigResponse.md @@ -0,0 +1,13 @@ +# PatchDomainConfigResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **JSONValue** | | [optional] +**status** | **JSONValue** | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PinComment200Response.md b/client/docs/PinComment200Response.md deleted file mode 100644 index d711a80..0000000 --- a/client/docs/PinComment200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# PinComment200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**commentPositions** | [String: RecordStringBeforeStringOrNullAfterStringOrNullValue] | Construct a type with a set of properties K of type T | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentResponse.md new file mode 100644 index 0000000..22c6b35 --- /dev/null +++ b/client/docs/PostRemoveCommentResponse.md @@ -0,0 +1,11 @@ +# PostRemoveCommentResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | | +**status** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PreBanSummary.md b/client/docs/PreBanSummary.md new file mode 100644 index 0000000..63f0d7f --- /dev/null +++ b/client/docs/PreBanSummary.md @@ -0,0 +1,12 @@ +# PreBanSummary + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**usernames** | **[String]** | | +**count** | **Double** | | + +[[Back to Model list]](../README.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 0fc39c9..a835d52 100644 --- a/client/docs/PublicAPI.md +++ b/client/docs/PublicAPI.md @@ -8,22 +8,39 @@ Method | HTTP request | Description [**checkedCommentsForBlocked**](PublicAPI.md#checkedcommentsforblocked) | **GET** /check-blocked-comments | [**createCommentPublic**](PublicAPI.md#createcommentpublic) | **POST** /comments/{tenantId} | [**createFeedPostPublic**](PublicAPI.md#createfeedpostpublic) | **POST** /feed-posts/{tenantId} | +[**createV1PageReact**](PublicAPI.md#createv1pagereact) | **POST** /page-reacts/v1/likes/{tenantId} | +[**createV2PageReact**](PublicAPI.md#createv2pagereact) | **POST** /page-reacts/v2/{tenantId} | [**deleteCommentPublic**](PublicAPI.md#deletecommentpublic) | **DELETE** /comments/{tenantId}/{commentId} | [**deleteCommentVote**](PublicAPI.md#deletecommentvote) | **DELETE** /comments/{tenantId}/{commentId}/vote/{voteId} | [**deleteFeedPostPublic**](PublicAPI.md#deletefeedpostpublic) | **DELETE** /feed-posts/{tenantId}/{postId} | +[**deleteV1PageReact**](PublicAPI.md#deletev1pagereact) | **DELETE** /page-reacts/v1/likes/{tenantId} | +[**deleteV2PageReact**](PublicAPI.md#deletev2pagereact) | **DELETE** /page-reacts/v2/{tenantId} | [**flagCommentPublic**](PublicAPI.md#flagcommentpublic) | **POST** /flag-comment/{commentId} | [**getCommentText**](PublicAPI.md#getcommenttext) | **GET** /comments/{tenantId}/{commentId}/text | [**getCommentVoteUserNames**](PublicAPI.md#getcommentvoteusernames) | **GET** /comments/{tenantId}/{commentId}/votes | +[**getCommentsForUser**](PublicAPI.md#getcommentsforuser) | **GET** /comments-for-user | [**getCommentsPublic**](PublicAPI.md#getcommentspublic) | **GET** /comments/{tenantId} | [**getEventLog**](PublicAPI.md#geteventlog) | **GET** /event-log/{tenantId} | [**getFeedPostsPublic**](PublicAPI.md#getfeedpostspublic) | **GET** /feed-posts/{tenantId} | [**getFeedPostsStats**](PublicAPI.md#getfeedpostsstats) | **GET** /feed-posts/{tenantId}/stats | +[**getGifLarge**](PublicAPI.md#getgiflarge) | **GET** /gifs/get-large/{tenantId} | +[**getGifsSearch**](PublicAPI.md#getgifssearch) | **GET** /gifs/search/{tenantId} | +[**getGifsTrending**](PublicAPI.md#getgifstrending) | **GET** /gifs/trending/{tenantId} | [**getGlobalEventLog**](PublicAPI.md#getglobaleventlog) | **GET** /event-log/global/{tenantId} | +[**getOfflineUsers**](PublicAPI.md#getofflineusers) | **GET** /pages/{tenantId}/users/offline | +[**getOnlineUsers**](PublicAPI.md#getonlineusers) | **GET** /pages/{tenantId}/users/online | +[**getPagesPublic**](PublicAPI.md#getpagespublic) | **GET** /pages/{tenantId} | +[**getTranslations**](PublicAPI.md#gettranslations) | **GET** /translations/{namespace}/{component} | [**getUserNotificationCount**](PublicAPI.md#getusernotificationcount) | **GET** /user-notifications/get-count | [**getUserNotifications**](PublicAPI.md#getusernotifications) | **GET** /user-notifications | [**getUserPresenceStatuses**](PublicAPI.md#getuserpresencestatuses) | **GET** /user-presence-status | [**getUserReactsPublic**](PublicAPI.md#getuserreactspublic) | **GET** /feed-posts/{tenantId}/user-reacts | +[**getUsersInfo**](PublicAPI.md#getusersinfo) | **GET** /pages/{tenantId}/users/info | +[**getV1PageLikes**](PublicAPI.md#getv1pagelikes) | **GET** /page-reacts/v1/likes/{tenantId} | +[**getV2PageReactUsers**](PublicAPI.md#getv2pagereactusers) | **GET** /page-reacts/v2/{tenantId}/list | +[**getV2PageReacts**](PublicAPI.md#getv2pagereacts) | **GET** /page-reacts/v2/{tenantId} | [**lockComment**](PublicAPI.md#lockcomment) | **POST** /comments/{tenantId}/{commentId}/lock | +[**logoutPublic**](PublicAPI.md#logoutpublic) | **PUT** /auth/logout | [**pinComment**](PublicAPI.md#pincomment) | **POST** /comments/{tenantId}/{commentId}/pin | [**reactFeedPostPublic**](PublicAPI.md#reactfeedpostpublic) | **POST** /feed-posts/{tenantId}/react/{postId} | [**resetUserNotificationCount**](PublicAPI.md#resetusernotificationcount) | **POST** /user-notifications/reset-count | @@ -43,7 +60,7 @@ Method | HTTP request | Description # **blockFromCommentPublic** ```swift - open class func blockFromCommentPublic(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, completion: @escaping (_ data: BlockFromCommentPublic200Response?, _ error: Error?) -> Void) + open class func blockFromCommentPublic(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, completion: @escaping (_ data: BlockSuccess?, _ error: Error?) -> Void) ``` @@ -81,7 +98,7 @@ Name | Type | Description | Notes ### Return type -[**BlockFromCommentPublic200Response**](BlockFromCommentPublic200Response.md) +[**BlockSuccess**](BlockSuccess.md) ### Authorization @@ -96,7 +113,7 @@ No authorization required # **checkedCommentsForBlocked** ```swift - open class func checkedCommentsForBlocked(tenantId: String, commentIds: String, sso: String? = nil, completion: @escaping (_ data: CheckedCommentsForBlocked200Response?, _ error: Error?) -> Void) + open class func checkedCommentsForBlocked(tenantId: String, commentIds: String, sso: String? = nil, completion: @escaping (_ data: CheckBlockedCommentsResponse?, _ error: Error?) -> Void) ``` @@ -132,7 +149,7 @@ Name | Type | Description | Notes ### Return type -[**CheckedCommentsForBlocked200Response**](CheckedCommentsForBlocked200Response.md) +[**CheckBlockedCommentsResponse**](CheckBlockedCommentsResponse.md) ### Authorization @@ -147,7 +164,7 @@ No authorization required # **createCommentPublic** ```swift - open class func createCommentPublic(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, completion: @escaping (_ data: CreateCommentPublic200Response?, _ error: Error?) -> Void) + open class func createCommentPublic(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, completion: @escaping (_ data: SaveCommentsResponseWithPresence?, _ error: Error?) -> Void) ``` @@ -160,7 +177,7 @@ import FastCommentsSwift let tenantId = "tenantId_example" // String | let urlId = "urlId_example" // String | let broadcastId = "broadcastId_example" // String | -let commentData = CommentData(date: 123, localDateString: "localDateString_example", localDateHours: 123, commenterName: "commenterName_example", commenterEmail: "commenterEmail_example", commenterLink: "commenterLink_example", comment: "comment_example", productId: 123, userId: "userId_example", avatarSrc: "avatarSrc_example", parentId: "parentId_example", mentions: [CommentUserMentionInfo(id: "id_example", tag: "tag_example", rawTag: "rawTag_example", type: "type_example", sent: false)], hashTags: [CommentUserHashTagInfo(id: "id_example", tag: "tag_example", url: "url_example", retain: false)], pageTitle: "pageTitle_example", isFromMyAccountPage: false, url: "url_example", urlId: "urlId_example", meta: 123, moderationGroupIds: ["moderationGroupIds_example"], rating: 123, fromOfflineRestore: false, autoplayDelayMS: 123, feedbackIds: ["feedbackIds_example"], questionValues: "TODO", tos: false) // CommentData | +let commentData = CommentData(date: 123, localDateString: "localDateString_example", localDateHours: 123, commenterName: "commenterName_example", commenterEmail: "commenterEmail_example", commenterLink: "commenterLink_example", comment: "comment_example", productId: 123, userId: "userId_example", avatarSrc: "avatarSrc_example", parentId: "parentId_example", mentions: [CommentUserMentionInfo(id: "id_example", tag: "tag_example", rawTag: "rawTag_example", type: "type_example", sent: false)], hashTags: [CommentUserHashTagInfo(id: "id_example", tag: "tag_example", url: "url_example", retain: false)], pageTitle: "pageTitle_example", isFromMyAccountPage: false, url: "url_example", urlId: "urlId_example", meta: 123, moderationGroupIds: ["moderationGroupIds_example"], rating: 123, fromOfflineRestore: false, autoplayDelayMS: 123, feedbackIds: ["feedbackIds_example"], questionValues: "TODO", tos: false, botId: "botId_example") // CommentData | let sessionId = "sessionId_example" // String | (optional) let sso = "sso_example" // String | (optional) @@ -189,7 +206,7 @@ Name | Type | Description | Notes ### Return type -[**CreateCommentPublic200Response**](CreateCommentPublic200Response.md) +[**SaveCommentsResponseWithPresence**](SaveCommentsResponseWithPresence.md) ### Authorization @@ -204,7 +221,7 @@ No authorization required # **createFeedPostPublic** ```swift - open class func createFeedPostPublic(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: CreateFeedPostPublic200Response?, _ error: Error?) -> Void) + open class func createFeedPostPublic(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: CreateFeedPostResponse?, _ error: Error?) -> Void) ``` @@ -242,7 +259,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -255,9 +272,974 @@ 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) +# **createV1PageReact** +```swift + open class func createV1PageReact(tenantId: String, urlId: String, title: String? = nil, completion: @escaping (_ data: CreateV1PageReact?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let urlId = "urlId_example" // String | +let title = "title_example" // String | (optional) + +PublicAPI.createV1PageReact(tenantId: tenantId, urlId: urlId, title: title) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **urlId** | **String** | | + **title** | **String** | | [optional] + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **createV2PageReact** +```swift + open class func createV2PageReact(tenantId: String, urlId: String, id: String, title: String? = nil, completion: @escaping (_ data: CreateV1PageReact?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let urlId = "urlId_example" // String | +let id = "id_example" // String | +let title = "title_example" // String | (optional) + +PublicAPI.createV2PageReact(tenantId: tenantId, urlId: urlId, id: id, title: title) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **urlId** | **String** | | + **id** | **String** | | + **title** | **String** | | [optional] + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **deleteCommentPublic** ```swift - open class func deleteCommentPublic(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: DeleteCommentPublic200Response?, _ error: Error?) -> Void) + open class func deleteCommentPublic(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: PublicAPIDeleteCommentResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let commentId = "commentId_example" // String | +let broadcastId = "broadcastId_example" // String | +let editKey = "editKey_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +PublicAPI.deleteCommentPublic(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, editKey: editKey, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **commentId** | **String** | | + **broadcastId** | **String** | | + **editKey** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**PublicAPIDeleteCommentResponse**](PublicAPIDeleteCommentResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deleteCommentVote** +```swift + open class func deleteCommentVote(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: VoteDeleteResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let commentId = "commentId_example" // String | +let voteId = "voteId_example" // String | +let urlId = "urlId_example" // String | +let broadcastId = "broadcastId_example" // String | +let editKey = "editKey_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +PublicAPI.deleteCommentVote(tenantId: tenantId, commentId: commentId, voteId: voteId, urlId: urlId, broadcastId: broadcastId, editKey: editKey, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **commentId** | **String** | | + **voteId** | **String** | | + **urlId** | **String** | | + **broadcastId** | **String** | | + **editKey** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**VoteDeleteResponse**](VoteDeleteResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deleteFeedPostPublic** +```swift + open class func deleteFeedPostPublic(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: DeleteFeedPostPublicResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let postId = "postId_example" // String | +let broadcastId = "broadcastId_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +PublicAPI.deleteFeedPostPublic(tenantId: tenantId, postId: postId, broadcastId: broadcastId, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **postId** | **String** | | + **broadcastId** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**DeleteFeedPostPublicResponse**](DeleteFeedPostPublicResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deleteV1PageReact** +```swift + open class func deleteV1PageReact(tenantId: String, urlId: String, completion: @escaping (_ data: CreateV1PageReact?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let urlId = "urlId_example" // String | + +PublicAPI.deleteV1PageReact(tenantId: tenantId, urlId: urlId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **urlId** | **String** | | + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **deleteV2PageReact** +```swift + open class func deleteV2PageReact(tenantId: String, urlId: String, id: String, completion: @escaping (_ data: CreateV1PageReact?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let urlId = "urlId_example" // String | +let id = "id_example" // String | + +PublicAPI.deleteV2PageReact(tenantId: tenantId, urlId: urlId, id: id) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **urlId** | **String** | | + **id** | **String** | | + +### Return type + +[**CreateV1PageReact**](CreateV1PageReact.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **flagCommentPublic** +```swift + open class func flagCommentPublic(tenantId: String, commentId: String, isFlagged: Bool, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let commentId = "commentId_example" // String | +let isFlagged = true // Bool | +let sso = "sso_example" // String | (optional) + +PublicAPI.flagCommentPublic(tenantId: tenantId, commentId: commentId, isFlagged: isFlagged, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **commentId** | **String** | | + **isFlagged** | **Bool** | | + **sso** | **String** | | [optional] + +### Return type + +[**APIEmptyResponse**](APIEmptyResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentText** +```swift + open class func getCommentText(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: PublicAPIGetCommentTextResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let commentId = "commentId_example" // String | +let editKey = "editKey_example" // String | (optional) +let sso = "sso_example" // String | (optional) + +PublicAPI.getCommentText(tenantId: tenantId, commentId: commentId, editKey: editKey, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **commentId** | **String** | | + **editKey** | **String** | | [optional] + **sso** | **String** | | [optional] + +### Return type + +[**PublicAPIGetCommentTextResponse**](PublicAPIGetCommentTextResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentVoteUserNames** +```swift + open class func getCommentVoteUserNames(tenantId: String, commentId: String, dir: Int, sso: String? = nil, completion: @escaping (_ data: GetCommentVoteUserNamesSuccessResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let commentId = "commentId_example" // String | +let dir = 987 // Int | +let sso = "sso_example" // String | (optional) + +PublicAPI.getCommentVoteUserNames(tenantId: tenantId, commentId: commentId, dir: dir, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **commentId** | **String** | | + **dir** | **Int** | | + **sso** | **String** | | [optional] + +### Return type + +[**GetCommentVoteUserNamesSuccessResponse**](GetCommentVoteUserNamesSuccessResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentsForUser** +```swift + open class func getCommentsForUser(userId: String? = nil, direction: SortDirections? = nil, repliesToUserId: String? = nil, page: Double? = nil, includei10n: Bool? = nil, locale: String? = nil, isCrawler: Bool? = nil, completion: @escaping (_ data: GetCommentsForUserResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let userId = "userId_example" // String | (optional) +let direction = SortDirections() // SortDirections | (optional) +let repliesToUserId = "repliesToUserId_example" // String | (optional) +let page = 987 // Double | (optional) +let includei10n = true // Bool | (optional) +let locale = "locale_example" // String | (optional) +let isCrawler = true // Bool | (optional) + +PublicAPI.getCommentsForUser(userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String** | | [optional] + **direction** | [**SortDirections**](.md) | | [optional] + **repliesToUserId** | **String** | | [optional] + **page** | **Double** | | [optional] + **includei10n** | **Bool** | | [optional] + **locale** | **String** | | [optional] + **isCrawler** | **Bool** | | [optional] + +### Return type + +[**GetCommentsForUserResponse**](GetCommentsForUserResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getCommentsPublic** +```swift + open class func getCommentsPublic(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, completion: @escaping (_ data: GetCommentsResponseWithPresencePublicComment?, _ error: Error?) -> Void) +``` + + + + req tenantId urlId + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let urlId = "urlId_example" // String | +let page = 987 // Int | (optional) +let direction = SortDirections() // SortDirections | (optional) +let sso = "sso_example" // String | (optional) +let skip = 987 // Int | (optional) +let skipChildren = 987 // Int | (optional) +let limit = 987 // Int | (optional) +let limitChildren = 987 // Int | (optional) +let countChildren = true // Bool | (optional) +let fetchPageForCommentId = "fetchPageForCommentId_example" // String | (optional) +let includeConfig = true // Bool | (optional) +let countAll = true // Bool | (optional) +let includei10n = true // Bool | (optional) +let locale = "locale_example" // String | (optional) +let modules = "modules_example" // String | (optional) +let isCrawler = true // Bool | (optional) +let includeNotificationCount = true // Bool | (optional) +let asTree = true // Bool | (optional) +let maxTreeDepth = 987 // Int | (optional) +let useFullTranslationIds = true // Bool | (optional) +let parentId = "parentId_example" // String | (optional) +let searchText = "searchText_example" // String | (optional) +let hashTags = ["inner_example"] // [String] | (optional) +let userId = "userId_example" // String | (optional) +let customConfigStr = "customConfigStr_example" // String | (optional) +let afterCommentId = "afterCommentId_example" // String | (optional) +let beforeCommentId = "beforeCommentId_example" // String | (optional) + +PublicAPI.getCommentsPublic(tenantId: tenantId, urlId: urlId, page: page, direction: direction, sso: sso, skip: skip, skipChildren: skipChildren, limit: limit, limitChildren: limitChildren, countChildren: countChildren, fetchPageForCommentId: fetchPageForCommentId, includeConfig: includeConfig, countAll: countAll, includei10n: includei10n, locale: locale, modules: modules, isCrawler: isCrawler, includeNotificationCount: includeNotificationCount, asTree: asTree, maxTreeDepth: maxTreeDepth, useFullTranslationIds: useFullTranslationIds, parentId: parentId, searchText: searchText, hashTags: hashTags, userId: userId, customConfigStr: customConfigStr, afterCommentId: afterCommentId, beforeCommentId: beforeCommentId) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **urlId** | **String** | | + **page** | **Int** | | [optional] + **direction** | [**SortDirections**](.md) | | [optional] + **sso** | **String** | | [optional] + **skip** | **Int** | | [optional] + **skipChildren** | **Int** | | [optional] + **limit** | **Int** | | [optional] + **limitChildren** | **Int** | | [optional] + **countChildren** | **Bool** | | [optional] + **fetchPageForCommentId** | **String** | | [optional] + **includeConfig** | **Bool** | | [optional] + **countAll** | **Bool** | | [optional] + **includei10n** | **Bool** | | [optional] + **locale** | **String** | | [optional] + **modules** | **String** | | [optional] + **isCrawler** | **Bool** | | [optional] + **includeNotificationCount** | **Bool** | | [optional] + **asTree** | **Bool** | | [optional] + **maxTreeDepth** | **Int** | | [optional] + **useFullTranslationIds** | **Bool** | | [optional] + **parentId** | **String** | | [optional] + **searchText** | **String** | | [optional] + **hashTags** | [**[String]**](String.md) | | [optional] + **userId** | **String** | | [optional] + **customConfigStr** | **String** | | [optional] + **afterCommentId** | **String** | | [optional] + **beforeCommentId** | **String** | | [optional] + +### Return type + +[**GetCommentsResponseWithPresencePublicComment**](GetCommentsResponseWithPresencePublicComment.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getEventLog** +```swift + open class func getEventLog(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64? = nil, completion: @escaping (_ data: GetEventLogResponse?, _ error: Error?) -> Void) +``` + + + + req tenantId urlId userIdWS + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let urlId = "urlId_example" // String | +let userIdWS = "userIdWS_example" // String | +let startTime = 987 // Int64 | +let endTime = 987 // Int64 | (optional) + +PublicAPI.getEventLog(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS, startTime: startTime, endTime: endTime) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **urlId** | **String** | | + **userIdWS** | **String** | | + **startTime** | **Int64** | | + **endTime** | **Int64** | | [optional] + +### Return type + +[**GetEventLogResponse**](GetEventLogResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getFeedPostsPublic** +```swift + open class func getFeedPostsPublic(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, completion: @escaping (_ data: PublicFeedPostsResponse?, _ error: Error?) -> Void) +``` + + + + req tenantId afterId + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let afterId = "afterId_example" // String | (optional) +let limit = 987 // Int | (optional) +let tags = ["inner_example"] // [String] | (optional) +let sso = "sso_example" // String | (optional) +let isCrawler = true // Bool | (optional) +let includeUserInfo = true // Bool | (optional) + +PublicAPI.getFeedPostsPublic(tenantId: tenantId, afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **afterId** | **String** | | [optional] + **limit** | **Int** | | [optional] + **tags** | [**[String]**](String.md) | | [optional] + **sso** | **String** | | [optional] + **isCrawler** | **Bool** | | [optional] + **includeUserInfo** | **Bool** | | [optional] + +### Return type + +[**PublicFeedPostsResponse**](PublicFeedPostsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getFeedPostsStats** +```swift + open class func getFeedPostsStats(tenantId: String, postIds: [String], sso: String? = nil, completion: @escaping (_ data: FeedPostsStatsResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let postIds = ["inner_example"] // [String] | +let sso = "sso_example" // String | (optional) + +PublicAPI.getFeedPostsStats(tenantId: tenantId, postIds: postIds, sso: sso) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **postIds** | [**[String]**](String.md) | | + **sso** | **String** | | [optional] + +### Return type + +[**FeedPostsStatsResponse**](FeedPostsStatsResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getGifLarge** +```swift + open class func getGifLarge(tenantId: String, largeInternalURLSanitized: String, completion: @escaping (_ data: GifGetLargeResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let largeInternalURLSanitized = "largeInternalURLSanitized_example" // String | + +PublicAPI.getGifLarge(tenantId: tenantId, largeInternalURLSanitized: largeInternalURLSanitized) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **largeInternalURLSanitized** | **String** | | + +### Return type + +[**GifGetLargeResponse**](GifGetLargeResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getGifsSearch** +```swift + open class func getGifsSearch(tenantId: String, search: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, completion: @escaping (_ data: GetGifsSearchResponse?, _ error: Error?) -> Void) +``` + + + +### Example +```swift +// The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new +import FastCommentsSwift + +let tenantId = "tenantId_example" // String | +let search = "search_example" // String | +let locale = "locale_example" // String | (optional) +let rating = "rating_example" // String | (optional) +let page = 987 // Double | (optional) + +PublicAPI.getGifsSearch(tenantId: tenantId, search: search, locale: locale, rating: rating, page: page) { (response, error) in + guard error == nil else { + print(error) + return + } + + if (response) { + dump(response) + } +} +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | + **search** | **String** | | + **locale** | **String** | | [optional] + **rating** | **String** | | [optional] + **page** | **Double** | | [optional] + +### Return type + +[**GetGifsSearchResponse**](GetGifsSearchResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **getGifsTrending** +```swift + open class func getGifsTrending(tenantId: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, completion: @escaping (_ data: GetGifsTrendingResponse?, _ error: Error?) -> Void) ``` @@ -268,12 +1250,11 @@ No authorization required import FastCommentsSwift let tenantId = "tenantId_example" // String | -let commentId = "commentId_example" // String | -let broadcastId = "broadcastId_example" // String | -let editKey = "editKey_example" // String | (optional) -let sso = "sso_example" // String | (optional) +let locale = "locale_example" // String | (optional) +let rating = "rating_example" // String | (optional) +let page = 987 // Double | (optional) -PublicAPI.deleteCommentPublic(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, editKey: editKey, sso: sso) { (response, error) in +PublicAPI.getGifsTrending(tenantId: tenantId, locale: locale, rating: rating, page: page) { (response, error) in guard error == nil else { print(error) return @@ -290,14 +1271,13 @@ PublicAPI.deleteCommentPublic(tenantId: tenantId, commentId: commentId, broadcas Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **commentId** | **String** | | - **broadcastId** | **String** | | - **editKey** | **String** | | [optional] - **sso** | **String** | | [optional] + **locale** | **String** | | [optional] + **rating** | **String** | | [optional] + **page** | **Double** | | [optional] ### Return type -[**DeleteCommentPublic200Response**](DeleteCommentPublic200Response.md) +[**GetGifsTrendingResponse**](GetGifsTrendingResponse.md) ### Authorization @@ -310,27 +1290,27 @@ 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) -# **deleteCommentVote** +# **getGlobalEventLog** ```swift - open class func deleteCommentVote(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: DeleteCommentVote200Response?, _ error: Error?) -> Void) + open class func getGlobalEventLog(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64? = nil, completion: @escaping (_ data: GetEventLogResponse?, _ error: Error?) -> Void) ``` + req tenantId urlId userIdWS + ### Example ```swift // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift let tenantId = "tenantId_example" // String | -let commentId = "commentId_example" // String | -let voteId = "voteId_example" // String | let urlId = "urlId_example" // String | -let broadcastId = "broadcastId_example" // String | -let editKey = "editKey_example" // String | (optional) -let sso = "sso_example" // String | (optional) +let userIdWS = "userIdWS_example" // String | +let startTime = 987 // Int64 | +let endTime = 987 // Int64 | (optional) -PublicAPI.deleteCommentVote(tenantId: tenantId, commentId: commentId, voteId: voteId, urlId: urlId, broadcastId: broadcastId, editKey: editKey, sso: sso) { (response, error) in +PublicAPI.getGlobalEventLog(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS, startTime: startTime, endTime: endTime) { (response, error) in guard error == nil else { print(error) return @@ -347,16 +1327,14 @@ PublicAPI.deleteCommentVote(tenantId: tenantId, commentId: commentId, voteId: vo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **commentId** | **String** | | - **voteId** | **String** | | **urlId** | **String** | | - **broadcastId** | **String** | | - **editKey** | **String** | | [optional] - **sso** | **String** | | [optional] + **userIdWS** | **String** | | + **startTime** | **Int64** | | + **endTime** | **Int64** | | [optional] ### Return type -[**DeleteCommentVote200Response**](DeleteCommentVote200Response.md) +[**GetEventLogResponse**](GetEventLogResponse.md) ### Authorization @@ -369,24 +1347,26 @@ 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) -# **deleteFeedPostPublic** +# **getOfflineUsers** ```swift - open class func deleteFeedPostPublic(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: DeleteFeedPostPublic200Response?, _ error: Error?) -> Void) + open class func getOfflineUsers(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, completion: @escaping (_ data: PageUsersOfflineResponse?, _ error: Error?) -> Void) ``` +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 ```swift // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift let tenantId = "tenantId_example" // String | -let postId = "postId_example" // String | -let broadcastId = "broadcastId_example" // String | (optional) -let sso = "sso_example" // String | (optional) +let urlId = "urlId_example" // String | Page URL identifier (cleaned server-side). +let afterName = "afterName_example" // String | Cursor: pass nextAfterName from the previous response. (optional) +let afterUserId = "afterUserId_example" // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) -PublicAPI.deleteFeedPostPublic(tenantId: tenantId, postId: postId, broadcastId: broadcastId, sso: sso) { (response, error) in +PublicAPI.getOfflineUsers(tenantId: tenantId, urlId: urlId, afterName: afterName, afterUserId: afterUserId) { (response, error) in guard error == nil else { print(error) return @@ -403,13 +1383,13 @@ PublicAPI.deleteFeedPostPublic(tenantId: tenantId, postId: postId, broadcastId: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **postId** | **String** | | - **broadcastId** | **String** | | [optional] - **sso** | **String** | | [optional] + **urlId** | **String** | Page URL identifier (cleaned server-side). | + **afterName** | **String** | Cursor: pass nextAfterName from the previous response. | [optional] + **afterUserId** | **String** | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. | [optional] ### Return type -[**DeleteFeedPostPublic200Response**](DeleteFeedPostPublic200Response.md) +[**PageUsersOfflineResponse**](PageUsersOfflineResponse.md) ### Authorization @@ -422,24 +1402,26 @@ 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) -# **flagCommentPublic** +# **getOnlineUsers** ```swift - open class func flagCommentPublic(tenantId: String, commentId: String, isFlagged: Bool, sso: String? = nil, completion: @escaping (_ data: FlagCommentPublic200Response?, _ error: Error?) -> Void) + open class func getOnlineUsers(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, completion: @escaping (_ data: PageUsersOnlineResponse?, _ error: Error?) -> Void) ``` +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 ```swift // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift let tenantId = "tenantId_example" // String | -let commentId = "commentId_example" // String | -let isFlagged = true // Bool | -let sso = "sso_example" // String | (optional) +let urlId = "urlId_example" // String | Page URL identifier (cleaned server-side). +let afterName = "afterName_example" // String | Cursor: pass nextAfterName from the previous response. (optional) +let afterUserId = "afterUserId_example" // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) -PublicAPI.flagCommentPublic(tenantId: tenantId, commentId: commentId, isFlagged: isFlagged, sso: sso) { (response, error) in +PublicAPI.getOnlineUsers(tenantId: tenantId, urlId: urlId, afterName: afterName, afterUserId: afterUserId) { (response, error) in guard error == nil else { print(error) return @@ -456,13 +1438,13 @@ PublicAPI.flagCommentPublic(tenantId: tenantId, commentId: commentId, isFlagged: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **commentId** | **String** | | - **isFlagged** | **Bool** | | - **sso** | **String** | | [optional] + **urlId** | **String** | Page URL identifier (cleaned server-side). | + **afterName** | **String** | Cursor: pass nextAfterName from the previous response. | [optional] + **afterUserId** | **String** | 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 @@ -475,24 +1457,28 @@ 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) -# **getCommentText** +# **getPagesPublic** ```swift - open class func getCommentText(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: GetCommentText200Response?, _ error: Error?) -> Void) + open class func getPagesPublic(tenantId: String, cursor: String? = nil, limit: Int? = nil, q: String? = nil, sortBy: PagesSortBy? = nil, hasComments: Bool? = nil, completion: @escaping (_ data: GetPublicPagesResponse?, _ error: Error?) -> Void) ``` +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 ```swift // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift let tenantId = "tenantId_example" // String | -let commentId = "commentId_example" // String | -let editKey = "editKey_example" // String | (optional) -let sso = "sso_example" // String | (optional) +let cursor = "cursor_example" // String | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. (optional) +let limit = 987 // Int | 1..200, default 50 (optional) +let q = "q_example" // String | Optional case-insensitive title prefix filter. (optional) +let sortBy = PagesSortBy() // PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional) +let hasComments = true // Bool | If true, only return pages with at least one comment. (optional) -PublicAPI.getCommentText(tenantId: tenantId, commentId: commentId, editKey: editKey, sso: sso) { (response, error) in +PublicAPI.getPagesPublic(tenantId: tenantId, cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments) { (response, error) in guard error == nil else { print(error) return @@ -509,13 +1495,15 @@ PublicAPI.getCommentText(tenantId: tenantId, commentId: commentId, editKey: edit Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **commentId** | **String** | | - **editKey** | **String** | | [optional] - **sso** | **String** | | [optional] + **cursor** | **String** | Opaque pagination cursor returned as `nextCursor` from a prior request. Tied to the same `sortBy`. | [optional] + **limit** | **Int** | 1..200, default 50 | [optional] + **q** | **String** | Optional case-insensitive title prefix filter. | [optional] + **sortBy** | [**PagesSortBy**](.md) | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). | [optional] + **hasComments** | **Bool** | If true, only return pages with at least one comment. | [optional] ### Return type -[**GetCommentText200Response**](GetCommentText200Response.md) +[**GetPublicPagesResponse**](GetPublicPagesResponse.md) ### Authorization @@ -528,9 +1516,9 @@ 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) -# **getCommentVoteUserNames** +# **getTranslations** ```swift - open class func getCommentVoteUserNames(tenantId: String, commentId: String, dir: Int, sso: String? = nil, completion: @escaping (_ data: GetCommentVoteUserNames200Response?, _ error: Error?) -> Void) + open class func getTranslations(namespace: String, component: String, locale: String? = nil, useFullTranslationIds: Bool? = nil, completion: @escaping (_ data: GetTranslationsResponse?, _ error: Error?) -> Void) ``` @@ -540,12 +1528,12 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift -let tenantId = "tenantId_example" // String | -let commentId = "commentId_example" // String | -let dir = 987 // Int | -let sso = "sso_example" // String | (optional) +let namespace = "namespace_example" // String | +let component = "component_example" // String | +let locale = "locale_example" // String | (optional) +let useFullTranslationIds = true // Bool | (optional) -PublicAPI.getCommentVoteUserNames(tenantId: tenantId, commentId: commentId, dir: dir, sso: sso) { (response, error) in +PublicAPI.getTranslations(namespace: namespace, component: component, locale: locale, useFullTranslationIds: useFullTranslationIds) { (response, error) in guard error == nil else { print(error) return @@ -561,14 +1549,14 @@ PublicAPI.getCommentVoteUserNames(tenantId: tenantId, commentId: commentId, dir: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **String** | | - **commentId** | **String** | | - **dir** | **Int** | | - **sso** | **String** | | [optional] + **namespace** | **String** | | + **component** | **String** | | + **locale** | **String** | | [optional] + **useFullTranslationIds** | **Bool** | | [optional] ### Return type -[**GetCommentVoteUserNames200Response**](GetCommentVoteUserNames200Response.md) +[**GetTranslationsResponse**](GetTranslationsResponse.md) ### Authorization @@ -581,50 +1569,22 @@ 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) -# **getCommentsPublic** +# **getUserNotificationCount** ```swift - open class func getCommentsPublic(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, completion: @escaping (_ data: GetCommentsPublic200Response?, _ error: Error?) -> Void) + open class func getUserNotificationCount(tenantId: String, sso: String? = nil, completion: @escaping (_ data: GetUserNotificationCountResponse?, _ error: Error?) -> Void) ``` - req tenantId urlId - ### Example ```swift // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift let tenantId = "tenantId_example" // String | -let urlId = "urlId_example" // String | -let page = 987 // Int | (optional) -let direction = SortDirections() // SortDirections | (optional) let sso = "sso_example" // String | (optional) -let skip = 987 // Int | (optional) -let skipChildren = 987 // Int | (optional) -let limit = 987 // Int | (optional) -let limitChildren = 987 // Int | (optional) -let countChildren = true // Bool | (optional) -let fetchPageForCommentId = "fetchPageForCommentId_example" // String | (optional) -let includeConfig = true // Bool | (optional) -let countAll = true // Bool | (optional) -let includei10n = true // Bool | (optional) -let locale = "locale_example" // String | (optional) -let modules = "modules_example" // String | (optional) -let isCrawler = true // Bool | (optional) -let includeNotificationCount = true // Bool | (optional) -let asTree = true // Bool | (optional) -let maxTreeDepth = 987 // Int | (optional) -let useFullTranslationIds = true // Bool | (optional) -let parentId = "parentId_example" // String | (optional) -let searchText = "searchText_example" // String | (optional) -let hashTags = ["inner_example"] // [String] | (optional) -let userId = "userId_example" // String | (optional) -let customConfigStr = "customConfigStr_example" // String | (optional) -let afterCommentId = "afterCommentId_example" // String | (optional) -let beforeCommentId = "beforeCommentId_example" // String | (optional) -PublicAPI.getCommentsPublic(tenantId: tenantId, urlId: urlId, page: page, direction: direction, sso: sso, skip: skip, skipChildren: skipChildren, limit: limit, limitChildren: limitChildren, countChildren: countChildren, fetchPageForCommentId: fetchPageForCommentId, includeConfig: includeConfig, countAll: countAll, includei10n: includei10n, locale: locale, modules: modules, isCrawler: isCrawler, includeNotificationCount: includeNotificationCount, asTree: asTree, maxTreeDepth: maxTreeDepth, useFullTranslationIds: useFullTranslationIds, parentId: parentId, searchText: searchText, hashTags: hashTags, userId: userId, customConfigStr: customConfigStr, afterCommentId: afterCommentId, beforeCommentId: beforeCommentId) { (response, error) in +PublicAPI.getUserNotificationCount(tenantId: tenantId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -641,37 +1601,11 @@ PublicAPI.getCommentsPublic(tenantId: tenantId, urlId: urlId, page: page, direct Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **urlId** | **String** | | - **page** | **Int** | | [optional] - **direction** | [**SortDirections**](.md) | | [optional] **sso** | **String** | | [optional] - **skip** | **Int** | | [optional] - **skipChildren** | **Int** | | [optional] - **limit** | **Int** | | [optional] - **limitChildren** | **Int** | | [optional] - **countChildren** | **Bool** | | [optional] - **fetchPageForCommentId** | **String** | | [optional] - **includeConfig** | **Bool** | | [optional] - **countAll** | **Bool** | | [optional] - **includei10n** | **Bool** | | [optional] - **locale** | **String** | | [optional] - **modules** | **String** | | [optional] - **isCrawler** | **Bool** | | [optional] - **includeNotificationCount** | **Bool** | | [optional] - **asTree** | **Bool** | | [optional] - **maxTreeDepth** | **Int** | | [optional] - **useFullTranslationIds** | **Bool** | | [optional] - **parentId** | **String** | | [optional] - **searchText** | **String** | | [optional] - **hashTags** | [**[String]**](String.md) | | [optional] - **userId** | **String** | | [optional] - **customConfigStr** | **String** | | [optional] - **afterCommentId** | **String** | | [optional] - **beforeCommentId** | **String** | | [optional] ### Return type -[**GetCommentsPublic200Response**](GetCommentsPublic200Response.md) +[**GetUserNotificationCountResponse**](GetUserNotificationCountResponse.md) ### Authorization @@ -684,27 +1618,32 @@ 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) -# **getEventLog** +# **getUserNotifications** ```swift - open class func getEventLog(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64, completion: @escaping (_ data: GetEventLog200Response?, _ error: Error?) -> Void) + open class func getUserNotifications(tenantId: String, urlId: String? = nil, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, includeTenantNotifications: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: GetMyNotificationsResponse?, _ error: Error?) -> Void) ``` - req tenantId urlId userIdWS - ### Example ```swift // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift let tenantId = "tenantId_example" // String | -let urlId = "urlId_example" // String | -let userIdWS = "userIdWS_example" // String | -let startTime = 987 // Int64 | -let endTime = 987 // Int64 | +let urlId = "urlId_example" // String | Used to determine whether the current page is subscribed. (optional) +let pageSize = 987 // Int | (optional) +let afterId = "afterId_example" // String | (optional) +let includeContext = true // Bool | (optional) +let afterCreatedAt = 987 // Int64 | (optional) +let unreadOnly = true // Bool | (optional) +let dmOnly = true // Bool | (optional) +let noDm = true // Bool | (optional) +let includeTranslations = true // Bool | (optional) +let includeTenantNotifications = true // Bool | (optional) +let sso = "sso_example" // String | (optional) -PublicAPI.getEventLog(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS, startTime: startTime, endTime: endTime) { (response, error) in +PublicAPI.getUserNotifications(tenantId: tenantId, urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -721,14 +1660,21 @@ PublicAPI.getEventLog(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS, star Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **urlId** | **String** | | - **userIdWS** | **String** | | - **startTime** | **Int64** | | - **endTime** | **Int64** | | + **urlId** | **String** | Used to determine whether the current page is subscribed. | [optional] + **pageSize** | **Int** | | [optional] + **afterId** | **String** | | [optional] + **includeContext** | **Bool** | | [optional] + **afterCreatedAt** | **Int64** | | [optional] + **unreadOnly** | **Bool** | | [optional] + **dmOnly** | **Bool** | | [optional] + **noDm** | **Bool** | | [optional] + **includeTranslations** | **Bool** | | [optional] + **includeTenantNotifications** | **Bool** | | [optional] + **sso** | **String** | | [optional] ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**GetMyNotificationsResponse**](GetMyNotificationsResponse.md) ### Authorization @@ -741,29 +1687,23 @@ 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) -# **getFeedPostsPublic** +# **getUserPresenceStatuses** ```swift - open class func getFeedPostsPublic(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, completion: @escaping (_ data: GetFeedPostsPublic200Response?, _ error: Error?) -> Void) + open class func getUserPresenceStatuses(tenantId: String, urlIdWS: String, userIds: String, completion: @escaping (_ data: GetUserPresenceStatusesResponse?, _ error: Error?) -> Void) ``` - req tenantId afterId - ### Example ```swift // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift let tenantId = "tenantId_example" // String | -let afterId = "afterId_example" // String | (optional) -let limit = 987 // Int | (optional) -let tags = ["inner_example"] // [String] | (optional) -let sso = "sso_example" // String | (optional) -let isCrawler = true // Bool | (optional) -let includeUserInfo = true // Bool | (optional) +let urlIdWS = "urlIdWS_example" // String | +let userIds = "userIds_example" // String | -PublicAPI.getFeedPostsPublic(tenantId: tenantId, afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo) { (response, error) in +PublicAPI.getUserPresenceStatuses(tenantId: tenantId, urlIdWS: urlIdWS, userIds: userIds) { (response, error) in guard error == nil else { print(error) return @@ -780,16 +1720,12 @@ PublicAPI.getFeedPostsPublic(tenantId: tenantId, afterId: afterId, limit: limit, Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **afterId** | **String** | | [optional] - **limit** | **Int** | | [optional] - **tags** | [**[String]**](String.md) | | [optional] - **sso** | **String** | | [optional] - **isCrawler** | **Bool** | | [optional] - **includeUserInfo** | **Bool** | | [optional] + **urlIdWS** | **String** | | + **userIds** | **String** | | ### Return type -[**GetFeedPostsPublic200Response**](GetFeedPostsPublic200Response.md) +[**GetUserPresenceStatusesResponse**](GetUserPresenceStatusesResponse.md) ### Authorization @@ -802,9 +1738,9 @@ 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) -# **getFeedPostsStats** +# **getUserReactsPublic** ```swift - open class func getFeedPostsStats(tenantId: String, postIds: [String], sso: String? = nil, completion: @escaping (_ data: GetFeedPostsStats200Response?, _ error: Error?) -> Void) + open class func getUserReactsPublic(tenantId: String, postIds: [String]? = nil, sso: String? = nil, completion: @escaping (_ data: UserReactsResponse?, _ error: Error?) -> Void) ``` @@ -815,10 +1751,10 @@ No authorization required import FastCommentsSwift let tenantId = "tenantId_example" // String | -let postIds = ["inner_example"] // [String] | +let postIds = ["inner_example"] // [String] | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.getFeedPostsStats(tenantId: tenantId, postIds: postIds, sso: sso) { (response, error) in +PublicAPI.getUserReactsPublic(tenantId: tenantId, postIds: postIds, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -835,12 +1771,12 @@ PublicAPI.getFeedPostsStats(tenantId: tenantId, postIds: postIds, sso: sso) { (r Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **postIds** | [**[String]**](String.md) | | + **postIds** | [**[String]**](String.md) | | [optional] **sso** | **String** | | [optional] ### Return type -[**GetFeedPostsStats200Response**](GetFeedPostsStats200Response.md) +[**UserReactsResponse**](UserReactsResponse.md) ### Authorization @@ -853,14 +1789,14 @@ 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) -# **getGlobalEventLog** +# **getUsersInfo** ```swift - open class func getGlobalEventLog(tenantId: String, urlId: String, userIdWS: String, startTime: Int64, endTime: Int64, completion: @escaping (_ data: GetEventLog200Response?, _ error: Error?) -> Void) + open class func getUsersInfo(tenantId: String, ids: String, completion: @escaping (_ data: PageUsersInfoResponse?, _ error: Error?) -> Void) ``` - 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 ```swift @@ -868,12 +1804,9 @@ No authorization required import FastCommentsSwift let tenantId = "tenantId_example" // String | -let urlId = "urlId_example" // String | -let userIdWS = "userIdWS_example" // String | -let startTime = 987 // Int64 | -let endTime = 987 // Int64 | +let ids = "ids_example" // String | Comma-delimited userIds. -PublicAPI.getGlobalEventLog(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS, startTime: startTime, endTime: endTime) { (response, error) in +PublicAPI.getUsersInfo(tenantId: tenantId, ids: ids) { (response, error) in guard error == nil else { print(error) return @@ -890,14 +1823,11 @@ PublicAPI.getGlobalEventLog(tenantId: tenantId, urlId: urlId, userIdWS: userIdWS Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **urlId** | **String** | | - **userIdWS** | **String** | | - **startTime** | **Int64** | | - **endTime** | **Int64** | | + **ids** | **String** | Comma-delimited userIds. | ### Return type -[**GetEventLog200Response**](GetEventLog200Response.md) +[**PageUsersInfoResponse**](PageUsersInfoResponse.md) ### Authorization @@ -910,9 +1840,9 @@ 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) -# **getUserNotificationCount** +# **getV1PageLikes** ```swift - open class func getUserNotificationCount(tenantId: String, sso: String? = nil, completion: @escaping (_ data: GetUserNotificationCount200Response?, _ error: Error?) -> Void) + open class func getV1PageLikes(tenantId: String, urlId: String, completion: @escaping (_ data: GetV1PageLikes?, _ error: Error?) -> Void) ``` @@ -923,9 +1853,9 @@ No authorization required import FastCommentsSwift let tenantId = "tenantId_example" // String | -let sso = "sso_example" // String | (optional) +let urlId = "urlId_example" // String | -PublicAPI.getUserNotificationCount(tenantId: tenantId, sso: sso) { (response, error) in +PublicAPI.getV1PageLikes(tenantId: tenantId, urlId: urlId) { (response, error) in guard error == nil else { print(error) return @@ -942,11 +1872,11 @@ PublicAPI.getUserNotificationCount(tenantId: tenantId, sso: sso) { (response, er Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **sso** | **String** | | [optional] + **urlId** | **String** | | ### Return type -[**GetUserNotificationCount200Response**](GetUserNotificationCount200Response.md) +[**GetV1PageLikes**](GetV1PageLikes.md) ### Authorization @@ -959,9 +1889,9 @@ 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) -# **getUserNotifications** +# **getV2PageReactUsers** ```swift - open class func getUserNotifications(tenantId: String, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: GetUserNotifications200Response?, _ error: Error?) -> Void) + open class func getV2PageReactUsers(tenantId: String, urlId: String, id: String, completion: @escaping (_ data: GetV2PageReactUsersResponse?, _ error: Error?) -> Void) ``` @@ -972,17 +1902,10 @@ No authorization required import FastCommentsSwift let tenantId = "tenantId_example" // String | -let pageSize = 987 // Int | (optional) -let afterId = "afterId_example" // String | (optional) -let includeContext = true // Bool | (optional) -let afterCreatedAt = 987 // Int64 | (optional) -let unreadOnly = true // Bool | (optional) -let dmOnly = true // Bool | (optional) -let noDm = true // Bool | (optional) -let includeTranslations = true // Bool | (optional) -let sso = "sso_example" // String | (optional) +let urlId = "urlId_example" // String | +let id = "id_example" // String | -PublicAPI.getUserNotifications(tenantId: tenantId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, sso: sso) { (response, error) in +PublicAPI.getV2PageReactUsers(tenantId: tenantId, urlId: urlId, id: id) { (response, error) in guard error == nil else { print(error) return @@ -999,19 +1922,12 @@ PublicAPI.getUserNotifications(tenantId: tenantId, pageSize: pageSize, afterId: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **pageSize** | **Int** | | [optional] - **afterId** | **String** | | [optional] - **includeContext** | **Bool** | | [optional] - **afterCreatedAt** | **Int64** | | [optional] - **unreadOnly** | **Bool** | | [optional] - **dmOnly** | **Bool** | | [optional] - **noDm** | **Bool** | | [optional] - **includeTranslations** | **Bool** | | [optional] - **sso** | **String** | | [optional] + **urlId** | **String** | | + **id** | **String** | | ### Return type -[**GetUserNotifications200Response**](GetUserNotifications200Response.md) +[**GetV2PageReactUsersResponse**](GetV2PageReactUsersResponse.md) ### Authorization @@ -1024,9 +1940,9 @@ 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) -# **getUserPresenceStatuses** +# **getV2PageReacts** ```swift - open class func getUserPresenceStatuses(tenantId: String, urlIdWS: String, userIds: String, completion: @escaping (_ data: GetUserPresenceStatuses200Response?, _ error: Error?) -> Void) + open class func getV2PageReacts(tenantId: String, urlId: String, completion: @escaping (_ data: GetV2PageReacts?, _ error: Error?) -> Void) ``` @@ -1037,10 +1953,9 @@ No authorization required import FastCommentsSwift let tenantId = "tenantId_example" // String | -let urlIdWS = "urlIdWS_example" // String | -let userIds = "userIds_example" // String | +let urlId = "urlId_example" // String | -PublicAPI.getUserPresenceStatuses(tenantId: tenantId, urlIdWS: urlIdWS, userIds: userIds) { (response, error) in +PublicAPI.getV2PageReacts(tenantId: tenantId, urlId: urlId) { (response, error) in guard error == nil else { print(error) return @@ -1057,12 +1972,11 @@ PublicAPI.getUserPresenceStatuses(tenantId: tenantId, urlIdWS: urlIdWS, userIds: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **urlIdWS** | **String** | | - **userIds** | **String** | | + **urlId** | **String** | | ### Return type -[**GetUserPresenceStatuses200Response**](GetUserPresenceStatuses200Response.md) +[**GetV2PageReacts**](GetV2PageReacts.md) ### Authorization @@ -1075,9 +1989,9 @@ 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) -# **getUserReactsPublic** +# **lockComment** ```swift - open class func getUserReactsPublic(tenantId: String, postIds: [String]? = nil, sso: String? = nil, completion: @escaping (_ data: GetUserReactsPublic200Response?, _ error: Error?) -> Void) + open class func lockComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1088,10 +2002,11 @@ No authorization required import FastCommentsSwift let tenantId = "tenantId_example" // String | -let postIds = ["inner_example"] // [String] | (optional) +let commentId = "commentId_example" // String | +let broadcastId = "broadcastId_example" // String | let sso = "sso_example" // String | (optional) -PublicAPI.getUserReactsPublic(tenantId: tenantId, postIds: postIds, sso: sso) { (response, error) in +PublicAPI.lockComment(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -1108,12 +2023,13 @@ PublicAPI.getUserReactsPublic(tenantId: tenantId, postIds: postIds, sso: sso) { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tenantId** | **String** | | - **postIds** | [**[String]**](String.md) | | [optional] + **commentId** | **String** | | + **broadcastId** | **String** | | **sso** | **String** | | [optional] ### Return type -[**GetUserReactsPublic200Response**](GetUserReactsPublic200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1126,9 +2042,9 @@ 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) -# **lockComment** +# **logoutPublic** ```swift - open class func lockComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, completion: @escaping (_ data: LockComment200Response?, _ error: Error?) -> Void) + open class func logoutPublic(completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1138,12 +2054,8 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift -let tenantId = "tenantId_example" // String | -let commentId = "commentId_example" // String | -let broadcastId = "broadcastId_example" // String | -let sso = "sso_example" // String | (optional) -PublicAPI.lockComment(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, sso: sso) { (response, error) in +PublicAPI.logoutPublic() { (response, error) in guard error == nil else { print(error) return @@ -1156,17 +2068,11 @@ PublicAPI.lockComment(tenantId: tenantId, commentId: commentId, broadcastId: bro ``` ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tenantId** | **String** | | - **commentId** | **String** | | - **broadcastId** | **String** | | - **sso** | **String** | | [optional] +This endpoint does not need any parameter. ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1181,7 +2087,7 @@ No authorization required # **pinComment** ```swift - open class func pinComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, completion: @escaping (_ data: PinComment200Response?, _ error: Error?) -> Void) + open class func pinComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, completion: @escaping (_ data: ChangeCommentPinStatusResponse?, _ error: Error?) -> Void) ``` @@ -1219,7 +2125,7 @@ Name | Type | Description | Notes ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -1234,7 +2140,7 @@ No authorization required # **reactFeedPostPublic** ```swift - open class func reactFeedPostPublic(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: ReactFeedPostPublic200Response?, _ error: Error?) -> Void) + open class func reactFeedPostPublic(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: ReactFeedPostResponse?, _ error: Error?) -> Void) ``` @@ -1276,7 +2182,7 @@ Name | Type | Description | Notes ### Return type -[**ReactFeedPostPublic200Response**](ReactFeedPostPublic200Response.md) +[**ReactFeedPostResponse**](ReactFeedPostResponse.md) ### Authorization @@ -1291,7 +2197,7 @@ No authorization required # **resetUserNotificationCount** ```swift - open class func resetUserNotificationCount(tenantId: String, sso: String? = nil, completion: @escaping (_ data: ResetUserNotifications200Response?, _ error: Error?) -> Void) + open class func resetUserNotificationCount(tenantId: String, sso: String? = nil, completion: @escaping (_ data: ResetUserNotificationsResponse?, _ error: Error?) -> Void) ``` @@ -1325,7 +2231,7 @@ Name | Type | Description | Notes ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1340,7 +2246,7 @@ No authorization required # **resetUserNotifications** ```swift - open class func resetUserNotifications(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ResetUserNotifications200Response?, _ error: Error?) -> Void) + open class func resetUserNotifications(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ResetUserNotificationsResponse?, _ error: Error?) -> Void) ``` @@ -1384,7 +2290,7 @@ Name | Type | Description | Notes ### Return type -[**ResetUserNotifications200Response**](ResetUserNotifications200Response.md) +[**ResetUserNotificationsResponse**](ResetUserNotificationsResponse.md) ### Authorization @@ -1399,7 +2305,7 @@ No authorization required # **searchUsers** ```swift - open class func searchUsers(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, completion: @escaping (_ data: SearchUsers200Response?, _ error: Error?) -> Void) + open class func searchUsers(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, completion: @escaping (_ data: SearchUsersResult?, _ error: Error?) -> Void) ``` @@ -1441,7 +2347,7 @@ Name | Type | Description | Notes ### Return type -[**SearchUsers200Response**](SearchUsers200Response.md) +[**SearchUsersResult**](SearchUsersResult.md) ### Authorization @@ -1456,7 +2362,7 @@ No authorization required # **setCommentText** ```swift - open class func setCommentText(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: SetCommentText200Response?, _ error: Error?) -> Void) + open class func setCommentText(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: PublicAPISetCommentTextResponse?, _ error: Error?) -> Void) ``` @@ -1498,7 +2404,7 @@ Name | Type | Description | Notes ### Return type -[**SetCommentText200Response**](SetCommentText200Response.md) +[**PublicAPISetCommentTextResponse**](PublicAPISetCommentTextResponse.md) ### Authorization @@ -1513,7 +2419,7 @@ No authorization required # **unBlockCommentPublic** ```swift - open class func unBlockCommentPublic(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, completion: @escaping (_ data: UnBlockCommentPublic200Response?, _ error: Error?) -> Void) + open class func unBlockCommentPublic(tenantId: String, commentId: String, publicBlockFromCommentParams: PublicBlockFromCommentParams, sso: String? = nil, completion: @escaping (_ data: UnblockSuccess?, _ error: Error?) -> Void) ``` @@ -1551,7 +2457,7 @@ Name | Type | Description | Notes ### Return type -[**UnBlockCommentPublic200Response**](UnBlockCommentPublic200Response.md) +[**UnblockSuccess**](UnblockSuccess.md) ### Authorization @@ -1566,7 +2472,7 @@ No authorization required # **unLockComment** ```swift - open class func unLockComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, completion: @escaping (_ data: LockComment200Response?, _ error: Error?) -> Void) + open class func unLockComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1604,7 +2510,7 @@ Name | Type | Description | Notes ### Return type -[**LockComment200Response**](LockComment200Response.md) +[**APIEmptyResponse**](APIEmptyResponse.md) ### Authorization @@ -1619,7 +2525,7 @@ No authorization required # **unPinComment** ```swift - open class func unPinComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, completion: @escaping (_ data: PinComment200Response?, _ error: Error?) -> Void) + open class func unPinComment(tenantId: String, commentId: String, broadcastId: String, sso: String? = nil, completion: @escaping (_ data: ChangeCommentPinStatusResponse?, _ error: Error?) -> Void) ``` @@ -1657,7 +2563,7 @@ Name | Type | Description | Notes ### Return type -[**PinComment200Response**](PinComment200Response.md) +[**ChangeCommentPinStatusResponse**](ChangeCommentPinStatusResponse.md) ### Authorization @@ -1672,7 +2578,7 @@ No authorization required # **updateFeedPostPublic** ```swift - open class func updateFeedPostPublic(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: CreateFeedPostPublic200Response?, _ error: Error?) -> Void) + open class func updateFeedPostPublic(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: CreateFeedPostResponse?, _ error: Error?) -> Void) ``` @@ -1712,7 +2618,7 @@ Name | Type | Description | Notes ### Return type -[**CreateFeedPostPublic200Response**](CreateFeedPostPublic200Response.md) +[**CreateFeedPostResponse**](CreateFeedPostResponse.md) ### Authorization @@ -1727,7 +2633,7 @@ No authorization required # **updateUserNotificationCommentSubscriptionStatus** ```swift - open class func updateUserNotificationCommentSubscriptionStatus(tenantId: String, notificationId: String, optedInOrOut: OptedInOrOut_updateUserNotificationCommentSubscriptionStatus, commentId: String, sso: String? = nil, completion: @escaping (_ data: UpdateUserNotificationStatus200Response?, _ error: Error?) -> Void) + open class func updateUserNotificationCommentSubscriptionStatus(tenantId: String, notificationId: String, optedInOrOut: OptedInOrOut_updateUserNotificationCommentSubscriptionStatus, commentId: String, sso: String? = nil, completion: @escaping (_ data: UpdateUserNotificationCommentSubscriptionStatusResponse?, _ error: Error?) -> Void) ``` @@ -1769,7 +2675,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationCommentSubscriptionStatusResponse**](UpdateUserNotificationCommentSubscriptionStatusResponse.md) ### Authorization @@ -1784,7 +2690,7 @@ No authorization required # **updateUserNotificationPageSubscriptionStatus** ```swift - open class func updateUserNotificationPageSubscriptionStatus(tenantId: String, urlId: String, url: String, pageTitle: String, subscribedOrUnsubscribed: SubscribedOrUnsubscribed_updateUserNotificationPageSubscriptionStatus, sso: String? = nil, completion: @escaping (_ data: UpdateUserNotificationStatus200Response?, _ error: Error?) -> Void) + open class func updateUserNotificationPageSubscriptionStatus(tenantId: String, urlId: String, url: String, pageTitle: String, subscribedOrUnsubscribed: SubscribedOrUnsubscribed_updateUserNotificationPageSubscriptionStatus, sso: String? = nil, completion: @escaping (_ data: UpdateUserNotificationPageSubscriptionStatusResponse?, _ error: Error?) -> Void) ``` @@ -1828,7 +2734,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationPageSubscriptionStatusResponse**](UpdateUserNotificationPageSubscriptionStatusResponse.md) ### Authorization @@ -1843,7 +2749,7 @@ No authorization required # **updateUserNotificationStatus** ```swift - open class func updateUserNotificationStatus(tenantId: String, notificationId: String, newStatus: NewStatus_updateUserNotificationStatus, sso: String? = nil, completion: @escaping (_ data: UpdateUserNotificationStatus200Response?, _ error: Error?) -> Void) + open class func updateUserNotificationStatus(tenantId: String, notificationId: String, newStatus: NewStatus_updateUserNotificationStatus, sso: String? = nil, completion: @escaping (_ data: UpdateUserNotificationStatusResponse?, _ error: Error?) -> Void) ``` @@ -1881,7 +2787,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateUserNotificationStatus200Response**](UpdateUserNotificationStatus200Response.md) +[**UpdateUserNotificationStatusResponse**](UpdateUserNotificationStatusResponse.md) ### Authorization @@ -1951,7 +2857,7 @@ No authorization required # **voteComment** ```swift - open class func voteComment(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, completion: @escaping (_ data: VoteComment200Response?, _ error: Error?) -> Void) + open class func voteComment(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) ``` @@ -1995,7 +2901,7 @@ Name | Type | Description | Notes ### Return type -[**VoteComment200Response**](VoteComment200Response.md) +[**VoteResponse**](VoteResponse.md) ### Authorization diff --git a/client/docs/PublicPage.md b/client/docs/PublicPage.md new file mode 100644 index 0000000..a2341a1 --- /dev/null +++ b/client/docs/PublicPage.md @@ -0,0 +1,14 @@ +# PublicPage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**updatedAt** | **Int64** | | +**commentCount** | **Int** | | +**title** | **String** | | +**url** | **String** | | +**urlId** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PutDomainConfigResponse.md b/client/docs/PutDomainConfigResponse.md new file mode 100644 index 0000000..98ed0ff --- /dev/null +++ b/client/docs/PutDomainConfigResponse.md @@ -0,0 +1,13 @@ +# PutDomainConfigResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configuration** | **JSONValue** | | [optional] +**status** | **JSONValue** | | +**reason** | **String** | | [optional] +**code** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ReactFeedPostPublic200Response.md b/client/docs/ReactFeedPostPublic200Response.md deleted file mode 100644 index b85c547..0000000 --- a/client/docs/ReactFeedPostPublic200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# ReactFeedPostPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reactType** | **String** | | [optional] -**isUndo** | **Bool** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/RemoveCommentActionResponse.md b/client/docs/RemoveCommentActionResponse.md new file mode 100644 index 0000000..f298e64 --- /dev/null +++ b/client/docs/RemoveCommentActionResponse.md @@ -0,0 +1,11 @@ +# RemoveCommentActionResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | | +**action** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RemoveUserBadgeResponse.md b/client/docs/RemoveUserBadgeResponse.md new file mode 100644 index 0000000..be138eb --- /dev/null +++ b/client/docs/RemoveUserBadgeResponse.md @@ -0,0 +1,11 @@ +# RemoveUserBadgeResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**badges** | [CommentUserBadgeInfo] | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RenderEmailTemplate200Response.md b/client/docs/RenderEmailTemplate200Response.md deleted file mode 100644 index 137c068..0000000 --- a/client/docs/RenderEmailTemplate200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# RenderEmailTemplate200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**html** | **String** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/ResetUserNotifications200Response.md b/client/docs/ResetUserNotifications200Response.md deleted file mode 100644 index 379bc3b..0000000 --- a/client/docs/ResetUserNotifications200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# ResetUserNotifications200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**code** | **String** | | [optional] -**reason** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SaveComment200Response.md b/client/docs/SaveCommentsBulkResponse.md similarity index 97% rename from client/docs/SaveComment200Response.md rename to client/docs/SaveCommentsBulkResponse.md index f7557ea..84619c0 100644 --- a/client/docs/SaveComment200Response.md +++ b/client/docs/SaveCommentsBulkResponse.md @@ -1,4 +1,4 @@ -# SaveComment200Response +# SaveCommentsBulkResponse ## Properties Name | Type | Description | Notes diff --git a/client/docs/SearchUsers200Response.md b/client/docs/SearchUsers200Response.md deleted file mode 100644 index fba216b..0000000 --- a/client/docs/SearchUsers200Response.md +++ /dev/null @@ -1,19 +0,0 @@ -# SearchUsers200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**sections** | [UserSearchSectionResult] | | [optional] -**users** | [UserSearchResult] | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SearchUsersResult.md b/client/docs/SearchUsersResult.md new file mode 100644 index 0000000..aee7d53 --- /dev/null +++ b/client/docs/SearchUsersResult.md @@ -0,0 +1,12 @@ +# SearchUsersResult + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**sections** | [UserSearchSectionResult] | | [optional] +**users** | [UserSearchResult] | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentApprovedResponse.md b/client/docs/SetCommentApprovedResponse.md new file mode 100644 index 0000000..e2d7d43 --- /dev/null +++ b/client/docs/SetCommentApprovedResponse.md @@ -0,0 +1,11 @@ +# SetCommentApprovedResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**didResetFlaggedCount** | **Bool** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentText200Response.md b/client/docs/SetCommentText200Response.md deleted file mode 100644 index cef19ff..0000000 --- a/client/docs/SetCommentText200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# SetCommentText200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**comment** | [**SetCommentTextResult**](SetCommentTextResult.md) | | [optional] -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/SetCommentTextParams.md b/client/docs/SetCommentTextParams.md new file mode 100644 index 0000000..9e2d9a5 --- /dev/null +++ b/client/docs/SetCommentTextParams.md @@ -0,0 +1,10 @@ +# SetCommentTextParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**comment** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetCommentTextResponse.md b/client/docs/SetCommentTextResponse.md new file mode 100644 index 0000000..cebfce2 --- /dev/null +++ b/client/docs/SetCommentTextResponse.md @@ -0,0 +1,11 @@ +# SetCommentTextResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**newCommentTextHTML** | **String** | | +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/SetUserTrustFactorResponse.md b/client/docs/SetUserTrustFactorResponse.md new file mode 100644 index 0000000..728ecdd --- /dev/null +++ b/client/docs/SetUserTrustFactorResponse.md @@ -0,0 +1,11 @@ +# SetUserTrustFactorResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**previousManualTrustFactor** | **Double** | | [optional] +**status** | [**APIStatus**](APIStatus.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/TenantBadge.md b/client/docs/TenantBadge.md new file mode 100644 index 0000000..854121d --- /dev/null +++ b/client/docs/TenantBadge.md @@ -0,0 +1,30 @@ +# TenantBadge + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | +**tenantId** | **String** | | +**createdByUserId** | **String** | | +**createdAt** | **Date** | | +**enabled** | **Bool** | | +**urlId** | **String** | | [optional] +**type** | **Double** | | +**threshold** | **Double** | | +**uses** | **Double** | | +**name** | **String** | | +**description** | **String** | | +**displayLabel** | **String** | | +**displaySrc** | **String** | | +**backgroundColor** | **String** | | +**borderColor** | **String** | | +**textColor** | **String** | | +**cssClass** | **String** | | [optional] +**veteranUserThresholdMillis** | **Double** | | [optional] +**isAwaitingReprocess** | **Bool** | | +**isAwaitingDeletion** | **Bool** | | +**replacesBadgeId** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/TenantPackage.md b/client/docs/TenantPackage.md index 65029c7..965ce51 100644 --- a/client/docs/TenantPackage.md +++ b/client/docs/TenantPackage.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **name** | **String** | | **tenantId** | **String** | | **createdAt** | **Date** | | +**templateId** | **String** | | [optional] **monthlyCostUSD** | **Double** | | **yearlyCostUSD** | **Double** | | **monthlyStripePlanId** | **String** | | @@ -59,6 +60,10 @@ Name | Type | Description | Notes **flexSSOModeratorCostCents** | **Double** | | [optional] **flexSSOModeratorUnit** | **Double** | | [optional] **isSSOBillingMonthlyActiveUsers** | **Bool** | | [optional] +**hasAIAgents** | **Bool** | | [optional] +**maxAIAgents** | **Double** | | [optional] +**aiAgentDailyBudgetCents** | **Double** | | [optional] +**aiAgentMonthlyBudgetCents** | **Double** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/client/docs/UnBlockCommentPublic200Response.md b/client/docs/UnBlockCommentPublic200Response.md deleted file mode 100644 index 695caa0..0000000 --- a/client/docs/UnBlockCommentPublic200Response.md +++ /dev/null @@ -1,18 +0,0 @@ -# UnBlockCommentPublic200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**commentStatuses** | **[String: Bool]** | Construct a type with a set of properties K of type T | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdateUserBadge200Response.md b/client/docs/UpdateUserBadge200Response.md deleted file mode 100644 index 8454e6a..0000000 --- a/client/docs/UpdateUserBadge200Response.md +++ /dev/null @@ -1,17 +0,0 @@ -# UpdateUserBadge200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md new file mode 100644 index 0000000..b98028e --- /dev/null +++ b/client/docs/UpdateUserNotificationCommentSubscriptionStatusResponse.md @@ -0,0 +1,13 @@ +# UpdateUserNotificationCommentSubscriptionStatusResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matchedCount** | **Int64** | | [optional] +**modifiedCount** | **Int64** | | [optional] +**note** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md new file mode 100644 index 0000000..65ae4db --- /dev/null +++ b/client/docs/UpdateUserNotificationPageSubscriptionStatusResponse.md @@ -0,0 +1,13 @@ +# UpdateUserNotificationPageSubscriptionStatusResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matchedCount** | **Int64** | | [optional] +**modifiedCount** | **Int64** | | [optional] +**note** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/UpdateUserNotificationStatus200Response.md b/client/docs/UpdateUserNotificationStatus200Response.md deleted file mode 100644 index 36aeeb4..0000000 --- a/client/docs/UpdateUserNotificationStatus200Response.md +++ /dev/null @@ -1,20 +0,0 @@ -# UpdateUserNotificationStatus200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**matchedCount** | **Int64** | | [optional] -**modifiedCount** | **Int64** | | [optional] -**note** | **String** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/client/docs/UpdateUserNotificationStatusResponse.md b/client/docs/UpdateUserNotificationStatusResponse.md new file mode 100644 index 0000000..99da674 --- /dev/null +++ b/client/docs/UpdateUserNotificationStatusResponse.md @@ -0,0 +1,13 @@ +# UpdateUserNotificationStatusResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | [**APIStatus**](APIStatus.md) | | +**matchedCount** | **Int64** | | [optional] +**modifiedCount** | **Int64** | | [optional] +**note** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/User.md b/client/docs/User.md index 0ddfc3d..a2504fb 100644 --- a/client/docs/User.md +++ b/client/docs/User.md @@ -42,6 +42,7 @@ Name | Type | Description | Notes **digestEmailFrequency** | [**DigestEmailFrequency**](DigestEmailFrequency.md) | | [optional] **notificationFrequency** | **Double** | | [optional] **adminNotificationFrequency** | **Double** | | [optional] +**agentApprovalNotificationFrequency** | [**ImportedAgentApprovalNotificationFrequency**](ImportedAgentApprovalNotificationFrequency.md) | | [optional] **lastTenantNotificationSentDate** | **Date** | | [optional] **lastReplyNotificationSentDate** | **Date** | | [optional] **ignoredAddToMySiteMessages** | **Bool** | | [optional] diff --git a/client/docs/UsersListLocation.md b/client/docs/UsersListLocation.md new file mode 100644 index 0000000..7049486 --- /dev/null +++ b/client/docs/UsersListLocation.md @@ -0,0 +1,9 @@ +# UsersListLocation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/VoteComment200Response.md b/client/docs/VoteComment200Response.md deleted file mode 100644 index 7e189df..0000000 --- a/client/docs/VoteComment200Response.md +++ /dev/null @@ -1,21 +0,0 @@ -# VoteComment200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**APIStatus**](APIStatus.md) | | -**voteId** | **String** | | [optional] -**isVerified** | **Bool** | | [optional] -**user** | [**VoteResponseUser**](VoteResponseUser.md) | | [optional] -**editKey** | **String** | | [optional] -**reason** | **String** | | [optional] -**code** | **String** | | [optional] -**secondaryCode** | **String** | | [optional] -**bannedUntil** | **Int64** | | [optional] -**maxCharacterLength** | **Int** | | [optional] -**translatedError** | **String** | | [optional] -**customConfig** | [**CustomConfigParameters**](CustomConfigParameters.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/openapi.json b/openapi.json index a7ff250..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,128 +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", - "new-ticket", - "updated-ticket-state", - "updated-ticket-assignment", - "deleted-ticket" - ], - "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" }, @@ -1715,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" @@ -1739,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" - }, - "createdAt": { - "type": "integer", - "format": "int64" + "hasEmailWildcard": { + "type": "boolean" }, - "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" @@ -1793,3439 +2101,3000 @@ "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", - "nullable": true + "GetBannedUsersFromCommentResponse": { + "properties": { + "bannedUsers": { + "items": { + "$ref": "#/components/schemas/APIBannedUserWithMultiMatchInfo" }, - "before": { - "type": "string", - "nullable": true - } + "type": "array" }, - "required": [ - "after", - "before" - ], - "type": "object" - }, - "type": "object", - "description": "Construct a type with a set of properties K of type T" + "code": { + "type": "string", + "enum": [ + "not-found", + "not-logged-in" + ] + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "bannedUsers", + "status" + ], + "type": "object" }, - "CommentPositions": { - "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + "APIEmptyResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" }, - "LiveEvent": { + "BanUserUndoParams": { "properties": { - "type": { - "$ref": "#/components/schemas/LiveEventType" - }, - "timestamp": { - "type": "integer", - "format": "int64" - }, - "ts": { - "type": "integer", - "format": "int64" - }, - "broadcastId": { - "type": "string" - }, - "userId": { - "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" - }, - "isClosed": { - "type": "boolean" - }, - "uj": { - "items": { - "type": "string" - }, - "type": "array" - }, - "ul": { - "items": { - "type": "string" - }, - "type": "array" - }, - "sc": { - "type": "integer", - "format": "int32" - }, - "changes": { - "$ref": "#/components/schemas/Int32Map" + "changelog": { + "$ref": "#/components/schemas/APIBanUserChangeLog" } }, "required": [ - "type" + "changelog" ], "type": "object", "additionalProperties": false }, - "PublicAPIGetCommentTextResponse": { + "DeleteCommentAction": { + "type": "string", + "enum": [ + "already-deleted", + "hard-removed", + "anonymized" + ] + }, + "DeleteCommentResult": { "properties": { + "action": { + "$ref": "#/components/schemas/DeleteCommentAction" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "commentText": { - "type": "string" - }, - "sanitizedCommentText": { - "type": "string" } }, "required": [ - "status", - "commentText", - "sanitizedCommentText" + "action", + "status" ], "type": "object" }, - "SetCommentTextResult": { + "RemoveCommentActionResponse": { "properties": { - "approved": { - "type": "boolean" + "status": { + "type": "string" }, - "commentHTML": { + "action": { "type": "string" } }, "required": [ - "approved", - "commentHTML" + "status", + "action" ], "type": "object", "additionalProperties": false }, - "PublicAPISetCommentTextResponse": { + "SetCommentApprovedResponse": { "properties": { - "comment": { - "$ref": "#/components/schemas/SetCommentTextResult" + "didResetFlaggedCount": { + "type": "boolean" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "comment", "status" ], "type": "object" }, - "CommentUserMentionInfo": { + "ModerationAPICommentLog": { "properties": { - "id": { - "type": "string" + "date": { + "type": "string", + "format": "date-time" }, - "tag": { + "username": { "type": "string" }, - "rawTag": { + "actionName": { "type": "string" }, - "type": { - "type": "string", - "enum": [ - "user", - "sso" - ] - }, - "sent": { - "type": "boolean" + "messageHTML": { + "type": "string" } }, "required": [ - "id", - "tag" + "date", + "actionName", + "messageHTML" ], "type": "object", "additionalProperties": false }, - "CommentUserHashTagInfo": { + "ModerationAPIGetLogsResponse": { "properties": { - "id": { - "type": "string" - }, - "tag": { - "type": "string" - }, - "url": { - "type": "string", - "nullable": true + "logs": { + "items": { + "$ref": "#/components/schemas/ModerationAPICommentLog" + }, + "type": "array" }, - "retain": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "id", - "tag", - "url" + "logs", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CommentTextUpdateRequest": { + "ModerationAPICommentResponse": { "properties": { "comment": { - "type": "string" + "$ref": "#/components/schemas/ModerationAPIComment" }, - "mentions": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "comment", + "status" + ], + "type": "object" + }, + "ModerationAPIChildCommentsResponse": { + "properties": { + "comments": { "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" + "$ref": "#/components/schemas/ModerationAPIComment" }, "type": "array" }, - "hashTags": { + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "comments", + "status" + ], + "type": "object" + }, + "CommentsByIdsParams": { + "properties": { + "ids": { "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" + "type": "string" }, "type": "array" } }, + "required": [ + "ids" + ], + "type": "object", + "additionalProperties": false + }, + "GetCommentTextResponse": { + "properties": { + "comment": { + "type": "string", + "nullable": true + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "SetCommentTextResponse": { + "properties": { + "newCommentTextHTML": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "newCommentTextHTML", + "status" + ], + "type": "object" + }, + "SetCommentTextParams": { + "properties": { + "comment": { + "type": "string" + } + }, "required": [ "comment" ], "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" + "AdjustVotesResponse": { + "properties": { + "status": { + "type": "string" + }, + "newCommentVotes": { + "type": "integer", + "format": "int32" + } + }, + "required": [ + "status", + "newCommentVotes" + ], + "type": "object", + "additionalProperties": false + }, + "AdjustCommentVotesParams": { + "properties": { + "adjustVoteAmount": { + "type": "number", + "format": "double" + } + }, + "required": [ + "adjustVoteAmount" + ], + "type": "object", + "additionalProperties": false + }, + "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" + "tenantId", + "createdByUserId", + "createdAt", + "enabled", + "type", + "threshold", + "uses", + "name", + "description", + "displayLabel", + "displaySrc", + "backgroundColor", + "borderColor", + "textColor", + "isAwaitingReprocess", + "isAwaitingDeletion" ], "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_": { + "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" } - ] - }, - "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" + "required": [ + "status" + ], + "type": "object" }, - "CommentData": { + "RemoveUserBadgeResponse": { "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": { + "badges": { "items": { - "type": "string" + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, "type": "array" }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" - }, - "tos": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "DeletedCommentResultComment": { + "GetUserTrustFactorResponse": { "properties": { - "isDeleted": { - "type": "boolean" - }, - "commentHTML": { - "type": "string" + "manualTrustFactor": { + "type": "number", + "format": "double" }, - "commenterName": { - "type": "string" + "autoTrustFactor": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentHTML", - "commenterName" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "PublicAPIDeleteCommentResponse": { + "SetUserTrustFactorResponse": { "properties": { - "comment": { - "$ref": "#/components/schemas/DeletedCommentResultComment" - }, - "hardRemoved": { - "type": "boolean" + "previousManualTrustFactor": { + "type": "number", + "format": "double" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "hardRemoved", "status" ], "type": "object" }, - "CheckBlockedCommentsResponse": { + "GetUserInternalProfileResponse": { "properties": { - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "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": "object" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentStatuses", + "profile", "status" ], "type": "object" }, - "VoteResponseUser": { + "GetBannedUsersCountResponse": { "properties": { - "sessionId": { - "type": "string", - "nullable": true + "totalCount": { + "type": "number", + "format": "double" + }, + "status": { + "type": "string" } }, - "type": "object", - "additionalProperties": false + "required": [ + "totalCount", + "status" + ], + "type": "object" }, - "VoteResponse": { + "GifSearchResponse": { "properties": { - "status": { - "anyOf": [ - { - "$ref": "#/components/schemas/APIStatus" - }, - { - "type": "string", - "enum": [ - "pending-verification" + "images": { + "items": { + "items": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } ] - } - ] - }, - "voteId": { - "type": "string" - }, - "isVerified": { - "type": "boolean" - }, - "user": { - "$ref": "#/components/schemas/VoteResponseUser" + }, + "type": "array" + }, + "type": "array" }, - "editKey": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "images", "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "VoteBodyParams": { + "GifSearchInternalError": { "properties": { - "commenterEmail": { - "type": "string", - "nullable": true - }, - "commenterName": { - "type": "string", - "nullable": true - }, - "voteDir": { - "type": "string", - "enum": [ - "up", - "down" - ] + "code": { + "type": "string" }, - "url": { - "type": "string", - "nullable": true - } - }, - "required": [ - "commenterEmail", - "commenterName", - "voteDir", - "url" - ], - "type": "object", - "additionalProperties": false - }, - "VoteDeleteResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "wasPendingVote": { - "type": "boolean" + "status": { + "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "code", "status" ], - "type": "object", - "additionalProperties": false - }, - "GetCommentVoteUserNamesSuccessResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "voteUserNames": { - "items": { - "type": "string" - }, - "type": "array" - }, - "hasMore": { - "type": "boolean" - } - }, - "required": [ - "status", - "voteUserNames", - "hasMore" - ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ChangeCommentPinStatusResponse": { + "GifGetLargeResponse": { "properties": { - "commentPositions": { - "$ref": "#/components/schemas/CommentPositions" + "src": { + "type": "string" }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ - "commentPositions", + "src", "status" ], "type": "object" }, - "BlockSuccess": { + "FeedPostMediaItemAsset": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "w": { + "type": "integer", + "format": "int32" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "h": { + "type": "integer", + "format": "int32" + }, + "src": { + "type": "string" } }, "required": [ - "status", - "commentStatuses" + "w", + "h", + "src" ], "type": "object", "additionalProperties": false }, - "PublicBlockFromCommentParams": { + "FeedPostMediaItem": { "properties": { - "commentIds": { + "title": { + "type": "string" + }, + "linkUrl": { + "type": "string" + }, + "sizes": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPostMediaItemAsset" }, - "type": "array", - "nullable": true, - "description": "A list of comment ids to check if are blocked after performing the update." + "type": "array" } }, "required": [ - "commentIds" + "sizes" ], "type": "object", "additionalProperties": false }, - "UnblockSuccess": { + "FeedPostLink": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "text": { + "type": "string" }, - "commentStatuses": { - "$ref": "#/components/schemas/Record_string.boolean_" + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "url": { + "type": "string" } }, - "required": [ - "status", - "commentStatuses" - ], "type": "object", "additionalProperties": false }, - "APIUserSubscription": { + "Int32Map": { + "properties": {}, + "additionalProperties": { + "type": "integer", + "format": "int32" + }, + "type": "object" + }, + "FeedPost": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "pageTitle": { + "_id": { "type": "string" }, - "url": { + "tenantId": { "type": "string" }, - "urlId": { + "title": { "type": "string" }, - "anonUserId": { + "fromUserId": { "type": "string" }, - "userId": { - "type": "string" + "fromUserDisplayName": { + "type": "string", + "nullable": true }, - "id": { - "type": "string" - } - }, - "required": [ - "createdAt", - "urlId", - "id" - ], - "type": "object" - }, - "GetSubscriptionsAPIResponse": { - "properties": { - "reason": { - "type": "string" + "fromUserAvatar": { + "type": "string", + "nullable": true }, - "code": { + "fromIpHash": { "type": "string" }, - "subscriptions": { + "tags": { "items": { - "$ref": "#/components/schemas/APIUserSubscription" + "type": "string" }, "type": "array" }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateSubscriptionAPIResponse": { - "properties": { - "reason": { - "type": "string" + "weight": { + "type": "number", + "format": "double" }, - "code": { + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + }, + "contentHTML": { "type": "string" }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" }, - "status": { - "type": "string" + "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": [ - "status" + "_id", + "tenantId", + "createdAt" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "CreateAPIUserSubscriptionData": { + "UserSessionInfo": { "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "pageTitle": { + "id": { "type": "string" }, - "url": { - "type": "string" + "authorized": { + "type": "boolean" }, - "urlId": { - "type": "string" + "avatarSrc": { + "type": "string", + "nullable": true }, - "anonUserId": { - "type": "string" + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" }, - "userId": { - "type": "string" - } - }, - "required": [ - "urlId" - ], - "type": "object" - }, - "UpdateSubscriptionAPIResponse": { - "properties": { - "reason": { + "displayLabel": { "type": "string" }, - "code": { - "type": "string" - }, - "subscription": { - "$ref": "#/components/schemas/APIUserSubscription" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "UpdateAPIUserSubscriptionData": { - "properties": { - "notificationFrequency": { - "type": "number", - "format": "double" - } - }, - "type": "object" - }, - "DeleteSubscriptionAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "APISSOUser": { - "properties": { - "id": { - "type": "string" - }, - "username": { - "type": "string" - }, - "websiteUrl": { + "displayName": { "type": "string" }, "email": { - "type": "string" - }, - "signUpDate": { - "type": "integer", - "format": "int64" - }, - "createdFromUrlId": { - "type": "string" - }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "avatarSrc": { - "type": "string" - }, - "optedInNotifications": { - "type": "boolean" - }, - "optedInSubscriptionNotifications": { - "type": "boolean" - }, - "displayLabel": { - "type": "string" - }, - "displayName": { - "type": "string" + "type": "string", + "nullable": true }, - "isAccountOwner": { - "type": "boolean" + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "isAdminAdmin": { + "hasBlockedUsers": { "type": "boolean" }, - "isCommentModeratorAdmin": { + "isAnonSession": { "type": "boolean" }, - "isProfileActivityPrivate": { + "needsTOS": { "type": "boolean" }, - "isProfileCommentsPrivate": { - "type": "boolean" + "sessionId": { + "type": "string", + "nullable": true }, - "isProfileDMDisabled": { - "type": "boolean" + "username": { + "type": "string" }, - "hasBlockedUsers": { - "type": "boolean" + "websiteUrl": { + "type": "string" + } + }, + "type": "object", + "additionalProperties": false + }, + "GetPublicFeedPostsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "groupIds": { + "feedPosts": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPost" }, "type": "array" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true } }, "required": [ - "id", - "username", - "websiteUrl", - "email", - "signUpDate", - "createdFromUrlId", - "loginCount", - "avatarSrc", - "optedInNotifications", - "optedInSubscriptionNotifications", - "displayLabel", - "displayName" + "status", + "feedPosts" ], "type": "object", "additionalProperties": false }, - "GetSSOUserByIdAPIResponse": { + "TenantIdWS": { + "type": "string" + }, + "UserIdWS": { + "type": "string" + }, + "UrlIdWS": { + "type": "string" + }, + "UserPresenceData": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" + "urlIdWS": { + "$ref": "#/components/schemas/UrlIdWS" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + "userIdWS": { + "$ref": "#/components/schemas/UserIdWS" }, - "status": { - "type": "string" + "tenantIdWS": { + "$ref": "#/components/schemas/TenantIdWS" } }, - "required": [ - "status" - ], "type": "object" }, - "GetSSOUserByEmailAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" + "PublicFeedPostsResponse": { + "allOf": [ + { + "properties": { + "myReacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" + }, + "type": "object" + } + }, + "type": "object" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" + { + "$ref": "#/components/schemas/GetPublicFeedPostsResponse" }, - "status": { - "type": "string" + { + "$ref": "#/components/schemas/UserPresenceData" } - }, - "required": [ - "status" - ], - "type": "object" + ] }, - "DeleteSSOUserAPIResponse": { + "ReactFeedPostResponse": { "properties": { - "reason": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "code": { + "reactType": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { - "type": "string" + "isUndo": { + "type": "boolean" } }, "required": [ - "status" + "status", + "reactType", + "isUndo" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PatchSSOUserAPIResponse": { + "ReactBodyParams": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { + "reactType": { "type": "string" } }, - "required": [ - "status" - ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "UpdateAPISSOUserData": { + "UserReactsResponse": { "properties": { - "groupIds": { - "items": { - "type": "string" - }, - "type": "array" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "hasBlockedUsers": { - "type": "boolean" - }, - "isProfileDMDisabled": { - "type": "boolean" - }, - "isProfileCommentsPrivate": { - "type": "boolean" - }, - "isProfileActivityPrivate": { - "type": "boolean" - }, - "isCommentModeratorAdmin": { - "type": "boolean" - }, - "isAdminAdmin": { - "type": "boolean" - }, - "isAccountOwner": { - "type": "boolean" - }, - "displayName": { - "type": "string" - }, - "displayLabel": { - "type": "string" - }, - "optedInSubscriptionNotifications": { - "type": "boolean" - }, - "optedInNotifications": { - "type": "boolean" - }, - "avatarSrc": { - "type": "string" - }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "createdFromUrlId": { - "type": "string" - }, - "signUpDate": { - "type": "integer", - "format": "int64" - }, - "email": { - "type": "string" - }, - "websiteUrl": { - "type": "string" - }, - "username": { - "type": "string" - }, - "id": { - "type": "string" + "reacts": { + "properties": {}, + "additionalProperties": { + "properties": {}, + "additionalProperties": { + "type": "boolean" + }, + "type": "object" + }, + "type": "object" } }, - "type": "object" + "required": [ + "status", + "reacts" + ], + "type": "object", + "additionalProperties": false }, - "PutSSOUserAPIResponse": { + "CreateFeedPostResponse": { "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "user": { - "allOf": [ - { - "$ref": "#/components/schemas/APISSOUser" - } - ], - "nullable": true - }, "status": { - "type": "string" + "$ref": "#/components/schemas/APIStatus" + }, + "feedPost": { + "$ref": "#/components/schemas/FeedPost" } }, "required": [ - "status" + "status", + "feedPost" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "AddSSOUserAPIResponse": { + "CreateFeedPostParams": { "properties": { - "reason": { + "title": { "type": "string" }, - "code": { + "contentHTML": { "type": "string" }, - "user": { - "$ref": "#/components/schemas/APISSOUser" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateAPISSOUserData": { - "properties": { - "groupIds": { + "media": { "items": { - "type": "string" + "$ref": "#/components/schemas/FeedPostMediaItem" }, "type": "array" }, - "hasBlockedUsers": { - "type": "boolean" - }, - "isProfileDMDisabled": { - "type": "boolean" - }, - "isProfileCommentsPrivate": { - "type": "boolean" - }, - "isProfileActivityPrivate": { - "type": "boolean" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "fromUserId": { + "type": "string" }, - "isAdminAdmin": { - "type": "boolean" + "fromUserDisplayName": { + "type": "string" }, - "isAccountOwner": { - "type": "boolean" + "tags": { + "items": { + "type": "string" + }, + "type": "array" }, - "displayName": { + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "type": "object", + "additionalProperties": false + }, + "UpdateFeedPostParams": { + "properties": { + "title": { "type": "string" }, - "displayLabel": { + "contentHTML": { "type": "string" }, - "optedInSubscriptionNotifications": { - "type": "boolean" + "media": { + "items": { + "$ref": "#/components/schemas/FeedPostMediaItem" + }, + "type": "array" }, - "optedInNotifications": { - "type": "boolean" + "links": { + "items": { + "$ref": "#/components/schemas/FeedPostLink" + }, + "type": "array" }, - "avatarSrc": { - "type": "string" + "tags": { + "items": { + "type": "string" + }, + "type": "array" }, - "loginCount": { + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "type": "object", + "additionalProperties": false + }, + "FeedPostStats": { + "properties": { + "reacts": { + "$ref": "#/components/schemas/Int32Map" + }, + "commentCount": { "type": "integer", "format": "int32" + } + }, + "type": "object", + "additionalProperties": false + }, + "FeedPostsStatsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "createdFromUrlId": { + "stats": { + "properties": {}, + "additionalProperties": { + "$ref": "#/components/schemas/FeedPostStats" + }, + "type": "object" + } + }, + "required": [ + "status", + "stats" + ], + "type": "object", + "additionalProperties": false + }, + "EventLogEntry": { + "properties": { + "_id": { "type": "string" }, - "signUpDate": { - "type": "integer", - "format": "int64" + "createdAt": { + "type": "string", + "format": "date-time" }, - "email": { + "tenantId": { "type": "string" }, - "websiteUrl": { + "urlId": { "type": "string" }, - "username": { + "broadcastId": { "type": "string" }, - "id": { + "data": { "type": "string" } }, "required": [ - "email", - "username", - "id" + "_id", + "createdAt", + "tenantId", + "urlId", + "broadcastId", + "data" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "APIPage": { + "GetEventLogResponse": { "properties": { - "isClosed": { - "type": "boolean" - }, - "accessibleByGroupIds": { + "events": { "items": { - "type": "string" + "$ref": "#/components/schemas/EventLogEntry" }, "type": "array" }, - "rootCommentCount": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "events", + "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", + "new-ticket", + "updated-ticket-state", + "updated-ticket-assignment", + "deleted-ticket", + "page-react", + "question-result" + ], + "type": "string" + }, + "TenantId": { + "type": "string" + }, + "UserNotification": { + "properties": { + "_id": { + "type": "string" }, - "commentCount": { - "type": "integer", - "format": "int64" + "tenantId": { + "$ref": "#/components/schemas/TenantId" }, - "createdAt": { + "userId": { "type": "string", - "format": "date-time" + "nullable": true }, - "title": { + "anonUserId": { + "type": "string", + "nullable": true + }, + "urlId": { "type": "string" }, "url": { "type": "string" }, - "urlId": { - "type": "string" + "pageTitle": { + "type": "string", + "nullable": true }, - "id": { - "type": "string" - } - }, - "required": [ - "rootCommentCount", - "commentCount", - "createdAt", - "title", - "urlId", - "id" - ], - "type": "object" - }, - "GetPagesAPIResponse": { - "properties": { - "reason": { - "type": "string" + "relatedObjectType": { + "$ref": "#/components/schemas/NotificationObjectType" }, - "code": { + "relatedObjectId": { "type": "string" }, - "pages": { + "viewed": { + "type": "boolean" + }, + "isUnreadMessage": { + "type": "boolean" + }, + "sent": { + "type": "boolean" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "type": { + "$ref": "#/components/schemas/NotificationType" + }, + "fromCommentId": { + "type": "string", + "nullable": true + }, + "fromVoteId": { + "type": "string", + "nullable": true + }, + "fromUserName": { + "type": "string", + "nullable": true + }, + "fromUserId": { + "type": "string", + "nullable": true + }, + "fromUserAvatarSrc": { + "type": "string", + "nullable": true + }, + "optedOut": { + "type": "boolean" + }, + "count": { + "type": "integer", + "format": "int64" + }, + "relatedIds": { "items": { - "$ref": "#/components/schemas/APIPage" + "type": "string" }, "type": "array" }, - "status": { - "type": "string" + "fromUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "fromUserNames": { + "items": { + "type": "string" + }, + "type": "array" } }, "required": [ - "status" + "_id", + "tenantId", + "urlId", + "url", + "relatedObjectType", + "relatedObjectId", + "viewed", + "isUnreadMessage", + "sent", + "createdAt", + "type", + "optedOut" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "GetPageByURLIdAPIResponse": { + "PubSubVote": { "properties": { - "reason": { + "_id": { "type": "string" }, - "code": { + "tenantId": { "type": "string" }, - "page": { - "$ref": "#/components/schemas/APIPage" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "AddPageAPIResponse": { - "properties": { - "reason": { + "urlId": { "type": "string" }, - "code": { + "urlIdRaw": { "type": "string" }, - "page": { - "$ref": "#/components/schemas/APIPage" - }, - "status": { + "commentId": { "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "CreateAPIPageData": { - "properties": { - "accessibleByGroupIds": { - "items": { - "type": "string" - }, - "type": "array" }, - "rootCommentCount": { + "userId": { + "type": "string", + "nullable": true + }, + "direction": { "type": "integer", - "format": "int64" + "format": "int32" }, - "commentCount": { + "createdAt": { "type": "integer", "format": "int64" }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" + "verificationId": { + "type": "string", + "nullable": true } }, "required": [ - "title", - "url", - "urlId" + "_id", + "tenantId", + "urlId", + "urlIdRaw", + "commentId", + "direction", + "createdAt", + "verificationId" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "PatchPageAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "commentsUpdated": { - "type": "integer", - "format": "int64" - }, - "page": { - "$ref": "#/components/schemas/APIPage" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" - }, - "UpdateAPIPageData": { - "properties": { - "isClosed": { - "type": "boolean" - }, - "accessibleByGroupIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "title": { - "type": "string" - }, - "url": { - "type": "string" - }, - "urlId": { - "type": "string" - } - }, - "type": "object" - }, - "DeletePageAPIResponse": { - "properties": { - "reason": { - "type": "string" - }, - "code": { - "type": "string" - }, - "status": { - "type": "string" - } - }, - "required": [ - "status" - ], - "type": "object" + "FDomain": { + "type": "string" }, - "PublicVote": { + "PubSubCommentBase": { "properties": { - "id": { - "type": "string" - }, - "urlId": { + "_id": { "type": "string" }, - "commentId": { + "tenantId": { "type": "string" }, "userId": { - "type": "string" + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "direction": { + "urlId": { "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" - }, - "type": "array" - } - }, - "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" - }, - "type": "array" - }, - "pendingVotes": { - "items": { - "$ref": "#/components/schemas/PublicVote" - }, - "type": "array" - } - }, - "required": [ - "status", - "appliedAuthorizedVotes", - "appliedAnonymousVotes", - "pendingVotes" - ], - "type": "object", - "additionalProperties": false - }, - "DigestEmailFrequency": { - "enum": [ - -1, - 0, - 1, - 2 - ], - "type": "integer" - }, - "User": { - "properties": { - "_id": { + "commenterName": { "type": "string" }, - "tenantId": { + "commenterLink": { "type": "string", "nullable": true }, - "username": { + "commentHTML": { "type": "string" }, - "displayName": { + "comment": { "type": "string" }, - "websiteUrl": { + "parentId": { "type": "string", "nullable": true }, - "email": { - "type": "string", + "votes": { + "type": "integer", + "format": "int32", "nullable": true }, - "pendingEmail": { - "type": "string" - }, - "backupEmail": { - "type": "string" - }, - "pendingBackupEmail": { - "type": "string" - }, - "signUpDate": { + "votesUp": { "type": "integer", - "format": "int64" - }, - "createdFromUrlId": { - "type": "string", + "format": "int32", "nullable": true }, - "createdFromTenantId": { - "type": "string", + "votesDown": { + "type": "integer", + "format": "int32", "nullable": true }, - "createdFromIpHashed": { - "type": "string" - }, "verified": { "type": "boolean" }, - "loginId": { - "type": "string" - }, - "loginIdDate": { - "type": "integer", - "format": "int64" - }, - "loginCount": { - "type": "integer", - "format": "int32" - }, - "optedInNotifications": { - "type": "boolean" - }, - "optedInTenantNotifications": { - "type": "boolean" - }, - "hideAccountCode": { - "type": "boolean" - }, "avatarSrc": { "type": "string", "nullable": true }, - "isFastCommentsHelpRequestAdmin": { + "hasImages": { "type": "boolean" }, - "isHelpRequestAdmin": { + "hasLinks": { "type": "boolean" }, - "isAccountOwner": { + "isByAdmin": { "type": "boolean" }, - "isAdminAdmin": { + "isByModerator": { "type": "boolean" }, - "isBillingAdmin": { - "type": "boolean" + "isPinned": { + "type": "boolean", + "nullable": true }, - "isAnalyticsAdmin": { - "type": "boolean" + "isLocked": { + "type": "boolean", + "nullable": true }, - "isCustomizationAdmin": { - "type": "boolean" + "displayLabel": { + "type": "string", + "nullable": true }, - "isManageDataAdmin": { - "type": "boolean" + "rating": { + "type": "number", + "format": "double", + "nullable": true }, - "isCommentModeratorAdmin": { + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array", + "nullable": true + }, + "viewCount": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "isDeleted": { "type": "boolean" }, - "isAPIAdmin": { + "isDeletedUser": { "type": "boolean" }, - "isSiteAdmin": { + "isSpam": { "type": "boolean" }, - "moderatorIds": { + "anonUserId": { + "type": "string", + "nullable": true + }, + "feedbackIds": { "items": { "type": "string" }, "type": "array" }, - "isImpersonator": { - "type": "boolean" + "flagCount": { + "type": "integer", + "format": "int32", + "nullable": true }, - "isCouponManager": { - "type": "boolean" + "domain": { + "allOf": [ + { + "$ref": "#/components/schemas/FDomain" + } + ], + "nullable": true }, - "locale": { + "url": { "type": "string" }, - "digestEmailFrequency": { - "$ref": "#/components/schemas/DigestEmailFrequency" - }, - "notificationFrequency": { - "type": "number", - "format": "double" - }, - "adminNotificationFrequency": { - "type": "number", - "format": "double" - }, - "lastTenantNotificationSentDate": { - "type": "string", - "format": "date-time" - }, - "lastReplyNotificationSentDate": { + "pageTitle": { "type": "string", - "format": "date-time" - }, - "ignoredAddToMySiteMessages": { - "type": "boolean" + "nullable": true }, - "lastLoginDate": { + "expireAt": { "type": "string", - "format": "date-time" - }, - "displayLabel": { - "type": "string" + "format": "date-time", + "nullable": true }, - "isProfileActivityPrivate": { + "reviewed": { "type": "boolean" }, - "isProfileCommentsPrivate": { + "hasCode": { "type": "boolean" }, - "isProfileDMDisabled": { + "approved": { "type": "boolean" }, - "profileCommentApprovalMode": { - "type": "number", - "format": "double" - }, - "karma": { - "type": "number", - "format": "double" - }, - "passwordHash": { - "type": "string" - }, - "averageTicketAckTimeMS": { - "type": "number", - "format": "double", + "locale": { + "type": "string", "nullable": true }, - "hasBlockedUsers": { + "isBannedUser": { "type": "boolean" }, - "bio": { - "type": "string" - }, - "headerBackgroundSrc": { - "type": "string" - }, - "countryCode": { - "type": "string" - }, - "countryFlag": { - "type": "string" - }, - "socialLinks": { + "groupIds": { "items": { "type": "string" }, - "type": "array" - }, - "hasTwoFactor": { - "type": "boolean" - }, - "isEmailSuppressed": { - "type": "boolean" + "type": "array", + "nullable": true } }, "required": [ "_id", - "username", - "email", - "signUpDate", - "createdFromTenantId", - "createdFromIpHashed", + "tenantId", + "urlId", + "commenterName", + "commentHTML", + "comment", "verified", - "loginId", - "loginIdDate" + "url", + "approved", + "locale" ], "type": "object", "additionalProperties": false }, - "GetUserResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "PubSubComment": { + "allOf": [ + { + "$ref": "#/components/schemas/PubSubCommentBase" }, - "user": { - "$ref": "#/components/schemas/User" + { + "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 + } + }, + "required": [ + "after", + "before" + ], + "type": "object" }, - "required": [ - "status", - "user" - ], "type": "object", - "additionalProperties": false + "description": "Construct a type with a set of properties K of type T" }, - "UserBadge": { + "CommentPositions": { + "$ref": "#/components/schemas/Record_string._before-string-or-null--after-string-or-null__" + }, + "LiveEvent": { "properties": { - "_id": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "badgeId": { - "type": "string" - }, - "fromTenantId": { - "type": "string" - }, - "createdAt": { - "type": "string", - "format": "date-time" - }, "type": { + "$ref": "#/components/schemas/LiveEventType" + }, + "timestamp": { "type": "integer", - "format": "int32" + "format": "int64" }, - "threshold": { + "ts": { "type": "integer", "format": "int64" }, - "description": { + "broadcastId": { "type": "string" }, - "displayLabel": { + "userId": { "type": "string" }, - "displaySrc": { - "type": "string", - "nullable": true - }, - "backgroundColor": { - "type": "string", - "nullable": true + "badges": { + "items": { + "$ref": "#/components/schemas/CommentUserBadgeInfo" + }, + "type": "array" }, - "borderColor": { - "type": "string", - "nullable": true + "notification": { + "$ref": "#/components/schemas/UserNotification" }, - "textColor": { - "type": "string", - "nullable": true + "vote": { + "$ref": "#/components/schemas/PubSubVote" }, - "cssClass": { - "type": "string", - "nullable": true + "comment": { + "$ref": "#/components/schemas/PubSubComment" }, - "veteranUserThresholdMillis": { - "type": "integer", - "format": "int64" + "feedPost": { + "$ref": "#/components/schemas/FeedPost" }, - "displayedOnComments": { - "type": "boolean" - }, - "receivedAt": { - "type": "string", - "format": "date-time" + "extraInfo": { + "properties": { + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" + } + }, + "type": "object" }, - "order": { - "type": "integer", - "format": "int32" + "config": { + "additionalProperties": false, + "type": "object" }, - "urlId": { - "type": "string", - "nullable": true - } - }, - "required": [ - "_id", - "userId", - "badgeId", - "fromTenantId", - "createdAt", - "type", - "threshold", - "description", - "displayLabel", - "veteranUserThresholdMillis", - "displayedOnComments", - "receivedAt" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetUserBadgeResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isClosed": { + "type": "boolean" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" - } - }, - "required": [ - "status", - "userBadge" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetUserBadgesResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "uj": { + "items": { + "type": "string" + }, + "type": "array" }, - "userBadges": { + "ul": { "items": { - "$ref": "#/components/schemas/UserBadge" + "type": "string" }, "type": "array" + }, + "sc": { + "type": "integer", + "format": "int32" + }, + "changes": { + "$ref": "#/components/schemas/Int32Map" } }, "required": [ - "status", - "userBadges" + "type" ], "type": "object", "additionalProperties": false }, - "APICreateUserBadgeResponse": { + "PublicAPIGetCommentTextResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "userBadge": { - "$ref": "#/components/schemas/UserBadge" + "commentText": { + "type": "string" }, - "notes": { - "items": { - "type": "string" - }, - "type": "array" + "sanitizedCommentText": { + "type": "string" } }, "required": [ "status", - "userBadge" + "commentText", + "sanitizedCommentText" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateUserBadgeParams": { + "SetCommentTextResult": { "properties": { - "userId": { - "type": "string" + "approved": { + "type": "boolean" }, - "badgeId": { + "commentHTML": { "type": "string" - }, - "displayedOnComments": { - "type": "boolean" } }, "required": [ - "userId", - "badgeId" + "approved", + "commentHTML" ], "type": "object", "additionalProperties": false }, - "APIEmptySuccessResponse": { + "PublicAPISetCommentTextResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/SetCommentTextResult" + }, "status": { "$ref": "#/components/schemas/APIStatus" } }, "required": [ + "comment", "status" ], - "type": "object", - "additionalProperties": false - }, - "UpdateUserBadgeParams": { - "properties": { - "displayedOnComments": { - "type": "boolean" - } - }, - "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" + "type": "object" }, - "UserBadgeProgress": { + "CommentUserMentionInfo": { "properties": { - "_id": { - "type": "string" - }, - "tenantId": { + "id": { "type": "string" }, - "userId": { + "tag": { "type": "string" }, - "firstCommentId": { + "rawTag": { "type": "string" }, - "firstCommentDate": { + "type": { "type": "string", - "format": "date-time" - }, - "autoTrustFactor": { - "type": "number", - "format": "double" - }, - "manualTrustFactor": { - "type": "number", - "format": "double" - }, - "progress": { - "$ref": "#/components/schemas/Record_string.number_" + "enum": [ + "user", + "sso" + ] }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" + "sent": { + "type": "boolean" } }, "required": [ - "_id", - "tenantId", - "userId", - "firstCommentId", - "firstCommentDate", - "progress" + "id", + "tag" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeProgressResponse": { + "CommentUserHashTagInfo": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "id": { + "type": "string" }, - "userBadgeProgress": { - "$ref": "#/components/schemas/UserBadgeProgress" + "tag": { + "type": "string" + }, + "url": { + "type": "string", + "nullable": true + }, + "retain": { + "type": "boolean" } }, "required": [ - "status", - "userBadgeProgress" + "id", + "tag", + "url" ], "type": "object", "additionalProperties": false }, - "APIGetUserBadgeProgressListResponse": { + "CommentTextUpdateRequest": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "comment": { + "type": "string" }, - "userBadgeProgresses": { + "mentions": { "items": { - "$ref": "#/components/schemas/UserBadgeProgress" + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" + }, + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" }, "type": "array" } }, "required": [ - "status", - "userBadgeProgresses" + "comment" ], "type": "object", "additionalProperties": false }, - "APITicket": { - "properties": { - "_id": { - "type": "string" - }, - "urlId": { - "type": "string" - }, - "userId": { - "type": "string" - }, - "managedByTenantId": { - "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_" }, - "assignedUserIds": { - "items": { - "type": "string" + { + "properties": { + "moderatingTenantIds": { + "items": { + "type": "string" + }, + "type": "array" + } }, - "type": "array" - }, - "subject": { - "type": "string" - }, - "createdAt": { - "type": "string" - }, - "state": { - "type": "integer", - "format": "int32" - }, - "fileCount": { - "type": "integer", - "format": "int32" + "type": "object" } - }, - "required": [ - "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount" - ], - "type": "object", - "additionalProperties": false + ] }, - "GetTicketsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tickets": { - "items": { - "$ref": "#/components/schemas/APITicket" + "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" - } - }, - "required": [ - "status", - "tickets" - ], - "type": "object", - "additionalProperties": false - }, - "CreateTicketResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "type": "object" }, - "ticket": { - "$ref": "#/components/schemas/APITicket" - } - }, - "required": [ - "status", - "ticket" - ], - "type": "object", - "additionalProperties": false - }, - "CreateTicketBody": { - "properties": { - "subject": { - "type": "string" + { + "$ref": "#/components/schemas/PublicCommentBase" } - }, - "required": [ - "subject" - ], - "type": "object", - "additionalProperties": false + ] }, - "APITicketFile": { + "PublicCommentBase": { "properties": { - "id": { + "_id": { "type": "string" }, - "s3Key": { - "type": "string" + "userId": { + "allOf": [ + { + "$ref": "#/components/schemas/UserId" + } + ], + "nullable": true }, - "originalFileName": { + "commenterName": { "type": "string" }, - "sizeBytes": { - "type": "integer", - "format": "int32" + "commenterLink": { + "type": "string", + "nullable": true }, - "contentType": { + "commentHTML": { "type": "string" }, - "uploadedByUserId": { - "type": "string" + "parentId": { + "type": "string", + "nullable": true }, - "uploadedAt": { - "type": "string" + "date": { + "type": "string", + "format": "date-time", + "nullable": true }, - "url": { - "type": "string" + "votes": { + "type": "integer", + "format": "int32", + "nullable": true }, - "expiresAt": { - "type": "string" + "votesUp": { + "type": "integer", + "format": "int32", + "nullable": true }, - "expired": { + "votesDown": { + "type": "integer", + "format": "int32", + "nullable": true + }, + "verified": { "type": "boolean" - } - }, - "required": [ - "id", - "s3Key", - "originalFileName", - "sizeBytes", - "contentType", - "uploadedByUserId", - "uploadedAt", - "url", - "expiresAt" - ], - "type": "object", - "additionalProperties": false - }, - "APITicketDetail": { - "properties": { - "_id": { - "type": "string" }, - "urlId": { - "type": "string" + "avatarSrc": { + "type": "string", + "nullable": true }, - "userId": { - "type": "string" + "hasImages": { + "type": "boolean" }, - "managedByTenantId": { - "type": "string" + "isByAdmin": { + "type": "boolean" }, - "assignedUserIds": { - "items": { - "type": "string" - }, - "type": "array" + "isByModerator": { + "type": "boolean" }, - "subject": { - "type": "string" + "isPinned": { + "type": "boolean", + "nullable": true }, - "createdAt": { - "type": "string" + "isLocked": { + "type": "boolean", + "nullable": true }, - "state": { - "type": "integer", - "format": "int32" + "displayLabel": { + "type": "string", + "nullable": true }, - "fileCount": { - "type": "integer", - "format": "int32" + "rating": { + "type": "number", + "format": "double", + "nullable": true }, - "files": { + "badges": { "items": { - "$ref": "#/components/schemas/APITicketFile" + "$ref": "#/components/schemas/CommentUserBadgeInfo" }, - "type": "array" + "type": "array", + "nullable": true }, - "reopenedAt": { - "type": "string", + "viewCount": { + "type": "integer", + "format": "int64", "nullable": true }, - "resolvedAt": { + "isDeleted": { + "type": "boolean" + }, + "isDeletedUser": { + "type": "boolean" + }, + "isSpam": { + "type": "boolean" + }, + "anonUserId": { "type": "string", "nullable": true }, - "ackAt": { - "type": "string", - "nullable": true + "feedbackIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "requiresVerification": { + "type": "boolean" + }, + "editKey": { + "type": "string" + }, + "approved": { + "type": "boolean" } }, "required": [ "_id", - "urlId", - "userId", - "managedByTenantId", - "assignedUserIds", - "subject", - "createdAt", - "state", - "fileCount", - "files" + "commenterName", + "commentHTML", + "date", + "verified" ], "type": "object", "additionalProperties": false }, - "GetTicketResponse": { + "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" + }, "status": { - "$ref": "#/components/schemas/APIStatus" + "type": "string" }, - "ticket": { - "$ref": "#/components/schemas/APITicketDetail" + "code": { + "type": "string" }, - "availableStates": { + "reason": { + "type": "string" + }, + "translatedWarning": { + "type": "string" + }, + "comments": { "items": { - "type": "number", - "format": "double" + "$ref": "#/components/schemas/PublicComment" }, "type": "array" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "urlIdClean": { + "type": "string" + }, + "lastGenDate": { + "type": "integer", + "format": "int64", + "nullable": true + }, + "includesPastPages": { + "type": "boolean" + }, + "isDemo": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false + }, + "commentCount": { + "type": "integer", + "format": "int32" + }, + "isSiteAdmin": { + "type": "boolean" + }, + "hasBillingIssue": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" + }, + "pageNumber": { + "type": "integer", + "format": "int32" + }, + "isWhiteLabeled": { + "type": "boolean" + }, + "isProd": { + "type": "boolean", + "enum": [ + false + ], + "nullable": false + }, + "isCrawler": { + "type": "boolean", + "enum": [ + true + ], + "nullable": false + }, + "notificationCount": { + "type": "integer", + "format": "int32" + }, + "hasMore": { + "type": "boolean" + }, + "isClosed": { + "type": "boolean" + }, + "presencePollState": { + "type": "integer", + "format": "int32" + }, + "customConfig": { + "$ref": "#/components/schemas/CustomConfigParameters" } }, "required": [ "status", - "ticket", - "availableStates" + "comments", + "user", + "pageNumber" ], "type": "object", "additionalProperties": false }, - "ChangeTicketStateResponse": { + "GetCommentsResponseWithPresence_PublicComment_": { + "allOf": [ + { + "$ref": "#/components/schemas/GetCommentsResponse_PublicComment_" + }, + { + "$ref": "#/components/schemas/UserPresenceData" + } + ] + }, + "SaveCommentResponseOptimized": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "ticket": { - "$ref": "#/components/schemas/APITicket" + "comment": { + "$ref": "#/components/schemas/PublicComment" + }, + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/UserSessionInfo" + } + ], + "nullable": true + }, + "moduleData": { + "$ref": "#/components/schemas/Record_string.any_" } }, "required": [ "status", - "ticket" + "comment", + "user" ], "type": "object", "additionalProperties": false }, - "ChangeTicketStateBody": { - "properties": { - "state": { - "type": "integer", - "format": "int32" + "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" + } + ] }, - "required": [ - "state" - ], "type": "object", - "additionalProperties": false - }, - "ImportedSiteType": { - "enum": [ - 0, - 1 - ], - "type": "integer" - }, - "SiteType": { - "$ref": "#/components/schemas/ImportedSiteType" + "description": "Construct a type with a set of properties K of type T" }, - "APIDomainConfiguration": { + "CommentData": { "properties": { - "id": { + "date": { + "type": "integer", + "format": "int64" + }, + "localDateString": { "type": "string" }, - "domain": { + "localDateHours": { + "type": "integer", + "format": "int32" + }, + "commenterName": { "type": "string" }, - "emailFromName": { + "commenterEmail": { "type": "string", "nullable": true }, - "emailFromEmail": { + "commenterLink": { "type": "string", "nullable": true }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "comment": { + "type": "string" }, - "wpSyncToken": { + "productId": { + "type": "integer", + "format": "int32" + }, + "userId": { "type": "string", "nullable": true }, - "wpSynced": { - "type": "boolean" - }, - "wpURL": { + "avatarSrc": { "type": "string", "nullable": true }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "autoAddedDate": { - "type": "string", - "format": "date-time" - }, - "siteType": { - "$ref": "#/components/schemas/SiteType" - }, - "logoSrc": { - "type": "string", - "nullable": true - }, - "logoSrc100px": { + "parentId": { "type": "string", "nullable": true }, - "footerUnsubscribeURL": { - "type": "string" - }, - "disableUnsubscribeLinks": { - "type": "boolean" - } - }, - "required": [ - "id", - "domain", - "createdAt" - ], - "type": "object", - "additionalProperties": false - }, - "BillingInfo": { - "properties": { - "name": { - "type": "string" - }, - "address": { - "type": "string" - }, - "city": { - "type": "string" - }, - "state": { - "type": "string" + "mentions": { + "items": { + "$ref": "#/components/schemas/CommentUserMentionInfo" + }, + "type": "array" }, - "zip": { - "type": "string" + "hashTags": { + "items": { + "$ref": "#/components/schemas/CommentUserHashTagInfo" + }, + "type": "array" }, - "country": { + "pageTitle": { "type": "string" }, - "currency": { - "type": "string", - "nullable": true, - "description": "Currency for invoices." - }, - "email": { - "type": "string", - "description": "Email for invoices." - } - }, - "required": [ - "name", - "address", - "city", - "state", - "zip", - "country" - ], - "type": "object", - "additionalProperties": false - }, - "APITenant": { - "properties": { - "id": { - "type": "string" + "isFromMyAccountPage": { + "type": "boolean" }, - "name": { + "url": { "type": "string" }, - "email": { + "urlId": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "meta": { + "additionalProperties": false, + "type": "object" }, - "packageId": { - "type": "string" + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "paymentFrequency": { + "rating": { "type": "number", "format": "double" }, - "billingInfoValid": { - "type": "boolean" - }, - "billingHandledExternally": { + "fromOfflineRestore": { "type": "boolean" }, - "createdBy": { - "type": "string" - }, - "isSetup": { - "type": "boolean" + "autoplayDelayMS": { + "type": "integer", + "format": "int64" }, - "domainConfiguration": { + "feedbackIds": { "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" + "type": "string" }, "type": "array" }, - "billingInfo": { - "$ref": "#/components/schemas/BillingInfo" - }, - "stripeCustomerId": { - "type": "string" - }, - "stripeSubscriptionId": { - "type": "string" - }, - "stripePlanId": { - "type": "string" - }, - "enableProfanityFilter": { - "type": "boolean" - }, - "enableSpamFilter": { - "type": "boolean" - }, - "lastBillingIssueReminderDate": { - "type": "string", - "format": "date-time" - }, - "removeUnverifiedComments": { - "type": "boolean" - }, - "unverifiedCommentsTTLms": { - "type": "number", - "format": "double", - "nullable": true - }, - "commentsRequireApproval": { - "type": "boolean" - }, - "autoApproveCommentOnVerification": { - "type": "boolean" - }, - "sendProfaneToSpam": { - "type": "boolean" - }, - "hasFlexPricing": { - "type": "boolean" + "questionValues": { + "$ref": "#/components/schemas/Record_string.string-or-number_" }, - "hasAuditing": { + "tos": { "type": "boolean" }, - "flexLastBilledAmount": { - "type": "number", - "format": "double" - }, - "deAnonIpAddr": { - "type": "number", - "format": "double" - }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "botId": { + "type": "string" } }, "required": [ - "id", - "name", - "signUpDate", - "packageId", - "paymentFrequency", - "billingInfoValid", - "createdBy", - "isSetup", - "domainConfiguration", - "enableProfanityFilter", - "enableSpamFilter" + "commenterName", + "comment", + "url", + "urlId" ], "type": "object", "additionalProperties": false }, - "GetTenantResponse": { + "DeletedCommentResultComment": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isDeleted": { + "type": "boolean" }, - "tenant": { - "$ref": "#/components/schemas/APITenant" + "commentHTML": { + "type": "string" + }, + "commenterName": { + "type": "string" + }, + "userId": { + "type": "string", + "nullable": true } }, "required": [ - "status", - "tenant" + "commentHTML", + "commenterName" ], "type": "object", "additionalProperties": false }, - "GetTenantsResponse": { + "PublicAPIDeleteCommentResponse": { "properties": { + "comment": { + "$ref": "#/components/schemas/DeletedCommentResultComment" + }, + "hardRemoved": { + "type": "boolean" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "tenants": { - "items": { - "$ref": "#/components/schemas/APITenant" - }, - "type": "array" } }, "required": [ - "status", - "tenants" + "hardRemoved", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantResponse": { + "CheckBlockedCommentsResponse": { "properties": { + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" + }, "status": { "$ref": "#/components/schemas/APIStatus" - }, - "tenant": { - "$ref": "#/components/schemas/APITenant" } }, "required": [ - "status", - "tenant" + "commentStatuses", + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantBody": { + "VoteBodyParams": { "properties": { - "name": { - "type": "string" + "commenterEmail": { + "type": "string", + "nullable": true }, - "domainConfiguration": { - "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" - }, - "type": "array" - }, - "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" - }, - "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" + "commenterName": { + "type": "string", + "nullable": true }, - "deAnonIpAddr": { - "type": "number", - "format": "double" + "voteDir": { + "type": "string", + "enum": [ + "up", + "down" + ] }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" + "url": { + "type": "string", + "nullable": true } }, "required": [ - "name", - "domainConfiguration" + "commenterEmail", + "commenterName", + "voteDir", + "url" ], "type": "object", "additionalProperties": false }, - "UpdateTenantBody": { + "GetCommentVoteUserNamesSuccessResponse": { "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" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "domainConfiguration": { + "voteUserNames": { "items": { - "$ref": "#/components/schemas/APIDomainConfiguration" + "type": "string" }, "type": "array" }, - "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": { + "hasMore": { "type": "boolean" - }, - "deAnonIpAddr": { - "type": "number", - "format": "double" - }, - "meta": { - "$ref": "#/components/schemas/Record_string.string_" - }, - "managedByTenantId": { - "type": "string" } }, + "required": [ + "status", + "voteUserNames", + "hasMore" + ], "type": "object", "additionalProperties": false }, - "GetTenantUserResponse": { + "ChangeCommentPinStatusResponse": { + "properties": { + "commentPositions": { + "$ref": "#/components/schemas/CommentPositions" + }, + "status": { + "$ref": "#/components/schemas/APIStatus" + } + }, + "required": [ + "commentPositions", + "status" + ], + "type": "object" + }, + "BlockSuccess": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUser": { - "$ref": "#/components/schemas/User" + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ "status", - "tenantUser" + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "GetTenantUsersResponse": { + "PublicBlockFromCommentParams": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "tenantUsers": { + "commentIds": { "items": { - "$ref": "#/components/schemas/User" + "type": "string" }, - "type": "array" + "type": "array", + "nullable": true, + "description": "A list of comment ids to check if are blocked after performing the update." } }, "required": [ - "status", - "tenantUsers" + "commentIds" ], "type": "object", "additionalProperties": false }, - "CreateTenantUserResponse": { + "UnblockSuccess": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantUser": { - "$ref": "#/components/schemas/User" + "commentStatuses": { + "$ref": "#/components/schemas/Record_string.boolean_" } }, "required": [ "status", - "tenantUser" + "commentStatuses" ], "type": "object", "additionalProperties": false }, - "CreateTenantUserBody": { + "APIUserSubscription": { "properties": { - "username": { + "notificationFrequency": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "pageTitle": { "type": "string" }, - "email": { + "url": { "type": "string" }, - "displayName": { + "urlId": { "type": "string" }, - "websiteUrl": { + "anonUserId": { "type": "string" }, - "signUpDate": { - "type": "number", - "format": "double" + "userId": { + "type": "string" }, - "locale": { + "id": { + "type": "string" + } + }, + "required": [ + "createdAt", + "urlId", + "id" + ], + "type": "object" + }, + "GetSubscriptionsAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "verified": { - "type": "boolean" - }, - "loginCount": { - "type": "number", - "format": "double" - }, - "optedInNotifications": { - "type": "boolean" - }, - "optedInTenantNotifications": { - "type": "boolean" - }, - "hideAccountCode": { - "type": "boolean" - }, - "avatarSrc": { + "code": { "type": "string" }, - "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": { + "subscriptions": { "items": { - "type": "string" + "$ref": "#/components/schemas/APIUserSubscription" }, "type": "array" }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { + "status": { "type": "string" } }, "required": [ - "username", - "email" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "ReplaceTenantUserBody": { + "CreateSubscriptionAPIResponse": { "properties": { - "username": { + "reason": { "type": "string" }, - "email": { + "code": { "type": "string" }, - "displayName": { - "type": "string" + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" }, - "websiteUrl": { + "status": { "type": "string" - }, - "signUpDate": { + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIUserSubscriptionData": { + "properties": { + "notificationFrequency": { "type": "number", "format": "double" }, - "locale": { + "pageTitle": { "type": "string" }, - "verified": { - "type": "boolean" - }, - "loginCount": { - "type": "number", - "format": "double" - }, - "optedInNotifications": { - "type": "boolean" - }, - "optedInTenantNotifications": { - "type": "boolean" - }, - "hideAccountCode": { - "type": "boolean" - }, - "avatarSrc": { + "url": { "type": "string" }, - "isHelpRequestAdmin": { - "type": "boolean" - }, - "isAccountOwner": { - "type": "boolean" - }, - "isAdminAdmin": { - "type": "boolean" - }, - "isBillingAdmin": { - "type": "boolean" - }, - "isAnalyticsAdmin": { - "type": "boolean" - }, - "isCustomizationAdmin": { - "type": "boolean" + "urlId": { + "type": "string" }, - "isManageDataAdmin": { - "type": "boolean" + "anonUserId": { + "type": "string" }, - "isCommentModeratorAdmin": { - "type": "boolean" + "userId": { + "type": "string" + } + }, + "required": [ + "urlId" + ], + "type": "object" + }, + "UpdateSubscriptionAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "isAPIAdmin": { - "type": "boolean" + "code": { + "type": "string" }, - "moderatorIds": { - "items": { - "type": "string" - }, - "type": "array" + "subscription": { + "$ref": "#/components/schemas/APIUserSubscription" }, - "digestEmailFrequency": { + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPIUserSubscriptionData": { + "properties": { + "notificationFrequency": { "type": "number", "format": "double" - }, - "displayLabel": { + } + }, + "type": "object" + }, + "DeleteSubscriptionAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "createdFromUrlId": { + "code": { "type": "string" }, - "createdFromTenantId": { + "status": { "type": "string" - }, - "lastLoginDate": { - "type": "number", - "format": "double" - }, - "karma": { - "type": "number", - "format": "double" } }, "required": [ - "username", - "email" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "UpdateTenantUserBody": { + "APISSOUser": { "properties": { - "username": { + "id": { "type": "string" }, - "displayName": { + "username": { "type": "string" }, "websiteUrl": { @@ -5235,30 +5104,30 @@ "type": "string" }, "signUpDate": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int64" }, - "verified": { - "type": "boolean" + "createdFromUrlId": { + "type": "string" }, "loginCount": { - "type": "number", - "format": "double" + "type": "integer", + "format": "int32" }, - "optedInNotifications": { - "type": "boolean" + "avatarSrc": { + "type": "string" }, - "optedInTenantNotifications": { + "optedInNotifications": { "type": "boolean" }, - "hideAccountCode": { + "optedInSubscriptionNotifications": { "type": "boolean" }, - "avatarSrc": { + "displayLabel": { "type": "string" }, - "isHelpRequestAdmin": { - "type": "boolean" + "displayName": { + "type": "string" }, "isAccountOwner": { "type": "boolean" @@ -5266,2927 +5135,2905 @@ "isAdminAdmin": { "type": "boolean" }, - "isBillingAdmin": { - "type": "boolean" - }, - "isAnalyticsAdmin": { + "isCommentModeratorAdmin": { "type": "boolean" }, - "isCustomizationAdmin": { + "isProfileActivityPrivate": { "type": "boolean" }, - "isManageDataAdmin": { + "isProfileCommentsPrivate": { "type": "boolean" }, - "isCommentModeratorAdmin": { + "isProfileDMDisabled": { "type": "boolean" }, - "isAPIAdmin": { + "hasBlockedUsers": { "type": "boolean" }, - "moderatorIds": { + "groupIds": { "items": { "type": "string" }, "type": "array" - }, - "locale": { - "type": "string" - }, - "digestEmailFrequency": { - "type": "number", - "format": "double" - }, - "displayLabel": { - "type": "string" } }, - "type": "object", - "additionalProperties": false - }, - "TenantPackage": { - "properties": { - "_id": { - "type": "string" - }, - "name": { + "required": [ + "id", + "username", + "websiteUrl", + "email", + "signUpDate", + "createdFromUrlId", + "loginCount", + "avatarSrc", + "optedInNotifications", + "optedInSubscriptionNotifications", + "displayLabel", + "displayName" + ], + "type": "object", + "additionalProperties": false + }, + "GetSSOUserByIdAPIResponse": { + "properties": { + "reason": { "type": "string" }, - "tenantId": { + "code": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "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" - }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "GetSSOUserByEmailAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "maxModerators": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "maxDomains": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "DeleteSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "hasWhiteLabeling": { - "type": "boolean" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "PatchSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "code": { + "type": "string" }, - "hasLLMSpamDetection": { - "type": "boolean" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "forWhoText": { + "status": { "type": "string" - }, - "featureTaglines": { + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPISSOUserData": { + "properties": { + "groupIds": { "items": { "type": "string" }, "type": "array" }, - "hasAuditing": { + "hasBlockedUsers": { "type": "boolean" }, - "hasFlexPricing": { + "isProfileDMDisabled": { "type": "boolean" }, - "enableSAML": { + "isProfileCommentsPrivate": { "type": "boolean" }, - "enableCanvasLTI": { + "isProfileActivityPrivate": { "type": "boolean" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "isAdminAdmin": { + "type": "boolean" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "isAccountOwner": { + "type": "boolean" }, - "flexCommentUnit": { - "type": "number", - "format": "double" + "displayName": { + "type": "string" }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" + "displayLabel": { + "type": "string" }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "optedInSubscriptionNotifications": { + "type": "boolean" }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "optedInNotifications": { + "type": "boolean" }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" + "avatarSrc": { + "type": "string" }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" + "loginCount": { + "type": "integer", + "format": "int32" }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" + "createdFromUrlId": { + "type": "string" }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" + "signUpDate": { + "type": "integer", + "format": "int64" }, - "flexModeratorUnit": { - "type": "number", - "format": "double" + "email": { + "type": "string" }, - "flexAdminCostCents": { - "type": "number", - "format": "double" + "websiteUrl": { + "type": "string" }, - "flexAdminUnit": { - "type": "number", - "format": "double" + "username": { + "type": "string" }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "id": { + "type": "string" + } + }, + "type": "object" + }, + "PutSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "flexChatGPTCostCents": { - "type": "number", - "format": "double" + "user": { + "allOf": [ + { + "$ref": "#/components/schemas/APISSOUser" + } + ], + "nullable": true }, - "flexChatGPTUnit": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "AddSSOUserAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "flexLLMCostCents": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "flexLLMUnit": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/APISSOUser" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPISSOUserData": { + "properties": { + "groupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" + "hasBlockedUsers": { + "type": "boolean" }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" + "isProfileDMDisabled": { + "type": "boolean" }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" + "isProfileActivityPrivate": { + "type": "boolean" }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "isSSOBillingMonthlyActiveUsers": { + "isAdminAdmin": { + "type": "boolean" + }, + "isAccountOwner": { + "type": "boolean" + }, + "displayName": { + "type": "string" + }, + "displayLabel": { + "type": "string" + }, + "optedInSubscriptionNotifications": { + "type": "boolean" + }, + "optedInNotifications": { "type": "boolean" + }, + "avatarSrc": { + "type": "string" + }, + "loginCount": { + "type": "integer", + "format": "int32" + }, + "createdFromUrlId": { + "type": "string" + }, + "signUpDate": { + "type": "integer", + "format": "int64" + }, + "email": { + "type": "string" + }, + "websiteUrl": { + "type": "string" + }, + "username": { + "type": "string" + }, + "id": { + "type": "string" } }, "required": [ - "_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" + "email", + "username", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantPackageResponse": { + "APIPage": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isClosed": { + "type": "boolean" }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "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", - "tenantPackage" + "rootCommentCount", + "commentCount", + "createdAt", + "title", + "urlId", + "id" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "GetTenantPackagesResponse": { + "GetPagesAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tenantPackages": { + "code": { + "type": "string" + }, + "pages": { "items": { - "$ref": "#/components/schemas/TenantPackage" + "$ref": "#/components/schemas/APIPage" }, "type": "array" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "tenantPackages" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantPackageResponse": { + "GetPageByURLIdAPIResponse": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "reason": { + "type": "string" }, - "tenantPackage": { - "$ref": "#/components/schemas/TenantPackage" + "code": { + "type": "string" + }, + "page": { + "$ref": "#/components/schemas/APIPage" + }, + "status": { + "type": "string" } }, "required": [ - "status", - "tenantPackage" + "status" ], - "type": "object", - "additionalProperties": false + "type": "object" }, - "CreateTenantPackageBody": { + "AddPageAPIResponse": { "properties": { - "name": { + "reason": { "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" + "code": { + "type": "string" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "CreateAPIPageData": { + "properties": { + "accessibleByGroupIds": { + "items": { + "type": "string" + }, + "type": "array" }, - "maxModerators": { - "type": "number", - "format": "double" + "rootCommentCount": { + "type": "integer", + "format": "int64" }, - "maxDomains": { - "type": "number", - "format": "double" + "commentCount": { + "type": "integer", + "format": "int64" }, - "maxWhiteLabeledTenants": { - "type": "number", - "format": "double" + "title": { + "type": "string" }, - "maxMonthlyEventLogRequests": { - "type": "number", - "format": "double" + "url": { + "type": "string" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "urlId": { + "type": "string" + } + }, + "required": [ + "title", + "url", + "urlId" + ], + "type": "object" + }, + "PatchPageAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "hasWhiteLabeling": { - "type": "boolean" + "code": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "commentsUpdated": { + "type": "integer", + "format": "int64" }, - "hasLLMSpamDetection": { - "type": "boolean" + "page": { + "$ref": "#/components/schemas/APIPage" }, - "forWhoText": { + "status": { "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "UpdateAPIPageData": { + "properties": { + "isClosed": { + "type": "boolean" }, - "featureTaglines": { + "accessibleByGroupIds": { "items": { "type": "string" }, "type": "array" }, - "hasAuditing": { - "type": "boolean" + "title": { + "type": "string" }, - "hasFlexPricing": { - "type": "boolean" + "url": { + "type": "string" }, - "enableSAML": { - "type": "boolean" + "urlId": { + "type": "string" + } + }, + "type": "object" + }, + "DeletePageAPIResponse": { + "properties": { + "reason": { + "type": "string" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "code": { + "type": "string" }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "status": { + "type": "string" + } + }, + "required": [ + "status" + ], + "type": "object" + }, + "PublicVote": { + "properties": { + "id": { + "type": "string" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "urlId": { + "type": "string" }, - "flexCommentUnit": { - "type": "number", - "format": "double" + "commentId": { + "type": "string" }, - "flexSSOUserCostCents": { - "type": "number", - "format": "double" + "userId": { + "type": "string" }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "direction": { + "type": "string" }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "createdAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "id", + "urlId", + "commentId", + "userId", + "direction", + "createdAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetVotesResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "flexAPICreditUnit": { - "type": "number", - "format": "double" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "flexSmallWidgetsCreditCostCents": { - "type": "number", - "format": "double" + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "flexSmallWidgetsCreditUnit": { - "type": "number", - "format": "double" + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + } + }, + "required": [ + "status", + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" + ], + "type": "object", + "additionalProperties": false + }, + "GetVotesForUserResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "flexModeratorCostCents": { - "type": "number", - "format": "double" + "appliedAuthorizedVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "flexModeratorUnit": { - "type": "number", - "format": "double" + "appliedAnonymousVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" }, - "flexAdminCostCents": { - "type": "number", - "format": "double" + "pendingVotes": { + "items": { + "$ref": "#/components/schemas/PublicVote" + }, + "type": "array" + } + }, + "required": [ + "status", + "appliedAuthorizedVotes", + "appliedAnonymousVotes", + "pendingVotes" + ], + "type": "object", + "additionalProperties": false + }, + "DigestEmailFrequency": { + "enum": [ + -1, + 0, + 1, + 2 + ], + "type": "integer" + }, + "ImportedAgentApprovalNotificationFrequency": { + "enum": [ + -1, + 0, + 1, + 2 + ], + "type": "integer" + }, + "AgentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/ImportedAgentApprovalNotificationFrequency" + }, + "User": { + "properties": { + "_id": { + "type": "string" }, - "flexAdminUnit": { - "type": "number", - "format": "double" + "tenantId": { + "type": "string", + "nullable": true }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "username": { + "type": "string" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "displayName": { + "type": "string" }, - "flexLLMCostCents": { - "type": "number", - "format": "double" + "websiteUrl": { + "type": "string", + "nullable": true }, - "flexLLMUnit": { - "type": "number", - "format": "double" + "email": { + "type": "string", + "nullable": true }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "pendingEmail": { + "type": "string" }, - "flexManagedTenantCostCents": { - "type": "number", - "format": "double" + "backupEmail": { + "type": "string" }, - "flexSSOAdminCostCents": { - "type": "number", - "format": "double" + "pendingBackupEmail": { + "type": "string" }, - "flexSSOAdminUnit": { - "type": "number", - "format": "double" + "signUpDate": { + "type": "integer", + "format": "int64" }, - "flexSSOModeratorCostCents": { - "type": "number", - "format": "double" + "createdFromUrlId": { + "type": "string", + "nullable": true }, - "flexSSOModeratorUnit": { - "type": "number", - "format": "double" - } - }, - "required": [ - "name", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" - ], - "type": "object", - "additionalProperties": false - }, - "ReplaceTenantPackageBody": { - "properties": { - "name": { + "createdFromTenantId": { + "type": "string", + "nullable": true + }, + "createdFromIpHashed": { "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double" + "verified": { + "type": "boolean" }, - "yearlyCostUSD": { - "type": "number", - "format": "double" + "loginId": { + "type": "string" }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" + "loginIdDate": { + "type": "integer", + "format": "int64" }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" + "loginCount": { + "type": "integer", + "format": "int32" }, - "maxMonthlyComments": { - "type": "number", - "format": "double" + "optedInNotifications": { + "type": "boolean" }, - "maxConcurrentUsers": { - "type": "number", - "format": "double" + "optedInTenantNotifications": { + "type": "boolean" }, - "maxTenantUsers": { - "type": "number", - "format": "double" + "hideAccountCode": { + "type": "boolean" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "avatarSrc": { + "type": "string", + "nullable": true }, - "maxModerators": { - "type": "number", - "format": "double" + "isFastCommentsHelpRequestAdmin": { + "type": "boolean" }, - "maxDomains": { - "type": "number", - "format": "double" + "isHelpRequestAdmin": { + "type": "boolean" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "isAccountOwner": { + "type": "boolean" }, - "hasDebranding": { + "isAdminAdmin": { "type": "boolean" }, - "forWhoText": { - "type": "string" + "isBillingAdmin": { + "type": "boolean" }, - "featureTaglines": { + "isAnalyticsAdmin": { + "type": "boolean" + }, + "isCustomizationAdmin": { + "type": "boolean" + }, + "isManageDataAdmin": { + "type": "boolean" + }, + "isCommentModeratorAdmin": { + "type": "boolean" + }, + "isAPIAdmin": { + "type": "boolean" + }, + "isSiteAdmin": { + "type": "boolean" + }, + "moderatorIds": { "items": { "type": "string" }, "type": "array" }, - "hasFlexPricing": { + "isImpersonator": { "type": "boolean" }, - "flexPageLoadCostCents": { - "type": "number", - "format": "double" + "isCouponManager": { + "type": "boolean" }, - "flexPageLoadUnit": { - "type": "number", - "format": "double" + "locale": { + "type": "string" }, - "flexCommentCostCents": { - "type": "number", - "format": "double" + "digestEmailFrequency": { + "$ref": "#/components/schemas/DigestEmailFrequency" }, - "flexCommentUnit": { + "notificationFrequency": { "type": "number", "format": "double" }, - "flexSSOUserCostCents": { + "adminNotificationFrequency": { "type": "number", "format": "double" }, - "flexSSOUserUnit": { - "type": "number", - "format": "double" + "agentApprovalNotificationFrequency": { + "$ref": "#/components/schemas/AgentApprovalNotificationFrequency" }, - "flexAPICreditCostCents": { - "type": "number", - "format": "double" + "lastTenantNotificationSentDate": { + "type": "string", + "format": "date-time" }, - "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" + "lastReplyNotificationSentDate": { + "type": "string", + "format": "date-time" }, - "flexDomainCostCents": { - "type": "number", - "format": "double" + "ignoredAddToMySiteMessages": { + "type": "boolean" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "lastLoginDate": { + "type": "string", + "format": "date-time" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" - } - }, - "required": [ - "name", - "monthlyCostUSD", - "yearlyCostUSD", - "maxMonthlyPageLoads", - "maxMonthlyAPICredits", - "maxMonthlyComments", - "maxConcurrentUsers", - "maxTenantUsers", - "maxSSOUsers", - "maxModerators", - "maxDomains", - "hasDebranding", - "forWhoText", - "featureTaglines", - "hasFlexPricing" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateTenantPackageBody": { - "properties": { - "name": { + "displayLabel": { "type": "string" }, - "monthlyCostUSD": { - "type": "number", - "format": "double" - }, - "yearlyCostUSD": { - "type": "number", - "format": "double" - }, - "maxMonthlyPageLoads": { - "type": "number", - "format": "double" + "isProfileActivityPrivate": { + "type": "boolean" }, - "maxMonthlyAPICredits": { - "type": "number", - "format": "double" + "isProfileCommentsPrivate": { + "type": "boolean" }, - "maxMonthlyComments": { - "type": "number", - "format": "double" + "isProfileDMDisabled": { + "type": "boolean" }, - "maxConcurrentUsers": { + "profileCommentApprovalMode": { "type": "number", "format": "double" }, - "maxTenantUsers": { + "karma": { "type": "number", "format": "double" }, - "maxSSOUsers": { - "type": "number", - "format": "double" + "passwordHash": { + "type": "string" }, - "maxModerators": { + "averageTicketAckTimeMS": { "type": "number", - "format": "double" + "format": "double", + "nullable": true }, - "maxDomains": { - "type": "number", - "format": "double" + "hasBlockedUsers": { + "type": "boolean" }, - "maxCustomCollectionSize": { - "type": "number", - "format": "double" + "bio": { + "type": "string" }, - "hasDebranding": { - "type": "boolean" + "headerBackgroundSrc": { + "type": "string" }, - "hasWhiteLabeling": { - "type": "boolean" + "countryCode": { + "type": "string" }, - "forWhoText": { + "countryFlag": { "type": "string" }, - "featureTaglines": { + "socialLinks": { "items": { "type": "string" }, "type": "array" }, - "hasFlexPricing": { + "hasTwoFactor": { "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" + "isEmailSuppressed": { + "type": "boolean" + } + }, + "required": [ + "_id", + "username", + "email", + "signUpDate", + "createdFromTenantId", + "createdFromIpHashed", + "verified", + "loginId", + "loginIdDate" + ], + "type": "object", + "additionalProperties": false + }, + "GetUserResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "flexDomainUnit": { - "type": "number", - "format": "double" + "user": { + "$ref": "#/components/schemas/User" + } + }, + "required": [ + "status", + "user" + ], + "type": "object", + "additionalProperties": false + }, + "APIGetUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "flexMinimumCostCents": { - "type": "number", - "format": "double" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" } }, + "required": [ + "status", + "userBadge" + ], "type": "object", "additionalProperties": false }, - "APITenantDailyUsage": { + "APIGetUserBadgesResponse": { "properties": { - "id": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "tenantId": { - "type": "string" + "userBadges": { + "items": { + "$ref": "#/components/schemas/UserBadge" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadges" + ], + "type": "object", + "additionalProperties": false + }, + "APICreateUserBadgeResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "yearNumber": { - "type": "number", - "format": "double" + "userBadge": { + "$ref": "#/components/schemas/UserBadge" }, - "monthNumber": { - "type": "number", - "format": "double" - }, - "dayNumber": { - "type": "number", - "format": "double" - }, - "commentFetchCount": { - "type": "number", - "format": "double" + "notes": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "status", + "userBadge" + ], + "type": "object", + "additionalProperties": false + }, + "CreateUserBadgeParams": { + "properties": { + "userId": { + "type": "string" }, - "commentCreateCount": { - "type": "number", - "format": "double" + "badgeId": { + "type": "string" }, - "conversationCreateCount": { - "type": "number", - "format": "double" + "displayedOnComments": { + "type": "boolean" + } + }, + "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" + } + }, + "type": "object", + "additionalProperties": false + }, + "UserBadgeProgress": { + "properties": { + "_id": { + "type": "string" }, - "voteCount": { - "type": "number", - "format": "double" + "tenantId": { + "type": "string" }, - "accountCreatedCount": { - "type": "number", - "format": "double" + "userId": { + "type": "string" }, - "userMentionSearch": { - "type": "number", - "format": "double" + "firstCommentId": { + "type": "string" }, - "hashTagSearch": { - "type": "number", - "format": "double" + "firstCommentDate": { + "type": "string", + "format": "date-time" }, - "gifSearchTrending": { + "autoTrustFactor": { "type": "number", "format": "double" }, - "gifSearch": { + "manualTrustFactor": { "type": "number", "format": "double" }, - "apiCreditsUsed": { - "type": "number", - "format": "double" + "progress": { + "$ref": "#/components/schemas/Record_string.number_" }, - "createdAt": { + "tosAcceptedAt": { "type": "string", "format": "date-time" - }, - "billed": { - "type": "boolean" - }, - "ignored": { - "type": "boolean" - }, - "apiErrorCount": { - "type": "number", - "format": "double" } }, "required": [ - "id", + "_id", "tenantId", - "yearNumber", - "monthNumber", - "dayNumber", - "commentFetchCount", - "commentCreateCount", - "conversationCreateCount", - "voteCount", - "accountCreatedCount", - "userMentionSearch", - "hashTagSearch", - "gifSearchTrending", - "gifSearch", - "apiCreditsUsed", - "createdAt", - "billed", - "ignored", - "apiErrorCount" + "userId", + "firstCommentId", + "firstCommentDate", + "progress" ], "type": "object", "additionalProperties": false }, - "GetTenantDailyUsagesResponse": { + "APIGetUserBadgeProgressResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "tenantDailyUsages": { - "items": { - "$ref": "#/components/schemas/APITenantDailyUsage" - }, - "type": "array" + "userBadgeProgress": { + "$ref": "#/components/schemas/UserBadgeProgress" } }, "required": [ "status", - "tenantDailyUsages" + "userBadgeProgress" ], "type": "object", "additionalProperties": false }, - "MetaItem": { + "APIGetUserBadgeProgressListResponse": { "properties": { - "name": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "values": { + "userBadgeProgresses": { "items": { - "type": "string" + "$ref": "#/components/schemas/UserBadgeProgress" }, "type": "array" } }, "required": [ - "name", - "values" + "status", + "userBadgeProgresses" ], "type": "object", "additionalProperties": false }, - "QuestionResult": { + "APITicket": { "properties": { "_id": { "type": "string" }, - "tenantId": { + "urlId": { "type": "string" }, - "urlId": { + "userId": { "type": "string" }, - "anonUserId": { + "managedByTenantId": { "type": "string" }, - "userId": { + "assignedUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "subject": { "type": "string" }, "createdAt": { - "type": "string", - "format": "date-time" + "type": "string" }, - "value": { + "state": { "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" + "fileCount": { + "type": "integer", + "format": "int32" } }, "required": [ "_id", - "tenantId", "urlId", - "anonUserId", "userId", + "managedByTenantId", + "assignedUserIds", + "subject", "createdAt", - "value", - "questionId", - "ipHash" + "state", + "fileCount" ], "type": "object", "additionalProperties": false }, - "GetQuestionResultResponse": { + "GetTicketsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "tickets": { + "items": { + "$ref": "#/components/schemas/APITicket" + }, + "type": "array" } }, "required": [ "status", - "questionResult" + "tickets" ], "type": "object", "additionalProperties": false }, - "GetQuestionResultsResponse": { + "CreateTicketResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "questionResults": { - "items": { - "$ref": "#/components/schemas/QuestionResult" - }, - "type": "array" + "ticket": { + "$ref": "#/components/schemas/APITicket" } }, "required": [ "status", - "questionResults" + "ticket" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultResponse": { + "CreateTicketBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "questionResult": { - "$ref": "#/components/schemas/QuestionResult" + "subject": { + "type": "string" } }, "required": [ - "status", - "questionResult" + "subject" ], "type": "object", "additionalProperties": false }, - "CreateQuestionResultBody": { + "APITicketFile": { "properties": { - "urlId": { + "id": { "type": "string" }, - "value": { - "type": "number", - "format": "double" - }, - "questionId": { + "s3Key": { "type": "string" }, - "anonUserId": { + "originalFileName": { "type": "string" }, - "userId": { + "sizeBytes": { + "type": "integer", + "format": "int32" + }, + "contentType": { "type": "string" }, - "commentId": { + "uploadedByUserId": { "type": "string" }, - "meta": { - "items": { - "$ref": "#/components/schemas/MetaItem" - }, - "type": "array", - "nullable": true + "uploadedAt": { + "type": "string" + }, + "url": { + "type": "string" + }, + "expiresAt": { + "type": "string" + }, + "expired": { + "type": "boolean" } }, "required": [ - "urlId", - "value", - "questionId" + "id", + "s3Key", + "originalFileName", + "sizeBytes", + "contentType", + "uploadedByUserId", + "uploadedAt", + "url", + "expiresAt" ], "type": "object", - "additionalProperties": {} + "additionalProperties": false }, - "UpdateQuestionResultBody": { + "APITicketDetail": { "properties": { - "urlId": { + "_id": { "type": "string" }, - "anonUserId": { + "urlId": { "type": "string" }, "userId": { "type": "string" }, - "value": { - "type": "number", - "format": "double" + "managedByTenantId": { + "type": "string" }, - "commentId": { + "assignedUserIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "subject": { "type": "string" }, - "questionId": { + "createdAt": { "type": "string" }, - "meta": { + "state": { + "type": "integer", + "format": "int32" + }, + "fileCount": { + "type": "integer", + "format": "int32" + }, + "files": { "items": { - "$ref": "#/components/schemas/MetaItem" + "$ref": "#/components/schemas/APITicketFile" }, - "type": "array", + "type": "array" + }, + "reopenedAt": { + "type": "string", "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" + "resolvedAt": { + "type": "string", + "nullable": true + }, + "ackAt": { + "type": "string", + "nullable": true } }, "required": [ - "v", - "total" + "_id", + "urlId", + "userId", + "managedByTenantId", + "assignedUserIds", + "subject", + "createdAt", + "state", + "fileCount", + "files" ], "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": { + "GetTicketResponse": { "properties": { - "dataByDateBucket": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" - }, - "dataByUrlId": { - "$ref": "#/components/schemas/Record_string.QuestionDatum_" - }, - "countsByValue": { - "$ref": "#/components/schemas/Int32Map" - }, - "total": { - "type": "integer", - "format": "int64" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "average": { - "type": "number", - "format": "double" + "ticket": { + "$ref": "#/components/schemas/APITicketDetail" }, - "createdAt": { - "type": "string", - "format": "date-time" + "availableStates": { + "items": { + "type": "number", + "format": "double" + }, + "type": "array" } }, "required": [ - "total", - "createdAt" + "status", + "ticket", + "availableStates" ], "type": "object", "additionalProperties": false }, - "AggregateQuestionResultsResponse": { + "ChangeTicketStateResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/QuestionResultAggregationOverall" + "ticket": { + "$ref": "#/components/schemas/APITicket" } }, "required": [ "status", - "data" + "ticket" ], "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": { + "ChangeTicketStateBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" - }, - "data": { - "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" + "state": { + "type": "integer", + "format": "int32" } }, "required": [ - "status", - "data" + "state" ], "type": "object", "additionalProperties": false }, - "BulkAggregateQuestionItem": { + "ImportedSiteType": { + "enum": [ + 0, + 1 + ], + "type": "integer" + }, + "SiteType": { + "$ref": "#/components/schemas/ImportedSiteType" + }, + "APIDomainConfiguration": { "properties": { - "aggId": { + "id": { "type": "string" }, - "questionId": { + "domain": { "type": "string" }, - "questionIds": { - "items": { - "type": "string" - }, - "type": "array" + "emailFromName": { + "type": "string", + "nullable": true }, - "urlId": { - "type": "string" + "emailFromEmail": { + "type": "string", + "nullable": true }, - "timeBucket": { - "$ref": "#/components/schemas/AggregateTimeBucket" + "emailHeaders": { + "$ref": "#/components/schemas/Record_string.string_" }, - "startDate": { + "wpSyncToken": { + "type": "string", + "nullable": true + }, + "wpSynced": { + "type": "boolean" + }, + "wpURL": { + "type": "string", + "nullable": true + }, + "createdAt": { "type": "string", "format": "date-time" + }, + "autoAddedDate": { + "type": "string", + "format": "date-time" + }, + "siteType": { + "$ref": "#/components/schemas/SiteType" + }, + "logoSrc": { + "type": "string", + "nullable": true + }, + "logoSrc100px": { + "type": "string", + "nullable": true + }, + "footerUnsubscribeURL": { + "type": "string" + }, + "disableUnsubscribeLinks": { + "type": "boolean" } }, "required": [ - "aggId" - ], - "type": "object", - "additionalProperties": false - }, - "BulkAggregateQuestionResultsRequest": { - "properties": { - "aggregations": { - "items": { - "$ref": "#/components/schemas/BulkAggregateQuestionItem" - }, - "type": "array" - } - }, - "required": [ - "aggregations" + "id", + "domain", + "createdAt" ], "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": { + "BillingInfo": { "properties": { - "clearContent": { - "type": "boolean" - }, - "isDeletedUser": { - "type": "boolean" - }, - "phrase": { + "name": { "type": "string" }, - "badWord": { + "address": { "type": "string" }, - "word": { + "city": { "type": "string" }, - "locale": { + "state": { "type": "string" }, - "tenantBadgeId": { + "zip": { "type": "string" }, - "badgeId": { + "country": { "type": "string" }, - "wasLoggedIn": { - "type": "boolean" - }, - "foundUser": { - "type": "boolean" - }, - "verified": { - "type": "boolean" + "currency": { + "type": "string", + "nullable": true, + "description": "Currency for invoices." }, - "engine": { + "email": { + "type": "string", + "description": "Email for invoices." + } + }, + "required": [ + "name", + "address", + "city", + "state", + "zip", + "country" + ], + "type": "object", + "additionalProperties": false + }, + "APITenant": { + "properties": { + "id": { "type": "string" }, - "engineResponse": { + "name": { "type": "string" }, - "engineTokens": { - "type": "number", - "format": "double" + "email": { + "type": "string" }, - "trustFactor": { + "signUpDate": { "type": "number", "format": "double" }, - "rule": { - "$ref": "#/components/schemas/SpamRule" - }, - "userId": { + "packageId": { "type": "string" }, - "subscribers": { + "paymentFrequency": { "type": "number", "format": "double" }, - "notificationCount": { - "type": "number", - "format": "double" + "billingInfoValid": { + "type": "boolean" }, - "votesBefore": { - "type": "number", - "format": "double", - "nullable": true + "billingHandledExternally": { + "type": "boolean" }, - "votesUpBefore": { - "type": "number", - "format": "double", - "nullable": true + "createdBy": { + "type": "string" }, - "votesDownBefore": { - "type": "number", - "format": "double", - "nullable": true + "isSetup": { + "type": "boolean" }, - "votesAfter": { - "type": "number", - "format": "double", - "nullable": true + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "votesUpAfter": { - "type": "number", - "format": "double", - "nullable": true + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "votesDownAfter": { - "type": "number", - "format": "double", - "nullable": true + "stripeCustomerId": { + "type": "string" }, - "repeatAction": { - "$ref": "#/components/schemas/RepeatCommentHandlingAction" + "stripeSubscriptionId": { + "type": "string" }, - "reason": { - "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" + "stripePlanId": { + "type": "string" }, - "otherData": {}, - "spamBefore": { + "enableProfanityFilter": { "type": "boolean" }, - "spamAfter": { + "enableSpamFilter": { "type": "boolean" }, - "permanentFlag": { + "lastBillingIssueReminderDate": { "type": "string", - "enum": [ - "permanent" - ], - "nullable": false + "format": "date-time" }, - "approvedBefore": { + "removeUnverifiedComments": { "type": "boolean" }, - "approvedAfter": { - "type": "boolean" + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double", + "nullable": true }, - "reviewedBefore": { + "commentsRequireApproval": { "type": "boolean" }, - "reviewedAfter": { + "autoApproveCommentOnVerification": { "type": "boolean" }, - "textBefore": { - "type": "string" + "sendProfaneToSpam": { + "type": "boolean" }, - "textAfter": { - "type": "string" - }, - "expireBefore": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "expireAfter": { - "type": "string", - "format": "date-time", - "nullable": true + "hasFlexPricing": { + "type": "boolean" }, - "flagCountBefore": { - "type": "number", - "format": "double", - "nullable": true + "hasAuditing": { + "type": "boolean" }, - "trustFactorBefore": { + "flexLastBilledAmount": { "type": "number", "format": "double" }, - "trustFactorAfter": { + "deAnonIpAddr": { "type": "number", "format": "double" }, - "referencedCommentId": { - "type": "string" - }, - "invalidLocale": { - "type": "string" - }, - "detectedLocale": { - "type": "string" + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "id", + "name", + "signUpDate", + "packageId", + "paymentFrequency", + "billingInfoValid", + "createdBy", + "isSetup", + "domainConfiguration", + "enableProfanityFilter", + "enableSpamFilter" + ], + "type": "object", + "additionalProperties": false + }, + "GetTenantResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "detectedLanguage": { - "type": "string" + "tenant": { + "$ref": "#/components/schemas/APITenant" } }, + "required": [ + "status", + "tenant" + ], "type": "object", "additionalProperties": false }, - "CommentLogEntry": { + "GetTenantsResponse": { "properties": { - "d": { - "type": "string", - "format": "date-time" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "t": { - "$ref": "#/components/schemas/CommentLogType" + "tenants": { + "items": { + "$ref": "#/components/schemas/APITenant" + }, + "type": "array" + } + }, + "required": [ + "status", + "tenants" + ], + "type": "object", + "additionalProperties": false + }, + "CreateTenantResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "da": { - "$ref": "#/components/schemas/CommentLogData" + "tenant": { + "$ref": "#/components/schemas/APITenant" } }, "required": [ - "d", - "t" + "status", + "tenant" ], "type": "object", "additionalProperties": false }, - "FComment": { + "CreateTenantBody": { "properties": { - "_id": { + "name": { "type": "string" }, - "tenantId": { - "type": "string" + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "urlId": { + "email": { "type": "string" }, - "urlIdRaw": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "url": { + "packageId": { "type": "string" }, - "pageTitle": { - "type": "string", - "nullable": true - }, - "userId": { - "allOf": [ - { - "$ref": "#/components/schemas/UserId" - } - ], - "nullable": true + "paymentFrequency": { + "type": "number", + "format": "double" }, - "anonUserId": { - "type": "string", - "nullable": true + "billingInfoValid": { + "type": "boolean" }, - "commenterEmail": { - "type": "string", - "nullable": true + "billingHandledExternally": { + "type": "boolean" }, - "commenterName": { + "createdBy": { "type": "string" }, - "commenterLink": { - "type": "string", - "nullable": true + "isSetup": { + "type": "boolean" }, - "comment": { - "type": "string" + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "commentHTML": { + "stripeCustomerId": { "type": "string" }, - "parentId": { - "type": "string", - "nullable": true + "stripeSubscriptionId": { + "type": "string" }, - "date": { - "type": "string", - "format": "date-time", - "nullable": true + "stripePlanId": { + "type": "string" }, - "localDateString": { - "type": "string", - "nullable": true + "enableProfanityFilter": { + "type": "boolean" }, - "localDateHours": { - "type": "integer", - "format": "int32", - "nullable": true + "enableSpamFilter": { + "type": "boolean" }, - "votes": { - "type": "integer", - "format": "int32", - "nullable": true + "removeUnverifiedComments": { + "type": "boolean" }, - "votesUp": { - "type": "integer", - "format": "int32", - "nullable": true + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" }, - "votesDown": { - "type": "integer", - "format": "int32", - "nullable": true + "commentsRequireApproval": { + "type": "boolean" }, - "expireAt": { - "type": "string", - "format": "date-time", - "nullable": true + "autoApproveCommentOnVerification": { + "type": "boolean" }, - "verified": { + "sendProfaneToSpam": { "type": "boolean" }, - "verifiedDate": { - "type": "string", - "format": "date-time", - "nullable": true + "deAnonIpAddr": { + "type": "number", + "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true + "meta": { + "$ref": "#/components/schemas/Record_string.string_" + } + }, + "required": [ + "name", + "domainConfiguration" + ], + "type": "object", + "additionalProperties": false + }, + "UpdateTenantBody": { + "properties": { + "name": { + "type": "string" }, - "notificationSentForParent": { - "type": "boolean" + "email": { + "type": "string" }, - "notificationSentForParentTenant": { - "type": "boolean" + "signUpDate": { + "type": "number", + "format": "double" }, - "reviewed": { + "packageId": { + "type": "string" + }, + "paymentFrequency": { + "type": "number", + "format": "double" + }, + "billingInfoValid": { "type": "boolean" }, - "imported": { + "billingHandledExternally": { "type": "boolean" }, - "externalId": { + "createdBy": { "type": "string" }, - "externalParentId": { - "type": "string", - "nullable": true - }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "isSpam": { - "type": "boolean" - }, - "permNotSpam": { - "type": "boolean" - }, - "aiDeterminedSpam": { + "isSetup": { "type": "boolean" }, - "hasImages": { - "type": "boolean" + "domainConfiguration": { + "items": { + "$ref": "#/components/schemas/APIDomainConfiguration" + }, + "type": "array" }, - "pageNumber": { - "type": "integer", - "format": "int32", - "nullable": true + "billingInfo": { + "$ref": "#/components/schemas/BillingInfo" }, - "pageNumberOF": { - "type": "integer", - "format": "int32", - "nullable": true + "stripeCustomerId": { + "type": "string" }, - "pageNumberNF": { - "type": "integer", - "format": "int32", - "nullable": true + "stripeSubscriptionId": { + "type": "string" }, - "hasLinks": { - "type": "boolean" + "stripePlanId": { + "type": "string" }, - "hasCode": { + "enableProfanityFilter": { "type": "boolean" }, - "approved": { + "enableSpamFilter": { "type": "boolean" }, - "locale": { - "type": "string", - "nullable": true - }, - "isDeleted": { + "removeUnverifiedComments": { "type": "boolean" }, - "isDeletedUser": { - "type": "boolean" + "unverifiedCommentsTTLms": { + "type": "number", + "format": "double" }, - "isBannedUser": { + "commentsRequireApproval": { "type": "boolean" }, - "isByAdmin": { + "autoApproveCommentOnVerification": { "type": "boolean" }, - "isByModerator": { + "sendProfaneToSpam": { "type": "boolean" }, - "isPinned": { - "type": "boolean", - "nullable": true - }, - "isLocked": { - "type": "boolean", - "nullable": true - }, - "flagCount": { - "type": "integer", - "format": "int32", - "nullable": true - }, - "rating": { + "deAnonIpAddr": { "type": "number", - "format": "double", - "nullable": true - }, - "displayLabel": { - "type": "string", - "nullable": true - }, - "fromProductId": { - "type": "integer", - "format": "int32" + "format": "double" }, "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" + "$ref": "#/components/schemas/Record_string.string_" }, - "editKey": { + "managedByTenantId": { "type": "string" - }, - "tosAcceptedAt": { - "type": "string", - "format": "date-time" } }, - "required": [ - "_id", - "tenantId", - "urlId", - "url", - "commenterName", - "comment", - "commentHTML", - "date", - "verified", - "approved", - "locale" - ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeItem": { + "GetTenantUserResponse": { "properties": { - "comment": { - "allOf": [ - { - "$ref": "#/components/schemas/FComment" - } - ], - "nullable": true + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "result": { - "$ref": "#/components/schemas/QuestionResult" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ - "comment", - "result" + "status", + "tenantUser" ], "type": "object", "additionalProperties": false }, - "FindCommentsByRangeResponse": { + "GetTenantUsersResponse": { "properties": { - "results": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "tenantUsers": { "items": { - "$ref": "#/components/schemas/FindCommentsByRangeItem" + "$ref": "#/components/schemas/User" }, "type": "array" - }, - "createdAt": { - "type": "string", - "format": "date-time" } }, "required": [ - "results", - "createdAt" + "status", + "tenantUsers" ], "type": "object", "additionalProperties": false }, - "CombineQuestionResultsWithCommentsResponse": { + "CreateTenantUserResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { - "$ref": "#/components/schemas/FindCommentsByRangeResponse" + "tenantUser": { + "$ref": "#/components/schemas/User" } }, "required": [ "status", - "data" + "tenantUser" ], "type": "object", "additionalProperties": false }, - "QuestionConfig": { + "CreateTenantUserBody": { "properties": { - "_id": { + "username": { "type": "string" }, - "tenantId": { + "email": { "type": "string" }, - "name": { + "displayName": { "type": "string" }, - "question": { + "websiteUrl": { "type": "string" }, - "summaryLabel": { - "type": "string" + "signUpDate": { + "type": "number", + "format": "double" }, - "helpText": { + "locale": { "type": "string" }, - "createdAt": { - "type": "string", - "format": "date-time" - }, - "createdBy": { - "type": "string" + "verified": { + "type": "boolean" }, - "usedCount": { + "loginCount": { "type": "number", "format": "double" }, - "lastUsed": { - "type": "string", - "format": "date-time" + "optedInNotifications": { + "type": "boolean" }, - "type": { - "type": "string" + "optedInTenantNotifications": { + "type": "boolean" }, - "numStars": { - "type": "number", - "format": "double" + "hideAccountCode": { + "type": "boolean" }, - "min": { - "type": "number", - "format": "double" + "avatarSrc": { + "type": "string" }, - "max": { - "type": "number", - "format": "double" + "isHelpRequestAdmin": { + "type": "boolean" }, - "defaultValue": { - "type": "number", - "format": "double" + "isAccountOwner": { + "type": "boolean" }, - "labelNegative": { - "type": "string" + "isAdminAdmin": { + "type": "boolean" }, - "labelPositive": { - "type": "string" + "isBillingAdmin": { + "type": "boolean" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "isAnalyticsAdmin": { + "type": "boolean" }, - "subQuestionIds": { - "items": { - "type": "string" - }, - "type": "array" + "isCustomizationAdmin": { + "type": "boolean" }, - "alwaysShowSubQuestions": { + "isManageDataAdmin": { "type": "boolean" }, - "reportingOrder": { - "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" + "isCommentModeratorAdmin": { + "type": "boolean" }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" - } - }, - "required": [ - "status", - "questionConfig" - ], - "type": "object", - "additionalProperties": false - }, - "GetQuestionConfigsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "isAPIAdmin": { + "type": "boolean" }, - "questionConfigs": { + "moderatorIds": { "items": { - "$ref": "#/components/schemas/QuestionConfig" + "type": "string" }, "type": "array" - } - }, - "required": [ - "status", - "questionConfigs" - ], - "type": "object", - "additionalProperties": false - }, - "CreateQuestionConfigResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "questionConfig": { - "$ref": "#/components/schemas/QuestionConfig" + "digestEmailFrequency": { + "type": "number", + "format": "double" + }, + "displayLabel": { + "type": "string" } }, "required": [ - "status", - "questionConfig" + "username", + "email" ], "type": "object", "additionalProperties": false }, - "CreateQuestionConfigBody": { + "ReplaceTenantUserBody": { "properties": { - "name": { + "username": { "type": "string" }, - "question": { + "email": { "type": "string" }, - "helpText": { + "displayName": { "type": "string" }, - "type": { + "websiteUrl": { "type": "string" }, - "numStars": { + "signUpDate": { "type": "number", "format": "double" }, - "min": { - "type": "number", - "format": "double" + "locale": { + "type": "string" }, - "max": { - "type": "number", - "format": "double" + "verified": { + "type": "boolean" }, - "defaultValue": { + "loginCount": { "type": "number", "format": "double" }, - "labelNegative": { - "type": "string" + "optedInNotifications": { + "type": "boolean" }, - "labelPositive": { + "optedInTenantNotifications": { + "type": "boolean" + }, + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "isHelpRequestAdmin": { + "type": "boolean" }, - "subQuestionIds": { + "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" }, - "alwaysShowSubQuestions": { - "type": "boolean" - }, - "reportingOrder": { + "digestEmailFrequency": { "type": "number", "format": "double" - } - }, - "required": [ - "name", - "question", - "type", - "reportingOrder" + }, + "displayLabel": { + "type": "string" + }, + "createdFromUrlId": { + "type": "string" + }, + "createdFromTenantId": { + "type": "string" + }, + "lastLoginDate": { + "type": "number", + "format": "double" + }, + "karma": { + "type": "number", + "format": "double" + } + }, + "required": [ + "username", + "email" ], "type": "object", - "additionalProperties": {} + "additionalProperties": false }, - "UpdateQuestionConfigBody": { + "UpdateTenantUserBody": { "properties": { - "name": { + "username": { "type": "string" }, - "question": { + "displayName": { "type": "string" }, - "helpText": { + "websiteUrl": { "type": "string" }, - "type": { + "email": { "type": "string" }, - "numStars": { + "signUpDate": { "type": "number", "format": "double" }, - "min": { - "type": "number", - "format": "double" + "verified": { + "type": "boolean" }, - "max": { + "loginCount": { "type": "number", "format": "double" }, - "defaultValue": { - "type": "number", - "format": "double" + "optedInNotifications": { + "type": "boolean" }, - "labelNegative": { - "type": "string" + "optedInTenantNotifications": { + "type": "boolean" }, - "labelPositive": { + "hideAccountCode": { + "type": "boolean" + }, + "avatarSrc": { "type": "string" }, - "customOptions": { - "items": { - "properties": { - "imageSrc": { - "type": "string" - }, - "name": { - "type": "string" - } - }, - "required": [ - "imageSrc", - "name" - ], - "type": "object" - }, - "type": "array" + "isHelpRequestAdmin": { + "type": "boolean" }, - "subQuestionIds": { + "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" }, - "alwaysShowSubQuestions": { - "type": "boolean" + "locale": { + "type": "string" }, - "reportingOrder": { + "digestEmailFrequency": { "type": "number", "format": "double" + }, + "displayLabel": { + "type": "string" } }, "type": "object", - "additionalProperties": {} + "additionalProperties": false }, - "PendingCommentToSyncOutbound": { + "TenantPackage": { "properties": { "_id": { "type": "string" }, - "commentId": { + "name": { "type": "string" }, - "comment": { - "$ref": "#/components/schemas/FComment" - }, - "externalId": { - "type": "string", - "nullable": true + "tenantId": { + "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, - "tenantId": { + "templateId": { "type": "string" }, - "attemptCount": { + "monthlyCostUSD": { "type": "number", - "format": "double" + "format": "double", + "nullable": true }, - "nextAttemptAt": { + "yearlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true + }, + "monthlyStripePlanId": { "type": "string", - "format": "date-time" + "nullable": true }, - "eventType": { + "yearlyStripePlanId": { + "type": "string", + "nullable": true + }, + "maxMonthlyPageLoads": { "type": "number", "format": "double" }, - "type": { + "maxMonthlyAPICredits": { "type": "number", "format": "double" }, - "domain": { - "type": "string" + "maxMonthlySmallWidgetsCredits": { + "type": "number", + "format": "double" }, - "lastError": { - "additionalProperties": false, - "type": "object" + "maxMonthlyComments": { + "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" + "maxConcurrentUsers": { + "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" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "count": { + "maxSSOUsers": { "type": "number", "format": "double" - } - }, - "required": [ - "status", - "count" - ], - "type": "object", - "additionalProperties": false - }, - "GetNotificationsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "notifications": { - "items": { - "$ref": "#/components/schemas/UserNotification" - }, - "type": "array" - } - }, - "required": [ - "status", - "notifications" - ], - "type": "object", - "additionalProperties": false - }, - "GetNotificationCountResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxModerators": { + "type": "number", + "format": "double" }, - "count": { + "maxDomains": { "type": "number", "format": "double" - } - }, - "required": [ - "status", - "count" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateNotificationBody": { - "properties": { - "viewed": { + }, + "maxWhiteLabeledTenants": { + "type": "number", + "format": "double" + }, + "maxMonthlyEventLogRequests": { + "type": "number", + "format": "double" + }, + "maxCustomCollectionSize": { + "type": "number", + "format": "double" + }, + "hasWhiteLabeling": { "type": "boolean" }, - "optedOut": { + "hasDebranding": { "type": "boolean" - } - }, - "type": "object", - "additionalProperties": {} - }, - "UserNotificationCount": { - "properties": { - "_id": { + }, + "hasLLMSpamDetection": { + "type": "boolean" + }, + "forWhoText": { "type": "string" }, - "count": { + "featureTaglines": { + "items": { + "type": "string" + }, + "type": "array" + }, + "hasAuditing": { + "type": "boolean" + }, + "hasFlexPricing": { + "type": "boolean" + }, + "enableSAML": { + "type": "boolean" + }, + "enableCanvasLTI": { + "type": "boolean" + }, + "flexPageLoadCostCents": { "type": "number", "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexPageLoadUnit": { + "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" + "flexCommentCostCents": { + "type": "number", + "format": "double" }, - "data": { - "$ref": "#/components/schemas/UserNotificationCount" - } - }, - "required": [ - "status", - "data" - ], - "type": "object", - "additionalProperties": false - }, - "Moderator": { - "properties": { - "_id": { - "type": "string" + "flexCommentUnit": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "flexSSOUserCostCents": { + "type": "number", + "format": "double" }, - "name": { - "type": "string", - "nullable": true + "flexSSOUserUnit": { + "type": "number", + "format": "double" }, - "userId": { - "type": "string", - "nullable": true + "flexAPICreditCostCents": { + "type": "number", + "format": "double" }, - "acceptedInvite": { - "type": "boolean" + "flexAPICreditUnit": { + "type": "number", + "format": "double" }, - "email": { - "type": "string", - "nullable": true + "flexSmallWidgetsCreditCostCents": { + "type": "number", + "format": "double" }, - "markReviewedCount": { + "flexSmallWidgetsCreditUnit": { "type": "number", "format": "double" }, - "deletedCount": { + "flexModeratorCostCents": { "type": "number", "format": "double" }, - "markedSpamCount": { + "flexModeratorUnit": { "type": "number", "format": "double" }, - "markedNotSpamCount": { + "flexAdminCostCents": { "type": "number", "format": "double" }, - "approvedCount": { + "flexAdminUnit": { "type": "number", "format": "double" }, - "unApprovedCount": { + "flexDomainCostCents": { "type": "number", "format": "double" }, - "editedCount": { + "flexDomainUnit": { "type": "number", "format": "double" }, - "bannedCount": { + "flexChatGPTCostCents": { "type": "number", "format": "double" }, - "unFlaggedCount": { + "flexChatGPTUnit": { "type": "number", "format": "double" }, - "verificationId": { - "type": "string", - "nullable": true + "flexLLMCostCents": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "flexLLMUnit": { + "type": "number", + "format": "double" }, - "moderationGroupIds": { - "items": { - "type": "string" - }, - "type": "array", - "nullable": true + "flexMinimumCostCents": { + "type": "number", + "format": "double" }, - "isEmailSuppressed": { + "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" + }, + "isSSOBillingMonthlyActiveUsers": { + "type": "boolean" + }, + "hasAIAgents": { "type": "boolean" + }, + "maxAIAgents": { + "type": "number", + "format": "double" + }, + "aiAgentDailyBudgetCents": { + "type": "number", + "format": "double" + }, + "aiAgentMonthlyBudgetCents": { + "type": "number", + "format": "double" } }, "required": [ "_id", - "tenantId", "name", - "userId", - "acceptedInvite", - "email", - "markReviewedCount", - "deletedCount", - "markedSpamCount", - "markedNotSpamCount", - "approvedCount", - "unApprovedCount", - "editedCount", - "bannedCount", - "unFlaggedCount", - "verificationId", + "tenantId", "createdAt", - "moderationGroupIds" + "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 }, - "GetModeratorResponse": { + "GetTenantPackageResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ "status", - "moderator" + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "GetModeratorsResponse": { + "GetTenantPackagesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "moderators": { + "tenantPackages": { "items": { - "$ref": "#/components/schemas/Moderator" + "$ref": "#/components/schemas/TenantPackage" }, "type": "array" } }, "required": [ "status", - "moderators" + "tenantPackages" ], "type": "object", "additionalProperties": false }, - "CreateModeratorResponse": { + "CreateTenantPackageResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "moderator": { - "$ref": "#/components/schemas/Moderator" + "tenantPackage": { + "$ref": "#/components/schemas/TenantPackage" } }, "required": [ "status", - "moderator" + "tenantPackage" ], "type": "object", "additionalProperties": false }, - "CreateModeratorBody": { + "CreateTenantPackageBody": { "properties": { "name": { "type": "string" }, - "email": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double", + "nullable": true }, - "userId": { + "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" + }, + "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": { "type": "string" }, - "moderationGroupIds": { + "featureTaglines": { "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" + }, + "flexLLMCostCents": { + "type": "number", + "format": "double" + }, + "flexLLMUnit": { + "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" } }, "required": [ "name", - "email" + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", - "additionalProperties": {} + "additionalProperties": false }, - "UpdateModeratorBody": { + "ReplaceTenantPackageBody": { "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" - } - }, - "type": "object", - "additionalProperties": {} - }, - "TenantHashTag": { - "properties": { - "_id": { - "type": "string" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "createdAt": { - "type": "string", - "format": "date-time" + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "url": { - "type": "string" - } - }, - "required": [ - "_id", - "createdAt", - "tenantId", - "tag" - ], - "type": "object", - "additionalProperties": false - }, - "GetHashTagsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxTenantUsers": { + "type": "number", + "format": "double" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/TenantHashTag" - }, - "type": "array" - } - }, - "required": [ - "status", - "hashTags" - ], - "type": "object", - "additionalProperties": false - }, - "CreateHashTagResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxSSOUsers": { + "type": "number", + "format": "double" }, - "hashTag": { - "$ref": "#/components/schemas/TenantHashTag" - } - }, - "required": [ - "status", - "hashTag" - ], - "type": "object", - "additionalProperties": false - }, - "CreateHashTagBody": { - "properties": { - "tenantId": { - "type": "string" + "maxModerators": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" + "maxDomains": { + "type": "number", + "format": "double" }, - "url": { - "type": "string" - } - }, - "required": [ - "tag" - ], - "type": "object", - "additionalProperties": false - }, - "BulkCreateHashTagsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxCustomCollectionSize": { + "type": "number", + "format": "double" }, - "results": { - "items": { - "anyOf": [ - { - "$ref": "#/components/schemas/CreateHashTagResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] - }, - "type": "array" - } - }, - "required": [ - "status", - "results" - ], - "type": "object", - "additionalProperties": false - }, - "BulkCreateHashTagsBody": { - "properties": { - "tenantId": { + "hasDebranding": { + "type": "boolean" + }, + "forWhoText": { "type": "string" }, - "tags": { + "featureTaglines": { "items": { - "properties": { - "url": { - "type": "string" - }, - "tag": { - "type": "string" - } - }, - "required": [ - "tag" - ], - "type": "object" + "type": "string" }, "type": "array" - } - }, - "required": [ - "tags" - ], - "type": "object", - "additionalProperties": false - }, - "UpdateHashTagResponse": { - "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" + "name", + "monthlyCostUSD", + "yearlyCostUSD", + "maxMonthlyPageLoads", + "maxMonthlyAPICredits", + "maxMonthlyComments", + "maxConcurrentUsers", + "maxTenantUsers", + "maxSSOUsers", + "maxModerators", + "maxDomains", + "hasDebranding", + "forWhoText", + "featureTaglines", + "hasFlexPricing" ], "type": "object", "additionalProperties": false }, - "UpdateHashTagBody": { + "UpdateTenantPackageBody": { "properties": { - "tenantId": { + "name": { "type": "string" }, - "url": { - "type": "string" + "monthlyCostUSD": { + "type": "number", + "format": "double" }, - "tag": { - "type": "string" - } - }, - "type": "object", - "additionalProperties": false - }, - "GetFeedPostsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "yearlyCostUSD": { + "type": "number", + "format": "double" }, - "feedPosts": { - "items": { - "$ref": "#/components/schemas/FeedPost" - }, - "type": "array" - } - }, - "required": [ - "status", - "feedPosts" - ], - "type": "object", - "additionalProperties": false - }, - "CreateFeedPostsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "maxMonthlyPageLoads": { + "type": "number", + "format": "double" }, - "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" + "maxMonthlyAPICredits": { + "type": "number", + "format": "double" }, - "defaultTestData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "maxMonthlyComments": { + "type": "number", + "format": "double" }, - "defaultTranslationsByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "maxConcurrentUsers": { + "type": "number", + "format": "double" }, - "defaultEJS": { + "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": { + "type": "boolean" + }, + "hasWhiteLabeling": { + "type": "boolean" + }, + "forWhoText": { "type": "string" - } - }, - "required": [ - "emailTemplateId", - "defaultTestData", - "defaultTranslationsByLocale", - "defaultEJS" - ], - "type": "object", - "additionalProperties": false - }, - "GetEmailTemplateDefinitionsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" }, - "definitions": { + "featureTaglines": { "items": { - "$ref": "#/components/schemas/EmailTemplateDefinition" + "type": "string" }, "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" + }, + "flexMinimumCostCents": { + "type": "number", + "format": "double" } }, - "required": [ - "status", - "definitions" - ], "type": "object", "additionalProperties": false }, - "EmailTemplateRenderErrorResponse": { + "APITenantDailyUsage": { "properties": { "id": { "type": "string" @@ -8194,13 +8041,55 @@ "tenantId": { "type": "string" }, - "customTemplateId": { - "type": "string" + "yearNumber": { + "type": "number", + "format": "double" }, - "error": { - "type": "string" + "monthNumber": { + "type": "number", + "format": "double" }, - "count": { + "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" }, @@ -8208,628 +8097,697 @@ "type": "string", "format": "date-time" }, - "lastOccurredAt": { - "type": "string", - "format": "date-time" + "billed": { + "type": "boolean" + }, + "ignored": { + "type": "boolean" + }, + "apiErrorCount": { + "type": "number", + "format": "double" } }, "required": [ "id", "tenantId", - "customTemplateId", - "error", - "count", + "yearNumber", + "monthNumber", + "dayNumber", + "commentFetchCount", + "commentCreateCount", + "conversationCreateCount", + "voteCount", + "accountCreatedCount", + "userMentionSearch", + "hashTagSearch", + "gifSearchTrending", + "gifSearch", + "apiCreditsUsed", "createdAt", - "lastOccurredAt" + "billed", + "ignored", + "apiErrorCount" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplateRenderErrorsResponse": { + "GetTenantDailyUsagesResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "renderErrors": { + "tenantDailyUsages": { "items": { - "$ref": "#/components/schemas/EmailTemplateRenderErrorResponse" + "$ref": "#/components/schemas/APITenantDailyUsage" }, "type": "array" } }, "required": [ "status", - "renderErrors" + "tenantDailyUsages" ], "type": "object", "additionalProperties": false }, - "CustomEmailTemplate": { + "MetaItem": { "properties": { - "_id": { + "name": { "type": "string" }, - "tenantId": { - "type": "string" + "values": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "name", + "values" + ], + "type": "object", + "additionalProperties": false + }, + "QuestionResult": { + "properties": { + "_id": { + "type": "string" }, - "emailTemplateId": { + "tenantId": { "type": "string" }, - "displayName": { + "urlId": { + "type": "string" + }, + "anonUserId": { + "type": "string" + }, + "userId": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time" }, - "updatedAt": { - "type": "string", - "format": "date-time", - "nullable": true - }, - "updatedByUserId": { - "type": "string", - "nullable": true + "value": { + "type": "integer", + "format": "int32" }, - "domain": { + "commentId": { "type": "string", "nullable": true }, - "ejs": { + "questionId": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true }, - "testData": {} + "ipHash": { + "type": "string" + } }, "required": [ "_id", "tenantId", - "emailTemplateId", - "displayName", + "urlId", + "anonUserId", + "userId", "createdAt", - "updatedAt", - "updatedByUserId", - "ejs", - "translationOverridesByLocale", - "testData" + "value", + "questionId", + "ipHash" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplateResponse": { + "GetQuestionResultResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, "required": [ "status", - "emailTemplate" + "questionResult" ], "type": "object", "additionalProperties": false }, - "GetEmailTemplatesResponse": { + "GetQuestionResultsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplates": { + "questionResults": { "items": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "$ref": "#/components/schemas/QuestionResult" }, "type": "array" } }, "required": [ "status", - "emailTemplates" + "questionResults" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateResponse": { + "CreateQuestionResultResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "emailTemplate": { - "$ref": "#/components/schemas/CustomEmailTemplate" + "questionResult": { + "$ref": "#/components/schemas/QuestionResult" } }, "required": [ "status", - "emailTemplate" + "questionResult" ], "type": "object", "additionalProperties": false }, - "CreateEmailTemplateBody": { + "CreateQuestionResultBody": { "properties": { - "emailTemplateId": { + "urlId": { "type": "string" }, - "displayName": { + "value": { + "type": "number", + "format": "double" + }, + "questionId": { "type": "string" }, - "ejs": { + "anonUserId": { "type": "string" }, - "domain": { + "userId": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "commentId": { + "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true } }, "required": [ - "emailTemplateId", - "displayName", - "ejs" + "urlId", + "value", + "questionId" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "UpdateEmailTemplateBody": { + "UpdateQuestionResultBody": { "properties": { - "emailTemplateId": { + "urlId": { "type": "string" }, - "displayName": { + "anonUserId": { "type": "string" }, - "ejs": { + "userId": { "type": "string" }, - "domain": { + "value": { + "type": "number", + "format": "double" + }, + "commentId": { "type": "string" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "questionId": { + "type": "string" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "meta": { + "items": { + "$ref": "#/components/schemas/MetaItem" + }, + "type": "array", + "nullable": true } }, "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "RenderEmailTemplateResponse": { + "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": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "v": { + "$ref": "#/components/schemas/Record_number.number_" }, - "html": { - "type": "string" + "total": { + "type": "integer", + "format": "int64" } }, "required": [ - "status", - "html" + "v", + "total" ], "type": "object", "additionalProperties": false }, - "RenderEmailTemplateBody": { + "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": { - "emailTemplateId": { - "type": "string" + "dataByDateBucket": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "ejs": { - "type": "string" + "dataByUrlId": { + "$ref": "#/components/schemas/Record_string.QuestionDatum_" }, - "testData": { - "$ref": "#/components/schemas/Record_string.unknown_" + "countsByValue": { + "$ref": "#/components/schemas/Int32Map" }, - "translationOverridesByLocale": { - "$ref": "#/components/schemas/Record_string.Record_string.string__" + "total": { + "type": "integer", + "format": "int64" + }, + "average": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" } }, "required": [ - "emailTemplateId", - "ejs" + "total", + "createdAt" ], "type": "object", "additionalProperties": false }, - "AddDomainConfigParams": { + "AggregateQuestionResultsResponse": { "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { - "type": "string" - }, - "emailFromEmail": { - "type": "string" - }, - "logoSrc": { - "type": "string" - }, - "logoSrc100px": { - "type": "string" - }, - "footerUnsubscribeURL": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "data": { + "$ref": "#/components/schemas/QuestionResultAggregationOverall" } }, "required": [ - "domain" + "status", + "data" ], "type": "object", "additionalProperties": false }, - "UpdateDomainConfigParams": { - "properties": { - "domain": { - "type": "string" - }, - "emailFromName": { - "type": "string" - }, - "emailFromEmail": { - "type": "string" - }, - "logoSrc": { + "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" + }, + "data": { + "$ref": "#/components/schemas/Record_string.QuestionResultAggregationOverall_" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "BulkAggregateQuestionItem": { + "properties": { + "aggId": { "type": "string" }, - "logoSrc100px": { + "questionId": { "type": "string" }, - "footerUnsubscribeURL": { + "questionIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "urlId": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" + "timeBucket": { + "$ref": "#/components/schemas/AggregateTimeBucket" + }, + "startDate": { + "type": "string", + "format": "date-time" } }, "required": [ - "domain" + "aggId" ], "type": "object", "additionalProperties": false }, - "PatchDomainConfigParams": { + "BulkAggregateQuestionResultsRequest": { "properties": { - "domain": { - "type": "string" + "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" }, - "emailFromName": { + "isDeletedUser": { + "type": "boolean" + }, + "phrase": { "type": "string" }, - "emailFromEmail": { + "badWord": { "type": "string" }, - "logoSrc": { + "word": { "type": "string" }, - "logoSrc100px": { + "locale": { "type": "string" }, - "footerUnsubscribeURL": { + "tenantBadgeId": { "type": "string" }, - "emailHeaders": { - "$ref": "#/components/schemas/Record_string.string_" - } - }, - "type": "object", - "additionalProperties": false - }, - "APICommentBase": { - "properties": { - "id": { + "badgeId": { "type": "string" }, - "aiDeterminedSpam": { + "wasLoggedIn": { "type": "boolean" }, - "anonUserId": { - "type": "string", - "nullable": true - }, - "approved": { + "foundUser": { "type": "boolean" }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "badges": { - "items": { - "$ref": "#/components/schemas/CommentUserBadgeInfo" - }, - "type": "array", - "nullable": true + "verified": { + "type": "boolean" }, - "comment": { + "engine": { "type": "string" }, - "commentHTML": { + "engineResponse": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true + "engineTokens": { + "type": "number", + "format": "double" }, - "commenterLink": { - "type": "string", - "nullable": true + "trustFactor": { + "type": "number", + "format": "double" }, - "commenterName": { + "source": { "type": "string" }, - "date": { - "type": "string", - "format": "date-time", - "nullable": true + "rule": { + "$ref": "#/components/schemas/SpamRule" }, - "displayLabel": { - "type": "string", - "nullable": true + "userId": { + "type": "string" }, - "domain": { - "allOf": [ - { - "$ref": "#/components/schemas/FDomain" - } - ], - "nullable": true + "subscribers": { + "type": "number", + "format": "double" }, - "externalId": { - "type": "string" + "notificationCount": { + "type": "number", + "format": "double" }, - "externalParentId": { - "type": "string", + "votesBefore": { + "type": "number", + "format": "double", "nullable": true }, - "expireAt": { - "type": "string", - "format": "date-time", + "votesUpBefore": { + "type": "number", + "format": "double", "nullable": true }, - "feedbackIds": { - "items": { - "type": "string" - }, - "type": "array" - }, - "flagCount": { - "type": "integer", - "format": "int32", + "votesDownBefore": { + "type": "number", + "format": "double", "nullable": true }, - "fromProductId": { - "type": "integer", - "format": "int32" + "votesAfter": { + "type": "number", + "format": "double", + "nullable": true }, - "hasCode": { - "type": "boolean" + "votesUpAfter": { + "type": "number", + "format": "double", + "nullable": true }, - "hasImages": { - "type": "boolean" + "votesDownAfter": { + "type": "number", + "format": "double", + "nullable": true }, - "hasLinks": { - "type": "boolean" + "repeatAction": { + "$ref": "#/components/schemas/RepeatCommentHandlingAction" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "reason": { + "$ref": "#/components/schemas/RepeatCommentCheckIgnoredReason" }, - "isByAdmin": { + "otherData": {}, + "spamBefore": { "type": "boolean" }, - "isByModerator": { + "spamAfter": { "type": "boolean" }, - "isDeleted": { - "type": "boolean" + "permanentFlag": { + "type": "string", + "enum": [ + "permanent" + ], + "nullable": false }, - "isDeletedUser": { + "approvedBefore": { "type": "boolean" }, - "isPinned": { - "type": "boolean", - "nullable": true - }, - "isLocked": { - "type": "boolean", - "nullable": true - }, - "isSpam": { + "approvedAfter": { "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": { + "reviewedBefore": { "type": "boolean" }, - "notificationSentForParentTenant": { + "reviewedAfter": { "type": "boolean" }, - "pageTitle": { + "textBefore": { + "type": "string" + }, + "textAfter": { + "type": "string" + }, + "expireBefore": { "type": "string", + "format": "date-time", "nullable": true }, - "parentId": { + "expireAfter": { "type": "string", + "format": "date-time", "nullable": true }, - "rating": { + "flagCountBefore": { "type": "number", "format": "double", "nullable": true }, - "reviewed": { - "type": "boolean" + "trustFactorBefore": { + "type": "number", + "format": "double" }, - "tenantId": { - "type": "string" + "trustFactorAfter": { + "type": "number", + "format": "double" }, - "url": { + "referencedCommentId": { "type": "string" }, - "urlId": { + "invalidLocale": { "type": "string" }, - "urlIdRaw": { + "detectedLocale": { "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 + "detectedLanguage": { + "type": "string" } }, - "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": { + "CommentLogEntry": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "d": { + "type": "string", + "format": "date-time" }, - "comment": { - "$ref": "#/components/schemas/APIComment" - } - }, - "required": [ - "status", - "comment" - ], - "type": "object", - "additionalProperties": false - }, - "APIGetCommentsResponse": { - "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "t": { + "$ref": "#/components/schemas/CommentLogType" }, - "comments": { - "items": { - "$ref": "#/components/schemas/APIComment" - }, - "type": "array" + "da": { + "$ref": "#/components/schemas/CommentLogData" } }, "required": [ - "status", - "comments" + "d", + "t" ], "type": "object", "additionalProperties": false }, - "UpdatableCommentParams": { + "FComment": { "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, "urlId": { "type": "string" }, @@ -8851,6 +8809,10 @@ ], "nullable": true }, + "anonUserId": { + "type": "string", + "nullable": true + }, "commenterEmail": { "type": "string", "nullable": true @@ -8873,8 +8835,8 @@ "nullable": true }, "date": { - "type": "number", - "format": "double", + "type": "string", + "format": "date-time", "nullable": true }, "localDateString": { @@ -8914,6 +8876,10 @@ "format": "date-time", "nullable": true }, + "verificationId": { + "type": "string", + "nullable": true + }, "notificationSentForParent": { "type": "boolean" }, @@ -8923,6 +8889,9 @@ "reviewed": { "type": "boolean" }, + "imported": { + "type": "boolean" + }, "externalId": { "type": "string" }, @@ -8937,15 +8906,52 @@ "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" + }, + "hasCode": { + "type": "boolean" + }, "approved": { "type": "boolean" }, + "locale": { + "type": "string", + "nullable": true + }, "isDeleted": { "type": "boolean" }, "isDeletedUser": { "type": "boolean" }, + "isBannedUser": { + "type": "boolean" + }, "isByAdmin": { "type": "boolean" }, @@ -8965,12 +8971,24 @@ "format": "int32", "nullable": true }, + "rating": { + "type": "number", + "format": "double", + "nullable": true + }, "displayLabel": { "type": "string", "nullable": true }, + "fromProductId": { + "type": "integer", + "format": "int32" + }, "meta": { "properties": { + "wpId": { + "type": "string" + }, "wpUserId": { "type": "string" }, @@ -8982,6 +9000,39 @@ "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" @@ -8989,447 +9040,2346 @@ "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" + }, + "editKey": { + "type": "string" + }, + "tosAcceptedAt": { + "type": "string", + "format": "date-time" + }, + "botId": { + "type": "string" } }, + "required": [ + "_id", + "tenantId", + "urlId", + "url", + "commenterName", + "comment", + "commentHTML", + "date", + "verified", + "approved", + "locale" + ], "type": "object", "additionalProperties": false }, - "DeleteCommentAction": { - "type": "string", - "enum": [ - "already-deleted", - "hard-removed", - "anonymized" - ] + "FindCommentsByRangeItem": { + "properties": { + "comment": { + "allOf": [ + { + "$ref": "#/components/schemas/FComment" + } + ], + "nullable": true + }, + "result": { + "$ref": "#/components/schemas/QuestionResult" + } + }, + "required": [ + "comment", + "result" + ], + "type": "object", + "additionalProperties": false }, - "DeleteCommentResult": { + "FindCommentsByRangeResponse": { "properties": { - "action": { - "$ref": "#/components/schemas/DeleteCommentAction" + "results": { + "items": { + "$ref": "#/components/schemas/FindCommentsByRangeItem" + }, + "type": "array" }, - "status": { - "$ref": "#/components/schemas/APIStatus" + "createdAt": { + "type": "string", + "format": "date-time" } }, "required": [ - "action", - "status" + "results", + "createdAt" ], - "type": "object" + "type": "object", + "additionalProperties": false }, - "APISaveCommentResponse": { + "CombineQuestionResultsWithCommentsResponse": { "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_" + "data": { + "$ref": "#/components/schemas/FindCommentsByRangeResponse" } }, "required": [ "status", - "comment", - "user" + "data" ], "type": "object", "additionalProperties": false }, - "CreateCommentParams": { + "QuestionConfig": { "properties": { - "date": { - "type": "integer", - "format": "int64" + "_id": { + "type": "string" }, - "localDateString": { + "tenantId": { "type": "string" }, - "localDateHours": { - "type": "integer", - "format": "int32" + "name": { + "type": "string" }, - "commenterName": { + "question": { "type": "string" }, - "commenterEmail": { - "type": "string", - "nullable": true + "summaryLabel": { + "type": "string" }, - "commenterLink": { + "helpText": { + "type": "string" + }, + "createdAt": { "type": "string", - "nullable": true + "format": "date-time" }, - "comment": { + "createdBy": { "type": "string" }, - "productId": { - "type": "integer", - "format": "int32" + "usedCount": { + "type": "number", + "format": "double" }, - "userId": { + "lastUsed": { "type": "string", - "nullable": true + "format": "date-time" }, - "avatarSrc": { - "type": "string", - "nullable": true - }, - "parentId": { - "type": "string", - "nullable": true + "type": { + "type": "string" }, - "mentions": { - "items": { - "$ref": "#/components/schemas/CommentUserMentionInfo" - }, - "type": "array" + "numStars": { + "type": "number", + "format": "double" }, - "hashTags": { - "items": { - "$ref": "#/components/schemas/CommentUserHashTagInfo" - }, - "type": "array" + "min": { + "type": "number", + "format": "double" }, - "pageTitle": { - "type": "string" + "max": { + "type": "number", + "format": "double" }, - "isFromMyAccountPage": { - "type": "boolean" + "defaultValue": { + "type": "number", + "format": "double" }, - "url": { + "labelNegative": { "type": "string" }, - "urlId": { + "labelPositive": { "type": "string" }, - "meta": { - "additionalProperties": false, - "type": "object" - }, - "moderationGroupIds": { + "customOptions": { "items": { - "type": "string" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" }, - "rating": { - "type": "number", - "format": "double" - }, - "fromOfflineRestore": { - "type": "boolean" - }, - "autoplayDelayMS": { - "type": "integer", - "format": "int64" - }, - "feedbackIds": { + "subQuestionIds": { "items": { "type": "string" }, "type": "array" }, - "questionValues": { - "$ref": "#/components/schemas/Record_string.string-or-number_" - }, - "tos": { - "type": "boolean" - }, - "approved": { - "type": "boolean" - }, - "domain": { - "type": "string" - }, - "ip": { - "type": "string" - }, - "isPinned": { - "type": "boolean" - }, - "locale": { - "type": "string", - "description": "Example: en_us" - }, - "reviewed": { - "type": "boolean" - }, - "verified": { + "alwaysShowSubQuestions": { "type": "boolean" }, - "votes": { - "type": "integer", - "format": "int32" - }, - "votesDown": { - "type": "integer", - "format": "int32" - }, - "votesUp": { - "type": "integer", - "format": "int32" + "reportingOrder": { + "type": "number", + "format": "double" } }, "required": [ - "commenterName", - "comment", - "url", - "urlId", - "locale" + "_id", + "tenantId", + "name", + "question", + "helpText", + "createdAt", + "createdBy", + "usedCount", + "lastUsed", + "type", + "numStars", + "min", + "max", + "defaultValue", + "labelNegative", + "labelPositive", + "customOptions", + "subQuestionIds", + "alwaysShowSubQuestions", + "reportingOrder" ], "type": "object", "additionalProperties": false }, - "FlagCommentResponse": { + "GetQuestionConfigResponse": { "properties": { - "statusCode": { - "type": "integer", - "format": "int32" - }, "status": { "$ref": "#/components/schemas/APIStatus" }, - "code": { - "type": "string" - }, - "reason": { - "type": "string" - }, - "wasUnapproved": { - "type": "boolean" + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" } }, "required": [ - "status" + "status", + "questionConfig" ], "type": "object", "additionalProperties": false }, - "BlockFromCommentParams": { + "GetQuestionConfigsResponse": { "properties": { - "commentIdsToCheck": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionConfigs": { "items": { - "type": "string" + "$ref": "#/components/schemas/QuestionConfig" }, "type": "array" } }, + "required": [ + "status", + "questionConfigs" + ], "type": "object", "additionalProperties": false }, - "UnBlockFromCommentParams": { + "CreateQuestionConfigResponse": { "properties": { - "commentIdsToCheck": { - "items": { - "type": "string" - }, - "type": "array" + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "questionConfig": { + "$ref": "#/components/schemas/QuestionConfig" } }, + "required": [ + "status", + "questionConfig" + ], "type": "object", "additionalProperties": false }, - "APIAuditLog": { + "CreateQuestionConfigBody": { "properties": { - "_id": { + "name": { "type": "string" }, - "userId": { + "question": { "type": "string" }, - "username": { + "helpText": { "type": "string" }, - "resourceName": { + "type": { "type": "string" }, - "crudType": { - "type": "string", - "enum": [ - "c", - "r", - "u", - "d", - "login" - ] + "numStars": { + "type": "number", + "format": "double" }, - "from": { - "type": "string", - "enum": [ - "ui", - "api", - "cron" - ] + "min": { + "type": "number", + "format": "double" }, - "url": { - "type": "string", - "nullable": true + "max": { + "type": "number", + "format": "double" }, - "ip": { - "type": "string", - "nullable": true + "defaultValue": { + "type": "number", + "format": "double" }, - "when": { - "type": "string", - "format": "date-time" + "labelNegative": { + "type": "string" }, - "description": { + "labelPositive": { "type": "string" }, - "serverStartDate": { - "type": "string", - "format": "date-time" + "customOptions": { + "items": { + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" + }, + "type": "array" }, - "objectDetails": { - "allOf": [ - { - "$ref": "#/components/schemas/Record_string.any_" - } - ], - "nullable": true + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" } }, "required": [ - "_id", - "resourceName", - "crudType" + "name", + "question", + "type", + "reportingOrder" ], "type": "object", - "additionalProperties": false + "additionalProperties": {} }, - "GetAuditLogsResponse": { + "UpdateQuestionConfigBody": { "properties": { - "status": { - "$ref": "#/components/schemas/APIStatus" + "name": { + "type": "string" }, - "auditLogs": { + "question": { + "type": "string" + }, + "helpText": { + "type": "string" + }, + "type": { + "type": "string" + }, + "numStars": { + "type": "number", + "format": "double" + }, + "min": { + "type": "number", + "format": "double" + }, + "max": { + "type": "number", + "format": "double" + }, + "defaultValue": { + "type": "number", + "format": "double" + }, + "labelNegative": { + "type": "string" + }, + "labelPositive": { + "type": "string" + }, + "customOptions": { "items": { - "$ref": "#/components/schemas/APIAuditLog" + "properties": { + "imageSrc": { + "type": "string" + }, + "name": { + "type": "string" + } + }, + "required": [ + "imageSrc", + "name" + ], + "type": "object" }, "type": "array" + }, + "subQuestionIds": { + "items": { + "type": "string" + }, + "type": "array" + }, + "alwaysShowSubQuestions": { + "type": "boolean" + }, + "reportingOrder": { + "type": "number", + "format": "double" } }, - "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_" + "additionalProperties": {} }, - "AggregationValue": { + "PendingCommentToSyncOutbound": { "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" + "_id": { + "type": "string" }, - "stringValue": { + "commentId": { "type": "string" }, - "numericValue": { + "comment": { + "$ref": "#/components/schemas/FComment" + }, + "externalId": { + "type": "string", + "nullable": true + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "tenantId": { + "type": "string" + }, + "attemptCount": { "type": "number", "format": "double" }, - "distinctCount": { - "type": "integer", - "format": "int64" + "nextAttemptAt": { + "type": "string", + "format": "date-time" }, - "distinctCounts": { - "$ref": "#/components/schemas/DistinctAccumulator" + "eventType": { + "type": "number", + "format": "double" + }, + "type": { + "type": "number", + "format": "double" + }, + "domain": { + "type": "string" + }, + "lastError": { + "additionalProperties": false, + "type": "object" + }, + "webhookId": { + "type": "string" } }, - "type": "object" + "required": [ + "_id", + "commentId", + "externalId", + "createdAt", + "tenantId", + "attemptCount", + "nextAttemptAt", + "eventType", + "type", + "domain", + "lastError" + ], + "type": "object", + "additionalProperties": false }, - "Record_string.AggregationValue_": { - "properties": {}, - "additionalProperties": { - "$ref": "#/components/schemas/AggregationValue" + "GetPendingWebhookEventsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "pendingWebhookEvents": { + "items": { + "$ref": "#/components/schemas/PendingCommentToSyncOutbound" + }, + "type": "array" + } }, + "required": [ + "status", + "pendingWebhookEvents" + ], "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_" + "GetPendingWebhookEventCountResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" }, - { - "properties": { - "groups": { - "$ref": "#/components/schemas/GroupValues" - } - }, - "type": "object" + "count": { + "type": "number", + "format": "double" } - ] + }, + "required": [ + "status", + "count" + ], + "type": "object", + "additionalProperties": false }, - "AggregationResponse": { - "description": "The API response returns the aggregated data along with simple stats", + "GetNotificationsResponse": { "properties": { "status": { "$ref": "#/components/schemas/APIStatus" }, - "data": { + "notifications": { "items": { - "$ref": "#/components/schemas/AggregationItem" + "$ref": "#/components/schemas/UserNotification" }, "type": "array" - }, - "stats": { - "properties": { - "timeMS": { - "type": "integer", - "format": "int64" - }, - "scanned": { - "type": "integer", - "format": "int64" - } - }, - "required": [ - "timeMS", - "scanned" - ], - "type": "object" } }, "required": [ "status", - "data" + "notifications" ], "type": "object", "additionalProperties": false }, - "QueryPredicate": { + "GetNotificationCountResponse": { "properties": { - "key": { - "type": "string" + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "count": { + "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" + }, + "count": { + "type": "number", + "format": "double" + }, + "createdAt": { + "type": "string", + "format": "date-time" + }, + "expireAt": { + "type": "string", + "format": "date-time" + } + }, + "required": [ + "_id", + "count", + "createdAt", + "expireAt" + ], + "type": "object", + "additionalProperties": false + }, + "GetCachedNotificationCountResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "data": { + "$ref": "#/components/schemas/UserNotificationCount" + } + }, + "required": [ + "status", + "data" + ], + "type": "object", + "additionalProperties": false + }, + "Moderator": { + "properties": { + "_id": { + "type": "string" + }, + "tenantId": { + "type": "string" + }, + "name": { + "type": "string", + "nullable": true + }, + "userId": { + "type": "string", + "nullable": true + }, + "acceptedInvite": { + "type": "boolean" + }, + "email": { + "type": "string", + "nullable": true + }, + "markReviewedCount": { + "type": "number", + "format": "double" + }, + "deletedCount": { + "type": "number", + "format": "double" + }, + "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", + "additionalProperties": false + }, + "GetModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderator": { + "$ref": "#/components/schemas/Moderator" + } + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false + }, + "GetModeratorsResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderators": { + "items": { + "$ref": "#/components/schemas/Moderator" + }, + "type": "array" + } + }, + "required": [ + "status", + "moderators" + ], + "type": "object", + "additionalProperties": false + }, + "CreateModeratorResponse": { + "properties": { + "status": { + "$ref": "#/components/schemas/APIStatus" + }, + "moderator": { + "$ref": "#/components/schemas/Moderator" + } + }, + "required": [ + "status", + "moderator" + ], + "type": "object", + "additionalProperties": false + }, + "CreateModeratorBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "name", + "email" + ], + "type": "object", + "additionalProperties": {} + }, + "UpdateModeratorBody": { + "properties": { + "name": { + "type": "string" + }, + "email": { + "type": "string" + }, + "userId": { + "type": "string" + }, + "moderationGroupIds": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object", + "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": [ @@ -9440,200 +11390,3750 @@ "type": "number", "format": "double" }, - { - "type": "boolean" + { + "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" + } + } + } + } + } + }, + "/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" + } + } + } }, - "operator": { - "type": "string", - "enum": [ - "eq", - "not_eq", - "greater_than", - "less_than", - "contains" - ] + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, - "required": [ - "key", - "value", - "operator" - ], - "type": "object", - "additionalProperties": false - }, - "AggregationOpType": { - "type": "string", - "enum": [ - "sum", - "countDistinct", - "distinct", - "avg", - "min", - "max", - "count" + "tags": [ + "Moderation" ], - "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" + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } }, - "op": { - "$ref": "#/components/schemas/AggregationOpType", - "description": "The type of operation" + { + "in": "query", + "name": "direction", + "required": false, + "schema": { + "type": "string" + } }, - "alias": { - "type": "string", - "description": "Optional alias for the output; if not provided, a default alias is computed" + { + "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" + } + } + } }, - "expandArray": { - "type": "boolean" + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } + } + } } }, - "required": [ - "field", - "op" + "tags": [ + "Moderation" ], - "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" + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } }, - "groupBy": { - "items": { + { + "in": "path", + "name": "voteId", + "required": true, + "schema": { "type": "string" - }, - "type": "array" + } }, - "operations": { - "items": { - "$ref": "#/components/schemas/AggregationOperation" - }, - "type": "array" + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] + } + }, + "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "get": { + "operationId": "GetCommentBanStatus", + "responses": { + "200": { + "description": "Ok", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetCommentBanStatusResponse" + } + } + } }, - "sort": { - "properties": { - "dir": { - "type": "string", - "enum": [ - "asc", - "desc" - ] - }, - "field": { - "type": "string" + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" + } } - }, - "required": [ - "dir", - "field" - ], - "type": "object" + } } }, - "required": [ - "resourceName", - "operations" + "tags": [ + "Moderation" ], - "type": "object", - "additionalProperties": false + "security": [], + "parameters": [ + { + "in": "path", + "name": "commentId", + "required": true, + "schema": { + "type": "string" + } + }, + { + "in": "query", + "name": "sso", + "required": false, + "schema": { + "type": "string" + } + } + ] } }, - "securitySchemes": { - "api_key": { - "type": "apiKey", - "name": "x-api-key", - "in": "header" - } - } - }, - "info": { - "title": "fastcomments", - "version": "0.0.0", - "contact": {} - }, - "paths": { - "/user-search/{tenantId}": { + "/auth/my-account/moderate-comments/user-ban-preference": { "get": { - "operationId": "SearchUsers", + "operationId": "GetUserBanPreference", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/SearchUsersSectionedResponse" - }, - { - "$ref": "#/components/schemas/SearchUsersResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$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", @@ -9641,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": { @@ -9690,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" } @@ -9721,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" @@ -9758,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" @@ -9775,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" } }, { @@ -9833,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" } }, { @@ -9920,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" @@ -9966,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" @@ -10012,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", @@ -10081,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" } ] } @@ -10106,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": { @@ -10121,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": { @@ -10200,7 +15764,7 @@ }, { "in": "query", - "name": "urlId", + "name": "search", "required": true, "schema": { "type": "string" @@ -10208,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" ], @@ -10275,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}": { @@ -10323,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" } } } @@ -10385,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" } } } @@ -10474,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" } } } @@ -10538,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" } } } @@ -10618,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" } } } @@ -10675,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" } } } @@ -10745,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" } } } @@ -10815,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" } } } @@ -10872,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" } } } @@ -10927,7 +16498,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -10945,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" } } } @@ -11000,7 +16574,7 @@ { "in": "query", "name": "endTime", - "required": true, + "required": false, "schema": { "format": "int64", "type": "integer" @@ -11018,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" } } } @@ -11080,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" } } } @@ -11099,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}": { @@ -11160,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" } } } @@ -11422,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" } } } @@ -11502,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" } } } @@ -11572,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" } } } @@ -11627,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" } } } @@ -11715,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" } } } @@ -11801,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" } } } @@ -11864,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" } } } @@ -11926,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" } } } @@ -11988,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" } } } @@ -12050,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" } } } @@ -12112,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" } } } @@ -12174,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" } } } @@ -12229,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", @@ -12422,6 +18153,7 @@ "content": { "application/json": { "schema": { + "title": "GetSSOUsersResponse", "properties": { "users": { "items": { @@ -12966,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" } } } @@ -13011,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" } } } @@ -13086,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" } } } @@ -13149,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" } } } @@ -13204,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" } } } @@ -13251,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" } } } @@ -13296,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" } } } @@ -13351,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" } } } @@ -13398,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" } } } @@ -13486,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" } } } @@ -13535,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" } } } @@ -13582,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" } } } @@ -13647,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" } } } @@ -13694,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" } } } @@ -13766,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" } } } @@ -13823,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" } } } @@ -13878,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" } } } @@ -13943,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" } } } @@ -13988,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" } } } @@ -14043,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" } } } @@ -14098,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" } } } @@ -14152,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" } } } @@ -14201,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" } } } @@ -14246,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" } } } @@ -14309,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" } } } @@ -14372,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" } } } @@ -14435,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" } } } @@ -14481,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" } } } @@ -14530,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" } } } @@ -14585,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" } } } @@ -14630,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" } } } @@ -14685,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" } } } @@ -14740,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" } } } @@ -14787,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" } } } @@ -14833,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" } } } @@ -14882,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" } } } @@ -14957,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" } } } @@ -15002,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" } } } @@ -15057,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" } } } @@ -15104,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" } } } @@ -15190,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" } } } @@ -15239,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" } } } @@ -15330,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" } } } @@ -15387,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" } } } @@ -15497,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" } } } @@ -15542,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" } } } @@ -15597,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" } } } @@ -15644,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" } } } @@ -15690,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" } } } @@ -15739,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" } } } @@ -15836,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" } } } @@ -15924,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" } } } @@ -15971,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" } } } @@ -16059,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" } } } @@ -16138,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" } } } @@ -16203,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" } } } @@ -16248,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" } } } @@ -16295,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" } } } @@ -16340,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" } } } @@ -16395,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" } } } @@ -16450,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" } } } @@ -16496,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" } } } @@ -16545,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" } } } @@ -16600,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" } } } @@ -16646,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" } } } @@ -16695,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" } } } @@ -16744,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" } } } @@ -16799,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" } } } @@ -16840,6 +22776,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteHashTagRequestBody", "properties": { "tenantId": { "type": "string" @@ -16861,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" } } } @@ -16927,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" } } } @@ -17008,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" } } } @@ -17065,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" } } } @@ -17104,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" } } } @@ -17160,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" } } } @@ -17215,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" } } } @@ -17260,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" } } } @@ -17315,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" } } } @@ -17362,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" } } } @@ -17408,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" } } } @@ -17457,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" } } } @@ -17514,6 +23487,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigsResponse", "anyOf": [ { "properties": { @@ -17573,6 +23547,7 @@ "content": { "application/json": { "schema": { + "title": "AddDomainConfigResponse", "anyOf": [ { "properties": { @@ -17644,6 +23619,7 @@ "content": { "application/json": { "schema": { + "title": "GetDomainConfigResponse", "anyOf": [ { "properties": { @@ -17711,6 +23687,7 @@ "content": { "application/json": { "schema": { + "title": "DeleteDomainConfigResponse", "properties": { "status": {} }, @@ -17757,6 +23734,7 @@ "content": { "application/json": { "schema": { + "title": "PutDomainConfigResponse", "anyOf": [ { "properties": { @@ -17834,6 +23812,7 @@ "content": { "application/json": { "schema": { + "title": "PatchDomainConfigResponse", "anyOf": [ { "properties": { @@ -17913,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" } } } @@ -17958,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" } } } @@ -18037,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" } } } @@ -18100,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" } } } @@ -18244,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" + } } ] }, @@ -18255,14 +24264,17 @@ "content": { "application/json": { "schema": { - "anyOf": [ - { - "$ref": "#/components/schemas/APISaveCommentResponse" - }, - { - "$ref": "#/components/schemas/APIError" - } - ] + "$ref": "#/components/schemas/APISaveCommentResponse" + } + } + } + }, + "default": { + "description": "Error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/APIError" } } } @@ -18337,6 +24349,7 @@ "application/json": { "schema": { "items": { + "title": "SaveCommentsBulkResponse", "anyOf": [ { "$ref": "#/components/schemas/APISaveCommentResponse" @@ -18423,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" } } } @@ -18486,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" } } } @@ -18549,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" } } } @@ -18622,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" } } } @@ -18695,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" } } } @@ -18778,7 +24806,15 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AggregationResponse" + "title": "AggregateResponse", + "anyOf": [ + { + "$ref": "#/components/schemas/AggregationResponse" + }, + { + "$ref": "#/components/schemas/AggregationAPIError" + } + ] } } } From c2deed6f1a928dde4757540a1a325a955d1bb1b0 Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 22:19:27 -0700 Subject: [PATCH 2/6] docs: document ModerationAPI client --- README.md | 57 ++++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 48 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2541407..bf955a3 100644 --- a/README.md +++ b/README.md @@ -28,9 +28,9 @@ Or in Xcode: The FastComments Swift SDK consists of several modules: -- **Client Module** - Auto-generated API client for FastComments REST APIs +- **Client Module** - API client for FastComments REST APIs - Complete type definitions for all API models - - Both authenticated (`DefaultAPI`) and public (`PublicAPI`) endpoints + - Authenticated (`DefaultAPI`), public (`PublicAPI`), and moderation (`ModerationAPI`) methods - Full async/await support - See [client/README.md](client/README.md) for detailed API documentation @@ -90,6 +90,33 @@ do { } ``` +### Using the Moderation API + +```swift +import FastCommentsSwift + +// Create configuration with API key +let defaultApi = DefaultAPI() +defaultApi.apiKey = "your-api-key" + +// List comments awaiting moderation +// Moderation methods accept an `sso` token to act as an SSO-authenticated moderator +do { + let response = try await ModerationAPI.getApiComments( + page: 0, + count: 30, + sso: ssoToken + ) + + print("Found \(response.comments.count) comments to moderate") + for comment in response.comments { + print("Comment ID: \(comment.id), Text: \(comment.commentHTML)") + } +} catch { + print("Error: \(error)") +} +``` + ### Using SSO for Authentication #### Secure SSO (Recommended for Production) @@ -141,13 +168,13 @@ do { } ``` -## Public vs Secured APIs +## API Clients -The FastComments SDK provides two types of API endpoints: +The FastComments SDK provides three API clients: -### PublicAPI - Client-Safe Endpoints +### PublicAPI - Client-Safe Methods -The `PublicAPI` contains endpoints that are safe to call from client-side code (iOS/macOS apps). These endpoints: +The `PublicAPI` contains methods that are safe to call from client-side code (iOS/macOS apps). These methods: - Do not require an API key - Can use SSO tokens for authentication - Are rate-limited per user/device @@ -155,15 +182,27 @@ The `PublicAPI` contains endpoints that are safe to call from client-side code ( **Example use case**: Fetching and creating comments in your iOS app -### DefaultAPI - Server-Side Endpoints +### DefaultAPI - Server-Side Methods -The `DefaultAPI` contains authenticated endpoints that require an API key. These endpoints: +The `DefaultAPI` contains authenticated methods that require an API key. These methods: - Require your FastComments API key - Should ONLY be called from server-side code - Provide full access to your FastComments data - Are rate-limited per tenant -**Example use case**: Administrative operations, bulk data export, moderation tools +**Example use case**: Administrative operations, bulk data export, user management + +### ModerationAPI - Moderator Dashboard Methods + +The `ModerationAPI` contains methods that power the moderator dashboard. These methods cover: +- **Comment moderation** - list, count, search, retrieve logs, and export comments +- **Moderation actions** - remove/restore comments, flag, set review/spam/approval status, manage votes, and reopen/close threads +- **Bans** - ban a user from a comment, undo bans, fetch pre-ban summaries, check ban status and preferences, and read banned-user counts +- **Badges & trust** - award/remove badges, list manual badges, get/set a user's trust factor, and read a user's internal profile + +Every `ModerationAPI` method accepts an `sso` parameter so moderators can be authenticated via SSO. + +**Example use case**: Building a moderation experience for moderators of your community **IMPORTANT**: Never expose your API key in client-side code. API keys should only be used server-side. From 6f4755d6885e2d4c88e3bce559b9614c1dd4c293 Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 22:37:19 -0700 Subject: [PATCH 3/6] Add GitHub Actions CI workflow --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..be38a79 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +# Runs on PRs and pushes to the default branch. We use `pull_request` (never +# `pull_request_target`), so secrets are NOT exposed to pull requests from forks. +# Runs on macOS because the SDK depends on Alamofire, which is Apple-only. +on: + pull_request: + push: + branches: [main, master] + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - name: Build + run: swift build + - name: Run tests + run: swift test + env: + FASTCOMMENTS_API_KEY: ${{ secrets.FASTCOMMENTS_API_KEY }} + FASTCOMMENTS_TENANT_ID: ${{ secrets.FASTCOMMENTS_TENANT_ID }} From 2d708b568a19985c1f1b4f09aa61f91a07f25123 Mon Sep 17 00:00:00 2001 From: winrid Date: Thu, 18 Jun 2026 23:28:15 -0700 Subject: [PATCH 4/6] Fix EventLogResponse test to match generated GetEventLogResponse model --- Tests/FastCommentsSwiftTests/PubSubTests.swift | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Tests/FastCommentsSwiftTests/PubSubTests.swift b/Tests/FastCommentsSwiftTests/PubSubTests.swift index de13a01..fee3d6c 100644 --- a/Tests/FastCommentsSwiftTests/PubSubTests.swift +++ b/Tests/FastCommentsSwiftTests/PubSubTests.swift @@ -288,7 +288,7 @@ final class PubSubTests: XCTestCase { XCTAssertEqual(badge.backgroundColor, "#gold") } - // MARK: - EventLogResponse + // MARK: - GetEventLogResponse func testEventLogResponseDecoding() throws { let innerEventJson = """ @@ -304,6 +304,7 @@ final class PubSubTests: XCTestCase { "events": [ { "_id": "entry-1", + "createdAt": "2023-11-14T22:13:20Z", "tenantId": "t1", "urlId": "u1", "broadcastId": "bc1", @@ -312,15 +313,16 @@ final class PubSubTests: XCTestCase { ] } """ - let response = try JSONDecoder().decode(EventLogResponse.self, from: json.data(using: .utf8)!) - XCTAssertEqual(response.status, "success") - XCTAssertEqual(response.events?.count, 1) + // Use the SDK decoder so the ISO8601 `createdAt` Date decodes correctly. + let response = try CodableHelper().jsonDecoder.decode(GetEventLogResponse.self, from: json.data(using: .utf8)!) + XCTAssertEqual(response.status, .success) + XCTAssertEqual(response.events.count, 1) - let entry = response.events![0] + let entry = response.events[0] XCTAssertEqual(entry.id, "entry-1") // Parse the nested data string - let eventData = entry.data!.data(using: .utf8)! + let eventData = entry.data.data(using: .utf8)! let event = try JSONDecoder().decode(LiveEvent.self, from: eventData) XCTAssertEqual(event.type, .newComment) XCTAssertEqual(event.comment?.id, "c1") From df5b780c52783a2596415a70ed807b6ba450c9ae Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 19 Jun 2026 00:04:35 -0700 Subject: [PATCH 5/6] Fix SSOIntegrationTests for regenerated non-optional comment fields and string status --- .../SSOIntegrationTests.swift | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Tests/FastCommentsSwiftTests/SSOIntegrationTests.swift b/Tests/FastCommentsSwiftTests/SSOIntegrationTests.swift index 2906a40..cfaec34 100644 --- a/Tests/FastCommentsSwiftTests/SSOIntegrationTests.swift +++ b/Tests/FastCommentsSwiftTests/SSOIntegrationTests.swift @@ -59,8 +59,8 @@ final class SSOIntegrationTests: XCTestCase { XCTAssertEqual(createResponse.status, .success, "Create comment should succeed") XCTAssertNotNil(createResponse.comment, "Response should include the created comment") - XCTAssertEqual(createResponse.comment?.commenterName, user.username) - XCTAssertTrue(createResponse.comment?.commentHTML.contains(commentText) ?? false, "Comment HTML should contain original text") + XCTAssertEqual(createResponse.comment.commenterName, user.username) + XCTAssertTrue(createResponse.comment.commentHTML.contains(commentText), "Comment HTML should contain original text") // Verify the create response returns the authenticated user XCTAssertNotNil(createResponse.user, "Create response should include user session info") @@ -74,12 +74,12 @@ final class SSOIntegrationTests: XCTestCase { sso: token ) - XCTAssertEqual(getResponse.status, .success, "Get comments should succeed") + XCTAssertEqual(getResponse.status, "success", "Get comments should succeed") XCTAssertNotNil(getResponse.comments, "Should have comments array") - XCTAssertGreaterThanOrEqual(getResponse.comments?.count ?? 0, 1, "Should have at least one comment") + XCTAssertGreaterThanOrEqual(getResponse.comments.count, 1, "Should have at least one comment") // Verify the fetched comment matches what we created - let fetchedComment = getResponse.comments?.first + let fetchedComment = getResponse.comments.first XCTAssertNotNil(fetchedComment) XCTAssertEqual(fetchedComment?.commenterName, user.username) XCTAssertTrue(fetchedComment?.commentHTML.contains(commentText) ?? false, "Fetched comment should contain original text") @@ -143,11 +143,11 @@ final class SSOIntegrationTests: XCTestCase { sso: token ) - XCTAssertEqual(getResponse.status, .success) + XCTAssertEqual(getResponse.status, "success") XCTAssertNotNil(getResponse.comments) - XCTAssertGreaterThanOrEqual(getResponse.comments?.count ?? 0, 1) + XCTAssertGreaterThanOrEqual(getResponse.comments.count, 1) - let fetchedComment = getResponse.comments?.first + let fetchedComment = getResponse.comments.first XCTAssertEqual(fetchedComment?.displayLabel, "Swift Tester") // When displayName is set, commenterName resolves to the displayName XCTAssertEqual(fetchedComment?.commenterName, user.displayName) @@ -196,8 +196,8 @@ final class SSOIntegrationTests: XCTestCase { XCTAssertEqual(createResponse.status, .success, "Create comment with simple SSO should succeed") XCTAssertNotNil(createResponse.comment) - XCTAssertEqual(createResponse.comment?.commenterName, user.username) - XCTAssertTrue(createResponse.comment?.commentHTML.contains(commentText) ?? false) + XCTAssertEqual(createResponse.comment.commenterName, user.username) + XCTAssertTrue(createResponse.comment.commentHTML.contains(commentText)) // Verify user session is returned XCTAssertNotNil(createResponse.user, "Create response should include user session info") @@ -211,12 +211,12 @@ final class SSOIntegrationTests: XCTestCase { sso: token ) - XCTAssertEqual(getResponse.status, .success, "Get comments with simple SSO should succeed") + XCTAssertEqual(getResponse.status, "success", "Get comments with simple SSO should succeed") XCTAssertNotNil(getResponse.comments) - XCTAssertGreaterThanOrEqual(getResponse.comments?.count ?? 0, 1, "Should have at least one comment") + XCTAssertGreaterThanOrEqual(getResponse.comments.count, 1, "Should have at least one comment") // Verify the fetched comment - let fetchedComment = getResponse.comments?.first + let fetchedComment = getResponse.comments.first XCTAssertNotNil(fetchedComment) XCTAssertEqual(fetchedComment?.commenterName, user.username) XCTAssertTrue(fetchedComment?.commentHTML.contains(commentText) ?? false) From f6b8c2e4116691bf7bccddf31200b1e2eca9d5c3 Mon Sep 17 00:00:00 2001 From: winrid Date: Fri, 19 Jun 2026 11:09:38 -0700 Subject: [PATCH 6/6] README: drop unused apiKey setup from Moderation example (it uses SSO) --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bf955a3..b07519a 100644 --- a/README.md +++ b/README.md @@ -95,12 +95,8 @@ do { ```swift import FastCommentsSwift -// Create configuration with API key -let defaultApi = DefaultAPI() -defaultApi.apiKey = "your-api-key" - -// List comments awaiting moderation -// Moderation methods accept an `sso` token to act as an SSO-authenticated moderator +// Moderation methods are authorized with an `sso` token for the acting moderator +// (generate it with FastCommentsSSO, see the SSO section above). do { let response = try await ModerationAPI.getApiComments( page: 0,