diff --git a/README.md b/README.md index a48b576..6a816a1 100644 --- a/README.md +++ b/README.md @@ -41,26 +41,16 @@ SSO helpers are included in the package (`package:fastcomments_dart/sso/...`). The client exposes three API classes: -- `DefaultApi` — API-key-authenticated methods for server-side use. -- `PublicApi` — public methods that need no API key, safe for browser and +- `DefaultApi` - API-key-authenticated methods for server-side use. +- `PublicApi` - public methods that need no API key, safe for browser and mobile clients. -- `ModerationApi` — methods that back the moderator dashboard: comment - moderation (list, count, search, logs, export), moderation actions - (remove/restore, flag, set review/spam/approval status, votes, reopen/close - thread), bans (ban from comment, undo, pre-ban summaries, ban status and - preferences, banned-user counts), and badges & trust (award/remove badge, - manual badges, get/set trust factor, user internal profile). Every - `ModerationApi` method takes an `sso` parameter for SSO-authenticated - moderators. +- `ModerationApi` - an extensive suite of live and fast moderation APIs. Every `ModerationApi` method takes an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie. ```dart import 'package:fastcomments_dart/api.dart'; -final api = DefaultApi(ApiClient(basePath: 'https://fastcomments.com')); -final comments = await api.getCommentsPublic( - 'YOUR_TENANT_ID', - urlId: 'YOUR_URL_ID', -); +final api = PublicApi(ApiClient(basePath: 'https://fastcomments.com')); +final comments = await api.getCommentsPublic('YOUR_TENANT_ID', 'YOUR_URL_ID'); ``` ```dart @@ -74,7 +64,9 @@ final feedPosts = await publicApi.getFeedPostsPublic('YOUR_TENANT_ID'); import 'package:fastcomments_dart/api.dart'; final moderation = ModerationApi(ApiClient(basePath: 'https://fastcomments.com')); -final result = await moderation.getApiComments(sso: 'SSO_TOKEN'); +final result = await moderation.getApiComments( + GetApiCommentsOptions(sso: 'SSO_TOKEN'), +); ``` ## SSO diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index d0052f4..7b4612a 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -264,7 +264,7 @@ doc/PatchDomainConfigResponse.md doc/PatchPageAPIResponse.md doc/PatchSSOUserAPIResponse.md doc/PendingCommentToSyncOutbound.md -doc/PostRemoveCommentResponse.md +doc/PostRemoveCommentApiResponse.md doc/PreBanSummary.md doc/PubSubComment.md doc/PubSubCommentBase.md @@ -638,7 +638,7 @@ lib/model/patch_domain_config_response.dart lib/model/patch_page_api_response.dart lib/model/patch_sso_user_api_response.dart lib/model/pending_comment_to_sync_outbound.dart -lib/model/post_remove_comment_response.dart +lib/model/post_remove_comment_api_response.dart lib/model/pre_ban_summary.dart lib/model/pub_sub_comment.dart lib/model/pub_sub_comment_base.dart @@ -1001,7 +1001,7 @@ test/patch_domain_config_response_test.dart test/patch_page_api_response_test.dart test/patch_sso_user_api_response_test.dart test/pending_comment_to_sync_outbound_test.dart -test/post_remove_comment_response_test.dart +test/post_remove_comment_api_response_test.dart test/pre_ban_summary_test.dart test/pub_sub_comment_base_test.dart test/pub_sub_comment_test.dart diff --git a/client/README.md b/client/README.md index 481c65e..0fdeef7 100644 --- a/client/README.md +++ b/client/README.md @@ -178,49 +178,49 @@ Class | Method | HTTP request | Description *DefaultApi* | [**updateTenantPackage**](doc//DefaultApi.md#updatetenantpackage) | **PATCH** /api/v1/tenant-packages/{id} | *DefaultApi* | [**updateTenantUser**](doc//DefaultApi.md#updatetenantuser) | **PATCH** /api/v1/tenant-users/{id} | *DefaultApi* | [**updateUserBadge**](doc//DefaultApi.md#updateuserbadge) | **PUT** /api/v1/user-badges/{id} | -*ModerationApi* | [**deleteModerationVote**](doc//ModerationApi.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -*ModerationApi* | [**getApiComments**](doc//ModerationApi.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | -*ModerationApi* | [**getApiExportStatus**](doc//ModerationApi.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | -*ModerationApi* | [**getApiIds**](doc//ModerationApi.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | -*ModerationApi* | [**getBanUsersFromComment**](doc//ModerationApi.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -*ModerationApi* | [**getCommentBanStatus**](doc//ModerationApi.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -*ModerationApi* | [**getCommentChildren**](doc//ModerationApi.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | -*ModerationApi* | [**getCount**](doc//ModerationApi.md#getcount) | **GET** /auth/my-account/moderate-comments/count | -*ModerationApi* | [**getCounts**](doc//ModerationApi.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | -*ModerationApi* | [**getLogs**](doc//ModerationApi.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | -*ModerationApi* | [**getManualBadges**](doc//ModerationApi.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | -*ModerationApi* | [**getManualBadgesForUser**](doc//ModerationApi.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | -*ModerationApi* | [**getModerationComment**](doc//ModerationApi.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | -*ModerationApi* | [**getModerationCommentText**](doc//ModerationApi.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -*ModerationApi* | [**getPreBanSummary**](doc//ModerationApi.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -*ModerationApi* | [**getSearchCommentsSummary**](doc//ModerationApi.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | -*ModerationApi* | [**getSearchPages**](doc//ModerationApi.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | -*ModerationApi* | [**getSearchSites**](doc//ModerationApi.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | -*ModerationApi* | [**getSearchSuggest**](doc//ModerationApi.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | -*ModerationApi* | [**getSearchUsers**](doc//ModerationApi.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | -*ModerationApi* | [**getTrustFactor**](doc//ModerationApi.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | -*ModerationApi* | [**getUserBanPreference**](doc//ModerationApi.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | -*ModerationApi* | [**getUserInternalProfile**](doc//ModerationApi.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | -*ModerationApi* | [**postAdjustCommentVotes**](doc//ModerationApi.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -*ModerationApi* | [**postApiExport**](doc//ModerationApi.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | -*ModerationApi* | [**postBanUserFromComment**](doc//ModerationApi.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -*ModerationApi* | [**postBanUserUndo**](doc//ModerationApi.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | -*ModerationApi* | [**postBulkPreBanSummary**](doc//ModerationApi.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -*ModerationApi* | [**postCommentsByIds**](doc//ModerationApi.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | -*ModerationApi* | [**postFlagComment**](doc//ModerationApi.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | -*ModerationApi* | [**postRemoveComment**](doc//ModerationApi.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | -*ModerationApi* | [**postRestoreDeletedComment**](doc//ModerationApi.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -*ModerationApi* | [**postSetCommentApprovalStatus**](doc//ModerationApi.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -*ModerationApi* | [**postSetCommentReviewStatus**](doc//ModerationApi.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -*ModerationApi* | [**postSetCommentSpamStatus**](doc//ModerationApi.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -*ModerationApi* | [**postSetCommentText**](doc//ModerationApi.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -*ModerationApi* | [**postUnFlagComment**](doc//ModerationApi.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -*ModerationApi* | [**postVote**](doc//ModerationApi.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | -*ModerationApi* | [**putAwardBadge**](doc//ModerationApi.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | -*ModerationApi* | [**putCloseThread**](doc//ModerationApi.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | -*ModerationApi* | [**putRemoveBadge**](doc//ModerationApi.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | -*ModerationApi* | [**putReopenThread**](doc//ModerationApi.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | -*ModerationApi* | [**setTrustFactor**](doc//ModerationApi.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | +*ModerationApi* | [**deleteModerationVote**](doc//ModerationApi.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +*ModerationApi* | [**getApiComments**](doc//ModerationApi.md#getapicomments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +*ModerationApi* | [**getApiExportStatus**](doc//ModerationApi.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +*ModerationApi* | [**getApiIds**](doc//ModerationApi.md#getapiids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +*ModerationApi* | [**getBanUsersFromComment**](doc//ModerationApi.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +*ModerationApi* | [**getCommentBanStatus**](doc//ModerationApi.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +*ModerationApi* | [**getCommentChildren**](doc//ModerationApi.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +*ModerationApi* | [**getCount**](doc//ModerationApi.md#getcount) | **GET** /auth/my-account/moderate-comments/mod_api/count | +*ModerationApi* | [**getCounts**](doc//ModerationApi.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +*ModerationApi* | [**getLogs**](doc//ModerationApi.md#getlogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +*ModerationApi* | [**getManualBadges**](doc//ModerationApi.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +*ModerationApi* | [**getManualBadgesForUser**](doc//ModerationApi.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +*ModerationApi* | [**getModerationComment**](doc//ModerationApi.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +*ModerationApi* | [**getModerationCommentText**](doc//ModerationApi.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +*ModerationApi* | [**getPreBanSummary**](doc//ModerationApi.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +*ModerationApi* | [**getSearchCommentsSummary**](doc//ModerationApi.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +*ModerationApi* | [**getSearchPages**](doc//ModerationApi.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +*ModerationApi* | [**getSearchSites**](doc//ModerationApi.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +*ModerationApi* | [**getSearchSuggest**](doc//ModerationApi.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +*ModerationApi* | [**getSearchUsers**](doc//ModerationApi.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +*ModerationApi* | [**getTrustFactor**](doc//ModerationApi.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +*ModerationApi* | [**getUserBanPreference**](doc//ModerationApi.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +*ModerationApi* | [**getUserInternalProfile**](doc//ModerationApi.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +*ModerationApi* | [**postAdjustCommentVotes**](doc//ModerationApi.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +*ModerationApi* | [**postApiExport**](doc//ModerationApi.md#postapiexport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +*ModerationApi* | [**postBanUserFromComment**](doc//ModerationApi.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +*ModerationApi* | [**postBanUserUndo**](doc//ModerationApi.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +*ModerationApi* | [**postBulkPreBanSummary**](doc//ModerationApi.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +*ModerationApi* | [**postCommentsByIds**](doc//ModerationApi.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +*ModerationApi* | [**postFlagComment**](doc//ModerationApi.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +*ModerationApi* | [**postRemoveComment**](doc//ModerationApi.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +*ModerationApi* | [**postRestoreDeletedComment**](doc//ModerationApi.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +*ModerationApi* | [**postSetCommentApprovalStatus**](doc//ModerationApi.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +*ModerationApi* | [**postSetCommentReviewStatus**](doc//ModerationApi.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +*ModerationApi* | [**postSetCommentSpamStatus**](doc//ModerationApi.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +*ModerationApi* | [**postSetCommentText**](doc//ModerationApi.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +*ModerationApi* | [**postUnFlagComment**](doc//ModerationApi.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +*ModerationApi* | [**postVote**](doc//ModerationApi.md#postvote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +*ModerationApi* | [**putAwardBadge**](doc//ModerationApi.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +*ModerationApi* | [**putCloseThread**](doc//ModerationApi.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +*ModerationApi* | [**putRemoveBadge**](doc//ModerationApi.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +*ModerationApi* | [**putReopenThread**](doc//ModerationApi.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +*ModerationApi* | [**setTrustFactor**](doc//ModerationApi.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | *PublicApi* | [**blockFromCommentPublic**](doc//PublicApi.md#blockfromcommentpublic) | **POST** /block-from-comment/{commentId} | *PublicApi* | [**checkedCommentsForBlocked**](doc//PublicApi.md#checkedcommentsforblocked) | **GET** /check-blocked-comments | *PublicApi* | [**createCommentPublic**](doc//PublicApi.md#createcommentpublic) | **POST** /comments/{tenantId} | @@ -536,7 +536,7 @@ Class | Method | HTTP request | Description - [PatchPageAPIResponse](doc//PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](doc//PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](doc//PendingCommentToSyncOutbound.md) - - [PostRemoveCommentResponse](doc//PostRemoveCommentResponse.md) + - [PostRemoveCommentApiResponse](doc//PostRemoveCommentApiResponse.md) - [PreBanSummary](doc//PreBanSummary.md) - [PubSubComment](doc//PubSubComment.md) - [PubSubCommentBase](doc//PubSubCommentBase.md) diff --git a/client/doc/DefaultApi.md b/client/doc/DefaultApi.md index d0251a9..a7d496a 100644 --- a/client/doc/DefaultApi.md +++ b/client/doc/DefaultApi.md @@ -201,7 +201,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **String**| | [optional] + **tenantId** | **String**| | **createHashTagBody** | [**CreateHashTagBody**](CreateHashTagBody.md)| | [optional] ### Return type @@ -248,7 +248,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **String**| | [optional] + **tenantId** | **String**| | **bulkCreateHashTagsBody** | [**BulkCreateHashTagsBody**](BulkCreateHashTagsBody.md)| | [optional] ### Return type @@ -361,7 +361,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **aggregate** -> AggregateResponse aggregate(tenantId, aggregationRequest, parentTenantId, includeStats) +> AggregateResponse aggregate(tenantId, aggregationRequest, AggregateOptions options) @@ -382,7 +382,7 @@ final parentTenantId = parentTenantId_example; // String | final includeStats = true; // bool | try { - final result = api_instance.aggregate(tenantId, aggregationRequest, parentTenantId, includeStats); + final result = api_instance.aggregate(tenantId, aggregationRequest, AggregateOptions(parentTenantId: parentTenantId, includeStats: includeStats)); print(result); } catch (e) { print('Exception when calling DefaultApi->aggregate: $e\n'); @@ -414,7 +414,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **aggregateQuestionResults** -> AggregateQuestionResultsResponse aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate) +> AggregateQuestionResultsResponse aggregateQuestionResults(tenantId, AggregateQuestionResultsOptions options) @@ -436,7 +436,7 @@ final startDate = 2013-10-20T19:20:30+01:00; // DateTime | final forceRecalculate = true; // bool | try { - final result = api_instance.aggregateQuestionResults(tenantId, questionId, questionIds, urlId, timeBucket, startDate, forceRecalculate); + final result = api_instance.aggregateQuestionResults(tenantId, AggregateQuestionResultsOptions(questionId: questionId, questionIds: questionIds, urlId: urlId, timeBucket: timeBucket, startDate: startDate, forceRecalculate: forceRecalculate)); print(result); } catch (e) { print('Exception when calling DefaultApi->aggregateQuestionResults: $e\n'); @@ -471,7 +471,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **blockUserFromComment** -> BlockSuccess blockUserFromComment(tenantId, id, blockFromCommentParams, userId, anonUserId) +> BlockSuccess blockUserFromComment(tenantId, id, blockFromCommentParams, BlockUserFromCommentOptions options) @@ -491,7 +491,7 @@ final userId = userId_example; // String | final anonUserId = anonUserId_example; // String | try { - final result = api_instance.blockUserFromComment(tenantId, id, blockFromCommentParams, userId, anonUserId); + final result = api_instance.blockUserFromComment(tenantId, id, blockFromCommentParams, BlockUserFromCommentOptions(userId: userId, anonUserId: anonUserId)); print(result); } catch (e) { print('Exception when calling DefaultApi->blockUserFromComment: $e\n'); @@ -624,7 +624,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **combineCommentsWithQuestionResults** -> CombineQuestionResultsWithCommentsResponse combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit) +> CombineQuestionResultsWithCommentsResponse combineCommentsWithQuestionResults(tenantId, CombineCommentsWithQuestionResultsOptions options) @@ -648,7 +648,7 @@ final maxValue = 1.2; // double | final limit = 1.2; // double | try { - final result = api_instance.combineCommentsWithQuestionResults(tenantId, questionId, questionIds, urlId, startDate, forceRecalculate, minValue, maxValue, limit); + final result = api_instance.combineCommentsWithQuestionResults(tenantId, CombineCommentsWithQuestionResultsOptions(questionId: questionId, questionIds: questionIds, urlId: urlId, startDate: startDate, forceRecalculate: forceRecalculate, minValue: minValue, maxValue: maxValue, limit: limit)); print(result); } catch (e) { print('Exception when calling DefaultApi->combineCommentsWithQuestionResults: $e\n'); @@ -732,7 +732,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createFeedPost** -> CreateFeedPostsResponse createFeedPost(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck) +> CreateFeedPostsResponse createFeedPost(tenantId, createFeedPostParams, CreateFeedPostOptions options) @@ -753,7 +753,7 @@ final doSpamCheck = true; // bool | final skipDupCheck = true; // bool | try { - final result = api_instance.createFeedPost(tenantId, createFeedPostParams, broadcastId, isLive, doSpamCheck, skipDupCheck); + final result = api_instance.createFeedPost(tenantId, createFeedPostParams, CreateFeedPostOptions(broadcastId: broadcastId, isLive: isLive, doSpamCheck: doSpamCheck, skipDupCheck: skipDupCheck)); print(result); } catch (e) { print('Exception when calling DefaultApi->createFeedPost: $e\n'); @@ -1212,7 +1212,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createVote** -> VoteResponse createVote(tenantId, commentId, direction, userId, anonUserId) +> VoteResponse createVote(tenantId, commentId, direction, CreateVoteOptions options) @@ -1232,7 +1232,7 @@ final userId = userId_example; // String | final anonUserId = anonUserId_example; // String | try { - final result = api_instance.createVote(tenantId, commentId, direction, userId, anonUserId); + final result = api_instance.createVote(tenantId, commentId, direction, CreateVoteOptions(userId: userId, anonUserId: anonUserId)); print(result); } catch (e) { print('Exception when calling DefaultApi->createVote: $e\n'); @@ -1265,7 +1265,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteComment** -> DeleteCommentResult deleteComment(tenantId, id, contextUserId, isLive) +> DeleteCommentResult deleteComment(tenantId, id, DeleteCommentOptions options) @@ -1284,7 +1284,7 @@ final contextUserId = contextUserId_example; // String | final isLive = true; // bool | try { - final result = api_instance.deleteComment(tenantId, id, contextUserId, isLive); + final result = api_instance.deleteComment(tenantId, id, DeleteCommentOptions(contextUserId: contextUserId, isLive: isLive)); print(result); } catch (e) { print('Exception when calling DefaultApi->deleteComment: $e\n'); @@ -1459,7 +1459,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteHashTag** -> APIEmptyResponse deleteHashTag(tag, tenantId, deleteHashTagRequestBody) +> APIEmptyResponse deleteHashTag(tenantId, tag, deleteHashTagRequestBody) @@ -1472,12 +1472,12 @@ import 'package:fastcomments_dart/api.dart'; //defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; final api_instance = DefaultApi(); -final tag = tag_example; // String | final tenantId = tenantId_example; // String | +final tag = tag_example; // String | final deleteHashTagRequestBody = DeleteHashTagRequestBody(); // DeleteHashTagRequestBody | try { - final result = api_instance.deleteHashTag(tag, tenantId, deleteHashTagRequestBody); + final result = api_instance.deleteHashTag(tenantId, tag, deleteHashTagRequestBody); print(result); } catch (e) { print('Exception when calling DefaultApi->deleteHashTag: $e\n'); @@ -1488,8 +1488,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **tag** | **String**| | - **tenantId** | **String**| | [optional] **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md)| | [optional] ### Return type @@ -1792,7 +1792,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteSSOUser** -> DeleteSSOUserAPIResponse deleteSSOUser(tenantId, id, deleteComments, commentDeleteMode) +> DeleteSSOUserAPIResponse deleteSSOUser(tenantId, id, DeleteSSOUserOptions options) @@ -1811,7 +1811,7 @@ final deleteComments = true; // bool | final commentDeleteMode = commentDeleteMode_example; // String | try { - final result = api_instance.deleteSSOUser(tenantId, id, deleteComments, commentDeleteMode); + final result = api_instance.deleteSSOUser(tenantId, id, DeleteSSOUserOptions(deleteComments: deleteComments, commentDeleteMode: commentDeleteMode)); print(result); } catch (e) { print('Exception when calling DefaultApi->deleteSSOUser: $e\n'); @@ -1988,7 +1988,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteTenantUser** -> APIEmptyResponse deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode) +> APIEmptyResponse deleteTenantUser(tenantId, id, DeleteTenantUserOptions options) @@ -2007,7 +2007,7 @@ final deleteComments = deleteComments_example; // String | final commentDeleteMode = commentDeleteMode_example; // String | try { - final result = api_instance.deleteTenantUser(tenantId, id, deleteComments, commentDeleteMode); + final result = api_instance.deleteTenantUser(tenantId, id, DeleteTenantUserOptions(deleteComments: deleteComments, commentDeleteMode: commentDeleteMode)); print(result); } catch (e) { print('Exception when calling DefaultApi->deleteTenantUser: $e\n'); @@ -2135,7 +2135,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **flagComment** -> FlagCommentResponse flagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse flagComment(tenantId, id, FlagCommentOptions options) @@ -2154,7 +2154,7 @@ final userId = userId_example; // String | final anonUserId = anonUserId_example; // String | try { - final result = api_instance.flagComment(tenantId, id, userId, anonUserId); + final result = api_instance.flagComment(tenantId, id, FlagCommentOptions(userId: userId, anonUserId: anonUserId)); print(result); } catch (e) { print('Exception when calling DefaultApi->flagComment: $e\n'); @@ -2186,7 +2186,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getAuditLogs** -> GetAuditLogsResponse getAuditLogs(tenantId, limit, skip, order, after, before) +> GetAuditLogsResponse getAuditLogs(tenantId, GetAuditLogsOptions options) @@ -2207,7 +2207,7 @@ final after = 1.2; // double | final before = 1.2; // double | try { - final result = api_instance.getAuditLogs(tenantId, limit, skip, order, after, before); + final result = api_instance.getAuditLogs(tenantId, GetAuditLogsOptions(limit: limit, skip: skip, order: order, after: after, before: before)); print(result); } catch (e) { print('Exception when calling DefaultApi->getAuditLogs: $e\n'); @@ -2335,7 +2335,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getComments** -> APIGetCommentsResponse getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate) +> APIGetCommentsResponse getComments(tenantId, GetCommentsOptions options) @@ -2367,7 +2367,7 @@ final fromDate = 789; // int | final toDate = 789; // int | try { - final result = api_instance.getComments(tenantId, page, limit, skip, asTree, skipChildren, limitChildren, maxTreeDepth, urlId, userId, anonUserId, contextUserId, hashTag, parentId, direction, fromDate, toDate); + final result = api_instance.getComments(tenantId, GetCommentsOptions(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)); print(result); } catch (e) { print('Exception when calling DefaultApi->getComments: $e\n'); @@ -2692,7 +2692,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getFeedPosts** -> GetFeedPostsResponse getFeedPosts(tenantId, afterId, limit, tags) +> GetFeedPostsResponse getFeedPosts(tenantId, GetFeedPostsOptions options) @@ -2713,7 +2713,7 @@ final limit = 56; // int | final tags = []; // List | try { - final result = api_instance.getFeedPosts(tenantId, afterId, limit, tags); + final result = api_instance.getFeedPosts(tenantId, GetFeedPostsOptions(afterId: afterId, limit: limit, tags: tags)); print(result); } catch (e) { print('Exception when calling DefaultApi->getFeedPosts: $e\n'); @@ -2886,7 +2886,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getNotificationCount** -> GetNotificationCountResponse getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type) +> GetNotificationCountResponse getNotificationCount(tenantId, GetNotificationCountOptions options) @@ -2907,7 +2907,7 @@ final viewed = true; // bool | final type = type_example; // String | try { - final result = api_instance.getNotificationCount(tenantId, userId, urlId, fromCommentId, viewed, type); + final result = api_instance.getNotificationCount(tenantId, GetNotificationCountOptions(userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type)); print(result); } catch (e) { print('Exception when calling DefaultApi->getNotificationCount: $e\n'); @@ -2941,7 +2941,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getNotifications** -> GetNotificationsResponse getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip) +> GetNotificationsResponse getNotifications(tenantId, GetNotificationsOptions options) @@ -2963,7 +2963,7 @@ final type = type_example; // String | final skip = 1.2; // double | try { - final result = api_instance.getNotifications(tenantId, userId, urlId, fromCommentId, viewed, type, skip); + final result = api_instance.getNotifications(tenantId, GetNotificationsOptions(userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, skip: skip)); print(result); } catch (e) { print('Exception when calling DefaultApi->getNotifications: $e\n'); @@ -3090,7 +3090,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPendingWebhookEventCount** -> GetPendingWebhookEventCountResponse getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT) +> GetPendingWebhookEventCountResponse getPendingWebhookEventCount(tenantId, GetPendingWebhookEventCountOptions options) @@ -3112,7 +3112,7 @@ final domain = domain_example; // String | final attemptCountGT = 1.2; // double | try { - final result = api_instance.getPendingWebhookEventCount(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT); + final result = api_instance.getPendingWebhookEventCount(tenantId, GetPendingWebhookEventCountOptions(commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT)); print(result); } catch (e) { print('Exception when calling DefaultApi->getPendingWebhookEventCount: $e\n'); @@ -3147,7 +3147,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPendingWebhookEvents** -> GetPendingWebhookEventsResponse getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip) +> GetPendingWebhookEventsResponse getPendingWebhookEvents(tenantId, GetPendingWebhookEventsOptions options) @@ -3170,7 +3170,7 @@ final attemptCountGT = 1.2; // double | final skip = 1.2; // double | try { - final result = api_instance.getPendingWebhookEvents(tenantId, commentId, externalId, eventType, type, domain, attemptCountGT, skip); + final result = api_instance.getPendingWebhookEvents(tenantId, GetPendingWebhookEventsOptions(commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, skip: skip)); print(result); } catch (e) { print('Exception when calling DefaultApi->getPendingWebhookEvents: $e\n'); @@ -3347,7 +3347,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getQuestionResults** -> GetQuestionResultsResponse getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip) +> GetQuestionResultsResponse getQuestionResults(tenantId, GetQuestionResultsOptions options) @@ -3369,7 +3369,7 @@ final questionIds = questionIds_example; // String | final skip = 1.2; // double | try { - final result = api_instance.getQuestionResults(tenantId, urlId, userId, startDate, questionId, questionIds, skip); + final result = api_instance.getQuestionResults(tenantId, GetQuestionResultsOptions(urlId: urlId, userId: userId, startDate: startDate, questionId: questionId, questionIds: questionIds, skip: skip)); print(result); } catch (e) { print('Exception when calling DefaultApi->getQuestionResults: $e\n'); @@ -3639,7 +3639,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenantDailyUsages** -> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip) +> GetTenantDailyUsagesResponse getTenantDailyUsages(tenantId, GetTenantDailyUsagesOptions options) @@ -3659,7 +3659,7 @@ final dayNumber = 1.2; // double | final skip = 1.2; // double | try { - final result = api_instance.getTenantDailyUsages(tenantId, yearNumber, monthNumber, dayNumber, skip); + final result = api_instance.getTenantDailyUsages(tenantId, GetTenantDailyUsagesOptions(yearNumber: yearNumber, monthNumber: monthNumber, dayNumber: dayNumber, skip: skip)); print(result); } catch (e) { print('Exception when calling DefaultApi->getTenantDailyUsages: $e\n'); @@ -3880,7 +3880,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTenants** -> GetTenantsResponse getTenants(tenantId, meta, skip) +> GetTenantsResponse getTenants(tenantId, GetTenantsOptions options) @@ -3898,7 +3898,7 @@ final meta = meta_example; // String | final skip = 1.2; // double | try { - final result = api_instance.getTenants(tenantId, meta, skip); + final result = api_instance.getTenants(tenantId, GetTenantsOptions(meta: meta, skip: skip)); print(result); } catch (e) { print('Exception when calling DefaultApi->getTenants: $e\n'); @@ -3978,7 +3978,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTickets** -> GetTicketsResponse getTickets(tenantId, userId, state, skip, limit) +> GetTicketsResponse getTickets(tenantId, GetTicketsOptions options) @@ -3998,7 +3998,7 @@ final skip = 1.2; // double | final limit = 1.2; // double | try { - final result = api_instance.getTickets(tenantId, userId, state, skip, limit); + final result = api_instance.getTickets(tenantId, GetTicketsOptions(userId: userId, state: state, skip: skip, limit: limit)); print(result); } catch (e) { print('Exception when calling DefaultApi->getTickets: $e\n'); @@ -4219,7 +4219,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserBadgeProgressList** -> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId, userId, limit, skip) +> APIGetUserBadgeProgressListResponse getUserBadgeProgressList(tenantId, GetUserBadgeProgressListOptions options) @@ -4238,7 +4238,7 @@ final limit = 1.2; // double | final skip = 1.2; // double | try { - final result = api_instance.getUserBadgeProgressList(tenantId, userId, limit, skip); + final result = api_instance.getUserBadgeProgressList(tenantId, GetUserBadgeProgressListOptions(userId: userId, limit: limit, skip: skip)); print(result); } catch (e) { print('Exception when calling DefaultApi->getUserBadgeProgressList: $e\n'); @@ -4270,7 +4270,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserBadges** -> APIGetUserBadgesResponse getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip) +> APIGetUserBadgesResponse getUserBadges(tenantId, GetUserBadgesOptions options) @@ -4292,7 +4292,7 @@ final limit = 1.2; // double | final skip = 1.2; // double | try { - final result = api_instance.getUserBadges(tenantId, userId, badgeId, type, displayedOnComments, limit, skip); + final result = api_instance.getUserBadges(tenantId, GetUserBadgesOptions(userId: userId, badgeId: badgeId, type: type, displayedOnComments: displayedOnComments, limit: limit, skip: skip)); print(result); } catch (e) { print('Exception when calling DefaultApi->getUserBadges: $e\n'); @@ -4374,7 +4374,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getVotesForUser** -> GetVotesForUserResponse getVotesForUser(tenantId, urlId, userId, anonUserId) +> GetVotesForUserResponse getVotesForUser(tenantId, urlId, GetVotesForUserOptions options) @@ -4393,7 +4393,7 @@ final userId = userId_example; // String | final anonUserId = anonUserId_example; // String | try { - final result = api_instance.getVotesForUser(tenantId, urlId, userId, anonUserId); + final result = api_instance.getVotesForUser(tenantId, urlId, GetVotesForUserOptions(userId: userId, anonUserId: anonUserId)); print(result); } catch (e) { print('Exception when calling DefaultApi->getVotesForUser: $e\n'); @@ -4474,7 +4474,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patchHashTag** -> UpdateHashTagResponse patchHashTag(tag, tenantId, updateHashTagBody) +> UpdateHashTagResponse patchHashTag(tenantId, tag, updateHashTagBody) @@ -4487,12 +4487,12 @@ import 'package:fastcomments_dart/api.dart'; //defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; final api_instance = DefaultApi(); -final tag = tag_example; // String | final tenantId = tenantId_example; // String | +final tag = tag_example; // String | final updateHashTagBody = UpdateHashTagBody(); // UpdateHashTagBody | try { - final result = api_instance.patchHashTag(tag, tenantId, updateHashTagBody); + final result = api_instance.patchHashTag(tenantId, tag, updateHashTagBody); print(result); } catch (e) { print('Exception when calling DefaultApi->patchHashTag: $e\n'); @@ -4503,8 +4503,8 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **tag** | **String**| | - **tenantId** | **String**| | [optional] **updateHashTagBody** | [**UpdateHashTagBody**](UpdateHashTagBody.md)| | [optional] ### Return type @@ -4872,7 +4872,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **saveComment** -> APISaveCommentResponse saveComment(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) +> APISaveCommentResponse saveComment(tenantId, createCommentParams, SaveCommentOptions options) @@ -4893,7 +4893,7 @@ final sendEmails = true; // bool | final populateNotifications = true; // bool | try { - final result = api_instance.saveComment(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); + final result = api_instance.saveComment(tenantId, createCommentParams, SaveCommentOptions(isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications)); print(result); } catch (e) { print('Exception when calling DefaultApi->saveComment: $e\n'); @@ -4927,7 +4927,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **saveCommentsBulk** -> List saveCommentsBulk(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications) +> List saveCommentsBulk(tenantId, createCommentParams, SaveCommentsBulkOptions options) @@ -4948,7 +4948,7 @@ final sendEmails = true; // bool | final populateNotifications = true; // bool | try { - final result = api_instance.saveCommentsBulk(tenantId, createCommentParams, isLive, doSpamCheck, sendEmails, populateNotifications); + final result = api_instance.saveCommentsBulk(tenantId, createCommentParams, SaveCommentsBulkOptions(isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications)); print(result); } catch (e) { print('Exception when calling DefaultApi->saveCommentsBulk: $e\n'); @@ -5080,7 +5080,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unBlockUserFromComment** -> UnblockSuccess unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, userId, anonUserId) +> UnblockSuccess unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, UnBlockUserFromCommentOptions options) @@ -5100,7 +5100,7 @@ final userId = userId_example; // String | final anonUserId = anonUserId_example; // String | try { - final result = api_instance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, userId, anonUserId); + final result = api_instance.unBlockUserFromComment(tenantId, id, unBlockFromCommentParams, UnBlockUserFromCommentOptions(userId: userId, anonUserId: anonUserId)); print(result); } catch (e) { print('Exception when calling DefaultApi->unBlockUserFromComment: $e\n'); @@ -5133,7 +5133,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **unFlagComment** -> FlagCommentResponse unFlagComment(tenantId, id, userId, anonUserId) +> FlagCommentResponse unFlagComment(tenantId, id, UnFlagCommentOptions options) @@ -5152,7 +5152,7 @@ final userId = userId_example; // String | final anonUserId = anonUserId_example; // String | try { - final result = api_instance.unFlagComment(tenantId, id, userId, anonUserId); + final result = api_instance.unFlagComment(tenantId, id, UnFlagCommentOptions(userId: userId, anonUserId: anonUserId)); print(result); } catch (e) { print('Exception when calling DefaultApi->unFlagComment: $e\n'); @@ -5184,7 +5184,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateComment** -> APIEmptyResponse updateComment(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive) +> APIEmptyResponse updateComment(tenantId, id, updatableCommentParams, UpdateCommentOptions options) @@ -5205,7 +5205,7 @@ final doSpamCheck = true; // bool | final isLive = true; // bool | try { - final result = api_instance.updateComment(tenantId, id, updatableCommentParams, contextUserId, doSpamCheck, isLive); + final result = api_instance.updateComment(tenantId, id, updatableCommentParams, UpdateCommentOptions(contextUserId: contextUserId, doSpamCheck: doSpamCheck, isLive: isLive)); print(result); } catch (e) { print('Exception when calling DefaultApi->updateComment: $e\n'); diff --git a/client/doc/ModerationApi.md b/client/doc/ModerationApi.md index 84827de..de7dc61 100644 --- a/client/doc/ModerationApi.md +++ b/client/doc/ModerationApi.md @@ -9,53 +9,53 @@ All URIs are relative to *https://fastcomments.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**deleteModerationVote**](ModerationApi.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -[**getApiComments**](ModerationApi.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | -[**getApiExportStatus**](ModerationApi.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | -[**getApiIds**](ModerationApi.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | -[**getBanUsersFromComment**](ModerationApi.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -[**getCommentBanStatus**](ModerationApi.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -[**getCommentChildren**](ModerationApi.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | -[**getCount**](ModerationApi.md#getcount) | **GET** /auth/my-account/moderate-comments/count | -[**getCounts**](ModerationApi.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | -[**getLogs**](ModerationApi.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | -[**getManualBadges**](ModerationApi.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | -[**getManualBadgesForUser**](ModerationApi.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | -[**getModerationComment**](ModerationApi.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | -[**getModerationCommentText**](ModerationApi.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -[**getPreBanSummary**](ModerationApi.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -[**getSearchCommentsSummary**](ModerationApi.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | -[**getSearchPages**](ModerationApi.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | -[**getSearchSites**](ModerationApi.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | -[**getSearchSuggest**](ModerationApi.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | -[**getSearchUsers**](ModerationApi.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | -[**getTrustFactor**](ModerationApi.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | -[**getUserBanPreference**](ModerationApi.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | -[**getUserInternalProfile**](ModerationApi.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | -[**postAdjustCommentVotes**](ModerationApi.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -[**postApiExport**](ModerationApi.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | -[**postBanUserFromComment**](ModerationApi.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -[**postBanUserUndo**](ModerationApi.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | -[**postBulkPreBanSummary**](ModerationApi.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -[**postCommentsByIds**](ModerationApi.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | -[**postFlagComment**](ModerationApi.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | -[**postRemoveComment**](ModerationApi.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | -[**postRestoreDeletedComment**](ModerationApi.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -[**postSetCommentApprovalStatus**](ModerationApi.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -[**postSetCommentReviewStatus**](ModerationApi.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -[**postSetCommentSpamStatus**](ModerationApi.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -[**postSetCommentText**](ModerationApi.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -[**postUnFlagComment**](ModerationApi.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -[**postVote**](ModerationApi.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | -[**putAwardBadge**](ModerationApi.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | -[**putCloseThread**](ModerationApi.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | -[**putRemoveBadge**](ModerationApi.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | -[**putReopenThread**](ModerationApi.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | -[**setTrustFactor**](ModerationApi.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | +[**deleteModerationVote**](ModerationApi.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +[**getApiComments**](ModerationApi.md#getapicomments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +[**getApiExportStatus**](ModerationApi.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +[**getApiIds**](ModerationApi.md#getapiids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +[**getBanUsersFromComment**](ModerationApi.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +[**getCommentBanStatus**](ModerationApi.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +[**getCommentChildren**](ModerationApi.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +[**getCount**](ModerationApi.md#getcount) | **GET** /auth/my-account/moderate-comments/mod_api/count | +[**getCounts**](ModerationApi.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +[**getLogs**](ModerationApi.md#getlogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +[**getManualBadges**](ModerationApi.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +[**getManualBadgesForUser**](ModerationApi.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +[**getModerationComment**](ModerationApi.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +[**getModerationCommentText**](ModerationApi.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +[**getPreBanSummary**](ModerationApi.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +[**getSearchCommentsSummary**](ModerationApi.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +[**getSearchPages**](ModerationApi.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +[**getSearchSites**](ModerationApi.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +[**getSearchSuggest**](ModerationApi.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +[**getSearchUsers**](ModerationApi.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +[**getTrustFactor**](ModerationApi.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +[**getUserBanPreference**](ModerationApi.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +[**getUserInternalProfile**](ModerationApi.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +[**postAdjustCommentVotes**](ModerationApi.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +[**postApiExport**](ModerationApi.md#postapiexport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +[**postBanUserFromComment**](ModerationApi.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +[**postBanUserUndo**](ModerationApi.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +[**postBulkPreBanSummary**](ModerationApi.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +[**postCommentsByIds**](ModerationApi.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +[**postFlagComment**](ModerationApi.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +[**postRemoveComment**](ModerationApi.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +[**postRestoreDeletedComment**](ModerationApi.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +[**postSetCommentApprovalStatus**](ModerationApi.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +[**postSetCommentReviewStatus**](ModerationApi.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +[**postSetCommentSpamStatus**](ModerationApi.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +[**postSetCommentText**](ModerationApi.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +[**postUnFlagComment**](ModerationApi.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +[**postVote**](ModerationApi.md#postvote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +[**putAwardBadge**](ModerationApi.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +[**putCloseThread**](ModerationApi.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +[**putRemoveBadge**](ModerationApi.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +[**putReopenThread**](ModerationApi.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +[**setTrustFactor**](ModerationApi.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | # **deleteModerationVote** -> VoteDeleteResponse deleteModerationVote(commentId, voteId, sso) +> VoteDeleteResponse deleteModerationVote(tenantId, commentId, voteId, DeleteModerationVoteOptions options) @@ -64,12 +64,14 @@ Method | HTTP request | Description import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final voteId = voteId_example; // String | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.deleteModerationVote(commentId, voteId, sso); + final result = api_instance.deleteModerationVote(tenantId, commentId, voteId, DeleteModerationVoteOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->deleteModerationVote: $e\n'); @@ -80,8 +82,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **voteId** | **String**| | + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -100,7 +104,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getApiComments** -> ModerationAPIGetCommentsResponse getApiComments(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso) +> ModerationAPIGetCommentsResponse getApiComments(tenantId, GetApiCommentsOptions options) @@ -109,6 +113,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final page = 1.2; // double | final count = 1.2; // double | final textSearch = textSearch_example; // String | @@ -120,7 +125,7 @@ final demo = true; // bool | final sso = sso_example; // String | try { - final result = api_instance.getApiComments(page, count, textSearch, byIPFromComment, filters, searchFilters, sorts, demo, sso); + final result = api_instance.getApiComments(tenantId, GetApiCommentsOptions(page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getApiComments: $e\n'); @@ -131,6 +136,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **page** | **double**| | [optional] **count** | **double**| | [optional] **textSearch** | **String**| | [optional] @@ -157,7 +163,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getApiExportStatus** -> ModerationExportStatusResponse getApiExportStatus(batchJobId, sso) +> ModerationExportStatusResponse getApiExportStatus(tenantId, GetApiExportStatusOptions options) @@ -166,11 +172,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final batchJobId = batchJobId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getApiExportStatus(batchJobId, sso); + final result = api_instance.getApiExportStatus(tenantId, GetApiExportStatusOptions(batchJobId: batchJobId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getApiExportStatus: $e\n'); @@ -181,6 +188,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **batchJobId** | **String**| | [optional] **sso** | **String**| | [optional] @@ -200,7 +208,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getApiIds** -> ModerationAPIGetCommentIdsResponse getApiIds(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso) +> ModerationAPIGetCommentIdsResponse getApiIds(tenantId, GetApiIdsOptions options) @@ -209,6 +217,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final textSearch = textSearch_example; // String | final byIPFromComment = byIPFromComment_example; // String | final filters = filters_example; // String | @@ -218,7 +227,7 @@ final demo = true; // bool | final sso = sso_example; // String | try { - final result = api_instance.getApiIds(textSearch, byIPFromComment, filters, searchFilters, afterId, demo, sso); + final result = api_instance.getApiIds(tenantId, GetApiIdsOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getApiIds: $e\n'); @@ -229,6 +238,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **textSearch** | **String**| | [optional] **byIPFromComment** | **String**| | [optional] **filters** | **String**| | [optional] @@ -253,7 +263,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getBanUsersFromComment** -> GetBannedUsersFromCommentResponse getBanUsersFromComment(commentId, sso) +> GetBannedUsersFromCommentResponse getBanUsersFromComment(tenantId, commentId, sso) @@ -262,11 +272,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getBanUsersFromComment(commentId, sso); + final result = api_instance.getBanUsersFromComment(tenantId, commentId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->getBanUsersFromComment: $e\n'); @@ -277,6 +288,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **sso** | **String**| | [optional] @@ -296,7 +308,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCommentBanStatus** -> GetCommentBanStatusResponse getCommentBanStatus(commentId, sso) +> GetCommentBanStatusResponse getCommentBanStatus(tenantId, commentId, sso) @@ -305,11 +317,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getCommentBanStatus(commentId, sso); + final result = api_instance.getCommentBanStatus(tenantId, commentId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->getCommentBanStatus: $e\n'); @@ -320,6 +333,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **sso** | **String**| | [optional] @@ -339,7 +353,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCommentChildren** -> ModerationAPIChildCommentsResponse getCommentChildren(commentId, sso) +> ModerationAPIChildCommentsResponse getCommentChildren(tenantId, commentId, sso) @@ -348,11 +362,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getCommentChildren(commentId, sso); + final result = api_instance.getCommentChildren(tenantId, commentId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->getCommentChildren: $e\n'); @@ -363,6 +378,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **sso** | **String**| | [optional] @@ -382,7 +398,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCount** -> ModerationAPICountCommentsResponse getCount(textSearch, byIPFromComment, filter, searchFilters, demo, sso) +> ModerationAPICountCommentsResponse getCount(tenantId, GetCountOptions options) @@ -391,6 +407,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final textSearch = textSearch_example; // String | final byIPFromComment = byIPFromComment_example; // String | final filter = filter_example; // String | @@ -399,7 +416,7 @@ final demo = true; // bool | final sso = sso_example; // String | try { - final result = api_instance.getCount(textSearch, byIPFromComment, filter, searchFilters, demo, sso); + final result = api_instance.getCount(tenantId, GetCountOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getCount: $e\n'); @@ -410,6 +427,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **textSearch** | **String**| | [optional] **byIPFromComment** | **String**| | [optional] **filter** | **String**| | [optional] @@ -433,7 +451,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCounts** -> GetBannedUsersCountResponse getCounts(sso) +> GetBannedUsersCountResponse getCounts(tenantId, sso) @@ -442,10 +460,11 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getCounts(sso); + final result = api_instance.getCounts(tenantId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->getCounts: $e\n'); @@ -456,6 +475,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **sso** | **String**| | [optional] ### Return type @@ -474,7 +494,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getLogs** -> ModerationAPIGetLogsResponse getLogs(commentId, sso) +> ModerationAPIGetLogsResponse getLogs(tenantId, commentId, sso) @@ -483,11 +503,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getLogs(commentId, sso); + final result = api_instance.getLogs(tenantId, commentId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->getLogs: $e\n'); @@ -498,6 +519,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **sso** | **String**| | [optional] @@ -517,7 +539,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getManualBadges** -> GetTenantManualBadgesResponse getManualBadges(sso) +> GetTenantManualBadgesResponse getManualBadges(tenantId, sso) @@ -526,10 +548,11 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getManualBadges(sso); + final result = api_instance.getManualBadges(tenantId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->getManualBadges: $e\n'); @@ -540,6 +563,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **sso** | **String**| | [optional] ### Return type @@ -558,7 +582,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getManualBadgesForUser** -> GetUserManualBadgesResponse getManualBadgesForUser(badgesUserId, commentId, sso) +> GetUserManualBadgesResponse getManualBadgesForUser(tenantId, GetManualBadgesForUserOptions options) @@ -567,12 +591,13 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final badgesUserId = badgesUserId_example; // String | final commentId = commentId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getManualBadgesForUser(badgesUserId, commentId, sso); + final result = api_instance.getManualBadgesForUser(tenantId, GetManualBadgesForUserOptions(badgesUserId: badgesUserId, commentId: commentId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getManualBadgesForUser: $e\n'); @@ -583,6 +608,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **badgesUserId** | **String**| | [optional] **commentId** | **String**| | [optional] **sso** | **String**| | [optional] @@ -603,7 +629,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getModerationComment** -> ModerationAPICommentResponse getModerationComment(commentId, includeEmail, includeIP, sso) +> ModerationAPICommentResponse getModerationComment(tenantId, commentId, GetModerationCommentOptions options) @@ -612,13 +638,14 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final includeEmail = true; // bool | final includeIP = true; // bool | final sso = sso_example; // String | try { - final result = api_instance.getModerationComment(commentId, includeEmail, includeIP, sso); + final result = api_instance.getModerationComment(tenantId, commentId, GetModerationCommentOptions(includeEmail: includeEmail, includeIP: includeIP, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getModerationComment: $e\n'); @@ -629,6 +656,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **includeEmail** | **bool**| | [optional] **includeIP** | **bool**| | [optional] @@ -650,7 +678,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getModerationCommentText** -> GetCommentTextResponse getModerationCommentText(commentId, sso) +> GetCommentTextResponse getModerationCommentText(tenantId, commentId, sso) @@ -659,11 +687,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getModerationCommentText(commentId, sso); + final result = api_instance.getModerationCommentText(tenantId, commentId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->getModerationCommentText: $e\n'); @@ -674,6 +703,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **sso** | **String**| | [optional] @@ -693,7 +723,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPreBanSummary** -> PreBanSummary getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) +> PreBanSummary getPreBanSummary(tenantId, commentId, GetPreBanSummaryOptions options) @@ -702,6 +732,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final includeByUserIdAndEmail = true; // bool | final includeByIP = true; // bool | @@ -709,7 +740,7 @@ final includeByEmailDomain = true; // bool | final sso = sso_example; // String | try { - final result = api_instance.getPreBanSummary(commentId, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + final result = api_instance.getPreBanSummary(tenantId, commentId, GetPreBanSummaryOptions(includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getPreBanSummary: $e\n'); @@ -720,6 +751,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **includeByUserIdAndEmail** | **bool**| | [optional] **includeByIP** | **bool**| | [optional] @@ -742,7 +774,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getSearchCommentsSummary** -> ModerationCommentSearchResponse getSearchCommentsSummary(value, filters, searchFilters, sso) +> ModerationCommentSearchResponse getSearchCommentsSummary(tenantId, GetSearchCommentsSummaryOptions options) @@ -751,13 +783,14 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final value = value_example; // String | final filters = filters_example; // String | final searchFilters = searchFilters_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getSearchCommentsSummary(value, filters, searchFilters, sso); + final result = api_instance.getSearchCommentsSummary(tenantId, GetSearchCommentsSummaryOptions(value: value, filters: filters, searchFilters: searchFilters, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getSearchCommentsSummary: $e\n'); @@ -768,6 +801,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **value** | **String**| | [optional] **filters** | **String**| | [optional] **searchFilters** | **String**| | [optional] @@ -789,7 +823,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getSearchPages** -> ModerationPageSearchResponse getSearchPages(value, sso) +> ModerationPageSearchResponse getSearchPages(tenantId, GetSearchPagesOptions options) @@ -798,11 +832,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final value = value_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getSearchPages(value, sso); + final result = api_instance.getSearchPages(tenantId, GetSearchPagesOptions(value: value, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getSearchPages: $e\n'); @@ -813,6 +848,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **value** | **String**| | [optional] **sso** | **String**| | [optional] @@ -832,7 +868,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getSearchSites** -> ModerationSiteSearchResponse getSearchSites(value, sso) +> ModerationSiteSearchResponse getSearchSites(tenantId, GetSearchSitesOptions options) @@ -841,11 +877,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final value = value_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getSearchSites(value, sso); + final result = api_instance.getSearchSites(tenantId, GetSearchSitesOptions(value: value, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getSearchSites: $e\n'); @@ -856,6 +893,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **value** | **String**| | [optional] **sso** | **String**| | [optional] @@ -875,7 +913,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getSearchSuggest** -> ModerationSuggestResponse getSearchSuggest(textSearch, sso) +> ModerationSuggestResponse getSearchSuggest(tenantId, GetSearchSuggestOptions options) @@ -884,11 +922,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final textSearch = textSearch_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getSearchSuggest(textSearch, sso); + final result = api_instance.getSearchSuggest(tenantId, GetSearchSuggestOptions(textSearch: textSearch, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getSearchSuggest: $e\n'); @@ -899,6 +938,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **textSearch** | **String**| | [optional] **sso** | **String**| | [optional] @@ -918,7 +958,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getSearchUsers** -> ModerationUserSearchResponse getSearchUsers(value, sso) +> ModerationUserSearchResponse getSearchUsers(tenantId, GetSearchUsersOptions options) @@ -927,11 +967,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final value = value_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getSearchUsers(value, sso); + final result = api_instance.getSearchUsers(tenantId, GetSearchUsersOptions(value: value, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getSearchUsers: $e\n'); @@ -942,6 +983,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **value** | **String**| | [optional] **sso** | **String**| | [optional] @@ -961,7 +1003,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTrustFactor** -> GetUserTrustFactorResponse getTrustFactor(userId, sso) +> GetUserTrustFactorResponse getTrustFactor(tenantId, GetTrustFactorOptions options) @@ -970,11 +1012,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final userId = userId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getTrustFactor(userId, sso); + final result = api_instance.getTrustFactor(tenantId, GetTrustFactorOptions(userId: userId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getTrustFactor: $e\n'); @@ -985,6 +1028,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **userId** | **String**| | [optional] **sso** | **String**| | [optional] @@ -1004,7 +1048,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserBanPreference** -> APIModerateGetUserBanPreferencesResponse getUserBanPreference(sso) +> APIModerateGetUserBanPreferencesResponse getUserBanPreference(tenantId, sso) @@ -1013,10 +1057,11 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getUserBanPreference(sso); + final result = api_instance.getUserBanPreference(tenantId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->getUserBanPreference: $e\n'); @@ -1027,6 +1072,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **sso** | **String**| | [optional] ### Return type @@ -1045,7 +1091,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserInternalProfile** -> GetUserInternalProfileResponse getUserInternalProfile(commentId, sso) +> GetUserInternalProfileResponse getUserInternalProfile(tenantId, GetUserInternalProfileOptions options) @@ -1054,11 +1100,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getUserInternalProfile(commentId, sso); + final result = api_instance.getUserInternalProfile(tenantId, GetUserInternalProfileOptions(commentId: commentId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->getUserInternalProfile: $e\n'); @@ -1069,6 +1116,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | [optional] **sso** | **String**| | [optional] @@ -1088,7 +1136,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postAdjustCommentVotes** -> AdjustVotesResponse postAdjustCommentVotes(commentId, adjustCommentVotesParams, sso) +> AdjustVotesResponse postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams, PostAdjustCommentVotesOptions options) @@ -1097,12 +1145,14 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final adjustCommentVotesParams = AdjustCommentVotesParams(); // AdjustCommentVotesParams | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postAdjustCommentVotes(commentId, adjustCommentVotesParams, sso); + final result = api_instance.postAdjustCommentVotes(tenantId, commentId, adjustCommentVotesParams, PostAdjustCommentVotesOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postAdjustCommentVotes: $e\n'); @@ -1113,8 +1163,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md)| | + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1133,7 +1185,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postApiExport** -> ModerationExportResponse postApiExport(textSearch, byIPFromComment, filters, searchFilters, sorts, sso) +> ModerationExportResponse postApiExport(tenantId, PostApiExportOptions options) @@ -1142,6 +1194,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final textSearch = textSearch_example; // String | final byIPFromComment = byIPFromComment_example; // String | final filters = filters_example; // String | @@ -1150,7 +1203,7 @@ final sorts = sorts_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postApiExport(textSearch, byIPFromComment, filters, searchFilters, sorts, sso); + final result = api_instance.postApiExport(tenantId, PostApiExportOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postApiExport: $e\n'); @@ -1161,6 +1214,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **textSearch** | **String**| | [optional] **byIPFromComment** | **String**| | [optional] **filters** | **String**| | [optional] @@ -1184,7 +1238,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postBanUserFromComment** -> BanUserFromCommentResult postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso) +> BanUserFromCommentResult postBanUserFromComment(tenantId, commentId, PostBanUserFromCommentOptions options) @@ -1193,6 +1247,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final banEmail = true; // bool | final banEmailDomain = true; // bool | @@ -1205,7 +1260,7 @@ final banReason = banReason_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postBanUserFromComment(commentId, banEmail, banEmailDomain, banIP, deleteAllUsersComments, bannedUntil, isShadowBan, updateId, banReason, sso); + final result = api_instance.postBanUserFromComment(tenantId, commentId, PostBanUserFromCommentOptions(banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postBanUserFromComment: $e\n'); @@ -1216,6 +1271,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **banEmail** | **bool**| | [optional] **banEmailDomain** | **bool**| | [optional] @@ -1243,7 +1299,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postBanUserUndo** -> APIEmptyResponse postBanUserUndo(banUserUndoParams, sso) +> APIEmptyResponse postBanUserUndo(tenantId, banUserUndoParams, sso) @@ -1252,11 +1308,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final banUserUndoParams = BanUserUndoParams(); // BanUserUndoParams | final sso = sso_example; // String | try { - final result = api_instance.postBanUserUndo(banUserUndoParams, sso); + final result = api_instance.postBanUserUndo(tenantId, banUserUndoParams, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->postBanUserUndo: $e\n'); @@ -1267,6 +1324,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md)| | **sso** | **String**| | [optional] @@ -1286,7 +1344,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postBulkPreBanSummary** -> BulkPreBanSummary postBulkPreBanSummary(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso) +> BulkPreBanSummary postBulkPreBanSummary(tenantId, bulkPreBanParams, PostBulkPreBanSummaryOptions options) @@ -1295,6 +1353,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final bulkPreBanParams = BulkPreBanParams(); // BulkPreBanParams | final includeByUserIdAndEmail = true; // bool | final includeByIP = true; // bool | @@ -1302,7 +1361,7 @@ final includeByEmailDomain = true; // bool | final sso = sso_example; // String | try { - final result = api_instance.postBulkPreBanSummary(bulkPreBanParams, includeByUserIdAndEmail, includeByIP, includeByEmailDomain, sso); + final result = api_instance.postBulkPreBanSummary(tenantId, bulkPreBanParams, PostBulkPreBanSummaryOptions(includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postBulkPreBanSummary: $e\n'); @@ -1313,6 +1372,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md)| | **includeByUserIdAndEmail** | **bool**| | [optional] **includeByIP** | **bool**| | [optional] @@ -1335,7 +1395,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postCommentsByIds** -> ModerationAPIChildCommentsResponse postCommentsByIds(commentsByIdsParams, sso) +> ModerationAPIChildCommentsResponse postCommentsByIds(tenantId, commentsByIdsParams, sso) @@ -1344,11 +1404,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentsByIdsParams = CommentsByIdsParams(); // CommentsByIdsParams | final sso = sso_example; // String | try { - final result = api_instance.postCommentsByIds(commentsByIdsParams, sso); + final result = api_instance.postCommentsByIds(tenantId, commentsByIdsParams, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->postCommentsByIds: $e\n'); @@ -1359,6 +1420,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md)| | **sso** | **String**| | [optional] @@ -1378,7 +1440,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postFlagComment** -> APIEmptyResponse postFlagComment(commentId, sso) +> APIEmptyResponse postFlagComment(tenantId, commentId, PostFlagCommentOptions options) @@ -1387,11 +1449,13 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postFlagComment(commentId, sso); + final result = api_instance.postFlagComment(tenantId, commentId, PostFlagCommentOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postFlagComment: $e\n'); @@ -1402,7 +1466,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1421,7 +1487,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postRemoveComment** -> PostRemoveCommentResponse postRemoveComment(commentId, sso) +> PostRemoveCommentApiResponse postRemoveComment(tenantId, commentId, PostRemoveCommentOptions options) @@ -1430,11 +1496,13 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postRemoveComment(commentId, sso); + final result = api_instance.postRemoveComment(tenantId, commentId, PostRemoveCommentOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postRemoveComment: $e\n'); @@ -1445,12 +1513,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type -[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) +[**PostRemoveCommentApiResponse**](PostRemoveCommentApiResponse.md) ### Authorization @@ -1464,7 +1534,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postRestoreDeletedComment** -> APIEmptyResponse postRestoreDeletedComment(commentId, sso) +> APIEmptyResponse postRestoreDeletedComment(tenantId, commentId, PostRestoreDeletedCommentOptions options) @@ -1473,11 +1543,13 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postRestoreDeletedComment(commentId, sso); + final result = api_instance.postRestoreDeletedComment(tenantId, commentId, PostRestoreDeletedCommentOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postRestoreDeletedComment: $e\n'); @@ -1488,7 +1560,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1507,7 +1581,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postSetCommentApprovalStatus** -> SetCommentApprovedResponse postSetCommentApprovalStatus(commentId, approved, sso) +> SetCommentApprovedResponse postSetCommentApprovalStatus(tenantId, commentId, PostSetCommentApprovalStatusOptions options) @@ -1516,12 +1590,14 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final approved = true; // bool | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postSetCommentApprovalStatus(commentId, approved, sso); + final result = api_instance.postSetCommentApprovalStatus(tenantId, commentId, PostSetCommentApprovalStatusOptions(approved: approved, broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postSetCommentApprovalStatus: $e\n'); @@ -1532,8 +1608,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **approved** | **bool**| | [optional] + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1552,7 +1630,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postSetCommentReviewStatus** -> APIEmptyResponse postSetCommentReviewStatus(commentId, reviewed, sso) +> APIEmptyResponse postSetCommentReviewStatus(tenantId, commentId, PostSetCommentReviewStatusOptions options) @@ -1561,12 +1639,14 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final reviewed = true; // bool | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postSetCommentReviewStatus(commentId, reviewed, sso); + final result = api_instance.postSetCommentReviewStatus(tenantId, commentId, PostSetCommentReviewStatusOptions(reviewed: reviewed, broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postSetCommentReviewStatus: $e\n'); @@ -1577,8 +1657,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **reviewed** | **bool**| | [optional] + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1597,7 +1679,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postSetCommentSpamStatus** -> APIEmptyResponse postSetCommentSpamStatus(commentId, spam, permNotSpam, sso) +> APIEmptyResponse postSetCommentSpamStatus(tenantId, commentId, PostSetCommentSpamStatusOptions options) @@ -1606,13 +1688,15 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final spam = true; // bool | final permNotSpam = true; // bool | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postSetCommentSpamStatus(commentId, spam, permNotSpam, sso); + final result = api_instance.postSetCommentSpamStatus(tenantId, commentId, PostSetCommentSpamStatusOptions(spam: spam, permNotSpam: permNotSpam, broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postSetCommentSpamStatus: $e\n'); @@ -1623,9 +1707,11 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **spam** | **bool**| | [optional] **permNotSpam** | **bool**| | [optional] + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1644,7 +1730,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postSetCommentText** -> SetCommentTextResponse postSetCommentText(commentId, setCommentTextParams, sso) +> SetCommentTextResponse postSetCommentText(tenantId, commentId, setCommentTextParams, PostSetCommentTextOptions options) @@ -1653,12 +1739,14 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final setCommentTextParams = SetCommentTextParams(); // SetCommentTextParams | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postSetCommentText(commentId, setCommentTextParams, sso); + final result = api_instance.postSetCommentText(tenantId, commentId, setCommentTextParams, PostSetCommentTextOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postSetCommentText: $e\n'); @@ -1669,8 +1757,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md)| | + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1689,7 +1779,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postUnFlagComment** -> APIEmptyResponse postUnFlagComment(commentId, sso) +> APIEmptyResponse postUnFlagComment(tenantId, commentId, PostUnFlagCommentOptions options) @@ -1698,11 +1788,13 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postUnFlagComment(commentId, sso); + final result = api_instance.postUnFlagComment(tenantId, commentId, PostUnFlagCommentOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postUnFlagComment: $e\n'); @@ -1713,7 +1805,9 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1732,7 +1826,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **postVote** -> VoteResponse postVote(commentId, direction, sso) +> VoteResponse postVote(tenantId, commentId, PostVoteOptions options) @@ -1741,12 +1835,14 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final commentId = commentId_example; // String | final direction = direction_example; // String | +final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.postVote(commentId, direction, sso); + final result = api_instance.postVote(tenantId, commentId, PostVoteOptions(direction: direction, broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->postVote: $e\n'); @@ -1757,8 +1853,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **commentId** | **String**| | **direction** | **String**| | [optional] + **broadcastId** | **String**| | [optional] **sso** | **String**| | [optional] ### Return type @@ -1777,7 +1875,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **putAwardBadge** -> AwardUserBadgeResponse putAwardBadge(badgeId, userId, commentId, broadcastId, sso) +> AwardUserBadgeResponse putAwardBadge(tenantId, badgeId, PutAwardBadgeOptions options) @@ -1786,6 +1884,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final badgeId = badgeId_example; // String | final userId = userId_example; // String | final commentId = commentId_example; // String | @@ -1793,7 +1892,7 @@ final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.putAwardBadge(badgeId, userId, commentId, broadcastId, sso); + final result = api_instance.putAwardBadge(tenantId, badgeId, PutAwardBadgeOptions(userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->putAwardBadge: $e\n'); @@ -1804,6 +1903,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **badgeId** | **String**| | **userId** | **String**| | [optional] **commentId** | **String**| | [optional] @@ -1826,7 +1926,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **putCloseThread** -> APIEmptyResponse putCloseThread(urlId, sso) +> APIEmptyResponse putCloseThread(tenantId, urlId, sso) @@ -1835,11 +1935,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final urlId = urlId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.putCloseThread(urlId, sso); + final result = api_instance.putCloseThread(tenantId, urlId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->putCloseThread: $e\n'); @@ -1850,6 +1951,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **urlId** | **String**| | **sso** | **String**| | [optional] @@ -1869,7 +1971,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **putRemoveBadge** -> RemoveUserBadgeResponse putRemoveBadge(badgeId, userId, commentId, broadcastId, sso) +> RemoveUserBadgeResponse putRemoveBadge(tenantId, badgeId, PutRemoveBadgeOptions options) @@ -1878,6 +1980,7 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final badgeId = badgeId_example; // String | final userId = userId_example; // String | final commentId = commentId_example; // String | @@ -1885,7 +1988,7 @@ final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.putRemoveBadge(badgeId, userId, commentId, broadcastId, sso); + final result = api_instance.putRemoveBadge(tenantId, badgeId, PutRemoveBadgeOptions(userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->putRemoveBadge: $e\n'); @@ -1896,6 +1999,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **badgeId** | **String**| | **userId** | **String**| | [optional] **commentId** | **String**| | [optional] @@ -1918,7 +2022,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **putReopenThread** -> APIEmptyResponse putReopenThread(urlId, sso) +> APIEmptyResponse putReopenThread(tenantId, urlId, sso) @@ -1927,11 +2031,12 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final urlId = urlId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.putReopenThread(urlId, sso); + final result = api_instance.putReopenThread(tenantId, urlId, sso); print(result); } catch (e) { print('Exception when calling ModerationApi->putReopenThread: $e\n'); @@ -1942,6 +2047,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **urlId** | **String**| | **sso** | **String**| | [optional] @@ -1961,7 +2067,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **setTrustFactor** -> SetUserTrustFactorResponse setTrustFactor(userId, trustFactor, sso) +> SetUserTrustFactorResponse setTrustFactor(tenantId, SetTrustFactorOptions options) @@ -1970,12 +2076,13 @@ No authorization required import 'package:fastcomments_dart/api.dart'; final api_instance = ModerationApi(); +final tenantId = tenantId_example; // String | final userId = userId_example; // String | final trustFactor = trustFactor_example; // String | final sso = sso_example; // String | try { - final result = api_instance.setTrustFactor(userId, trustFactor, sso); + final result = api_instance.setTrustFactor(tenantId, SetTrustFactorOptions(userId: userId, trustFactor: trustFactor, sso: sso)); print(result); } catch (e) { print('Exception when calling ModerationApi->setTrustFactor: $e\n'); @@ -1986,6 +2093,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String**| | **userId** | **String**| | [optional] **trustFactor** | **String**| | [optional] **sso** | **String**| | [optional] diff --git a/client/doc/PostRemoveCommentResponse.md b/client/doc/PostRemoveCommentApiResponse.md similarity index 88% rename from client/doc/PostRemoveCommentResponse.md rename to client/doc/PostRemoveCommentApiResponse.md index 20c632d..986597e 100644 --- a/client/doc/PostRemoveCommentResponse.md +++ b/client/doc/PostRemoveCommentApiResponse.md @@ -1,4 +1,4 @@ -# fastcomments_dart.model.PostRemoveCommentResponse +# fastcomments_dart.model.PostRemoveCommentApiResponse ## Load the model package ```dart diff --git a/client/doc/PublicApi.md b/client/doc/PublicApi.md index 47ee71d..67fa277 100644 --- a/client/doc/PublicApi.md +++ b/client/doc/PublicApi.md @@ -156,7 +156,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createCommentPublic** -> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, commentData, sessionId, sso) +> SaveCommentsResponseWithPresence createCommentPublic(tenantId, urlId, broadcastId, commentData, CreateCommentPublicOptions options) @@ -173,7 +173,7 @@ final sessionId = sessionId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.createCommentPublic(tenantId, urlId, broadcastId, commentData, sessionId, sso); + final result = api_instance.createCommentPublic(tenantId, urlId, broadcastId, commentData, CreateCommentPublicOptions(sessionId: sessionId, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->createCommentPublic: $e\n'); @@ -207,7 +207,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createFeedPostPublic** -> CreateFeedPostResponse createFeedPostPublic(tenantId, createFeedPostParams, broadcastId, sso) +> CreateFeedPostResponse createFeedPostPublic(tenantId, createFeedPostParams, CreateFeedPostPublicOptions options) @@ -222,7 +222,7 @@ final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.createFeedPostPublic(tenantId, createFeedPostParams, broadcastId, sso); + final result = api_instance.createFeedPostPublic(tenantId, createFeedPostParams, CreateFeedPostPublicOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->createFeedPostPublic: $e\n'); @@ -346,7 +346,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteCommentPublic** -> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso) +> PublicAPIDeleteCommentResponse deleteCommentPublic(tenantId, commentId, broadcastId, DeleteCommentPublicOptions options) @@ -362,7 +362,7 @@ final editKey = editKey_example; // String | final sso = sso_example; // String | try { - final result = api_instance.deleteCommentPublic(tenantId, commentId, broadcastId, editKey, sso); + final result = api_instance.deleteCommentPublic(tenantId, commentId, broadcastId, DeleteCommentPublicOptions(editKey: editKey, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->deleteCommentPublic: $e\n'); @@ -395,7 +395,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteCommentVote** -> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso) +> VoteDeleteResponse deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, DeleteCommentVoteOptions options) @@ -413,7 +413,7 @@ final editKey = editKey_example; // String | final sso = sso_example; // String | try { - final result = api_instance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, editKey, sso); + final result = api_instance.deleteCommentVote(tenantId, commentId, voteId, urlId, broadcastId, DeleteCommentVoteOptions(editKey: editKey, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->deleteCommentVote: $e\n'); @@ -448,7 +448,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **deleteFeedPostPublic** -> DeleteFeedPostPublicResponse deleteFeedPostPublic(tenantId, postId, broadcastId, sso) +> DeleteFeedPostPublicResponse deleteFeedPostPublic(tenantId, postId, DeleteFeedPostPublicOptions options) @@ -463,7 +463,7 @@ final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.deleteFeedPostPublic(tenantId, postId, broadcastId, sso); + final result = api_instance.deleteFeedPostPublic(tenantId, postId, DeleteFeedPostPublicOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->deleteFeedPostPublic: $e\n'); @@ -630,7 +630,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCommentText** -> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId, editKey, sso) +> PublicAPIGetCommentTextResponse getCommentText(tenantId, commentId, GetCommentTextOptions options) @@ -645,7 +645,7 @@ final editKey = editKey_example; // String | final sso = sso_example; // String | try { - final result = api_instance.getCommentText(tenantId, commentId, editKey, sso); + final result = api_instance.getCommentText(tenantId, commentId, GetCommentTextOptions(editKey: editKey, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->getCommentText: $e\n'); @@ -724,7 +724,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCommentsForUser** -> GetCommentsForUserResponse getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler) +> GetCommentsForUserResponse getCommentsForUser(GetCommentsForUserOptions options) @@ -742,7 +742,7 @@ final locale = locale_example; // String | final isCrawler = true; // bool | try { - final result = api_instance.getCommentsForUser(userId, direction, repliesToUserId, page, includei10n, locale, isCrawler); + final result = api_instance.getCommentsForUser(GetCommentsForUserOptions(userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler)); print(result); } catch (e) { print('Exception when calling PublicApi->getCommentsForUser: $e\n'); @@ -777,7 +777,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getCommentsPublic** -> GetCommentsResponseWithPresencePublicComment getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId) +> GetCommentsResponseWithPresencePublicComment getCommentsPublic(tenantId, urlId, GetCommentsPublicOptions options) @@ -818,7 +818,7 @@ final afterCommentId = afterCommentId_example; // String | final beforeCommentId = beforeCommentId_example; // String | try { - final result = api_instance.getCommentsPublic(tenantId, urlId, page, direction, sso, skip, skipChildren, limit, limitChildren, countChildren, fetchPageForCommentId, includeConfig, countAll, includei10n, locale, modules, isCrawler, includeNotificationCount, asTree, maxTreeDepth, useFullTranslationIds, parentId, searchText, hashTags, userId, customConfigStr, afterCommentId, beforeCommentId); + final result = api_instance.getCommentsPublic(tenantId, urlId, GetCommentsPublicOptions(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)); print(result); } catch (e) { print('Exception when calling PublicApi->getCommentsPublic: $e\n'); @@ -925,7 +925,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getFeedPostsPublic** -> PublicFeedPostsResponse getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo) +> PublicFeedPostsResponse getFeedPostsPublic(tenantId, GetFeedPostsPublicOptions options) @@ -945,7 +945,7 @@ final isCrawler = true; // bool | final includeUserInfo = true; // bool | try { - final result = api_instance.getFeedPostsPublic(tenantId, afterId, limit, tags, sso, isCrawler, includeUserInfo); + final result = api_instance.getFeedPostsPublic(tenantId, GetFeedPostsPublicOptions(afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo)); print(result); } catch (e) { print('Exception when calling PublicApi->getFeedPostsPublic: $e\n'); @@ -1068,7 +1068,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getGifsSearch** -> GetGifsSearchResponse getGifsSearch(tenantId, search, locale, rating, page) +> GetGifsSearchResponse getGifsSearch(tenantId, search, GetGifsSearchOptions options) @@ -1084,7 +1084,7 @@ final rating = rating_example; // String | final page = 1.2; // double | try { - final result = api_instance.getGifsSearch(tenantId, search, locale, rating, page); + final result = api_instance.getGifsSearch(tenantId, search, GetGifsSearchOptions(locale: locale, rating: rating, page: page)); print(result); } catch (e) { print('Exception when calling PublicApi->getGifsSearch: $e\n'); @@ -1117,7 +1117,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getGifsTrending** -> GetGifsTrendingResponse getGifsTrending(tenantId, locale, rating, page) +> GetGifsTrendingResponse getGifsTrending(tenantId, GetGifsTrendingOptions options) @@ -1132,7 +1132,7 @@ final rating = rating_example; // String | final page = 1.2; // double | try { - final result = api_instance.getGifsTrending(tenantId, locale, rating, page); + final result = api_instance.getGifsTrending(tenantId, GetGifsTrendingOptions(locale: locale, rating: rating, page: page)); print(result); } catch (e) { print('Exception when calling PublicApi->getGifsTrending: $e\n'); @@ -1215,7 +1215,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getOfflineUsers** -> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId, afterName, afterUserId) +> PageUsersOfflineResponse getOfflineUsers(tenantId, urlId, GetOfflineUsersOptions options) @@ -1232,7 +1232,7 @@ final afterName = afterName_example; // String | Cursor: pass nextAfterName from final afterUserId = afterUserId_example; // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. try { - final result = api_instance.getOfflineUsers(tenantId, urlId, afterName, afterUserId); + final result = api_instance.getOfflineUsers(tenantId, urlId, GetOfflineUsersOptions(afterName: afterName, afterUserId: afterUserId)); print(result); } catch (e) { print('Exception when calling PublicApi->getOfflineUsers: $e\n'); @@ -1264,7 +1264,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getOnlineUsers** -> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId, afterName, afterUserId) +> PageUsersOnlineResponse getOnlineUsers(tenantId, urlId, GetOnlineUsersOptions options) @@ -1281,7 +1281,7 @@ final afterName = afterName_example; // String | Cursor: pass nextAfterName from final afterUserId = afterUserId_example; // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. try { - final result = api_instance.getOnlineUsers(tenantId, urlId, afterName, afterUserId); + final result = api_instance.getOnlineUsers(tenantId, urlId, GetOnlineUsersOptions(afterName: afterName, afterUserId: afterUserId)); print(result); } catch (e) { print('Exception when calling PublicApi->getOnlineUsers: $e\n'); @@ -1313,7 +1313,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getPagesPublic** -> GetPublicPagesResponse getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments) +> GetPublicPagesResponse getPagesPublic(tenantId, GetPagesPublicOptions options) @@ -1332,7 +1332,7 @@ final sortBy = ; // PagesSortBy | Sort order. `updatedAt` (default, newest first final hasComments = true; // bool | If true, only return pages with at least one comment. try { - final result = api_instance.getPagesPublic(tenantId, cursor, limit, q, sortBy, hasComments); + final result = api_instance.getPagesPublic(tenantId, GetPagesPublicOptions(cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments)); print(result); } catch (e) { print('Exception when calling PublicApi->getPagesPublic: $e\n'); @@ -1366,7 +1366,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getTranslations** -> GetTranslationsResponse getTranslations(namespace, component, locale, useFullTranslationIds) +> GetTranslationsResponse getTranslations(namespace, component, GetTranslationsOptions options) @@ -1381,7 +1381,7 @@ final locale = locale_example; // String | final useFullTranslationIds = true; // bool | try { - final result = api_instance.getTranslations(namespace, component, locale, useFullTranslationIds); + final result = api_instance.getTranslations(namespace, component, GetTranslationsOptions(locale: locale, useFullTranslationIds: useFullTranslationIds)); print(result); } catch (e) { print('Exception when calling PublicApi->getTranslations: $e\n'); @@ -1456,7 +1456,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserNotifications** -> GetMyNotificationsResponse getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso) +> GetMyNotificationsResponse getUserNotifications(tenantId, GetUserNotificationsOptions options) @@ -1479,7 +1479,7 @@ final includeTenantNotifications = true; // bool | final sso = sso_example; // String | try { - final result = api_instance.getUserNotifications(tenantId, urlId, pageSize, afterId, includeContext, afterCreatedAt, unreadOnly, dmOnly, noDm, includeTranslations, includeTenantNotifications, sso); + final result = api_instance.getUserNotifications(tenantId, GetUserNotificationsOptions(urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->getUserNotifications: $e\n'); @@ -1564,7 +1564,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getUserReactsPublic** -> UserReactsResponse getUserReactsPublic(tenantId, postIds, sso) +> UserReactsResponse getUserReactsPublic(tenantId, GetUserReactsPublicOptions options) @@ -1578,7 +1578,7 @@ final postIds = []; // List | final sso = sso_example; // String | try { - final result = api_instance.getUserReactsPublic(tenantId, postIds, sso); + final result = api_instance.getUserReactsPublic(tenantId, GetUserReactsPublicOptions(postIds: postIds, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->getUserReactsPublic: $e\n'); @@ -1916,7 +1916,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **reactFeedPostPublic** -> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso) +> ReactFeedPostResponse reactFeedPostPublic(tenantId, postId, reactBodyParams, ReactFeedPostPublicOptions options) @@ -1933,7 +1933,7 @@ final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.reactFeedPostPublic(tenantId, postId, reactBodyParams, isUndo, broadcastId, sso); + final result = api_instance.reactFeedPostPublic(tenantId, postId, reactBodyParams, ReactFeedPostPublicOptions(isUndo: isUndo, broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->reactFeedPostPublic: $e\n'); @@ -2010,7 +2010,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **resetUserNotifications** -> ResetUserNotificationsResponse resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso) +> ResetUserNotificationsResponse resetUserNotifications(tenantId, ResetUserNotificationsOptions options) @@ -2028,7 +2028,7 @@ final noDm = true; // bool | final sso = sso_example; // String | try { - final result = api_instance.resetUserNotifications(tenantId, afterId, afterCreatedAt, unreadOnly, dmOnly, noDm, sso); + final result = api_instance.resetUserNotifications(tenantId, ResetUserNotificationsOptions(afterId: afterId, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->resetUserNotifications: $e\n'); @@ -2063,7 +2063,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **searchUsers** -> SearchUsersResult searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection) +> SearchUsersResult searchUsers(tenantId, urlId, SearchUsersOptions options) @@ -2080,7 +2080,7 @@ final sso = sso_example; // String | final searchSection = searchSection_example; // String | try { - final result = api_instance.searchUsers(tenantId, urlId, usernameStartsWith, mentionGroupIds, sso, searchSection); + final result = api_instance.searchUsers(tenantId, urlId, SearchUsersOptions(usernameStartsWith: usernameStartsWith, mentionGroupIds: mentionGroupIds, sso: sso, searchSection: searchSection)); print(result); } catch (e) { print('Exception when calling PublicApi->searchUsers: $e\n'); @@ -2114,7 +2114,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **setCommentText** -> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso) +> PublicAPISetCommentTextResponse setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, SetCommentTextOptions options) @@ -2131,7 +2131,7 @@ final editKey = editKey_example; // String | final sso = sso_example; // String | try { - final result = api_instance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey, sso); + final result = api_instance.setCommentText(tenantId, commentId, broadcastId, commentTextUpdateRequest, SetCommentTextOptions(editKey: editKey, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->setCommentText: $e\n'); @@ -2306,7 +2306,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **updateFeedPostPublic** -> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, updateFeedPostParams, broadcastId, sso) +> CreateFeedPostResponse updateFeedPostPublic(tenantId, postId, updateFeedPostParams, UpdateFeedPostPublicOptions options) @@ -2322,7 +2322,7 @@ final broadcastId = broadcastId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams, broadcastId, sso); + final result = api_instance.updateFeedPostPublic(tenantId, postId, updateFeedPostParams, UpdateFeedPostPublicOptions(broadcastId: broadcastId, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->updateFeedPostPublic: $e\n'); @@ -2506,7 +2506,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **uploadImage** -> UploadImageResponse uploadImage(tenantId, file, sizePreset, urlId) +> UploadImageResponse uploadImage(tenantId, file, UploadImageOptions options) @@ -2523,7 +2523,7 @@ final sizePreset = ; // SizePreset | Size preset: \"Default\" (1000x1000px) or \ final urlId = urlId_example; // String | Page id that upload is happening from, to configure try { - final result = api_instance.uploadImage(tenantId, file, sizePreset, urlId); + final result = api_instance.uploadImage(tenantId, file, UploadImageOptions(sizePreset: sizePreset, urlId: urlId)); print(result); } catch (e) { print('Exception when calling PublicApi->uploadImage: $e\n'); @@ -2555,7 +2555,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **voteComment** -> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso) +> VoteResponse voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, VoteCommentOptions options) @@ -2573,7 +2573,7 @@ final sessionId = sessionId_example; // String | final sso = sso_example; // String | try { - final result = api_instance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId, sso); + final result = api_instance.voteComment(tenantId, commentId, urlId, broadcastId, voteBodyParams, VoteCommentOptions(sessionId: sessionId, sso: sso)); print(result); } catch (e) { print('Exception when calling PublicApi->voteComment: $e\n'); diff --git a/client/lib/api.dart b/client/lib/api.dart index 27757e2..1c03d2a 100644 --- a/client/lib/api.dart +++ b/client/lib/api.dart @@ -291,7 +291,7 @@ part 'model/patch_domain_config_response.dart'; part 'model/patch_page_api_response.dart'; part 'model/patch_sso_user_api_response.dart'; part 'model/pending_comment_to_sync_outbound.dart'; -part 'model/post_remove_comment_response.dart'; +part 'model/post_remove_comment_api_response.dart'; part 'model/pre_ban_summary.dart'; part 'model/pub_sub_comment.dart'; part 'model/pub_sub_comment_base.dart'; diff --git a/client/lib/api/default_api.dart b/client/lib/api/default_api.dart index c101e96..fdfb1ae 100644 --- a/client/lib/api/default_api.dart +++ b/client/lib/api/default_api.dart @@ -22,7 +22,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [AddDomainConfigParams] addDomainConfigParams (required): - Future addDomainConfigWithHttpInfo(String tenantId, AddDomainConfigParams addDomainConfigParams,) async { + Future addDomainConfigWithHttpInfo(String tenantId, AddDomainConfigParams addDomainConfigParams) async { // ignore: prefer_const_declarations final path = r'/api/v1/domain-configs'; @@ -54,8 +54,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [AddDomainConfigParams] addDomainConfigParams (required): - Future addDomainConfig(String tenantId, AddDomainConfigParams addDomainConfigParams,) async { - final response = await addDomainConfigWithHttpInfo(tenantId, addDomainConfigParams,); + Future addDomainConfig(String tenantId, AddDomainConfigParams addDomainConfigParams) async { + final response = await addDomainConfigWithHttpInfo(tenantId, addDomainConfigParams); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -72,10 +72,10 @@ class DefaultApi { /// Performs an HTTP 'POST /api/v1/hash-tags' operation and returns the [Response]. /// Parameters: /// - /// * [String] tenantId: + /// * [String] tenantId (required): /// /// * [CreateHashTagBody] createHashTagBody: - Future addHashTagWithHttpInfo({ String? tenantId, CreateHashTagBody? createHashTagBody, }) async { + Future addHashTagWithHttpInfo(String tenantId, CreateHashTagBody createHashTagBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/hash-tags'; @@ -86,9 +86,7 @@ class DefaultApi { final headerParams = {}; final formParams = {}; - if (tenantId != null) { queryParams.addAll(_queryParams('', 'tenantId', tenantId)); - } const contentTypes = ['application/json']; @@ -106,11 +104,11 @@ class DefaultApi { /// Parameters: /// - /// * [String] tenantId: + /// * [String] tenantId (required): /// /// * [CreateHashTagBody] createHashTagBody: - Future addHashTag({ String? tenantId, CreateHashTagBody? createHashTagBody, }) async { - final response = await addHashTagWithHttpInfo( tenantId: tenantId, createHashTagBody: createHashTagBody, ); + Future addHashTag(String tenantId, CreateHashTagBody createHashTagBody) async { + final response = await addHashTagWithHttpInfo(tenantId, createHashTagBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -127,10 +125,10 @@ class DefaultApi { /// Performs an HTTP 'POST /api/v1/hash-tags/bulk' operation and returns the [Response]. /// Parameters: /// - /// * [String] tenantId: + /// * [String] tenantId (required): /// /// * [BulkCreateHashTagsBody] bulkCreateHashTagsBody: - Future addHashTagsBulkWithHttpInfo({ String? tenantId, BulkCreateHashTagsBody? bulkCreateHashTagsBody, }) async { + Future addHashTagsBulkWithHttpInfo(String tenantId, BulkCreateHashTagsBody bulkCreateHashTagsBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/hash-tags/bulk'; @@ -141,9 +139,7 @@ class DefaultApi { final headerParams = {}; final formParams = {}; - if (tenantId != null) { queryParams.addAll(_queryParams('', 'tenantId', tenantId)); - } const contentTypes = ['application/json']; @@ -161,11 +157,11 @@ class DefaultApi { /// Parameters: /// - /// * [String] tenantId: + /// * [String] tenantId (required): /// /// * [BulkCreateHashTagsBody] bulkCreateHashTagsBody: - Future addHashTagsBulk({ String? tenantId, BulkCreateHashTagsBody? bulkCreateHashTagsBody, }) async { - final response = await addHashTagsBulkWithHttpInfo( tenantId: tenantId, bulkCreateHashTagsBody: bulkCreateHashTagsBody, ); + Future addHashTagsBulk(String tenantId, BulkCreateHashTagsBody bulkCreateHashTagsBody) async { + final response = await addHashTagsBulkWithHttpInfo(tenantId, bulkCreateHashTagsBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -185,7 +181,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateAPIPageData] createAPIPageData (required): - Future addPageWithHttpInfo(String tenantId, CreateAPIPageData createAPIPageData,) async { + Future addPageWithHttpInfo(String tenantId, CreateAPIPageData createAPIPageData) async { // ignore: prefer_const_declarations final path = r'/api/v1/pages'; @@ -217,8 +213,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateAPIPageData] createAPIPageData (required): - Future addPage(String tenantId, CreateAPIPageData createAPIPageData,) async { - final response = await addPageWithHttpInfo(tenantId, createAPIPageData,); + Future addPage(String tenantId, CreateAPIPageData createAPIPageData) async { + final response = await addPageWithHttpInfo(tenantId, createAPIPageData); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -238,7 +234,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateAPISSOUserData] createAPISSOUserData (required): - Future addSSOUserWithHttpInfo(String tenantId, CreateAPISSOUserData createAPISSOUserData,) async { + Future addSSOUserWithHttpInfo(String tenantId, CreateAPISSOUserData createAPISSOUserData) async { // ignore: prefer_const_declarations final path = r'/api/v1/sso-users'; @@ -270,8 +266,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateAPISSOUserData] createAPISSOUserData (required): - Future addSSOUser(String tenantId, CreateAPISSOUserData createAPISSOUserData,) async { - final response = await addSSOUserWithHttpInfo(tenantId, createAPISSOUserData,); + Future addSSOUser(String tenantId, CreateAPISSOUserData createAPISSOUserData) async { + final response = await addSSOUserWithHttpInfo(tenantId, createAPISSOUserData); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -298,7 +294,9 @@ class DefaultApi { /// * [String] parentTenantId: /// /// * [bool] includeStats: - Future aggregateWithHttpInfo(String tenantId, AggregationRequest aggregationRequest, { String? parentTenantId, bool? includeStats, }) async { + Future aggregateWithHttpInfo(String tenantId, AggregationRequest aggregationRequest, [ AggregateOptions? options ]) async { + final parentTenantId = options?.parentTenantId; + final includeStats = options?.includeStats; // ignore: prefer_const_declarations final path = r'/api/v1/aggregate'; @@ -342,8 +340,8 @@ class DefaultApi { /// * [String] parentTenantId: /// /// * [bool] includeStats: - Future aggregate(String tenantId, AggregationRequest aggregationRequest, { String? parentTenantId, bool? includeStats, }) async { - final response = await aggregateWithHttpInfo(tenantId, aggregationRequest, parentTenantId: parentTenantId, includeStats: includeStats, ); + Future aggregate(String tenantId, AggregationRequest aggregationRequest, [ AggregateOptions? options ]) async { + final response = await aggregateWithHttpInfo(tenantId, aggregationRequest, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -373,7 +371,13 @@ class DefaultApi { /// * [DateTime] startDate: /// /// * [bool] forceRecalculate: - Future aggregateQuestionResultsWithHttpInfo(String tenantId, { String? questionId, List? questionIds, String? urlId, AggregateTimeBucket? timeBucket, DateTime? startDate, bool? forceRecalculate, }) async { + Future aggregateQuestionResultsWithHttpInfo(String tenantId, [ AggregateQuestionResultsOptions? options ]) async { + final questionId = options?.questionId; + final questionIds = options?.questionIds; + final urlId = options?.urlId; + final timeBucket = options?.timeBucket; + final startDate = options?.startDate; + final forceRecalculate = options?.forceRecalculate; // ignore: prefer_const_declarations final path = r'/api/v1/question-results-aggregation'; @@ -433,8 +437,8 @@ class DefaultApi { /// * [DateTime] startDate: /// /// * [bool] forceRecalculate: - Future aggregateQuestionResults(String tenantId, { String? questionId, List? questionIds, String? urlId, AggregateTimeBucket? timeBucket, DateTime? startDate, bool? forceRecalculate, }) async { - final response = await aggregateQuestionResultsWithHttpInfo(tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, timeBucket: timeBucket, startDate: startDate, forceRecalculate: forceRecalculate, ); + Future aggregateQuestionResults(String tenantId, [ AggregateQuestionResultsOptions? options ]) async { + final response = await aggregateQuestionResultsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -460,7 +464,9 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future blockUserFromCommentWithHttpInfo(String tenantId, String id, BlockFromCommentParams blockFromCommentParams, { String? userId, String? anonUserId, }) async { + Future blockUserFromCommentWithHttpInfo(String tenantId, String id, BlockFromCommentParams blockFromCommentParams, [ BlockUserFromCommentOptions? options ]) async { + final userId = options?.userId; + final anonUserId = options?.anonUserId; // ignore: prefer_const_declarations final path = r'/api/v1/comments/{id}/block' .replaceAll('{id}', id); @@ -505,8 +511,8 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future blockUserFromComment(String tenantId, String id, BlockFromCommentParams blockFromCommentParams, { String? userId, String? anonUserId, }) async { - final response = await blockUserFromCommentWithHttpInfo(tenantId, id, blockFromCommentParams, userId: userId, anonUserId: anonUserId, ); + Future blockUserFromComment(String tenantId, String id, BlockFromCommentParams blockFromCommentParams, [ BlockUserFromCommentOptions? options ]) async { + final response = await blockUserFromCommentWithHttpInfo(tenantId, id, blockFromCommentParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -528,7 +534,7 @@ class DefaultApi { /// * [BulkAggregateQuestionResultsRequest] bulkAggregateQuestionResultsRequest (required): /// /// * [bool] forceRecalculate: - Future bulkAggregateQuestionResultsWithHttpInfo(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, { bool? forceRecalculate, }) async { + Future bulkAggregateQuestionResultsWithHttpInfo(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, [ bool? forceRecalculate ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-results-aggregation/bulk'; @@ -565,8 +571,8 @@ class DefaultApi { /// * [BulkAggregateQuestionResultsRequest] bulkAggregateQuestionResultsRequest (required): /// /// * [bool] forceRecalculate: - Future bulkAggregateQuestionResults(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, { bool? forceRecalculate, }) async { - final response = await bulkAggregateQuestionResultsWithHttpInfo(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate: forceRecalculate, ); + Future bulkAggregateQuestionResults(String tenantId, BulkAggregateQuestionResultsRequest bulkAggregateQuestionResultsRequest, [ bool? forceRecalculate ]) async { + final response = await bulkAggregateQuestionResultsWithHttpInfo(tenantId, bulkAggregateQuestionResultsRequest, forceRecalculate); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -590,7 +596,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [ChangeTicketStateBody] changeTicketStateBody (required): - Future changeTicketStateWithHttpInfo(String tenantId, String userId, String id, ChangeTicketStateBody changeTicketStateBody,) async { + Future changeTicketStateWithHttpInfo(String tenantId, String userId, String id, ChangeTicketStateBody changeTicketStateBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/tickets/{id}/state' .replaceAll('{id}', id); @@ -628,8 +634,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [ChangeTicketStateBody] changeTicketStateBody (required): - Future changeTicketState(String tenantId, String userId, String id, ChangeTicketStateBody changeTicketStateBody,) async { - final response = await changeTicketStateWithHttpInfo(tenantId, userId, id, changeTicketStateBody,); + Future changeTicketState(String tenantId, String userId, String id, ChangeTicketStateBody changeTicketStateBody) async { + final response = await changeTicketStateWithHttpInfo(tenantId, userId, id, changeTicketStateBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -663,7 +669,15 @@ class DefaultApi { /// * [double] maxValue: /// /// * [double] limit: - Future combineCommentsWithQuestionResultsWithHttpInfo(String tenantId, { String? questionId, List? questionIds, String? urlId, DateTime? startDate, bool? forceRecalculate, double? minValue, double? maxValue, double? limit, }) async { + Future combineCommentsWithQuestionResultsWithHttpInfo(String tenantId, [ CombineCommentsWithQuestionResultsOptions? options ]) async { + final questionId = options?.questionId; + final questionIds = options?.questionIds; + final urlId = options?.urlId; + final startDate = options?.startDate; + final forceRecalculate = options?.forceRecalculate; + final minValue = options?.minValue; + final maxValue = options?.maxValue; + final limit = options?.limit; // ignore: prefer_const_declarations final path = r'/api/v1/question-results-aggregation/combine/comments'; @@ -733,8 +747,8 @@ class DefaultApi { /// * [double] maxValue: /// /// * [double] limit: - Future combineCommentsWithQuestionResults(String tenantId, { String? questionId, List? questionIds, String? urlId, DateTime? startDate, bool? forceRecalculate, double? minValue, double? maxValue, double? limit, }) async { - final response = await combineCommentsWithQuestionResultsWithHttpInfo(tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, startDate: startDate, forceRecalculate: forceRecalculate, minValue: minValue, maxValue: maxValue, limit: limit, ); + Future combineCommentsWithQuestionResults(String tenantId, [ CombineCommentsWithQuestionResultsOptions? options ]) async { + final response = await combineCommentsWithQuestionResultsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -754,7 +768,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateEmailTemplateBody] createEmailTemplateBody (required): - Future createEmailTemplateWithHttpInfo(String tenantId, CreateEmailTemplateBody createEmailTemplateBody,) async { + Future createEmailTemplateWithHttpInfo(String tenantId, CreateEmailTemplateBody createEmailTemplateBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates'; @@ -786,8 +800,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateEmailTemplateBody] createEmailTemplateBody (required): - Future createEmailTemplate(String tenantId, CreateEmailTemplateBody createEmailTemplateBody,) async { - final response = await createEmailTemplateWithHttpInfo(tenantId, createEmailTemplateBody,); + Future createEmailTemplate(String tenantId, CreateEmailTemplateBody createEmailTemplateBody) async { + final response = await createEmailTemplateWithHttpInfo(tenantId, createEmailTemplateBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -815,7 +829,11 @@ class DefaultApi { /// * [bool] doSpamCheck: /// /// * [bool] skipDupCheck: - Future createFeedPostWithHttpInfo(String tenantId, CreateFeedPostParams createFeedPostParams, { String? broadcastId, bool? isLive, bool? doSpamCheck, bool? skipDupCheck, }) async { + Future createFeedPostWithHttpInfo(String tenantId, CreateFeedPostParams createFeedPostParams, [ CreateFeedPostOptions? options ]) async { + final broadcastId = options?.broadcastId; + final isLive = options?.isLive; + final doSpamCheck = options?.doSpamCheck; + final skipDupCheck = options?.skipDupCheck; // ignore: prefer_const_declarations final path = r'/api/v1/feed-posts'; @@ -867,8 +885,8 @@ class DefaultApi { /// * [bool] doSpamCheck: /// /// * [bool] skipDupCheck: - Future createFeedPost(String tenantId, CreateFeedPostParams createFeedPostParams, { String? broadcastId, bool? isLive, bool? doSpamCheck, bool? skipDupCheck, }) async { - final response = await createFeedPostWithHttpInfo(tenantId, createFeedPostParams, broadcastId: broadcastId, isLive: isLive, doSpamCheck: doSpamCheck, skipDupCheck: skipDupCheck, ); + Future createFeedPost(String tenantId, CreateFeedPostParams createFeedPostParams, [ CreateFeedPostOptions? options ]) async { + final response = await createFeedPostWithHttpInfo(tenantId, createFeedPostParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -888,7 +906,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateModeratorBody] createModeratorBody (required): - Future createModeratorWithHttpInfo(String tenantId, CreateModeratorBody createModeratorBody,) async { + Future createModeratorWithHttpInfo(String tenantId, CreateModeratorBody createModeratorBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/moderators'; @@ -920,8 +938,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateModeratorBody] createModeratorBody (required): - Future createModerator(String tenantId, CreateModeratorBody createModeratorBody,) async { - final response = await createModeratorWithHttpInfo(tenantId, createModeratorBody,); + Future createModerator(String tenantId, CreateModeratorBody createModeratorBody) async { + final response = await createModeratorWithHttpInfo(tenantId, createModeratorBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -941,7 +959,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateQuestionConfigBody] createQuestionConfigBody (required): - Future createQuestionConfigWithHttpInfo(String tenantId, CreateQuestionConfigBody createQuestionConfigBody,) async { + Future createQuestionConfigWithHttpInfo(String tenantId, CreateQuestionConfigBody createQuestionConfigBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-configs'; @@ -973,8 +991,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateQuestionConfigBody] createQuestionConfigBody (required): - Future createQuestionConfig(String tenantId, CreateQuestionConfigBody createQuestionConfigBody,) async { - final response = await createQuestionConfigWithHttpInfo(tenantId, createQuestionConfigBody,); + Future createQuestionConfig(String tenantId, CreateQuestionConfigBody createQuestionConfigBody) async { + final response = await createQuestionConfigWithHttpInfo(tenantId, createQuestionConfigBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -994,7 +1012,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateQuestionResultBody] createQuestionResultBody (required): - Future createQuestionResultWithHttpInfo(String tenantId, CreateQuestionResultBody createQuestionResultBody,) async { + Future createQuestionResultWithHttpInfo(String tenantId, CreateQuestionResultBody createQuestionResultBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-results'; @@ -1026,8 +1044,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateQuestionResultBody] createQuestionResultBody (required): - Future createQuestionResult(String tenantId, CreateQuestionResultBody createQuestionResultBody,) async { - final response = await createQuestionResultWithHttpInfo(tenantId, createQuestionResultBody,); + Future createQuestionResult(String tenantId, CreateQuestionResultBody createQuestionResultBody) async { + final response = await createQuestionResultWithHttpInfo(tenantId, createQuestionResultBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1047,7 +1065,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateAPIUserSubscriptionData] createAPIUserSubscriptionData (required): - Future createSubscriptionWithHttpInfo(String tenantId, CreateAPIUserSubscriptionData createAPIUserSubscriptionData,) async { + Future createSubscriptionWithHttpInfo(String tenantId, CreateAPIUserSubscriptionData createAPIUserSubscriptionData) async { // ignore: prefer_const_declarations final path = r'/api/v1/subscriptions'; @@ -1079,8 +1097,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateAPIUserSubscriptionData] createAPIUserSubscriptionData (required): - Future createSubscription(String tenantId, CreateAPIUserSubscriptionData createAPIUserSubscriptionData,) async { - final response = await createSubscriptionWithHttpInfo(tenantId, createAPIUserSubscriptionData,); + Future createSubscription(String tenantId, CreateAPIUserSubscriptionData createAPIUserSubscriptionData) async { + final response = await createSubscriptionWithHttpInfo(tenantId, createAPIUserSubscriptionData); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1100,7 +1118,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantBody] createTenantBody (required): - Future createTenantWithHttpInfo(String tenantId, CreateTenantBody createTenantBody,) async { + Future createTenantWithHttpInfo(String tenantId, CreateTenantBody createTenantBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenants'; @@ -1132,8 +1150,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantBody] createTenantBody (required): - Future createTenant(String tenantId, CreateTenantBody createTenantBody,) async { - final response = await createTenantWithHttpInfo(tenantId, createTenantBody,); + Future createTenant(String tenantId, CreateTenantBody createTenantBody) async { + final response = await createTenantWithHttpInfo(tenantId, createTenantBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1153,7 +1171,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantPackageBody] createTenantPackageBody (required): - Future createTenantPackageWithHttpInfo(String tenantId, CreateTenantPackageBody createTenantPackageBody,) async { + Future createTenantPackageWithHttpInfo(String tenantId, CreateTenantPackageBody createTenantPackageBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-packages'; @@ -1185,8 +1203,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantPackageBody] createTenantPackageBody (required): - Future createTenantPackage(String tenantId, CreateTenantPackageBody createTenantPackageBody,) async { - final response = await createTenantPackageWithHttpInfo(tenantId, createTenantPackageBody,); + Future createTenantPackage(String tenantId, CreateTenantPackageBody createTenantPackageBody) async { + final response = await createTenantPackageWithHttpInfo(tenantId, createTenantPackageBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1206,7 +1224,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantUserBody] createTenantUserBody (required): - Future createTenantUserWithHttpInfo(String tenantId, CreateTenantUserBody createTenantUserBody,) async { + Future createTenantUserWithHttpInfo(String tenantId, CreateTenantUserBody createTenantUserBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-users'; @@ -1238,8 +1256,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateTenantUserBody] createTenantUserBody (required): - Future createTenantUser(String tenantId, CreateTenantUserBody createTenantUserBody,) async { - final response = await createTenantUserWithHttpInfo(tenantId, createTenantUserBody,); + Future createTenantUser(String tenantId, CreateTenantUserBody createTenantUserBody) async { + final response = await createTenantUserWithHttpInfo(tenantId, createTenantUserBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1261,7 +1279,7 @@ class DefaultApi { /// * [String] userId (required): /// /// * [CreateTicketBody] createTicketBody (required): - Future createTicketWithHttpInfo(String tenantId, String userId, CreateTicketBody createTicketBody,) async { + Future createTicketWithHttpInfo(String tenantId, String userId, CreateTicketBody createTicketBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/tickets'; @@ -1296,8 +1314,8 @@ class DefaultApi { /// * [String] userId (required): /// /// * [CreateTicketBody] createTicketBody (required): - Future createTicket(String tenantId, String userId, CreateTicketBody createTicketBody,) async { - final response = await createTicketWithHttpInfo(tenantId, userId, createTicketBody,); + Future createTicket(String tenantId, String userId, CreateTicketBody createTicketBody) async { + final response = await createTicketWithHttpInfo(tenantId, userId, createTicketBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1317,7 +1335,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateUserBadgeParams] createUserBadgeParams (required): - Future createUserBadgeWithHttpInfo(String tenantId, CreateUserBadgeParams createUserBadgeParams,) async { + Future createUserBadgeWithHttpInfo(String tenantId, CreateUserBadgeParams createUserBadgeParams) async { // ignore: prefer_const_declarations final path = r'/api/v1/user-badges'; @@ -1349,8 +1367,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [CreateUserBadgeParams] createUserBadgeParams (required): - Future createUserBadge(String tenantId, CreateUserBadgeParams createUserBadgeParams,) async { - final response = await createUserBadgeWithHttpInfo(tenantId, createUserBadgeParams,); + Future createUserBadge(String tenantId, CreateUserBadgeParams createUserBadgeParams) async { + final response = await createUserBadgeWithHttpInfo(tenantId, createUserBadgeParams); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1376,7 +1394,9 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future createVoteWithHttpInfo(String tenantId, String commentId, String direction, { String? userId, String? anonUserId, }) async { + Future createVoteWithHttpInfo(String tenantId, String commentId, String direction, [ CreateVoteOptions? options ]) async { + final userId = options?.userId; + final anonUserId = options?.anonUserId; // ignore: prefer_const_declarations final path = r'/api/v1/votes'; @@ -1422,8 +1442,8 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future createVote(String tenantId, String commentId, String direction, { String? userId, String? anonUserId, }) async { - final response = await createVoteWithHttpInfo(tenantId, commentId, direction, userId: userId, anonUserId: anonUserId, ); + Future createVote(String tenantId, String commentId, String direction, [ CreateVoteOptions? options ]) async { + final response = await createVoteWithHttpInfo(tenantId, commentId, direction, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1447,7 +1467,9 @@ class DefaultApi { /// * [String] contextUserId: /// /// * [bool] isLive: - Future deleteCommentWithHttpInfo(String tenantId, String id, { String? contextUserId, bool? isLive, }) async { + Future deleteCommentWithHttpInfo(String tenantId, String id, [ DeleteCommentOptions? options ]) async { + final contextUserId = options?.contextUserId; + final isLive = options?.isLive; // ignore: prefer_const_declarations final path = r'/api/v1/comments/{id}' .replaceAll('{id}', id); @@ -1490,8 +1512,8 @@ class DefaultApi { /// * [String] contextUserId: /// /// * [bool] isLive: - Future deleteComment(String tenantId, String id, { String? contextUserId, bool? isLive, }) async { - final response = await deleteCommentWithHttpInfo(tenantId, id, contextUserId: contextUserId, isLive: isLive, ); + Future deleteComment(String tenantId, String id, [ DeleteCommentOptions? options ]) async { + final response = await deleteCommentWithHttpInfo(tenantId, id, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1511,7 +1533,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] domain (required): - Future deleteDomainConfigWithHttpInfo(String tenantId, String domain,) async { + Future deleteDomainConfigWithHttpInfo(String tenantId, String domain) async { // ignore: prefer_const_declarations final path = r'/api/v1/domain-configs/{domain}' .replaceAll('{domain}', domain); @@ -1544,8 +1566,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] domain (required): - Future deleteDomainConfig(String tenantId, String domain,) async { - final response = await deleteDomainConfigWithHttpInfo(tenantId, domain,); + Future deleteDomainConfig(String tenantId, String domain) async { + final response = await deleteDomainConfigWithHttpInfo(tenantId, domain); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1565,7 +1587,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteEmailTemplateWithHttpInfo(String tenantId, String id,) async { + Future deleteEmailTemplateWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates/{id}' .replaceAll('{id}', id); @@ -1598,8 +1620,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteEmailTemplate(String tenantId, String id,) async { - final response = await deleteEmailTemplateWithHttpInfo(tenantId, id,); + Future deleteEmailTemplate(String tenantId, String id) async { + final response = await deleteEmailTemplateWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1621,7 +1643,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] errorId (required): - Future deleteEmailTemplateRenderErrorWithHttpInfo(String tenantId, String id, String errorId,) async { + Future deleteEmailTemplateRenderErrorWithHttpInfo(String tenantId, String id, String errorId) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates/{id}/render-errors/{errorId}' .replaceAll('{id}', id) @@ -1657,8 +1679,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] errorId (required): - Future deleteEmailTemplateRenderError(String tenantId, String id, String errorId,) async { - final response = await deleteEmailTemplateRenderErrorWithHttpInfo(tenantId, id, errorId,); + Future deleteEmailTemplateRenderError(String tenantId, String id, String errorId) async { + final response = await deleteEmailTemplateRenderErrorWithHttpInfo(tenantId, id, errorId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1675,12 +1697,12 @@ class DefaultApi { /// Performs an HTTP 'DELETE /api/v1/hash-tags/{tag}' operation and returns the [Response]. /// Parameters: /// - /// * [String] tag (required): + /// * [String] tenantId (required): /// - /// * [String] tenantId: + /// * [String] tag (required): /// /// * [DeleteHashTagRequestBody] deleteHashTagRequestBody: - Future deleteHashTagWithHttpInfo(String tag, { String? tenantId, DeleteHashTagRequestBody? deleteHashTagRequestBody, }) async { + Future deleteHashTagWithHttpInfo(String tenantId, String tag, DeleteHashTagRequestBody deleteHashTagRequestBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/hash-tags/{tag}' .replaceAll('{tag}', tag); @@ -1692,9 +1714,7 @@ class DefaultApi { final headerParams = {}; final formParams = {}; - if (tenantId != null) { queryParams.addAll(_queryParams('', 'tenantId', tenantId)); - } const contentTypes = ['application/json']; @@ -1712,13 +1732,13 @@ class DefaultApi { /// Parameters: /// - /// * [String] tag (required): + /// * [String] tenantId (required): /// - /// * [String] tenantId: + /// * [String] tag (required): /// /// * [DeleteHashTagRequestBody] deleteHashTagRequestBody: - Future deleteHashTag(String tag, { String? tenantId, DeleteHashTagRequestBody? deleteHashTagRequestBody, }) async { - final response = await deleteHashTagWithHttpInfo(tag, tenantId: tenantId, deleteHashTagRequestBody: deleteHashTagRequestBody, ); + Future deleteHashTag(String tenantId, String tag, DeleteHashTagRequestBody deleteHashTagRequestBody) async { + final response = await deleteHashTagWithHttpInfo(tenantId, tag, deleteHashTagRequestBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1740,7 +1760,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] sendEmail: - Future deleteModeratorWithHttpInfo(String tenantId, String id, { String? sendEmail, }) async { + Future deleteModeratorWithHttpInfo(String tenantId, String id, [ String? sendEmail ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/moderators/{id}' .replaceAll('{id}', id); @@ -1778,8 +1798,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] sendEmail: - Future deleteModerator(String tenantId, String id, { String? sendEmail, }) async { - final response = await deleteModeratorWithHttpInfo(tenantId, id, sendEmail: sendEmail, ); + Future deleteModerator(String tenantId, String id, [ String? sendEmail ]) async { + final response = await deleteModeratorWithHttpInfo(tenantId, id, sendEmail); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1799,7 +1819,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteNotificationCountWithHttpInfo(String tenantId, String id,) async { + Future deleteNotificationCountWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/notification-count/{id}' .replaceAll('{id}', id); @@ -1832,8 +1852,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteNotificationCount(String tenantId, String id,) async { - final response = await deleteNotificationCountWithHttpInfo(tenantId, id,); + Future deleteNotificationCount(String tenantId, String id) async { + final response = await deleteNotificationCountWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1853,7 +1873,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deletePageWithHttpInfo(String tenantId, String id,) async { + Future deletePageWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/pages/{id}' .replaceAll('{id}', id); @@ -1886,8 +1906,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deletePage(String tenantId, String id,) async { - final response = await deletePageWithHttpInfo(tenantId, id,); + Future deletePage(String tenantId, String id) async { + final response = await deletePageWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1907,7 +1927,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deletePendingWebhookEventWithHttpInfo(String tenantId, String id,) async { + Future deletePendingWebhookEventWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/pending-webhook-events/{id}' .replaceAll('{id}', id); @@ -1940,8 +1960,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deletePendingWebhookEvent(String tenantId, String id,) async { - final response = await deletePendingWebhookEventWithHttpInfo(tenantId, id,); + Future deletePendingWebhookEvent(String tenantId, String id) async { + final response = await deletePendingWebhookEventWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1961,7 +1981,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteQuestionConfigWithHttpInfo(String tenantId, String id,) async { + Future deleteQuestionConfigWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-configs/{id}' .replaceAll('{id}', id); @@ -1994,8 +2014,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteQuestionConfig(String tenantId, String id,) async { - final response = await deleteQuestionConfigWithHttpInfo(tenantId, id,); + Future deleteQuestionConfig(String tenantId, String id) async { + final response = await deleteQuestionConfigWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2015,7 +2035,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteQuestionResultWithHttpInfo(String tenantId, String id,) async { + Future deleteQuestionResultWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-results/{id}' .replaceAll('{id}', id); @@ -2048,8 +2068,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteQuestionResult(String tenantId, String id,) async { - final response = await deleteQuestionResultWithHttpInfo(tenantId, id,); + Future deleteQuestionResult(String tenantId, String id) async { + final response = await deleteQuestionResultWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2073,7 +2093,9 @@ class DefaultApi { /// * [bool] deleteComments: /// /// * [String] commentDeleteMode: - Future deleteSSOUserWithHttpInfo(String tenantId, String id, { bool? deleteComments, String? commentDeleteMode, }) async { + Future deleteSSOUserWithHttpInfo(String tenantId, String id, [ DeleteSSOUserOptions? options ]) async { + final deleteComments = options?.deleteComments; + final commentDeleteMode = options?.commentDeleteMode; // ignore: prefer_const_declarations final path = r'/api/v1/sso-users/{id}' .replaceAll('{id}', id); @@ -2116,8 +2138,8 @@ class DefaultApi { /// * [bool] deleteComments: /// /// * [String] commentDeleteMode: - Future deleteSSOUser(String tenantId, String id, { bool? deleteComments, String? commentDeleteMode, }) async { - final response = await deleteSSOUserWithHttpInfo(tenantId, id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode, ); + Future deleteSSOUser(String tenantId, String id, [ DeleteSSOUserOptions? options ]) async { + final response = await deleteSSOUserWithHttpInfo(tenantId, id, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2139,7 +2161,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] userId: - Future deleteSubscriptionWithHttpInfo(String tenantId, String id, { String? userId, }) async { + Future deleteSubscriptionWithHttpInfo(String tenantId, String id, [ String? userId ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/subscriptions/{id}' .replaceAll('{id}', id); @@ -2177,8 +2199,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] userId: - Future deleteSubscription(String tenantId, String id, { String? userId, }) async { - final response = await deleteSubscriptionWithHttpInfo(tenantId, id, userId: userId, ); + Future deleteSubscription(String tenantId, String id, [ String? userId ]) async { + final response = await deleteSubscriptionWithHttpInfo(tenantId, id, userId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2200,7 +2222,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] sure: - Future deleteTenantWithHttpInfo(String tenantId, String id, { String? sure, }) async { + Future deleteTenantWithHttpInfo(String tenantId, String id, [ String? sure ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenants/{id}' .replaceAll('{id}', id); @@ -2238,8 +2260,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] sure: - Future deleteTenant(String tenantId, String id, { String? sure, }) async { - final response = await deleteTenantWithHttpInfo(tenantId, id, sure: sure, ); + Future deleteTenant(String tenantId, String id, [ String? sure ]) async { + final response = await deleteTenantWithHttpInfo(tenantId, id, sure); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2259,7 +2281,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteTenantPackageWithHttpInfo(String tenantId, String id,) async { + Future deleteTenantPackageWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-packages/{id}' .replaceAll('{id}', id); @@ -2292,8 +2314,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteTenantPackage(String tenantId, String id,) async { - final response = await deleteTenantPackageWithHttpInfo(tenantId, id,); + Future deleteTenantPackage(String tenantId, String id) async { + final response = await deleteTenantPackageWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2317,7 +2339,9 @@ class DefaultApi { /// * [String] deleteComments: /// /// * [String] commentDeleteMode: - Future deleteTenantUserWithHttpInfo(String tenantId, String id, { String? deleteComments, String? commentDeleteMode, }) async { + Future deleteTenantUserWithHttpInfo(String tenantId, String id, [ DeleteTenantUserOptions? options ]) async { + final deleteComments = options?.deleteComments; + final commentDeleteMode = options?.commentDeleteMode; // ignore: prefer_const_declarations final path = r'/api/v1/tenant-users/{id}' .replaceAll('{id}', id); @@ -2360,8 +2384,8 @@ class DefaultApi { /// * [String] deleteComments: /// /// * [String] commentDeleteMode: - Future deleteTenantUser(String tenantId, String id, { String? deleteComments, String? commentDeleteMode, }) async { - final response = await deleteTenantUserWithHttpInfo(tenantId, id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode, ); + Future deleteTenantUser(String tenantId, String id, [ DeleteTenantUserOptions? options ]) async { + final response = await deleteTenantUserWithHttpInfo(tenantId, id, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2381,7 +2405,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteUserBadgeWithHttpInfo(String tenantId, String id,) async { + Future deleteUserBadgeWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/user-badges/{id}' .replaceAll('{id}', id); @@ -2414,8 +2438,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future deleteUserBadge(String tenantId, String id,) async { - final response = await deleteUserBadgeWithHttpInfo(tenantId, id,); + Future deleteUserBadge(String tenantId, String id) async { + final response = await deleteUserBadgeWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2437,7 +2461,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] editKey: - Future deleteVoteWithHttpInfo(String tenantId, String id, { String? editKey, }) async { + Future deleteVoteWithHttpInfo(String tenantId, String id, [ String? editKey ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/votes/{id}' .replaceAll('{id}', id); @@ -2475,8 +2499,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] editKey: - Future deleteVote(String tenantId, String id, { String? editKey, }) async { - final response = await deleteVoteWithHttpInfo(tenantId, id, editKey: editKey, ); + Future deleteVote(String tenantId, String id, [ String? editKey ]) async { + final response = await deleteVoteWithHttpInfo(tenantId, id, editKey); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2500,7 +2524,9 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future flagCommentWithHttpInfo(String tenantId, String id, { String? userId, String? anonUserId, }) async { + Future flagCommentWithHttpInfo(String tenantId, String id, [ FlagCommentOptions? options ]) async { + final userId = options?.userId; + final anonUserId = options?.anonUserId; // ignore: prefer_const_declarations final path = r'/api/v1/comments/{id}/flag' .replaceAll('{id}', id); @@ -2543,8 +2569,8 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future flagComment(String tenantId, String id, { String? userId, String? anonUserId, }) async { - final response = await flagCommentWithHttpInfo(tenantId, id, userId: userId, anonUserId: anonUserId, ); + Future flagComment(String tenantId, String id, [ FlagCommentOptions? options ]) async { + final response = await flagCommentWithHttpInfo(tenantId, id, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2572,7 +2598,12 @@ class DefaultApi { /// * [double] after: /// /// * [double] before: - Future getAuditLogsWithHttpInfo(String tenantId, { double? limit, double? skip, SORTDIR? order, double? after, double? before, }) async { + Future getAuditLogsWithHttpInfo(String tenantId, [ GetAuditLogsOptions? options ]) async { + final limit = options?.limit; + final skip = options?.skip; + final order = options?.order; + final after = options?.after; + final before = options?.before; // ignore: prefer_const_declarations final path = r'/api/v1/audit-logs'; @@ -2627,8 +2658,8 @@ class DefaultApi { /// * [double] after: /// /// * [double] before: - Future getAuditLogs(String tenantId, { double? limit, double? skip, SORTDIR? order, double? after, double? before, }) async { - final response = await getAuditLogsWithHttpInfo(tenantId, limit: limit, skip: skip, order: order, after: after, before: before, ); + Future getAuditLogs(String tenantId, [ GetAuditLogsOptions? options ]) async { + final response = await getAuditLogsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2648,7 +2679,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getCachedNotificationCountWithHttpInfo(String tenantId, String id,) async { + Future getCachedNotificationCountWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/notification-count/{id}' .replaceAll('{id}', id); @@ -2681,8 +2712,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getCachedNotificationCount(String tenantId, String id,) async { - final response = await getCachedNotificationCountWithHttpInfo(tenantId, id,); + Future getCachedNotificationCount(String tenantId, String id) async { + final response = await getCachedNotificationCountWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2702,7 +2733,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getCommentWithHttpInfo(String tenantId, String id,) async { + Future getCommentWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/comments/{id}' .replaceAll('{id}', id); @@ -2735,8 +2766,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getComment(String tenantId, String id,) async { - final response = await getCommentWithHttpInfo(tenantId, id,); + Future getComment(String tenantId, String id) async { + final response = await getCommentWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2786,7 +2817,23 @@ class DefaultApi { /// * [int] fromDate: /// /// * [int] toDate: - Future getCommentsWithHttpInfo(String tenantId, { int? page, int? limit, int? skip, bool? asTree, int? skipChildren, int? limitChildren, int? maxTreeDepth, String? urlId, String? userId, String? anonUserId, String? contextUserId, String? hashTag, String? parentId, SortDirections? direction, int? fromDate, int? toDate, }) async { + Future getCommentsWithHttpInfo(String tenantId, [ GetCommentsOptions? options ]) async { + final page = options?.page; + final limit = options?.limit; + final skip = options?.skip; + final asTree = options?.asTree; + final skipChildren = options?.skipChildren; + final limitChildren = options?.limitChildren; + final maxTreeDepth = options?.maxTreeDepth; + final urlId = options?.urlId; + final userId = options?.userId; + final anonUserId = options?.anonUserId; + final contextUserId = options?.contextUserId; + final hashTag = options?.hashTag; + final parentId = options?.parentId; + final direction = options?.direction; + final fromDate = options?.fromDate; + final toDate = options?.toDate; // ignore: prefer_const_declarations final path = r'/api/v1/comments'; @@ -2896,8 +2943,8 @@ class DefaultApi { /// * [int] fromDate: /// /// * [int] toDate: - Future getComments(String tenantId, { int? page, int? limit, int? skip, bool? asTree, int? skipChildren, int? limitChildren, int? maxTreeDepth, String? urlId, String? userId, String? anonUserId, String? contextUserId, String? hashTag, String? parentId, SortDirections? direction, int? fromDate, int? toDate, }) async { - final response = await getCommentsWithHttpInfo(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, ); + Future getComments(String tenantId, [ GetCommentsOptions? options ]) async { + final response = await getCommentsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2917,7 +2964,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] domain (required): - Future getDomainConfigWithHttpInfo(String tenantId, String domain,) async { + Future getDomainConfigWithHttpInfo(String tenantId, String domain) async { // ignore: prefer_const_declarations final path = r'/api/v1/domain-configs/{domain}' .replaceAll('{domain}', domain); @@ -2950,8 +2997,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] domain (required): - Future getDomainConfig(String tenantId, String domain,) async { - final response = await getDomainConfigWithHttpInfo(tenantId, domain,); + Future getDomainConfig(String tenantId, String domain) async { + final response = await getDomainConfigWithHttpInfo(tenantId, domain); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2969,7 +3016,7 @@ class DefaultApi { /// Parameters: /// /// * [String] tenantId (required): - Future getDomainConfigsWithHttpInfo(String tenantId,) async { + Future getDomainConfigsWithHttpInfo(String tenantId) async { // ignore: prefer_const_declarations final path = r'/api/v1/domain-configs'; @@ -2999,8 +3046,8 @@ class DefaultApi { /// Parameters: /// /// * [String] tenantId (required): - Future getDomainConfigs(String tenantId,) async { - final response = await getDomainConfigsWithHttpInfo(tenantId,); + Future getDomainConfigs(String tenantId) async { + final response = await getDomainConfigsWithHttpInfo(tenantId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3020,7 +3067,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getEmailTemplateWithHttpInfo(String tenantId, String id,) async { + Future getEmailTemplateWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates/{id}' .replaceAll('{id}', id); @@ -3053,8 +3100,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getEmailTemplate(String tenantId, String id,) async { - final response = await getEmailTemplateWithHttpInfo(tenantId, id,); + Future getEmailTemplate(String tenantId, String id) async { + final response = await getEmailTemplateWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3072,7 +3119,7 @@ class DefaultApi { /// Parameters: /// /// * [String] tenantId (required): - Future getEmailTemplateDefinitionsWithHttpInfo(String tenantId,) async { + Future getEmailTemplateDefinitionsWithHttpInfo(String tenantId) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates/definitions'; @@ -3102,8 +3149,8 @@ class DefaultApi { /// Parameters: /// /// * [String] tenantId (required): - Future getEmailTemplateDefinitions(String tenantId,) async { - final response = await getEmailTemplateDefinitionsWithHttpInfo(tenantId,); + Future getEmailTemplateDefinitions(String tenantId) async { + final response = await getEmailTemplateDefinitionsWithHttpInfo(tenantId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3125,7 +3172,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [double] skip: - Future getEmailTemplateRenderErrorsWithHttpInfo(String tenantId, String id, { double? skip, }) async { + Future getEmailTemplateRenderErrorsWithHttpInfo(String tenantId, String id, [ double? skip ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates/{id}/render-errors' .replaceAll('{id}', id); @@ -3163,8 +3210,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [double] skip: - Future getEmailTemplateRenderErrors(String tenantId, String id, { double? skip, }) async { - final response = await getEmailTemplateRenderErrorsWithHttpInfo(tenantId, id, skip: skip, ); + Future getEmailTemplateRenderErrors(String tenantId, String id, [ double? skip ]) async { + final response = await getEmailTemplateRenderErrorsWithHttpInfo(tenantId, id, skip); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3184,7 +3231,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getEmailTemplatesWithHttpInfo(String tenantId, { double? skip, }) async { + Future getEmailTemplatesWithHttpInfo(String tenantId, [ double? skip ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates'; @@ -3219,8 +3266,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getEmailTemplates(String tenantId, { double? skip, }) async { - final response = await getEmailTemplatesWithHttpInfo(tenantId, skip: skip, ); + Future getEmailTemplates(String tenantId, [ double? skip ]) async { + final response = await getEmailTemplatesWithHttpInfo(tenantId, skip); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3247,7 +3294,10 @@ class DefaultApi { /// * [int] limit: /// /// * [List] tags: - Future getFeedPostsWithHttpInfo(String tenantId, { String? afterId, int? limit, List? tags, }) async { + Future getFeedPostsWithHttpInfo(String tenantId, [ GetFeedPostsOptions? options ]) async { + final afterId = options?.afterId; + final limit = options?.limit; + final tags = options?.tags; // ignore: prefer_const_declarations final path = r'/api/v1/feed-posts'; @@ -3294,8 +3344,8 @@ class DefaultApi { /// * [int] limit: /// /// * [List] tags: - Future getFeedPosts(String tenantId, { String? afterId, int? limit, List? tags, }) async { - final response = await getFeedPostsWithHttpInfo(tenantId, afterId: afterId, limit: limit, tags: tags, ); + Future getFeedPosts(String tenantId, [ GetFeedPostsOptions? options ]) async { + final response = await getFeedPostsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3315,7 +3365,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] page: - Future getHashTagsWithHttpInfo(String tenantId, { double? page, }) async { + Future getHashTagsWithHttpInfo(String tenantId, [ double? page ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/hash-tags'; @@ -3350,8 +3400,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] page: - Future getHashTags(String tenantId, { double? page, }) async { - final response = await getHashTagsWithHttpInfo(tenantId, page: page, ); + Future getHashTags(String tenantId, [ double? page ]) async { + final response = await getHashTagsWithHttpInfo(tenantId, page); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3371,7 +3421,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getModeratorWithHttpInfo(String tenantId, String id,) async { + Future getModeratorWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/moderators/{id}' .replaceAll('{id}', id); @@ -3404,8 +3454,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getModerator(String tenantId, String id,) async { - final response = await getModeratorWithHttpInfo(tenantId, id,); + Future getModerator(String tenantId, String id) async { + final response = await getModeratorWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3425,7 +3475,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getModeratorsWithHttpInfo(String tenantId, { double? skip, }) async { + Future getModeratorsWithHttpInfo(String tenantId, [ double? skip ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/moderators'; @@ -3460,8 +3510,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getModerators(String tenantId, { double? skip, }) async { - final response = await getModeratorsWithHttpInfo(tenantId, skip: skip, ); + Future getModerators(String tenantId, [ double? skip ]) async { + final response = await getModeratorsWithHttpInfo(tenantId, skip); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3489,7 +3539,12 @@ class DefaultApi { /// * [bool] viewed: /// /// * [String] type: - Future getNotificationCountWithHttpInfo(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, }) async { + Future getNotificationCountWithHttpInfo(String tenantId, [ GetNotificationCountOptions? options ]) async { + final userId = options?.userId; + final urlId = options?.urlId; + final fromCommentId = options?.fromCommentId; + final viewed = options?.viewed; + final type = options?.type; // ignore: prefer_const_declarations final path = r'/api/v1/notifications/count'; @@ -3544,8 +3599,8 @@ class DefaultApi { /// * [bool] viewed: /// /// * [String] type: - Future getNotificationCount(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, }) async { - final response = await getNotificationCountWithHttpInfo(tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, ); + Future getNotificationCount(String tenantId, [ GetNotificationCountOptions? options ]) async { + final response = await getNotificationCountWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3575,7 +3630,13 @@ class DefaultApi { /// * [String] type: /// /// * [double] skip: - Future getNotificationsWithHttpInfo(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, double? skip, }) async { + Future getNotificationsWithHttpInfo(String tenantId, [ GetNotificationsOptions? options ]) async { + final userId = options?.userId; + final urlId = options?.urlId; + final fromCommentId = options?.fromCommentId; + final viewed = options?.viewed; + final type = options?.type; + final skip = options?.skip; // ignore: prefer_const_declarations final path = r'/api/v1/notifications'; @@ -3635,8 +3696,8 @@ class DefaultApi { /// * [String] type: /// /// * [double] skip: - Future getNotifications(String tenantId, { String? userId, String? urlId, String? fromCommentId, bool? viewed, String? type, double? skip, }) async { - final response = await getNotificationsWithHttpInfo(tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, skip: skip, ); + Future getNotifications(String tenantId, [ GetNotificationsOptions? options ]) async { + final response = await getNotificationsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3656,7 +3717,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getPageByURLIdWithHttpInfo(String tenantId, String urlId,) async { + Future getPageByURLIdWithHttpInfo(String tenantId, String urlId) async { // ignore: prefer_const_declarations final path = r'/api/v1/pages/by-url-id'; @@ -3689,8 +3750,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getPageByURLId(String tenantId, String urlId,) async { - final response = await getPageByURLIdWithHttpInfo(tenantId, urlId,); + Future getPageByURLId(String tenantId, String urlId) async { + final response = await getPageByURLIdWithHttpInfo(tenantId, urlId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3708,7 +3769,7 @@ class DefaultApi { /// Parameters: /// /// * [String] tenantId (required): - Future getPagesWithHttpInfo(String tenantId,) async { + Future getPagesWithHttpInfo(String tenantId) async { // ignore: prefer_const_declarations final path = r'/api/v1/pages'; @@ -3738,8 +3799,8 @@ class DefaultApi { /// Parameters: /// /// * [String] tenantId (required): - Future getPages(String tenantId,) async { - final response = await getPagesWithHttpInfo(tenantId,); + Future getPages(String tenantId) async { + final response = await getPagesWithHttpInfo(tenantId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3769,7 +3830,13 @@ class DefaultApi { /// * [String] domain: /// /// * [double] attemptCountGT: - Future getPendingWebhookEventCountWithHttpInfo(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, }) async { + Future getPendingWebhookEventCountWithHttpInfo(String tenantId, [ GetPendingWebhookEventCountOptions? options ]) async { + final commentId = options?.commentId; + final externalId = options?.externalId; + final eventType = options?.eventType; + final type = options?.type; + final domain = options?.domain; + final attemptCountGT = options?.attemptCountGT; // ignore: prefer_const_declarations final path = r'/api/v1/pending-webhook-events/count'; @@ -3829,8 +3896,8 @@ class DefaultApi { /// * [String] domain: /// /// * [double] attemptCountGT: - Future getPendingWebhookEventCount(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, }) async { - final response = await getPendingWebhookEventCountWithHttpInfo(tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, ); + Future getPendingWebhookEventCount(String tenantId, [ GetPendingWebhookEventCountOptions? options ]) async { + final response = await getPendingWebhookEventCountWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3862,7 +3929,14 @@ class DefaultApi { /// * [double] attemptCountGT: /// /// * [double] skip: - Future getPendingWebhookEventsWithHttpInfo(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, double? skip, }) async { + Future getPendingWebhookEventsWithHttpInfo(String tenantId, [ GetPendingWebhookEventsOptions? options ]) async { + final commentId = options?.commentId; + final externalId = options?.externalId; + final eventType = options?.eventType; + final type = options?.type; + final domain = options?.domain; + final attemptCountGT = options?.attemptCountGT; + final skip = options?.skip; // ignore: prefer_const_declarations final path = r'/api/v1/pending-webhook-events'; @@ -3927,8 +4001,8 @@ class DefaultApi { /// * [double] attemptCountGT: /// /// * [double] skip: - Future getPendingWebhookEvents(String tenantId, { String? commentId, String? externalId, String? eventType, String? type, String? domain, double? attemptCountGT, double? skip, }) async { - final response = await getPendingWebhookEventsWithHttpInfo(tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, skip: skip, ); + Future getPendingWebhookEvents(String tenantId, [ GetPendingWebhookEventsOptions? options ]) async { + final response = await getPendingWebhookEventsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3948,7 +4022,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getQuestionConfigWithHttpInfo(String tenantId, String id,) async { + Future getQuestionConfigWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-configs/{id}' .replaceAll('{id}', id); @@ -3981,8 +4055,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getQuestionConfig(String tenantId, String id,) async { - final response = await getQuestionConfigWithHttpInfo(tenantId, id,); + Future getQuestionConfig(String tenantId, String id) async { + final response = await getQuestionConfigWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4002,7 +4076,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getQuestionConfigsWithHttpInfo(String tenantId, { double? skip, }) async { + Future getQuestionConfigsWithHttpInfo(String tenantId, [ double? skip ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-configs'; @@ -4037,8 +4111,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getQuestionConfigs(String tenantId, { double? skip, }) async { - final response = await getQuestionConfigsWithHttpInfo(tenantId, skip: skip, ); + Future getQuestionConfigs(String tenantId, [ double? skip ]) async { + final response = await getQuestionConfigsWithHttpInfo(tenantId, skip); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4058,7 +4132,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getQuestionResultWithHttpInfo(String tenantId, String id,) async { + Future getQuestionResultWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-results/{id}' .replaceAll('{id}', id); @@ -4091,8 +4165,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getQuestionResult(String tenantId, String id,) async { - final response = await getQuestionResultWithHttpInfo(tenantId, id,); + Future getQuestionResult(String tenantId, String id) async { + final response = await getQuestionResultWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4122,7 +4196,13 @@ class DefaultApi { /// * [String] questionIds: /// /// * [double] skip: - Future getQuestionResultsWithHttpInfo(String tenantId, { String? urlId, String? userId, String? startDate, String? questionId, String? questionIds, double? skip, }) async { + Future getQuestionResultsWithHttpInfo(String tenantId, [ GetQuestionResultsOptions? options ]) async { + final urlId = options?.urlId; + final userId = options?.userId; + final startDate = options?.startDate; + final questionId = options?.questionId; + final questionIds = options?.questionIds; + final skip = options?.skip; // ignore: prefer_const_declarations final path = r'/api/v1/question-results'; @@ -4182,8 +4262,8 @@ class DefaultApi { /// * [String] questionIds: /// /// * [double] skip: - Future getQuestionResults(String tenantId, { String? urlId, String? userId, String? startDate, String? questionId, String? questionIds, double? skip, }) async { - final response = await getQuestionResultsWithHttpInfo(tenantId, urlId: urlId, userId: userId, startDate: startDate, questionId: questionId, questionIds: questionIds, skip: skip, ); + Future getQuestionResults(String tenantId, [ GetQuestionResultsOptions? options ]) async { + final response = await getQuestionResultsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4203,7 +4283,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] email (required): - Future getSSOUserByEmailWithHttpInfo(String tenantId, String email,) async { + Future getSSOUserByEmailWithHttpInfo(String tenantId, String email) async { // ignore: prefer_const_declarations final path = r'/api/v1/sso-users/by-email/{email}' .replaceAll('{email}', email); @@ -4236,8 +4316,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] email (required): - Future getSSOUserByEmail(String tenantId, String email,) async { - final response = await getSSOUserByEmailWithHttpInfo(tenantId, email,); + Future getSSOUserByEmail(String tenantId, String email) async { + final response = await getSSOUserByEmailWithHttpInfo(tenantId, email); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4257,7 +4337,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getSSOUserByIdWithHttpInfo(String tenantId, String id,) async { + Future getSSOUserByIdWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/sso-users/by-id/{id}' .replaceAll('{id}', id); @@ -4290,8 +4370,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getSSOUserById(String tenantId, String id,) async { - final response = await getSSOUserByIdWithHttpInfo(tenantId, id,); + Future getSSOUserById(String tenantId, String id) async { + final response = await getSSOUserByIdWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4311,7 +4391,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [int] skip: - Future getSSOUsersWithHttpInfo(String tenantId, { int? skip, }) async { + Future getSSOUsersWithHttpInfo(String tenantId, [ int? skip ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/sso-users'; @@ -4346,8 +4426,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [int] skip: - Future getSSOUsers(String tenantId, { int? skip, }) async { - final response = await getSSOUsersWithHttpInfo(tenantId, skip: skip, ); + Future getSSOUsers(String tenantId, [ int? skip ]) async { + final response = await getSSOUsersWithHttpInfo(tenantId, skip); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4367,7 +4447,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] userId: - Future getSubscriptionsWithHttpInfo(String tenantId, { String? userId, }) async { + Future getSubscriptionsWithHttpInfo(String tenantId, [ String? userId ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/subscriptions'; @@ -4402,8 +4482,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] userId: - Future getSubscriptions(String tenantId, { String? userId, }) async { - final response = await getSubscriptionsWithHttpInfo(tenantId, userId: userId, ); + Future getSubscriptions(String tenantId, [ String? userId ]) async { + final response = await getSubscriptionsWithHttpInfo(tenantId, userId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4423,7 +4503,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenantWithHttpInfo(String tenantId, String id,) async { + Future getTenantWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenants/{id}' .replaceAll('{id}', id); @@ -4456,8 +4536,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenant(String tenantId, String id,) async { - final response = await getTenantWithHttpInfo(tenantId, id,); + Future getTenant(String tenantId, String id) async { + final response = await getTenantWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4483,7 +4563,11 @@ class DefaultApi { /// * [double] dayNumber: /// /// * [double] skip: - Future getTenantDailyUsagesWithHttpInfo(String tenantId, { double? yearNumber, double? monthNumber, double? dayNumber, double? skip, }) async { + Future getTenantDailyUsagesWithHttpInfo(String tenantId, [ GetTenantDailyUsagesOptions? options ]) async { + final yearNumber = options?.yearNumber; + final monthNumber = options?.monthNumber; + final dayNumber = options?.dayNumber; + final skip = options?.skip; // ignore: prefer_const_declarations final path = r'/api/v1/tenant-daily-usage'; @@ -4533,8 +4617,8 @@ class DefaultApi { /// * [double] dayNumber: /// /// * [double] skip: - Future getTenantDailyUsages(String tenantId, { double? yearNumber, double? monthNumber, double? dayNumber, double? skip, }) async { - final response = await getTenantDailyUsagesWithHttpInfo(tenantId, yearNumber: yearNumber, monthNumber: monthNumber, dayNumber: dayNumber, skip: skip, ); + Future getTenantDailyUsages(String tenantId, [ GetTenantDailyUsagesOptions? options ]) async { + final response = await getTenantDailyUsagesWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4554,7 +4638,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenantPackageWithHttpInfo(String tenantId, String id,) async { + Future getTenantPackageWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-packages/{id}' .replaceAll('{id}', id); @@ -4587,8 +4671,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenantPackage(String tenantId, String id,) async { - final response = await getTenantPackageWithHttpInfo(tenantId, id,); + Future getTenantPackage(String tenantId, String id) async { + final response = await getTenantPackageWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4608,7 +4692,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getTenantPackagesWithHttpInfo(String tenantId, { double? skip, }) async { + Future getTenantPackagesWithHttpInfo(String tenantId, [ double? skip ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-packages'; @@ -4643,8 +4727,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getTenantPackages(String tenantId, { double? skip, }) async { - final response = await getTenantPackagesWithHttpInfo(tenantId, skip: skip, ); + Future getTenantPackages(String tenantId, [ double? skip ]) async { + final response = await getTenantPackagesWithHttpInfo(tenantId, skip); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4664,7 +4748,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenantUserWithHttpInfo(String tenantId, String id,) async { + Future getTenantUserWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-users/{id}' .replaceAll('{id}', id); @@ -4697,8 +4781,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getTenantUser(String tenantId, String id,) async { - final response = await getTenantUserWithHttpInfo(tenantId, id,); + Future getTenantUser(String tenantId, String id) async { + final response = await getTenantUserWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4718,7 +4802,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getTenantUsersWithHttpInfo(String tenantId, { double? skip, }) async { + Future getTenantUsersWithHttpInfo(String tenantId, [ double? skip ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-users'; @@ -4753,8 +4837,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [double] skip: - Future getTenantUsers(String tenantId, { double? skip, }) async { - final response = await getTenantUsersWithHttpInfo(tenantId, skip: skip, ); + Future getTenantUsers(String tenantId, [ double? skip ]) async { + final response = await getTenantUsersWithHttpInfo(tenantId, skip); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4776,7 +4860,9 @@ class DefaultApi { /// * [String] meta: /// /// * [double] skip: - Future getTenantsWithHttpInfo(String tenantId, { String? meta, double? skip, }) async { + Future getTenantsWithHttpInfo(String tenantId, [ GetTenantsOptions? options ]) async { + final meta = options?.meta; + final skip = options?.skip; // ignore: prefer_const_declarations final path = r'/api/v1/tenants'; @@ -4816,8 +4902,8 @@ class DefaultApi { /// * [String] meta: /// /// * [double] skip: - Future getTenants(String tenantId, { String? meta, double? skip, }) async { - final response = await getTenantsWithHttpInfo(tenantId, meta: meta, skip: skip, ); + Future getTenants(String tenantId, [ GetTenantsOptions? options ]) async { + final response = await getTenantsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4839,7 +4925,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] userId: - Future getTicketWithHttpInfo(String tenantId, String id, { String? userId, }) async { + Future getTicketWithHttpInfo(String tenantId, String id, [ String? userId ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/tickets/{id}' .replaceAll('{id}', id); @@ -4877,8 +4963,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] userId: - Future getTicket(String tenantId, String id, { String? userId, }) async { - final response = await getTicketWithHttpInfo(tenantId, id, userId: userId, ); + Future getTicket(String tenantId, String id, [ String? userId ]) async { + final response = await getTicketWithHttpInfo(tenantId, id, userId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4904,7 +4990,11 @@ class DefaultApi { /// * [double] skip: /// /// * [double] limit: - Future getTicketsWithHttpInfo(String tenantId, { String? userId, double? state, double? skip, double? limit, }) async { + Future getTicketsWithHttpInfo(String tenantId, [ GetTicketsOptions? options ]) async { + final userId = options?.userId; + final state = options?.state; + final skip = options?.skip; + final limit = options?.limit; // ignore: prefer_const_declarations final path = r'/api/v1/tickets'; @@ -4954,8 +5044,8 @@ class DefaultApi { /// * [double] skip: /// /// * [double] limit: - Future getTickets(String tenantId, { String? userId, double? state, double? skip, double? limit, }) async { - final response = await getTicketsWithHttpInfo(tenantId, userId: userId, state: state, skip: skip, limit: limit, ); + Future getTickets(String tenantId, [ GetTicketsOptions? options ]) async { + final response = await getTicketsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -4975,7 +5065,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUserWithHttpInfo(String tenantId, String id,) async { + Future getUserWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/users/{id}' .replaceAll('{id}', id); @@ -5008,8 +5098,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUser(String tenantId, String id,) async { - final response = await getUserWithHttpInfo(tenantId, id,); + Future getUser(String tenantId, String id) async { + final response = await getUserWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5029,7 +5119,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUserBadgeWithHttpInfo(String tenantId, String id,) async { + Future getUserBadgeWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/user-badges/{id}' .replaceAll('{id}', id); @@ -5062,8 +5152,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUserBadge(String tenantId, String id,) async { - final response = await getUserBadgeWithHttpInfo(tenantId, id,); + Future getUserBadge(String tenantId, String id) async { + final response = await getUserBadgeWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5083,7 +5173,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUserBadgeProgressByIdWithHttpInfo(String tenantId, String id,) async { + Future getUserBadgeProgressByIdWithHttpInfo(String tenantId, String id) async { // ignore: prefer_const_declarations final path = r'/api/v1/user-badge-progress/{id}' .replaceAll('{id}', id); @@ -5116,8 +5206,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] id (required): - Future getUserBadgeProgressById(String tenantId, String id,) async { - final response = await getUserBadgeProgressByIdWithHttpInfo(tenantId, id,); + Future getUserBadgeProgressById(String tenantId, String id) async { + final response = await getUserBadgeProgressByIdWithHttpInfo(tenantId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5137,7 +5227,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] userId (required): - Future getUserBadgeProgressByUserIdWithHttpInfo(String tenantId, String userId,) async { + Future getUserBadgeProgressByUserIdWithHttpInfo(String tenantId, String userId) async { // ignore: prefer_const_declarations final path = r'/api/v1/user-badge-progress/user/{userId}' .replaceAll('{userId}', userId); @@ -5170,8 +5260,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] userId (required): - Future getUserBadgeProgressByUserId(String tenantId, String userId,) async { - final response = await getUserBadgeProgressByUserIdWithHttpInfo(tenantId, userId,); + Future getUserBadgeProgressByUserId(String tenantId, String userId) async { + final response = await getUserBadgeProgressByUserIdWithHttpInfo(tenantId, userId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5195,7 +5285,10 @@ class DefaultApi { /// * [double] limit: /// /// * [double] skip: - Future getUserBadgeProgressListWithHttpInfo(String tenantId, { String? userId, double? limit, double? skip, }) async { + Future getUserBadgeProgressListWithHttpInfo(String tenantId, [ GetUserBadgeProgressListOptions? options ]) async { + final userId = options?.userId; + final limit = options?.limit; + final skip = options?.skip; // ignore: prefer_const_declarations final path = r'/api/v1/user-badge-progress'; @@ -5240,8 +5333,8 @@ class DefaultApi { /// * [double] limit: /// /// * [double] skip: - Future getUserBadgeProgressList(String tenantId, { String? userId, double? limit, double? skip, }) async { - final response = await getUserBadgeProgressListWithHttpInfo(tenantId, userId: userId, limit: limit, skip: skip, ); + Future getUserBadgeProgressList(String tenantId, [ GetUserBadgeProgressListOptions? options ]) async { + final response = await getUserBadgeProgressListWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5271,7 +5364,13 @@ class DefaultApi { /// * [double] limit: /// /// * [double] skip: - Future getUserBadgesWithHttpInfo(String tenantId, { String? userId, String? badgeId, double? type, bool? displayedOnComments, double? limit, double? skip, }) async { + Future getUserBadgesWithHttpInfo(String tenantId, [ GetUserBadgesOptions? options ]) async { + final userId = options?.userId; + final badgeId = options?.badgeId; + final type = options?.type; + final displayedOnComments = options?.displayedOnComments; + final limit = options?.limit; + final skip = options?.skip; // ignore: prefer_const_declarations final path = r'/api/v1/user-badges'; @@ -5331,8 +5430,8 @@ class DefaultApi { /// * [double] limit: /// /// * [double] skip: - Future getUserBadges(String tenantId, { String? userId, String? badgeId, double? type, bool? displayedOnComments, double? limit, double? skip, }) async { - final response = await getUserBadgesWithHttpInfo(tenantId, userId: userId, badgeId: badgeId, type: type, displayedOnComments: displayedOnComments, limit: limit, skip: skip, ); + Future getUserBadges(String tenantId, [ GetUserBadgesOptions? options ]) async { + final response = await getUserBadgesWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5352,7 +5451,7 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getVotesWithHttpInfo(String tenantId, String urlId,) async { + Future getVotesWithHttpInfo(String tenantId, String urlId) async { // ignore: prefer_const_declarations final path = r'/api/v1/votes'; @@ -5385,8 +5484,8 @@ class DefaultApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getVotes(String tenantId, String urlId,) async { - final response = await getVotesWithHttpInfo(tenantId, urlId,); + Future getVotes(String tenantId, String urlId) async { + final response = await getVotesWithHttpInfo(tenantId, urlId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5410,7 +5509,9 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future getVotesForUserWithHttpInfo(String tenantId, String urlId, { String? userId, String? anonUserId, }) async { + Future getVotesForUserWithHttpInfo(String tenantId, String urlId, [ GetVotesForUserOptions? options ]) async { + final userId = options?.userId; + final anonUserId = options?.anonUserId; // ignore: prefer_const_declarations final path = r'/api/v1/votes/for-user'; @@ -5453,8 +5554,8 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future getVotesForUser(String tenantId, String urlId, { String? userId, String? anonUserId, }) async { - final response = await getVotesForUserWithHttpInfo(tenantId, urlId, userId: userId, anonUserId: anonUserId, ); + Future getVotesForUser(String tenantId, String urlId, [ GetVotesForUserOptions? options ]) async { + final response = await getVotesForUserWithHttpInfo(tenantId, urlId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5476,7 +5577,7 @@ class DefaultApi { /// * [String] domainToUpdate (required): /// /// * [PatchDomainConfigParams] patchDomainConfigParams (required): - Future patchDomainConfigWithHttpInfo(String tenantId, String domainToUpdate, PatchDomainConfigParams patchDomainConfigParams,) async { + Future patchDomainConfigWithHttpInfo(String tenantId, String domainToUpdate, PatchDomainConfigParams patchDomainConfigParams) async { // ignore: prefer_const_declarations final path = r'/api/v1/domain-configs/{domainToUpdate}' .replaceAll('{domainToUpdate}', domainToUpdate); @@ -5511,8 +5612,8 @@ class DefaultApi { /// * [String] domainToUpdate (required): /// /// * [PatchDomainConfigParams] patchDomainConfigParams (required): - Future patchDomainConfig(String tenantId, String domainToUpdate, PatchDomainConfigParams patchDomainConfigParams,) async { - final response = await patchDomainConfigWithHttpInfo(tenantId, domainToUpdate, patchDomainConfigParams,); + Future patchDomainConfig(String tenantId, String domainToUpdate, PatchDomainConfigParams patchDomainConfigParams) async { + final response = await patchDomainConfigWithHttpInfo(tenantId, domainToUpdate, patchDomainConfigParams); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5529,12 +5630,12 @@ class DefaultApi { /// Performs an HTTP 'PATCH /api/v1/hash-tags/{tag}' operation and returns the [Response]. /// Parameters: /// - /// * [String] tag (required): + /// * [String] tenantId (required): /// - /// * [String] tenantId: + /// * [String] tag (required): /// /// * [UpdateHashTagBody] updateHashTagBody: - Future patchHashTagWithHttpInfo(String tag, { String? tenantId, UpdateHashTagBody? updateHashTagBody, }) async { + Future patchHashTagWithHttpInfo(String tenantId, String tag, UpdateHashTagBody updateHashTagBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/hash-tags/{tag}' .replaceAll('{tag}', tag); @@ -5546,9 +5647,7 @@ class DefaultApi { final headerParams = {}; final formParams = {}; - if (tenantId != null) { queryParams.addAll(_queryParams('', 'tenantId', tenantId)); - } const contentTypes = ['application/json']; @@ -5566,13 +5665,13 @@ class DefaultApi { /// Parameters: /// - /// * [String] tag (required): + /// * [String] tenantId (required): /// - /// * [String] tenantId: + /// * [String] tag (required): /// /// * [UpdateHashTagBody] updateHashTagBody: - Future patchHashTag(String tag, { String? tenantId, UpdateHashTagBody? updateHashTagBody, }) async { - final response = await patchHashTagWithHttpInfo(tag, tenantId: tenantId, updateHashTagBody: updateHashTagBody, ); + Future patchHashTag(String tenantId, String tag, UpdateHashTagBody updateHashTagBody) async { + final response = await patchHashTagWithHttpInfo(tenantId, tag, updateHashTagBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5594,7 +5693,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateAPIPageData] updateAPIPageData (required): - Future patchPageWithHttpInfo(String tenantId, String id, UpdateAPIPageData updateAPIPageData,) async { + Future patchPageWithHttpInfo(String tenantId, String id, UpdateAPIPageData updateAPIPageData) async { // ignore: prefer_const_declarations final path = r'/api/v1/pages/{id}' .replaceAll('{id}', id); @@ -5629,8 +5728,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateAPIPageData] updateAPIPageData (required): - Future patchPage(String tenantId, String id, UpdateAPIPageData updateAPIPageData,) async { - final response = await patchPageWithHttpInfo(tenantId, id, updateAPIPageData,); + Future patchPage(String tenantId, String id, UpdateAPIPageData updateAPIPageData) async { + final response = await patchPageWithHttpInfo(tenantId, id, updateAPIPageData); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5654,7 +5753,7 @@ class DefaultApi { /// * [UpdateAPISSOUserData] updateAPISSOUserData (required): /// /// * [bool] updateComments: - Future patchSSOUserWithHttpInfo(String tenantId, String id, UpdateAPISSOUserData updateAPISSOUserData, { bool? updateComments, }) async { + Future patchSSOUserWithHttpInfo(String tenantId, String id, UpdateAPISSOUserData updateAPISSOUserData, [ bool? updateComments ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/sso-users/{id}' .replaceAll('{id}', id); @@ -5694,8 +5793,8 @@ class DefaultApi { /// * [UpdateAPISSOUserData] updateAPISSOUserData (required): /// /// * [bool] updateComments: - Future patchSSOUser(String tenantId, String id, UpdateAPISSOUserData updateAPISSOUserData, { bool? updateComments, }) async { - final response = await patchSSOUserWithHttpInfo(tenantId, id, updateAPISSOUserData, updateComments: updateComments, ); + Future patchSSOUser(String tenantId, String id, UpdateAPISSOUserData updateAPISSOUserData, [ bool? updateComments ]) async { + final response = await patchSSOUserWithHttpInfo(tenantId, id, updateAPISSOUserData, updateComments); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5717,7 +5816,7 @@ class DefaultApi { /// * [String] domainToUpdate (required): /// /// * [UpdateDomainConfigParams] updateDomainConfigParams (required): - Future putDomainConfigWithHttpInfo(String tenantId, String domainToUpdate, UpdateDomainConfigParams updateDomainConfigParams,) async { + Future putDomainConfigWithHttpInfo(String tenantId, String domainToUpdate, UpdateDomainConfigParams updateDomainConfigParams) async { // ignore: prefer_const_declarations final path = r'/api/v1/domain-configs/{domainToUpdate}' .replaceAll('{domainToUpdate}', domainToUpdate); @@ -5752,8 +5851,8 @@ class DefaultApi { /// * [String] domainToUpdate (required): /// /// * [UpdateDomainConfigParams] updateDomainConfigParams (required): - Future putDomainConfig(String tenantId, String domainToUpdate, UpdateDomainConfigParams updateDomainConfigParams,) async { - final response = await putDomainConfigWithHttpInfo(tenantId, domainToUpdate, updateDomainConfigParams,); + Future putDomainConfig(String tenantId, String domainToUpdate, UpdateDomainConfigParams updateDomainConfigParams) async { + final response = await putDomainConfigWithHttpInfo(tenantId, domainToUpdate, updateDomainConfigParams); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5777,7 +5876,7 @@ class DefaultApi { /// * [UpdateAPISSOUserData] updateAPISSOUserData (required): /// /// * [bool] updateComments: - Future putSSOUserWithHttpInfo(String tenantId, String id, UpdateAPISSOUserData updateAPISSOUserData, { bool? updateComments, }) async { + Future putSSOUserWithHttpInfo(String tenantId, String id, UpdateAPISSOUserData updateAPISSOUserData, [ bool? updateComments ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/sso-users/{id}' .replaceAll('{id}', id); @@ -5817,8 +5916,8 @@ class DefaultApi { /// * [UpdateAPISSOUserData] updateAPISSOUserData (required): /// /// * [bool] updateComments: - Future putSSOUser(String tenantId, String id, UpdateAPISSOUserData updateAPISSOUserData, { bool? updateComments, }) async { - final response = await putSSOUserWithHttpInfo(tenantId, id, updateAPISSOUserData, updateComments: updateComments, ); + Future putSSOUser(String tenantId, String id, UpdateAPISSOUserData updateAPISSOUserData, [ bool? updateComments ]) async { + final response = await putSSOUserWithHttpInfo(tenantId, id, updateAPISSOUserData, updateComments); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5840,7 +5939,7 @@ class DefaultApi { /// * [RenderEmailTemplateBody] renderEmailTemplateBody (required): /// /// * [String] locale: - Future renderEmailTemplateWithHttpInfo(String tenantId, RenderEmailTemplateBody renderEmailTemplateBody, { String? locale, }) async { + Future renderEmailTemplateWithHttpInfo(String tenantId, RenderEmailTemplateBody renderEmailTemplateBody, [ String? locale ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates/render'; @@ -5877,8 +5976,8 @@ class DefaultApi { /// * [RenderEmailTemplateBody] renderEmailTemplateBody (required): /// /// * [String] locale: - Future renderEmailTemplate(String tenantId, RenderEmailTemplateBody renderEmailTemplateBody, { String? locale, }) async { - final response = await renderEmailTemplateWithHttpInfo(tenantId, renderEmailTemplateBody, locale: locale, ); + Future renderEmailTemplate(String tenantId, RenderEmailTemplateBody renderEmailTemplateBody, [ String? locale ]) async { + final response = await renderEmailTemplateWithHttpInfo(tenantId, renderEmailTemplateBody, locale); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5900,7 +5999,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [ReplaceTenantPackageBody] replaceTenantPackageBody (required): - Future replaceTenantPackageWithHttpInfo(String tenantId, String id, ReplaceTenantPackageBody replaceTenantPackageBody,) async { + Future replaceTenantPackageWithHttpInfo(String tenantId, String id, ReplaceTenantPackageBody replaceTenantPackageBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-packages/{id}' .replaceAll('{id}', id); @@ -5935,8 +6034,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [ReplaceTenantPackageBody] replaceTenantPackageBody (required): - Future replaceTenantPackage(String tenantId, String id, ReplaceTenantPackageBody replaceTenantPackageBody,) async { - final response = await replaceTenantPackageWithHttpInfo(tenantId, id, replaceTenantPackageBody,); + Future replaceTenantPackage(String tenantId, String id, ReplaceTenantPackageBody replaceTenantPackageBody) async { + final response = await replaceTenantPackageWithHttpInfo(tenantId, id, replaceTenantPackageBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -5960,7 +6059,7 @@ class DefaultApi { /// * [ReplaceTenantUserBody] replaceTenantUserBody (required): /// /// * [String] updateComments: - Future replaceTenantUserWithHttpInfo(String tenantId, String id, ReplaceTenantUserBody replaceTenantUserBody, { String? updateComments, }) async { + Future replaceTenantUserWithHttpInfo(String tenantId, String id, ReplaceTenantUserBody replaceTenantUserBody, [ String? updateComments ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-users/{id}' .replaceAll('{id}', id); @@ -6000,8 +6099,8 @@ class DefaultApi { /// * [ReplaceTenantUserBody] replaceTenantUserBody (required): /// /// * [String] updateComments: - Future replaceTenantUser(String tenantId, String id, ReplaceTenantUserBody replaceTenantUserBody, { String? updateComments, }) async { - final response = await replaceTenantUserWithHttpInfo(tenantId, id, replaceTenantUserBody, updateComments: updateComments, ); + Future replaceTenantUser(String tenantId, String id, ReplaceTenantUserBody replaceTenantUserBody, [ String? updateComments ]) async { + final response = await replaceTenantUserWithHttpInfo(tenantId, id, replaceTenantUserBody, updateComments); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6029,7 +6128,11 @@ class DefaultApi { /// * [bool] sendEmails: /// /// * [bool] populateNotifications: - Future saveCommentWithHttpInfo(String tenantId, CreateCommentParams createCommentParams, { bool? isLive, bool? doSpamCheck, bool? sendEmails, bool? populateNotifications, }) async { + Future saveCommentWithHttpInfo(String tenantId, CreateCommentParams createCommentParams, [ SaveCommentOptions? options ]) async { + final isLive = options?.isLive; + final doSpamCheck = options?.doSpamCheck; + final sendEmails = options?.sendEmails; + final populateNotifications = options?.populateNotifications; // ignore: prefer_const_declarations final path = r'/api/v1/comments'; @@ -6081,8 +6184,8 @@ class DefaultApi { /// * [bool] sendEmails: /// /// * [bool] populateNotifications: - Future saveComment(String tenantId, CreateCommentParams createCommentParams, { bool? isLive, bool? doSpamCheck, bool? sendEmails, bool? populateNotifications, }) async { - final response = await saveCommentWithHttpInfo(tenantId, createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications, ); + Future saveComment(String tenantId, CreateCommentParams createCommentParams, [ SaveCommentOptions? options ]) async { + final response = await saveCommentWithHttpInfo(tenantId, createCommentParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6110,7 +6213,11 @@ class DefaultApi { /// * [bool] sendEmails: /// /// * [bool] populateNotifications: - Future saveCommentsBulkWithHttpInfo(String tenantId, List createCommentParams, { bool? isLive, bool? doSpamCheck, bool? sendEmails, bool? populateNotifications, }) async { + Future saveCommentsBulkWithHttpInfo(String tenantId, List createCommentParams, [ SaveCommentsBulkOptions? options ]) async { + final isLive = options?.isLive; + final doSpamCheck = options?.doSpamCheck; + final sendEmails = options?.sendEmails; + final populateNotifications = options?.populateNotifications; // ignore: prefer_const_declarations final path = r'/api/v1/comments/bulk'; @@ -6162,8 +6269,8 @@ class DefaultApi { /// * [bool] sendEmails: /// /// * [bool] populateNotifications: - Future?> saveCommentsBulk(String tenantId, List createCommentParams, { bool? isLive, bool? doSpamCheck, bool? sendEmails, bool? populateNotifications, }) async { - final response = await saveCommentsBulkWithHttpInfo(tenantId, createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications, ); + Future?> saveCommentsBulk(String tenantId, List createCommentParams, [ SaveCommentsBulkOptions? options ]) async { + final response = await saveCommentsBulkWithHttpInfo(tenantId, createCommentParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6188,7 +6295,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] fromName (required): - Future sendInviteWithHttpInfo(String tenantId, String id, String fromName,) async { + Future sendInviteWithHttpInfo(String tenantId, String id, String fromName) async { // ignore: prefer_const_declarations final path = r'/api/v1/moderators/{id}/send-invite' .replaceAll('{id}', id); @@ -6224,8 +6331,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] fromName (required): - Future sendInvite(String tenantId, String id, String fromName,) async { - final response = await sendInviteWithHttpInfo(tenantId, id, fromName,); + Future sendInvite(String tenantId, String id, String fromName) async { + final response = await sendInviteWithHttpInfo(tenantId, id, fromName); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6247,7 +6354,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] redirectURL: - Future sendLoginLinkWithHttpInfo(String tenantId, String id, { String? redirectURL, }) async { + Future sendLoginLinkWithHttpInfo(String tenantId, String id, [ String? redirectURL ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-users/{id}/send-login-link' .replaceAll('{id}', id); @@ -6285,8 +6392,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [String] redirectURL: - Future sendLoginLink(String tenantId, String id, { String? redirectURL, }) async { - final response = await sendLoginLinkWithHttpInfo(tenantId, id, redirectURL: redirectURL, ); + Future sendLoginLink(String tenantId, String id, [ String? redirectURL ]) async { + final response = await sendLoginLinkWithHttpInfo(tenantId, id, redirectURL); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6312,7 +6419,9 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future unBlockUserFromCommentWithHttpInfo(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, { String? userId, String? anonUserId, }) async { + Future unBlockUserFromCommentWithHttpInfo(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, [ UnBlockUserFromCommentOptions? options ]) async { + final userId = options?.userId; + final anonUserId = options?.anonUserId; // ignore: prefer_const_declarations final path = r'/api/v1/comments/{id}/un-block' .replaceAll('{id}', id); @@ -6357,8 +6466,8 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future unBlockUserFromComment(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, { String? userId, String? anonUserId, }) async { - final response = await unBlockUserFromCommentWithHttpInfo(tenantId, id, unBlockFromCommentParams, userId: userId, anonUserId: anonUserId, ); + Future unBlockUserFromComment(String tenantId, String id, UnBlockFromCommentParams unBlockFromCommentParams, [ UnBlockUserFromCommentOptions? options ]) async { + final response = await unBlockUserFromCommentWithHttpInfo(tenantId, id, unBlockFromCommentParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6382,7 +6491,9 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future unFlagCommentWithHttpInfo(String tenantId, String id, { String? userId, String? anonUserId, }) async { + Future unFlagCommentWithHttpInfo(String tenantId, String id, [ UnFlagCommentOptions? options ]) async { + final userId = options?.userId; + final anonUserId = options?.anonUserId; // ignore: prefer_const_declarations final path = r'/api/v1/comments/{id}/un-flag' .replaceAll('{id}', id); @@ -6425,8 +6536,8 @@ class DefaultApi { /// * [String] userId: /// /// * [String] anonUserId: - Future unFlagComment(String tenantId, String id, { String? userId, String? anonUserId, }) async { - final response = await unFlagCommentWithHttpInfo(tenantId, id, userId: userId, anonUserId: anonUserId, ); + Future unFlagComment(String tenantId, String id, [ UnFlagCommentOptions? options ]) async { + final response = await unFlagCommentWithHttpInfo(tenantId, id, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6454,7 +6565,10 @@ class DefaultApi { /// * [bool] doSpamCheck: /// /// * [bool] isLive: - Future updateCommentWithHttpInfo(String tenantId, String id, UpdatableCommentParams updatableCommentParams, { String? contextUserId, bool? doSpamCheck, bool? isLive, }) async { + Future updateCommentWithHttpInfo(String tenantId, String id, UpdatableCommentParams updatableCommentParams, [ UpdateCommentOptions? options ]) async { + final contextUserId = options?.contextUserId; + final doSpamCheck = options?.doSpamCheck; + final isLive = options?.isLive; // ignore: prefer_const_declarations final path = r'/api/v1/comments/{id}' .replaceAll('{id}', id); @@ -6504,8 +6618,8 @@ class DefaultApi { /// * [bool] doSpamCheck: /// /// * [bool] isLive: - Future updateComment(String tenantId, String id, UpdatableCommentParams updatableCommentParams, { String? contextUserId, bool? doSpamCheck, bool? isLive, }) async { - final response = await updateCommentWithHttpInfo(tenantId, id, updatableCommentParams, contextUserId: contextUserId, doSpamCheck: doSpamCheck, isLive: isLive, ); + Future updateComment(String tenantId, String id, UpdatableCommentParams updatableCommentParams, [ UpdateCommentOptions? options ]) async { + final response = await updateCommentWithHttpInfo(tenantId, id, updatableCommentParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6527,7 +6641,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateEmailTemplateBody] updateEmailTemplateBody (required): - Future updateEmailTemplateWithHttpInfo(String tenantId, String id, UpdateEmailTemplateBody updateEmailTemplateBody,) async { + Future updateEmailTemplateWithHttpInfo(String tenantId, String id, UpdateEmailTemplateBody updateEmailTemplateBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/email-templates/{id}' .replaceAll('{id}', id); @@ -6562,8 +6676,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateEmailTemplateBody] updateEmailTemplateBody (required): - Future updateEmailTemplate(String tenantId, String id, UpdateEmailTemplateBody updateEmailTemplateBody,) async { - final response = await updateEmailTemplateWithHttpInfo(tenantId, id, updateEmailTemplateBody,); + Future updateEmailTemplate(String tenantId, String id, UpdateEmailTemplateBody updateEmailTemplateBody) async { + final response = await updateEmailTemplateWithHttpInfo(tenantId, id, updateEmailTemplateBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6585,7 +6699,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [FeedPost] feedPost (required): - Future updateFeedPostWithHttpInfo(String tenantId, String id, FeedPost feedPost,) async { + Future updateFeedPostWithHttpInfo(String tenantId, String id, FeedPost feedPost) async { // ignore: prefer_const_declarations final path = r'/api/v1/feed-posts/{id}' .replaceAll('{id}', id); @@ -6620,8 +6734,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [FeedPost] feedPost (required): - Future updateFeedPost(String tenantId, String id, FeedPost feedPost,) async { - final response = await updateFeedPostWithHttpInfo(tenantId, id, feedPost,); + Future updateFeedPost(String tenantId, String id, FeedPost feedPost) async { + final response = await updateFeedPostWithHttpInfo(tenantId, id, feedPost); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6643,7 +6757,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateModeratorBody] updateModeratorBody (required): - Future updateModeratorWithHttpInfo(String tenantId, String id, UpdateModeratorBody updateModeratorBody,) async { + Future updateModeratorWithHttpInfo(String tenantId, String id, UpdateModeratorBody updateModeratorBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/moderators/{id}' .replaceAll('{id}', id); @@ -6678,8 +6792,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateModeratorBody] updateModeratorBody (required): - Future updateModerator(String tenantId, String id, UpdateModeratorBody updateModeratorBody,) async { - final response = await updateModeratorWithHttpInfo(tenantId, id, updateModeratorBody,); + Future updateModerator(String tenantId, String id, UpdateModeratorBody updateModeratorBody) async { + final response = await updateModeratorWithHttpInfo(tenantId, id, updateModeratorBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6703,7 +6817,7 @@ class DefaultApi { /// * [UpdateNotificationBody] updateNotificationBody (required): /// /// * [String] userId: - Future updateNotificationWithHttpInfo(String tenantId, String id, UpdateNotificationBody updateNotificationBody, { String? userId, }) async { + Future updateNotificationWithHttpInfo(String tenantId, String id, UpdateNotificationBody updateNotificationBody, [ String? userId ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/notifications/{id}' .replaceAll('{id}', id); @@ -6743,8 +6857,8 @@ class DefaultApi { /// * [UpdateNotificationBody] updateNotificationBody (required): /// /// * [String] userId: - Future updateNotification(String tenantId, String id, UpdateNotificationBody updateNotificationBody, { String? userId, }) async { - final response = await updateNotificationWithHttpInfo(tenantId, id, updateNotificationBody, userId: userId, ); + Future updateNotification(String tenantId, String id, UpdateNotificationBody updateNotificationBody, [ String? userId ]) async { + final response = await updateNotificationWithHttpInfo(tenantId, id, updateNotificationBody, userId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6766,7 +6880,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateQuestionConfigBody] updateQuestionConfigBody (required): - Future updateQuestionConfigWithHttpInfo(String tenantId, String id, UpdateQuestionConfigBody updateQuestionConfigBody,) async { + Future updateQuestionConfigWithHttpInfo(String tenantId, String id, UpdateQuestionConfigBody updateQuestionConfigBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-configs/{id}' .replaceAll('{id}', id); @@ -6801,8 +6915,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateQuestionConfigBody] updateQuestionConfigBody (required): - Future updateQuestionConfig(String tenantId, String id, UpdateQuestionConfigBody updateQuestionConfigBody,) async { - final response = await updateQuestionConfigWithHttpInfo(tenantId, id, updateQuestionConfigBody,); + Future updateQuestionConfig(String tenantId, String id, UpdateQuestionConfigBody updateQuestionConfigBody) async { + final response = await updateQuestionConfigWithHttpInfo(tenantId, id, updateQuestionConfigBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6824,7 +6938,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateQuestionResultBody] updateQuestionResultBody (required): - Future updateQuestionResultWithHttpInfo(String tenantId, String id, UpdateQuestionResultBody updateQuestionResultBody,) async { + Future updateQuestionResultWithHttpInfo(String tenantId, String id, UpdateQuestionResultBody updateQuestionResultBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/question-results/{id}' .replaceAll('{id}', id); @@ -6859,8 +6973,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateQuestionResultBody] updateQuestionResultBody (required): - Future updateQuestionResult(String tenantId, String id, UpdateQuestionResultBody updateQuestionResultBody,) async { - final response = await updateQuestionResultWithHttpInfo(tenantId, id, updateQuestionResultBody,); + Future updateQuestionResult(String tenantId, String id, UpdateQuestionResultBody updateQuestionResultBody) async { + final response = await updateQuestionResultWithHttpInfo(tenantId, id, updateQuestionResultBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6884,7 +6998,7 @@ class DefaultApi { /// * [UpdateAPIUserSubscriptionData] updateAPIUserSubscriptionData (required): /// /// * [String] userId: - Future updateSubscriptionWithHttpInfo(String tenantId, String id, UpdateAPIUserSubscriptionData updateAPIUserSubscriptionData, { String? userId, }) async { + Future updateSubscriptionWithHttpInfo(String tenantId, String id, UpdateAPIUserSubscriptionData updateAPIUserSubscriptionData, [ String? userId ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/subscriptions/{id}' .replaceAll('{id}', id); @@ -6924,8 +7038,8 @@ class DefaultApi { /// * [UpdateAPIUserSubscriptionData] updateAPIUserSubscriptionData (required): /// /// * [String] userId: - Future updateSubscription(String tenantId, String id, UpdateAPIUserSubscriptionData updateAPIUserSubscriptionData, { String? userId, }) async { - final response = await updateSubscriptionWithHttpInfo(tenantId, id, updateAPIUserSubscriptionData, userId: userId, ); + Future updateSubscription(String tenantId, String id, UpdateAPIUserSubscriptionData updateAPIUserSubscriptionData, [ String? userId ]) async { + final response = await updateSubscriptionWithHttpInfo(tenantId, id, updateAPIUserSubscriptionData, userId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -6947,7 +7061,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateTenantBody] updateTenantBody (required): - Future updateTenantWithHttpInfo(String tenantId, String id, UpdateTenantBody updateTenantBody,) async { + Future updateTenantWithHttpInfo(String tenantId, String id, UpdateTenantBody updateTenantBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenants/{id}' .replaceAll('{id}', id); @@ -6982,8 +7096,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateTenantBody] updateTenantBody (required): - Future updateTenant(String tenantId, String id, UpdateTenantBody updateTenantBody,) async { - final response = await updateTenantWithHttpInfo(tenantId, id, updateTenantBody,); + Future updateTenant(String tenantId, String id, UpdateTenantBody updateTenantBody) async { + final response = await updateTenantWithHttpInfo(tenantId, id, updateTenantBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -7005,7 +7119,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateTenantPackageBody] updateTenantPackageBody (required): - Future updateTenantPackageWithHttpInfo(String tenantId, String id, UpdateTenantPackageBody updateTenantPackageBody,) async { + Future updateTenantPackageWithHttpInfo(String tenantId, String id, UpdateTenantPackageBody updateTenantPackageBody) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-packages/{id}' .replaceAll('{id}', id); @@ -7040,8 +7154,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateTenantPackageBody] updateTenantPackageBody (required): - Future updateTenantPackage(String tenantId, String id, UpdateTenantPackageBody updateTenantPackageBody,) async { - final response = await updateTenantPackageWithHttpInfo(tenantId, id, updateTenantPackageBody,); + Future updateTenantPackage(String tenantId, String id, UpdateTenantPackageBody updateTenantPackageBody) async { + final response = await updateTenantPackageWithHttpInfo(tenantId, id, updateTenantPackageBody); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -7065,7 +7179,7 @@ class DefaultApi { /// * [UpdateTenantUserBody] updateTenantUserBody (required): /// /// * [String] updateComments: - Future updateTenantUserWithHttpInfo(String tenantId, String id, UpdateTenantUserBody updateTenantUserBody, { String? updateComments, }) async { + Future updateTenantUserWithHttpInfo(String tenantId, String id, UpdateTenantUserBody updateTenantUserBody, [ String? updateComments ]) async { // ignore: prefer_const_declarations final path = r'/api/v1/tenant-users/{id}' .replaceAll('{id}', id); @@ -7105,8 +7219,8 @@ class DefaultApi { /// * [UpdateTenantUserBody] updateTenantUserBody (required): /// /// * [String] updateComments: - Future updateTenantUser(String tenantId, String id, UpdateTenantUserBody updateTenantUserBody, { String? updateComments, }) async { - final response = await updateTenantUserWithHttpInfo(tenantId, id, updateTenantUserBody, updateComments: updateComments, ); + Future updateTenantUser(String tenantId, String id, UpdateTenantUserBody updateTenantUserBody, [ String? updateComments ]) async { + final response = await updateTenantUserWithHttpInfo(tenantId, id, updateTenantUserBody, updateComments); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -7128,7 +7242,7 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateUserBadgeParams] updateUserBadgeParams (required): - Future updateUserBadgeWithHttpInfo(String tenantId, String id, UpdateUserBadgeParams updateUserBadgeParams,) async { + Future updateUserBadgeWithHttpInfo(String tenantId, String id, UpdateUserBadgeParams updateUserBadgeParams) async { // ignore: prefer_const_declarations final path = r'/api/v1/user-badges/{id}' .replaceAll('{id}', id); @@ -7163,8 +7277,8 @@ class DefaultApi { /// * [String] id (required): /// /// * [UpdateUserBadgeParams] updateUserBadgeParams (required): - Future updateUserBadge(String tenantId, String id, UpdateUserBadgeParams updateUserBadgeParams,) async { - final response = await updateUserBadgeWithHttpInfo(tenantId, id, updateUserBadgeParams,); + Future updateUserBadge(String tenantId, String id, UpdateUserBadgeParams updateUserBadgeParams) async { + final response = await updateUserBadgeWithHttpInfo(tenantId, id, updateUserBadgeParams); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -7178,3 +7292,421 @@ class DefaultApi { return null; } } + +/// Optional parameters for [DefaultApi.aggregate]. +class AggregateOptions { + const AggregateOptions({ + this.parentTenantId, + this.includeStats, + }); + final String? parentTenantId; + final bool? includeStats; +} + +/// Optional parameters for [DefaultApi.aggregateQuestionResults]. +class AggregateQuestionResultsOptions { + const AggregateQuestionResultsOptions({ + this.questionId, + this.questionIds, + this.urlId, + this.timeBucket, + this.startDate, + this.forceRecalculate, + }); + final String? questionId; + final List? questionIds; + final String? urlId; + final AggregateTimeBucket? timeBucket; + final DateTime? startDate; + final bool? forceRecalculate; +} + +/// Optional parameters for [DefaultApi.blockUserFromComment]. +class BlockUserFromCommentOptions { + const BlockUserFromCommentOptions({ + this.userId, + this.anonUserId, + }); + final String? userId; + final String? anonUserId; +} + +/// Optional parameters for [DefaultApi.combineCommentsWithQuestionResults]. +class CombineCommentsWithQuestionResultsOptions { + const CombineCommentsWithQuestionResultsOptions({ + this.questionId, + this.questionIds, + this.urlId, + this.startDate, + this.forceRecalculate, + this.minValue, + this.maxValue, + this.limit, + }); + final String? questionId; + final List? questionIds; + final String? urlId; + final DateTime? startDate; + final bool? forceRecalculate; + final double? minValue; + final double? maxValue; + final double? limit; +} + +/// Optional parameters for [DefaultApi.createFeedPost]. +class CreateFeedPostOptions { + const CreateFeedPostOptions({ + this.broadcastId, + this.isLive, + this.doSpamCheck, + this.skipDupCheck, + }); + final String? broadcastId; + final bool? isLive; + final bool? doSpamCheck; + final bool? skipDupCheck; +} + +/// Optional parameters for [DefaultApi.createVote]. +class CreateVoteOptions { + const CreateVoteOptions({ + this.userId, + this.anonUserId, + }); + final String? userId; + final String? anonUserId; +} + +/// Optional parameters for [DefaultApi.deleteComment]. +class DeleteCommentOptions { + const DeleteCommentOptions({ + this.contextUserId, + this.isLive, + }); + final String? contextUserId; + final bool? isLive; +} + +/// Optional parameters for [DefaultApi.deleteSSOUser]. +class DeleteSSOUserOptions { + const DeleteSSOUserOptions({ + this.deleteComments, + this.commentDeleteMode, + }); + final bool? deleteComments; + final String? commentDeleteMode; +} + +/// Optional parameters for [DefaultApi.deleteTenantUser]. +class DeleteTenantUserOptions { + const DeleteTenantUserOptions({ + this.deleteComments, + this.commentDeleteMode, + }); + final String? deleteComments; + final String? commentDeleteMode; +} + +/// Optional parameters for [DefaultApi.flagComment]. +class FlagCommentOptions { + const FlagCommentOptions({ + this.userId, + this.anonUserId, + }); + final String? userId; + final String? anonUserId; +} + +/// Optional parameters for [DefaultApi.getAuditLogs]. +class GetAuditLogsOptions { + const GetAuditLogsOptions({ + this.limit, + this.skip, + this.order, + this.after, + this.before, + }); + final double? limit; + final double? skip; + final SORTDIR? order; + final double? after; + final double? before; +} + +/// Optional parameters for [DefaultApi.getComments]. +class GetCommentsOptions { + const GetCommentsOptions({ + this.page, + this.limit, + this.skip, + this.asTree, + this.skipChildren, + this.limitChildren, + this.maxTreeDepth, + this.urlId, + this.userId, + this.anonUserId, + this.contextUserId, + this.hashTag, + this.parentId, + this.direction, + this.fromDate, + this.toDate, + }); + final int? page; + final int? limit; + final int? skip; + final bool? asTree; + final int? skipChildren; + final int? limitChildren; + final int? maxTreeDepth; + final String? urlId; + final String? userId; + final String? anonUserId; + final String? contextUserId; + final String? hashTag; + final String? parentId; + final SortDirections? direction; + final int? fromDate; + final int? toDate; +} + +/// Optional parameters for [DefaultApi.getFeedPosts]. +class GetFeedPostsOptions { + const GetFeedPostsOptions({ + this.afterId, + this.limit, + this.tags, + }); + final String? afterId; + final int? limit; + final List? tags; +} + +/// Optional parameters for [DefaultApi.getNotificationCount]. +class GetNotificationCountOptions { + const GetNotificationCountOptions({ + this.userId, + this.urlId, + this.fromCommentId, + this.viewed, + this.type, + }); + final String? userId; + final String? urlId; + final String? fromCommentId; + final bool? viewed; + final String? type; +} + +/// Optional parameters for [DefaultApi.getNotifications]. +class GetNotificationsOptions { + const GetNotificationsOptions({ + this.userId, + this.urlId, + this.fromCommentId, + this.viewed, + this.type, + this.skip, + }); + final String? userId; + final String? urlId; + final String? fromCommentId; + final bool? viewed; + final String? type; + final double? skip; +} + +/// Optional parameters for [DefaultApi.getPendingWebhookEventCount]. +class GetPendingWebhookEventCountOptions { + const GetPendingWebhookEventCountOptions({ + this.commentId, + this.externalId, + this.eventType, + this.type, + this.domain, + this.attemptCountGT, + }); + final String? commentId; + final String? externalId; + final String? eventType; + final String? type; + final String? domain; + final double? attemptCountGT; +} + +/// Optional parameters for [DefaultApi.getPendingWebhookEvents]. +class GetPendingWebhookEventsOptions { + const GetPendingWebhookEventsOptions({ + this.commentId, + this.externalId, + this.eventType, + this.type, + this.domain, + this.attemptCountGT, + this.skip, + }); + final String? commentId; + final String? externalId; + final String? eventType; + final String? type; + final String? domain; + final double? attemptCountGT; + final double? skip; +} + +/// Optional parameters for [DefaultApi.getQuestionResults]. +class GetQuestionResultsOptions { + const GetQuestionResultsOptions({ + this.urlId, + this.userId, + this.startDate, + this.questionId, + this.questionIds, + this.skip, + }); + final String? urlId; + final String? userId; + final String? startDate; + final String? questionId; + final String? questionIds; + final double? skip; +} + +/// Optional parameters for [DefaultApi.getTenantDailyUsages]. +class GetTenantDailyUsagesOptions { + const GetTenantDailyUsagesOptions({ + this.yearNumber, + this.monthNumber, + this.dayNumber, + this.skip, + }); + final double? yearNumber; + final double? monthNumber; + final double? dayNumber; + final double? skip; +} + +/// Optional parameters for [DefaultApi.getTenants]. +class GetTenantsOptions { + const GetTenantsOptions({ + this.meta, + this.skip, + }); + final String? meta; + final double? skip; +} + +/// Optional parameters for [DefaultApi.getTickets]. +class GetTicketsOptions { + const GetTicketsOptions({ + this.userId, + this.state, + this.skip, + this.limit, + }); + final String? userId; + final double? state; + final double? skip; + final double? limit; +} + +/// Optional parameters for [DefaultApi.getUserBadgeProgressList]. +class GetUserBadgeProgressListOptions { + const GetUserBadgeProgressListOptions({ + this.userId, + this.limit, + this.skip, + }); + final String? userId; + final double? limit; + final double? skip; +} + +/// Optional parameters for [DefaultApi.getUserBadges]. +class GetUserBadgesOptions { + const GetUserBadgesOptions({ + this.userId, + this.badgeId, + this.type, + this.displayedOnComments, + this.limit, + this.skip, + }); + final String? userId; + final String? badgeId; + final double? type; + final bool? displayedOnComments; + final double? limit; + final double? skip; +} + +/// Optional parameters for [DefaultApi.getVotesForUser]. +class GetVotesForUserOptions { + const GetVotesForUserOptions({ + this.userId, + this.anonUserId, + }); + final String? userId; + final String? anonUserId; +} + +/// Optional parameters for [DefaultApi.saveComment]. +class SaveCommentOptions { + const SaveCommentOptions({ + this.isLive, + this.doSpamCheck, + this.sendEmails, + this.populateNotifications, + }); + final bool? isLive; + final bool? doSpamCheck; + final bool? sendEmails; + final bool? populateNotifications; +} + +/// Optional parameters for [DefaultApi.saveCommentsBulk]. +class SaveCommentsBulkOptions { + const SaveCommentsBulkOptions({ + this.isLive, + this.doSpamCheck, + this.sendEmails, + this.populateNotifications, + }); + final bool? isLive; + final bool? doSpamCheck; + final bool? sendEmails; + final bool? populateNotifications; +} + +/// Optional parameters for [DefaultApi.unBlockUserFromComment]. +class UnBlockUserFromCommentOptions { + const UnBlockUserFromCommentOptions({ + this.userId, + this.anonUserId, + }); + final String? userId; + final String? anonUserId; +} + +/// Optional parameters for [DefaultApi.unFlagComment]. +class UnFlagCommentOptions { + const UnFlagCommentOptions({ + this.userId, + this.anonUserId, + }); + final String? userId; + final String? anonUserId; +} + +/// Optional parameters for [DefaultApi.updateComment]. +class UpdateCommentOptions { + const UpdateCommentOptions({ + this.contextUserId, + this.doSpamCheck, + this.isLive, + }); + final String? contextUserId; + final bool? doSpamCheck; + final bool? isLive; +} diff --git a/client/lib/api/moderation_api.dart b/client/lib/api/moderation_api.dart index 1727b6a..fd6bdfd 100644 --- a/client/lib/api/moderation_api.dart +++ b/client/lib/api/moderation_api.dart @@ -16,17 +16,23 @@ class ModerationApi { final ApiClient apiClient; - /// Performs an HTTP 'DELETE /auth/my-account/moderate-comments/vote/{commentId}/{voteId}' operation and returns the [Response]. + /// Performs an HTTP 'DELETE /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] voteId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future deleteModerationVoteWithHttpInfo(String commentId, String voteId, { String? sso, }) async { + Future deleteModerationVoteWithHttpInfo(String tenantId, String commentId, String voteId, [ DeleteModerationVoteOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/vote/{commentId}/{voteId}' + final path = r'/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}' .replaceAll('{commentId}', commentId) .replaceAll('{voteId}', voteId); @@ -37,6 +43,10 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -57,13 +67,17 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] voteId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future deleteModerationVote(String commentId, String voteId, { String? sso, }) async { - final response = await deleteModerationVoteWithHttpInfo(commentId, voteId, sso: sso, ); + Future deleteModerationVote(String tenantId, String commentId, String voteId, [ DeleteModerationVoteOptions? options ]) async { + final response = await deleteModerationVoteWithHttpInfo(tenantId, commentId, voteId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -77,9 +91,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/api/comments' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/api/comments' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [double] page: /// /// * [double] count: @@ -97,9 +113,18 @@ class ModerationApi { /// * [bool] demo: /// /// * [String] sso: - Future getApiCommentsWithHttpInfo({ double? page, double? count, String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, bool? demo, String? sso, }) async { + Future getApiCommentsWithHttpInfo(String tenantId, [ GetApiCommentsOptions? options ]) async { + final page = options?.page; + final count = options?.count; + final textSearch = options?.textSearch; + final byIPFromComment = options?.byIPFromComment; + final filters = options?.filters; + final searchFilters = options?.searchFilters; + final sorts = options?.sorts; + final demo = options?.demo; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/api/comments'; + final path = r'/auth/my-account/moderate-comments/mod_api/api/comments'; // ignore: prefer_final_locals Object? postBody; @@ -108,6 +133,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (page != null) { queryParams.addAll(_queryParams('', 'page', page)); } @@ -152,6 +178,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [double] page: /// /// * [double] count: @@ -169,8 +197,8 @@ class ModerationApi { /// * [bool] demo: /// /// * [String] sso: - Future getApiComments({ double? page, double? count, String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, bool? demo, String? sso, }) async { - final response = await getApiCommentsWithHttpInfo( page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso, ); + Future getApiComments(String tenantId, [ GetApiCommentsOptions? options ]) async { + final response = await getApiCommentsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -184,15 +212,19 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/api/export/status' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/api/export/status' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] batchJobId: /// /// * [String] sso: - Future getApiExportStatusWithHttpInfo({ String? batchJobId, String? sso, }) async { + Future getApiExportStatusWithHttpInfo(String tenantId, [ GetApiExportStatusOptions? options ]) async { + final batchJobId = options?.batchJobId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/api/export/status'; + final path = r'/auth/my-account/moderate-comments/mod_api/api/export/status'; // ignore: prefer_final_locals Object? postBody; @@ -201,6 +233,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (batchJobId != null) { queryParams.addAll(_queryParams('', 'batchJobId', batchJobId)); } @@ -224,11 +257,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] batchJobId: /// /// * [String] sso: - Future getApiExportStatus({ String? batchJobId, String? sso, }) async { - final response = await getApiExportStatusWithHttpInfo( batchJobId: batchJobId, sso: sso, ); + Future getApiExportStatus(String tenantId, [ GetApiExportStatusOptions? options ]) async { + final response = await getApiExportStatusWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -242,9 +277,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/api/ids' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/api/ids' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] textSearch: /// /// * [String] byIPFromComment: @@ -258,9 +295,16 @@ class ModerationApi { /// * [bool] demo: /// /// * [String] sso: - Future getApiIdsWithHttpInfo({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? afterId, bool? demo, String? sso, }) async { + Future getApiIdsWithHttpInfo(String tenantId, [ GetApiIdsOptions? options ]) async { + final textSearch = options?.textSearch; + final byIPFromComment = options?.byIPFromComment; + final filters = options?.filters; + final searchFilters = options?.searchFilters; + final afterId = options?.afterId; + final demo = options?.demo; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/api/ids'; + final path = r'/auth/my-account/moderate-comments/mod_api/api/ids'; // ignore: prefer_final_locals Object? postBody; @@ -269,6 +313,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (textSearch != null) { queryParams.addAll(_queryParams('', 'text-search', textSearch)); } @@ -307,6 +352,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] textSearch: /// /// * [String] byIPFromComment: @@ -320,8 +367,8 @@ class ModerationApi { /// * [bool] demo: /// /// * [String] sso: - Future getApiIds({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? afterId, bool? demo, String? sso, }) async { - final response = await getApiIdsWithHttpInfo( textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso, ); + Future getApiIds(String tenantId, [ GetApiIdsOptions? options ]) async { + final response = await getApiIdsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -335,15 +382,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/ban-users/from-comment/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getBanUsersFromCommentWithHttpInfo(String commentId, { String? sso, }) async { + Future getBanUsersFromCommentWithHttpInfo(String tenantId, String commentId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -353,6 +402,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -373,11 +423,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getBanUsersFromComment(String commentId, { String? sso, }) async { - final response = await getBanUsersFromCommentWithHttpInfo(commentId, sso: sso, ); + Future getBanUsersFromComment(String tenantId, String commentId, [ String? sso ]) async { + final response = await getBanUsersFromCommentWithHttpInfo(tenantId, commentId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -391,15 +443,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-comment-ban-status/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getCommentBanStatusWithHttpInfo(String commentId, { String? sso, }) async { + Future getCommentBanStatusWithHttpInfo(String tenantId, String commentId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -409,6 +463,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -429,11 +484,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getCommentBanStatus(String commentId, { String? sso, }) async { - final response = await getCommentBanStatusWithHttpInfo(commentId, sso: sso, ); + Future getCommentBanStatus(String tenantId, String commentId, [ String? sso ]) async { + final response = await getCommentBanStatusWithHttpInfo(tenantId, commentId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -447,15 +504,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/comment-children/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/comment-children/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getCommentChildrenWithHttpInfo(String commentId, { String? sso, }) async { + Future getCommentChildrenWithHttpInfo(String tenantId, String commentId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/comment-children/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -465,6 +524,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -485,11 +545,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getCommentChildren(String commentId, { String? sso, }) async { - final response = await getCommentChildrenWithHttpInfo(commentId, sso: sso, ); + Future getCommentChildren(String tenantId, String commentId, [ String? sso ]) async { + final response = await getCommentChildrenWithHttpInfo(tenantId, commentId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -503,9 +565,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/count' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/count' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] textSearch: /// /// * [String] byIPFromComment: @@ -517,9 +581,15 @@ class ModerationApi { /// * [bool] demo: /// /// * [String] sso: - Future getCountWithHttpInfo({ String? textSearch, String? byIPFromComment, String? filter, String? searchFilters, bool? demo, String? sso, }) async { + Future getCountWithHttpInfo(String tenantId, [ GetCountOptions? options ]) async { + final textSearch = options?.textSearch; + final byIPFromComment = options?.byIPFromComment; + final filter = options?.filter; + final searchFilters = options?.searchFilters; + final demo = options?.demo; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/count'; + final path = r'/auth/my-account/moderate-comments/mod_api/count'; // ignore: prefer_final_locals Object? postBody; @@ -528,6 +598,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (textSearch != null) { queryParams.addAll(_queryParams('', 'text-search', textSearch)); } @@ -563,6 +634,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] textSearch: /// /// * [String] byIPFromComment: @@ -574,8 +647,8 @@ class ModerationApi { /// * [bool] demo: /// /// * [String] sso: - Future getCount({ String? textSearch, String? byIPFromComment, String? filter, String? searchFilters, bool? demo, String? sso, }) async { - final response = await getCountWithHttpInfo( textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso, ); + Future getCount(String tenantId, [ GetCountOptions? options ]) async { + final response = await getCountWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -589,13 +662,15 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/banned-users/counts' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/banned-users/mod_api/counts' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] sso: - Future getCountsWithHttpInfo({ String? sso, }) async { + Future getCountsWithHttpInfo(String tenantId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/banned-users/counts'; + final path = r'/auth/my-account/moderate-comments/banned-users/mod_api/counts'; // ignore: prefer_final_locals Object? postBody; @@ -604,6 +679,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -624,9 +700,11 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] sso: - Future getCounts({ String? sso, }) async { - final response = await getCountsWithHttpInfo( sso: sso, ); + Future getCounts(String tenantId, [ String? sso ]) async { + final response = await getCountsWithHttpInfo(tenantId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -640,15 +718,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/logs/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/logs/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getLogsWithHttpInfo(String commentId, { String? sso, }) async { + Future getLogsWithHttpInfo(String tenantId, String commentId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/logs/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/logs/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -658,6 +738,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -678,11 +759,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getLogs(String commentId, { String? sso, }) async { - final response = await getLogsWithHttpInfo(commentId, sso: sso, ); + Future getLogs(String tenantId, String commentId, [ String? sso ]) async { + final response = await getLogsWithHttpInfo(tenantId, commentId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -696,13 +779,15 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-manual-badges' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/get-manual-badges' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] sso: - Future getManualBadgesWithHttpInfo({ String? sso, }) async { + Future getManualBadgesWithHttpInfo(String tenantId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/get-manual-badges'; + final path = r'/auth/my-account/moderate-comments/mod_api/get-manual-badges'; // ignore: prefer_final_locals Object? postBody; @@ -711,6 +796,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -731,9 +817,11 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] sso: - Future getManualBadges({ String? sso, }) async { - final response = await getManualBadgesWithHttpInfo( sso: sso, ); + Future getManualBadges(String tenantId, [ String? sso ]) async { + final response = await getManualBadgesWithHttpInfo(tenantId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -747,17 +835,22 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-manual-badges-for-user' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] badgesUserId: /// /// * [String] commentId: /// /// * [String] sso: - Future getManualBadgesForUserWithHttpInfo({ String? badgesUserId, String? commentId, String? sso, }) async { + Future getManualBadgesForUserWithHttpInfo(String tenantId, [ GetManualBadgesForUserOptions? options ]) async { + final badgesUserId = options?.badgesUserId; + final commentId = options?.commentId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/get-manual-badges-for-user'; + final path = r'/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user'; // ignore: prefer_final_locals Object? postBody; @@ -766,6 +859,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (badgesUserId != null) { queryParams.addAll(_queryParams('', 'badgesUserId', badgesUserId)); } @@ -792,13 +886,15 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] badgesUserId: /// /// * [String] commentId: /// /// * [String] sso: - Future getManualBadgesForUser({ String? badgesUserId, String? commentId, String? sso, }) async { - final response = await getManualBadgesForUserWithHttpInfo( badgesUserId: badgesUserId, commentId: commentId, sso: sso, ); + Future getManualBadgesForUser(String tenantId, [ GetManualBadgesForUserOptions? options ]) async { + final response = await getManualBadgesForUserWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -812,9 +908,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/comment/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/comment/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] includeEmail: @@ -822,9 +920,12 @@ class ModerationApi { /// * [bool] includeIP: /// /// * [String] sso: - Future getModerationCommentWithHttpInfo(String commentId, { bool? includeEmail, bool? includeIP, String? sso, }) async { + Future getModerationCommentWithHttpInfo(String tenantId, String commentId, [ GetModerationCommentOptions? options ]) async { + final includeEmail = options?.includeEmail; + final includeIP = options?.includeIP; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/comment/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/comment/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -834,6 +935,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (includeEmail != null) { queryParams.addAll(_queryParams('', 'includeEmail', includeEmail)); } @@ -860,6 +962,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] includeEmail: @@ -867,8 +971,8 @@ class ModerationApi { /// * [bool] includeIP: /// /// * [String] sso: - Future getModerationComment(String commentId, { bool? includeEmail, bool? includeIP, String? sso, }) async { - final response = await getModerationCommentWithHttpInfo(commentId, includeEmail: includeEmail, includeIP: includeIP, sso: sso, ); + Future getModerationComment(String tenantId, String commentId, [ GetModerationCommentOptions? options ]) async { + final response = await getModerationCommentWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -882,15 +986,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-comment-text/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getModerationCommentTextWithHttpInfo(String commentId, { String? sso, }) async { + Future getModerationCommentTextWithHttpInfo(String tenantId, String commentId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/get-comment-text/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -900,6 +1006,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -920,11 +1027,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] sso: - Future getModerationCommentText(String commentId, { String? sso, }) async { - final response = await getModerationCommentTextWithHttpInfo(commentId, sso: sso, ); + Future getModerationCommentText(String tenantId, String commentId, [ String? sso ]) async { + final response = await getModerationCommentTextWithHttpInfo(tenantId, commentId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -938,9 +1047,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/pre-ban-summary/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] includeByUserIdAndEmail: @@ -950,9 +1061,13 @@ class ModerationApi { /// * [bool] includeByEmailDomain: /// /// * [String] sso: - Future getPreBanSummaryWithHttpInfo(String commentId, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async { + Future getPreBanSummaryWithHttpInfo(String tenantId, String commentId, [ GetPreBanSummaryOptions? options ]) async { + final includeByUserIdAndEmail = options?.includeByUserIdAndEmail; + final includeByIP = options?.includeByIP; + final includeByEmailDomain = options?.includeByEmailDomain; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/pre-ban-summary/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -962,6 +1077,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (includeByUserIdAndEmail != null) { queryParams.addAll(_queryParams('', 'includeByUserIdAndEmail', includeByUserIdAndEmail)); } @@ -991,6 +1107,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] includeByUserIdAndEmail: @@ -1000,8 +1118,8 @@ class ModerationApi { /// * [bool] includeByEmailDomain: /// /// * [String] sso: - Future getPreBanSummary(String commentId, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async { - final response = await getPreBanSummaryWithHttpInfo(commentId, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso, ); + Future getPreBanSummary(String tenantId, String commentId, [ GetPreBanSummaryOptions? options ]) async { + final response = await getPreBanSummaryWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1015,9 +1133,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/comments/summary' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/search/comments/summary' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] value: /// /// * [String] filters: @@ -1025,9 +1145,13 @@ class ModerationApi { /// * [String] searchFilters: /// /// * [String] sso: - Future getSearchCommentsSummaryWithHttpInfo({ String? value, String? filters, String? searchFilters, String? sso, }) async { + Future getSearchCommentsSummaryWithHttpInfo(String tenantId, [ GetSearchCommentsSummaryOptions? options ]) async { + final value = options?.value; + final filters = options?.filters; + final searchFilters = options?.searchFilters; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/search/comments/summary'; + final path = r'/auth/my-account/moderate-comments/mod_api/search/comments/summary'; // ignore: prefer_final_locals Object? postBody; @@ -1036,6 +1160,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (value != null) { queryParams.addAll(_queryParams('', 'value', value)); } @@ -1065,6 +1190,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] value: /// /// * [String] filters: @@ -1072,8 +1199,8 @@ class ModerationApi { /// * [String] searchFilters: /// /// * [String] sso: - Future getSearchCommentsSummary({ String? value, String? filters, String? searchFilters, String? sso, }) async { - final response = await getSearchCommentsSummaryWithHttpInfo( value: value, filters: filters, searchFilters: searchFilters, sso: sso, ); + Future getSearchCommentsSummary(String tenantId, [ GetSearchCommentsSummaryOptions? options ]) async { + final response = await getSearchCommentsSummaryWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1087,15 +1214,19 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/pages' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/search/pages' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] value: /// /// * [String] sso: - Future getSearchPagesWithHttpInfo({ String? value, String? sso, }) async { + Future getSearchPagesWithHttpInfo(String tenantId, [ GetSearchPagesOptions? options ]) async { + final value = options?.value; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/search/pages'; + final path = r'/auth/my-account/moderate-comments/mod_api/search/pages'; // ignore: prefer_final_locals Object? postBody; @@ -1104,6 +1235,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (value != null) { queryParams.addAll(_queryParams('', 'value', value)); } @@ -1127,11 +1259,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] value: /// /// * [String] sso: - Future getSearchPages({ String? value, String? sso, }) async { - final response = await getSearchPagesWithHttpInfo( value: value, sso: sso, ); + Future getSearchPages(String tenantId, [ GetSearchPagesOptions? options ]) async { + final response = await getSearchPagesWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1145,15 +1279,19 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/sites' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/search/sites' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] value: /// /// * [String] sso: - Future getSearchSitesWithHttpInfo({ String? value, String? sso, }) async { + Future getSearchSitesWithHttpInfo(String tenantId, [ GetSearchSitesOptions? options ]) async { + final value = options?.value; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/search/sites'; + final path = r'/auth/my-account/moderate-comments/mod_api/search/sites'; // ignore: prefer_final_locals Object? postBody; @@ -1162,6 +1300,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (value != null) { queryParams.addAll(_queryParams('', 'value', value)); } @@ -1185,11 +1324,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] value: /// /// * [String] sso: - Future getSearchSites({ String? value, String? sso, }) async { - final response = await getSearchSitesWithHttpInfo( value: value, sso: sso, ); + Future getSearchSites(String tenantId, [ GetSearchSitesOptions? options ]) async { + final response = await getSearchSitesWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1203,15 +1344,19 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/suggest' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/search/suggest' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] textSearch: /// /// * [String] sso: - Future getSearchSuggestWithHttpInfo({ String? textSearch, String? sso, }) async { + Future getSearchSuggestWithHttpInfo(String tenantId, [ GetSearchSuggestOptions? options ]) async { + final textSearch = options?.textSearch; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/search/suggest'; + final path = r'/auth/my-account/moderate-comments/mod_api/search/suggest'; // ignore: prefer_final_locals Object? postBody; @@ -1220,6 +1365,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (textSearch != null) { queryParams.addAll(_queryParams('', 'text-search', textSearch)); } @@ -1243,11 +1389,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] textSearch: /// /// * [String] sso: - Future getSearchSuggest({ String? textSearch, String? sso, }) async { - final response = await getSearchSuggestWithHttpInfo( textSearch: textSearch, sso: sso, ); + Future getSearchSuggest(String tenantId, [ GetSearchSuggestOptions? options ]) async { + final response = await getSearchSuggestWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1261,15 +1409,19 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/search/users' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/search/users' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] value: /// /// * [String] sso: - Future getSearchUsersWithHttpInfo({ String? value, String? sso, }) async { + Future getSearchUsersWithHttpInfo(String tenantId, [ GetSearchUsersOptions? options ]) async { + final value = options?.value; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/search/users'; + final path = r'/auth/my-account/moderate-comments/mod_api/search/users'; // ignore: prefer_final_locals Object? postBody; @@ -1278,6 +1430,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (value != null) { queryParams.addAll(_queryParams('', 'value', value)); } @@ -1301,11 +1454,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] value: /// /// * [String] sso: - Future getSearchUsers({ String? value, String? sso, }) async { - final response = await getSearchUsersWithHttpInfo( value: value, sso: sso, ); + Future getSearchUsers(String tenantId, [ GetSearchUsersOptions? options ]) async { + final response = await getSearchUsersWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1319,15 +1474,19 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-trust-factor' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/get-trust-factor' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] userId: /// /// * [String] sso: - Future getTrustFactorWithHttpInfo({ String? userId, String? sso, }) async { + Future getTrustFactorWithHttpInfo(String tenantId, [ GetTrustFactorOptions? options ]) async { + final userId = options?.userId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/get-trust-factor'; + final path = r'/auth/my-account/moderate-comments/mod_api/get-trust-factor'; // ignore: prefer_final_locals Object? postBody; @@ -1336,6 +1495,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (userId != null) { queryParams.addAll(_queryParams('', 'userId', userId)); } @@ -1359,11 +1519,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] userId: /// /// * [String] sso: - Future getTrustFactor({ String? userId, String? sso, }) async { - final response = await getTrustFactorWithHttpInfo( userId: userId, sso: sso, ); + Future getTrustFactor(String tenantId, [ GetTrustFactorOptions? options ]) async { + final response = await getTrustFactorWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1377,13 +1539,15 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/user-ban-preference' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/user-ban-preference' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] sso: - Future getUserBanPreferenceWithHttpInfo({ String? sso, }) async { + Future getUserBanPreferenceWithHttpInfo(String tenantId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/user-ban-preference'; + final path = r'/auth/my-account/moderate-comments/mod_api/user-ban-preference'; // ignore: prefer_final_locals Object? postBody; @@ -1392,6 +1556,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -1412,9 +1577,11 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] sso: - Future getUserBanPreference({ String? sso, }) async { - final response = await getUserBanPreferenceWithHttpInfo( sso: sso, ); + Future getUserBanPreference(String tenantId, [ String? sso ]) async { + final response = await getUserBanPreferenceWithHttpInfo(tenantId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1428,15 +1595,19 @@ class ModerationApi { return null; } - /// Performs an HTTP 'GET /auth/my-account/moderate-comments/get-user-internal-profile' operation and returns the [Response]. + /// Performs an HTTP 'GET /auth/my-account/moderate-comments/mod_api/get-user-internal-profile' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId: /// /// * [String] sso: - Future getUserInternalProfileWithHttpInfo({ String? commentId, String? sso, }) async { + Future getUserInternalProfileWithHttpInfo(String tenantId, [ GetUserInternalProfileOptions? options ]) async { + final commentId = options?.commentId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/get-user-internal-profile'; + final path = r'/auth/my-account/moderate-comments/mod_api/get-user-internal-profile'; // ignore: prefer_final_locals Object? postBody; @@ -1445,6 +1616,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (commentId != null) { queryParams.addAll(_queryParams('', 'commentId', commentId)); } @@ -1468,11 +1640,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId: /// /// * [String] sso: - Future getUserInternalProfile({ String? commentId, String? sso, }) async { - final response = await getUserInternalProfileWithHttpInfo( commentId: commentId, sso: sso, ); + Future getUserInternalProfile(String tenantId, [ GetUserInternalProfileOptions? options ]) async { + final response = await getUserInternalProfileWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1486,17 +1660,23 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/adjust-comment-votes/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [AdjustCommentVotesParams] adjustCommentVotesParams (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postAdjustCommentVotesWithHttpInfo(String commentId, AdjustCommentVotesParams adjustCommentVotesParams, { String? sso, }) async { + Future postAdjustCommentVotesWithHttpInfo(String tenantId, String commentId, AdjustCommentVotesParams adjustCommentVotesParams, [ PostAdjustCommentVotesOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -1506,6 +1686,10 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -1526,13 +1710,17 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [AdjustCommentVotesParams] adjustCommentVotesParams (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postAdjustCommentVotes(String commentId, AdjustCommentVotesParams adjustCommentVotesParams, { String? sso, }) async { - final response = await postAdjustCommentVotesWithHttpInfo(commentId, adjustCommentVotesParams, sso: sso, ); + Future postAdjustCommentVotes(String tenantId, String commentId, AdjustCommentVotesParams adjustCommentVotesParams, [ PostAdjustCommentVotesOptions? options ]) async { + final response = await postAdjustCommentVotesWithHttpInfo(tenantId, commentId, adjustCommentVotesParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1546,9 +1734,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/api/export' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/api/export' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] textSearch: /// /// * [String] byIPFromComment: @@ -1560,9 +1750,15 @@ class ModerationApi { /// * [String] sorts: /// /// * [String] sso: - Future postApiExportWithHttpInfo({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, String? sso, }) async { + Future postApiExportWithHttpInfo(String tenantId, [ PostApiExportOptions? options ]) async { + final textSearch = options?.textSearch; + final byIPFromComment = options?.byIPFromComment; + final filters = options?.filters; + final searchFilters = options?.searchFilters; + final sorts = options?.sorts; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/api/export'; + final path = r'/auth/my-account/moderate-comments/mod_api/api/export'; // ignore: prefer_final_locals Object? postBody; @@ -1571,6 +1767,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (textSearch != null) { queryParams.addAll(_queryParams('', 'text-search', textSearch)); } @@ -1606,6 +1803,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] textSearch: /// /// * [String] byIPFromComment: @@ -1617,8 +1816,8 @@ class ModerationApi { /// * [String] sorts: /// /// * [String] sso: - Future postApiExport({ String? textSearch, String? byIPFromComment, String? filters, String? searchFilters, String? sorts, String? sso, }) async { - final response = await postApiExportWithHttpInfo( textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sso, ); + Future postApiExport(String tenantId, [ PostApiExportOptions? options ]) async { + final response = await postApiExportWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1632,9 +1831,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/ban-user/from-comment/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] banEmail: @@ -1654,9 +1855,18 @@ class ModerationApi { /// * [String] banReason: /// /// * [String] sso: - Future postBanUserFromCommentWithHttpInfo(String commentId, { bool? banEmail, bool? banEmailDomain, bool? banIP, bool? deleteAllUsersComments, String? bannedUntil, bool? isShadowBan, String? updateId, String? banReason, String? sso, }) async { + Future postBanUserFromCommentWithHttpInfo(String tenantId, String commentId, [ PostBanUserFromCommentOptions? options ]) async { + final banEmail = options?.banEmail; + final banEmailDomain = options?.banEmailDomain; + final banIP = options?.banIP; + final deleteAllUsersComments = options?.deleteAllUsersComments; + final bannedUntil = options?.bannedUntil; + final isShadowBan = options?.isShadowBan; + final updateId = options?.updateId; + final banReason = options?.banReason; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -1666,6 +1876,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (banEmail != null) { queryParams.addAll(_queryParams('', 'banEmail', banEmail)); } @@ -1710,6 +1921,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] banEmail: @@ -1729,8 +1942,8 @@ class ModerationApi { /// * [String] banReason: /// /// * [String] sso: - Future postBanUserFromComment(String commentId, { bool? banEmail, bool? banEmailDomain, bool? banIP, bool? deleteAllUsersComments, String? bannedUntil, bool? isShadowBan, String? updateId, String? banReason, String? sso, }) async { - final response = await postBanUserFromCommentWithHttpInfo(commentId, banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso, ); + Future postBanUserFromComment(String tenantId, String commentId, [ PostBanUserFromCommentOptions? options ]) async { + final response = await postBanUserFromCommentWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1744,15 +1957,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/ban-user/undo' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/ban-user/undo' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [BanUserUndoParams] banUserUndoParams (required): /// /// * [String] sso: - Future postBanUserUndoWithHttpInfo(BanUserUndoParams banUserUndoParams, { String? sso, }) async { + Future postBanUserUndoWithHttpInfo(String tenantId, BanUserUndoParams banUserUndoParams, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/ban-user/undo'; + final path = r'/auth/my-account/moderate-comments/mod_api/ban-user/undo'; // ignore: prefer_final_locals Object? postBody = banUserUndoParams; @@ -1761,6 +1976,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -1781,11 +1997,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [BanUserUndoParams] banUserUndoParams (required): /// /// * [String] sso: - Future postBanUserUndo(BanUserUndoParams banUserUndoParams, { String? sso, }) async { - final response = await postBanUserUndoWithHttpInfo(banUserUndoParams, sso: sso, ); + Future postBanUserUndo(String tenantId, BanUserUndoParams banUserUndoParams, [ String? sso ]) async { + final response = await postBanUserUndoWithHttpInfo(tenantId, banUserUndoParams, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1799,9 +2017,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/bulk-pre-ban-summary' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [BulkPreBanParams] bulkPreBanParams (required): /// /// * [bool] includeByUserIdAndEmail: @@ -1811,9 +2031,13 @@ class ModerationApi { /// * [bool] includeByEmailDomain: /// /// * [String] sso: - Future postBulkPreBanSummaryWithHttpInfo(BulkPreBanParams bulkPreBanParams, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async { + Future postBulkPreBanSummaryWithHttpInfo(String tenantId, BulkPreBanParams bulkPreBanParams, [ PostBulkPreBanSummaryOptions? options ]) async { + final includeByUserIdAndEmail = options?.includeByUserIdAndEmail; + final includeByIP = options?.includeByIP; + final includeByEmailDomain = options?.includeByEmailDomain; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/bulk-pre-ban-summary'; + final path = r'/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary'; // ignore: prefer_final_locals Object? postBody = bulkPreBanParams; @@ -1822,6 +2046,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (includeByUserIdAndEmail != null) { queryParams.addAll(_queryParams('', 'includeByUserIdAndEmail', includeByUserIdAndEmail)); } @@ -1851,6 +2076,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [BulkPreBanParams] bulkPreBanParams (required): /// /// * [bool] includeByUserIdAndEmail: @@ -1860,8 +2087,8 @@ class ModerationApi { /// * [bool] includeByEmailDomain: /// /// * [String] sso: - Future postBulkPreBanSummary(BulkPreBanParams bulkPreBanParams, { bool? includeByUserIdAndEmail, bool? includeByIP, bool? includeByEmailDomain, String? sso, }) async { - final response = await postBulkPreBanSummaryWithHttpInfo(bulkPreBanParams, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso, ); + Future postBulkPreBanSummary(String tenantId, BulkPreBanParams bulkPreBanParams, [ PostBulkPreBanSummaryOptions? options ]) async { + final response = await postBulkPreBanSummaryWithHttpInfo(tenantId, bulkPreBanParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1875,15 +2102,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/comments-by-ids' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/comments-by-ids' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [CommentsByIdsParams] commentsByIdsParams (required): /// /// * [String] sso: - Future postCommentsByIdsWithHttpInfo(CommentsByIdsParams commentsByIdsParams, { String? sso, }) async { + Future postCommentsByIdsWithHttpInfo(String tenantId, CommentsByIdsParams commentsByIdsParams, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/comments-by-ids'; + final path = r'/auth/my-account/moderate-comments/mod_api/comments-by-ids'; // ignore: prefer_final_locals Object? postBody = commentsByIdsParams; @@ -1892,6 +2121,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -1912,11 +2142,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [CommentsByIdsParams] commentsByIdsParams (required): /// /// * [String] sso: - Future postCommentsByIds(CommentsByIdsParams commentsByIdsParams, { String? sso, }) async { - final response = await postCommentsByIdsWithHttpInfo(commentsByIdsParams, sso: sso, ); + Future postCommentsByIds(String tenantId, CommentsByIdsParams commentsByIdsParams, [ String? sso ]) async { + final response = await postCommentsByIdsWithHttpInfo(tenantId, commentsByIdsParams, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1930,15 +2162,21 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/flag-comment/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postFlagCommentWithHttpInfo(String commentId, { String? sso, }) async { + Future postFlagCommentWithHttpInfo(String tenantId, String commentId, [ PostFlagCommentOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/flag-comment/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -1948,6 +2186,10 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -1968,11 +2210,15 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postFlagComment(String commentId, { String? sso, }) async { - final response = await postFlagCommentWithHttpInfo(commentId, sso: sso, ); + Future postFlagComment(String tenantId, String commentId, [ PostFlagCommentOptions? options ]) async { + final response = await postFlagCommentWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1986,15 +2232,21 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/remove-comment/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postRemoveCommentWithHttpInfo(String commentId, { String? sso, }) async { + Future postRemoveCommentWithHttpInfo(String tenantId, String commentId, [ PostRemoveCommentOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/remove-comment/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -2004,6 +2256,10 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -2024,11 +2280,15 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postRemoveComment(String commentId, { String? sso, }) async { - final response = await postRemoveCommentWithHttpInfo(commentId, sso: sso, ); + Future postRemoveComment(String tenantId, String commentId, [ PostRemoveCommentOptions? options ]) async { + final response = await postRemoveCommentWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2036,21 +2296,27 @@ class ModerationApi { // At the time of writing this, `dart:convert` will throw an "Unexpected end of input" // FormatException when trying to decode an empty string. if (response.body.isNotEmpty && response.statusCode != HttpStatus.noContent) { - return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PostRemoveCommentResponse',) as PostRemoveCommentResponse; + return await apiClient.deserializeAsync(await _decodeBodyBytes(response), 'PostRemoveCommentApiResponse',) as PostRemoveCommentApiResponse; } return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/restore-deleted-comment/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postRestoreDeletedCommentWithHttpInfo(String commentId, { String? sso, }) async { + Future postRestoreDeletedCommentWithHttpInfo(String tenantId, String commentId, [ PostRestoreDeletedCommentOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -2060,6 +2326,10 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -2080,11 +2350,15 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postRestoreDeletedComment(String commentId, { String? sso, }) async { - final response = await postRestoreDeletedCommentWithHttpInfo(commentId, sso: sso, ); + Future postRestoreDeletedComment(String tenantId, String commentId, [ PostRestoreDeletedCommentOptions? options ]) async { + final response = await postRestoreDeletedCommentWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2098,17 +2372,24 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/set-comment-approval-status/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] approved: /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postSetCommentApprovalStatusWithHttpInfo(String commentId, { bool? approved, String? sso, }) async { + Future postSetCommentApprovalStatusWithHttpInfo(String tenantId, String commentId, [ PostSetCommentApprovalStatusOptions? options ]) async { + final approved = options?.approved; + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -2118,9 +2399,13 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (approved != null) { queryParams.addAll(_queryParams('', 'approved', approved)); } + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -2141,13 +2426,17 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] approved: /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postSetCommentApprovalStatus(String commentId, { bool? approved, String? sso, }) async { - final response = await postSetCommentApprovalStatusWithHttpInfo(commentId, approved: approved, sso: sso, ); + Future postSetCommentApprovalStatus(String tenantId, String commentId, [ PostSetCommentApprovalStatusOptions? options ]) async { + final response = await postSetCommentApprovalStatusWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2161,17 +2450,24 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/set-comment-review-status/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] reviewed: /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postSetCommentReviewStatusWithHttpInfo(String commentId, { bool? reviewed, String? sso, }) async { + Future postSetCommentReviewStatusWithHttpInfo(String tenantId, String commentId, [ PostSetCommentReviewStatusOptions? options ]) async { + final reviewed = options?.reviewed; + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/set-comment-review-status/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -2181,9 +2477,13 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (reviewed != null) { queryParams.addAll(_queryParams('', 'reviewed', reviewed)); } + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -2204,13 +2504,17 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] reviewed: /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postSetCommentReviewStatus(String commentId, { bool? reviewed, String? sso, }) async { - final response = await postSetCommentReviewStatusWithHttpInfo(commentId, reviewed: reviewed, sso: sso, ); + Future postSetCommentReviewStatus(String tenantId, String commentId, [ PostSetCommentReviewStatusOptions? options ]) async { + final response = await postSetCommentReviewStatusWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2224,19 +2528,27 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/set-comment-spam-status/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] spam: /// /// * [bool] permNotSpam: /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postSetCommentSpamStatusWithHttpInfo(String commentId, { bool? spam, bool? permNotSpam, String? sso, }) async { + Future postSetCommentSpamStatusWithHttpInfo(String tenantId, String commentId, [ PostSetCommentSpamStatusOptions? options ]) async { + final spam = options?.spam; + final permNotSpam = options?.permNotSpam; + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -2246,12 +2558,16 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (spam != null) { queryParams.addAll(_queryParams('', 'spam', spam)); } if (permNotSpam != null) { queryParams.addAll(_queryParams('', 'permNotSpam', permNotSpam)); } + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -2272,15 +2588,19 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [bool] spam: /// /// * [bool] permNotSpam: /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postSetCommentSpamStatus(String commentId, { bool? spam, bool? permNotSpam, String? sso, }) async { - final response = await postSetCommentSpamStatusWithHttpInfo(commentId, spam: spam, permNotSpam: permNotSpam, sso: sso, ); + Future postSetCommentSpamStatus(String tenantId, String commentId, [ PostSetCommentSpamStatusOptions? options ]) async { + final response = await postSetCommentSpamStatusWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2294,17 +2614,23 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/set-comment-text/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [SetCommentTextParams] setCommentTextParams (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postSetCommentTextWithHttpInfo(String commentId, SetCommentTextParams setCommentTextParams, { String? sso, }) async { + Future postSetCommentTextWithHttpInfo(String tenantId, String commentId, SetCommentTextParams setCommentTextParams, [ PostSetCommentTextOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/set-comment-text/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -2314,6 +2640,10 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -2334,13 +2664,17 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [SetCommentTextParams] setCommentTextParams (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postSetCommentText(String commentId, SetCommentTextParams setCommentTextParams, { String? sso, }) async { - final response = await postSetCommentTextWithHttpInfo(commentId, setCommentTextParams, sso: sso, ); + Future postSetCommentText(String tenantId, String commentId, SetCommentTextParams setCommentTextParams, [ PostSetCommentTextOptions? options ]) async { + final response = await postSetCommentTextWithHttpInfo(tenantId, commentId, setCommentTextParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2354,15 +2688,21 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/un-flag-comment/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postUnFlagCommentWithHttpInfo(String commentId, { String? sso, }) async { + Future postUnFlagCommentWithHttpInfo(String tenantId, String commentId, [ PostUnFlagCommentOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/un-flag-comment/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -2372,6 +2712,10 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -2392,11 +2736,15 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postUnFlagComment(String commentId, { String? sso, }) async { - final response = await postUnFlagCommentWithHttpInfo(commentId, sso: sso, ); + Future postUnFlagComment(String tenantId, String commentId, [ PostUnFlagCommentOptions? options ]) async { + final response = await postUnFlagCommentWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2410,17 +2758,24 @@ class ModerationApi { return null; } - /// Performs an HTTP 'POST /auth/my-account/moderate-comments/vote/{commentId}' operation and returns the [Response]. + /// Performs an HTTP 'POST /auth/my-account/moderate-comments/mod_api/vote/{commentId}' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] direction: /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postVoteWithHttpInfo(String commentId, { String? direction, String? sso, }) async { + Future postVoteWithHttpInfo(String tenantId, String commentId, [ PostVoteOptions? options ]) async { + final direction = options?.direction; + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/vote/{commentId}' + final path = r'/auth/my-account/moderate-comments/mod_api/vote/{commentId}' .replaceAll('{commentId}', commentId); // ignore: prefer_final_locals @@ -2430,9 +2785,13 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (direction != null) { queryParams.addAll(_queryParams('', 'direction', direction)); } + if (broadcastId != null) { + queryParams.addAll(_queryParams('', 'broadcastId', broadcastId)); + } if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); } @@ -2453,13 +2812,17 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] commentId (required): /// /// * [String] direction: /// + /// * [String] broadcastId: + /// /// * [String] sso: - Future postVote(String commentId, { String? direction, String? sso, }) async { - final response = await postVoteWithHttpInfo(commentId, direction: direction, sso: sso, ); + Future postVote(String tenantId, String commentId, [ PostVoteOptions? options ]) async { + final response = await postVoteWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2473,9 +2836,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/award-badge' operation and returns the [Response]. + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/mod_api/award-badge' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] badgeId (required): /// /// * [String] userId: @@ -2485,9 +2850,13 @@ class ModerationApi { /// * [String] broadcastId: /// /// * [String] sso: - Future putAwardBadgeWithHttpInfo(String badgeId, { String? userId, String? commentId, String? broadcastId, String? sso, }) async { + Future putAwardBadgeWithHttpInfo(String tenantId, String badgeId, [ PutAwardBadgeOptions? options ]) async { + final userId = options?.userId; + final commentId = options?.commentId; + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/award-badge'; + final path = r'/auth/my-account/moderate-comments/mod_api/award-badge'; // ignore: prefer_final_locals Object? postBody; @@ -2496,6 +2865,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); queryParams.addAll(_queryParams('', 'badgeId', badgeId)); if (userId != null) { queryParams.addAll(_queryParams('', 'userId', userId)); @@ -2526,6 +2896,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] badgeId (required): /// /// * [String] userId: @@ -2535,8 +2907,8 @@ class ModerationApi { /// * [String] broadcastId: /// /// * [String] sso: - Future putAwardBadge(String badgeId, { String? userId, String? commentId, String? broadcastId, String? sso, }) async { - final response = await putAwardBadgeWithHttpInfo(badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso, ); + Future putAwardBadge(String tenantId, String badgeId, [ PutAwardBadgeOptions? options ]) async { + final response = await putAwardBadgeWithHttpInfo(tenantId, badgeId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2550,15 +2922,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/close-thread' operation and returns the [Response]. + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/mod_api/close-thread' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] urlId (required): /// /// * [String] sso: - Future putCloseThreadWithHttpInfo(String urlId, { String? sso, }) async { + Future putCloseThreadWithHttpInfo(String tenantId, String urlId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/close-thread'; + final path = r'/auth/my-account/moderate-comments/mod_api/close-thread'; // ignore: prefer_final_locals Object? postBody; @@ -2567,6 +2941,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); queryParams.addAll(_queryParams('', 'urlId', urlId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); @@ -2588,11 +2963,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] urlId (required): /// /// * [String] sso: - Future putCloseThread(String urlId, { String? sso, }) async { - final response = await putCloseThreadWithHttpInfo(urlId, sso: sso, ); + Future putCloseThread(String tenantId, String urlId, [ String? sso ]) async { + final response = await putCloseThreadWithHttpInfo(tenantId, urlId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2606,9 +2983,11 @@ class ModerationApi { return null; } - /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/remove-badge' operation and returns the [Response]. + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/mod_api/remove-badge' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] badgeId (required): /// /// * [String] userId: @@ -2618,9 +2997,13 @@ class ModerationApi { /// * [String] broadcastId: /// /// * [String] sso: - Future putRemoveBadgeWithHttpInfo(String badgeId, { String? userId, String? commentId, String? broadcastId, String? sso, }) async { + Future putRemoveBadgeWithHttpInfo(String tenantId, String badgeId, [ PutRemoveBadgeOptions? options ]) async { + final userId = options?.userId; + final commentId = options?.commentId; + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/remove-badge'; + final path = r'/auth/my-account/moderate-comments/mod_api/remove-badge'; // ignore: prefer_final_locals Object? postBody; @@ -2629,6 +3012,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); queryParams.addAll(_queryParams('', 'badgeId', badgeId)); if (userId != null) { queryParams.addAll(_queryParams('', 'userId', userId)); @@ -2659,6 +3043,8 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] badgeId (required): /// /// * [String] userId: @@ -2668,8 +3054,8 @@ class ModerationApi { /// * [String] broadcastId: /// /// * [String] sso: - Future putRemoveBadge(String badgeId, { String? userId, String? commentId, String? broadcastId, String? sso, }) async { - final response = await putRemoveBadgeWithHttpInfo(badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso, ); + Future putRemoveBadge(String tenantId, String badgeId, [ PutRemoveBadgeOptions? options ]) async { + final response = await putRemoveBadgeWithHttpInfo(tenantId, badgeId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2683,15 +3069,17 @@ class ModerationApi { return null; } - /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/reopen-thread' operation and returns the [Response]. + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/mod_api/reopen-thread' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] urlId (required): /// /// * [String] sso: - Future putReopenThreadWithHttpInfo(String urlId, { String? sso, }) async { + Future putReopenThreadWithHttpInfo(String tenantId, String urlId, [ String? sso ]) async { // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/reopen-thread'; + final path = r'/auth/my-account/moderate-comments/mod_api/reopen-thread'; // ignore: prefer_final_locals Object? postBody; @@ -2700,6 +3088,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); queryParams.addAll(_queryParams('', 'urlId', urlId)); if (sso != null) { queryParams.addAll(_queryParams('', 'sso', sso)); @@ -2721,11 +3110,13 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] urlId (required): /// /// * [String] sso: - Future putReopenThread(String urlId, { String? sso, }) async { - final response = await putReopenThreadWithHttpInfo(urlId, sso: sso, ); + Future putReopenThread(String tenantId, String urlId, [ String? sso ]) async { + final response = await putReopenThreadWithHttpInfo(tenantId, urlId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2739,17 +3130,22 @@ class ModerationApi { return null; } - /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/set-trust-factor' operation and returns the [Response]. + /// Performs an HTTP 'PUT /auth/my-account/moderate-comments/mod_api/set-trust-factor' operation and returns the [Response]. /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] userId: /// /// * [String] trustFactor: /// /// * [String] sso: - Future setTrustFactorWithHttpInfo({ String? userId, String? trustFactor, String? sso, }) async { + Future setTrustFactorWithHttpInfo(String tenantId, [ SetTrustFactorOptions? options ]) async { + final userId = options?.userId; + final trustFactor = options?.trustFactor; + final sso = options?.sso; // ignore: prefer_const_declarations - final path = r'/auth/my-account/moderate-comments/set-trust-factor'; + final path = r'/auth/my-account/moderate-comments/mod_api/set-trust-factor'; // ignore: prefer_final_locals Object? postBody; @@ -2758,6 +3154,7 @@ class ModerationApi { final headerParams = {}; final formParams = {}; + queryParams.addAll(_queryParams('', 'tenantId', tenantId)); if (userId != null) { queryParams.addAll(_queryParams('', 'userId', userId)); } @@ -2784,13 +3181,15 @@ class ModerationApi { /// Parameters: /// + /// * [String] tenantId (required): + /// /// * [String] userId: /// /// * [String] trustFactor: /// /// * [String] sso: - Future setTrustFactor({ String? userId, String? trustFactor, String? sso, }) async { - final response = await setTrustFactorWithHttpInfo( userId: userId, trustFactor: trustFactor, sso: sso, ); + Future setTrustFactor(String tenantId, [ SetTrustFactorOptions? options ]) async { + final response = await setTrustFactorWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2804,3 +3203,403 @@ class ModerationApi { return null; } } + +/// Optional parameters for [ModerationApi.deleteModerationVote]. +class DeleteModerationVoteOptions { + const DeleteModerationVoteOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getApiComments]. +class GetApiCommentsOptions { + const GetApiCommentsOptions({ + this.page, + this.count, + this.textSearch, + this.byIPFromComment, + this.filters, + this.searchFilters, + this.sorts, + this.demo, + this.sso, + }); + final double? page; + final double? count; + final String? textSearch; + final String? byIPFromComment; + final String? filters; + final String? searchFilters; + final String? sorts; + final bool? demo; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getApiExportStatus]. +class GetApiExportStatusOptions { + const GetApiExportStatusOptions({ + this.batchJobId, + this.sso, + }); + final String? batchJobId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getApiIds]. +class GetApiIdsOptions { + const GetApiIdsOptions({ + this.textSearch, + this.byIPFromComment, + this.filters, + this.searchFilters, + this.afterId, + this.demo, + this.sso, + }); + final String? textSearch; + final String? byIPFromComment; + final String? filters; + final String? searchFilters; + final String? afterId; + final bool? demo; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getCount]. +class GetCountOptions { + const GetCountOptions({ + this.textSearch, + this.byIPFromComment, + this.filter, + this.searchFilters, + this.demo, + this.sso, + }); + final String? textSearch; + final String? byIPFromComment; + final String? filter; + final String? searchFilters; + final bool? demo; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getManualBadgesForUser]. +class GetManualBadgesForUserOptions { + const GetManualBadgesForUserOptions({ + this.badgesUserId, + this.commentId, + this.sso, + }); + final String? badgesUserId; + final String? commentId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getModerationComment]. +class GetModerationCommentOptions { + const GetModerationCommentOptions({ + this.includeEmail, + this.includeIP, + this.sso, + }); + final bool? includeEmail; + final bool? includeIP; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getPreBanSummary]. +class GetPreBanSummaryOptions { + const GetPreBanSummaryOptions({ + this.includeByUserIdAndEmail, + this.includeByIP, + this.includeByEmailDomain, + this.sso, + }); + final bool? includeByUserIdAndEmail; + final bool? includeByIP; + final bool? includeByEmailDomain; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getSearchCommentsSummary]. +class GetSearchCommentsSummaryOptions { + const GetSearchCommentsSummaryOptions({ + this.value, + this.filters, + this.searchFilters, + this.sso, + }); + final String? value; + final String? filters; + final String? searchFilters; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getSearchPages]. +class GetSearchPagesOptions { + const GetSearchPagesOptions({ + this.value, + this.sso, + }); + final String? value; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getSearchSites]. +class GetSearchSitesOptions { + const GetSearchSitesOptions({ + this.value, + this.sso, + }); + final String? value; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getSearchSuggest]. +class GetSearchSuggestOptions { + const GetSearchSuggestOptions({ + this.textSearch, + this.sso, + }); + final String? textSearch; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getSearchUsers]. +class GetSearchUsersOptions { + const GetSearchUsersOptions({ + this.value, + this.sso, + }); + final String? value; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getTrustFactor]. +class GetTrustFactorOptions { + const GetTrustFactorOptions({ + this.userId, + this.sso, + }); + final String? userId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.getUserInternalProfile]. +class GetUserInternalProfileOptions { + const GetUserInternalProfileOptions({ + this.commentId, + this.sso, + }); + final String? commentId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postAdjustCommentVotes]. +class PostAdjustCommentVotesOptions { + const PostAdjustCommentVotesOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postApiExport]. +class PostApiExportOptions { + const PostApiExportOptions({ + this.textSearch, + this.byIPFromComment, + this.filters, + this.searchFilters, + this.sorts, + this.sso, + }); + final String? textSearch; + final String? byIPFromComment; + final String? filters; + final String? searchFilters; + final String? sorts; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postBanUserFromComment]. +class PostBanUserFromCommentOptions { + const PostBanUserFromCommentOptions({ + this.banEmail, + this.banEmailDomain, + this.banIP, + this.deleteAllUsersComments, + this.bannedUntil, + this.isShadowBan, + this.updateId, + this.banReason, + this.sso, + }); + final bool? banEmail; + final bool? banEmailDomain; + final bool? banIP; + final bool? deleteAllUsersComments; + final String? bannedUntil; + final bool? isShadowBan; + final String? updateId; + final String? banReason; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postBulkPreBanSummary]. +class PostBulkPreBanSummaryOptions { + const PostBulkPreBanSummaryOptions({ + this.includeByUserIdAndEmail, + this.includeByIP, + this.includeByEmailDomain, + this.sso, + }); + final bool? includeByUserIdAndEmail; + final bool? includeByIP; + final bool? includeByEmailDomain; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postFlagComment]. +class PostFlagCommentOptions { + const PostFlagCommentOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postRemoveComment]. +class PostRemoveCommentOptions { + const PostRemoveCommentOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postRestoreDeletedComment]. +class PostRestoreDeletedCommentOptions { + const PostRestoreDeletedCommentOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postSetCommentApprovalStatus]. +class PostSetCommentApprovalStatusOptions { + const PostSetCommentApprovalStatusOptions({ + this.approved, + this.broadcastId, + this.sso, + }); + final bool? approved; + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postSetCommentReviewStatus]. +class PostSetCommentReviewStatusOptions { + const PostSetCommentReviewStatusOptions({ + this.reviewed, + this.broadcastId, + this.sso, + }); + final bool? reviewed; + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postSetCommentSpamStatus]. +class PostSetCommentSpamStatusOptions { + const PostSetCommentSpamStatusOptions({ + this.spam, + this.permNotSpam, + this.broadcastId, + this.sso, + }); + final bool? spam; + final bool? permNotSpam; + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postSetCommentText]. +class PostSetCommentTextOptions { + const PostSetCommentTextOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postUnFlagComment]. +class PostUnFlagCommentOptions { + const PostUnFlagCommentOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.postVote]. +class PostVoteOptions { + const PostVoteOptions({ + this.direction, + this.broadcastId, + this.sso, + }); + final String? direction; + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.putAwardBadge]. +class PutAwardBadgeOptions { + const PutAwardBadgeOptions({ + this.userId, + this.commentId, + this.broadcastId, + this.sso, + }); + final String? userId; + final String? commentId; + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.putRemoveBadge]. +class PutRemoveBadgeOptions { + const PutRemoveBadgeOptions({ + this.userId, + this.commentId, + this.broadcastId, + this.sso, + }); + final String? userId; + final String? commentId; + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [ModerationApi.setTrustFactor]. +class SetTrustFactorOptions { + const SetTrustFactorOptions({ + this.userId, + this.trustFactor, + this.sso, + }); + final String? userId; + final String? trustFactor; + final String? sso; +} diff --git a/client/lib/api/public_api.dart b/client/lib/api/public_api.dart index 43a384e..ba6a19c 100644 --- a/client/lib/api/public_api.dart +++ b/client/lib/api/public_api.dart @@ -26,7 +26,7 @@ class PublicApi { /// * [PublicBlockFromCommentParams] publicBlockFromCommentParams (required): /// /// * [String] sso: - Future blockFromCommentPublicWithHttpInfo(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String? sso, }) async { + Future blockFromCommentPublicWithHttpInfo(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/block-from-comment/{commentId}' .replaceAll('{commentId}', commentId); @@ -66,8 +66,8 @@ class PublicApi { /// * [PublicBlockFromCommentParams] publicBlockFromCommentParams (required): /// /// * [String] sso: - Future blockFromCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String? sso, }) async { - final response = await blockFromCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso: sso, ); + Future blockFromCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, [ String? sso ]) async { + final response = await blockFromCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -90,7 +90,7 @@ class PublicApi { /// A comma separated list of comment ids. /// /// * [String] sso: - Future checkedCommentsForBlockedWithHttpInfo(String tenantId, String commentIds, { String? sso, }) async { + Future checkedCommentsForBlockedWithHttpInfo(String tenantId, String commentIds, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/check-blocked-comments'; @@ -129,8 +129,8 @@ class PublicApi { /// A comma separated list of comment ids. /// /// * [String] sso: - Future checkedCommentsForBlocked(String tenantId, String commentIds, { String? sso, }) async { - final response = await checkedCommentsForBlockedWithHttpInfo(tenantId, commentIds, sso: sso, ); + Future checkedCommentsForBlocked(String tenantId, String commentIds, [ String? sso ]) async { + final response = await checkedCommentsForBlockedWithHttpInfo(tenantId, commentIds, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -158,7 +158,9 @@ class PublicApi { /// * [String] sessionId: /// /// * [String] sso: - Future createCommentPublicWithHttpInfo(String tenantId, String urlId, String broadcastId, CommentData commentData, { String? sessionId, String? sso, }) async { + Future createCommentPublicWithHttpInfo(String tenantId, String urlId, String broadcastId, CommentData commentData, [ CreateCommentPublicOptions? options ]) async { + final sessionId = options?.sessionId; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/comments/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -206,8 +208,8 @@ class PublicApi { /// * [String] sessionId: /// /// * [String] sso: - Future createCommentPublic(String tenantId, String urlId, String broadcastId, CommentData commentData, { String? sessionId, String? sso, }) async { - final response = await createCommentPublicWithHttpInfo(tenantId, urlId, broadcastId, commentData, sessionId: sessionId, sso: sso, ); + Future createCommentPublic(String tenantId, String urlId, String broadcastId, CommentData commentData, [ CreateCommentPublicOptions? options ]) async { + final response = await createCommentPublicWithHttpInfo(tenantId, urlId, broadcastId, commentData, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -231,7 +233,9 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future createFeedPostPublicWithHttpInfo(String tenantId, CreateFeedPostParams createFeedPostParams, { String? broadcastId, String? sso, }) async { + Future createFeedPostPublicWithHttpInfo(String tenantId, CreateFeedPostParams createFeedPostParams, [ CreateFeedPostPublicOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/feed-posts/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -273,8 +277,8 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future createFeedPostPublic(String tenantId, CreateFeedPostParams createFeedPostParams, { String? broadcastId, String? sso, }) async { - final response = await createFeedPostPublicWithHttpInfo(tenantId, createFeedPostParams, broadcastId: broadcastId, sso: sso, ); + Future createFeedPostPublic(String tenantId, CreateFeedPostParams createFeedPostParams, [ CreateFeedPostPublicOptions? options ]) async { + final response = await createFeedPostPublicWithHttpInfo(tenantId, createFeedPostParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -296,7 +300,7 @@ class PublicApi { /// * [String] urlId (required): /// /// * [String] title: - Future createV1PageReactWithHttpInfo(String tenantId, String urlId, { String? title, }) async { + Future createV1PageReactWithHttpInfo(String tenantId, String urlId, [ String? title ]) async { // ignore: prefer_const_declarations final path = r'/page-reacts/v1/likes/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -334,8 +338,8 @@ class PublicApi { /// * [String] urlId (required): /// /// * [String] title: - Future createV1PageReact(String tenantId, String urlId, { String? title, }) async { - final response = await createV1PageReactWithHttpInfo(tenantId, urlId, title: title, ); + Future createV1PageReact(String tenantId, String urlId, [ String? title ]) async { + final response = await createV1PageReactWithHttpInfo(tenantId, urlId, title); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -359,7 +363,7 @@ class PublicApi { /// * [String] id (required): /// /// * [String] title: - Future createV2PageReactWithHttpInfo(String tenantId, String urlId, String id, { String? title, }) async { + Future createV2PageReactWithHttpInfo(String tenantId, String urlId, String id, [ String? title ]) async { // ignore: prefer_const_declarations final path = r'/page-reacts/v2/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -400,8 +404,8 @@ class PublicApi { /// * [String] id (required): /// /// * [String] title: - Future createV2PageReact(String tenantId, String urlId, String id, { String? title, }) async { - final response = await createV2PageReactWithHttpInfo(tenantId, urlId, id, title: title, ); + Future createV2PageReact(String tenantId, String urlId, String id, [ String? title ]) async { + final response = await createV2PageReactWithHttpInfo(tenantId, urlId, id, title); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -427,7 +431,9 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future deleteCommentPublicWithHttpInfo(String tenantId, String commentId, String broadcastId, { String? editKey, String? sso, }) async { + Future deleteCommentPublicWithHttpInfo(String tenantId, String commentId, String broadcastId, [ DeleteCommentPublicOptions? options ]) async { + final editKey = options?.editKey; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}' .replaceAll('{tenantId}', tenantId) @@ -473,8 +479,8 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future deleteCommentPublic(String tenantId, String commentId, String broadcastId, { String? editKey, String? sso, }) async { - final response = await deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, editKey: editKey, sso: sso, ); + Future deleteCommentPublic(String tenantId, String commentId, String broadcastId, [ DeleteCommentPublicOptions? options ]) async { + final response = await deleteCommentPublicWithHttpInfo(tenantId, commentId, broadcastId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -504,7 +510,9 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future deleteCommentVoteWithHttpInfo(String tenantId, String commentId, String voteId, String urlId, String broadcastId, { String? editKey, String? sso, }) async { + Future deleteCommentVoteWithHttpInfo(String tenantId, String commentId, String voteId, String urlId, String broadcastId, [ DeleteCommentVoteOptions? options ]) async { + final editKey = options?.editKey; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/vote/{voteId}' .replaceAll('{tenantId}', tenantId) @@ -556,8 +564,8 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future deleteCommentVote(String tenantId, String commentId, String voteId, String urlId, String broadcastId, { String? editKey, String? sso, }) async { - final response = await deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, editKey: editKey, sso: sso, ); + Future deleteCommentVote(String tenantId, String commentId, String voteId, String urlId, String broadcastId, [ DeleteCommentVoteOptions? options ]) async { + final response = await deleteCommentVoteWithHttpInfo(tenantId, commentId, voteId, urlId, broadcastId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -581,7 +589,9 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future deleteFeedPostPublicWithHttpInfo(String tenantId, String postId, { String? broadcastId, String? sso, }) async { + Future deleteFeedPostPublicWithHttpInfo(String tenantId, String postId, [ DeleteFeedPostPublicOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/feed-posts/{tenantId}/{postId}' .replaceAll('{tenantId}', tenantId) @@ -624,8 +634,8 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future deleteFeedPostPublic(String tenantId, String postId, { String? broadcastId, String? sso, }) async { - final response = await deleteFeedPostPublicWithHttpInfo(tenantId, postId, broadcastId: broadcastId, sso: sso, ); + Future deleteFeedPostPublic(String tenantId, String postId, [ DeleteFeedPostPublicOptions? options ]) async { + final response = await deleteFeedPostPublicWithHttpInfo(tenantId, postId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -645,7 +655,7 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future deleteV1PageReactWithHttpInfo(String tenantId, String urlId,) async { + Future deleteV1PageReactWithHttpInfo(String tenantId, String urlId) async { // ignore: prefer_const_declarations final path = r'/page-reacts/v1/likes/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -678,8 +688,8 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future deleteV1PageReact(String tenantId, String urlId,) async { - final response = await deleteV1PageReactWithHttpInfo(tenantId, urlId,); + Future deleteV1PageReact(String tenantId, String urlId) async { + final response = await deleteV1PageReactWithHttpInfo(tenantId, urlId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -701,7 +711,7 @@ class PublicApi { /// * [String] urlId (required): /// /// * [String] id (required): - Future deleteV2PageReactWithHttpInfo(String tenantId, String urlId, String id,) async { + Future deleteV2PageReactWithHttpInfo(String tenantId, String urlId, String id) async { // ignore: prefer_const_declarations final path = r'/page-reacts/v2/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -737,8 +747,8 @@ class PublicApi { /// * [String] urlId (required): /// /// * [String] id (required): - Future deleteV2PageReact(String tenantId, String urlId, String id,) async { - final response = await deleteV2PageReactWithHttpInfo(tenantId, urlId, id,); + Future deleteV2PageReact(String tenantId, String urlId, String id) async { + final response = await deleteV2PageReactWithHttpInfo(tenantId, urlId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -762,7 +772,7 @@ class PublicApi { /// * [bool] isFlagged (required): /// /// * [String] sso: - Future flagCommentPublicWithHttpInfo(String tenantId, String commentId, bool isFlagged, { String? sso, }) async { + Future flagCommentPublicWithHttpInfo(String tenantId, String commentId, bool isFlagged, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/flag-comment/{commentId}' .replaceAll('{commentId}', commentId); @@ -803,8 +813,8 @@ class PublicApi { /// * [bool] isFlagged (required): /// /// * [String] sso: - Future flagCommentPublic(String tenantId, String commentId, bool isFlagged, { String? sso, }) async { - final response = await flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso: sso, ); + Future flagCommentPublic(String tenantId, String commentId, bool isFlagged, [ String? sso ]) async { + final response = await flagCommentPublicWithHttpInfo(tenantId, commentId, isFlagged, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -828,7 +838,9 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future getCommentTextWithHttpInfo(String tenantId, String commentId, { String? editKey, String? sso, }) async { + Future getCommentTextWithHttpInfo(String tenantId, String commentId, [ GetCommentTextOptions? options ]) async { + final editKey = options?.editKey; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/text' .replaceAll('{tenantId}', tenantId) @@ -871,8 +883,8 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future getCommentText(String tenantId, String commentId, { String? editKey, String? sso, }) async { - final response = await getCommentTextWithHttpInfo(tenantId, commentId, editKey: editKey, sso: sso, ); + Future getCommentText(String tenantId, String commentId, [ GetCommentTextOptions? options ]) async { + final response = await getCommentTextWithHttpInfo(tenantId, commentId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -896,7 +908,7 @@ class PublicApi { /// * [int] dir (required): /// /// * [String] sso: - Future getCommentVoteUserNamesWithHttpInfo(String tenantId, String commentId, int dir, { String? sso, }) async { + Future getCommentVoteUserNamesWithHttpInfo(String tenantId, String commentId, int dir, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/votes' .replaceAll('{tenantId}', tenantId) @@ -937,8 +949,8 @@ class PublicApi { /// * [int] dir (required): /// /// * [String] sso: - Future getCommentVoteUserNames(String tenantId, String commentId, int dir, { String? sso, }) async { - final response = await getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso: sso, ); + Future getCommentVoteUserNames(String tenantId, String commentId, int dir, [ String? sso ]) async { + final response = await getCommentVoteUserNamesWithHttpInfo(tenantId, commentId, dir, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -968,7 +980,14 @@ class PublicApi { /// * [String] locale: /// /// * [bool] isCrawler: - Future getCommentsForUserWithHttpInfo({ String? userId, SortDirections? direction, String? repliesToUserId, double? page, bool? includei10n, String? locale, bool? isCrawler, }) async { + Future getCommentsForUserWithHttpInfo([ GetCommentsForUserOptions? options ]) async { + final userId = options?.userId; + final direction = options?.direction; + final repliesToUserId = options?.repliesToUserId; + final page = options?.page; + final includei10n = options?.includei10n; + final locale = options?.locale; + final isCrawler = options?.isCrawler; // ignore: prefer_const_declarations final path = r'/comments-for-user'; @@ -1030,8 +1049,8 @@ class PublicApi { /// * [String] locale: /// /// * [bool] isCrawler: - Future getCommentsForUser({ String? userId, SortDirections? direction, String? repliesToUserId, double? page, bool? includei10n, String? locale, bool? isCrawler, }) async { - final response = await getCommentsForUserWithHttpInfo( userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler, ); + Future getCommentsForUser([ GetCommentsForUserOptions? options ]) async { + final response = await getCommentsForUserWithHttpInfo(options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1106,7 +1125,33 @@ class PublicApi { /// * [String] afterCommentId: /// /// * [String] beforeCommentId: - Future getCommentsPublicWithHttpInfo(String tenantId, String urlId, { int? page, SortDirections? direction, String? sso, int? skip, int? skipChildren, int? limit, int? limitChildren, bool? countChildren, String? fetchPageForCommentId, bool? includeConfig, bool? countAll, bool? includei10n, String? locale, String? modules, bool? isCrawler, bool? includeNotificationCount, bool? asTree, int? maxTreeDepth, bool? useFullTranslationIds, String? parentId, String? searchText, List? hashTags, String? userId, String? customConfigStr, String? afterCommentId, String? beforeCommentId, }) async { + Future getCommentsPublicWithHttpInfo(String tenantId, String urlId, [ GetCommentsPublicOptions? options ]) async { + final page = options?.page; + final direction = options?.direction; + final sso = options?.sso; + final skip = options?.skip; + final skipChildren = options?.skipChildren; + final limit = options?.limit; + final limitChildren = options?.limitChildren; + final countChildren = options?.countChildren; + final fetchPageForCommentId = options?.fetchPageForCommentId; + final includeConfig = options?.includeConfig; + final countAll = options?.countAll; + final includei10n = options?.includei10n; + final locale = options?.locale; + final modules = options?.modules; + final isCrawler = options?.isCrawler; + final includeNotificationCount = options?.includeNotificationCount; + final asTree = options?.asTree; + final maxTreeDepth = options?.maxTreeDepth; + final useFullTranslationIds = options?.useFullTranslationIds; + final parentId = options?.parentId; + final searchText = options?.searchText; + final hashTags = options?.hashTags; + final userId = options?.userId; + final customConfigStr = options?.customConfigStr; + final afterCommentId = options?.afterCommentId; + final beforeCommentId = options?.beforeCommentId; // ignore: prefer_const_declarations final path = r'/comments/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -1271,8 +1316,8 @@ class PublicApi { /// * [String] afterCommentId: /// /// * [String] beforeCommentId: - Future getCommentsPublic(String tenantId, String urlId, { int? page, SortDirections? direction, String? sso, int? skip, int? skipChildren, int? limit, int? limitChildren, bool? countChildren, String? fetchPageForCommentId, bool? includeConfig, bool? countAll, bool? includei10n, String? locale, String? modules, bool? isCrawler, bool? includeNotificationCount, bool? asTree, int? maxTreeDepth, bool? useFullTranslationIds, String? parentId, String? searchText, List? hashTags, String? userId, String? customConfigStr, String? afterCommentId, String? beforeCommentId, }) async { - final response = await getCommentsPublicWithHttpInfo(tenantId, 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, ); + Future getCommentsPublic(String tenantId, String urlId, [ GetCommentsPublicOptions? options ]) async { + final response = await getCommentsPublicWithHttpInfo(tenantId, urlId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1301,7 +1346,7 @@ class PublicApi { /// * [int] startTime (required): /// /// * [int] endTime: - Future getEventLogWithHttpInfo(String tenantId, String urlId, String userIdWS, int startTime, { int? endTime, }) async { + Future getEventLogWithHttpInfo(String tenantId, String urlId, String userIdWS, int startTime, [ int? endTime ]) async { // ignore: prefer_const_declarations final path = r'/event-log/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -1347,8 +1392,8 @@ class PublicApi { /// * [int] startTime (required): /// /// * [int] endTime: - Future getEventLog(String tenantId, String urlId, String userIdWS, int startTime, { int? endTime, }) async { - final response = await getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime: endTime, ); + Future getEventLog(String tenantId, String urlId, String userIdWS, int startTime, [ int? endTime ]) async { + final response = await getEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1381,7 +1426,13 @@ class PublicApi { /// * [bool] isCrawler: /// /// * [bool] includeUserInfo: - Future getFeedPostsPublicWithHttpInfo(String tenantId, { String? afterId, int? limit, List? tags, String? sso, bool? isCrawler, bool? includeUserInfo, }) async { + Future getFeedPostsPublicWithHttpInfo(String tenantId, [ GetFeedPostsPublicOptions? options ]) async { + final afterId = options?.afterId; + final limit = options?.limit; + final tags = options?.tags; + final sso = options?.sso; + final isCrawler = options?.isCrawler; + final includeUserInfo = options?.includeUserInfo; // ignore: prefer_const_declarations final path = r'/feed-posts/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -1443,8 +1494,8 @@ class PublicApi { /// * [bool] isCrawler: /// /// * [bool] includeUserInfo: - Future getFeedPostsPublic(String tenantId, { String? afterId, int? limit, List? tags, String? sso, bool? isCrawler, bool? includeUserInfo, }) async { - final response = await getFeedPostsPublicWithHttpInfo(tenantId, afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo, ); + Future getFeedPostsPublic(String tenantId, [ GetFeedPostsPublicOptions? options ]) async { + final response = await getFeedPostsPublicWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1466,7 +1517,7 @@ class PublicApi { /// * [List] postIds (required): /// /// * [String] sso: - Future getFeedPostsStatsWithHttpInfo(String tenantId, List postIds, { String? sso, }) async { + Future getFeedPostsStatsWithHttpInfo(String tenantId, List postIds, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/feed-posts/{tenantId}/stats' .replaceAll('{tenantId}', tenantId); @@ -1504,8 +1555,8 @@ class PublicApi { /// * [List] postIds (required): /// /// * [String] sso: - Future getFeedPostsStats(String tenantId, List postIds, { String? sso, }) async { - final response = await getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso: sso, ); + Future getFeedPostsStats(String tenantId, List postIds, [ String? sso ]) async { + final response = await getFeedPostsStatsWithHttpInfo(tenantId, postIds, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1525,7 +1576,7 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] largeInternalURLSanitized (required): - Future getGifLargeWithHttpInfo(String tenantId, String largeInternalURLSanitized,) async { + Future getGifLargeWithHttpInfo(String tenantId, String largeInternalURLSanitized) async { // ignore: prefer_const_declarations final path = r'/gifs/get-large/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -1558,8 +1609,8 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] largeInternalURLSanitized (required): - Future getGifLarge(String tenantId, String largeInternalURLSanitized,) async { - final response = await getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized,); + Future getGifLarge(String tenantId, String largeInternalURLSanitized) async { + final response = await getGifLargeWithHttpInfo(tenantId, largeInternalURLSanitized); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1585,7 +1636,10 @@ class PublicApi { /// * [String] rating: /// /// * [double] page: - Future getGifsSearchWithHttpInfo(String tenantId, String search, { String? locale, String? rating, double? page, }) async { + Future getGifsSearchWithHttpInfo(String tenantId, String search, [ GetGifsSearchOptions? options ]) async { + final locale = options?.locale; + final rating = options?.rating; + final page = options?.page; // ignore: prefer_const_declarations final path = r'/gifs/search/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -1633,8 +1687,8 @@ class PublicApi { /// * [String] rating: /// /// * [double] page: - Future getGifsSearch(String tenantId, String search, { String? locale, String? rating, double? page, }) async { - final response = await getGifsSearchWithHttpInfo(tenantId, search, locale: locale, rating: rating, page: page, ); + Future getGifsSearch(String tenantId, String search, [ GetGifsSearchOptions? options ]) async { + final response = await getGifsSearchWithHttpInfo(tenantId, search, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1658,7 +1712,10 @@ class PublicApi { /// * [String] rating: /// /// * [double] page: - Future getGifsTrendingWithHttpInfo(String tenantId, { String? locale, String? rating, double? page, }) async { + Future getGifsTrendingWithHttpInfo(String tenantId, [ GetGifsTrendingOptions? options ]) async { + final locale = options?.locale; + final rating = options?.rating; + final page = options?.page; // ignore: prefer_const_declarations final path = r'/gifs/trending/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -1703,8 +1760,8 @@ class PublicApi { /// * [String] rating: /// /// * [double] page: - Future getGifsTrending(String tenantId, { String? locale, String? rating, double? page, }) async { - final response = await getGifsTrendingWithHttpInfo(tenantId, locale: locale, rating: rating, page: page, ); + Future getGifsTrending(String tenantId, [ GetGifsTrendingOptions? options ]) async { + final response = await getGifsTrendingWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1733,7 +1790,7 @@ class PublicApi { /// * [int] startTime (required): /// /// * [int] endTime: - Future getGlobalEventLogWithHttpInfo(String tenantId, String urlId, String userIdWS, int startTime, { int? endTime, }) async { + Future getGlobalEventLogWithHttpInfo(String tenantId, String urlId, String userIdWS, int startTime, [ int? endTime ]) async { // ignore: prefer_const_declarations final path = r'/event-log/global/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -1779,8 +1836,8 @@ class PublicApi { /// * [int] startTime (required): /// /// * [int] endTime: - Future getGlobalEventLog(String tenantId, String urlId, String userIdWS, int startTime, { int? endTime, }) async { - final response = await getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime: endTime, ); + Future getGlobalEventLog(String tenantId, String urlId, String userIdWS, int startTime, [ int? endTime ]) async { + final response = await getGlobalEventLogWithHttpInfo(tenantId, urlId, userIdWS, startTime, endTime); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1810,7 +1867,9 @@ class PublicApi { /// /// * [String] afterUserId: /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - Future getOfflineUsersWithHttpInfo(String tenantId, String urlId, { String? afterName, String? afterUserId, }) async { + Future getOfflineUsersWithHttpInfo(String tenantId, String urlId, [ GetOfflineUsersOptions? options ]) async { + final afterName = options?.afterName; + final afterUserId = options?.afterUserId; // ignore: prefer_const_declarations final path = r'/pages/{tenantId}/users/offline' .replaceAll('{tenantId}', tenantId); @@ -1858,8 +1917,8 @@ class PublicApi { /// /// * [String] afterUserId: /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - Future getOfflineUsers(String tenantId, String urlId, { String? afterName, String? afterUserId, }) async { - final response = await getOfflineUsersWithHttpInfo(tenantId, urlId, afterName: afterName, afterUserId: afterUserId, ); + Future getOfflineUsers(String tenantId, String urlId, [ GetOfflineUsersOptions? options ]) async { + final response = await getOfflineUsersWithHttpInfo(tenantId, urlId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1889,7 +1948,9 @@ class PublicApi { /// /// * [String] afterUserId: /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - Future getOnlineUsersWithHttpInfo(String tenantId, String urlId, { String? afterName, String? afterUserId, }) async { + Future getOnlineUsersWithHttpInfo(String tenantId, String urlId, [ GetOnlineUsersOptions? options ]) async { + final afterName = options?.afterName; + final afterUserId = options?.afterUserId; // ignore: prefer_const_declarations final path = r'/pages/{tenantId}/users/online' .replaceAll('{tenantId}', tenantId); @@ -1937,8 +1998,8 @@ class PublicApi { /// /// * [String] afterUserId: /// Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. - Future getOnlineUsers(String tenantId, String urlId, { String? afterName, String? afterUserId, }) async { - final response = await getOnlineUsersWithHttpInfo(tenantId, urlId, afterName: afterName, afterUserId: afterUserId, ); + Future getOnlineUsers(String tenantId, String urlId, [ GetOnlineUsersOptions? options ]) async { + final response = await getOnlineUsersWithHttpInfo(tenantId, urlId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -1974,7 +2035,12 @@ class PublicApi { /// /// * [bool] hasComments: /// If true, only return pages with at least one comment. - Future getPagesPublicWithHttpInfo(String tenantId, { String? cursor, int? limit, String? q, PagesSortBy? sortBy, bool? hasComments, }) async { + Future getPagesPublicWithHttpInfo(String tenantId, [ GetPagesPublicOptions? options ]) async { + final cursor = options?.cursor; + final limit = options?.limit; + final q = options?.q; + final sortBy = options?.sortBy; + final hasComments = options?.hasComments; // ignore: prefer_const_declarations final path = r'/pages/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -2036,8 +2102,8 @@ class PublicApi { /// /// * [bool] hasComments: /// If true, only return pages with at least one comment. - Future getPagesPublic(String tenantId, { String? cursor, int? limit, String? q, PagesSortBy? sortBy, bool? hasComments, }) async { - final response = await getPagesPublicWithHttpInfo(tenantId, cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments, ); + Future getPagesPublic(String tenantId, [ GetPagesPublicOptions? options ]) async { + final response = await getPagesPublicWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2061,7 +2127,9 @@ class PublicApi { /// * [String] locale: /// /// * [bool] useFullTranslationIds: - Future getTranslationsWithHttpInfo(String namespace, String component, { String? locale, bool? useFullTranslationIds, }) async { + Future getTranslationsWithHttpInfo(String namespace, String component, [ GetTranslationsOptions? options ]) async { + final locale = options?.locale; + final useFullTranslationIds = options?.useFullTranslationIds; // ignore: prefer_const_declarations final path = r'/translations/{namespace}/{component}' .replaceAll('{namespace}', namespace) @@ -2104,8 +2172,8 @@ class PublicApi { /// * [String] locale: /// /// * [bool] useFullTranslationIds: - Future getTranslations(String namespace, String component, { String? locale, bool? useFullTranslationIds, }) async { - final response = await getTranslationsWithHttpInfo(namespace, component, locale: locale, useFullTranslationIds: useFullTranslationIds, ); + Future getTranslations(String namespace, String component, [ GetTranslationsOptions? options ]) async { + final response = await getTranslationsWithHttpInfo(namespace, component, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2125,7 +2193,7 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] sso: - Future getUserNotificationCountWithHttpInfo(String tenantId, { String? sso, }) async { + Future getUserNotificationCountWithHttpInfo(String tenantId, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/user-notifications/get-count'; @@ -2160,8 +2228,8 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] sso: - Future getUserNotificationCount(String tenantId, { String? sso, }) async { - final response = await getUserNotificationCountWithHttpInfo(tenantId, sso: sso, ); + Future getUserNotificationCount(String tenantId, [ String? sso ]) async { + final response = await getUserNotificationCountWithHttpInfo(tenantId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2202,7 +2270,18 @@ class PublicApi { /// * [bool] includeTenantNotifications: /// /// * [String] sso: - Future getUserNotificationsWithHttpInfo(String tenantId, { String? urlId, int? pageSize, String? afterId, bool? includeContext, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, bool? includeTranslations, bool? includeTenantNotifications, String? sso, }) async { + Future getUserNotificationsWithHttpInfo(String tenantId, [ GetUserNotificationsOptions? options ]) async { + final urlId = options?.urlId; + final pageSize = options?.pageSize; + final afterId = options?.afterId; + final includeContext = options?.includeContext; + final afterCreatedAt = options?.afterCreatedAt; + final unreadOnly = options?.unreadOnly; + final dmOnly = options?.dmOnly; + final noDm = options?.noDm; + final includeTranslations = options?.includeTranslations; + final includeTenantNotifications = options?.includeTenantNotifications; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/user-notifications'; @@ -2288,8 +2367,8 @@ class PublicApi { /// * [bool] includeTenantNotifications: /// /// * [String] sso: - Future getUserNotifications(String tenantId, { String? urlId, int? pageSize, String? afterId, bool? includeContext, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, bool? includeTranslations, bool? includeTenantNotifications, String? sso, }) async { - final response = await getUserNotificationsWithHttpInfo(tenantId, urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso, ); + Future getUserNotifications(String tenantId, [ GetUserNotificationsOptions? options ]) async { + final response = await getUserNotificationsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2311,7 +2390,7 @@ class PublicApi { /// * [String] urlIdWS (required): /// /// * [String] userIds (required): - Future getUserPresenceStatusesWithHttpInfo(String tenantId, String urlIdWS, String userIds,) async { + Future getUserPresenceStatusesWithHttpInfo(String tenantId, String urlIdWS, String userIds) async { // ignore: prefer_const_declarations final path = r'/user-presence-status'; @@ -2347,8 +2426,8 @@ class PublicApi { /// * [String] urlIdWS (required): /// /// * [String] userIds (required): - Future getUserPresenceStatuses(String tenantId, String urlIdWS, String userIds,) async { - final response = await getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds,); + Future getUserPresenceStatuses(String tenantId, String urlIdWS, String userIds) async { + final response = await getUserPresenceStatusesWithHttpInfo(tenantId, urlIdWS, userIds); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2370,7 +2449,9 @@ class PublicApi { /// * [List] postIds: /// /// * [String] sso: - Future getUserReactsPublicWithHttpInfo(String tenantId, { List? postIds, String? sso, }) async { + Future getUserReactsPublicWithHttpInfo(String tenantId, [ GetUserReactsPublicOptions? options ]) async { + final postIds = options?.postIds; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/feed-posts/{tenantId}/user-reacts' .replaceAll('{tenantId}', tenantId); @@ -2410,8 +2491,8 @@ class PublicApi { /// * [List] postIds: /// /// * [String] sso: - Future getUserReactsPublic(String tenantId, { List? postIds, String? sso, }) async { - final response = await getUserReactsPublicWithHttpInfo(tenantId, postIds: postIds, sso: sso, ); + Future getUserReactsPublic(String tenantId, [ GetUserReactsPublicOptions? options ]) async { + final response = await getUserReactsPublicWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2435,7 +2516,7 @@ class PublicApi { /// /// * [String] ids (required): /// Comma-delimited userIds. - Future getUsersInfoWithHttpInfo(String tenantId, String ids,) async { + Future getUsersInfoWithHttpInfo(String tenantId, String ids) async { // ignore: prefer_const_declarations final path = r'/pages/{tenantId}/users/info' .replaceAll('{tenantId}', tenantId); @@ -2471,8 +2552,8 @@ class PublicApi { /// /// * [String] ids (required): /// Comma-delimited userIds. - Future getUsersInfo(String tenantId, String ids,) async { - final response = await getUsersInfoWithHttpInfo(tenantId, ids,); + Future getUsersInfo(String tenantId, String ids) async { + final response = await getUsersInfoWithHttpInfo(tenantId, ids); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2492,7 +2573,7 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getV1PageLikesWithHttpInfo(String tenantId, String urlId,) async { + Future getV1PageLikesWithHttpInfo(String tenantId, String urlId) async { // ignore: prefer_const_declarations final path = r'/page-reacts/v1/likes/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -2525,8 +2606,8 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getV1PageLikes(String tenantId, String urlId,) async { - final response = await getV1PageLikesWithHttpInfo(tenantId, urlId,); + Future getV1PageLikes(String tenantId, String urlId) async { + final response = await getV1PageLikesWithHttpInfo(tenantId, urlId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2548,7 +2629,7 @@ class PublicApi { /// * [String] urlId (required): /// /// * [String] id (required): - Future getV2PageReactUsersWithHttpInfo(String tenantId, String urlId, String id,) async { + Future getV2PageReactUsersWithHttpInfo(String tenantId, String urlId, String id) async { // ignore: prefer_const_declarations final path = r'/page-reacts/v2/{tenantId}/list' .replaceAll('{tenantId}', tenantId); @@ -2584,8 +2665,8 @@ class PublicApi { /// * [String] urlId (required): /// /// * [String] id (required): - Future getV2PageReactUsers(String tenantId, String urlId, String id,) async { - final response = await getV2PageReactUsersWithHttpInfo(tenantId, urlId, id,); + Future getV2PageReactUsers(String tenantId, String urlId, String id) async { + final response = await getV2PageReactUsersWithHttpInfo(tenantId, urlId, id); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2605,7 +2686,7 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getV2PageReactsWithHttpInfo(String tenantId, String urlId,) async { + Future getV2PageReactsWithHttpInfo(String tenantId, String urlId) async { // ignore: prefer_const_declarations final path = r'/page-reacts/v2/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -2638,8 +2719,8 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] urlId (required): - Future getV2PageReacts(String tenantId, String urlId,) async { - final response = await getV2PageReactsWithHttpInfo(tenantId, urlId,); + Future getV2PageReacts(String tenantId, String urlId) async { + final response = await getV2PageReactsWithHttpInfo(tenantId, urlId); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2663,7 +2744,7 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future lockCommentWithHttpInfo(String tenantId, String commentId, String broadcastId, { String? sso, }) async { + Future lockCommentWithHttpInfo(String tenantId, String commentId, String broadcastId, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/lock' .replaceAll('{tenantId}', tenantId) @@ -2704,8 +2785,8 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future lockComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { - final response = await lockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso: sso, ); + Future lockComment(String tenantId, String commentId, String broadcastId, [ String? sso ]) async { + final response = await lockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2770,7 +2851,7 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future pinCommentWithHttpInfo(String tenantId, String commentId, String broadcastId, { String? sso, }) async { + Future pinCommentWithHttpInfo(String tenantId, String commentId, String broadcastId, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/pin' .replaceAll('{tenantId}', tenantId) @@ -2811,8 +2892,8 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future pinComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { - final response = await pinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso: sso, ); + Future pinComment(String tenantId, String commentId, String broadcastId, [ String? sso ]) async { + final response = await pinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2840,7 +2921,10 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future reactFeedPostPublicWithHttpInfo(String tenantId, String postId, ReactBodyParams reactBodyParams, { bool? isUndo, String? broadcastId, String? sso, }) async { + Future reactFeedPostPublicWithHttpInfo(String tenantId, String postId, ReactBodyParams reactBodyParams, [ ReactFeedPostPublicOptions? options ]) async { + final isUndo = options?.isUndo; + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/feed-posts/{tenantId}/react/{postId}' .replaceAll('{tenantId}', tenantId) @@ -2890,8 +2974,8 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future reactFeedPostPublic(String tenantId, String postId, ReactBodyParams reactBodyParams, { bool? isUndo, String? broadcastId, String? sso, }) async { - final response = await reactFeedPostPublicWithHttpInfo(tenantId, postId, reactBodyParams, isUndo: isUndo, broadcastId: broadcastId, sso: sso, ); + Future reactFeedPostPublic(String tenantId, String postId, ReactBodyParams reactBodyParams, [ ReactFeedPostPublicOptions? options ]) async { + final response = await reactFeedPostPublicWithHttpInfo(tenantId, postId, reactBodyParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2911,7 +2995,7 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] sso: - Future resetUserNotificationCountWithHttpInfo(String tenantId, { String? sso, }) async { + Future resetUserNotificationCountWithHttpInfo(String tenantId, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/user-notifications/reset-count'; @@ -2946,8 +3030,8 @@ class PublicApi { /// * [String] tenantId (required): /// /// * [String] sso: - Future resetUserNotificationCount(String tenantId, { String? sso, }) async { - final response = await resetUserNotificationCountWithHttpInfo(tenantId, sso: sso, ); + Future resetUserNotificationCount(String tenantId, [ String? sso ]) async { + final response = await resetUserNotificationCountWithHttpInfo(tenantId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -2977,7 +3061,13 @@ class PublicApi { /// * [bool] noDm: /// /// * [String] sso: - Future resetUserNotificationsWithHttpInfo(String tenantId, { String? afterId, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, String? sso, }) async { + Future resetUserNotificationsWithHttpInfo(String tenantId, [ ResetUserNotificationsOptions? options ]) async { + final afterId = options?.afterId; + final afterCreatedAt = options?.afterCreatedAt; + final unreadOnly = options?.unreadOnly; + final dmOnly = options?.dmOnly; + final noDm = options?.noDm; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/user-notifications/reset'; @@ -3037,8 +3127,8 @@ class PublicApi { /// * [bool] noDm: /// /// * [String] sso: - Future resetUserNotifications(String tenantId, { String? afterId, int? afterCreatedAt, bool? unreadOnly, bool? dmOnly, bool? noDm, String? sso, }) async { - final response = await resetUserNotificationsWithHttpInfo(tenantId, afterId: afterId, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, sso: sso, ); + Future resetUserNotifications(String tenantId, [ ResetUserNotificationsOptions? options ]) async { + final response = await resetUserNotificationsWithHttpInfo(tenantId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3066,7 +3156,11 @@ class PublicApi { /// * [String] sso: /// /// * [String] searchSection: - Future searchUsersWithHttpInfo(String tenantId, String urlId, { String? usernameStartsWith, List? mentionGroupIds, String? sso, String? searchSection, }) async { + Future searchUsersWithHttpInfo(String tenantId, String urlId, [ SearchUsersOptions? options ]) async { + final usernameStartsWith = options?.usernameStartsWith; + final mentionGroupIds = options?.mentionGroupIds; + final sso = options?.sso; + final searchSection = options?.searchSection; // ignore: prefer_const_declarations final path = r'/user-search/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -3119,8 +3213,8 @@ class PublicApi { /// * [String] sso: /// /// * [String] searchSection: - Future searchUsers(String tenantId, String urlId, { String? usernameStartsWith, List? mentionGroupIds, String? sso, String? searchSection, }) async { - final response = await searchUsersWithHttpInfo(tenantId, urlId, usernameStartsWith: usernameStartsWith, mentionGroupIds: mentionGroupIds, sso: sso, searchSection: searchSection, ); + Future searchUsers(String tenantId, String urlId, [ SearchUsersOptions? options ]) async { + final response = await searchUsersWithHttpInfo(tenantId, urlId, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3148,7 +3242,9 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future setCommentTextWithHttpInfo(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, { String? editKey, String? sso, }) async { + Future setCommentTextWithHttpInfo(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, [ SetCommentTextOptions? options ]) async { + final editKey = options?.editKey; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/update-text' .replaceAll('{tenantId}', tenantId) @@ -3196,8 +3292,8 @@ class PublicApi { /// * [String] editKey: /// /// * [String] sso: - Future setCommentText(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, { String? editKey, String? sso, }) async { - final response = await setCommentTextWithHttpInfo(tenantId, commentId, broadcastId, commentTextUpdateRequest, editKey: editKey, sso: sso, ); + Future setCommentText(String tenantId, String commentId, String broadcastId, CommentTextUpdateRequest commentTextUpdateRequest, [ SetCommentTextOptions? options ]) async { + final response = await setCommentTextWithHttpInfo(tenantId, commentId, broadcastId, commentTextUpdateRequest, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3221,7 +3317,7 @@ class PublicApi { /// * [PublicBlockFromCommentParams] publicBlockFromCommentParams (required): /// /// * [String] sso: - Future unBlockCommentPublicWithHttpInfo(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String? sso, }) async { + Future unBlockCommentPublicWithHttpInfo(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/block-from-comment/{commentId}' .replaceAll('{commentId}', commentId); @@ -3261,8 +3357,8 @@ class PublicApi { /// * [PublicBlockFromCommentParams] publicBlockFromCommentParams (required): /// /// * [String] sso: - Future unBlockCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, { String? sso, }) async { - final response = await unBlockCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso: sso, ); + Future unBlockCommentPublic(String tenantId, String commentId, PublicBlockFromCommentParams publicBlockFromCommentParams, [ String? sso ]) async { + final response = await unBlockCommentPublicWithHttpInfo(tenantId, commentId, publicBlockFromCommentParams, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3286,7 +3382,7 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future unLockCommentWithHttpInfo(String tenantId, String commentId, String broadcastId, { String? sso, }) async { + Future unLockCommentWithHttpInfo(String tenantId, String commentId, String broadcastId, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/unlock' .replaceAll('{tenantId}', tenantId) @@ -3327,8 +3423,8 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future unLockComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { - final response = await unLockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso: sso, ); + Future unLockComment(String tenantId, String commentId, String broadcastId, [ String? sso ]) async { + final response = await unLockCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3352,7 +3448,7 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future unPinCommentWithHttpInfo(String tenantId, String commentId, String broadcastId, { String? sso, }) async { + Future unPinCommentWithHttpInfo(String tenantId, String commentId, String broadcastId, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/unpin' .replaceAll('{tenantId}', tenantId) @@ -3393,8 +3489,8 @@ class PublicApi { /// * [String] broadcastId (required): /// /// * [String] sso: - Future unPinComment(String tenantId, String commentId, String broadcastId, { String? sso, }) async { - final response = await unPinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso: sso, ); + Future unPinComment(String tenantId, String commentId, String broadcastId, [ String? sso ]) async { + final response = await unPinCommentWithHttpInfo(tenantId, commentId, broadcastId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3420,7 +3516,9 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future updateFeedPostPublicWithHttpInfo(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, { String? broadcastId, String? sso, }) async { + Future updateFeedPostPublicWithHttpInfo(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, [ UpdateFeedPostPublicOptions? options ]) async { + final broadcastId = options?.broadcastId; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/feed-posts/{tenantId}/{postId}' .replaceAll('{tenantId}', tenantId) @@ -3465,8 +3563,8 @@ class PublicApi { /// * [String] broadcastId: /// /// * [String] sso: - Future updateFeedPostPublic(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, { String? broadcastId, String? sso, }) async { - final response = await updateFeedPostPublicWithHttpInfo(tenantId, postId, updateFeedPostParams, broadcastId: broadcastId, sso: sso, ); + Future updateFeedPostPublic(String tenantId, String postId, UpdateFeedPostParams updateFeedPostParams, [ UpdateFeedPostPublicOptions? options ]) async { + final response = await updateFeedPostPublicWithHttpInfo(tenantId, postId, updateFeedPostParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3495,7 +3593,7 @@ class PublicApi { /// * [String] commentId (required): /// /// * [String] sso: - Future updateUserNotificationCommentSubscriptionStatusWithHttpInfo(String tenantId, String notificationId, String optedInOrOut, String commentId, { String? sso, }) async { + Future updateUserNotificationCommentSubscriptionStatusWithHttpInfo(String tenantId, String notificationId, String optedInOrOut, String commentId, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/user-notifications/{notificationId}/mark-opted/{optedInOrOut}' .replaceAll('{notificationId}', notificationId) @@ -3541,8 +3639,8 @@ class PublicApi { /// * [String] commentId (required): /// /// * [String] sso: - Future updateUserNotificationCommentSubscriptionStatus(String tenantId, String notificationId, String optedInOrOut, String commentId, { String? sso, }) async { - final response = await updateUserNotificationCommentSubscriptionStatusWithHttpInfo(tenantId, notificationId, optedInOrOut, commentId, sso: sso, ); + Future updateUserNotificationCommentSubscriptionStatus(String tenantId, String notificationId, String optedInOrOut, String commentId, [ String? sso ]) async { + final response = await updateUserNotificationCommentSubscriptionStatusWithHttpInfo(tenantId, notificationId, optedInOrOut, commentId, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3573,7 +3671,7 @@ class PublicApi { /// * [String] subscribedOrUnsubscribed (required): /// /// * [String] sso: - Future updateUserNotificationPageSubscriptionStatusWithHttpInfo(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, { String? sso, }) async { + Future updateUserNotificationPageSubscriptionStatusWithHttpInfo(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/user-notifications/set-subscription-state/{subscribedOrUnsubscribed}' .replaceAll('{subscribedOrUnsubscribed}', subscribedOrUnsubscribed); @@ -3622,8 +3720,8 @@ class PublicApi { /// * [String] subscribedOrUnsubscribed (required): /// /// * [String] sso: - Future updateUserNotificationPageSubscriptionStatus(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, { String? sso, }) async { - final response = await updateUserNotificationPageSubscriptionStatusWithHttpInfo(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso: sso, ); + Future updateUserNotificationPageSubscriptionStatus(String tenantId, String urlId, String url, String pageTitle, String subscribedOrUnsubscribed, [ String? sso ]) async { + final response = await updateUserNotificationPageSubscriptionStatusWithHttpInfo(tenantId, urlId, url, pageTitle, subscribedOrUnsubscribed, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3647,7 +3745,7 @@ class PublicApi { /// * [String] newStatus (required): /// /// * [String] sso: - Future updateUserNotificationStatusWithHttpInfo(String tenantId, String notificationId, String newStatus, { String? sso, }) async { + Future updateUserNotificationStatusWithHttpInfo(String tenantId, String notificationId, String newStatus, [ String? sso ]) async { // ignore: prefer_const_declarations final path = r'/user-notifications/{notificationId}/mark/{newStatus}' .replaceAll('{notificationId}', notificationId) @@ -3688,8 +3786,8 @@ class PublicApi { /// * [String] newStatus (required): /// /// * [String] sso: - Future updateUserNotificationStatus(String tenantId, String notificationId, String newStatus, { String? sso, }) async { - final response = await updateUserNotificationStatusWithHttpInfo(tenantId, notificationId, newStatus, sso: sso, ); + Future updateUserNotificationStatus(String tenantId, String notificationId, String newStatus, [ String? sso ]) async { + final response = await updateUserNotificationStatusWithHttpInfo(tenantId, notificationId, newStatus, sso); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3718,7 +3816,9 @@ class PublicApi { /// /// * [String] urlId: /// Page id that upload is happening from, to configure - Future uploadImageWithHttpInfo(String tenantId, MultipartFile file, { SizePreset? sizePreset, String? urlId, }) async { + Future uploadImageWithHttpInfo(String tenantId, MultipartFile file, [ UploadImageOptions? options ]) async { + final sizePreset = options?.sizePreset; + final urlId = options?.urlId; // ignore: prefer_const_declarations final path = r'/upload-image/{tenantId}' .replaceAll('{tenantId}', tenantId); @@ -3774,8 +3874,8 @@ class PublicApi { /// /// * [String] urlId: /// Page id that upload is happening from, to configure - Future uploadImage(String tenantId, MultipartFile file, { SizePreset? sizePreset, String? urlId, }) async { - final response = await uploadImageWithHttpInfo(tenantId, file, sizePreset: sizePreset, urlId: urlId, ); + Future uploadImage(String tenantId, MultipartFile file, [ UploadImageOptions? options ]) async { + final response = await uploadImageWithHttpInfo(tenantId, file, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3805,7 +3905,9 @@ class PublicApi { /// * [String] sessionId: /// /// * [String] sso: - Future voteCommentWithHttpInfo(String tenantId, String commentId, String urlId, String broadcastId, VoteBodyParams voteBodyParams, { String? sessionId, String? sso, }) async { + Future voteCommentWithHttpInfo(String tenantId, String commentId, String urlId, String broadcastId, VoteBodyParams voteBodyParams, [ VoteCommentOptions? options ]) async { + final sessionId = options?.sessionId; + final sso = options?.sso; // ignore: prefer_const_declarations final path = r'/comments/{tenantId}/{commentId}/vote' .replaceAll('{tenantId}', tenantId) @@ -3856,8 +3958,8 @@ class PublicApi { /// * [String] sessionId: /// /// * [String] sso: - Future voteComment(String tenantId, String commentId, String urlId, String broadcastId, VoteBodyParams voteBodyParams, { String? sessionId, String? sso, }) async { - final response = await voteCommentWithHttpInfo(tenantId, commentId, urlId, broadcastId, voteBodyParams, sessionId: sessionId, sso: sso, ); + Future voteComment(String tenantId, String commentId, String urlId, String broadcastId, VoteBodyParams voteBodyParams, [ VoteCommentOptions? options ]) async { + final response = await voteCommentWithHttpInfo(tenantId, commentId, urlId, broadcastId, voteBodyParams, options); if (response.statusCode >= HttpStatus.badRequest) { throw ApiException(response.statusCode, await _decodeBodyBytes(response)); } @@ -3871,3 +3973,351 @@ class PublicApi { return null; } } + +/// Optional parameters for [PublicApi.createCommentPublic]. +class CreateCommentPublicOptions { + const CreateCommentPublicOptions({ + this.sessionId, + this.sso, + }); + final String? sessionId; + final String? sso; +} + +/// Optional parameters for [PublicApi.createFeedPostPublic]. +class CreateFeedPostPublicOptions { + const CreateFeedPostPublicOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [PublicApi.deleteCommentPublic]. +class DeleteCommentPublicOptions { + const DeleteCommentPublicOptions({ + this.editKey, + this.sso, + }); + final String? editKey; + final String? sso; +} + +/// Optional parameters for [PublicApi.deleteCommentVote]. +class DeleteCommentVoteOptions { + const DeleteCommentVoteOptions({ + this.editKey, + this.sso, + }); + final String? editKey; + final String? sso; +} + +/// Optional parameters for [PublicApi.deleteFeedPostPublic]. +class DeleteFeedPostPublicOptions { + const DeleteFeedPostPublicOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [PublicApi.getCommentText]. +class GetCommentTextOptions { + const GetCommentTextOptions({ + this.editKey, + this.sso, + }); + final String? editKey; + final String? sso; +} + +/// Optional parameters for [PublicApi.getCommentsForUser]. +class GetCommentsForUserOptions { + const GetCommentsForUserOptions({ + this.userId, + this.direction, + this.repliesToUserId, + this.page, + this.includei10n, + this.locale, + this.isCrawler, + }); + final String? userId; + final SortDirections? direction; + final String? repliesToUserId; + final double? page; + final bool? includei10n; + final String? locale; + final bool? isCrawler; +} + +/// Optional parameters for [PublicApi.getCommentsPublic]. +class GetCommentsPublicOptions { + const GetCommentsPublicOptions({ + this.page, + this.direction, + this.sso, + this.skip, + this.skipChildren, + this.limit, + this.limitChildren, + this.countChildren, + this.fetchPageForCommentId, + this.includeConfig, + this.countAll, + this.includei10n, + this.locale, + this.modules, + this.isCrawler, + this.includeNotificationCount, + this.asTree, + this.maxTreeDepth, + this.useFullTranslationIds, + this.parentId, + this.searchText, + this.hashTags, + this.userId, + this.customConfigStr, + this.afterCommentId, + this.beforeCommentId, + }); + final int? page; + final SortDirections? direction; + final String? sso; + final int? skip; + final int? skipChildren; + final int? limit; + final int? limitChildren; + final bool? countChildren; + final String? fetchPageForCommentId; + final bool? includeConfig; + final bool? countAll; + final bool? includei10n; + final String? locale; + final String? modules; + final bool? isCrawler; + final bool? includeNotificationCount; + final bool? asTree; + final int? maxTreeDepth; + final bool? useFullTranslationIds; + final String? parentId; + final String? searchText; + final List? hashTags; + final String? userId; + final String? customConfigStr; + final String? afterCommentId; + final String? beforeCommentId; +} + +/// Optional parameters for [PublicApi.getFeedPostsPublic]. +class GetFeedPostsPublicOptions { + const GetFeedPostsPublicOptions({ + this.afterId, + this.limit, + this.tags, + this.sso, + this.isCrawler, + this.includeUserInfo, + }); + final String? afterId; + final int? limit; + final List? tags; + final String? sso; + final bool? isCrawler; + final bool? includeUserInfo; +} + +/// Optional parameters for [PublicApi.getGifsSearch]. +class GetGifsSearchOptions { + const GetGifsSearchOptions({ + this.locale, + this.rating, + this.page, + }); + final String? locale; + final String? rating; + final double? page; +} + +/// Optional parameters for [PublicApi.getGifsTrending]. +class GetGifsTrendingOptions { + const GetGifsTrendingOptions({ + this.locale, + this.rating, + this.page, + }); + final String? locale; + final String? rating; + final double? page; +} + +/// Optional parameters for [PublicApi.getOfflineUsers]. +class GetOfflineUsersOptions { + const GetOfflineUsersOptions({ + this.afterName, + this.afterUserId, + }); + final String? afterName; + final String? afterUserId; +} + +/// Optional parameters for [PublicApi.getOnlineUsers]. +class GetOnlineUsersOptions { + const GetOnlineUsersOptions({ + this.afterName, + this.afterUserId, + }); + final String? afterName; + final String? afterUserId; +} + +/// Optional parameters for [PublicApi.getPagesPublic]. +class GetPagesPublicOptions { + const GetPagesPublicOptions({ + this.cursor, + this.limit, + this.q, + this.sortBy, + this.hasComments, + }); + final String? cursor; + final int? limit; + final String? q; + final PagesSortBy? sortBy; + final bool? hasComments; +} + +/// Optional parameters for [PublicApi.getTranslations]. +class GetTranslationsOptions { + const GetTranslationsOptions({ + this.locale, + this.useFullTranslationIds, + }); + final String? locale; + final bool? useFullTranslationIds; +} + +/// Optional parameters for [PublicApi.getUserNotifications]. +class GetUserNotificationsOptions { + const GetUserNotificationsOptions({ + this.urlId, + this.pageSize, + this.afterId, + this.includeContext, + this.afterCreatedAt, + this.unreadOnly, + this.dmOnly, + this.noDm, + this.includeTranslations, + this.includeTenantNotifications, + this.sso, + }); + final String? urlId; + final int? pageSize; + final String? afterId; + final bool? includeContext; + final int? afterCreatedAt; + final bool? unreadOnly; + final bool? dmOnly; + final bool? noDm; + final bool? includeTranslations; + final bool? includeTenantNotifications; + final String? sso; +} + +/// Optional parameters for [PublicApi.getUserReactsPublic]. +class GetUserReactsPublicOptions { + const GetUserReactsPublicOptions({ + this.postIds, + this.sso, + }); + final List? postIds; + final String? sso; +} + +/// Optional parameters for [PublicApi.reactFeedPostPublic]. +class ReactFeedPostPublicOptions { + const ReactFeedPostPublicOptions({ + this.isUndo, + this.broadcastId, + this.sso, + }); + final bool? isUndo; + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [PublicApi.resetUserNotifications]. +class ResetUserNotificationsOptions { + const ResetUserNotificationsOptions({ + this.afterId, + this.afterCreatedAt, + this.unreadOnly, + this.dmOnly, + this.noDm, + this.sso, + }); + final String? afterId; + final int? afterCreatedAt; + final bool? unreadOnly; + final bool? dmOnly; + final bool? noDm; + final String? sso; +} + +/// Optional parameters for [PublicApi.searchUsers]. +class SearchUsersOptions { + const SearchUsersOptions({ + this.usernameStartsWith, + this.mentionGroupIds, + this.sso, + this.searchSection, + }); + final String? usernameStartsWith; + final List? mentionGroupIds; + final String? sso; + final String? searchSection; +} + +/// Optional parameters for [PublicApi.setCommentText]. +class SetCommentTextOptions { + const SetCommentTextOptions({ + this.editKey, + this.sso, + }); + final String? editKey; + final String? sso; +} + +/// Optional parameters for [PublicApi.updateFeedPostPublic]. +class UpdateFeedPostPublicOptions { + const UpdateFeedPostPublicOptions({ + this.broadcastId, + this.sso, + }); + final String? broadcastId; + final String? sso; +} + +/// Optional parameters for [PublicApi.uploadImage]. +class UploadImageOptions { + const UploadImageOptions({ + this.sizePreset, + this.urlId, + }); + final SizePreset? sizePreset; + final String? urlId; +} + +/// Optional parameters for [PublicApi.voteComment]. +class VoteCommentOptions { + const VoteCommentOptions({ + this.sessionId, + this.sso, + }); + final String? sessionId; + final String? sso; +} diff --git a/client/lib/api_client.dart b/client/lib/api_client.dart index 5cfb051..029b79e 100644 --- a/client/lib/api_client.dart +++ b/client/lib/api_client.dart @@ -700,8 +700,8 @@ class ApiClient { return PatchSSOUserAPIResponse.fromJson(value); case 'PendingCommentToSyncOutbound': return PendingCommentToSyncOutbound.fromJson(value); - case 'PostRemoveCommentResponse': - return PostRemoveCommentResponse.fromJson(value); + case 'PostRemoveCommentApiResponse': + return PostRemoveCommentApiResponse.fromJson(value); case 'PreBanSummary': return PreBanSummary.fromJson(value); case 'PubSubComment': diff --git a/client/lib/model/post_remove_comment_response.dart b/client/lib/model/post_remove_comment_api_response.dart similarity index 62% rename from client/lib/model/post_remove_comment_response.dart rename to client/lib/model/post_remove_comment_api_response.dart index 428bc31..1bf6e87 100644 --- a/client/lib/model/post_remove_comment_response.dart +++ b/client/lib/model/post_remove_comment_api_response.dart @@ -10,9 +10,9 @@ part of openapi.api; -class PostRemoveCommentResponse { - /// Returns a new [PostRemoveCommentResponse] instance. - PostRemoveCommentResponse({ +class PostRemoveCommentApiResponse { + /// Returns a new [PostRemoveCommentApiResponse] instance. + PostRemoveCommentApiResponse({ required this.action, required this.status, }); @@ -22,7 +22,7 @@ class PostRemoveCommentResponse { String status; @override - bool operator ==(Object other) => identical(this, other) || other is PostRemoveCommentResponse && + bool operator ==(Object other) => identical(this, other) || other is PostRemoveCommentApiResponse && other.action == action && other.status == status; @@ -35,7 +35,7 @@ class PostRemoveCommentResponse { @override - String toString() => 'PostRemoveCommentResponse[action=$action, status=$status]'; + String toString() => 'PostRemoveCommentApiResponse[action=$action, status=$status]'; Map toJson() { final json = {}; @@ -44,10 +44,10 @@ class PostRemoveCommentResponse { return json; } - /// Returns a new [PostRemoveCommentResponse] instance and imports its values from + /// Returns a new [PostRemoveCommentApiResponse] instance and imports its values from /// [value] if it's a [Map], null otherwise. // ignore: prefer_constructors_over_static_methods - static PostRemoveCommentResponse? fromJson(dynamic value) { + static PostRemoveCommentApiResponse? fromJson(dynamic value) { if (value is Map) { final json = value.cast(); @@ -55,14 +55,14 @@ class PostRemoveCommentResponse { // Note 1: the values aren't checked for validity beyond being non-null. // Note 2: this code is stripped in release mode! assert(() { - assert(json.containsKey(r'action'), 'Required key "PostRemoveCommentResponse[action]" is missing from JSON.'); - assert(json[r'action'] != null, 'Required key "PostRemoveCommentResponse[action]" has a null value in JSON.'); - assert(json.containsKey(r'status'), 'Required key "PostRemoveCommentResponse[status]" is missing from JSON.'); - assert(json[r'status'] != null, 'Required key "PostRemoveCommentResponse[status]" has a null value in JSON.'); + assert(json.containsKey(r'action'), 'Required key "PostRemoveCommentApiResponse[action]" is missing from JSON.'); + assert(json[r'action'] != null, 'Required key "PostRemoveCommentApiResponse[action]" has a null value in JSON.'); + assert(json.containsKey(r'status'), 'Required key "PostRemoveCommentApiResponse[status]" is missing from JSON.'); + assert(json[r'status'] != null, 'Required key "PostRemoveCommentApiResponse[status]" has a null value in JSON.'); return true; }()); - return PostRemoveCommentResponse( + return PostRemoveCommentApiResponse( action: mapValueOfType(json, r'action')!, status: mapValueOfType(json, r'status')!, ); @@ -70,11 +70,11 @@ class PostRemoveCommentResponse { return null; } - static List listFromJson(dynamic json, {bool growable = false,}) { - final result = []; + static List listFromJson(dynamic json, {bool growable = false,}) { + final result = []; if (json is List && json.isNotEmpty) { for (final row in json) { - final value = PostRemoveCommentResponse.fromJson(row); + final value = PostRemoveCommentApiResponse.fromJson(row); if (value != null) { result.add(value); } @@ -83,12 +83,12 @@ class PostRemoveCommentResponse { return result.toList(growable: growable); } - static Map mapFromJson(dynamic json) { - final map = {}; + static Map mapFromJson(dynamic json) { + final map = {}; if (json is Map && json.isNotEmpty) { json = json.cast(); // ignore: parameter_assignments for (final entry in json.entries) { - final value = PostRemoveCommentResponse.fromJson(entry.value); + final value = PostRemoveCommentApiResponse.fromJson(entry.value); if (value != null) { map[entry.key] = value; } @@ -97,14 +97,14 @@ class PostRemoveCommentResponse { return map; } - // maps a json object with a list of PostRemoveCommentResponse-objects as value to a dart map - static Map> mapListFromJson(dynamic json, {bool growable = false,}) { - final map = >{}; + // maps a json object with a list of PostRemoveCommentApiResponse-objects as value to a dart map + static Map> mapListFromJson(dynamic json, {bool growable = false,}) { + final map = >{}; if (json is Map && json.isNotEmpty) { // ignore: parameter_assignments json = json.cast(); for (final entry in json.entries) { - map[entry.key] = PostRemoveCommentResponse.listFromJson(entry.value, growable: growable,); + map[entry.key] = PostRemoveCommentApiResponse.listFromJson(entry.value, growable: growable,); } } return map; diff --git a/client/pubspec.yaml b/client/pubspec.yaml index 05db75b..980b266 100644 --- a/client/pubspec.yaml +++ b/client/pubspec.yaml @@ -3,7 +3,7 @@ # name: 'fastcomments_dart' -version: '2.0.1' +version: '3.0.0' description: 'Official Dart client for the FastComments REST API.' homepage: 'https://fastcomments.com' repository: https://github.com/fastcomments/fastcomments-dart diff --git a/client/test/default_api_test.dart b/client/test/default_api_test.dart index 9c735cb..5ec6d8b 100644 --- a/client/test/default_api_test.dart +++ b/client/test/default_api_test.dart @@ -22,12 +22,12 @@ void main() { // TODO }); - //Future addHashTag({ String tenantId, CreateHashTagBody createHashTagBody }) async + //Future addHashTag(String tenantId, { CreateHashTagBody createHashTagBody }) async test('test addHashTag', () async { // TODO }); - //Future addHashTagsBulk({ String tenantId, BulkCreateHashTagsBody bulkCreateHashTagsBody }) async + //Future addHashTagsBulk(String tenantId, { BulkCreateHashTagsBody bulkCreateHashTagsBody }) async test('test addHashTagsBulk', () async { // TODO }); @@ -154,7 +154,7 @@ void main() { // TODO }); - //Future deleteHashTag(String tag, { String tenantId, DeleteHashTagRequestBody deleteHashTagRequestBody }) async + //Future deleteHashTag(String tenantId, String tag, { DeleteHashTagRequestBody deleteHashTagRequestBody }) async test('test deleteHashTag', () async { // TODO }); @@ -461,7 +461,7 @@ void main() { // TODO }); - //Future patchHashTag(String tag, { String tenantId, UpdateHashTagBody updateHashTagBody }) async + //Future patchHashTag(String tenantId, String tag, { UpdateHashTagBody updateHashTagBody }) async test('test patchHashTag', () async { // TODO }); diff --git a/client/test/moderation_api_test.dart b/client/test/moderation_api_test.dart index 5eb7548..34f8559 100644 --- a/client/test/moderation_api_test.dart +++ b/client/test/moderation_api_test.dart @@ -17,217 +17,217 @@ void main() { // final instance = ModerationApi(); group('tests for ModerationApi', () { - //Future deleteModerationVote(String commentId, String voteId, { String sso }) async + //Future deleteModerationVote(String tenantId, String commentId, String voteId, { String broadcastId, String sso }) async test('test deleteModerationVote', () async { // TODO }); - //Future getApiComments({ double page, double count, String textSearch, String byIPFromComment, String filters, String searchFilters, String sorts, bool demo, String sso }) async + //Future getApiComments(String tenantId, { double page, double count, String textSearch, String byIPFromComment, String filters, String searchFilters, String sorts, bool demo, String sso }) async test('test getApiComments', () async { // TODO }); - //Future getApiExportStatus({ String batchJobId, String sso }) async + //Future getApiExportStatus(String tenantId, { String batchJobId, String sso }) async test('test getApiExportStatus', () async { // TODO }); - //Future getApiIds({ String textSearch, String byIPFromComment, String filters, String searchFilters, String afterId, bool demo, String sso }) async + //Future getApiIds(String tenantId, { String textSearch, String byIPFromComment, String filters, String searchFilters, String afterId, bool demo, String sso }) async test('test getApiIds', () async { // TODO }); - //Future getBanUsersFromComment(String commentId, { String sso }) async + //Future getBanUsersFromComment(String tenantId, String commentId, { String sso }) async test('test getBanUsersFromComment', () async { // TODO }); - //Future getCommentBanStatus(String commentId, { String sso }) async + //Future getCommentBanStatus(String tenantId, String commentId, { String sso }) async test('test getCommentBanStatus', () async { // TODO }); - //Future getCommentChildren(String commentId, { String sso }) async + //Future getCommentChildren(String tenantId, String commentId, { String sso }) async test('test getCommentChildren', () async { // TODO }); - //Future getCount({ String textSearch, String byIPFromComment, String filter, String searchFilters, bool demo, String sso }) async + //Future getCount(String tenantId, { String textSearch, String byIPFromComment, String filter, String searchFilters, bool demo, String sso }) async test('test getCount', () async { // TODO }); - //Future getCounts({ String sso }) async + //Future getCounts(String tenantId, { String sso }) async test('test getCounts', () async { // TODO }); - //Future getLogs(String commentId, { String sso }) async + //Future getLogs(String tenantId, String commentId, { String sso }) async test('test getLogs', () async { // TODO }); - //Future getManualBadges({ String sso }) async + //Future getManualBadges(String tenantId, { String sso }) async test('test getManualBadges', () async { // TODO }); - //Future getManualBadgesForUser({ String badgesUserId, String commentId, String sso }) async + //Future getManualBadgesForUser(String tenantId, { String badgesUserId, String commentId, String sso }) async test('test getManualBadgesForUser', () async { // TODO }); - //Future getModerationComment(String commentId, { bool includeEmail, bool includeIP, String sso }) async + //Future getModerationComment(String tenantId, String commentId, { bool includeEmail, bool includeIP, String sso }) async test('test getModerationComment', () async { // TODO }); - //Future getModerationCommentText(String commentId, { String sso }) async + //Future getModerationCommentText(String tenantId, String commentId, { String sso }) async test('test getModerationCommentText', () async { // TODO }); - //Future getPreBanSummary(String commentId, { bool includeByUserIdAndEmail, bool includeByIP, bool includeByEmailDomain, String sso }) async + //Future getPreBanSummary(String tenantId, String commentId, { bool includeByUserIdAndEmail, bool includeByIP, bool includeByEmailDomain, String sso }) async test('test getPreBanSummary', () async { // TODO }); - //Future getSearchCommentsSummary({ String value, String filters, String searchFilters, String sso }) async + //Future getSearchCommentsSummary(String tenantId, { String value, String filters, String searchFilters, String sso }) async test('test getSearchCommentsSummary', () async { // TODO }); - //Future getSearchPages({ String value, String sso }) async + //Future getSearchPages(String tenantId, { String value, String sso }) async test('test getSearchPages', () async { // TODO }); - //Future getSearchSites({ String value, String sso }) async + //Future getSearchSites(String tenantId, { String value, String sso }) async test('test getSearchSites', () async { // TODO }); - //Future getSearchSuggest({ String textSearch, String sso }) async + //Future getSearchSuggest(String tenantId, { String textSearch, String sso }) async test('test getSearchSuggest', () async { // TODO }); - //Future getSearchUsers({ String value, String sso }) async + //Future getSearchUsers(String tenantId, { String value, String sso }) async test('test getSearchUsers', () async { // TODO }); - //Future getTrustFactor({ String userId, String sso }) async + //Future getTrustFactor(String tenantId, { String userId, String sso }) async test('test getTrustFactor', () async { // TODO }); - //Future getUserBanPreference({ String sso }) async + //Future getUserBanPreference(String tenantId, { String sso }) async test('test getUserBanPreference', () async { // TODO }); - //Future getUserInternalProfile({ String commentId, String sso }) async + //Future getUserInternalProfile(String tenantId, { String commentId, String sso }) async test('test getUserInternalProfile', () async { // TODO }); - //Future postAdjustCommentVotes(String commentId, AdjustCommentVotesParams adjustCommentVotesParams, { String sso }) async + //Future postAdjustCommentVotes(String tenantId, String commentId, AdjustCommentVotesParams adjustCommentVotesParams, { String broadcastId, String sso }) async test('test postAdjustCommentVotes', () async { // TODO }); - //Future postApiExport({ String textSearch, String byIPFromComment, String filters, String searchFilters, String sorts, String sso }) async + //Future postApiExport(String tenantId, { String textSearch, String byIPFromComment, String filters, String searchFilters, String sorts, String sso }) async test('test postApiExport', () async { // TODO }); - //Future postBanUserFromComment(String commentId, { bool banEmail, bool banEmailDomain, bool banIP, bool deleteAllUsersComments, String bannedUntil, bool isShadowBan, String updateId, String banReason, String sso }) async + //Future postBanUserFromComment(String tenantId, String commentId, { bool banEmail, bool banEmailDomain, bool banIP, bool deleteAllUsersComments, String bannedUntil, bool isShadowBan, String updateId, String banReason, String sso }) async test('test postBanUserFromComment', () async { // TODO }); - //Future postBanUserUndo(BanUserUndoParams banUserUndoParams, { String sso }) async + //Future postBanUserUndo(String tenantId, BanUserUndoParams banUserUndoParams, { String sso }) async test('test postBanUserUndo', () async { // TODO }); - //Future postBulkPreBanSummary(BulkPreBanParams bulkPreBanParams, { bool includeByUserIdAndEmail, bool includeByIP, bool includeByEmailDomain, String sso }) async + //Future postBulkPreBanSummary(String tenantId, BulkPreBanParams bulkPreBanParams, { bool includeByUserIdAndEmail, bool includeByIP, bool includeByEmailDomain, String sso }) async test('test postBulkPreBanSummary', () async { // TODO }); - //Future postCommentsByIds(CommentsByIdsParams commentsByIdsParams, { String sso }) async + //Future postCommentsByIds(String tenantId, CommentsByIdsParams commentsByIdsParams, { String sso }) async test('test postCommentsByIds', () async { // TODO }); - //Future postFlagComment(String commentId, { String sso }) async + //Future postFlagComment(String tenantId, String commentId, { String broadcastId, String sso }) async test('test postFlagComment', () async { // TODO }); - //Future postRemoveComment(String commentId, { String sso }) async + //Future postRemoveComment(String tenantId, String commentId, { String broadcastId, String sso }) async test('test postRemoveComment', () async { // TODO }); - //Future postRestoreDeletedComment(String commentId, { String sso }) async + //Future postRestoreDeletedComment(String tenantId, String commentId, { String broadcastId, String sso }) async test('test postRestoreDeletedComment', () async { // TODO }); - //Future postSetCommentApprovalStatus(String commentId, { bool approved, String sso }) async + //Future postSetCommentApprovalStatus(String tenantId, String commentId, { bool approved, String broadcastId, String sso }) async test('test postSetCommentApprovalStatus', () async { // TODO }); - //Future postSetCommentReviewStatus(String commentId, { bool reviewed, String sso }) async + //Future postSetCommentReviewStatus(String tenantId, String commentId, { bool reviewed, String broadcastId, String sso }) async test('test postSetCommentReviewStatus', () async { // TODO }); - //Future postSetCommentSpamStatus(String commentId, { bool spam, bool permNotSpam, String sso }) async + //Future postSetCommentSpamStatus(String tenantId, String commentId, { bool spam, bool permNotSpam, String broadcastId, String sso }) async test('test postSetCommentSpamStatus', () async { // TODO }); - //Future postSetCommentText(String commentId, SetCommentTextParams setCommentTextParams, { String sso }) async + //Future postSetCommentText(String tenantId, String commentId, SetCommentTextParams setCommentTextParams, { String broadcastId, String sso }) async test('test postSetCommentText', () async { // TODO }); - //Future postUnFlagComment(String commentId, { String sso }) async + //Future postUnFlagComment(String tenantId, String commentId, { String broadcastId, String sso }) async test('test postUnFlagComment', () async { // TODO }); - //Future postVote(String commentId, { String direction, String sso }) async + //Future postVote(String tenantId, String commentId, { String direction, String broadcastId, String sso }) async test('test postVote', () async { // TODO }); - //Future putAwardBadge(String badgeId, { String userId, String commentId, String broadcastId, String sso }) async + //Future putAwardBadge(String tenantId, String badgeId, { String userId, String commentId, String broadcastId, String sso }) async test('test putAwardBadge', () async { // TODO }); - //Future putCloseThread(String urlId, { String sso }) async + //Future putCloseThread(String tenantId, String urlId, { String sso }) async test('test putCloseThread', () async { // TODO }); - //Future putRemoveBadge(String badgeId, { String userId, String commentId, String broadcastId, String sso }) async + //Future putRemoveBadge(String tenantId, String badgeId, { String userId, String commentId, String broadcastId, String sso }) async test('test putRemoveBadge', () async { // TODO }); - //Future putReopenThread(String urlId, { String sso }) async + //Future putReopenThread(String tenantId, String urlId, { String sso }) async test('test putReopenThread', () async { // TODO }); - //Future setTrustFactor({ String userId, String trustFactor, String sso }) async + //Future setTrustFactor(String tenantId, { String userId, String trustFactor, String sso }) async test('test setTrustFactor', () async { // TODO }); diff --git a/client/test/post_remove_comment_response_test.dart b/client/test/post_remove_comment_api_response_test.dart similarity index 79% rename from client/test/post_remove_comment_response_test.dart rename to client/test/post_remove_comment_api_response_test.dart index fa9700f..6dcf648 100644 --- a/client/test/post_remove_comment_response_test.dart +++ b/client/test/post_remove_comment_api_response_test.dart @@ -11,11 +11,11 @@ import 'package:fastcomments_dart/api.dart'; import 'package:test/test.dart'; -// tests for PostRemoveCommentResponse +// tests for PostRemoveCommentApiResponse void main() { - // final instance = PostRemoveCommentResponse(); + // final instance = PostRemoveCommentApiResponse(); - group('test PostRemoveCommentResponse', () { + group('test PostRemoveCommentApiResponse', () { // String action test('to test the property `action`', () async { // TODO diff --git a/config.json b/config.json index fc2ff8f..4f0a61f 100644 --- a/config.json +++ b/config.json @@ -2,10 +2,11 @@ "pubName": "fastcomments_dart", "pubAuthor": "FastComments", "pubAuthorEmail": "support@fastcomments.com", - "pubVersion": "2.0.1", + "pubVersion": "3.0.0", "pubDescription": "Official Dart client for the FastComments REST API.", "pubHomepage": "https://fastcomments.com", "pubRepository": "https://github.com/fastcomments/fastcomments-dart", "hideGenerationTimestamp": true, - "useEnumExtension": true -} + "useEnumExtension": true, + "useSingleRequestParameter": true +} \ No newline at end of file diff --git a/openapi.json b/openapi.json index ca0225c..302747d 100644 --- a/openapi.json +++ b/openapi.json @@ -13107,9 +13107,9 @@ ] } }, - "/auth/my-account/moderate-comments/count": { + "/auth/my-account/moderate-comments/mod_api/count": { "get": { - "operationId": "GetCount", + "operationId": "getCount", "responses": { "200": { "description": "Ok", @@ -13137,6 +13137,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13188,9 +13196,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/ids": { + "/auth/my-account/moderate-comments/mod_api/api/ids": { "get": { - "operationId": "GetApiIds", + "operationId": "getApiIds", "responses": { "200": { "description": "Ok", @@ -13218,6 +13226,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13277,9 +13293,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/comments": { + "/auth/my-account/moderate-comments/mod_api/api/comments": { "get": { - "operationId": "GetApiComments", + "operationId": "getApiComments", "responses": { "200": { "description": "Ok", @@ -13307,6 +13323,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "page", @@ -13384,9 +13408,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export": { + "/auth/my-account/moderate-comments/mod_api/api/export": { "post": { - "operationId": "PostApiExport", + "operationId": "postApiExport", "responses": { "200": { "description": "Ok", @@ -13414,6 +13438,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13465,9 +13497,9 @@ ] } }, - "/auth/my-account/moderate-comments/api/export/status": { + "/auth/my-account/moderate-comments/mod_api/api/export/status": { "get": { - "operationId": "GetApiExportStatus", + "operationId": "getApiExportStatus", "responses": { "200": { "description": "Ok", @@ -13495,6 +13527,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "batchJobId", @@ -13514,9 +13554,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/users": { + "/auth/my-account/moderate-comments/mod_api/search/users": { "get": { - "operationId": "GetSearchUsers", + "operationId": "getSearchUsers", "responses": { "200": { "description": "Ok", @@ -13544,6 +13584,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13563,9 +13611,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/pages": { + "/auth/my-account/moderate-comments/mod_api/search/pages": { "get": { - "operationId": "GetSearchPages", + "operationId": "getSearchPages", "responses": { "200": { "description": "Ok", @@ -13593,6 +13641,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13612,9 +13668,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/sites": { + "/auth/my-account/moderate-comments/mod_api/search/sites": { "get": { - "operationId": "GetSearchSites", + "operationId": "getSearchSites", "responses": { "200": { "description": "Ok", @@ -13642,6 +13698,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13661,9 +13725,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/comments/summary": { + "/auth/my-account/moderate-comments/mod_api/search/comments/summary": { "get": { - "operationId": "GetSearchCommentsSummary", + "operationId": "getSearchCommentsSummary", "responses": { "200": { "description": "Ok", @@ -13691,6 +13755,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "value", @@ -13726,9 +13798,9 @@ ] } }, - "/auth/my-account/moderate-comments/search/suggest": { + "/auth/my-account/moderate-comments/mod_api/search/suggest": { "get": { - "operationId": "GetSearchSuggest", + "operationId": "getSearchSuggest", "responses": { "200": { "description": "Ok", @@ -13756,6 +13828,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "text-search", @@ -13775,9 +13855,9 @@ ] } }, - "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}": { "get": { - "operationId": "GetPreBanSummary", + "operationId": "getPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13805,6 +13885,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -13848,9 +13936,9 @@ ] } }, - "/auth/my-account/moderate-comments/bulk-pre-ban-summary": { + "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary": { "post": { - "operationId": "PostBulkPreBanSummary", + "operationId": "postBulkPreBanSummary", "responses": { "200": { "description": "Ok", @@ -13878,6 +13966,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "includeByUserIdAndEmail", @@ -13923,9 +14019,9 @@ } } }, - "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}": { "post": { - "operationId": "PostBanUserFromComment", + "operationId": "postBanUserFromComment", "responses": { "200": { "description": "Ok", @@ -13953,6 +14049,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14036,9 +14140,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}": { "get": { - "operationId": "GetBanUsersFromComment", + "operationId": "getBanUsersFromComment", "responses": { "200": { "description": "Ok", @@ -14066,6 +14170,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14085,9 +14197,9 @@ ] } }, - "/auth/my-account/moderate-comments/ban-user/undo": { + "/auth/my-account/moderate-comments/mod_api/ban-user/undo": { "post": { - "operationId": "PostBanUserUndo", + "operationId": "postBanUserUndo", "responses": { "200": { "description": "Ok", @@ -14115,6 +14227,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14136,16 +14256,16 @@ } } }, - "/auth/my-account/moderate-comments/remove-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}": { "post": { - "operationId": "PostRemoveComment", + "operationId": "postRemoveComment", "responses": { "200": { "description": "Ok", "content": { "application/json": { "schema": { - "title": "PostRemoveCommentResponse", + "title": "PostRemoveCommentApiResponse", "anyOf": [ { "$ref": "#/components/schemas/DeleteCommentResult" @@ -14174,6 +14294,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14182,6 +14310,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14193,9 +14329,9 @@ ] } }, - "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}": { "post": { - "operationId": "PostRestoreDeletedComment", + "operationId": "postRestoreDeletedComment", "responses": { "200": { "description": "Ok", @@ -14223,6 +14359,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14231,6 +14375,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14242,9 +14394,9 @@ ] } }, - "/auth/my-account/moderate-comments/flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}": { "post": { - "operationId": "PostFlagComment", + "operationId": "postFlagComment", "responses": { "200": { "description": "Ok", @@ -14272,6 +14424,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14280,6 +14440,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14291,9 +14459,9 @@ ] } }, - "/auth/my-account/moderate-comments/un-flag-comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}": { "post": { - "operationId": "PostUnFlagComment", + "operationId": "postUnFlagComment", "responses": { "200": { "description": "Ok", @@ -14321,6 +14489,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14329,6 +14505,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14340,9 +14524,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}": { "post": { - "operationId": "PostSetCommentReviewStatus", + "operationId": "postSetCommentReviewStatus", "responses": { "200": { "description": "Ok", @@ -14370,6 +14554,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14386,6 +14578,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14397,9 +14597,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}": { "post": { - "operationId": "PostSetCommentSpamStatus", + "operationId": "postSetCommentSpamStatus", "responses": { "200": { "description": "Ok", @@ -14427,6 +14627,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14451,6 +14659,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14462,9 +14678,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}": { "post": { - "operationId": "PostSetCommentApprovalStatus", + "operationId": "postSetCommentApprovalStatus", "responses": { "200": { "description": "Ok", @@ -14492,6 +14708,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14508,6 +14732,14 @@ "type": "boolean" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14519,9 +14751,9 @@ ] } }, - "/auth/my-account/moderate-comments/logs/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/logs/{commentId}": { "get": { - "operationId": "GetLogs", + "operationId": "getLogs", "responses": { "200": { "description": "Ok", @@ -14549,6 +14781,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14568,9 +14808,9 @@ ] } }, - "/auth/my-account/moderate-comments/comment/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment/{commentId}": { "get": { - "operationId": "GetModerationComment", + "operationId": "getModerationComment", "responses": { "200": { "description": "Ok", @@ -14598,6 +14838,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14633,9 +14881,9 @@ ] } }, - "/auth/my-account/moderate-comments/comments-by-ids": { + "/auth/my-account/moderate-comments/mod_api/comments-by-ids": { "post": { - "operationId": "PostCommentsByIds", + "operationId": "postCommentsByIds", "responses": { "200": { "description": "Ok", @@ -14663,6 +14911,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14684,9 +14940,9 @@ } } }, - "/auth/my-account/moderate-comments/comment-children/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}": { "get": { - "operationId": "GetCommentChildren", + "operationId": "getCommentChildren", "responses": { "200": { "description": "Ok", @@ -14714,6 +14970,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14733,9 +14997,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}": { "get": { - "operationId": "GetModerationCommentText", + "operationId": "getModerationCommentText", "responses": { "200": { "description": "Ok", @@ -14763,6 +15027,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14782,9 +15054,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-comment-text/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}": { "post": { - "operationId": "PostSetCommentText", + "operationId": "postSetCommentText", "responses": { "200": { "description": "Ok", @@ -14812,6 +15084,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14820,6 +15100,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14841,9 +15129,9 @@ } } }, - "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}": { "post": { - "operationId": "PostAdjustCommentVotes", + "operationId": "postAdjustCommentVotes", "responses": { "200": { "description": "Ok", @@ -14871,6 +15159,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14879,6 +15175,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14900,9 +15204,9 @@ } } }, - "/auth/my-account/moderate-comments/vote/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}": { "post": { - "operationId": "PostVote", + "operationId": "postVote", "responses": { "200": { "description": "Ok", @@ -14930,6 +15234,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -14946,6 +15258,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -14957,9 +15277,9 @@ ] } }, - "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}": { + "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}": { "delete": { - "operationId": "DeleteModerationVote", + "operationId": "deleteModerationVote", "responses": { "200": { "description": "Ok", @@ -14987,6 +15307,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -15003,6 +15331,14 @@ "type": "string" } }, + { + "in": "query", + "name": "broadcastId", + "required": false, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15014,9 +15350,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}": { + "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}": { "get": { - "operationId": "GetCommentBanStatus", + "operationId": "getCommentBanStatus", "responses": { "200": { "description": "Ok", @@ -15044,6 +15380,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "path", "name": "commentId", @@ -15063,9 +15407,9 @@ ] } }, - "/auth/my-account/moderate-comments/user-ban-preference": { + "/auth/my-account/moderate-comments/mod_api/user-ban-preference": { "get": { - "operationId": "GetUserBanPreference", + "operationId": "getUserBanPreference", "responses": { "200": { "description": "Ok", @@ -15093,6 +15437,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15104,9 +15456,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges": { "get": { - "operationId": "GetManualBadges", + "operationId": "getManualBadges", "responses": { "200": { "description": "Ok", @@ -15134,6 +15486,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -15145,9 +15505,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-manual-badges-for-user": { + "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user": { "get": { - "operationId": "GetManualBadgesForUser", + "operationId": "getManualBadgesForUser", "responses": { "200": { "description": "Ok", @@ -15175,6 +15535,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgesUserId", @@ -15202,9 +15570,9 @@ ] } }, - "/auth/my-account/moderate-comments/award-badge": { + "/auth/my-account/moderate-comments/mod_api/award-badge": { "put": { - "operationId": "PutAwardBadge", + "operationId": "putAwardBadge", "responses": { "200": { "description": "Ok", @@ -15232,6 +15600,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgeId", @@ -15275,9 +15651,9 @@ ] } }, - "/auth/my-account/moderate-comments/remove-badge": { + "/auth/my-account/moderate-comments/mod_api/remove-badge": { "put": { - "operationId": "PutRemoveBadge", + "operationId": "putRemoveBadge", "responses": { "200": { "description": "Ok", @@ -15305,6 +15681,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "badgeId", @@ -15348,9 +15732,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/get-trust-factor": { "get": { - "operationId": "GetTrustFactor", + "operationId": "getTrustFactor", "responses": { "200": { "description": "Ok", @@ -15378,6 +15762,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "userId", @@ -15397,9 +15789,9 @@ ] } }, - "/auth/my-account/moderate-comments/set-trust-factor": { + "/auth/my-account/moderate-comments/mod_api/set-trust-factor": { "put": { - "operationId": "SetTrustFactor", + "operationId": "setTrustFactor", "responses": { "200": { "description": "Ok", @@ -15427,6 +15819,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "userId", @@ -15454,9 +15854,9 @@ ] } }, - "/auth/my-account/moderate-comments/get-user-internal-profile": { + "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile": { "get": { - "operationId": "GetUserInternalProfile", + "operationId": "getUserInternalProfile", "responses": { "200": { "description": "Ok", @@ -15484,6 +15884,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "commentId", @@ -15503,9 +15911,9 @@ ] } }, - "/auth/my-account/moderate-comments/reopen-thread": { + "/auth/my-account/moderate-comments/mod_api/reopen-thread": { "put": { - "operationId": "PutReopenThread", + "operationId": "putReopenThread", "responses": { "200": { "description": "Ok", @@ -15533,6 +15941,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "urlId", @@ -15552,9 +15968,9 @@ ] } }, - "/auth/my-account/moderate-comments/close-thread": { + "/auth/my-account/moderate-comments/mod_api/close-thread": { "put": { - "operationId": "PutCloseThread", + "operationId": "putCloseThread", "responses": { "200": { "description": "Ok", @@ -15582,6 +15998,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "urlId", @@ -15601,9 +16025,9 @@ ] } }, - "/auth/my-account/moderate-comments/banned-users/counts": { + "/auth/my-account/moderate-comments/banned-users/mod_api/counts": { "get": { - "operationId": "GetCounts", + "operationId": "getCounts", "responses": { "200": { "description": "Ok", @@ -15631,6 +16055,14 @@ ], "security": [], "parameters": [ + { + "in": "query", + "name": "tenantId", + "required": true, + "schema": { + "type": "string" + } + }, { "in": "query", "name": "sso", @@ -22595,7 +23027,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -22647,7 +23079,7 @@ { "in": "query", "name": "tenantId", - "required": false, + "required": true, "schema": { "type": "string" } @@ -22697,17 +23129,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } @@ -22755,17 +23187,17 @@ ], "parameters": [ { - "in": "path", - "name": "tag", + "in": "query", + "name": "tenantId", "required": true, "schema": { "type": "string" } }, { - "in": "query", - "name": "tenantId", - "required": false, + "in": "path", + "name": "tag", + "required": true, "schema": { "type": "string" } diff --git a/sso_tests/test/sso_integration_test.dart b/sso_tests/test/sso_integration_test.dart index 8ba5d15..40a7f00 100644 --- a/sso_tests/test/sso_integration_test.dart +++ b/sso_tests/test/sso_integration_test.dart @@ -38,14 +38,23 @@ void main() { urlId: urlId, ); - final createResponse = - await api.createCommentPublic(tenantId!, urlId, 'dart-test-$timestamp', commentData, sso: token); + final createResponse = await api.createCommentPublic( + tenantId!, + urlId, + 'dart-test-$timestamp', + commentData, + CreateCommentPublicOptions(sso: token), + ); expect(createResponse, isNotNull); expect(createResponse!.status, APIStatus.success); expect(createResponse.comment.commenterName, user.username); expect(createResponse.comment.commentHTML, contains(commentText)); - final getResponse = await api.getCommentsPublic(tenantId, urlId, sso: token); + final getResponse = await api.getCommentsPublic( + tenantId, + urlId, + GetCommentsPublicOptions(sso: token), + ); expect(getResponse, isNotNull); expect(getResponse!.status, 'success'); expect(getResponse.comments, isNotEmpty); diff --git a/update.py b/update.py index 104a427..52b5e17 100755 --- a/update.py +++ b/update.py @@ -21,7 +21,7 @@ # FastComments openapi-generator build (fixes dart anyOf/nested-map codegen the # released generator gets wrong). Just a jar; downloaded on demand. -JAR_URL = "https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260619/openapi-generator-cli.jar" +JAR_URL = "https://github.com/winrid/openapi-generator/releases/download/fastcomments-build-20260630/openapi-generator-cli.jar" JAR_FILE = ROOT / "openapi-generator-cli.jar"