diff --git a/README.md b/README.md index f879413..425a438 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Add the following to your `Package.swift` file: ```swift dependencies: [ - .package(url: "https://github.com/fastcomments/fastcomments-swift.git", from: "2.0.0") + .package(url: "https://github.com/fastcomments/fastcomments-swift.git", from: "3.0.0") ] ``` @@ -46,12 +46,9 @@ The FastComments Swift SDK consists of several modules: ```swift import FastCommentsSwift -// Create API client -let publicApi = PublicAPI() - // Fetch comments for a page do { - let response = try await publicApi.getCommentsPublic( + let response = try await PublicAPI.getCommentsPublic( tenantId: "your-tenant-id", urlId: "page-url-id" ) @@ -70,15 +67,14 @@ do { ```swift import FastCommentsSwift -// Create configuration with API key -let defaultApi = DefaultAPI() -defaultApi.apiKey = "your-api-key" +// Configure your API key on the shared configuration (sent as the x-api-key header) +FastCommentsSwiftAPIConfiguration.shared.customHeaders["x-api-key"] = "your-api-key" // Fetch comments using authenticated API do { - let response = try await defaultApi.getComments( + let response = try await DefaultAPI.getComments( tenantId: "your-tenant-id", - urlId: "page-url-id" + options: .init(urlId: "page-url-id") ) print("Total comments: \(response.count ?? 0)") @@ -99,9 +95,11 @@ import FastCommentsSwift // (generate it with FastCommentsSSO, see the SSO section above). do { let response = try await ModerationAPI.getApiComments( - page: 0, - count: 30, - sso: ssoToken + options: .init( + page: 0, + count: 30, + sso: ssoToken + ) ) print("Found \(response.comments.count) comments to moderate") @@ -190,13 +188,7 @@ The `DefaultAPI` contains authenticated methods that require an API key. These m ### ModerationAPI - Moderator Dashboard Methods -The `ModerationAPI` contains methods that power the moderator dashboard. These methods cover: -- **Comment moderation** - list, count, search, retrieve logs, and export comments -- **Moderation actions** - remove/restore comments, flag, set review/spam/approval status, manage votes, and reopen/close threads -- **Bans** - ban a user from a comment, undo bans, fetch pre-ban summaries, check ban status and preferences, and read banned-user counts -- **Badges & trust** - award/remove badges, list manual badges, get/set a user's trust factor, and read a user's internal profile - -Every `ModerationAPI` method accepts an `sso` parameter so moderators can be authenticated via SSO. +The `ModerationAPI` provides an extensive suite of live and fast moderation APIs. Every `ModerationAPI` method accepts an `sso` parameter and can authenticate via SSO or a FastComments.com session cookie. **Example use case**: Building a moderation experience for moderators of your community @@ -207,7 +199,7 @@ Every `ModerationAPI` method accepts an `sso` parameter so moderators can be aut The Swift SDK uses modern async/await syntax for all API calls: ```swift -let response = try await publicApi.getCommentsPublic( +let response = try await PublicAPI.getCommentsPublic( tenantId: "your-tenant-id", urlId: "page-url-id" ) @@ -221,11 +213,10 @@ If you're getting 401 errors when using the authenticated API: 1. **Check your API key**: Ensure you're using the correct API key from your FastComments dashboard 2. **Verify the tenant ID**: Make sure the tenant ID matches your account -3. **API key format**: The API key should be set on the API client: +3. **API key format**: The API key should be set as the `x-api-key` header on the shared configuration: ```swift -let defaultApi = DefaultAPI() -defaultApi.apiKey = "YOUR_API_KEY" +FastCommentsSwiftAPIConfiguration.shared.customHeaders["x-api-key"] = "YOUR_API_KEY" ``` 4. **Using the wrong API**: Make sure you're using `DefaultAPI` (not `PublicAPI`) for authenticated calls diff --git a/Tests/FastCommentsSwiftTests/SSOIntegrationTests.swift b/Tests/FastCommentsSwiftTests/SSOIntegrationTests.swift index cfaec34..9991d01 100644 --- a/Tests/FastCommentsSwiftTests/SSOIntegrationTests.swift +++ b/Tests/FastCommentsSwiftTests/SSOIntegrationTests.swift @@ -54,7 +54,7 @@ final class SSOIntegrationTests: XCTestCase { urlId: testUrlId, broadcastId: "swift-test-\(timestamp)", commentData: commentData, - sso: token + options: .init(sso: token) ) XCTAssertEqual(createResponse.status, .success, "Create comment should succeed") @@ -71,7 +71,7 @@ final class SSOIntegrationTests: XCTestCase { let getResponse = try await PublicAPI.getCommentsPublic( tenantId: tenantId, urlId: testUrlId, - sso: token + options: .init(sso: token) ) XCTAssertEqual(getResponse.status, "success", "Get comments should succeed") @@ -124,7 +124,7 @@ final class SSOIntegrationTests: XCTestCase { urlId: testUrlId, broadcastId: "swift-opts-\(timestamp)", commentData: commentData, - sso: token + options: .init(sso: token) ) XCTAssertEqual(createResponse.status, .success, "Create comment with optional SSO fields should succeed") @@ -140,7 +140,7 @@ final class SSOIntegrationTests: XCTestCase { let getResponse = try await PublicAPI.getCommentsPublic( tenantId: tenantId, urlId: testUrlId, - sso: token + options: .init(sso: token) ) XCTAssertEqual(getResponse.status, "success") @@ -191,7 +191,7 @@ final class SSOIntegrationTests: XCTestCase { urlId: testUrlId, broadcastId: "swift-simple-\(timestamp)", commentData: commentData, - sso: token + options: .init(sso: token) ) XCTAssertEqual(createResponse.status, .success, "Create comment with simple SSO should succeed") @@ -208,7 +208,7 @@ final class SSOIntegrationTests: XCTestCase { let getResponse = try await PublicAPI.getCommentsPublic( tenantId: tenantId, urlId: testUrlId, - sso: token + options: .init(sso: token) ) XCTAssertEqual(getResponse.status, "success", "Get comments with simple SSO should succeed") diff --git a/client/.openapi-generator-ignore b/client/.openapi-generator-ignore index 7484ee5..3815279 100644 --- a/client/.openapi-generator-ignore +++ b/client/.openapi-generator-ignore @@ -21,3 +21,8 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md + +# Preserve manually-patched infrastructure files from being overwritten. +# NOTE: update.sh's `rm -rf ./client` wipes this file before generation, so the ignore +# alone is not enough -- update.sh also restores these files from git after generation. +FastCommentsSwift/Infrastructure/URLSessionImplementations.swift diff --git a/client/.openapi-generator/FILES b/client/.openapi-generator/FILES index 49cabea..2ef1799 100644 --- a/client/.openapi-generator/FILES +++ b/client/.openapi-generator/FILES @@ -278,7 +278,7 @@ FastCommentsSwift/Models/PatchDomainConfigResponse.swift FastCommentsSwift/Models/PatchPageAPIResponse.swift FastCommentsSwift/Models/PatchSSOUserAPIResponse.swift FastCommentsSwift/Models/PendingCommentToSyncOutbound.swift -FastCommentsSwift/Models/PostRemoveCommentResponse.swift +FastCommentsSwift/Models/PostRemoveCommentApiResponse.swift FastCommentsSwift/Models/PreBanSummary.swift FastCommentsSwift/Models/PubSubComment.swift FastCommentsSwift/Models/PubSubCommentBase.swift @@ -642,7 +642,7 @@ docs/PatchDomainConfigResponse.md docs/PatchPageAPIResponse.md docs/PatchSSOUserAPIResponse.md docs/PendingCommentToSyncOutbound.md -docs/PostRemoveCommentResponse.md +docs/PostRemoveCommentApiResponse.md docs/PreBanSummary.md docs/PubSubComment.md docs/PubSubCommentBase.md diff --git a/client/FastCommentsSwift.podspec b/client/FastCommentsSwift.podspec index 500b28c..6a06e43 100644 --- a/client/FastCommentsSwift.podspec +++ b/client/FastCommentsSwift.podspec @@ -4,8 +4,8 @@ Pod::Spec.new do |s| s.osx.deployment_target = '10.15' s.tvos.deployment_target = '13.0' s.watchos.deployment_target = '6.0' - s.version = '1.3.2' - s.source = {"git":"https://github.com/fastcomments/fastcomments-swift.git","tag":"1.3.2"} + s.version = '3.0.0' + s.source = {"git":"https://github.com/fastcomments/fastcomments-swift.git","tag":"3.0.0"} s.authors = 'FastComments' s.license = MIT s.homepage = 'https://fastcomments.com' diff --git a/client/FastCommentsSwift/APIs/DefaultAPI.swift b/client/FastCommentsSwift/APIs/DefaultAPI.swift index 593612c..478c5f6 100644 --- a/client/FastCommentsSwift/APIs/DefaultAPI.swift +++ b/client/FastCommentsSwift/APIs/DefaultAPI.swift @@ -53,12 +53,12 @@ open class DefaultAPI { /** - - parameter tenantId: (query) (optional) + - parameter tenantId: (query) - parameter createHashTagBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: CreateHashTagResponse */ - open class func addHashTag(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateHashTagResponse { + open class func addHashTag(tenantId: String, createHashTagBody: CreateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateHashTagResponse { return try await addHashTagWithRequestBuilder(tenantId: tenantId, createHashTagBody: createHashTagBody, apiConfiguration: apiConfiguration).execute().body } @@ -67,19 +67,19 @@ open class DefaultAPI { - API Key: - type: apiKey x-api-key (HEADER) - name: api_key - - parameter tenantId: (query) (optional) + - parameter tenantId: (query) - parameter createHashTagBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func addHashTagWithRequestBuilder(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func addHashTagWithRequestBuilder(tenantId: String, createHashTagBody: CreateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/hash-tags" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createHashTagBody, codableHelper: apiConfiguration.codableHelper) var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "tenantId": (wrappedValue: tenantId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -95,12 +95,12 @@ open class DefaultAPI { /** - - parameter tenantId: (query) (optional) + - parameter tenantId: (query) - parameter bulkCreateHashTagsBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: BulkCreateHashTagsResponse */ - open class func addHashTagsBulk(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BulkCreateHashTagsResponse { + open class func addHashTagsBulk(tenantId: String, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BulkCreateHashTagsResponse { return try await addHashTagsBulkWithRequestBuilder(tenantId: tenantId, bulkCreateHashTagsBody: bulkCreateHashTagsBody, apiConfiguration: apiConfiguration).execute().body } @@ -109,19 +109,19 @@ open class DefaultAPI { - API Key: - type: apiKey x-api-key (HEADER) - name: api_key - - parameter tenantId: (query) (optional) + - parameter tenantId: (query) - parameter bulkCreateHashTagsBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func addHashTagsBulkWithRequestBuilder(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func addHashTagsBulkWithRequestBuilder(tenantId: String, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { let localVariablePath = "/api/v1/hash-tags/bulk" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: bulkCreateHashTagsBody, codableHelper: apiConfiguration.codableHelper) var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "tenantId": (wrappedValue: tenantId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -219,6 +219,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for aggregate. */ + public struct AggregateOptions: Sendable { + public var parentTenantId: String? + public var includeStats: Bool? + + public init(parentTenantId: String? = nil, includeStats: Bool? = nil) { + self.parentTenantId = parentTenantId + self.includeStats = includeStats + } + } + /** - parameter tenantId: (query) @@ -228,8 +239,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: AggregateResponse */ - open class func aggregate(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AggregateResponse { - return try await aggregateWithRequestBuilder(tenantId: tenantId, aggregationRequest: aggregationRequest, parentTenantId: parentTenantId, includeStats: includeStats, apiConfiguration: apiConfiguration).execute().body + open class func aggregate(tenantId: String, aggregationRequest: AggregationRequest, options: AggregateOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AggregateResponse { + return try await aggregateWithRequestBuilder(tenantId: tenantId, aggregationRequest: aggregationRequest, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -245,7 +256,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func aggregateWithRequestBuilder(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func aggregateWithRequestBuilder(tenantId: String, aggregationRequest: AggregationRequest, options: AggregateOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let parentTenantId = options.parentTenantId + let includeStats = options.includeStats let localVariablePath = "/api/v1/aggregate" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: aggregationRequest, codableHelper: apiConfiguration.codableHelper) @@ -268,6 +281,25 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for aggregateQuestionResults. */ + public struct AggregateQuestionResultsOptions: Sendable { + public var questionId: String? + public var questionIds: [String]? + public var urlId: String? + public var timeBucket: AggregateTimeBucket? + public var startDate: Date? + public var forceRecalculate: Bool? + + public init(questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil) { + self.questionId = questionId + self.questionIds = questionIds + self.urlId = urlId + self.timeBucket = timeBucket + self.startDate = startDate + self.forceRecalculate = forceRecalculate + } + } + /** - parameter tenantId: (query) @@ -280,8 +312,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: AggregateQuestionResultsResponse */ - open class func aggregateQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AggregateQuestionResultsResponse { - return try await aggregateQuestionResultsWithRequestBuilder(tenantId: tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, timeBucket: timeBucket, startDate: startDate, forceRecalculate: forceRecalculate, apiConfiguration: apiConfiguration).execute().body + open class func aggregateQuestionResults(tenantId: String, options: AggregateQuestionResultsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AggregateQuestionResultsResponse { + return try await aggregateQuestionResultsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -299,7 +331,13 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func aggregateQuestionResultsWithRequestBuilder(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func aggregateQuestionResultsWithRequestBuilder(tenantId: String, options: AggregateQuestionResultsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let questionId = options.questionId + let questionIds = options.questionIds + let urlId = options.urlId + let timeBucket = options.timeBucket + let startDate = options.startDate + let forceRecalculate = options.forceRecalculate let localVariablePath = "/api/v1/question-results-aggregation" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -326,6 +364,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for blockUserFromComment. */ + public struct BlockUserFromCommentOptions: Sendable { + public var userId: String? + public var anonUserId: String? + + public init(userId: String? = nil, anonUserId: String? = nil) { + self.userId = userId + self.anonUserId = anonUserId + } + } + /** - parameter tenantId: (query) @@ -336,8 +385,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: BlockSuccess */ - open class func blockUserFromComment(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BlockSuccess { - return try await blockUserFromCommentWithRequestBuilder(tenantId: tenantId, id: id, blockFromCommentParams: blockFromCommentParams, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body + open class func blockUserFromComment(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, options: BlockUserFromCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BlockSuccess { + return try await blockUserFromCommentWithRequestBuilder(tenantId: tenantId, id: id, blockFromCommentParams: blockFromCommentParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -353,7 +402,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func blockUserFromCommentWithRequestBuilder(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func blockUserFromCommentWithRequestBuilder(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, options: BlockUserFromCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let anonUserId = options.anonUserId var localVariablePath = "/api/v1/comments/{id}/block" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -474,6 +525,29 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "PATCH", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for combineCommentsWithQuestionResults. */ + public struct CombineCommentsWithQuestionResultsOptions: Sendable { + public var questionId: String? + public var questionIds: [String]? + public var urlId: String? + public var startDate: Date? + public var forceRecalculate: Bool? + public var minValue: Double? + public var maxValue: Double? + public var limit: Double? + + public init(questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil) { + self.questionId = questionId + self.questionIds = questionIds + self.urlId = urlId + self.startDate = startDate + self.forceRecalculate = forceRecalculate + self.minValue = minValue + self.maxValue = maxValue + self.limit = limit + } + } + /** - parameter tenantId: (query) @@ -488,8 +562,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: CombineQuestionResultsWithCommentsResponse */ - open class func combineCommentsWithQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CombineQuestionResultsWithCommentsResponse { - return try await combineCommentsWithQuestionResultsWithRequestBuilder(tenantId: tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, startDate: startDate, forceRecalculate: forceRecalculate, minValue: minValue, maxValue: maxValue, limit: limit, apiConfiguration: apiConfiguration).execute().body + open class func combineCommentsWithQuestionResults(tenantId: String, options: CombineCommentsWithQuestionResultsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CombineQuestionResultsWithCommentsResponse { + return try await combineCommentsWithQuestionResultsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -509,7 +583,15 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func combineCommentsWithQuestionResultsWithRequestBuilder(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func combineCommentsWithQuestionResultsWithRequestBuilder(tenantId: String, options: CombineCommentsWithQuestionResultsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let questionId = options.questionId + let questionIds = options.questionIds + let urlId = options.urlId + let startDate = options.startDate + let forceRecalculate = options.forceRecalculate + let minValue = options.minValue + let maxValue = options.maxValue + let limit = options.limit let localVariablePath = "/api/v1/question-results-aggregation/combine/comments" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -580,6 +662,21 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for createFeedPost. */ + public struct CreateFeedPostOptions: Sendable { + public var broadcastId: String? + public var isLive: Bool? + public var doSpamCheck: Bool? + public var skipDupCheck: Bool? + + public init(broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil) { + self.broadcastId = broadcastId + self.isLive = isLive + self.doSpamCheck = doSpamCheck + self.skipDupCheck = skipDupCheck + } + } + /** - parameter tenantId: (query) @@ -591,8 +688,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: CreateFeedPostsResponse */ - open class func createFeedPost(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostsResponse { - return try await createFeedPostWithRequestBuilder(tenantId: tenantId, createFeedPostParams: createFeedPostParams, broadcastId: broadcastId, isLive: isLive, doSpamCheck: doSpamCheck, skipDupCheck: skipDupCheck, apiConfiguration: apiConfiguration).execute().body + open class func createFeedPost(tenantId: String, createFeedPostParams: CreateFeedPostParams, options: CreateFeedPostOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostsResponse { + return try await createFeedPostWithRequestBuilder(tenantId: tenantId, createFeedPostParams: createFeedPostParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -609,7 +706,11 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func createFeedPostWithRequestBuilder(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createFeedPostWithRequestBuilder(tenantId: String, createFeedPostParams: CreateFeedPostParams, options: CreateFeedPostOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let isLive = options.isLive + let doSpamCheck = options.doSpamCheck + let skipDupCheck = options.skipDupCheck let localVariablePath = "/api/v1/feed-posts" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createFeedPostParams, codableHelper: apiConfiguration.codableHelper) @@ -1023,6 +1124,17 @@ open class DefaultAPI { case down = "down" } + /** Optional parameters for createVote. */ + public struct CreateVoteOptions: Sendable { + public var userId: String? + public var anonUserId: String? + + public init(userId: String? = nil, anonUserId: String? = nil) { + self.userId = userId + self.anonUserId = anonUserId + } + } + /** - parameter tenantId: (query) @@ -1033,8 +1145,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: VoteResponse */ - open class func createVote(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { - return try await createVoteWithRequestBuilder(tenantId: tenantId, commentId: commentId, direction: direction, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body + open class func createVote(tenantId: String, commentId: String, direction: Direction_createVote, options: CreateVoteOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { + return try await createVoteWithRequestBuilder(tenantId: tenantId, commentId: commentId, direction: direction, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1050,7 +1162,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func createVoteWithRequestBuilder(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createVoteWithRequestBuilder(tenantId: String, commentId: String, direction: Direction_createVote, options: CreateVoteOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let anonUserId = options.anonUserId let localVariablePath = "/api/v1/votes" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -1075,6 +1189,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for deleteComment. */ + public struct DeleteCommentOptions: Sendable { + public var contextUserId: String? + public var isLive: Bool? + + public init(contextUserId: String? = nil, isLive: Bool? = nil) { + self.contextUserId = contextUserId + self.isLive = isLive + } + } + /** - parameter tenantId: (query) @@ -1084,8 +1209,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: DeleteCommentResult */ - open class func deleteComment(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteCommentResult { - return try await deleteCommentWithRequestBuilder(tenantId: tenantId, id: id, contextUserId: contextUserId, isLive: isLive, apiConfiguration: apiConfiguration).execute().body + open class func deleteComment(tenantId: String, id: String, options: DeleteCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteCommentResult { + return try await deleteCommentWithRequestBuilder(tenantId: tenantId, id: id, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1100,7 +1225,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func deleteCommentWithRequestBuilder(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteCommentWithRequestBuilder(tenantId: String, id: String, options: DeleteCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let contextUserId = options.contextUserId + let isLive = options.isLive var localVariablePath = "/api/v1/comments/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1268,14 +1395,14 @@ open class DefaultAPI { /** + - parameter tenantId: (query) - parameter tag: (path) - - parameter tenantId: (query) (optional) - parameter deleteHashTagRequestBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func deleteHashTag(tag: String, tenantId: String? = nil, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await deleteHashTagWithRequestBuilder(tag: tag, tenantId: tenantId, deleteHashTagRequestBody: deleteHashTagRequestBody, apiConfiguration: apiConfiguration).execute().body + open class func deleteHashTag(tenantId: String, tag: String, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await deleteHashTagWithRequestBuilder(tenantId: tenantId, tag: tag, deleteHashTagRequestBody: deleteHashTagRequestBody, apiConfiguration: apiConfiguration).execute().body } /** @@ -1283,13 +1410,13 @@ open class DefaultAPI { - API Key: - type: apiKey x-api-key (HEADER) - name: api_key + - parameter tenantId: (query) - parameter tag: (path) - - parameter tenantId: (query) (optional) - parameter deleteHashTagRequestBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func deleteHashTagWithRequestBuilder(tag: String, tenantId: String? = nil, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteHashTagWithRequestBuilder(tenantId: String, tag: String, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/hash-tags/{tag}" let tagPreEscape = "\(APIHelper.mapValueToPathItem(tag))" let tagPostEscape = tagPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1299,7 +1426,7 @@ open class DefaultAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "tenantId": (wrappedValue: tenantId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -1586,6 +1713,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for deleteSSOUser. */ + public struct DeleteSSOUserOptions: Sendable { + public var deleteComments: Bool? + public var commentDeleteMode: String? + + public init(deleteComments: Bool? = nil, commentDeleteMode: String? = nil) { + self.deleteComments = deleteComments + self.commentDeleteMode = commentDeleteMode + } + } + /** - parameter tenantId: (query) @@ -1595,8 +1733,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: DeleteSSOUserAPIResponse */ - open class func deleteSSOUser(tenantId: String, id: String, deleteComments: Bool? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteSSOUserAPIResponse { - return try await deleteSSOUserWithRequestBuilder(tenantId: tenantId, id: id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode, apiConfiguration: apiConfiguration).execute().body + open class func deleteSSOUser(tenantId: String, id: String, options: DeleteSSOUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteSSOUserAPIResponse { + return try await deleteSSOUserWithRequestBuilder(tenantId: tenantId, id: id, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1611,7 +1749,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func deleteSSOUserWithRequestBuilder(tenantId: String, id: String, deleteComments: Bool? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteSSOUserWithRequestBuilder(tenantId: String, id: String, options: DeleteSSOUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let deleteComments = options.deleteComments + let commentDeleteMode = options.commentDeleteMode var localVariablePath = "/api/v1/sso-users/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1778,6 +1918,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for deleteTenantUser. */ + public struct DeleteTenantUserOptions: Sendable { + public var deleteComments: String? + public var commentDeleteMode: String? + + public init(deleteComments: String? = nil, commentDeleteMode: String? = nil) { + self.deleteComments = deleteComments + self.commentDeleteMode = commentDeleteMode + } + } + /** - parameter tenantId: (query) @@ -1787,8 +1938,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func deleteTenantUser(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await deleteTenantUserWithRequestBuilder(tenantId: tenantId, id: id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode, apiConfiguration: apiConfiguration).execute().body + open class func deleteTenantUser(tenantId: String, id: String, options: DeleteTenantUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await deleteTenantUserWithRequestBuilder(tenantId: tenantId, id: id, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1803,7 +1954,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func deleteTenantUserWithRequestBuilder(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteTenantUserWithRequestBuilder(tenantId: String, id: String, options: DeleteTenantUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let deleteComments = options.deleteComments + let commentDeleteMode = options.commentDeleteMode var localVariablePath = "/api/v1/tenant-users/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1922,6 +2075,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for flagComment. */ + public struct FlagCommentOptions: Sendable { + public var userId: String? + public var anonUserId: String? + + public init(userId: String? = nil, anonUserId: String? = nil) { + self.userId = userId + self.anonUserId = anonUserId + } + } + /** - parameter tenantId: (query) @@ -1931,8 +2095,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: FlagCommentResponse */ - open class func flagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentResponse { - return try await flagCommentWithRequestBuilder(tenantId: tenantId, id: id, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body + open class func flagComment(tenantId: String, id: String, options: FlagCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentResponse { + return try await flagCommentWithRequestBuilder(tenantId: tenantId, id: id, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1947,7 +2111,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func flagCommentWithRequestBuilder(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func flagCommentWithRequestBuilder(tenantId: String, id: String, options: FlagCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let anonUserId = options.anonUserId var localVariablePath = "/api/v1/comments/{id}/flag" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1973,6 +2139,23 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getAuditLogs. */ + public struct GetAuditLogsOptions: Sendable { + public var limit: Double? + public var skip: Double? + public var order: SORTDIR? + public var after: Double? + public var before: Double? + + public init(limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil) { + self.limit = limit + self.skip = skip + self.order = order + self.after = after + self.before = before + } + } + /** - parameter tenantId: (query) @@ -1984,8 +2167,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetAuditLogsResponse */ - open class func getAuditLogs(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetAuditLogsResponse { - return try await getAuditLogsWithRequestBuilder(tenantId: tenantId, limit: limit, skip: skip, order: order, after: after, before: before, apiConfiguration: apiConfiguration).execute().body + open class func getAuditLogs(tenantId: String, options: GetAuditLogsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetAuditLogsResponse { + return try await getAuditLogsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2002,7 +2185,12 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getAuditLogsWithRequestBuilder(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getAuditLogsWithRequestBuilder(tenantId: String, options: GetAuditLogsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let limit = options.limit + let skip = options.skip + let order = options.order + let after = options.after + let before = options.before let localVariablePath = "/api/v1/audit-logs" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2118,6 +2306,45 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getComments. */ + public struct GetCommentsOptions: Sendable { + public var page: Int? + public var limit: Int? + public var skip: Int? + public var asTree: Bool? + public var skipChildren: Int? + public var limitChildren: Int? + public var maxTreeDepth: Int? + public var urlId: String? + public var userId: String? + public var anonUserId: String? + public var contextUserId: String? + public var hashTag: String? + public var parentId: String? + public var direction: SortDirections? + public var fromDate: Int64? + public var toDate: Int64? + + public init(page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, fromDate: Int64? = nil, toDate: Int64? = nil) { + self.page = page + self.limit = limit + self.skip = skip + self.asTree = asTree + self.skipChildren = skipChildren + self.limitChildren = limitChildren + self.maxTreeDepth = maxTreeDepth + self.urlId = urlId + self.userId = userId + self.anonUserId = anonUserId + self.contextUserId = contextUserId + self.hashTag = hashTag + self.parentId = parentId + self.direction = direction + self.fromDate = fromDate + self.toDate = toDate + } + } + /** - parameter tenantId: (query) @@ -2140,8 +2367,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: APIGetCommentsResponse */ - open class func getComments(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, fromDate: Int64? = nil, toDate: Int64? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetCommentsResponse { - return try await getCommentsWithRequestBuilder(tenantId: tenantId, page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, fromDate: fromDate, toDate: toDate, apiConfiguration: apiConfiguration).execute().body + open class func getComments(tenantId: String, options: GetCommentsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetCommentsResponse { + return try await getCommentsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2169,7 +2396,23 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getCommentsWithRequestBuilder(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, fromDate: Int64? = nil, toDate: Int64? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentsWithRequestBuilder(tenantId: String, options: GetCommentsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let page = options.page + let limit = options.limit + let skip = options.skip + let asTree = options.asTree + let skipChildren = options.skipChildren + let limitChildren = options.limitChildren + let maxTreeDepth = options.maxTreeDepth + let urlId = options.urlId + let userId = options.userId + let anonUserId = options.anonUserId + let contextUserId = options.contextUserId + let hashTag = options.hashTag + let parentId = options.parentId + let direction = options.direction + let fromDate = options.fromDate + let toDate = options.toDate let localVariablePath = "/api/v1/comments" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2467,6 +2710,19 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getFeedPosts. */ + public struct GetFeedPostsOptions: Sendable { + public var afterId: String? + public var limit: Int? + public var tags: [String]? + + public init(afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil) { + self.afterId = afterId + self.limit = limit + self.tags = tags + } + } + /** - parameter tenantId: (query) @@ -2476,8 +2732,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetFeedPostsResponse */ - open class func getFeedPosts(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetFeedPostsResponse { - return try await getFeedPostsWithRequestBuilder(tenantId: tenantId, afterId: afterId, limit: limit, tags: tags, apiConfiguration: apiConfiguration).execute().body + open class func getFeedPosts(tenantId: String, options: GetFeedPostsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetFeedPostsResponse { + return try await getFeedPostsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2493,7 +2749,10 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getFeedPostsWithRequestBuilder(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getFeedPostsWithRequestBuilder(tenantId: String, options: GetFeedPostsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let afterId = options.afterId + let limit = options.limit + let tags = options.tags let localVariablePath = "/api/v1/feed-posts" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2648,6 +2907,23 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getNotificationCount. */ + public struct GetNotificationCountOptions: Sendable { + public var userId: String? + public var urlId: String? + public var fromCommentId: String? + public var viewed: Bool? + public var type: String? + + public init(userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil) { + self.userId = userId + self.urlId = urlId + self.fromCommentId = fromCommentId + self.viewed = viewed + self.type = type + } + } + /** - parameter tenantId: (query) @@ -2659,8 +2935,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetNotificationCountResponse */ - open class func getNotificationCount(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetNotificationCountResponse { - return try await getNotificationCountWithRequestBuilder(tenantId: tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, apiConfiguration: apiConfiguration).execute().body + open class func getNotificationCount(tenantId: String, options: GetNotificationCountOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetNotificationCountResponse { + return try await getNotificationCountWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2677,7 +2953,12 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getNotificationCountWithRequestBuilder(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getNotificationCountWithRequestBuilder(tenantId: String, options: GetNotificationCountOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let urlId = options.urlId + let fromCommentId = options.fromCommentId + let viewed = options.viewed + let type = options.type let localVariablePath = "/api/v1/notifications/count" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2703,6 +2984,25 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getNotifications. */ + public struct GetNotificationsOptions: Sendable { + public var userId: String? + public var urlId: String? + public var fromCommentId: String? + public var viewed: Bool? + public var type: String? + public var skip: Double? + + public init(userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil) { + self.userId = userId + self.urlId = urlId + self.fromCommentId = fromCommentId + self.viewed = viewed + self.type = type + self.skip = skip + } + } + /** - parameter tenantId: (query) @@ -2715,8 +3015,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetNotificationsResponse */ - open class func getNotifications(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetNotificationsResponse { - return try await getNotificationsWithRequestBuilder(tenantId: tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, skip: skip, apiConfiguration: apiConfiguration).execute().body + open class func getNotifications(tenantId: String, options: GetNotificationsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetNotificationsResponse { + return try await getNotificationsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2734,7 +3034,13 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getNotificationsWithRequestBuilder(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getNotificationsWithRequestBuilder(tenantId: String, options: GetNotificationsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let urlId = options.urlId + let fromCommentId = options.fromCommentId + let viewed = options.viewed + let type = options.type + let skip = options.skip let localVariablePath = "/api/v1/notifications" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2844,6 +3150,25 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getPendingWebhookEventCount. */ + public struct GetPendingWebhookEventCountOptions: Sendable { + public var commentId: String? + public var externalId: String? + public var eventType: String? + public var type: String? + public var domain: String? + public var attemptCountGT: Double? + + public init(commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil) { + self.commentId = commentId + self.externalId = externalId + self.eventType = eventType + self.type = type + self.domain = domain + self.attemptCountGT = attemptCountGT + } + } + /** - parameter tenantId: (query) @@ -2856,8 +3181,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetPendingWebhookEventCountResponse */ - open class func getPendingWebhookEventCount(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPendingWebhookEventCountResponse { - return try await getPendingWebhookEventCountWithRequestBuilder(tenantId: tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, apiConfiguration: apiConfiguration).execute().body + open class func getPendingWebhookEventCount(tenantId: String, options: GetPendingWebhookEventCountOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPendingWebhookEventCountResponse { + return try await getPendingWebhookEventCountWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2875,7 +3200,13 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getPendingWebhookEventCountWithRequestBuilder(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getPendingWebhookEventCountWithRequestBuilder(tenantId: String, options: GetPendingWebhookEventCountOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let commentId = options.commentId + let externalId = options.externalId + let eventType = options.eventType + let type = options.type + let domain = options.domain + let attemptCountGT = options.attemptCountGT let localVariablePath = "/api/v1/pending-webhook-events/count" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2902,6 +3233,27 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getPendingWebhookEvents. */ + public struct GetPendingWebhookEventsOptions: Sendable { + public var commentId: String? + public var externalId: String? + public var eventType: String? + public var type: String? + public var domain: String? + public var attemptCountGT: Double? + public var skip: Double? + + public init(commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil) { + self.commentId = commentId + self.externalId = externalId + self.eventType = eventType + self.type = type + self.domain = domain + self.attemptCountGT = attemptCountGT + self.skip = skip + } + } + /** - parameter tenantId: (query) @@ -2915,8 +3267,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetPendingWebhookEventsResponse */ - open class func getPendingWebhookEvents(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPendingWebhookEventsResponse { - return try await getPendingWebhookEventsWithRequestBuilder(tenantId: tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, skip: skip, apiConfiguration: apiConfiguration).execute().body + open class func getPendingWebhookEvents(tenantId: String, options: GetPendingWebhookEventsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPendingWebhookEventsResponse { + return try await getPendingWebhookEventsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2935,7 +3287,14 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getPendingWebhookEventsWithRequestBuilder(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getPendingWebhookEventsWithRequestBuilder(tenantId: String, options: GetPendingWebhookEventsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let commentId = options.commentId + let externalId = options.externalId + let eventType = options.eventType + let type = options.type + let domain = options.domain + let attemptCountGT = options.attemptCountGT + let skip = options.skip let localVariablePath = "/api/v1/pending-webhook-events" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3096,6 +3455,25 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getQuestionResults. */ + public struct GetQuestionResultsOptions: Sendable { + public var urlId: String? + public var userId: String? + public var startDate: String? + public var questionId: String? + public var questionIds: String? + public var skip: Double? + + public init(urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil) { + self.urlId = urlId + self.userId = userId + self.startDate = startDate + self.questionId = questionId + self.questionIds = questionIds + self.skip = skip + } + } + /** - parameter tenantId: (query) @@ -3108,8 +3486,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetQuestionResultsResponse */ - open class func getQuestionResults(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionResultsResponse { - return try await getQuestionResultsWithRequestBuilder(tenantId: tenantId, urlId: urlId, userId: userId, startDate: startDate, questionId: questionId, questionIds: questionIds, skip: skip, apiConfiguration: apiConfiguration).execute().body + open class func getQuestionResults(tenantId: String, options: GetQuestionResultsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetQuestionResultsResponse { + return try await getQuestionResultsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -3127,7 +3505,13 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getQuestionResultsWithRequestBuilder(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getQuestionResultsWithRequestBuilder(tenantId: String, options: GetQuestionResultsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let urlId = options.urlId + let userId = options.userId + let startDate = options.startDate + let questionId = options.questionId + let questionIds = options.questionIds + let skip = options.skip let localVariablePath = "/api/v1/question-results" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3375,6 +3759,21 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getTenantDailyUsages. */ + public struct GetTenantDailyUsagesOptions: Sendable { + public var yearNumber: Double? + public var monthNumber: Double? + public var dayNumber: Double? + public var skip: Double? + + public init(yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil) { + self.yearNumber = yearNumber + self.monthNumber = monthNumber + self.dayNumber = dayNumber + self.skip = skip + } + } + /** - parameter tenantId: (query) @@ -3385,8 +3784,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetTenantDailyUsagesResponse */ - open class func getTenantDailyUsages(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantDailyUsagesResponse { - return try await getTenantDailyUsagesWithRequestBuilder(tenantId: tenantId, yearNumber: yearNumber, monthNumber: monthNumber, dayNumber: dayNumber, skip: skip, apiConfiguration: apiConfiguration).execute().body + open class func getTenantDailyUsages(tenantId: String, options: GetTenantDailyUsagesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantDailyUsagesResponse { + return try await getTenantDailyUsagesWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -3402,7 +3801,11 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getTenantDailyUsagesWithRequestBuilder(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantDailyUsagesWithRequestBuilder(tenantId: String, options: GetTenantDailyUsagesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let yearNumber = options.yearNumber + let monthNumber = options.monthNumber + let dayNumber = options.dayNumber + let skip = options.skip let localVariablePath = "/api/v1/tenant-daily-usage" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3603,6 +4006,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getTenants. */ + public struct GetTenantsOptions: Sendable { + public var meta: String? + public var skip: Double? + + public init(meta: String? = nil, skip: Double? = nil) { + self.meta = meta + self.skip = skip + } + } + /** - parameter tenantId: (query) @@ -3611,8 +4025,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetTenantsResponse */ - open class func getTenants(tenantId: String, meta: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantsResponse { - return try await getTenantsWithRequestBuilder(tenantId: tenantId, meta: meta, skip: skip, apiConfiguration: apiConfiguration).execute().body + open class func getTenants(tenantId: String, options: GetTenantsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantsResponse { + return try await getTenantsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -3626,7 +4040,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getTenantsWithRequestBuilder(tenantId: String, meta: String? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTenantsWithRequestBuilder(tenantId: String, options: GetTenantsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let meta = options.meta + let skip = options.skip let localVariablePath = "/api/v1/tenants" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3697,6 +4113,21 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getTickets. */ + public struct GetTicketsOptions: Sendable { + public var userId: String? + public var state: Double? + public var skip: Double? + public var limit: Double? + + public init(userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil) { + self.userId = userId + self.state = state + self.skip = skip + self.limit = limit + } + } + /** - parameter tenantId: (query) @@ -3707,8 +4138,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetTicketsResponse */ - open class func getTickets(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTicketsResponse { - return try await getTicketsWithRequestBuilder(tenantId: tenantId, userId: userId, state: state, skip: skip, limit: limit, apiConfiguration: apiConfiguration).execute().body + open class func getTickets(tenantId: String, options: GetTicketsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTicketsResponse { + return try await getTicketsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -3724,7 +4155,11 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getTicketsWithRequestBuilder(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTicketsWithRequestBuilder(tenantId: String, options: GetTicketsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let state = options.state + let skip = options.skip + let limit = options.limit let localVariablePath = "/api/v1/tickets" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3929,6 +4364,19 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getUserBadgeProgressList. */ + public struct GetUserBadgeProgressListOptions: Sendable { + public var userId: String? + public var limit: Double? + public var skip: Double? + + public init(userId: String? = nil, limit: Double? = nil, skip: Double? = nil) { + self.userId = userId + self.limit = limit + self.skip = skip + } + } + /** - parameter tenantId: (query) @@ -3938,8 +4386,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: APIGetUserBadgeProgressListResponse */ - open class func getUserBadgeProgressList(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgeProgressListResponse { - return try await getUserBadgeProgressListWithRequestBuilder(tenantId: tenantId, userId: userId, limit: limit, skip: skip, apiConfiguration: apiConfiguration).execute().body + open class func getUserBadgeProgressList(tenantId: String, options: GetUserBadgeProgressListOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgeProgressListResponse { + return try await getUserBadgeProgressListWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -3954,7 +4402,10 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getUserBadgeProgressListWithRequestBuilder(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserBadgeProgressListWithRequestBuilder(tenantId: String, options: GetUserBadgeProgressListOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let limit = options.limit + let skip = options.skip let localVariablePath = "/api/v1/user-badge-progress" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -3978,6 +4429,25 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getUserBadges. */ + public struct GetUserBadgesOptions: Sendable { + public var userId: String? + public var badgeId: String? + public var type: Double? + public var displayedOnComments: Bool? + public var limit: Double? + public var skip: Double? + + public init(userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil) { + self.userId = userId + self.badgeId = badgeId + self.type = type + self.displayedOnComments = displayedOnComments + self.limit = limit + self.skip = skip + } + } + /** - parameter tenantId: (query) @@ -3990,8 +4460,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: APIGetUserBadgesResponse */ - open class func getUserBadges(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgesResponse { - return try await getUserBadgesWithRequestBuilder(tenantId: tenantId, userId: userId, badgeId: badgeId, type: type, displayedOnComments: displayedOnComments, limit: limit, skip: skip, apiConfiguration: apiConfiguration).execute().body + open class func getUserBadges(tenantId: String, options: GetUserBadgesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIGetUserBadgesResponse { + return try await getUserBadgesWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -4009,7 +4479,13 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getUserBadgesWithRequestBuilder(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserBadgesWithRequestBuilder(tenantId: String, options: GetUserBadgesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let badgeId = options.badgeId + let type = options.type + let displayedOnComments = options.displayedOnComments + let limit = options.limit + let skip = options.skip let localVariablePath = "/api/v1/user-badges" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -4079,6 +4555,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for getVotesForUser. */ + public struct GetVotesForUserOptions: Sendable { + public var userId: String? + public var anonUserId: String? + + public init(userId: String? = nil, anonUserId: String? = nil) { + self.userId = userId + self.anonUserId = anonUserId + } + } + /** - parameter tenantId: (query) @@ -4088,8 +4575,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetVotesForUserResponse */ - open class func getVotesForUser(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetVotesForUserResponse { - return try await getVotesForUserWithRequestBuilder(tenantId: tenantId, urlId: urlId, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body + open class func getVotesForUser(tenantId: String, urlId: String, options: GetVotesForUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetVotesForUserResponse { + return try await getVotesForUserWithRequestBuilder(tenantId: tenantId, urlId: urlId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -4104,7 +4591,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getVotesForUserWithRequestBuilder(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getVotesForUserWithRequestBuilder(tenantId: String, urlId: String, options: GetVotesForUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let anonUserId = options.anonUserId let localVariablePath = "/api/v1/votes/for-user" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -4177,14 +4666,14 @@ open class DefaultAPI { /** + - parameter tenantId: (query) - parameter tag: (path) - - parameter tenantId: (query) (optional) - parameter updateHashTagBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: UpdateHashTagResponse */ - open class func patchHashTag(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateHashTagResponse { - return try await patchHashTagWithRequestBuilder(tag: tag, tenantId: tenantId, updateHashTagBody: updateHashTagBody, apiConfiguration: apiConfiguration).execute().body + open class func patchHashTag(tenantId: String, tag: String, updateHashTagBody: UpdateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UpdateHashTagResponse { + return try await patchHashTagWithRequestBuilder(tenantId: tenantId, tag: tag, updateHashTagBody: updateHashTagBody, apiConfiguration: apiConfiguration).execute().body } /** @@ -4192,13 +4681,13 @@ open class DefaultAPI { - API Key: - type: apiKey x-api-key (HEADER) - name: api_key + - parameter tenantId: (query) - parameter tag: (path) - - parameter tenantId: (query) (optional) - parameter updateHashTagBody: (body) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func patchHashTagWithRequestBuilder(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func patchHashTagWithRequestBuilder(tenantId: String, tag: String, updateHashTagBody: UpdateHashTagBody? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { var localVariablePath = "/api/v1/hash-tags/{tag}" let tagPreEscape = "\(APIHelper.mapValueToPathItem(tag))" let tagPostEscape = tagPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4208,7 +4697,7 @@ open class DefaultAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ - "tenantId": (wrappedValue: tenantId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) let localVariableNillableHeaders: [String: (any Sendable)?] = [ @@ -4558,6 +5047,21 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for saveComment. */ + public struct SaveCommentOptions: Sendable { + public var isLive: Bool? + public var doSpamCheck: Bool? + public var sendEmails: Bool? + public var populateNotifications: Bool? + + public init(isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil) { + self.isLive = isLive + self.doSpamCheck = doSpamCheck + self.sendEmails = sendEmails + self.populateNotifications = populateNotifications + } + } + /** - parameter tenantId: (query) @@ -4569,8 +5073,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: APISaveCommentResponse */ - open class func saveComment(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APISaveCommentResponse { - return try await saveCommentWithRequestBuilder(tenantId: tenantId, createCommentParams: createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications, apiConfiguration: apiConfiguration).execute().body + open class func saveComment(tenantId: String, createCommentParams: CreateCommentParams, options: SaveCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APISaveCommentResponse { + return try await saveCommentWithRequestBuilder(tenantId: tenantId, createCommentParams: createCommentParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -4587,7 +5091,11 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func saveCommentWithRequestBuilder(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func saveCommentWithRequestBuilder(tenantId: String, createCommentParams: CreateCommentParams, options: SaveCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let isLive = options.isLive + let doSpamCheck = options.doSpamCheck + let sendEmails = options.sendEmails + let populateNotifications = options.populateNotifications let localVariablePath = "/api/v1/comments" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createCommentParams, codableHelper: apiConfiguration.codableHelper) @@ -4612,6 +5120,21 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for saveCommentsBulk. */ + public struct SaveCommentsBulkOptions: Sendable { + public var isLive: Bool? + public var doSpamCheck: Bool? + public var sendEmails: Bool? + public var populateNotifications: Bool? + + public init(isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil) { + self.isLive = isLive + self.doSpamCheck = doSpamCheck + self.sendEmails = sendEmails + self.populateNotifications = populateNotifications + } + } + /** - parameter tenantId: (query) @@ -4623,8 +5146,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: [SaveCommentsBulkResponse] */ - open class func saveCommentsBulk(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> [SaveCommentsBulkResponse] { - return try await saveCommentsBulkWithRequestBuilder(tenantId: tenantId, createCommentParams: createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications, apiConfiguration: apiConfiguration).execute().body + open class func saveCommentsBulk(tenantId: String, createCommentParams: [CreateCommentParams], options: SaveCommentsBulkOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> [SaveCommentsBulkResponse] { + return try await saveCommentsBulkWithRequestBuilder(tenantId: tenantId, createCommentParams: createCommentParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -4641,7 +5164,11 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder<[SaveCommentsBulkResponse]> */ - open class func saveCommentsBulkWithRequestBuilder(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder<[SaveCommentsBulkResponse]> { + open class func saveCommentsBulkWithRequestBuilder(tenantId: String, createCommentParams: [CreateCommentParams], options: SaveCommentsBulkOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder<[SaveCommentsBulkResponse]> { + let isLive = options.isLive + let doSpamCheck = options.doSpamCheck + let sendEmails = options.sendEmails + let populateNotifications = options.populateNotifications let localVariablePath = "/api/v1/comments/bulk" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: createCommentParams, codableHelper: apiConfiguration.codableHelper) @@ -4762,6 +5289,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for unBlockUserFromComment. */ + public struct UnBlockUserFromCommentOptions: Sendable { + public var userId: String? + public var anonUserId: String? + + public init(userId: String? = nil, anonUserId: String? = nil) { + self.userId = userId + self.anonUserId = anonUserId + } + } + /** - parameter tenantId: (query) @@ -4772,8 +5310,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: UnblockSuccess */ - open class func unBlockUserFromComment(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UnblockSuccess { - return try await unBlockUserFromCommentWithRequestBuilder(tenantId: tenantId, id: id, unBlockFromCommentParams: unBlockFromCommentParams, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body + open class func unBlockUserFromComment(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, options: UnBlockUserFromCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UnblockSuccess { + return try await unBlockUserFromCommentWithRequestBuilder(tenantId: tenantId, id: id, unBlockFromCommentParams: unBlockFromCommentParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -4789,7 +5327,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func unBlockUserFromCommentWithRequestBuilder(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func unBlockUserFromCommentWithRequestBuilder(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, options: UnBlockUserFromCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let anonUserId = options.anonUserId var localVariablePath = "/api/v1/comments/{id}/un-block" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4815,6 +5355,17 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for unFlagComment. */ + public struct UnFlagCommentOptions: Sendable { + public var userId: String? + public var anonUserId: String? + + public init(userId: String? = nil, anonUserId: String? = nil) { + self.userId = userId + self.anonUserId = anonUserId + } + } + /** - parameter tenantId: (query) @@ -4824,8 +5375,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: FlagCommentResponse */ - open class func unFlagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentResponse { - return try await unFlagCommentWithRequestBuilder(tenantId: tenantId, id: id, userId: userId, anonUserId: anonUserId, apiConfiguration: apiConfiguration).execute().body + open class func unFlagComment(tenantId: String, id: String, options: UnFlagCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> FlagCommentResponse { + return try await unFlagCommentWithRequestBuilder(tenantId: tenantId, id: id, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -4840,7 +5391,9 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func unFlagCommentWithRequestBuilder(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func unFlagCommentWithRequestBuilder(tenantId: String, id: String, options: UnFlagCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let anonUserId = options.anonUserId var localVariablePath = "/api/v1/comments/{id}/un-flag" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -4866,6 +5419,19 @@ open class DefaultAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: true, apiConfiguration: apiConfiguration) } + /** Optional parameters for updateComment. */ + public struct UpdateCommentOptions: Sendable { + public var contextUserId: String? + public var doSpamCheck: Bool? + public var isLive: Bool? + + public init(contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil) { + self.contextUserId = contextUserId + self.doSpamCheck = doSpamCheck + self.isLive = isLive + } + } + /** - parameter tenantId: (query) @@ -4877,8 +5443,8 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func updateComment(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await updateCommentWithRequestBuilder(tenantId: tenantId, id: id, updatableCommentParams: updatableCommentParams, contextUserId: contextUserId, doSpamCheck: doSpamCheck, isLive: isLive, apiConfiguration: apiConfiguration).execute().body + open class func updateComment(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, options: UpdateCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await updateCommentWithRequestBuilder(tenantId: tenantId, id: id, updatableCommentParams: updatableCommentParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -4895,7 +5461,10 @@ open class DefaultAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func updateCommentWithRequestBuilder(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateCommentWithRequestBuilder(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, options: UpdateCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let contextUserId = options.contextUserId + let doSpamCheck = options.doSpamCheck + let isLive = options.isLive var localVariablePath = "/api/v1/comments/{id}" let idPreEscape = "\(APIHelper.mapValueToPathItem(id))" let idPostEscape = idPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" diff --git a/client/FastCommentsSwift/APIs/ModerationAPI.swift b/client/FastCommentsSwift/APIs/ModerationAPI.swift index 722a34c..701ce43 100644 --- a/client/FastCommentsSwift/APIs/ModerationAPI.swift +++ b/client/FastCommentsSwift/APIs/ModerationAPI.swift @@ -9,28 +9,45 @@ import Foundation open class ModerationAPI { + /** Optional parameters for deleteModerationVote. */ + public struct DeleteModerationVoteOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter voteId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: VoteDeleteResponse */ - open class func deleteModerationVote(commentId: String, voteId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteDeleteResponse { - return try await deleteModerationVoteWithRequestBuilder(commentId: commentId, voteId: voteId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func deleteModerationVote(tenantId: String, commentId: String, voteId: String, options: DeleteModerationVoteOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteDeleteResponse { + return try await deleteModerationVoteWithRequestBuilder(tenantId: tenantId, commentId: commentId, voteId: voteId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - DELETE /auth/my-account/moderate-comments/vote/{commentId}/{voteId} + - DELETE /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter voteId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func deleteModerationVoteWithRequestBuilder(commentId: String, voteId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/vote/{commentId}/{voteId}" + open class func deleteModerationVoteWithRequestBuilder(tenantId: String, commentId: String, voteId: String, options: DeleteModerationVoteOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -42,6 +59,8 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -56,8 +75,34 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getApiComments. */ + public struct GetApiCommentsOptions: Sendable { + public var page: Double? + public var count: Double? + public var textSearch: String? + public var byIPFromComment: String? + public var filters: String? + public var searchFilters: String? + public var sorts: String? + public var demo: Bool? + public var sso: String? + + public init(page: Double? = nil, count: Double? = nil, textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, demo: Bool? = nil, sso: String? = nil) { + self.page = page + self.count = count + self.textSearch = textSearch + self.byIPFromComment = byIPFromComment + self.filters = filters + self.searchFilters = searchFilters + self.sorts = sorts + self.demo = demo + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter page: (query) (optional) - parameter count: (query) (optional) - parameter textSearch: (query) (optional) @@ -70,12 +115,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ModerationAPIGetCommentsResponse */ - open class func getApiComments(page: Double? = nil, count: Double? = nil, textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetCommentsResponse { - return try await getApiCommentsWithRequestBuilder(page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getApiComments(tenantId: String, options: GetApiCommentsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetCommentsResponse { + return try await getApiCommentsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/api/comments + - GET /auth/my-account/moderate-comments/mod_api/api/comments + - parameter tenantId: (query) - parameter page: (query) (optional) - parameter count: (query) (optional) - parameter textSearch: (query) (optional) @@ -88,13 +134,23 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getApiCommentsWithRequestBuilder(page: Double? = nil, count: Double? = nil, textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/api/comments" + open class func getApiCommentsWithRequestBuilder(tenantId: String, options: GetApiCommentsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let page = options.page + let count = options.count + let textSearch = options.textSearch + let byIPFromComment = options.byIPFromComment + let filters = options.filters + let searchFilters = options.searchFilters + let sorts = options.sorts + let demo = options.demo + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/api/comments" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "page": (wrappedValue: page?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "count": (wrappedValue: count?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -117,31 +173,47 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getApiExportStatus. */ + public struct GetApiExportStatusOptions: Sendable { + public var batchJobId: String? + public var sso: String? + + public init(batchJobId: String? = nil, sso: String? = nil) { + self.batchJobId = batchJobId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter batchJobId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: ModerationExportStatusResponse */ - open class func getApiExportStatus(batchJobId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationExportStatusResponse { - return try await getApiExportStatusWithRequestBuilder(batchJobId: batchJobId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getApiExportStatus(tenantId: String, options: GetApiExportStatusOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationExportStatusResponse { + return try await getApiExportStatusWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/api/export/status + - GET /auth/my-account/moderate-comments/mod_api/api/export/status + - parameter tenantId: (query) - parameter batchJobId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getApiExportStatusWithRequestBuilder(batchJobId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/api/export/status" + open class func getApiExportStatusWithRequestBuilder(tenantId: String, options: GetApiExportStatusOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let batchJobId = options.batchJobId + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/api/export/status" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "batchJobId": (wrappedValue: batchJobId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -157,8 +229,30 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getApiIds. */ + public struct GetApiIdsOptions: Sendable { + public var textSearch: String? + public var byIPFromComment: String? + public var filters: String? + public var searchFilters: String? + public var afterId: String? + public var demo: Bool? + public var sso: String? + + public init(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, afterId: String? = nil, demo: Bool? = nil, sso: String? = nil) { + self.textSearch = textSearch + self.byIPFromComment = byIPFromComment + self.filters = filters + self.searchFilters = searchFilters + self.afterId = afterId + self.demo = demo + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter textSearch: (query) (optional) - parameter byIPFromComment: (query) (optional) - parameter filters: (query) (optional) @@ -169,12 +263,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ModerationAPIGetCommentIdsResponse */ - open class func getApiIds(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, afterId: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetCommentIdsResponse { - return try await getApiIdsWithRequestBuilder(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getApiIds(tenantId: String, options: GetApiIdsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetCommentIdsResponse { + return try await getApiIdsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/api/ids + - GET /auth/my-account/moderate-comments/mod_api/api/ids + - parameter tenantId: (query) - parameter textSearch: (query) (optional) - parameter byIPFromComment: (query) (optional) - parameter filters: (query) (optional) @@ -185,13 +280,21 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getApiIdsWithRequestBuilder(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, afterId: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/api/ids" + open class func getApiIdsWithRequestBuilder(tenantId: String, options: GetApiIdsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let textSearch = options.textSearch + let byIPFromComment = options.byIPFromComment + let filters = options.filters + let searchFilters = options.searchFilters + let afterId = options.afterId + let demo = options.demo + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/api/ids" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "byIPFromComment": (wrappedValue: byIPFromComment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "filters": (wrappedValue: filters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -214,24 +317,26 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: GetBannedUsersFromCommentResponse */ - open class func getBanUsersFromComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetBannedUsersFromCommentResponse { - return try await getBanUsersFromCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getBanUsersFromComment(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetBannedUsersFromCommentResponse { + return try await getBanUsersFromCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} + - GET /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getBanUsersFromCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/ban-users/from-comment/{commentId}" + open class func getBanUsersFromCommentWithRequestBuilder(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -240,6 +345,7 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -256,24 +362,26 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: GetCommentBanStatusResponse */ - open class func getCommentBanStatus(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentBanStatusResponse { - return try await getCommentBanStatusWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getCommentBanStatus(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentBanStatusResponse { + return try await getCommentBanStatusWithRequestBuilder(tenantId: tenantId, commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} + - GET /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getCommentBanStatusWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/get-comment-ban-status/{commentId}" + open class func getCommentBanStatusWithRequestBuilder(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -282,6 +390,7 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -298,24 +407,26 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: ModerationAPIChildCommentsResponse */ - open class func getCommentChildren(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIChildCommentsResponse { - return try await getCommentChildrenWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getCommentChildren(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIChildCommentsResponse { + return try await getCommentChildrenWithRequestBuilder(tenantId: tenantId, commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/comment-children/{commentId} + - GET /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getCommentChildrenWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/comment-children/{commentId}" + open class func getCommentChildrenWithRequestBuilder(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/comment-children/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -324,6 +435,7 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -338,8 +450,28 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getCount. */ + public struct GetCountOptions: Sendable { + public var textSearch: String? + public var byIPFromComment: String? + public var filter: String? + public var searchFilters: String? + public var demo: Bool? + public var sso: String? + + public init(textSearch: String? = nil, byIPFromComment: String? = nil, filter: String? = nil, searchFilters: String? = nil, demo: Bool? = nil, sso: String? = nil) { + self.textSearch = textSearch + self.byIPFromComment = byIPFromComment + self.filter = filter + self.searchFilters = searchFilters + self.demo = demo + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter textSearch: (query) (optional) - parameter byIPFromComment: (query) (optional) - parameter filter: (query) (optional) @@ -349,12 +481,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ModerationAPICountCommentsResponse */ - open class func getCount(textSearch: String? = nil, byIPFromComment: String? = nil, filter: String? = nil, searchFilters: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPICountCommentsResponse { - return try await getCountWithRequestBuilder(textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getCount(tenantId: String, options: GetCountOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPICountCommentsResponse { + return try await getCountWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/count + - GET /auth/my-account/moderate-comments/mod_api/count + - parameter tenantId: (query) - parameter textSearch: (query) (optional) - parameter byIPFromComment: (query) (optional) - parameter filter: (query) (optional) @@ -364,13 +497,20 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getCountWithRequestBuilder(textSearch: String? = nil, byIPFromComment: String? = nil, filter: String? = nil, searchFilters: String? = nil, demo: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/count" + open class func getCountWithRequestBuilder(tenantId: String, options: GetCountOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let textSearch = options.textSearch + let byIPFromComment = options.byIPFromComment + let filter = options.filter + let searchFilters = options.searchFilters + let demo = options.demo + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/count" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "byIPFromComment": (wrappedValue: byIPFromComment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "filter": (wrappedValue: filter?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -392,27 +532,30 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: GetBannedUsersCountResponse */ - open class func getCounts(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetBannedUsersCountResponse { - return try await getCountsWithRequestBuilder(sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getCounts(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetBannedUsersCountResponse { + return try await getCountsWithRequestBuilder(tenantId: tenantId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/banned-users/counts + - GET /auth/my-account/moderate-comments/banned-users/mod_api/counts + - parameter tenantId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getCountsWithRequestBuilder(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/banned-users/counts" + open class func getCountsWithRequestBuilder(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/banned-users/mod_api/counts" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -429,24 +572,26 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: ModerationAPIGetLogsResponse */ - open class func getLogs(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetLogsResponse { - return try await getLogsWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getLogs(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIGetLogsResponse { + return try await getLogsWithRequestBuilder(tenantId: tenantId, commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/logs/{commentId} + - GET /auth/my-account/moderate-comments/mod_api/logs/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getLogsWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/logs/{commentId}" + open class func getLogsWithRequestBuilder(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/logs/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -455,6 +600,7 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -471,27 +617,30 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: GetTenantManualBadgesResponse */ - open class func getManualBadges(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantManualBadgesResponse { - return try await getManualBadgesWithRequestBuilder(sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getManualBadges(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTenantManualBadgesResponse { + return try await getManualBadgesWithRequestBuilder(tenantId: tenantId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/get-manual-badges + - GET /auth/my-account/moderate-comments/mod_api/get-manual-badges + - parameter tenantId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getManualBadgesWithRequestBuilder(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/get-manual-badges" + open class func getManualBadgesWithRequestBuilder(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/get-manual-badges" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -506,33 +655,52 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getManualBadgesForUser. */ + public struct GetManualBadgesForUserOptions: Sendable { + public var badgesUserId: String? + public var commentId: String? + public var sso: String? + + public init(badgesUserId: String? = nil, commentId: String? = nil, sso: String? = nil) { + self.badgesUserId = badgesUserId + self.commentId = commentId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter badgesUserId: (query) (optional) - parameter commentId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: GetUserManualBadgesResponse */ - open class func getManualBadgesForUser(badgesUserId: String? = nil, commentId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserManualBadgesResponse { - return try await getManualBadgesForUserWithRequestBuilder(badgesUserId: badgesUserId, commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getManualBadgesForUser(tenantId: String, options: GetManualBadgesForUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserManualBadgesResponse { + return try await getManualBadgesForUserWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/get-manual-badges-for-user + - GET /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user + - parameter tenantId: (query) - parameter badgesUserId: (query) (optional) - parameter commentId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getManualBadgesForUserWithRequestBuilder(badgesUserId: String? = nil, commentId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/get-manual-badges-for-user" + open class func getManualBadgesForUserWithRequestBuilder(tenantId: String, options: GetManualBadgesForUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let badgesUserId = options.badgesUserId + let commentId = options.commentId + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "badgesUserId": (wrappedValue: badgesUserId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "commentId": (wrappedValue: commentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -549,8 +717,22 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getModerationComment. */ + public struct GetModerationCommentOptions: Sendable { + public var includeEmail: Bool? + public var includeIP: Bool? + public var sso: String? + + public init(includeEmail: Bool? = nil, includeIP: Bool? = nil, sso: String? = nil) { + self.includeEmail = includeEmail + self.includeIP = includeIP + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter includeEmail: (query) (optional) - parameter includeIP: (query) (optional) @@ -558,12 +740,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ModerationAPICommentResponse */ - open class func getModerationComment(commentId: String, includeEmail: Bool? = nil, includeIP: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPICommentResponse { - return try await getModerationCommentWithRequestBuilder(commentId: commentId, includeEmail: includeEmail, includeIP: includeIP, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getModerationComment(tenantId: String, commentId: String, options: GetModerationCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPICommentResponse { + return try await getModerationCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/comment/{commentId} + - GET /auth/my-account/moderate-comments/mod_api/comment/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter includeEmail: (query) (optional) - parameter includeIP: (query) (optional) @@ -571,8 +754,11 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getModerationCommentWithRequestBuilder(commentId: String, includeEmail: Bool? = nil, includeIP: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/comment/{commentId}" + open class func getModerationCommentWithRequestBuilder(tenantId: String, commentId: String, options: GetModerationCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let includeEmail = options.includeEmail + let includeIP = options.includeIP + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -581,6 +767,7 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "includeEmail": (wrappedValue: includeEmail?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "includeIP": (wrappedValue: includeIP?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -599,24 +786,26 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: GetCommentTextResponse */ - open class func getModerationCommentText(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentTextResponse { - return try await getModerationCommentTextWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getModerationCommentText(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentTextResponse { + return try await getModerationCommentTextWithRequestBuilder(tenantId: tenantId, commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/get-comment-text/{commentId} + - GET /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getModerationCommentTextWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/get-comment-text/{commentId}" + open class func getModerationCommentTextWithRequestBuilder(tenantId: String, commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -625,6 +814,7 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -639,8 +829,24 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getPreBanSummary. */ + public struct GetPreBanSummaryOptions: Sendable { + public var includeByUserIdAndEmail: Bool? + public var includeByIP: Bool? + public var includeByEmailDomain: Bool? + public var sso: String? + + public init(includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil) { + self.includeByUserIdAndEmail = includeByUserIdAndEmail + self.includeByIP = includeByIP + self.includeByEmailDomain = includeByEmailDomain + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter includeByUserIdAndEmail: (query) (optional) - parameter includeByIP: (query) (optional) @@ -649,12 +855,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PreBanSummary */ - open class func getPreBanSummary(commentId: String, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PreBanSummary { - return try await getPreBanSummaryWithRequestBuilder(commentId: commentId, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getPreBanSummary(tenantId: String, commentId: String, options: GetPreBanSummaryOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PreBanSummary { + return try await getPreBanSummaryWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/pre-ban-summary/{commentId} + - GET /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter includeByUserIdAndEmail: (query) (optional) - parameter includeByIP: (query) (optional) @@ -663,8 +870,12 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getPreBanSummaryWithRequestBuilder(commentId: String, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/pre-ban-summary/{commentId}" + open class func getPreBanSummaryWithRequestBuilder(tenantId: String, commentId: String, options: GetPreBanSummaryOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let includeByUserIdAndEmail = options.includeByUserIdAndEmail + let includeByIP = options.includeByIP + let includeByEmailDomain = options.includeByEmailDomain + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -673,6 +884,7 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "includeByUserIdAndEmail": (wrappedValue: includeByUserIdAndEmail?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "includeByIP": (wrappedValue: includeByIP?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "includeByEmailDomain": (wrappedValue: includeByEmailDomain?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -690,8 +902,24 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getSearchCommentsSummary. */ + public struct GetSearchCommentsSummaryOptions: Sendable { + public var value: String? + public var filters: String? + public var searchFilters: String? + public var sso: String? + + public init(value: String? = nil, filters: String? = nil, searchFilters: String? = nil, sso: String? = nil) { + self.value = value + self.filters = filters + self.searchFilters = searchFilters + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter value: (query) (optional) - parameter filters: (query) (optional) - parameter searchFilters: (query) (optional) @@ -699,12 +927,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ModerationCommentSearchResponse */ - open class func getSearchCommentsSummary(value: String? = nil, filters: String? = nil, searchFilters: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationCommentSearchResponse { - return try await getSearchCommentsSummaryWithRequestBuilder(value: value, filters: filters, searchFilters: searchFilters, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getSearchCommentsSummary(tenantId: String, options: GetSearchCommentsSummaryOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationCommentSearchResponse { + return try await getSearchCommentsSummaryWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/search/comments/summary + - GET /auth/my-account/moderate-comments/mod_api/search/comments/summary + - parameter tenantId: (query) - parameter value: (query) (optional) - parameter filters: (query) (optional) - parameter searchFilters: (query) (optional) @@ -712,13 +941,18 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getSearchCommentsSummaryWithRequestBuilder(value: String? = nil, filters: String? = nil, searchFilters: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/search/comments/summary" + open class func getSearchCommentsSummaryWithRequestBuilder(tenantId: String, options: GetSearchCommentsSummaryOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let value = options.value + let filters = options.filters + let searchFilters = options.searchFilters + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/search/comments/summary" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "value": (wrappedValue: value?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "filters": (wrappedValue: filters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "searchFilters": (wrappedValue: searchFilters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -736,31 +970,47 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getSearchPages. */ + public struct GetSearchPagesOptions: Sendable { + public var value: String? + public var sso: String? + + public init(value: String? = nil, sso: String? = nil) { + self.value = value + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter value: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: ModerationPageSearchResponse */ - open class func getSearchPages(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationPageSearchResponse { - return try await getSearchPagesWithRequestBuilder(value: value, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getSearchPages(tenantId: String, options: GetSearchPagesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationPageSearchResponse { + return try await getSearchPagesWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/search/pages + - GET /auth/my-account/moderate-comments/mod_api/search/pages + - parameter tenantId: (query) - parameter value: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getSearchPagesWithRequestBuilder(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/search/pages" + open class func getSearchPagesWithRequestBuilder(tenantId: String, options: GetSearchPagesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let value = options.value + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/search/pages" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "value": (wrappedValue: value?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -776,31 +1026,47 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getSearchSites. */ + public struct GetSearchSitesOptions: Sendable { + public var value: String? + public var sso: String? + + public init(value: String? = nil, sso: String? = nil) { + self.value = value + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter value: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: ModerationSiteSearchResponse */ - open class func getSearchSites(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationSiteSearchResponse { - return try await getSearchSitesWithRequestBuilder(value: value, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getSearchSites(tenantId: String, options: GetSearchSitesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationSiteSearchResponse { + return try await getSearchSitesWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/search/sites + - GET /auth/my-account/moderate-comments/mod_api/search/sites + - parameter tenantId: (query) - parameter value: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getSearchSitesWithRequestBuilder(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/search/sites" + open class func getSearchSitesWithRequestBuilder(tenantId: String, options: GetSearchSitesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let value = options.value + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/search/sites" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "value": (wrappedValue: value?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -816,31 +1082,47 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getSearchSuggest. */ + public struct GetSearchSuggestOptions: Sendable { + public var textSearch: String? + public var sso: String? + + public init(textSearch: String? = nil, sso: String? = nil) { + self.textSearch = textSearch + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter textSearch: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: ModerationSuggestResponse */ - open class func getSearchSuggest(textSearch: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationSuggestResponse { - return try await getSearchSuggestWithRequestBuilder(textSearch: textSearch, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getSearchSuggest(tenantId: String, options: GetSearchSuggestOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationSuggestResponse { + return try await getSearchSuggestWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/search/suggest + - GET /auth/my-account/moderate-comments/mod_api/search/suggest + - parameter tenantId: (query) - parameter textSearch: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getSearchSuggestWithRequestBuilder(textSearch: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/search/suggest" + open class func getSearchSuggestWithRequestBuilder(tenantId: String, options: GetSearchSuggestOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let textSearch = options.textSearch + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/search/suggest" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -856,31 +1138,47 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getSearchUsers. */ + public struct GetSearchUsersOptions: Sendable { + public var value: String? + public var sso: String? + + public init(value: String? = nil, sso: String? = nil) { + self.value = value + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter value: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: ModerationUserSearchResponse */ - open class func getSearchUsers(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationUserSearchResponse { - return try await getSearchUsersWithRequestBuilder(value: value, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getSearchUsers(tenantId: String, options: GetSearchUsersOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationUserSearchResponse { + return try await getSearchUsersWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/search/users + - GET /auth/my-account/moderate-comments/mod_api/search/users + - parameter tenantId: (query) - parameter value: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getSearchUsersWithRequestBuilder(value: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/search/users" + open class func getSearchUsersWithRequestBuilder(tenantId: String, options: GetSearchUsersOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let value = options.value + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/search/users" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "value": (wrappedValue: value?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -896,31 +1194,47 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getTrustFactor. */ + public struct GetTrustFactorOptions: Sendable { + public var userId: String? + public var sso: String? + + public init(userId: String? = nil, sso: String? = nil) { + self.userId = userId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter userId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: GetUserTrustFactorResponse */ - open class func getTrustFactor(userId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserTrustFactorResponse { - return try await getTrustFactorWithRequestBuilder(userId: userId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getTrustFactor(tenantId: String, options: GetTrustFactorOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserTrustFactorResponse { + return try await getTrustFactorWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/get-trust-factor + - GET /auth/my-account/moderate-comments/mod_api/get-trust-factor + - parameter tenantId: (query) - parameter userId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getTrustFactorWithRequestBuilder(userId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/get-trust-factor" + open class func getTrustFactorWithRequestBuilder(tenantId: String, options: GetTrustFactorOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/get-trust-factor" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -938,27 +1252,30 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIModerateGetUserBanPreferencesResponse */ - open class func getUserBanPreference(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIModerateGetUserBanPreferencesResponse { - return try await getUserBanPreferenceWithRequestBuilder(sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getUserBanPreference(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIModerateGetUserBanPreferencesResponse { + return try await getUserBanPreferenceWithRequestBuilder(tenantId: tenantId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/user-ban-preference + - GET /auth/my-account/moderate-comments/mod_api/user-ban-preference + - parameter tenantId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getUserBanPreferenceWithRequestBuilder(sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/user-ban-preference" + open class func getUserBanPreferenceWithRequestBuilder(tenantId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/user-ban-preference" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -973,31 +1290,47 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getUserInternalProfile. */ + public struct GetUserInternalProfileOptions: Sendable { + public var commentId: String? + public var sso: String? + + public init(commentId: String? = nil, sso: String? = nil) { + self.commentId = commentId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: GetUserInternalProfileResponse */ - open class func getUserInternalProfile(commentId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserInternalProfileResponse { - return try await getUserInternalProfileWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getUserInternalProfile(tenantId: String, options: GetUserInternalProfileOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetUserInternalProfileResponse { + return try await getUserInternalProfileWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - GET /auth/my-account/moderate-comments/get-user-internal-profile + - GET /auth/my-account/moderate-comments/mod_api/get-user-internal-profile + - parameter tenantId: (query) - parameter commentId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getUserInternalProfileWithRequestBuilder(commentId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/get-user-internal-profile" + open class func getUserInternalProfileWithRequestBuilder(tenantId: String, options: GetUserInternalProfileOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let commentId = options.commentId + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/get-user-internal-profile" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "commentId": (wrappedValue: commentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1013,28 +1346,45 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postAdjustCommentVotes. */ + public struct PostAdjustCommentVotesOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter adjustCommentVotesParams: (body) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: AdjustVotesResponse */ - open class func postAdjustCommentVotes(commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AdjustVotesResponse { - return try await postAdjustCommentVotesWithRequestBuilder(commentId: commentId, adjustCommentVotesParams: adjustCommentVotesParams, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postAdjustCommentVotes(tenantId: String, commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, options: PostAdjustCommentVotesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AdjustVotesResponse { + return try await postAdjustCommentVotesWithRequestBuilder(tenantId: tenantId, commentId: commentId, adjustCommentVotesParams: adjustCommentVotesParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter adjustCommentVotesParams: (body) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postAdjustCommentVotesWithRequestBuilder(commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/adjust-comment-votes/{commentId}" + open class func postAdjustCommentVotesWithRequestBuilder(tenantId: String, commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, options: PostAdjustCommentVotesOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1043,6 +1393,8 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1057,8 +1409,28 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postApiExport. */ + public struct PostApiExportOptions: Sendable { + public var textSearch: String? + public var byIPFromComment: String? + public var filters: String? + public var searchFilters: String? + public var sorts: String? + public var sso: String? + + public init(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, sso: String? = nil) { + self.textSearch = textSearch + self.byIPFromComment = byIPFromComment + self.filters = filters + self.searchFilters = searchFilters + self.sorts = sorts + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter textSearch: (query) (optional) - parameter byIPFromComment: (query) (optional) - parameter filters: (query) (optional) @@ -1068,12 +1440,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ModerationExportResponse */ - open class func postApiExport(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationExportResponse { - return try await postApiExportWithRequestBuilder(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postApiExport(tenantId: String, options: PostApiExportOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationExportResponse { + return try await postApiExportWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/api/export + - POST /auth/my-account/moderate-comments/mod_api/api/export + - parameter tenantId: (query) - parameter textSearch: (query) (optional) - parameter byIPFromComment: (query) (optional) - parameter filters: (query) (optional) @@ -1083,13 +1456,20 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postApiExportWithRequestBuilder(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/api/export" + open class func postApiExportWithRequestBuilder(tenantId: String, options: PostApiExportOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let textSearch = options.textSearch + let byIPFromComment = options.byIPFromComment + let filters = options.filters + let searchFilters = options.searchFilters + let sorts = options.sorts + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/api/export" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "text-search": (wrappedValue: textSearch?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "byIPFromComment": (wrappedValue: byIPFromComment?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "filters": (wrappedValue: filters?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -1109,8 +1489,34 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postBanUserFromComment. */ + public struct PostBanUserFromCommentOptions: Sendable { + public var banEmail: Bool? + public var banEmailDomain: Bool? + public var banIP: Bool? + public var deleteAllUsersComments: Bool? + public var bannedUntil: String? + public var isShadowBan: Bool? + public var updateId: String? + public var banReason: String? + public var sso: String? + + public init(banEmail: Bool? = nil, banEmailDomain: Bool? = nil, banIP: Bool? = nil, deleteAllUsersComments: Bool? = nil, bannedUntil: String? = nil, isShadowBan: Bool? = nil, updateId: String? = nil, banReason: String? = nil, sso: String? = nil) { + self.banEmail = banEmail + self.banEmailDomain = banEmailDomain + self.banIP = banIP + self.deleteAllUsersComments = deleteAllUsersComments + self.bannedUntil = bannedUntil + self.isShadowBan = isShadowBan + self.updateId = updateId + self.banReason = banReason + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter banEmail: (query) (optional) - parameter banEmailDomain: (query) (optional) @@ -1124,12 +1530,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: BanUserFromCommentResult */ - open class func postBanUserFromComment(commentId: String, banEmail: Bool? = nil, banEmailDomain: Bool? = nil, banIP: Bool? = nil, deleteAllUsersComments: Bool? = nil, bannedUntil: String? = nil, isShadowBan: Bool? = nil, updateId: String? = nil, banReason: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BanUserFromCommentResult { - return try await postBanUserFromCommentWithRequestBuilder(commentId: commentId, banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postBanUserFromComment(tenantId: String, commentId: String, options: PostBanUserFromCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BanUserFromCommentResult { + return try await postBanUserFromCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter banEmail: (query) (optional) - parameter banEmailDomain: (query) (optional) @@ -1143,8 +1550,17 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postBanUserFromCommentWithRequestBuilder(commentId: String, banEmail: Bool? = nil, banEmailDomain: Bool? = nil, banIP: Bool? = nil, deleteAllUsersComments: Bool? = nil, bannedUntil: String? = nil, isShadowBan: Bool? = nil, updateId: String? = nil, banReason: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/ban-user/from-comment/{commentId}" + open class func postBanUserFromCommentWithRequestBuilder(tenantId: String, commentId: String, options: PostBanUserFromCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let banEmail = options.banEmail + let banEmailDomain = options.banEmailDomain + let banIP = options.banIP + let deleteAllUsersComments = options.deleteAllUsersComments + let bannedUntil = options.bannedUntil + let isShadowBan = options.isShadowBan + let updateId = options.updateId + let banReason = options.banReason + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1153,6 +1569,7 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "banEmail": (wrappedValue: banEmail?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "banEmailDomain": (wrappedValue: banEmailDomain?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "banIP": (wrappedValue: banIP?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -1177,29 +1594,32 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter banUserUndoParams: (body) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func postBanUserUndo(banUserUndoParams: BanUserUndoParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await postBanUserUndoWithRequestBuilder(banUserUndoParams: banUserUndoParams, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postBanUserUndo(tenantId: String, banUserUndoParams: BanUserUndoParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postBanUserUndoWithRequestBuilder(tenantId: tenantId, banUserUndoParams: banUserUndoParams, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/ban-user/undo + - POST /auth/my-account/moderate-comments/mod_api/ban-user/undo + - parameter tenantId: (query) - parameter banUserUndoParams: (body) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postBanUserUndoWithRequestBuilder(banUserUndoParams: BanUserUndoParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/ban-user/undo" + open class func postBanUserUndoWithRequestBuilder(tenantId: String, banUserUndoParams: BanUserUndoParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/ban-user/undo" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: banUserUndoParams, codableHelper: apiConfiguration.codableHelper) var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1214,8 +1634,24 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postBulkPreBanSummary. */ + public struct PostBulkPreBanSummaryOptions: Sendable { + public var includeByUserIdAndEmail: Bool? + public var includeByIP: Bool? + public var includeByEmailDomain: Bool? + public var sso: String? + + public init(includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil) { + self.includeByUserIdAndEmail = includeByUserIdAndEmail + self.includeByIP = includeByIP + self.includeByEmailDomain = includeByEmailDomain + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter bulkPreBanParams: (body) - parameter includeByUserIdAndEmail: (query) (optional) - parameter includeByIP: (query) (optional) @@ -1224,12 +1660,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: BulkPreBanSummary */ - open class func postBulkPreBanSummary(bulkPreBanParams: BulkPreBanParams, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BulkPreBanSummary { - return try await postBulkPreBanSummaryWithRequestBuilder(bulkPreBanParams: bulkPreBanParams, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postBulkPreBanSummary(tenantId: String, bulkPreBanParams: BulkPreBanParams, options: PostBulkPreBanSummaryOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> BulkPreBanSummary { + return try await postBulkPreBanSummaryWithRequestBuilder(tenantId: tenantId, bulkPreBanParams: bulkPreBanParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/bulk-pre-ban-summary + - POST /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary + - parameter tenantId: (query) - parameter bulkPreBanParams: (body) - parameter includeByUserIdAndEmail: (query) (optional) - parameter includeByIP: (query) (optional) @@ -1238,13 +1675,18 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postBulkPreBanSummaryWithRequestBuilder(bulkPreBanParams: BulkPreBanParams, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/bulk-pre-ban-summary" + open class func postBulkPreBanSummaryWithRequestBuilder(tenantId: String, bulkPreBanParams: BulkPreBanParams, options: PostBulkPreBanSummaryOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let includeByUserIdAndEmail = options.includeByUserIdAndEmail + let includeByIP = options.includeByIP + let includeByEmailDomain = options.includeByEmailDomain + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: bulkPreBanParams, codableHelper: apiConfiguration.codableHelper) var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "includeByUserIdAndEmail": (wrappedValue: includeByUserIdAndEmail?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "includeByIP": (wrappedValue: includeByIP?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "includeByEmailDomain": (wrappedValue: includeByEmailDomain?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -1264,29 +1706,32 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter commentsByIdsParams: (body) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: ModerationAPIChildCommentsResponse */ - open class func postCommentsByIds(commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIChildCommentsResponse { - return try await postCommentsByIdsWithRequestBuilder(commentsByIdsParams: commentsByIdsParams, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postCommentsByIds(tenantId: String, commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ModerationAPIChildCommentsResponse { + return try await postCommentsByIdsWithRequestBuilder(tenantId: tenantId, commentsByIdsParams: commentsByIdsParams, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/comments-by-ids + - POST /auth/my-account/moderate-comments/mod_api/comments-by-ids + - parameter tenantId: (query) - parameter commentsByIdsParams: (body) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postCommentsByIdsWithRequestBuilder(commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/comments-by-ids" + open class func postCommentsByIdsWithRequestBuilder(tenantId: String, commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/comments-by-ids" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters = JSONEncodingHelper.encodingParameters(forEncodableObject: commentsByIdsParams, codableHelper: apiConfiguration.codableHelper) var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1301,26 +1746,43 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postFlagComment. */ + public struct PostFlagCommentOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func postFlagComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await postFlagCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postFlagComment(tenantId: String, commentId: String, options: PostFlagCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postFlagCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/flag-comment/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postFlagCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/flag-comment/{commentId}" + open class func postFlagCommentWithRequestBuilder(tenantId: String, commentId: String, options: PostFlagCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/flag-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1329,6 +1791,8 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1343,26 +1807,43 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postRemoveComment. */ + public struct PostRemoveCommentOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: PostRemoveCommentResponse + - returns: PostRemoveCommentApiResponse */ - open class func postRemoveComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PostRemoveCommentResponse { - return try await postRemoveCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postRemoveComment(tenantId: String, commentId: String, options: PostRemoveCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PostRemoveCommentApiResponse { + return try await postRemoveCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/remove-comment/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - - returns: RequestBuilder + - returns: RequestBuilder */ - open class func postRemoveCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/remove-comment/{commentId}" + open class func postRemoveCommentWithRequestBuilder(tenantId: String, commentId: String, options: PostRemoveCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/remove-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1371,6 +1852,8 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1380,31 +1863,48 @@ open class ModerationAPI { let localVariableHeaderParameters = APIHelper.rejectNilHeaders(localVariableNillableHeaders) - let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() + let localVariableRequestBuilder: RequestBuilder.Type = apiConfiguration.requestBuilderFactory.getBuilder() return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postRestoreDeletedComment. */ + public struct PostRestoreDeletedCommentOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func postRestoreDeletedComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await postRestoreDeletedCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postRestoreDeletedComment(tenantId: String, commentId: String, options: PostRestoreDeletedCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postRestoreDeletedCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postRestoreDeletedCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/restore-deleted-comment/{commentId}" + open class func postRestoreDeletedCommentWithRequestBuilder(tenantId: String, commentId: String, options: PostRestoreDeletedCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1413,6 +1913,8 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1427,28 +1929,48 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postSetCommentApprovalStatus. */ + public struct PostSetCommentApprovalStatusOptions: Sendable { + public var approved: Bool? + public var broadcastId: String? + public var sso: String? + + public init(approved: Bool? = nil, broadcastId: String? = nil, sso: String? = nil) { + self.approved = approved + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter approved: (query) (optional) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: SetCommentApprovedResponse */ - open class func postSetCommentApprovalStatus(commentId: String, approved: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetCommentApprovedResponse { - return try await postSetCommentApprovalStatusWithRequestBuilder(commentId: commentId, approved: approved, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postSetCommentApprovalStatus(tenantId: String, commentId: String, options: PostSetCommentApprovalStatusOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetCommentApprovedResponse { + return try await postSetCommentApprovalStatusWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter approved: (query) (optional) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postSetCommentApprovalStatusWithRequestBuilder(commentId: String, approved: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/set-comment-approval-status/{commentId}" + open class func postSetCommentApprovalStatusWithRequestBuilder(tenantId: String, commentId: String, options: PostSetCommentApprovalStatusOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let approved = options.approved + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1457,7 +1979,9 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "approved": (wrappedValue: approved?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1472,28 +1996,48 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postSetCommentReviewStatus. */ + public struct PostSetCommentReviewStatusOptions: Sendable { + public var reviewed: Bool? + public var broadcastId: String? + public var sso: String? + + public init(reviewed: Bool? = nil, broadcastId: String? = nil, sso: String? = nil) { + self.reviewed = reviewed + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter reviewed: (query) (optional) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func postSetCommentReviewStatus(commentId: String, reviewed: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await postSetCommentReviewStatusWithRequestBuilder(commentId: commentId, reviewed: reviewed, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postSetCommentReviewStatus(tenantId: String, commentId: String, options: PostSetCommentReviewStatusOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postSetCommentReviewStatusWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/set-comment-review-status/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter reviewed: (query) (optional) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postSetCommentReviewStatusWithRequestBuilder(commentId: String, reviewed: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/set-comment-review-status/{commentId}" + open class func postSetCommentReviewStatusWithRequestBuilder(tenantId: String, commentId: String, options: PostSetCommentReviewStatusOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let reviewed = options.reviewed + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1502,7 +2046,9 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "reviewed": (wrappedValue: reviewed?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1517,30 +2063,53 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postSetCommentSpamStatus. */ + public struct PostSetCommentSpamStatusOptions: Sendable { + public var spam: Bool? + public var permNotSpam: Bool? + public var broadcastId: String? + public var sso: String? + + public init(spam: Bool? = nil, permNotSpam: Bool? = nil, broadcastId: String? = nil, sso: String? = nil) { + self.spam = spam + self.permNotSpam = permNotSpam + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter spam: (query) (optional) - parameter permNotSpam: (query) (optional) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func postSetCommentSpamStatus(commentId: String, spam: Bool? = nil, permNotSpam: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await postSetCommentSpamStatusWithRequestBuilder(commentId: commentId, spam: spam, permNotSpam: permNotSpam, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postSetCommentSpamStatus(tenantId: String, commentId: String, options: PostSetCommentSpamStatusOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postSetCommentSpamStatusWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter spam: (query) (optional) - parameter permNotSpam: (query) (optional) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postSetCommentSpamStatusWithRequestBuilder(commentId: String, spam: Bool? = nil, permNotSpam: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/set-comment-spam-status/{commentId}" + open class func postSetCommentSpamStatusWithRequestBuilder(tenantId: String, commentId: String, options: PostSetCommentSpamStatusOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let spam = options.spam + let permNotSpam = options.permNotSpam + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1549,8 +2118,10 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "spam": (wrappedValue: spam?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "permNotSpam": (wrappedValue: permNotSpam?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1565,28 +2136,45 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postSetCommentText. */ + public struct PostSetCommentTextOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter setCommentTextParams: (body) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: SetCommentTextResponse */ - open class func postSetCommentText(commentId: String, setCommentTextParams: SetCommentTextParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetCommentTextResponse { - return try await postSetCommentTextWithRequestBuilder(commentId: commentId, setCommentTextParams: setCommentTextParams, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postSetCommentText(tenantId: String, commentId: String, setCommentTextParams: SetCommentTextParams, options: PostSetCommentTextOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetCommentTextResponse { + return try await postSetCommentTextWithRequestBuilder(tenantId: tenantId, commentId: commentId, setCommentTextParams: setCommentTextParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/set-comment-text/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter setCommentTextParams: (body) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postSetCommentTextWithRequestBuilder(commentId: String, setCommentTextParams: SetCommentTextParams, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/set-comment-text/{commentId}" + open class func postSetCommentTextWithRequestBuilder(tenantId: String, commentId: String, setCommentTextParams: SetCommentTextParams, options: PostSetCommentTextOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1595,6 +2183,8 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1609,26 +2199,43 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postUnFlagComment. */ + public struct PostUnFlagCommentOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func postUnFlagComment(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await postUnFlagCommentWithRequestBuilder(commentId: commentId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postUnFlagComment(tenantId: String, commentId: String, options: PostUnFlagCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await postUnFlagCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/un-flag-comment/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postUnFlagCommentWithRequestBuilder(commentId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/un-flag-comment/{commentId}" + open class func postUnFlagCommentWithRequestBuilder(tenantId: String, commentId: String, options: PostUnFlagCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1637,6 +2244,8 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1651,28 +2260,48 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for postVote. */ + public struct PostVoteOptions: Sendable { + public var direction: String? + public var broadcastId: String? + public var sso: String? + + public init(direction: String? = nil, broadcastId: String? = nil, sso: String? = nil) { + self.direction = direction + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter commentId: (path) - parameter direction: (query) (optional) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: VoteResponse */ - open class func postVote(commentId: String, direction: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { - return try await postVoteWithRequestBuilder(commentId: commentId, direction: direction, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func postVote(tenantId: String, commentId: String, options: PostVoteOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { + return try await postVoteWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - POST /auth/my-account/moderate-comments/vote/{commentId} + - POST /auth/my-account/moderate-comments/mod_api/vote/{commentId} + - parameter tenantId: (query) - parameter commentId: (path) - parameter direction: (query) (optional) + - parameter broadcastId: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func postVoteWithRequestBuilder(commentId: String, direction: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - var localVariablePath = "/auth/my-account/moderate-comments/vote/{commentId}" + open class func postVoteWithRequestBuilder(tenantId: String, commentId: String, options: PostVoteOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let direction = options.direction + let broadcastId = options.broadcastId + let sso = options.sso + var localVariablePath = "/auth/my-account/moderate-comments/mod_api/vote/{commentId}" let commentIdPreEscape = "\(APIHelper.mapValueToPathItem(commentId))" let commentIdPostEscape = commentIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" localVariablePath = localVariablePath.replacingOccurrences(of: "{commentId}", with: commentIdPostEscape, options: .literal, range: nil) @@ -1681,7 +2310,9 @@ open class ModerationAPI { var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "direction": (wrappedValue: direction?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), + "broadcastId": (wrappedValue: broadcastId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1696,8 +2327,24 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for putAwardBadge. */ + public struct PutAwardBadgeOptions: Sendable { + public var userId: String? + public var commentId: String? + public var broadcastId: String? + public var sso: String? + + public init(userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil) { + self.userId = userId + self.commentId = commentId + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter badgeId: (query) - parameter userId: (query) (optional) - parameter commentId: (query) (optional) @@ -1706,12 +2353,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: AwardUserBadgeResponse */ - open class func putAwardBadge(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AwardUserBadgeResponse { - return try await putAwardBadgeWithRequestBuilder(badgeId: badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func putAwardBadge(tenantId: String, badgeId: String, options: PutAwardBadgeOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> AwardUserBadgeResponse { + return try await putAwardBadgeWithRequestBuilder(tenantId: tenantId, badgeId: badgeId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - PUT /auth/my-account/moderate-comments/award-badge + - PUT /auth/my-account/moderate-comments/mod_api/award-badge + - parameter tenantId: (query) - parameter badgeId: (query) - parameter userId: (query) (optional) - parameter commentId: (query) (optional) @@ -1720,13 +2368,18 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func putAwardBadgeWithRequestBuilder(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/award-badge" + open class func putAwardBadgeWithRequestBuilder(tenantId: String, badgeId: String, options: PutAwardBadgeOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let commentId = options.commentId + let broadcastId = options.broadcastId + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/award-badge" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "badgeId": (wrappedValue: badgeId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "commentId": (wrappedValue: commentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -1747,29 +2400,32 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter urlId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func putCloseThread(urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await putCloseThreadWithRequestBuilder(urlId: urlId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func putCloseThread(tenantId: String, urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await putCloseThreadWithRequestBuilder(tenantId: tenantId, urlId: urlId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - PUT /auth/my-account/moderate-comments/close-thread + - PUT /auth/my-account/moderate-comments/mod_api/close-thread + - parameter tenantId: (query) - parameter urlId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func putCloseThreadWithRequestBuilder(urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/close-thread" + open class func putCloseThreadWithRequestBuilder(tenantId: String, urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/close-thread" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1785,8 +2441,24 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for putRemoveBadge. */ + public struct PutRemoveBadgeOptions: Sendable { + public var userId: String? + public var commentId: String? + public var broadcastId: String? + public var sso: String? + + public init(userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil) { + self.userId = userId + self.commentId = commentId + self.broadcastId = broadcastId + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter badgeId: (query) - parameter userId: (query) (optional) - parameter commentId: (query) (optional) @@ -1795,12 +2467,13 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RemoveUserBadgeResponse */ - open class func putRemoveBadge(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> RemoveUserBadgeResponse { - return try await putRemoveBadgeWithRequestBuilder(badgeId: badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func putRemoveBadge(tenantId: String, badgeId: String, options: PutRemoveBadgeOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> RemoveUserBadgeResponse { + return try await putRemoveBadgeWithRequestBuilder(tenantId: tenantId, badgeId: badgeId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - PUT /auth/my-account/moderate-comments/remove-badge + - PUT /auth/my-account/moderate-comments/mod_api/remove-badge + - parameter tenantId: (query) - parameter badgeId: (query) - parameter userId: (query) (optional) - parameter commentId: (query) (optional) @@ -1809,13 +2482,18 @@ open class ModerationAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func putRemoveBadgeWithRequestBuilder(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/remove-badge" + open class func putRemoveBadgeWithRequestBuilder(tenantId: String, badgeId: String, options: PutRemoveBadgeOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let commentId = options.commentId + let broadcastId = options.broadcastId + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/remove-badge" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "badgeId": (wrappedValue: badgeId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "commentId": (wrappedValue: commentId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), @@ -1836,29 +2514,32 @@ open class ModerationAPI { /** + - parameter tenantId: (query) - parameter urlId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: APIEmptyResponse */ - open class func putReopenThread(urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { - return try await putReopenThreadWithRequestBuilder(urlId: urlId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func putReopenThread(tenantId: String, urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> APIEmptyResponse { + return try await putReopenThreadWithRequestBuilder(tenantId: tenantId, urlId: urlId, sso: sso, apiConfiguration: apiConfiguration).execute().body } /** - - PUT /auth/my-account/moderate-comments/reopen-thread + - PUT /auth/my-account/moderate-comments/mod_api/reopen-thread + - parameter tenantId: (query) - parameter urlId: (query) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func putReopenThreadWithRequestBuilder(urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/reopen-thread" + open class func putReopenThreadWithRequestBuilder(tenantId: String, urlId: String, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/reopen-thread" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "urlId": (wrappedValue: urlId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), ]) @@ -1874,33 +2555,52 @@ open class ModerationAPI { return localVariableRequestBuilder.init(method: "PUT", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for setTrustFactor. */ + public struct SetTrustFactorOptions: Sendable { + public var userId: String? + public var trustFactor: String? + public var sso: String? + + public init(userId: String? = nil, trustFactor: String? = nil, sso: String? = nil) { + self.userId = userId + self.trustFactor = trustFactor + self.sso = sso + } + } + /** + - parameter tenantId: (query) - parameter userId: (query) (optional) - parameter trustFactor: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: SetUserTrustFactorResponse */ - open class func setTrustFactor(userId: String? = nil, trustFactor: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetUserTrustFactorResponse { - return try await setTrustFactorWithRequestBuilder(userId: userId, trustFactor: trustFactor, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func setTrustFactor(tenantId: String, options: SetTrustFactorOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SetUserTrustFactorResponse { + return try await setTrustFactorWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** - - PUT /auth/my-account/moderate-comments/set-trust-factor + - PUT /auth/my-account/moderate-comments/mod_api/set-trust-factor + - parameter tenantId: (query) - parameter userId: (query) (optional) - parameter trustFactor: (query) (optional) - parameter sso: (query) (optional) - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func setTrustFactorWithRequestBuilder(userId: String? = nil, trustFactor: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { - let localVariablePath = "/auth/my-account/moderate-comments/set-trust-factor" + open class func setTrustFactorWithRequestBuilder(tenantId: String, options: SetTrustFactorOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let trustFactor = options.trustFactor + let sso = options.sso + let localVariablePath = "/auth/my-account/moderate-comments/mod_api/set-trust-factor" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil var localVariableUrlComponents = URLComponents(string: localVariableURLString) localVariableUrlComponents?.queryItems = APIHelper.mapValuesToQueryItems([ + "tenantId": (wrappedValue: tenantId.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "userId": (wrappedValue: userId?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "trustFactor": (wrappedValue: trustFactor?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), "sso": (wrappedValue: sso?.asParameter(codableHelper: apiConfiguration.codableHelper), isExplode: true), diff --git a/client/FastCommentsSwift/APIs/PublicAPI.swift b/client/FastCommentsSwift/APIs/PublicAPI.swift index e140e85..27f35a7 100644 --- a/client/FastCommentsSwift/APIs/PublicAPI.swift +++ b/client/FastCommentsSwift/APIs/PublicAPI.swift @@ -99,6 +99,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for createCommentPublic. */ + public struct CreateCommentPublicOptions: Sendable { + public var sessionId: String? + public var sso: String? + + public init(sessionId: String? = nil, sso: String? = nil) { + self.sessionId = sessionId + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -110,8 +121,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: SaveCommentsResponseWithPresence */ - open class func createCommentPublic(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SaveCommentsResponseWithPresence { - return try await createCommentPublicWithRequestBuilder(tenantId: tenantId, urlId: urlId, broadcastId: broadcastId, commentData: commentData, sessionId: sessionId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func createCommentPublic(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, options: CreateCommentPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SaveCommentsResponseWithPresence { + return try await createCommentPublicWithRequestBuilder(tenantId: tenantId, urlId: urlId, broadcastId: broadcastId, commentData: commentData, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -125,7 +136,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func createCommentPublicWithRequestBuilder(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createCommentPublicWithRequestBuilder(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, options: CreateCommentPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let sessionId = options.sessionId + let sso = options.sso var localVariablePath = "/comments/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -152,6 +165,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for createFeedPostPublic. */ + public struct CreateFeedPostPublicOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -161,8 +185,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: CreateFeedPostResponse */ - open class func createFeedPostPublic(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostResponse { - return try await createFeedPostPublicWithRequestBuilder(tenantId: tenantId, createFeedPostParams: createFeedPostParams, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func createFeedPostPublic(tenantId: String, createFeedPostParams: CreateFeedPostParams, options: CreateFeedPostPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostResponse { + return try await createFeedPostPublicWithRequestBuilder(tenantId: tenantId, createFeedPostParams: createFeedPostParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -174,7 +198,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func createFeedPostPublicWithRequestBuilder(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func createFeedPostPublicWithRequestBuilder(tenantId: String, createFeedPostParams: CreateFeedPostParams, options: CreateFeedPostPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso var localVariablePath = "/feed-posts/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -292,6 +318,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for deleteCommentPublic. */ + public struct DeleteCommentPublicOptions: Sendable { + public var editKey: String? + public var sso: String? + + public init(editKey: String? = nil, sso: String? = nil) { + self.editKey = editKey + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -302,8 +339,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PublicAPIDeleteCommentResponse */ - open class func deleteCommentPublic(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPIDeleteCommentResponse { - return try await deleteCommentPublicWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, editKey: editKey, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func deleteCommentPublic(tenantId: String, commentId: String, broadcastId: String, options: DeleteCommentPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPIDeleteCommentResponse { + return try await deleteCommentPublicWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -316,7 +353,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func deleteCommentPublicWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteCommentPublicWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, options: DeleteCommentPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let editKey = options.editKey + let sso = options.sso var localVariablePath = "/comments/{tenantId}/{commentId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -345,6 +384,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for deleteCommentVote. */ + public struct DeleteCommentVoteOptions: Sendable { + public var editKey: String? + public var sso: String? + + public init(editKey: String? = nil, sso: String? = nil) { + self.editKey = editKey + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -357,8 +407,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: VoteDeleteResponse */ - open class func deleteCommentVote(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteDeleteResponse { - return try await deleteCommentVoteWithRequestBuilder(tenantId: tenantId, commentId: commentId, voteId: voteId, urlId: urlId, broadcastId: broadcastId, editKey: editKey, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func deleteCommentVote(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, options: DeleteCommentVoteOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteDeleteResponse { + return try await deleteCommentVoteWithRequestBuilder(tenantId: tenantId, commentId: commentId, voteId: voteId, urlId: urlId, broadcastId: broadcastId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -373,7 +423,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func deleteCommentVoteWithRequestBuilder(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteCommentVoteWithRequestBuilder(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, options: DeleteCommentVoteOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let editKey = options.editKey + let sso = options.sso var localVariablePath = "/comments/{tenantId}/{commentId}/vote/{voteId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -406,6 +458,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "DELETE", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for deleteFeedPostPublic. */ + public struct DeleteFeedPostPublicOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -415,8 +478,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: DeleteFeedPostPublicResponse */ - open class func deleteFeedPostPublic(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteFeedPostPublicResponse { - return try await deleteFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func deleteFeedPostPublic(tenantId: String, postId: String, options: DeleteFeedPostPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> DeleteFeedPostPublicResponse { + return try await deleteFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -428,7 +491,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func deleteFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func deleteFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, options: DeleteFeedPostPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso var localVariablePath = "/feed-posts/{tenantId}/{postId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -591,6 +656,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getCommentText. */ + public struct GetCommentTextOptions: Sendable { + public var editKey: String? + public var sso: String? + + public init(editKey: String? = nil, sso: String? = nil) { + self.editKey = editKey + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -600,8 +676,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PublicAPIGetCommentTextResponse */ - open class func getCommentText(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPIGetCommentTextResponse { - return try await getCommentTextWithRequestBuilder(tenantId: tenantId, commentId: commentId, editKey: editKey, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getCommentText(tenantId: String, commentId: String, options: GetCommentTextOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPIGetCommentTextResponse { + return try await getCommentTextWithRequestBuilder(tenantId: tenantId, commentId: commentId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -613,7 +689,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getCommentTextWithRequestBuilder(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentTextWithRequestBuilder(tenantId: String, commentId: String, options: GetCommentTextOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let editKey = options.editKey + let sso = options.sso var localVariablePath = "/comments/{tenantId}/{commentId}/text" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -691,6 +769,27 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getCommentsForUser. */ + public struct GetCommentsForUserOptions: Sendable { + public var userId: String? + public var direction: SortDirections? + public var repliesToUserId: String? + public var page: Double? + public var includei10n: Bool? + public var locale: String? + public var isCrawler: Bool? + + public init(userId: String? = nil, direction: SortDirections? = nil, repliesToUserId: String? = nil, page: Double? = nil, includei10n: Bool? = nil, locale: String? = nil, isCrawler: Bool? = nil) { + self.userId = userId + self.direction = direction + self.repliesToUserId = repliesToUserId + self.page = page + self.includei10n = includei10n + self.locale = locale + self.isCrawler = isCrawler + } + } + /** - parameter userId: (query) (optional) @@ -703,8 +802,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetCommentsForUserResponse */ - open class func getCommentsForUser(userId: String? = nil, direction: SortDirections? = nil, repliesToUserId: String? = nil, page: Double? = nil, includei10n: Bool? = nil, locale: String? = nil, isCrawler: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentsForUserResponse { - return try await getCommentsForUserWithRequestBuilder(userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler, apiConfiguration: apiConfiguration).execute().body + open class func getCommentsForUser(options: GetCommentsForUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentsForUserResponse { + return try await getCommentsForUserWithRequestBuilder(options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -719,7 +818,14 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getCommentsForUserWithRequestBuilder(userId: String? = nil, direction: SortDirections? = nil, repliesToUserId: String? = nil, page: Double? = nil, includei10n: Bool? = nil, locale: String? = nil, isCrawler: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentsForUserWithRequestBuilder(options: GetCommentsForUserOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let userId = options.userId + let direction = options.direction + let repliesToUserId = options.repliesToUserId + let page = options.page + let includei10n = options.includei10n + let locale = options.locale + let isCrawler = options.isCrawler let localVariablePath = "/comments-for-user" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -746,6 +852,65 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getCommentsPublic. */ + public struct GetCommentsPublicOptions: Sendable { + public var page: Int? + public var direction: SortDirections? + public var sso: String? + public var skip: Int? + public var skipChildren: Int? + public var limit: Int? + public var limitChildren: Int? + public var countChildren: Bool? + public var fetchPageForCommentId: String? + public var includeConfig: Bool? + public var countAll: Bool? + public var includei10n: Bool? + public var locale: String? + public var modules: String? + public var isCrawler: Bool? + public var includeNotificationCount: Bool? + public var asTree: Bool? + public var maxTreeDepth: Int? + public var useFullTranslationIds: Bool? + public var parentId: String? + public var searchText: String? + public var hashTags: [String]? + public var userId: String? + public var customConfigStr: String? + public var afterCommentId: String? + public var beforeCommentId: String? + + public init(page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil) { + self.page = page + self.direction = direction + self.sso = sso + self.skip = skip + self.skipChildren = skipChildren + self.limit = limit + self.limitChildren = limitChildren + self.countChildren = countChildren + self.fetchPageForCommentId = fetchPageForCommentId + self.includeConfig = includeConfig + self.countAll = countAll + self.includei10n = includei10n + self.locale = locale + self.modules = modules + self.isCrawler = isCrawler + self.includeNotificationCount = includeNotificationCount + self.asTree = asTree + self.maxTreeDepth = maxTreeDepth + self.useFullTranslationIds = useFullTranslationIds + self.parentId = parentId + self.searchText = searchText + self.hashTags = hashTags + self.userId = userId + self.customConfigStr = customConfigStr + self.afterCommentId = afterCommentId + self.beforeCommentId = beforeCommentId + } + } + /** - parameter tenantId: (path) @@ -779,8 +944,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetCommentsResponseWithPresencePublicComment */ - open class func getCommentsPublic(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentsResponseWithPresencePublicComment { - return try await getCommentsPublicWithRequestBuilder(tenantId: tenantId, urlId: urlId, page: page, direction: direction, sso: sso, skip: skip, skipChildren: skipChildren, limit: limit, limitChildren: limitChildren, countChildren: countChildren, fetchPageForCommentId: fetchPageForCommentId, includeConfig: includeConfig, countAll: countAll, includei10n: includei10n, locale: locale, modules: modules, isCrawler: isCrawler, includeNotificationCount: includeNotificationCount, asTree: asTree, maxTreeDepth: maxTreeDepth, useFullTranslationIds: useFullTranslationIds, parentId: parentId, searchText: searchText, hashTags: hashTags, userId: userId, customConfigStr: customConfigStr, afterCommentId: afterCommentId, beforeCommentId: beforeCommentId, apiConfiguration: apiConfiguration).execute().body + open class func getCommentsPublic(tenantId: String, urlId: String, options: GetCommentsPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetCommentsResponseWithPresencePublicComment { + return try await getCommentsPublicWithRequestBuilder(tenantId: tenantId, urlId: urlId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -817,7 +982,33 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getCommentsPublicWithRequestBuilder(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getCommentsPublicWithRequestBuilder(tenantId: String, urlId: String, options: GetCommentsPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let page = options.page + let direction = options.direction + let sso = options.sso + let skip = options.skip + let skipChildren = options.skipChildren + let limit = options.limit + let limitChildren = options.limitChildren + let countChildren = options.countChildren + let fetchPageForCommentId = options.fetchPageForCommentId + let includeConfig = options.includeConfig + let countAll = options.countAll + let includei10n = options.includei10n + let locale = options.locale + let modules = options.modules + let isCrawler = options.isCrawler + let includeNotificationCount = options.includeNotificationCount + let asTree = options.asTree + let maxTreeDepth = options.maxTreeDepth + let useFullTranslationIds = options.useFullTranslationIds + let parentId = options.parentId + let searchText = options.searchText + let hashTags = options.hashTags + let userId = options.userId + let customConfigStr = options.customConfigStr + let afterCommentId = options.afterCommentId + let beforeCommentId = options.beforeCommentId var localVariablePath = "/comments/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -919,6 +1110,25 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getFeedPostsPublic. */ + public struct GetFeedPostsPublicOptions: Sendable { + public var afterId: String? + public var limit: Int? + public var tags: [String]? + public var sso: String? + public var isCrawler: Bool? + public var includeUserInfo: Bool? + + public init(afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil) { + self.afterId = afterId + self.limit = limit + self.tags = tags + self.sso = sso + self.isCrawler = isCrawler + self.includeUserInfo = includeUserInfo + } + } + /** - parameter tenantId: (path) @@ -931,8 +1141,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PublicFeedPostsResponse */ - open class func getFeedPostsPublic(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicFeedPostsResponse { - return try await getFeedPostsPublicWithRequestBuilder(tenantId: tenantId, afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo, apiConfiguration: apiConfiguration).execute().body + open class func getFeedPostsPublic(tenantId: String, options: GetFeedPostsPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicFeedPostsResponse { + return try await getFeedPostsPublicWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -948,7 +1158,13 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getFeedPostsPublicWithRequestBuilder(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getFeedPostsPublicWithRequestBuilder(tenantId: String, options: GetFeedPostsPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let afterId = options.afterId + let limit = options.limit + let tags = options.tags + let sso = options.sso + let isCrawler = options.isCrawler + let includeUserInfo = options.includeUserInfo var localVariablePath = "/feed-posts/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1064,6 +1280,19 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getGifsSearch. */ + public struct GetGifsSearchOptions: Sendable { + public var locale: String? + public var rating: String? + public var page: Double? + + public init(locale: String? = nil, rating: String? = nil, page: Double? = nil) { + self.locale = locale + self.rating = rating + self.page = page + } + } + /** - parameter tenantId: (path) @@ -1074,8 +1303,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetGifsSearchResponse */ - open class func getGifsSearch(tenantId: String, search: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetGifsSearchResponse { - return try await getGifsSearchWithRequestBuilder(tenantId: tenantId, search: search, locale: locale, rating: rating, page: page, apiConfiguration: apiConfiguration).execute().body + open class func getGifsSearch(tenantId: String, search: String, options: GetGifsSearchOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetGifsSearchResponse { + return try await getGifsSearchWithRequestBuilder(tenantId: tenantId, search: search, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1088,7 +1317,10 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getGifsSearchWithRequestBuilder(tenantId: String, search: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getGifsSearchWithRequestBuilder(tenantId: String, search: String, options: GetGifsSearchOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let locale = options.locale + let rating = options.rating + let page = options.page var localVariablePath = "/gifs/search/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1115,6 +1347,19 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getGifsTrending. */ + public struct GetGifsTrendingOptions: Sendable { + public var locale: String? + public var rating: String? + public var page: Double? + + public init(locale: String? = nil, rating: String? = nil, page: Double? = nil) { + self.locale = locale + self.rating = rating + self.page = page + } + } + /** - parameter tenantId: (path) @@ -1124,8 +1369,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetGifsTrendingResponse */ - open class func getGifsTrending(tenantId: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetGifsTrendingResponse { - return try await getGifsTrendingWithRequestBuilder(tenantId: tenantId, locale: locale, rating: rating, page: page, apiConfiguration: apiConfiguration).execute().body + open class func getGifsTrending(tenantId: String, options: GetGifsTrendingOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetGifsTrendingResponse { + return try await getGifsTrendingWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1137,7 +1382,10 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getGifsTrendingWithRequestBuilder(tenantId: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getGifsTrendingWithRequestBuilder(tenantId: String, options: GetGifsTrendingOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let locale = options.locale + let rating = options.rating + let page = options.page var localVariablePath = "/gifs/trending/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1215,6 +1463,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getOfflineUsers. */ + public struct GetOfflineUsersOptions: Sendable { + public var afterName: String? + public var afterUserId: String? + + public init(afterName: String? = nil, afterUserId: String? = nil) { + self.afterName = afterName + self.afterUserId = afterUserId + } + } + /** - parameter tenantId: (path) @@ -1224,8 +1483,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PageUsersOfflineResponse */ - open class func getOfflineUsers(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PageUsersOfflineResponse { - return try await getOfflineUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, afterName: afterName, afterUserId: afterUserId, apiConfiguration: apiConfiguration).execute().body + open class func getOfflineUsers(tenantId: String, urlId: String, options: GetOfflineUsersOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PageUsersOfflineResponse { + return try await getOfflineUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1238,7 +1497,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getOfflineUsersWithRequestBuilder(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getOfflineUsersWithRequestBuilder(tenantId: String, urlId: String, options: GetOfflineUsersOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let afterName = options.afterName + let afterUserId = options.afterUserId var localVariablePath = "/pages/{tenantId}/users/offline" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1264,6 +1525,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getOnlineUsers. */ + public struct GetOnlineUsersOptions: Sendable { + public var afterName: String? + public var afterUserId: String? + + public init(afterName: String? = nil, afterUserId: String? = nil) { + self.afterName = afterName + self.afterUserId = afterUserId + } + } + /** - parameter tenantId: (path) @@ -1273,8 +1545,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PageUsersOnlineResponse */ - open class func getOnlineUsers(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PageUsersOnlineResponse { - return try await getOnlineUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, afterName: afterName, afterUserId: afterUserId, apiConfiguration: apiConfiguration).execute().body + open class func getOnlineUsers(tenantId: String, urlId: String, options: GetOnlineUsersOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PageUsersOnlineResponse { + return try await getOnlineUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1287,7 +1559,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getOnlineUsersWithRequestBuilder(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getOnlineUsersWithRequestBuilder(tenantId: String, urlId: String, options: GetOnlineUsersOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let afterName = options.afterName + let afterUserId = options.afterUserId var localVariablePath = "/pages/{tenantId}/users/online" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1313,6 +1587,23 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getPagesPublic. */ + public struct GetPagesPublicOptions: Sendable { + public var cursor: String? + public var limit: Int? + public var q: String? + public var sortBy: PagesSortBy? + public var hasComments: Bool? + + public init(cursor: String? = nil, limit: Int? = nil, q: String? = nil, sortBy: PagesSortBy? = nil, hasComments: Bool? = nil) { + self.cursor = cursor + self.limit = limit + self.q = q + self.sortBy = sortBy + self.hasComments = hasComments + } + } + /** - parameter tenantId: (path) @@ -1324,8 +1615,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetPublicPagesResponse */ - open class func getPagesPublic(tenantId: String, cursor: String? = nil, limit: Int? = nil, q: String? = nil, sortBy: PagesSortBy? = nil, hasComments: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPublicPagesResponse { - return try await getPagesPublicWithRequestBuilder(tenantId: tenantId, cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments, apiConfiguration: apiConfiguration).execute().body + open class func getPagesPublic(tenantId: String, options: GetPagesPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetPublicPagesResponse { + return try await getPagesPublicWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1340,7 +1631,12 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getPagesPublicWithRequestBuilder(tenantId: String, cursor: String? = nil, limit: Int? = nil, q: String? = nil, sortBy: PagesSortBy? = nil, hasComments: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getPagesPublicWithRequestBuilder(tenantId: String, options: GetPagesPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let cursor = options.cursor + let limit = options.limit + let q = options.q + let sortBy = options.sortBy + let hasComments = options.hasComments var localVariablePath = "/pages/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1368,6 +1664,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getTranslations. */ + public struct GetTranslationsOptions: Sendable { + public var locale: String? + public var useFullTranslationIds: Bool? + + public init(locale: String? = nil, useFullTranslationIds: Bool? = nil) { + self.locale = locale + self.useFullTranslationIds = useFullTranslationIds + } + } + /** - parameter namespace: (path) @@ -1377,8 +1684,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetTranslationsResponse */ - open class func getTranslations(namespace: String, component: String, locale: String? = nil, useFullTranslationIds: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTranslationsResponse { - return try await getTranslationsWithRequestBuilder(namespace: namespace, component: component, locale: locale, useFullTranslationIds: useFullTranslationIds, apiConfiguration: apiConfiguration).execute().body + open class func getTranslations(namespace: String, component: String, options: GetTranslationsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetTranslationsResponse { + return try await getTranslationsWithRequestBuilder(namespace: namespace, component: component, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1390,7 +1697,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getTranslationsWithRequestBuilder(namespace: String, component: String, locale: String? = nil, useFullTranslationIds: Bool? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getTranslationsWithRequestBuilder(namespace: String, component: String, options: GetTranslationsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let locale = options.locale + let useFullTranslationIds = options.useFullTranslationIds var localVariablePath = "/translations/{namespace}/{component}" let namespacePreEscape = "\(APIHelper.mapValueToPathItem(namespace))" let namespacePostEscape = namespacePreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1458,6 +1767,35 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getUserNotifications. */ + public struct GetUserNotificationsOptions: Sendable { + public var urlId: String? + public var pageSize: Int? + public var afterId: String? + public var includeContext: Bool? + public var afterCreatedAt: Int64? + public var unreadOnly: Bool? + public var dmOnly: Bool? + public var noDm: Bool? + public var includeTranslations: Bool? + public var includeTenantNotifications: Bool? + public var sso: String? + + public init(urlId: String? = nil, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, includeTenantNotifications: Bool? = nil, sso: String? = nil) { + self.urlId = urlId + self.pageSize = pageSize + self.afterId = afterId + self.includeContext = includeContext + self.afterCreatedAt = afterCreatedAt + self.unreadOnly = unreadOnly + self.dmOnly = dmOnly + self.noDm = noDm + self.includeTranslations = includeTranslations + self.includeTenantNotifications = includeTenantNotifications + self.sso = sso + } + } + /** - parameter tenantId: (query) @@ -1475,8 +1813,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: GetMyNotificationsResponse */ - open class func getUserNotifications(tenantId: String, urlId: String? = nil, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, includeTenantNotifications: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetMyNotificationsResponse { - return try await getUserNotificationsWithRequestBuilder(tenantId: tenantId, urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getUserNotifications(tenantId: String, options: GetUserNotificationsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> GetMyNotificationsResponse { + return try await getUserNotificationsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1496,7 +1834,18 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getUserNotificationsWithRequestBuilder(tenantId: String, urlId: String? = nil, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, includeTenantNotifications: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserNotificationsWithRequestBuilder(tenantId: String, options: GetUserNotificationsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let urlId = options.urlId + let pageSize = options.pageSize + let afterId = options.afterId + let includeContext = options.includeContext + let afterCreatedAt = options.afterCreatedAt + let unreadOnly = options.unreadOnly + let dmOnly = options.dmOnly + let noDm = options.noDm + let includeTranslations = options.includeTranslations + let includeTenantNotifications = options.includeTenantNotifications + let sso = options.sso let localVariablePath = "/user-notifications" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -1571,6 +1920,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for getUserReactsPublic. */ + public struct GetUserReactsPublicOptions: Sendable { + public var postIds: [String]? + public var sso: String? + + public init(postIds: [String]? = nil, sso: String? = nil) { + self.postIds = postIds + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -1579,8 +1939,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: UserReactsResponse */ - open class func getUserReactsPublic(tenantId: String, postIds: [String]? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UserReactsResponse { - return try await getUserReactsPublicWithRequestBuilder(tenantId: tenantId, postIds: postIds, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func getUserReactsPublic(tenantId: String, options: GetUserReactsPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UserReactsResponse { + return try await getUserReactsPublicWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1591,7 +1951,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func getUserReactsPublicWithRequestBuilder(tenantId: String, postIds: [String]? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func getUserReactsPublicWithRequestBuilder(tenantId: String, options: GetUserReactsPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let postIds = options.postIds + let sso = options.sso var localVariablePath = "/feed-posts/{tenantId}/user-reacts" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -1920,6 +2282,19 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for reactFeedPostPublic. */ + public struct ReactFeedPostPublicOptions: Sendable { + public var isUndo: Bool? + public var broadcastId: String? + public var sso: String? + + public init(isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil) { + self.isUndo = isUndo + self.broadcastId = broadcastId + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -1931,8 +2306,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ReactFeedPostResponse */ - open class func reactFeedPostPublic(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ReactFeedPostResponse { - return try await reactFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, reactBodyParams: reactBodyParams, isUndo: isUndo, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func reactFeedPostPublic(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, options: ReactFeedPostPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ReactFeedPostResponse { + return try await reactFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, reactBodyParams: reactBodyParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -1946,7 +2321,10 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func reactFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func reactFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, options: ReactFeedPostPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let isUndo = options.isUndo + let broadcastId = options.broadcastId + let sso = options.sso var localVariablePath = "/feed-posts/{tenantId}/react/{postId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2015,6 +2393,25 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for resetUserNotifications. */ + public struct ResetUserNotificationsOptions: Sendable { + public var afterId: String? + public var afterCreatedAt: Int64? + public var unreadOnly: Bool? + public var dmOnly: Bool? + public var noDm: Bool? + public var sso: String? + + public init(afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil) { + self.afterId = afterId + self.afterCreatedAt = afterCreatedAt + self.unreadOnly = unreadOnly + self.dmOnly = dmOnly + self.noDm = noDm + self.sso = sso + } + } + /** - parameter tenantId: (query) @@ -2027,8 +2424,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: ResetUserNotificationsResponse */ - open class func resetUserNotifications(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ResetUserNotificationsResponse { - return try await resetUserNotificationsWithRequestBuilder(tenantId: tenantId, afterId: afterId, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func resetUserNotifications(tenantId: String, options: ResetUserNotificationsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> ResetUserNotificationsResponse { + return try await resetUserNotificationsWithRequestBuilder(tenantId: tenantId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2043,7 +2440,13 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func resetUserNotificationsWithRequestBuilder(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func resetUserNotificationsWithRequestBuilder(tenantId: String, options: ResetUserNotificationsOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let afterId = options.afterId + let afterCreatedAt = options.afterCreatedAt + let unreadOnly = options.unreadOnly + let dmOnly = options.dmOnly + let noDm = options.noDm + let sso = options.sso let localVariablePath = "/user-notifications/reset" let localVariableURLString = apiConfiguration.basePath + localVariablePath let localVariableParameters: [String: any Sendable]? = nil @@ -2078,6 +2481,21 @@ open class PublicAPI { case site = "site" } + /** Optional parameters for searchUsers. */ + public struct SearchUsersOptions: Sendable { + public var usernameStartsWith: String? + public var mentionGroupIds: [String]? + public var sso: String? + public var searchSection: SearchSection_searchUsers? + + public init(usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil) { + self.usernameStartsWith = usernameStartsWith + self.mentionGroupIds = mentionGroupIds + self.sso = sso + self.searchSection = searchSection + } + } + /** - parameter tenantId: (path) @@ -2089,8 +2507,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: SearchUsersResult */ - open class func searchUsers(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SearchUsersResult { - return try await searchUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, usernameStartsWith: usernameStartsWith, mentionGroupIds: mentionGroupIds, sso: sso, searchSection: searchSection, apiConfiguration: apiConfiguration).execute().body + open class func searchUsers(tenantId: String, urlId: String, options: SearchUsersOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> SearchUsersResult { + return try await searchUsersWithRequestBuilder(tenantId: tenantId, urlId: urlId, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2104,7 +2522,11 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func searchUsersWithRequestBuilder(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func searchUsersWithRequestBuilder(tenantId: String, urlId: String, options: SearchUsersOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let usernameStartsWith = options.usernameStartsWith + let mentionGroupIds = options.mentionGroupIds + let sso = options.sso + let searchSection = options.searchSection var localVariablePath = "/user-search/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2132,6 +2554,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "GET", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for setCommentText. */ + public struct SetCommentTextOptions: Sendable { + public var editKey: String? + public var sso: String? + + public init(editKey: String? = nil, sso: String? = nil) { + self.editKey = editKey + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -2143,8 +2576,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: PublicAPISetCommentTextResponse */ - open class func setCommentText(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPISetCommentTextResponse { - return try await setCommentTextWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, commentTextUpdateRequest: commentTextUpdateRequest, editKey: editKey, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func setCommentText(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, options: SetCommentTextOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> PublicAPISetCommentTextResponse { + return try await setCommentTextWithRequestBuilder(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, commentTextUpdateRequest: commentTextUpdateRequest, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2158,7 +2591,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func setCommentTextWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func setCommentTextWithRequestBuilder(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, options: SetCommentTextOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let editKey = options.editKey + let sso = options.sso var localVariablePath = "/comments/{tenantId}/{commentId}/update-text" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2334,6 +2769,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for updateFeedPostPublic. */ + public struct UpdateFeedPostPublicOptions: Sendable { + public var broadcastId: String? + public var sso: String? + + public init(broadcastId: String? = nil, sso: String? = nil) { + self.broadcastId = broadcastId + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -2344,8 +2790,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: CreateFeedPostResponse */ - open class func updateFeedPostPublic(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostResponse { - return try await updateFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, updateFeedPostParams: updateFeedPostParams, broadcastId: broadcastId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func updateFeedPostPublic(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, options: UpdateFeedPostPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> CreateFeedPostResponse { + return try await updateFeedPostPublicWithRequestBuilder(tenantId: tenantId, postId: postId, updateFeedPostParams: updateFeedPostParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2358,7 +2804,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func updateFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func updateFeedPostPublicWithRequestBuilder(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, options: UpdateFeedPostPublicOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let broadcastId = options.broadcastId + let sso = options.sso var localVariablePath = "/feed-posts/{tenantId}/{postId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2569,6 +3017,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for uploadImage. */ + public struct UploadImageOptions: Sendable { + public var sizePreset: SizePreset? + public var urlId: String? + + public init(sizePreset: SizePreset? = nil, urlId: String? = nil) { + self.sizePreset = sizePreset + self.urlId = urlId + } + } + /** - parameter tenantId: (path) @@ -2578,8 +3037,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: UploadImageResponse */ - open class func uploadImage(tenantId: String, file: URL, sizePreset: SizePreset? = nil, urlId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UploadImageResponse { - return try await uploadImageWithRequestBuilder(tenantId: tenantId, file: file, sizePreset: sizePreset, urlId: urlId, apiConfiguration: apiConfiguration).execute().body + open class func uploadImage(tenantId: String, file: URL, options: UploadImageOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> UploadImageResponse { + return try await uploadImageWithRequestBuilder(tenantId: tenantId, file: file, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2592,7 +3051,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func uploadImageWithRequestBuilder(tenantId: String, file: URL, sizePreset: SizePreset? = nil, urlId: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func uploadImageWithRequestBuilder(tenantId: String, file: URL, options: UploadImageOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let sizePreset = options.sizePreset + let urlId = options.urlId var localVariablePath = "/upload-image/{tenantId}" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" @@ -2622,6 +3083,17 @@ open class PublicAPI { return localVariableRequestBuilder.init(method: "POST", URLString: (localVariableUrlComponents?.string ?? localVariableURLString), parameters: localVariableParameters, headers: localVariableHeaderParameters, requiresAuthentication: false, apiConfiguration: apiConfiguration) } + /** Optional parameters for voteComment. */ + public struct VoteCommentOptions: Sendable { + public var sessionId: String? + public var sso: String? + + public init(sessionId: String? = nil, sso: String? = nil) { + self.sessionId = sessionId + self.sso = sso + } + } + /** - parameter tenantId: (path) @@ -2634,8 +3106,8 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: VoteResponse */ - open class func voteComment(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { - return try await voteCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, urlId: urlId, broadcastId: broadcastId, voteBodyParams: voteBodyParams, sessionId: sessionId, sso: sso, apiConfiguration: apiConfiguration).execute().body + open class func voteComment(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, options: VoteCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) async throws(ErrorResponse) -> VoteResponse { + return try await voteCommentWithRequestBuilder(tenantId: tenantId, commentId: commentId, urlId: urlId, broadcastId: broadcastId, voteBodyParams: voteBodyParams, options: options, apiConfiguration: apiConfiguration).execute().body } /** @@ -2650,7 +3122,9 @@ open class PublicAPI { - parameter apiConfiguration: The configuration for the http request. - returns: RequestBuilder */ - open class func voteCommentWithRequestBuilder(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + open class func voteCommentWithRequestBuilder(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, options: VoteCommentOptions = .init(), apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) -> RequestBuilder { + let sessionId = options.sessionId + let sso = options.sso var localVariablePath = "/comments/{tenantId}/{commentId}/vote" let tenantIdPreEscape = "\(APIHelper.mapValueToPathItem(tenantId))" let tenantIdPostEscape = tenantIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" diff --git a/client/FastCommentsSwift/Infrastructure/URLSessionImplementations.swift b/client/FastCommentsSwift/Infrastructure/URLSessionImplementations.swift index 3c65201..7f30ea3 100644 --- a/client/FastCommentsSwift/Infrastructure/URLSessionImplementations.swift +++ b/client/FastCommentsSwift/Infrastructure/URLSessionImplementations.swift @@ -40,7 +40,7 @@ extension URLSession: URLSessionProtocol { extension URLSessionDataTask: URLSessionDataTaskProtocol {} -public class URLSessionRequestBuilderFactory: RequestBuilderFactory { +public final class URLSessionRequestBuilderFactory: RequestBuilderFactory, Sendable { public init() {} public func getNonDecodableBuilder() -> RequestBuilder.Type { @@ -72,10 +72,10 @@ fileprivate class URLSessionRequestBuilderConfiguration: @unchecked Sendable { let defaultURLSession: URLSession // Store current URLCredential for every URLSessionTask - var credentialStore = SynchronizedDictionary() + let credentialStore = SynchronizedDictionary() } -open class URLSessionRequestBuilder: RequestBuilder, @unchecked Sendable { +open class URLSessionRequestBuilder: RequestBuilder, @unchecked Sendable { required public init(method: String, URLString: String, parameters: [String: any Sendable]?, headers: [String: String] = [:], requiresAuthentication: Bool, apiConfiguration: FastCommentsSwiftAPIConfiguration = FastCommentsSwiftAPIConfiguration.shared) { super.init(method: method, URLString: URLString, parameters: parameters, headers: headers, requiresAuthentication: requiresAuthentication, apiConfiguration: apiConfiguration) @@ -163,6 +163,8 @@ open class URLSessionRequestBuilder: RequestBuilder, @unchecked Sendable { let dataTask = urlSession.dataTaskFromProtocol(with: modifiedRequest) { data, response, error in self.cleanupRequest() + self.apiConfiguration.interceptor.didReceiveResponse(urlRequest: modifiedRequest, urlSession: urlSession, requestBuilder: self, data: data, response: response, error: error) + if let error = error { self.retryRequest( urlRequest: modifiedRequest, @@ -202,7 +204,7 @@ open class URLSessionRequestBuilder: RequestBuilder, @unchecked Sendable { return } - self.processRequestResponse(urlRequest: request, data: data, httpResponse: httpResponse, error: error, completion: completion) + self.processRequestResponse(urlRequest: modifiedRequest, urlSession: urlSession, data: data, httpResponse: httpResponse, error: error, completion: completion) } self.onProgressReady?(dataTask.progress) @@ -211,15 +213,25 @@ open class URLSessionRequestBuilder: RequestBuilder, @unchecked Sendable { self.requestTask.set(task: dataTask) + self.apiConfiguration.interceptor.willSendRequest(urlRequest: modifiedRequest, urlSession: urlSession, requestBuilder: self) + dataTask.resume() case .failure(let error): + self.apiConfiguration.interceptor.didComplete(urlRequest: request, urlSession: urlSession, requestBuilder: self, data: nil, response: nil, result: .failure(error)) self.apiConfiguration.apiResponseQueue.async { completion(.failure(ErrorResponse.error(415, nil, nil, error))) } } } } catch { + // Request creation failed - create a minimal request for error reporting + let failedURL = URL(string: URLString) ?? URL(string: "about:blank")! + var failedRequest = URLRequest(url: failedURL) + failedRequest.httpMethod = method + + self.apiConfiguration.interceptor.didComplete(urlRequest: failedRequest, urlSession: urlSession, requestBuilder: self, data: nil, response: nil, result: .failure(error)) + self.apiConfiguration.apiResponseQueue.async { completion(.failure(ErrorResponse.error(415, nil, nil, error))) } @@ -241,6 +253,7 @@ open class URLSessionRequestBuilder: RequestBuilder, @unchecked Sendable { self.execute(completion: completion) case .dontRetry: + self.apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: response, result: .failure(error)) self.apiConfiguration.apiResponseQueue.async { completion(.failure(ErrorResponse.error(statusCode, data, response, error))) } @@ -248,12 +261,13 @@ open class URLSessionRequestBuilder: RequestBuilder, @unchecked Sendable { } } - fileprivate func processRequestResponse(urlRequest: URLRequest, data: Data?, httpResponse: HTTPURLResponse, error: Error?, completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) { + fileprivate func processRequestResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, data: Data?, httpResponse: HTTPURLResponse, error: Error?, completion: @Sendable @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) { switch T.self { case is Void.Type: - - completion(.success(Response(response: httpResponse, body: () as! T, bodyData: data))) + let result = () as! T + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(result)) + completion(.success(Response(response: httpResponse, body: result, bodyData: data))) default: fatalError("Unsupported Response Body Type - \(String(describing: T.self))") @@ -325,19 +339,17 @@ open class URLSessionRequestBuilder: RequestBuilder, @unchecked Sendable { } -open class URLSessionDecodableRequestBuilder: URLSessionRequestBuilder, @unchecked Sendable { - override fileprivate func processRequestResponse(urlRequest: URLRequest, data: Data?, httpResponse: HTTPURLResponse, error: Error?, completion: @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) { +open class URLSessionDecodableRequestBuilder: URLSessionRequestBuilder, @unchecked Sendable { + override fileprivate func processRequestResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, data: Data?, httpResponse: HTTPURLResponse, error: Error?, completion: @Sendable @escaping (_ result: Swift.Result, ErrorResponse>) -> Void) { switch T.self { case is String.Type: - let body = data.flatMap { String(data: $0, encoding: .utf8) } ?? "" - + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(body as! T)) completion(.success(Response(response: httpResponse, body: body as! T, bodyData: data))) case is URL.Type: do { - guard error == nil else { throw DownloadException.responseFailed } @@ -364,29 +376,37 @@ open class URLSessionDecodableRequestBuilder: URLSessionRequestBui try fileManager.createDirectory(atPath: directoryPath, withIntermediateDirectories: true, attributes: nil) try data.write(to: filePath, options: .atomic) + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(filePath as! T)) completion(.success(Response(response: httpResponse, body: filePath as! T, bodyData: data))) } catch let requestParserError as DownloadException { + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .failure(requestParserError)) completion(.failure(ErrorResponse.error(400, data, httpResponse, requestParserError))) } catch { + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .failure(error)) completion(.failure(ErrorResponse.error(400, data, httpResponse, error))) } case is Void.Type: - - completion(.success(Response(response: httpResponse, body: () as! T, bodyData: data))) + let result = () as! T + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(result)) + completion(.success(Response(response: httpResponse, body: result, bodyData: data))) case is Data.Type: - - completion(.success(Response(response: httpResponse, body: data as! T, bodyData: data))) + let result = data as! T + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(result)) + completion(.success(Response(response: httpResponse, body: result, bodyData: data))) default: - guard let unwrappedData = data, !unwrappedData.isEmpty else { if let expressibleByNilLiteralType = T.self as? ExpressibleByNilLiteral.Type { - completion(.success(Response(response: httpResponse, body: expressibleByNilLiteralType.init(nilLiteral: ()) as! T, bodyData: data))) + let result = expressibleByNilLiteralType.init(nilLiteral: ()) as! T + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: data, response: httpResponse, result: .success(result)) + completion(.success(Response(response: httpResponse, body: result, bodyData: data))) } else { - completion(.failure(ErrorResponse.error(httpResponse.statusCode, nil, httpResponse, DecodableRequestBuilderError.emptyDataResponse))) + let emptyDataError = DecodableRequestBuilderError.emptyDataResponse + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: nil, response: httpResponse, result: .failure(emptyDataError)) + completion(.failure(ErrorResponse.error(httpResponse.statusCode, nil, httpResponse, emptyDataError))) } return } @@ -395,8 +415,10 @@ open class URLSessionDecodableRequestBuilder: URLSessionRequestBui switch decodeResult { case let .success(decodableObj): + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: unwrappedData, response: httpResponse, result: .success(decodableObj)) completion(.success(Response(response: httpResponse, body: decodableObj, bodyData: unwrappedData))) case let .failure(error): + apiConfiguration.interceptor.didComplete(urlRequest: urlRequest, urlSession: urlSession, requestBuilder: self, data: unwrappedData, response: httpResponse, result: .failure(error)) completion(.failure(ErrorResponse.error(httpResponse.statusCode, unwrappedData, httpResponse, error))) } } @@ -404,7 +426,7 @@ open class URLSessionDecodableRequestBuilder: URLSessionRequestBui } fileprivate final class SessionDelegate: NSObject, URLSessionTaskDelegate { - func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { + func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @Sendable @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) { var disposition: URLSession.AuthChallengeDisposition = .performDefaultHandling @@ -464,7 +486,7 @@ private class FormDataEncoding: ParameterEncoding { let contentTypeForFormPart: (_ fileURL: URL) -> String? - init(contentTypeForFormPart: @escaping (_ fileURL: URL) -> String?) { + init(contentTypeForFormPart: @Sendable @escaping (_ fileURL: URL) -> String?) { self.contentTypeForFormPart = contentTypeForFormPart } @@ -717,20 +739,48 @@ public enum OpenAPIInterceptorRetry { case dontRetry } -public protocol OpenAPIInterceptor { - func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, completion: @escaping (Result) -> Void) +public protocol OpenAPIInterceptor: Sendable { + // MARK: - Request Modification & Retry + + /// Called before the request is sent. Allows modifying the URLRequest (e.g., adding authentication headers). + func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, completion: @Sendable @escaping (Result) -> Void) + + /// Called when a request fails. Allows the interceptor to decide whether to retry the request. + func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void) - func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, data: Data?, response: URLResponse?, error: Error, completion: @escaping (OpenAPIInterceptorRetry) -> Void) + // MARK: - Lifecycle Hooks + + /// Called right before the request is sent, after all modifications from `intercept()` have been applied. + /// Useful for logging the final request that will be sent. + func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder) + + /// Called when the raw response is received, before any processing or decoding. + /// Useful for logging raw responses or performing custom validation. + func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, data: Data?, response: URLResponse?, error: Error?) + + /// Called after the request completes (either success or failure). + /// Useful for cleanup, analytics, or performance monitoring. + func didComplete(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, data: Data?, response: URLResponse?, result: Result) +} + +// MARK: - Default Implementations (No-op) + +public extension OpenAPIInterceptor { + func willSendRequest(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder) {} + + func didReceiveResponse(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, data: Data?, response: URLResponse?, error: Error?) {} + + func didComplete(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, data: Data?, response: URLResponse?, result: Result) {} } -public class DefaultOpenAPIInterceptor: OpenAPIInterceptor { +public final class DefaultOpenAPIInterceptor: OpenAPIInterceptor { public init() {} - - public func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, completion: @escaping (Result) -> Void) { + + public func intercept(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, completion: @Sendable @escaping (Result) -> Void) { completion(.success(urlRequest)) } - - public func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, data: Data?, response: URLResponse?, error: Error, completion: @escaping (OpenAPIInterceptorRetry) -> Void) { + + public func retry(urlRequest: URLRequest, urlSession: URLSessionProtocol, requestBuilder: RequestBuilder, data: Data?, response: URLResponse?, error: Error, completion: @Sendable @escaping (OpenAPIInterceptorRetry) -> Void) { completion(.dontRetry) } } diff --git a/client/FastCommentsSwift/Models/PostRemoveCommentResponse.swift b/client/FastCommentsSwift/Models/PostRemoveCommentApiResponse.swift similarity index 85% rename from client/FastCommentsSwift/Models/PostRemoveCommentResponse.swift rename to client/FastCommentsSwift/Models/PostRemoveCommentApiResponse.swift index 450a2f7..1b86343 100644 --- a/client/FastCommentsSwift/Models/PostRemoveCommentResponse.swift +++ b/client/FastCommentsSwift/Models/PostRemoveCommentApiResponse.swift @@ -1,5 +1,5 @@ // -// PostRemoveCommentResponse.swift +// PostRemoveCommentApiResponse.swift // // Generated by openapi-generator // https://openapi-generator.tech @@ -7,7 +7,7 @@ import Foundation -public struct PostRemoveCommentResponse: Sendable, Codable, Hashable { +public struct PostRemoveCommentApiResponse: Sendable, Codable, Hashable { public var action: String public var status: String diff --git a/client/README.md b/client/README.md index 5b84f41..2aee55e 100644 --- a/client/README.md +++ b/client/README.md @@ -140,49 +140,49 @@ Class | Method | HTTP request | Description *DefaultAPI* | [**updateTenantPackage**](docs/DefaultAPI.md#updatetenantpackage) | **PATCH** /api/v1/tenant-packages/{id} | *DefaultAPI* | [**updateTenantUser**](docs/DefaultAPI.md#updatetenantuser) | **PATCH** /api/v1/tenant-users/{id} | *DefaultAPI* | [**updateUserBadge**](docs/DefaultAPI.md#updateuserbadge) | **PUT** /api/v1/user-badges/{id} | -*ModerationAPI* | [**deleteModerationVote**](docs/ModerationAPI.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/vote/{commentId}/{voteId} | -*ModerationAPI* | [**getApiComments**](docs/ModerationAPI.md#getapicomments) | **GET** /auth/my-account/moderate-comments/api/comments | -*ModerationAPI* | [**getApiExportStatus**](docs/ModerationAPI.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/api/export/status | -*ModerationAPI* | [**getApiIds**](docs/ModerationAPI.md#getapiids) | **GET** /auth/my-account/moderate-comments/api/ids | -*ModerationAPI* | [**getBanUsersFromComment**](docs/ModerationAPI.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/ban-users/from-comment/{commentId} | -*ModerationAPI* | [**getCommentBanStatus**](docs/ModerationAPI.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/get-comment-ban-status/{commentId} | -*ModerationAPI* | [**getCommentChildren**](docs/ModerationAPI.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/comment-children/{commentId} | -*ModerationAPI* | [**getCount**](docs/ModerationAPI.md#getcount) | **GET** /auth/my-account/moderate-comments/count | -*ModerationAPI* | [**getCounts**](docs/ModerationAPI.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/counts | -*ModerationAPI* | [**getLogs**](docs/ModerationAPI.md#getlogs) | **GET** /auth/my-account/moderate-comments/logs/{commentId} | -*ModerationAPI* | [**getManualBadges**](docs/ModerationAPI.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/get-manual-badges | -*ModerationAPI* | [**getManualBadgesForUser**](docs/ModerationAPI.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/get-manual-badges-for-user | -*ModerationAPI* | [**getModerationComment**](docs/ModerationAPI.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/comment/{commentId} | -*ModerationAPI* | [**getModerationCommentText**](docs/ModerationAPI.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/get-comment-text/{commentId} | -*ModerationAPI* | [**getPreBanSummary**](docs/ModerationAPI.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/pre-ban-summary/{commentId} | -*ModerationAPI* | [**getSearchCommentsSummary**](docs/ModerationAPI.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/search/comments/summary | -*ModerationAPI* | [**getSearchPages**](docs/ModerationAPI.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/search/pages | -*ModerationAPI* | [**getSearchSites**](docs/ModerationAPI.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/search/sites | -*ModerationAPI* | [**getSearchSuggest**](docs/ModerationAPI.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/search/suggest | -*ModerationAPI* | [**getSearchUsers**](docs/ModerationAPI.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/search/users | -*ModerationAPI* | [**getTrustFactor**](docs/ModerationAPI.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/get-trust-factor | -*ModerationAPI* | [**getUserBanPreference**](docs/ModerationAPI.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/user-ban-preference | -*ModerationAPI* | [**getUserInternalProfile**](docs/ModerationAPI.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/get-user-internal-profile | -*ModerationAPI* | [**postAdjustCommentVotes**](docs/ModerationAPI.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/adjust-comment-votes/{commentId} | -*ModerationAPI* | [**postApiExport**](docs/ModerationAPI.md#postapiexport) | **POST** /auth/my-account/moderate-comments/api/export | -*ModerationAPI* | [**postBanUserFromComment**](docs/ModerationAPI.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/ban-user/from-comment/{commentId} | -*ModerationAPI* | [**postBanUserUndo**](docs/ModerationAPI.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/ban-user/undo | -*ModerationAPI* | [**postBulkPreBanSummary**](docs/ModerationAPI.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/bulk-pre-ban-summary | -*ModerationAPI* | [**postCommentsByIds**](docs/ModerationAPI.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/comments-by-ids | -*ModerationAPI* | [**postFlagComment**](docs/ModerationAPI.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/flag-comment/{commentId} | -*ModerationAPI* | [**postRemoveComment**](docs/ModerationAPI.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/remove-comment/{commentId} | -*ModerationAPI* | [**postRestoreDeletedComment**](docs/ModerationAPI.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/restore-deleted-comment/{commentId} | -*ModerationAPI* | [**postSetCommentApprovalStatus**](docs/ModerationAPI.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/set-comment-approval-status/{commentId} | -*ModerationAPI* | [**postSetCommentReviewStatus**](docs/ModerationAPI.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/set-comment-review-status/{commentId} | -*ModerationAPI* | [**postSetCommentSpamStatus**](docs/ModerationAPI.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/set-comment-spam-status/{commentId} | -*ModerationAPI* | [**postSetCommentText**](docs/ModerationAPI.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/set-comment-text/{commentId} | -*ModerationAPI* | [**postUnFlagComment**](docs/ModerationAPI.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/un-flag-comment/{commentId} | -*ModerationAPI* | [**postVote**](docs/ModerationAPI.md#postvote) | **POST** /auth/my-account/moderate-comments/vote/{commentId} | -*ModerationAPI* | [**putAwardBadge**](docs/ModerationAPI.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/award-badge | -*ModerationAPI* | [**putCloseThread**](docs/ModerationAPI.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/close-thread | -*ModerationAPI* | [**putRemoveBadge**](docs/ModerationAPI.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/remove-badge | -*ModerationAPI* | [**putReopenThread**](docs/ModerationAPI.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/reopen-thread | -*ModerationAPI* | [**setTrustFactor**](docs/ModerationAPI.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/set-trust-factor | +*ModerationAPI* | [**deleteModerationVote**](docs/ModerationAPI.md#deletemoderationvote) | **DELETE** /auth/my-account/moderate-comments/mod_api/vote/{commentId}/{voteId} | +*ModerationAPI* | [**getApiComments**](docs/ModerationAPI.md#getapicomments) | **GET** /auth/my-account/moderate-comments/mod_api/api/comments | +*ModerationAPI* | [**getApiExportStatus**](docs/ModerationAPI.md#getapiexportstatus) | **GET** /auth/my-account/moderate-comments/mod_api/api/export/status | +*ModerationAPI* | [**getApiIds**](docs/ModerationAPI.md#getapiids) | **GET** /auth/my-account/moderate-comments/mod_api/api/ids | +*ModerationAPI* | [**getBanUsersFromComment**](docs/ModerationAPI.md#getbanusersfromcomment) | **GET** /auth/my-account/moderate-comments/mod_api/ban-users/from-comment/{commentId} | +*ModerationAPI* | [**getCommentBanStatus**](docs/ModerationAPI.md#getcommentbanstatus) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-ban-status/{commentId} | +*ModerationAPI* | [**getCommentChildren**](docs/ModerationAPI.md#getcommentchildren) | **GET** /auth/my-account/moderate-comments/mod_api/comment-children/{commentId} | +*ModerationAPI* | [**getCount**](docs/ModerationAPI.md#getcount) | **GET** /auth/my-account/moderate-comments/mod_api/count | +*ModerationAPI* | [**getCounts**](docs/ModerationAPI.md#getcounts) | **GET** /auth/my-account/moderate-comments/banned-users/mod_api/counts | +*ModerationAPI* | [**getLogs**](docs/ModerationAPI.md#getlogs) | **GET** /auth/my-account/moderate-comments/mod_api/logs/{commentId} | +*ModerationAPI* | [**getManualBadges**](docs/ModerationAPI.md#getmanualbadges) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges | +*ModerationAPI* | [**getManualBadgesForUser**](docs/ModerationAPI.md#getmanualbadgesforuser) | **GET** /auth/my-account/moderate-comments/mod_api/get-manual-badges-for-user | +*ModerationAPI* | [**getModerationComment**](docs/ModerationAPI.md#getmoderationcomment) | **GET** /auth/my-account/moderate-comments/mod_api/comment/{commentId} | +*ModerationAPI* | [**getModerationCommentText**](docs/ModerationAPI.md#getmoderationcommenttext) | **GET** /auth/my-account/moderate-comments/mod_api/get-comment-text/{commentId} | +*ModerationAPI* | [**getPreBanSummary**](docs/ModerationAPI.md#getprebansummary) | **GET** /auth/my-account/moderate-comments/mod_api/pre-ban-summary/{commentId} | +*ModerationAPI* | [**getSearchCommentsSummary**](docs/ModerationAPI.md#getsearchcommentssummary) | **GET** /auth/my-account/moderate-comments/mod_api/search/comments/summary | +*ModerationAPI* | [**getSearchPages**](docs/ModerationAPI.md#getsearchpages) | **GET** /auth/my-account/moderate-comments/mod_api/search/pages | +*ModerationAPI* | [**getSearchSites**](docs/ModerationAPI.md#getsearchsites) | **GET** /auth/my-account/moderate-comments/mod_api/search/sites | +*ModerationAPI* | [**getSearchSuggest**](docs/ModerationAPI.md#getsearchsuggest) | **GET** /auth/my-account/moderate-comments/mod_api/search/suggest | +*ModerationAPI* | [**getSearchUsers**](docs/ModerationAPI.md#getsearchusers) | **GET** /auth/my-account/moderate-comments/mod_api/search/users | +*ModerationAPI* | [**getTrustFactor**](docs/ModerationAPI.md#gettrustfactor) | **GET** /auth/my-account/moderate-comments/mod_api/get-trust-factor | +*ModerationAPI* | [**getUserBanPreference**](docs/ModerationAPI.md#getuserbanpreference) | **GET** /auth/my-account/moderate-comments/mod_api/user-ban-preference | +*ModerationAPI* | [**getUserInternalProfile**](docs/ModerationAPI.md#getuserinternalprofile) | **GET** /auth/my-account/moderate-comments/mod_api/get-user-internal-profile | +*ModerationAPI* | [**postAdjustCommentVotes**](docs/ModerationAPI.md#postadjustcommentvotes) | **POST** /auth/my-account/moderate-comments/mod_api/adjust-comment-votes/{commentId} | +*ModerationAPI* | [**postApiExport**](docs/ModerationAPI.md#postapiexport) | **POST** /auth/my-account/moderate-comments/mod_api/api/export | +*ModerationAPI* | [**postBanUserFromComment**](docs/ModerationAPI.md#postbanuserfromcomment) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/from-comment/{commentId} | +*ModerationAPI* | [**postBanUserUndo**](docs/ModerationAPI.md#postbanuserundo) | **POST** /auth/my-account/moderate-comments/mod_api/ban-user/undo | +*ModerationAPI* | [**postBulkPreBanSummary**](docs/ModerationAPI.md#postbulkprebansummary) | **POST** /auth/my-account/moderate-comments/mod_api/bulk-pre-ban-summary | +*ModerationAPI* | [**postCommentsByIds**](docs/ModerationAPI.md#postcommentsbyids) | **POST** /auth/my-account/moderate-comments/mod_api/comments-by-ids | +*ModerationAPI* | [**postFlagComment**](docs/ModerationAPI.md#postflagcomment) | **POST** /auth/my-account/moderate-comments/mod_api/flag-comment/{commentId} | +*ModerationAPI* | [**postRemoveComment**](docs/ModerationAPI.md#postremovecomment) | **POST** /auth/my-account/moderate-comments/mod_api/remove-comment/{commentId} | +*ModerationAPI* | [**postRestoreDeletedComment**](docs/ModerationAPI.md#postrestoredeletedcomment) | **POST** /auth/my-account/moderate-comments/mod_api/restore-deleted-comment/{commentId} | +*ModerationAPI* | [**postSetCommentApprovalStatus**](docs/ModerationAPI.md#postsetcommentapprovalstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-approval-status/{commentId} | +*ModerationAPI* | [**postSetCommentReviewStatus**](docs/ModerationAPI.md#postsetcommentreviewstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-review-status/{commentId} | +*ModerationAPI* | [**postSetCommentSpamStatus**](docs/ModerationAPI.md#postsetcommentspamstatus) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-spam-status/{commentId} | +*ModerationAPI* | [**postSetCommentText**](docs/ModerationAPI.md#postsetcommenttext) | **POST** /auth/my-account/moderate-comments/mod_api/set-comment-text/{commentId} | +*ModerationAPI* | [**postUnFlagComment**](docs/ModerationAPI.md#postunflagcomment) | **POST** /auth/my-account/moderate-comments/mod_api/un-flag-comment/{commentId} | +*ModerationAPI* | [**postVote**](docs/ModerationAPI.md#postvote) | **POST** /auth/my-account/moderate-comments/mod_api/vote/{commentId} | +*ModerationAPI* | [**putAwardBadge**](docs/ModerationAPI.md#putawardbadge) | **PUT** /auth/my-account/moderate-comments/mod_api/award-badge | +*ModerationAPI* | [**putCloseThread**](docs/ModerationAPI.md#putclosethread) | **PUT** /auth/my-account/moderate-comments/mod_api/close-thread | +*ModerationAPI* | [**putRemoveBadge**](docs/ModerationAPI.md#putremovebadge) | **PUT** /auth/my-account/moderate-comments/mod_api/remove-badge | +*ModerationAPI* | [**putReopenThread**](docs/ModerationAPI.md#putreopenthread) | **PUT** /auth/my-account/moderate-comments/mod_api/reopen-thread | +*ModerationAPI* | [**setTrustFactor**](docs/ModerationAPI.md#settrustfactor) | **PUT** /auth/my-account/moderate-comments/mod_api/set-trust-factor | *PublicAPI* | [**blockFromCommentPublic**](docs/PublicAPI.md#blockfromcommentpublic) | **POST** /block-from-comment/{commentId} | *PublicAPI* | [**checkedCommentsForBlocked**](docs/PublicAPI.md#checkedcommentsforblocked) | **GET** /check-blocked-comments | *PublicAPI* | [**createCommentPublic**](docs/PublicAPI.md#createcommentpublic) | **POST** /comments/{tenantId} | @@ -498,7 +498,7 @@ Class | Method | HTTP request | Description - [PatchPageAPIResponse](docs/PatchPageAPIResponse.md) - [PatchSSOUserAPIResponse](docs/PatchSSOUserAPIResponse.md) - [PendingCommentToSyncOutbound](docs/PendingCommentToSyncOutbound.md) - - [PostRemoveCommentResponse](docs/PostRemoveCommentResponse.md) + - [PostRemoveCommentApiResponse](docs/PostRemoveCommentApiResponse.md) - [PreBanSummary](docs/PreBanSummary.md) - [PubSubComment](docs/PubSubComment.md) - [PubSubCommentBase](docs/PubSubCommentBase.md) diff --git a/client/docs/DefaultAPI.md b/client/docs/DefaultAPI.md index a687699..8ea3c4a 100644 --- a/client/docs/DefaultAPI.md +++ b/client/docs/DefaultAPI.md @@ -171,7 +171,7 @@ Name | Type | Description | Notes # **addHashTag** ```swift - open class func addHashTag(tenantId: String? = nil, createHashTagBody: CreateHashTagBody? = nil, completion: @escaping (_ data: CreateHashTagResponse?, _ error: Error?) -> Void) + open class func addHashTag(tenantId: String, createHashTagBody: CreateHashTagBody? = nil, completion: @escaping (_ data: CreateHashTagResponse?, _ error: Error?) -> Void) ``` @@ -181,7 +181,7 @@ Name | Type | Description | Notes // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift -let tenantId = "tenantId_example" // String | (optional) +let tenantId = "tenantId_example" // String | let createHashTagBody = CreateHashTagBody(tenantId: "tenantId_example", tag: "tag_example", url: "url_example") // CreateHashTagBody | (optional) DefaultAPI.addHashTag(tenantId: tenantId, createHashTagBody: createHashTagBody) { (response, error) in @@ -200,7 +200,7 @@ DefaultAPI.addHashTag(tenantId: tenantId, createHashTagBody: createHashTagBody) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **String** | | [optional] + **tenantId** | **String** | | **createHashTagBody** | [**CreateHashTagBody**](CreateHashTagBody.md) | | [optional] ### Return type @@ -220,7 +220,7 @@ Name | Type | Description | Notes # **addHashTagsBulk** ```swift - open class func addHashTagsBulk(tenantId: String? = nil, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, completion: @escaping (_ data: BulkCreateHashTagsResponse?, _ error: Error?) -> Void) + open class func addHashTagsBulk(tenantId: String, bulkCreateHashTagsBody: BulkCreateHashTagsBody? = nil, completion: @escaping (_ data: BulkCreateHashTagsResponse?, _ error: Error?) -> Void) ``` @@ -230,7 +230,7 @@ Name | Type | Description | Notes // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift -let tenantId = "tenantId_example" // String | (optional) +let tenantId = "tenantId_example" // String | let bulkCreateHashTagsBody = BulkCreateHashTagsBody(tenantId: "tenantId_example", tags: [BulkCreateHashTagsBody_tags_inner(url: "url_example", tag: "tag_example")]) // BulkCreateHashTagsBody | (optional) DefaultAPI.addHashTagsBulk(tenantId: tenantId, bulkCreateHashTagsBody: bulkCreateHashTagsBody) { (response, error) in @@ -249,7 +249,7 @@ DefaultAPI.addHashTagsBulk(tenantId: tenantId, bulkCreateHashTagsBody: bulkCreat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **tenantId** | **String** | | [optional] + **tenantId** | **String** | | **bulkCreateHashTagsBody** | [**BulkCreateHashTagsBody**](BulkCreateHashTagsBody.md) | | [optional] ### Return type @@ -367,7 +367,7 @@ Name | Type | Description | Notes # **aggregate** ```swift - open class func aggregate(tenantId: String, aggregationRequest: AggregationRequest, parentTenantId: String? = nil, includeStats: Bool? = nil, completion: @escaping (_ data: AggregateResponse?, _ error: Error?) -> Void) + open class func aggregate(tenantId: String, aggregationRequest: AggregationRequest, options: AggregateOptions = .init(), completion: @escaping (_ data: AggregateResponse?, _ error: Error?) -> Void) ``` @@ -384,7 +384,7 @@ let aggregationRequest = AggregationRequest(query: [QueryPredicate(key: "key_exa let parentTenantId = "parentTenantId_example" // String | (optional) let includeStats = true // Bool | (optional) -DefaultAPI.aggregate(tenantId: tenantId, aggregationRequest: aggregationRequest, parentTenantId: parentTenantId, includeStats: includeStats) { (response, error) in +DefaultAPI.aggregate(tenantId: tenantId, aggregationRequest: aggregationRequest, options: DefaultAPI.AggregateOptions(parentTenantId: parentTenantId, includeStats: includeStats)) { (response, error) in guard error == nil else { print(error) return @@ -422,7 +422,7 @@ Name | Type | Description | Notes # **aggregateQuestionResults** ```swift - open class func aggregateQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, timeBucket: AggregateTimeBucket? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, completion: @escaping (_ data: AggregateQuestionResultsResponse?, _ error: Error?) -> Void) + open class func aggregateQuestionResults(tenantId: String, options: AggregateQuestionResultsOptions = .init(), completion: @escaping (_ data: AggregateQuestionResultsResponse?, _ error: Error?) -> Void) ``` @@ -440,7 +440,7 @@ let timeBucket = AggregateTimeBucket() // AggregateTimeBucket | (optional) let startDate = Date() // Date | (optional) let forceRecalculate = true // Bool | (optional) -DefaultAPI.aggregateQuestionResults(tenantId: tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, timeBucket: timeBucket, startDate: startDate, forceRecalculate: forceRecalculate) { (response, error) in +DefaultAPI.aggregateQuestionResults(tenantId: tenantId, options: DefaultAPI.AggregateQuestionResultsOptions(questionId: questionId, questionIds: questionIds, urlId: urlId, timeBucket: timeBucket, startDate: startDate, forceRecalculate: forceRecalculate)) { (response, error) in guard error == nil else { print(error) return @@ -481,7 +481,7 @@ Name | Type | Description | Notes # **blockUserFromComment** ```swift - open class func blockUserFromComment(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: BlockSuccess?, _ error: Error?) -> Void) + open class func blockUserFromComment(tenantId: String, id: String, blockFromCommentParams: BlockFromCommentParams, options: BlockUserFromCommentOptions = .init(), completion: @escaping (_ data: BlockSuccess?, _ error: Error?) -> Void) ``` @@ -497,7 +497,7 @@ let blockFromCommentParams = BlockFromCommentParams(commentIdsToCheck: ["comment let userId = "userId_example" // String | (optional) let anonUserId = "anonUserId_example" // String | (optional) -DefaultAPI.blockUserFromComment(tenantId: tenantId, id: id, blockFromCommentParams: blockFromCommentParams, userId: userId, anonUserId: anonUserId) { (response, error) in +DefaultAPI.blockUserFromComment(tenantId: tenantId, id: id, blockFromCommentParams: blockFromCommentParams, options: DefaultAPI.BlockUserFromCommentOptions(userId: userId, anonUserId: anonUserId)) { (response, error) in guard error == nil else { print(error) return @@ -640,7 +640,7 @@ Name | Type | Description | Notes # **combineCommentsWithQuestionResults** ```swift - open class func combineCommentsWithQuestionResults(tenantId: String, questionId: String? = nil, questionIds: [String]? = nil, urlId: String? = nil, startDate: Date? = nil, forceRecalculate: Bool? = nil, minValue: Double? = nil, maxValue: Double? = nil, limit: Double? = nil, completion: @escaping (_ data: CombineQuestionResultsWithCommentsResponse?, _ error: Error?) -> Void) + open class func combineCommentsWithQuestionResults(tenantId: String, options: CombineCommentsWithQuestionResultsOptions = .init(), completion: @escaping (_ data: CombineQuestionResultsWithCommentsResponse?, _ error: Error?) -> Void) ``` @@ -660,7 +660,7 @@ let minValue = 987 // Double | (optional) let maxValue = 987 // Double | (optional) let limit = 987 // Double | (optional) -DefaultAPI.combineCommentsWithQuestionResults(tenantId: tenantId, questionId: questionId, questionIds: questionIds, urlId: urlId, startDate: startDate, forceRecalculate: forceRecalculate, minValue: minValue, maxValue: maxValue, limit: limit) { (response, error) in +DefaultAPI.combineCommentsWithQuestionResults(tenantId: tenantId, options: DefaultAPI.CombineCommentsWithQuestionResultsOptions(questionId: questionId, questionIds: questionIds, urlId: urlId, startDate: startDate, forceRecalculate: forceRecalculate, minValue: minValue, maxValue: maxValue, limit: limit)) { (response, error) in guard error == nil else { print(error) return @@ -752,7 +752,7 @@ Name | Type | Description | Notes # **createFeedPost** ```swift - open class func createFeedPost(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, isLive: Bool? = nil, doSpamCheck: Bool? = nil, skipDupCheck: Bool? = nil, completion: @escaping (_ data: CreateFeedPostsResponse?, _ error: Error?) -> Void) + open class func createFeedPost(tenantId: String, createFeedPostParams: CreateFeedPostParams, options: CreateFeedPostOptions = .init(), completion: @escaping (_ data: CreateFeedPostsResponse?, _ error: Error?) -> Void) ``` @@ -769,7 +769,7 @@ let isLive = true // Bool | (optional) let doSpamCheck = true // Bool | (optional) let skipDupCheck = true // Bool | (optional) -DefaultAPI.createFeedPost(tenantId: tenantId, createFeedPostParams: createFeedPostParams, broadcastId: broadcastId, isLive: isLive, doSpamCheck: doSpamCheck, skipDupCheck: skipDupCheck) { (response, error) in +DefaultAPI.createFeedPost(tenantId: tenantId, createFeedPostParams: createFeedPostParams, options: DefaultAPI.CreateFeedPostOptions(broadcastId: broadcastId, isLive: isLive, doSpamCheck: doSpamCheck, skipDupCheck: skipDupCheck)) { (response, error) in guard error == nil else { print(error) return @@ -1252,7 +1252,7 @@ Name | Type | Description | Notes # **createVote** ```swift - open class func createVote(tenantId: String, commentId: String, direction: Direction_createVote, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) + open class func createVote(tenantId: String, commentId: String, direction: Direction_createVote, options: CreateVoteOptions = .init(), completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) ``` @@ -1268,7 +1268,7 @@ let direction = "direction_example" // String | let userId = "userId_example" // String | (optional) let anonUserId = "anonUserId_example" // String | (optional) -DefaultAPI.createVote(tenantId: tenantId, commentId: commentId, direction: direction, userId: userId, anonUserId: anonUserId) { (response, error) in +DefaultAPI.createVote(tenantId: tenantId, commentId: commentId, direction: direction, options: DefaultAPI.CreateVoteOptions(userId: userId, anonUserId: anonUserId)) { (response, error) in guard error == nil else { print(error) return @@ -1307,7 +1307,7 @@ Name | Type | Description | Notes # **deleteComment** ```swift - open class func deleteComment(tenantId: String, id: String, contextUserId: String? = nil, isLive: Bool? = nil, completion: @escaping (_ data: DeleteCommentResult?, _ error: Error?) -> Void) + open class func deleteComment(tenantId: String, id: String, options: DeleteCommentOptions = .init(), completion: @escaping (_ data: DeleteCommentResult?, _ error: Error?) -> Void) ``` @@ -1322,7 +1322,7 @@ let id = "id_example" // String | let contextUserId = "contextUserId_example" // String | (optional) let isLive = true // Bool | (optional) -DefaultAPI.deleteComment(tenantId: tenantId, id: id, contextUserId: contextUserId, isLive: isLive) { (response, error) in +DefaultAPI.deleteComment(tenantId: tenantId, id: id, options: DefaultAPI.DeleteCommentOptions(contextUserId: contextUserId, isLive: isLive)) { (response, error) in guard error == nil else { print(error) return @@ -1509,7 +1509,7 @@ Name | Type | Description | Notes # **deleteHashTag** ```swift - open class func deleteHashTag(tag: String, tenantId: String? = nil, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func deleteHashTag(tenantId: String, tag: String, deleteHashTagRequestBody: DeleteHashTagRequestBody? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1519,11 +1519,11 @@ Name | Type | Description | Notes // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let tag = "tag_example" // String | -let tenantId = "tenantId_example" // String | (optional) let deleteHashTagRequestBody = DeleteHashTagRequestBody(tenantId: "tenantId_example") // DeleteHashTagRequestBody | (optional) -DefaultAPI.deleteHashTag(tag: tag, tenantId: tenantId, deleteHashTagRequestBody: deleteHashTagRequestBody) { (response, error) in +DefaultAPI.deleteHashTag(tenantId: tenantId, tag: tag, deleteHashTagRequestBody: deleteHashTagRequestBody) { (response, error) in guard error == nil else { print(error) return @@ -1539,8 +1539,8 @@ DefaultAPI.deleteHashTag(tag: tag, tenantId: tenantId, deleteHashTagRequestBody: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **tag** | **String** | | - **tenantId** | **String** | | [optional] **deleteHashTagRequestBody** | [**DeleteHashTagRequestBody**](DeleteHashTagRequestBody.md) | | [optional] ### Return type @@ -1856,7 +1856,7 @@ Name | Type | Description | Notes # **deleteSSOUser** ```swift - open class func deleteSSOUser(tenantId: String, id: String, deleteComments: Bool? = nil, commentDeleteMode: String? = nil, completion: @escaping (_ data: DeleteSSOUserAPIResponse?, _ error: Error?) -> Void) + open class func deleteSSOUser(tenantId: String, id: String, options: DeleteSSOUserOptions = .init(), completion: @escaping (_ data: DeleteSSOUserAPIResponse?, _ error: Error?) -> Void) ``` @@ -1871,7 +1871,7 @@ let id = "id_example" // String | let deleteComments = true // Bool | (optional) let commentDeleteMode = "commentDeleteMode_example" // String | (optional) -DefaultAPI.deleteSSOUser(tenantId: tenantId, id: id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode) { (response, error) in +DefaultAPI.deleteSSOUser(tenantId: tenantId, id: id, options: DefaultAPI.DeleteSSOUserOptions(deleteComments: deleteComments, commentDeleteMode: commentDeleteMode)) { (response, error) in guard error == nil else { print(error) return @@ -2060,7 +2060,7 @@ Name | Type | Description | Notes # **deleteTenantUser** ```swift - open class func deleteTenantUser(tenantId: String, id: String, deleteComments: String? = nil, commentDeleteMode: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func deleteTenantUser(tenantId: String, id: String, options: DeleteTenantUserOptions = .init(), completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -2075,7 +2075,7 @@ let id = "id_example" // String | let deleteComments = "deleteComments_example" // String | (optional) let commentDeleteMode = "commentDeleteMode_example" // String | (optional) -DefaultAPI.deleteTenantUser(tenantId: tenantId, id: id, deleteComments: deleteComments, commentDeleteMode: commentDeleteMode) { (response, error) in +DefaultAPI.deleteTenantUser(tenantId: tenantId, id: id, options: DefaultAPI.DeleteTenantUserOptions(deleteComments: deleteComments, commentDeleteMode: commentDeleteMode)) { (response, error) in guard error == nil else { print(error) return @@ -2213,7 +2213,7 @@ Name | Type | Description | Notes # **flagComment** ```swift - open class func flagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: FlagCommentResponse?, _ error: Error?) -> Void) + open class func flagComment(tenantId: String, id: String, options: FlagCommentOptions = .init(), completion: @escaping (_ data: FlagCommentResponse?, _ error: Error?) -> Void) ``` @@ -2228,7 +2228,7 @@ let id = "id_example" // String | let userId = "userId_example" // String | (optional) let anonUserId = "anonUserId_example" // String | (optional) -DefaultAPI.flagComment(tenantId: tenantId, id: id, userId: userId, anonUserId: anonUserId) { (response, error) in +DefaultAPI.flagComment(tenantId: tenantId, id: id, options: DefaultAPI.FlagCommentOptions(userId: userId, anonUserId: anonUserId)) { (response, error) in guard error == nil else { print(error) return @@ -2266,7 +2266,7 @@ Name | Type | Description | Notes # **getAuditLogs** ```swift - open class func getAuditLogs(tenantId: String, limit: Double? = nil, skip: Double? = nil, order: SORTDIR? = nil, after: Double? = nil, before: Double? = nil, completion: @escaping (_ data: GetAuditLogsResponse?, _ error: Error?) -> Void) + open class func getAuditLogs(tenantId: String, options: GetAuditLogsOptions = .init(), completion: @escaping (_ data: GetAuditLogsResponse?, _ error: Error?) -> Void) ``` @@ -2283,7 +2283,7 @@ let order = SORT_DIR() // SORTDIR | (optional) let after = 987 // Double | (optional) let before = 987 // Double | (optional) -DefaultAPI.getAuditLogs(tenantId: tenantId, limit: limit, skip: skip, order: order, after: after, before: before) { (response, error) in +DefaultAPI.getAuditLogs(tenantId: tenantId, options: DefaultAPI.GetAuditLogsOptions(limit: limit, skip: skip, order: order, after: after, before: before)) { (response, error) in guard error == nil else { print(error) return @@ -2421,7 +2421,7 @@ Name | Type | Description | Notes # **getComments** ```swift - open class func getComments(tenantId: String, page: Int? = nil, limit: Int? = nil, skip: Int? = nil, asTree: Bool? = nil, skipChildren: Int? = nil, limitChildren: Int? = nil, maxTreeDepth: Int? = nil, urlId: String? = nil, userId: String? = nil, anonUserId: String? = nil, contextUserId: String? = nil, hashTag: String? = nil, parentId: String? = nil, direction: SortDirections? = nil, fromDate: Int64? = nil, toDate: Int64? = nil, completion: @escaping (_ data: APIGetCommentsResponse?, _ error: Error?) -> Void) + open class func getComments(tenantId: String, options: GetCommentsOptions = .init(), completion: @escaping (_ data: APIGetCommentsResponse?, _ error: Error?) -> Void) ``` @@ -2449,7 +2449,7 @@ let direction = SortDirections() // SortDirections | (optional) let fromDate = 987 // Int64 | (optional) let toDate = 987 // Int64 | (optional) -DefaultAPI.getComments(tenantId: tenantId, page: page, limit: limit, skip: skip, asTree: asTree, skipChildren: skipChildren, limitChildren: limitChildren, maxTreeDepth: maxTreeDepth, urlId: urlId, userId: userId, anonUserId: anonUserId, contextUserId: contextUserId, hashTag: hashTag, parentId: parentId, direction: direction, fromDate: fromDate, toDate: toDate) { (response, error) in +DefaultAPI.getComments(tenantId: tenantId, options: DefaultAPI.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)) { (response, error) in guard error == nil else { print(error) return @@ -2792,7 +2792,7 @@ Name | Type | Description | Notes # **getFeedPosts** ```swift - open class func getFeedPosts(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, completion: @escaping (_ data: GetFeedPostsResponse?, _ error: Error?) -> Void) + open class func getFeedPosts(tenantId: String, options: GetFeedPostsOptions = .init(), completion: @escaping (_ data: GetFeedPostsResponse?, _ error: Error?) -> Void) ``` @@ -2809,7 +2809,7 @@ let afterId = "afterId_example" // String | (optional) let limit = 987 // Int | (optional) let tags = ["inner_example"] // [String] | (optional) -DefaultAPI.getFeedPosts(tenantId: tenantId, afterId: afterId, limit: limit, tags: tags) { (response, error) in +DefaultAPI.getFeedPosts(tenantId: tenantId, options: DefaultAPI.GetFeedPostsOptions(afterId: afterId, limit: limit, tags: tags)) { (response, error) in guard error == nil else { print(error) return @@ -2994,7 +2994,7 @@ Name | Type | Description | Notes # **getNotificationCount** ```swift - open class func getNotificationCount(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, completion: @escaping (_ data: GetNotificationCountResponse?, _ error: Error?) -> Void) + open class func getNotificationCount(tenantId: String, options: GetNotificationCountOptions = .init(), completion: @escaping (_ data: GetNotificationCountResponse?, _ error: Error?) -> Void) ``` @@ -3011,7 +3011,7 @@ let fromCommentId = "fromCommentId_example" // String | (optional) let viewed = true // Bool | (optional) let type = "type_example" // String | (optional) -DefaultAPI.getNotificationCount(tenantId: tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type) { (response, error) in +DefaultAPI.getNotificationCount(tenantId: tenantId, options: DefaultAPI.GetNotificationCountOptions(userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type)) { (response, error) in guard error == nil else { print(error) return @@ -3051,7 +3051,7 @@ Name | Type | Description | Notes # **getNotifications** ```swift - open class func getNotifications(tenantId: String, userId: String? = nil, urlId: String? = nil, fromCommentId: String? = nil, viewed: Bool? = nil, type: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetNotificationsResponse?, _ error: Error?) -> Void) + open class func getNotifications(tenantId: String, options: GetNotificationsOptions = .init(), completion: @escaping (_ data: GetNotificationsResponse?, _ error: Error?) -> Void) ``` @@ -3069,7 +3069,7 @@ let viewed = true // Bool | (optional) let type = "type_example" // String | (optional) let skip = 987 // Double | (optional) -DefaultAPI.getNotifications(tenantId: tenantId, userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, skip: skip) { (response, error) in +DefaultAPI.getNotifications(tenantId: tenantId, options: DefaultAPI.GetNotificationsOptions(userId: userId, urlId: urlId, fromCommentId: fromCommentId, viewed: viewed, type: type, skip: skip)) { (response, error) in guard error == nil else { print(error) return @@ -3206,7 +3206,7 @@ Name | Type | Description | Notes # **getPendingWebhookEventCount** ```swift - open class func getPendingWebhookEventCount(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, completion: @escaping (_ data: GetPendingWebhookEventCountResponse?, _ error: Error?) -> Void) + open class func getPendingWebhookEventCount(tenantId: String, options: GetPendingWebhookEventCountOptions = .init(), completion: @escaping (_ data: GetPendingWebhookEventCountResponse?, _ error: Error?) -> Void) ``` @@ -3224,7 +3224,7 @@ let type = "type_example" // String | (optional) let domain = "domain_example" // String | (optional) let attemptCountGT = 987 // Double | (optional) -DefaultAPI.getPendingWebhookEventCount(tenantId: tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT) { (response, error) in +DefaultAPI.getPendingWebhookEventCount(tenantId: tenantId, options: DefaultAPI.GetPendingWebhookEventCountOptions(commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT)) { (response, error) in guard error == nil else { print(error) return @@ -3265,7 +3265,7 @@ Name | Type | Description | Notes # **getPendingWebhookEvents** ```swift - open class func getPendingWebhookEvents(tenantId: String, commentId: String? = nil, externalId: String? = nil, eventType: String? = nil, type: String? = nil, domain: String? = nil, attemptCountGT: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: GetPendingWebhookEventsResponse?, _ error: Error?) -> Void) + open class func getPendingWebhookEvents(tenantId: String, options: GetPendingWebhookEventsOptions = .init(), completion: @escaping (_ data: GetPendingWebhookEventsResponse?, _ error: Error?) -> Void) ``` @@ -3284,7 +3284,7 @@ let domain = "domain_example" // String | (optional) let attemptCountGT = 987 // Double | (optional) let skip = 987 // Double | (optional) -DefaultAPI.getPendingWebhookEvents(tenantId: tenantId, commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, skip: skip) { (response, error) in +DefaultAPI.getPendingWebhookEvents(tenantId: tenantId, options: DefaultAPI.GetPendingWebhookEventsOptions(commentId: commentId, externalId: externalId, eventType: eventType, type: type, domain: domain, attemptCountGT: attemptCountGT, skip: skip)) { (response, error) in guard error == nil else { print(error) return @@ -3473,7 +3473,7 @@ Name | Type | Description | Notes # **getQuestionResults** ```swift - open class func getQuestionResults(tenantId: String, urlId: String? = nil, userId: String? = nil, startDate: String? = nil, questionId: String? = nil, questionIds: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetQuestionResultsResponse?, _ error: Error?) -> Void) + open class func getQuestionResults(tenantId: String, options: GetQuestionResultsOptions = .init(), completion: @escaping (_ data: GetQuestionResultsResponse?, _ error: Error?) -> Void) ``` @@ -3491,7 +3491,7 @@ let questionId = "questionId_example" // String | (optional) let questionIds = "questionIds_example" // String | (optional) let skip = 987 // Double | (optional) -DefaultAPI.getQuestionResults(tenantId: tenantId, urlId: urlId, userId: userId, startDate: startDate, questionId: questionId, questionIds: questionIds, skip: skip) { (response, error) in +DefaultAPI.getQuestionResults(tenantId: tenantId, options: DefaultAPI.GetQuestionResultsOptions(urlId: urlId, userId: userId, startDate: startDate, questionId: questionId, questionIds: questionIds, skip: skip)) { (response, error) in guard error == nil else { print(error) return @@ -3777,7 +3777,7 @@ Name | Type | Description | Notes # **getTenantDailyUsages** ```swift - open class func getTenantDailyUsages(tenantId: String, yearNumber: Double? = nil, monthNumber: Double? = nil, dayNumber: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: GetTenantDailyUsagesResponse?, _ error: Error?) -> Void) + open class func getTenantDailyUsages(tenantId: String, options: GetTenantDailyUsagesOptions = .init(), completion: @escaping (_ data: GetTenantDailyUsagesResponse?, _ error: Error?) -> Void) ``` @@ -3793,7 +3793,7 @@ let monthNumber = 987 // Double | (optional) let dayNumber = 987 // Double | (optional) let skip = 987 // Double | (optional) -DefaultAPI.getTenantDailyUsages(tenantId: tenantId, yearNumber: yearNumber, monthNumber: monthNumber, dayNumber: dayNumber, skip: skip) { (response, error) in +DefaultAPI.getTenantDailyUsages(tenantId: tenantId, options: DefaultAPI.GetTenantDailyUsagesOptions(yearNumber: yearNumber, monthNumber: monthNumber, dayNumber: dayNumber, skip: skip)) { (response, error) in guard error == nil else { print(error) return @@ -4028,7 +4028,7 @@ Name | Type | Description | Notes # **getTenants** ```swift - open class func getTenants(tenantId: String, meta: String? = nil, skip: Double? = nil, completion: @escaping (_ data: GetTenantsResponse?, _ error: Error?) -> Void) + open class func getTenants(tenantId: String, options: GetTenantsOptions = .init(), completion: @escaping (_ data: GetTenantsResponse?, _ error: Error?) -> Void) ``` @@ -4042,7 +4042,7 @@ let tenantId = "tenantId_example" // String | let meta = "meta_example" // String | (optional) let skip = 987 // Double | (optional) -DefaultAPI.getTenants(tenantId: tenantId, meta: meta, skip: skip) { (response, error) in +DefaultAPI.getTenants(tenantId: tenantId, options: DefaultAPI.GetTenantsOptions(meta: meta, skip: skip)) { (response, error) in guard error == nil else { print(error) return @@ -4130,7 +4130,7 @@ Name | Type | Description | Notes # **getTickets** ```swift - open class func getTickets(tenantId: String, userId: String? = nil, state: Double? = nil, skip: Double? = nil, limit: Double? = nil, completion: @escaping (_ data: GetTicketsResponse?, _ error: Error?) -> Void) + open class func getTickets(tenantId: String, options: GetTicketsOptions = .init(), completion: @escaping (_ data: GetTicketsResponse?, _ error: Error?) -> Void) ``` @@ -4146,7 +4146,7 @@ let state = 987 // Double | (optional) let skip = 987 // Double | (optional) let limit = 987 // Double | (optional) -DefaultAPI.getTickets(tenantId: tenantId, userId: userId, state: state, skip: skip, limit: limit) { (response, error) in +DefaultAPI.getTickets(tenantId: tenantId, options: DefaultAPI.GetTicketsOptions(userId: userId, state: state, skip: skip, limit: limit)) { (response, error) in guard error == nil else { print(error) return @@ -4381,7 +4381,7 @@ Name | Type | Description | Notes # **getUserBadgeProgressList** ```swift - open class func getUserBadgeProgressList(tenantId: String, userId: String? = nil, limit: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: APIGetUserBadgeProgressListResponse?, _ error: Error?) -> Void) + open class func getUserBadgeProgressList(tenantId: String, options: GetUserBadgeProgressListOptions = .init(), completion: @escaping (_ data: APIGetUserBadgeProgressListResponse?, _ error: Error?) -> Void) ``` @@ -4396,7 +4396,7 @@ let userId = "userId_example" // String | (optional) let limit = 987 // Double | (optional) let skip = 987 // Double | (optional) -DefaultAPI.getUserBadgeProgressList(tenantId: tenantId, userId: userId, limit: limit, skip: skip) { (response, error) in +DefaultAPI.getUserBadgeProgressList(tenantId: tenantId, options: DefaultAPI.GetUserBadgeProgressListOptions(userId: userId, limit: limit, skip: skip)) { (response, error) in guard error == nil else { print(error) return @@ -4434,7 +4434,7 @@ Name | Type | Description | Notes # **getUserBadges** ```swift - open class func getUserBadges(tenantId: String, userId: String? = nil, badgeId: String? = nil, type: Double? = nil, displayedOnComments: Bool? = nil, limit: Double? = nil, skip: Double? = nil, completion: @escaping (_ data: APIGetUserBadgesResponse?, _ error: Error?) -> Void) + open class func getUserBadges(tenantId: String, options: GetUserBadgesOptions = .init(), completion: @escaping (_ data: APIGetUserBadgesResponse?, _ error: Error?) -> Void) ``` @@ -4452,7 +4452,7 @@ let displayedOnComments = true // Bool | (optional) let limit = 987 // Double | (optional) let skip = 987 // Double | (optional) -DefaultAPI.getUserBadges(tenantId: tenantId, userId: userId, badgeId: badgeId, type: type, displayedOnComments: displayedOnComments, limit: limit, skip: skip) { (response, error) in +DefaultAPI.getUserBadges(tenantId: tenantId, options: DefaultAPI.GetUserBadgesOptions(userId: userId, badgeId: badgeId, type: type, displayedOnComments: displayedOnComments, limit: limit, skip: skip)) { (response, error) in guard error == nil else { print(error) return @@ -4542,7 +4542,7 @@ Name | Type | Description | Notes # **getVotesForUser** ```swift - open class func getVotesForUser(tenantId: String, urlId: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: GetVotesForUserResponse?, _ error: Error?) -> Void) + open class func getVotesForUser(tenantId: String, urlId: String, options: GetVotesForUserOptions = .init(), completion: @escaping (_ data: GetVotesForUserResponse?, _ error: Error?) -> Void) ``` @@ -4557,7 +4557,7 @@ let urlId = "urlId_example" // String | let userId = "userId_example" // String | (optional) let anonUserId = "anonUserId_example" // String | (optional) -DefaultAPI.getVotesForUser(tenantId: tenantId, urlId: urlId, userId: userId, anonUserId: anonUserId) { (response, error) in +DefaultAPI.getVotesForUser(tenantId: tenantId, urlId: urlId, options: DefaultAPI.GetVotesForUserOptions(userId: userId, anonUserId: anonUserId)) { (response, error) in guard error == nil else { print(error) return @@ -4646,7 +4646,7 @@ Name | Type | Description | Notes # **patchHashTag** ```swift - open class func patchHashTag(tag: String, tenantId: String? = nil, updateHashTagBody: UpdateHashTagBody? = nil, completion: @escaping (_ data: UpdateHashTagResponse?, _ error: Error?) -> Void) + open class func patchHashTag(tenantId: String, tag: String, updateHashTagBody: UpdateHashTagBody? = nil, completion: @escaping (_ data: UpdateHashTagResponse?, _ error: Error?) -> Void) ``` @@ -4656,11 +4656,11 @@ Name | Type | Description | Notes // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let tag = "tag_example" // String | -let tenantId = "tenantId_example" // String | (optional) let updateHashTagBody = UpdateHashTagBody(tenantId: "tenantId_example", url: "url_example", tag: "tag_example") // UpdateHashTagBody | (optional) -DefaultAPI.patchHashTag(tag: tag, tenantId: tenantId, updateHashTagBody: updateHashTagBody) { (response, error) in +DefaultAPI.patchHashTag(tenantId: tenantId, tag: tag, updateHashTagBody: updateHashTagBody) { (response, error) in guard error == nil else { print(error) return @@ -4676,8 +4676,8 @@ DefaultAPI.patchHashTag(tag: tag, tenantId: tenantId, updateHashTagBody: updateH Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **tag** | **String** | | - **tenantId** | **String** | | [optional] **updateHashTagBody** | [**UpdateHashTagBody**](UpdateHashTagBody.md) | | [optional] ### Return type @@ -5060,7 +5060,7 @@ Name | Type | Description | Notes # **saveComment** ```swift - open class func saveComment(tenantId: String, createCommentParams: CreateCommentParams, isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, completion: @escaping (_ data: APISaveCommentResponse?, _ error: Error?) -> Void) + open class func saveComment(tenantId: String, createCommentParams: CreateCommentParams, options: SaveCommentOptions = .init(), completion: @escaping (_ data: APISaveCommentResponse?, _ error: Error?) -> Void) ``` @@ -5077,7 +5077,7 @@ let doSpamCheck = true // Bool | (optional) let sendEmails = true // Bool | (optional) let populateNotifications = true // Bool | (optional) -DefaultAPI.saveComment(tenantId: tenantId, createCommentParams: createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications) { (response, error) in +DefaultAPI.saveComment(tenantId: tenantId, createCommentParams: createCommentParams, options: DefaultAPI.SaveCommentOptions(isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications)) { (response, error) in guard error == nil else { print(error) return @@ -5117,7 +5117,7 @@ Name | Type | Description | Notes # **saveCommentsBulk** ```swift - open class func saveCommentsBulk(tenantId: String, createCommentParams: [CreateCommentParams], isLive: Bool? = nil, doSpamCheck: Bool? = nil, sendEmails: Bool? = nil, populateNotifications: Bool? = nil, completion: @escaping (_ data: [SaveCommentsBulkResponse]?, _ error: Error?) -> Void) + open class func saveCommentsBulk(tenantId: String, createCommentParams: [CreateCommentParams], options: SaveCommentsBulkOptions = .init(), completion: @escaping (_ data: [SaveCommentsBulkResponse]?, _ error: Error?) -> Void) ``` @@ -5134,7 +5134,7 @@ let doSpamCheck = true // Bool | (optional) let sendEmails = true // Bool | (optional) let populateNotifications = true // Bool | (optional) -DefaultAPI.saveCommentsBulk(tenantId: tenantId, createCommentParams: createCommentParams, isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications) { (response, error) in +DefaultAPI.saveCommentsBulk(tenantId: tenantId, createCommentParams: createCommentParams, options: DefaultAPI.SaveCommentsBulkOptions(isLive: isLive, doSpamCheck: doSpamCheck, sendEmails: sendEmails, populateNotifications: populateNotifications)) { (response, error) in guard error == nil else { print(error) return @@ -5276,7 +5276,7 @@ Name | Type | Description | Notes # **unBlockUserFromComment** ```swift - open class func unBlockUserFromComment(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: UnblockSuccess?, _ error: Error?) -> Void) + open class func unBlockUserFromComment(tenantId: String, id: String, unBlockFromCommentParams: UnBlockFromCommentParams, options: UnBlockUserFromCommentOptions = .init(), completion: @escaping (_ data: UnblockSuccess?, _ error: Error?) -> Void) ``` @@ -5292,7 +5292,7 @@ let unBlockFromCommentParams = UnBlockFromCommentParams(commentIdsToCheck: ["com let userId = "userId_example" // String | (optional) let anonUserId = "anonUserId_example" // String | (optional) -DefaultAPI.unBlockUserFromComment(tenantId: tenantId, id: id, unBlockFromCommentParams: unBlockFromCommentParams, userId: userId, anonUserId: anonUserId) { (response, error) in +DefaultAPI.unBlockUserFromComment(tenantId: tenantId, id: id, unBlockFromCommentParams: unBlockFromCommentParams, options: DefaultAPI.UnBlockUserFromCommentOptions(userId: userId, anonUserId: anonUserId)) { (response, error) in guard error == nil else { print(error) return @@ -5331,7 +5331,7 @@ Name | Type | Description | Notes # **unFlagComment** ```swift - open class func unFlagComment(tenantId: String, id: String, userId: String? = nil, anonUserId: String? = nil, completion: @escaping (_ data: FlagCommentResponse?, _ error: Error?) -> Void) + open class func unFlagComment(tenantId: String, id: String, options: UnFlagCommentOptions = .init(), completion: @escaping (_ data: FlagCommentResponse?, _ error: Error?) -> Void) ``` @@ -5346,7 +5346,7 @@ let id = "id_example" // String | let userId = "userId_example" // String | (optional) let anonUserId = "anonUserId_example" // String | (optional) -DefaultAPI.unFlagComment(tenantId: tenantId, id: id, userId: userId, anonUserId: anonUserId) { (response, error) in +DefaultAPI.unFlagComment(tenantId: tenantId, id: id, options: DefaultAPI.UnFlagCommentOptions(userId: userId, anonUserId: anonUserId)) { (response, error) in guard error == nil else { print(error) return @@ -5384,7 +5384,7 @@ Name | Type | Description | Notes # **updateComment** ```swift - open class func updateComment(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, contextUserId: String? = nil, doSpamCheck: Bool? = nil, isLive: Bool? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func updateComment(tenantId: String, id: String, updatableCommentParams: UpdatableCommentParams, options: UpdateCommentOptions = .init(), completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -5401,7 +5401,7 @@ let contextUserId = "contextUserId_example" // String | (optional) let doSpamCheck = true // Bool | (optional) let isLive = true // Bool | (optional) -DefaultAPI.updateComment(tenantId: tenantId, id: id, updatableCommentParams: updatableCommentParams, contextUserId: contextUserId, doSpamCheck: doSpamCheck, isLive: isLive) { (response, error) in +DefaultAPI.updateComment(tenantId: tenantId, id: id, updatableCommentParams: updatableCommentParams, options: DefaultAPI.UpdateCommentOptions(contextUserId: contextUserId, doSpamCheck: doSpamCheck, isLive: isLive)) { (response, error) in guard error == nil else { print(error) return diff --git a/client/docs/ModerationAPI.md b/client/docs/ModerationAPI.md index 2e0b145..7d32560 100644 --- a/client/docs/ModerationAPI.md +++ b/client/docs/ModerationAPI.md @@ -4,54 +4,54 @@ 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** ```swift - open class func deleteModerationVote(commentId: String, voteId: String, sso: String? = nil, completion: @escaping (_ data: VoteDeleteResponse?, _ error: Error?) -> Void) + open class func deleteModerationVote(tenantId: String, commentId: String, voteId: String, options: DeleteModerationVoteOptions = .init(), completion: @escaping (_ data: VoteDeleteResponse?, _ error: Error?) -> Void) ``` @@ -61,11 +61,13 @@ Method | HTTP request | Description // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let voteId = "voteId_example" // String | +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.deleteModerationVote(commentId: commentId, voteId: voteId, sso: sso) { (response, error) in +ModerationAPI.deleteModerationVote(tenantId: tenantId, commentId: commentId, voteId: voteId, options: ModerationAPI.DeleteModerationVoteOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -81,8 +83,10 @@ ModerationAPI.deleteModerationVote(commentId: commentId, voteId: voteId, sso: ss Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **voteId** | **String** | | + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -102,7 +106,7 @@ No authorization required # **getApiComments** ```swift - open class func getApiComments(page: Double? = nil, count: Double? = nil, textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, demo: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationAPIGetCommentsResponse?, _ error: Error?) -> Void) + open class func getApiComments(tenantId: String, options: GetApiCommentsOptions = .init(), completion: @escaping (_ data: ModerationAPIGetCommentsResponse?, _ error: Error?) -> Void) ``` @@ -112,6 +116,7 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let page = 987 // Double | (optional) let count = 987 // Double | (optional) let textSearch = "textSearch_example" // String | (optional) @@ -122,7 +127,7 @@ let sorts = "sorts_example" // String | (optional) let demo = true // Bool | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getApiComments(page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso) { (response, error) in +ModerationAPI.getApiComments(tenantId: tenantId, options: ModerationAPI.GetApiCommentsOptions(page: page, count: count, textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, demo: demo, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -138,6 +143,7 @@ ModerationAPI.getApiComments(page: page, count: count, textSearch: textSearch, b Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **page** | **Double** | | [optional] **count** | **Double** | | [optional] **textSearch** | **String** | | [optional] @@ -165,7 +171,7 @@ No authorization required # **getApiExportStatus** ```swift - open class func getApiExportStatus(batchJobId: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationExportStatusResponse?, _ error: Error?) -> Void) + open class func getApiExportStatus(tenantId: String, options: GetApiExportStatusOptions = .init(), completion: @escaping (_ data: ModerationExportStatusResponse?, _ error: Error?) -> Void) ``` @@ -175,10 +181,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let batchJobId = "batchJobId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getApiExportStatus(batchJobId: batchJobId, sso: sso) { (response, error) in +ModerationAPI.getApiExportStatus(tenantId: tenantId, options: ModerationAPI.GetApiExportStatusOptions(batchJobId: batchJobId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -194,6 +201,7 @@ ModerationAPI.getApiExportStatus(batchJobId: batchJobId, sso: sso) { (response, Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **batchJobId** | **String** | | [optional] **sso** | **String** | | [optional] @@ -214,7 +222,7 @@ No authorization required # **getApiIds** ```swift - open class func getApiIds(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, afterId: String? = nil, demo: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationAPIGetCommentIdsResponse?, _ error: Error?) -> Void) + open class func getApiIds(tenantId: String, options: GetApiIdsOptions = .init(), completion: @escaping (_ data: ModerationAPIGetCommentIdsResponse?, _ error: Error?) -> Void) ``` @@ -224,6 +232,7 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let textSearch = "textSearch_example" // String | (optional) let byIPFromComment = "byIPFromComment_example" // String | (optional) let filters = "filters_example" // String | (optional) @@ -232,7 +241,7 @@ let afterId = "afterId_example" // String | (optional) let demo = true // Bool | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getApiIds(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso) { (response, error) in +ModerationAPI.getApiIds(tenantId: tenantId, options: ModerationAPI.GetApiIdsOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, afterId: afterId, demo: demo, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -248,6 +257,7 @@ ModerationAPI.getApiIds(textSearch: textSearch, byIPFromComment: byIPFromComment Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **textSearch** | **String** | | [optional] **byIPFromComment** | **String** | | [optional] **filters** | **String** | | [optional] @@ -273,7 +283,7 @@ No authorization required # **getBanUsersFromComment** ```swift - open class func getBanUsersFromComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: GetBannedUsersFromCommentResponse?, _ error: Error?) -> Void) + open class func getBanUsersFromComment(tenantId: String, commentId: String, sso: String? = nil, completion: @escaping (_ data: GetBannedUsersFromCommentResponse?, _ error: Error?) -> Void) ``` @@ -283,10 +293,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.getBanUsersFromComment(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.getBanUsersFromComment(tenantId: tenantId, commentId: commentId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -302,6 +313,7 @@ ModerationAPI.getBanUsersFromComment(commentId: commentId, sso: sso) { (response Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **sso** | **String** | | [optional] @@ -322,7 +334,7 @@ No authorization required # **getCommentBanStatus** ```swift - open class func getCommentBanStatus(commentId: String, sso: String? = nil, completion: @escaping (_ data: GetCommentBanStatusResponse?, _ error: Error?) -> Void) + open class func getCommentBanStatus(tenantId: String, commentId: String, sso: String? = nil, completion: @escaping (_ data: GetCommentBanStatusResponse?, _ error: Error?) -> Void) ``` @@ -332,10 +344,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.getCommentBanStatus(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.getCommentBanStatus(tenantId: tenantId, commentId: commentId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -351,6 +364,7 @@ ModerationAPI.getCommentBanStatus(commentId: commentId, sso: sso) { (response, e Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **sso** | **String** | | [optional] @@ -371,7 +385,7 @@ No authorization required # **getCommentChildren** ```swift - open class func getCommentChildren(commentId: String, sso: String? = nil, completion: @escaping (_ data: ModerationAPIChildCommentsResponse?, _ error: Error?) -> Void) + open class func getCommentChildren(tenantId: String, commentId: String, sso: String? = nil, completion: @escaping (_ data: ModerationAPIChildCommentsResponse?, _ error: Error?) -> Void) ``` @@ -381,10 +395,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.getCommentChildren(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.getCommentChildren(tenantId: tenantId, commentId: commentId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -400,6 +415,7 @@ ModerationAPI.getCommentChildren(commentId: commentId, sso: sso) { (response, er Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **sso** | **String** | | [optional] @@ -420,7 +436,7 @@ No authorization required # **getCount** ```swift - open class func getCount(textSearch: String? = nil, byIPFromComment: String? = nil, filter: String? = nil, searchFilters: String? = nil, demo: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationAPICountCommentsResponse?, _ error: Error?) -> Void) + open class func getCount(tenantId: String, options: GetCountOptions = .init(), completion: @escaping (_ data: ModerationAPICountCommentsResponse?, _ error: Error?) -> Void) ``` @@ -430,6 +446,7 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let textSearch = "textSearch_example" // String | (optional) let byIPFromComment = "byIPFromComment_example" // String | (optional) let filter = "filter_example" // String | (optional) @@ -437,7 +454,7 @@ let searchFilters = "searchFilters_example" // String | (optional) let demo = true // Bool | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getCount(textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso) { (response, error) in +ModerationAPI.getCount(tenantId: tenantId, options: ModerationAPI.GetCountOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filter: filter, searchFilters: searchFilters, demo: demo, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -453,6 +470,7 @@ ModerationAPI.getCount(textSearch: textSearch, byIPFromComment: byIPFromComment, Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **textSearch** | **String** | | [optional] **byIPFromComment** | **String** | | [optional] **filter** | **String** | | [optional] @@ -477,7 +495,7 @@ No authorization required # **getCounts** ```swift - open class func getCounts(sso: String? = nil, completion: @escaping (_ data: GetBannedUsersCountResponse?, _ error: Error?) -> Void) + open class func getCounts(tenantId: String, sso: String? = nil, completion: @escaping (_ data: GetBannedUsersCountResponse?, _ error: Error?) -> Void) ``` @@ -487,9 +505,10 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.getCounts(sso: sso) { (response, error) in +ModerationAPI.getCounts(tenantId: tenantId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -505,6 +524,7 @@ ModerationAPI.getCounts(sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **sso** | **String** | | [optional] ### Return type @@ -524,7 +544,7 @@ No authorization required # **getLogs** ```swift - open class func getLogs(commentId: String, sso: String? = nil, completion: @escaping (_ data: ModerationAPIGetLogsResponse?, _ error: Error?) -> Void) + open class func getLogs(tenantId: String, commentId: String, sso: String? = nil, completion: @escaping (_ data: ModerationAPIGetLogsResponse?, _ error: Error?) -> Void) ``` @@ -534,10 +554,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.getLogs(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.getLogs(tenantId: tenantId, commentId: commentId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -553,6 +574,7 @@ ModerationAPI.getLogs(commentId: commentId, sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **sso** | **String** | | [optional] @@ -573,7 +595,7 @@ No authorization required # **getManualBadges** ```swift - open class func getManualBadges(sso: String? = nil, completion: @escaping (_ data: GetTenantManualBadgesResponse?, _ error: Error?) -> Void) + open class func getManualBadges(tenantId: String, sso: String? = nil, completion: @escaping (_ data: GetTenantManualBadgesResponse?, _ error: Error?) -> Void) ``` @@ -583,9 +605,10 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.getManualBadges(sso: sso) { (response, error) in +ModerationAPI.getManualBadges(tenantId: tenantId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -601,6 +624,7 @@ ModerationAPI.getManualBadges(sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **sso** | **String** | | [optional] ### Return type @@ -620,7 +644,7 @@ No authorization required # **getManualBadgesForUser** ```swift - open class func getManualBadgesForUser(badgesUserId: String? = nil, commentId: String? = nil, sso: String? = nil, completion: @escaping (_ data: GetUserManualBadgesResponse?, _ error: Error?) -> Void) + open class func getManualBadgesForUser(tenantId: String, options: GetManualBadgesForUserOptions = .init(), completion: @escaping (_ data: GetUserManualBadgesResponse?, _ error: Error?) -> Void) ``` @@ -630,11 +654,12 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let badgesUserId = "badgesUserId_example" // String | (optional) let commentId = "commentId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getManualBadgesForUser(badgesUserId: badgesUserId, commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.getManualBadgesForUser(tenantId: tenantId, options: ModerationAPI.GetManualBadgesForUserOptions(badgesUserId: badgesUserId, commentId: commentId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -650,6 +675,7 @@ ModerationAPI.getManualBadgesForUser(badgesUserId: badgesUserId, commentId: comm Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **badgesUserId** | **String** | | [optional] **commentId** | **String** | | [optional] **sso** | **String** | | [optional] @@ -671,7 +697,7 @@ No authorization required # **getModerationComment** ```swift - open class func getModerationComment(commentId: String, includeEmail: Bool? = nil, includeIP: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationAPICommentResponse?, _ error: Error?) -> Void) + open class func getModerationComment(tenantId: String, commentId: String, options: GetModerationCommentOptions = .init(), completion: @escaping (_ data: ModerationAPICommentResponse?, _ error: Error?) -> Void) ``` @@ -681,12 +707,13 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let includeEmail = true // Bool | (optional) let includeIP = true // Bool | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getModerationComment(commentId: commentId, includeEmail: includeEmail, includeIP: includeIP, sso: sso) { (response, error) in +ModerationAPI.getModerationComment(tenantId: tenantId, commentId: commentId, options: ModerationAPI.GetModerationCommentOptions(includeEmail: includeEmail, includeIP: includeIP, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -702,6 +729,7 @@ ModerationAPI.getModerationComment(commentId: commentId, includeEmail: includeEm Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **includeEmail** | **Bool** | | [optional] **includeIP** | **Bool** | | [optional] @@ -724,7 +752,7 @@ No authorization required # **getModerationCommentText** ```swift - open class func getModerationCommentText(commentId: String, sso: String? = nil, completion: @escaping (_ data: GetCommentTextResponse?, _ error: Error?) -> Void) + open class func getModerationCommentText(tenantId: String, commentId: String, sso: String? = nil, completion: @escaping (_ data: GetCommentTextResponse?, _ error: Error?) -> Void) ``` @@ -734,10 +762,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.getModerationCommentText(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.getModerationCommentText(tenantId: tenantId, commentId: commentId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -753,6 +782,7 @@ ModerationAPI.getModerationCommentText(commentId: commentId, sso: sso) { (respon Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **sso** | **String** | | [optional] @@ -773,7 +803,7 @@ No authorization required # **getPreBanSummary** ```swift - open class func getPreBanSummary(commentId: String, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: PreBanSummary?, _ error: Error?) -> Void) + open class func getPreBanSummary(tenantId: String, commentId: String, options: GetPreBanSummaryOptions = .init(), completion: @escaping (_ data: PreBanSummary?, _ error: Error?) -> Void) ``` @@ -783,13 +813,14 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let includeByUserIdAndEmail = true // Bool | (optional) let includeByIP = true // Bool | (optional) let includeByEmailDomain = true // Bool | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getPreBanSummary(commentId: commentId, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso) { (response, error) in +ModerationAPI.getPreBanSummary(tenantId: tenantId, commentId: commentId, options: ModerationAPI.GetPreBanSummaryOptions(includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -805,6 +836,7 @@ ModerationAPI.getPreBanSummary(commentId: commentId, includeByUserIdAndEmail: in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **includeByUserIdAndEmail** | **Bool** | | [optional] **includeByIP** | **Bool** | | [optional] @@ -828,7 +860,7 @@ No authorization required # **getSearchCommentsSummary** ```swift - open class func getSearchCommentsSummary(value: String? = nil, filters: String? = nil, searchFilters: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationCommentSearchResponse?, _ error: Error?) -> Void) + open class func getSearchCommentsSummary(tenantId: String, options: GetSearchCommentsSummaryOptions = .init(), completion: @escaping (_ data: ModerationCommentSearchResponse?, _ error: Error?) -> Void) ``` @@ -838,12 +870,13 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let value = "value_example" // String | (optional) let filters = "filters_example" // String | (optional) let searchFilters = "searchFilters_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getSearchCommentsSummary(value: value, filters: filters, searchFilters: searchFilters, sso: sso) { (response, error) in +ModerationAPI.getSearchCommentsSummary(tenantId: tenantId, options: ModerationAPI.GetSearchCommentsSummaryOptions(value: value, filters: filters, searchFilters: searchFilters, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -859,6 +892,7 @@ ModerationAPI.getSearchCommentsSummary(value: value, filters: filters, searchFil Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **value** | **String** | | [optional] **filters** | **String** | | [optional] **searchFilters** | **String** | | [optional] @@ -881,7 +915,7 @@ No authorization required # **getSearchPages** ```swift - open class func getSearchPages(value: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationPageSearchResponse?, _ error: Error?) -> Void) + open class func getSearchPages(tenantId: String, options: GetSearchPagesOptions = .init(), completion: @escaping (_ data: ModerationPageSearchResponse?, _ error: Error?) -> Void) ``` @@ -891,10 +925,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let value = "value_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getSearchPages(value: value, sso: sso) { (response, error) in +ModerationAPI.getSearchPages(tenantId: tenantId, options: ModerationAPI.GetSearchPagesOptions(value: value, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -910,6 +945,7 @@ ModerationAPI.getSearchPages(value: value, sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **value** | **String** | | [optional] **sso** | **String** | | [optional] @@ -930,7 +966,7 @@ No authorization required # **getSearchSites** ```swift - open class func getSearchSites(value: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationSiteSearchResponse?, _ error: Error?) -> Void) + open class func getSearchSites(tenantId: String, options: GetSearchSitesOptions = .init(), completion: @escaping (_ data: ModerationSiteSearchResponse?, _ error: Error?) -> Void) ``` @@ -940,10 +976,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let value = "value_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getSearchSites(value: value, sso: sso) { (response, error) in +ModerationAPI.getSearchSites(tenantId: tenantId, options: ModerationAPI.GetSearchSitesOptions(value: value, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -959,6 +996,7 @@ ModerationAPI.getSearchSites(value: value, sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **value** | **String** | | [optional] **sso** | **String** | | [optional] @@ -979,7 +1017,7 @@ No authorization required # **getSearchSuggest** ```swift - open class func getSearchSuggest(textSearch: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationSuggestResponse?, _ error: Error?) -> Void) + open class func getSearchSuggest(tenantId: String, options: GetSearchSuggestOptions = .init(), completion: @escaping (_ data: ModerationSuggestResponse?, _ error: Error?) -> Void) ``` @@ -989,10 +1027,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let textSearch = "textSearch_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getSearchSuggest(textSearch: textSearch, sso: sso) { (response, error) in +ModerationAPI.getSearchSuggest(tenantId: tenantId, options: ModerationAPI.GetSearchSuggestOptions(textSearch: textSearch, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1008,6 +1047,7 @@ ModerationAPI.getSearchSuggest(textSearch: textSearch, sso: sso) { (response, er Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **textSearch** | **String** | | [optional] **sso** | **String** | | [optional] @@ -1028,7 +1068,7 @@ No authorization required # **getSearchUsers** ```swift - open class func getSearchUsers(value: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationUserSearchResponse?, _ error: Error?) -> Void) + open class func getSearchUsers(tenantId: String, options: GetSearchUsersOptions = .init(), completion: @escaping (_ data: ModerationUserSearchResponse?, _ error: Error?) -> Void) ``` @@ -1038,10 +1078,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let value = "value_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getSearchUsers(value: value, sso: sso) { (response, error) in +ModerationAPI.getSearchUsers(tenantId: tenantId, options: ModerationAPI.GetSearchUsersOptions(value: value, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1057,6 +1098,7 @@ ModerationAPI.getSearchUsers(value: value, sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **value** | **String** | | [optional] **sso** | **String** | | [optional] @@ -1077,7 +1119,7 @@ No authorization required # **getTrustFactor** ```swift - open class func getTrustFactor(userId: String? = nil, sso: String? = nil, completion: @escaping (_ data: GetUserTrustFactorResponse?, _ error: Error?) -> Void) + open class func getTrustFactor(tenantId: String, options: GetTrustFactorOptions = .init(), completion: @escaping (_ data: GetUserTrustFactorResponse?, _ error: Error?) -> Void) ``` @@ -1087,10 +1129,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let userId = "userId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getTrustFactor(userId: userId, sso: sso) { (response, error) in +ModerationAPI.getTrustFactor(tenantId: tenantId, options: ModerationAPI.GetTrustFactorOptions(userId: userId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1106,6 +1149,7 @@ ModerationAPI.getTrustFactor(userId: userId, sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **userId** | **String** | | [optional] **sso** | **String** | | [optional] @@ -1126,7 +1170,7 @@ No authorization required # **getUserBanPreference** ```swift - open class func getUserBanPreference(sso: String? = nil, completion: @escaping (_ data: APIModerateGetUserBanPreferencesResponse?, _ error: Error?) -> Void) + open class func getUserBanPreference(tenantId: String, sso: String? = nil, completion: @escaping (_ data: APIModerateGetUserBanPreferencesResponse?, _ error: Error?) -> Void) ``` @@ -1136,9 +1180,10 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.getUserBanPreference(sso: sso) { (response, error) in +ModerationAPI.getUserBanPreference(tenantId: tenantId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -1154,6 +1199,7 @@ ModerationAPI.getUserBanPreference(sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **sso** | **String** | | [optional] ### Return type @@ -1173,7 +1219,7 @@ No authorization required # **getUserInternalProfile** ```swift - open class func getUserInternalProfile(commentId: String? = nil, sso: String? = nil, completion: @escaping (_ data: GetUserInternalProfileResponse?, _ error: Error?) -> Void) + open class func getUserInternalProfile(tenantId: String, options: GetUserInternalProfileOptions = .init(), completion: @escaping (_ data: GetUserInternalProfileResponse?, _ error: Error?) -> Void) ``` @@ -1183,10 +1229,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.getUserInternalProfile(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.getUserInternalProfile(tenantId: tenantId, options: ModerationAPI.GetUserInternalProfileOptions(commentId: commentId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1202,6 +1249,7 @@ ModerationAPI.getUserInternalProfile(commentId: commentId, sso: sso) { (response Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | [optional] **sso** | **String** | | [optional] @@ -1222,7 +1270,7 @@ No authorization required # **postAdjustCommentVotes** ```swift - open class func postAdjustCommentVotes(commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, sso: String? = nil, completion: @escaping (_ data: AdjustVotesResponse?, _ error: Error?) -> Void) + open class func postAdjustCommentVotes(tenantId: String, commentId: String, adjustCommentVotesParams: AdjustCommentVotesParams, options: PostAdjustCommentVotesOptions = .init(), completion: @escaping (_ data: AdjustVotesResponse?, _ error: Error?) -> Void) ``` @@ -1232,11 +1280,13 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let adjustCommentVotesParams = AdjustCommentVotesParams(adjustVoteAmount: 123) // AdjustCommentVotesParams | +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postAdjustCommentVotes(commentId: commentId, adjustCommentVotesParams: adjustCommentVotesParams, sso: sso) { (response, error) in +ModerationAPI.postAdjustCommentVotes(tenantId: tenantId, commentId: commentId, adjustCommentVotesParams: adjustCommentVotesParams, options: ModerationAPI.PostAdjustCommentVotesOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1252,8 +1302,10 @@ ModerationAPI.postAdjustCommentVotes(commentId: commentId, adjustCommentVotesPar Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **adjustCommentVotesParams** | [**AdjustCommentVotesParams**](AdjustCommentVotesParams.md) | | + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -1273,7 +1325,7 @@ No authorization required # **postApiExport** ```swift - open class func postApiExport(textSearch: String? = nil, byIPFromComment: String? = nil, filters: String? = nil, searchFilters: String? = nil, sorts: String? = nil, sso: String? = nil, completion: @escaping (_ data: ModerationExportResponse?, _ error: Error?) -> Void) + open class func postApiExport(tenantId: String, options: PostApiExportOptions = .init(), completion: @escaping (_ data: ModerationExportResponse?, _ error: Error?) -> Void) ``` @@ -1283,6 +1335,7 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let textSearch = "textSearch_example" // String | (optional) let byIPFromComment = "byIPFromComment_example" // String | (optional) let filters = "filters_example" // String | (optional) @@ -1290,7 +1343,7 @@ let searchFilters = "searchFilters_example" // String | (optional) let sorts = "sorts_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postApiExport(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sso) { (response, error) in +ModerationAPI.postApiExport(tenantId: tenantId, options: ModerationAPI.PostApiExportOptions(textSearch: textSearch, byIPFromComment: byIPFromComment, filters: filters, searchFilters: searchFilters, sorts: sorts, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1306,6 +1359,7 @@ ModerationAPI.postApiExport(textSearch: textSearch, byIPFromComment: byIPFromCom Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **textSearch** | **String** | | [optional] **byIPFromComment** | **String** | | [optional] **filters** | **String** | | [optional] @@ -1330,7 +1384,7 @@ No authorization required # **postBanUserFromComment** ```swift - open class func postBanUserFromComment(commentId: String, banEmail: Bool? = nil, banEmailDomain: Bool? = nil, banIP: Bool? = nil, deleteAllUsersComments: Bool? = nil, bannedUntil: String? = nil, isShadowBan: Bool? = nil, updateId: String? = nil, banReason: String? = nil, sso: String? = nil, completion: @escaping (_ data: BanUserFromCommentResult?, _ error: Error?) -> Void) + open class func postBanUserFromComment(tenantId: String, commentId: String, options: PostBanUserFromCommentOptions = .init(), completion: @escaping (_ data: BanUserFromCommentResult?, _ error: Error?) -> Void) ``` @@ -1340,6 +1394,7 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let banEmail = true // Bool | (optional) let banEmailDomain = true // Bool | (optional) @@ -1351,7 +1406,7 @@ let updateId = "updateId_example" // String | (optional) let banReason = "banReason_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postBanUserFromComment(commentId: commentId, banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso) { (response, error) in +ModerationAPI.postBanUserFromComment(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostBanUserFromCommentOptions(banEmail: banEmail, banEmailDomain: banEmailDomain, banIP: banIP, deleteAllUsersComments: deleteAllUsersComments, bannedUntil: bannedUntil, isShadowBan: isShadowBan, updateId: updateId, banReason: banReason, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1367,6 +1422,7 @@ ModerationAPI.postBanUserFromComment(commentId: commentId, banEmail: banEmail, b Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **banEmail** | **Bool** | | [optional] **banEmailDomain** | **Bool** | | [optional] @@ -1395,7 +1451,7 @@ No authorization required # **postBanUserUndo** ```swift - open class func postBanUserUndo(banUserUndoParams: BanUserUndoParams, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func postBanUserUndo(tenantId: String, banUserUndoParams: BanUserUndoParams, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1405,10 +1461,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let banUserUndoParams = BanUserUndoParams(changelog: APIBanUserChangeLog(createdBannedUserId: "createdBannedUserId_example", updatedBannedUserId: "updatedBannedUserId_example", deletedBannedUsers: [APIBannedUser(id: "id_example", tenantId: "tenantId_example", userId: "userId_example", email: "email_example", username: "username_example", ipHash: "ipHash_example", createdAt: Date(), bannedByUserId: "bannedByUserId_example", bannedCommentText: "bannedCommentText_example", banType: "banType_example", bannedUntil: Date(), hasEmailWildcard: false, banReason: "banReason_example")], changedValuesBefore: APIBanUserChangedValues(id: "id_example", tenantId: "tenantId_example", userId: "userId_example", email: "email_example", username: "username_example", ipHash: "ipHash_example", createdAt: Date(), bannedByUserId: "bannedByUserId_example", bannedCommentText: "bannedCommentText_example", banType: "banType_example", bannedUntil: Date(), hasEmailWildcard: false, banReason: "banReason_example"))) // BanUserUndoParams | let sso = "sso_example" // String | (optional) -ModerationAPI.postBanUserUndo(banUserUndoParams: banUserUndoParams, sso: sso) { (response, error) in +ModerationAPI.postBanUserUndo(tenantId: tenantId, banUserUndoParams: banUserUndoParams, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -1424,6 +1481,7 @@ ModerationAPI.postBanUserUndo(banUserUndoParams: banUserUndoParams, sso: sso) { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **banUserUndoParams** | [**BanUserUndoParams**](BanUserUndoParams.md) | | **sso** | **String** | | [optional] @@ -1444,7 +1502,7 @@ No authorization required # **postBulkPreBanSummary** ```swift - open class func postBulkPreBanSummary(bulkPreBanParams: BulkPreBanParams, includeByUserIdAndEmail: Bool? = nil, includeByIP: Bool? = nil, includeByEmailDomain: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: BulkPreBanSummary?, _ error: Error?) -> Void) + open class func postBulkPreBanSummary(tenantId: String, bulkPreBanParams: BulkPreBanParams, options: PostBulkPreBanSummaryOptions = .init(), completion: @escaping (_ data: BulkPreBanSummary?, _ error: Error?) -> Void) ``` @@ -1454,13 +1512,14 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let bulkPreBanParams = BulkPreBanParams(commentIds: ["commentIds_example"]) // BulkPreBanParams | let includeByUserIdAndEmail = true // Bool | (optional) let includeByIP = true // Bool | (optional) let includeByEmailDomain = true // Bool | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postBulkPreBanSummary(bulkPreBanParams: bulkPreBanParams, includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso) { (response, error) in +ModerationAPI.postBulkPreBanSummary(tenantId: tenantId, bulkPreBanParams: bulkPreBanParams, options: ModerationAPI.PostBulkPreBanSummaryOptions(includeByUserIdAndEmail: includeByUserIdAndEmail, includeByIP: includeByIP, includeByEmailDomain: includeByEmailDomain, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1476,6 +1535,7 @@ ModerationAPI.postBulkPreBanSummary(bulkPreBanParams: bulkPreBanParams, includeB Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **bulkPreBanParams** | [**BulkPreBanParams**](BulkPreBanParams.md) | | **includeByUserIdAndEmail** | **Bool** | | [optional] **includeByIP** | **Bool** | | [optional] @@ -1499,7 +1559,7 @@ No authorization required # **postCommentsByIds** ```swift - open class func postCommentsByIds(commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, completion: @escaping (_ data: ModerationAPIChildCommentsResponse?, _ error: Error?) -> Void) + open class func postCommentsByIds(tenantId: String, commentsByIdsParams: CommentsByIdsParams, sso: String? = nil, completion: @escaping (_ data: ModerationAPIChildCommentsResponse?, _ error: Error?) -> Void) ``` @@ -1509,10 +1569,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentsByIdsParams = CommentsByIdsParams(ids: ["ids_example"]) // CommentsByIdsParams | let sso = "sso_example" // String | (optional) -ModerationAPI.postCommentsByIds(commentsByIdsParams: commentsByIdsParams, sso: sso) { (response, error) in +ModerationAPI.postCommentsByIds(tenantId: tenantId, commentsByIdsParams: commentsByIdsParams, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -1528,6 +1589,7 @@ ModerationAPI.postCommentsByIds(commentsByIdsParams: commentsByIdsParams, sso: s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentsByIdsParams** | [**CommentsByIdsParams**](CommentsByIdsParams.md) | | **sso** | **String** | | [optional] @@ -1548,7 +1610,7 @@ No authorization required # **postFlagComment** ```swift - open class func postFlagComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func postFlagComment(tenantId: String, commentId: String, options: PostFlagCommentOptions = .init(), completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1558,10 +1620,12 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postFlagComment(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.postFlagComment(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostFlagCommentOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1577,7 +1641,9 @@ ModerationAPI.postFlagComment(commentId: commentId, sso: sso) { (response, error Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -1597,7 +1663,7 @@ No authorization required # **postRemoveComment** ```swift - open class func postRemoveComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: PostRemoveCommentResponse?, _ error: Error?) -> Void) + open class func postRemoveComment(tenantId: String, commentId: String, options: PostRemoveCommentOptions = .init(), completion: @escaping (_ data: PostRemoveCommentApiResponse?, _ error: Error?) -> Void) ``` @@ -1607,10 +1673,12 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postRemoveComment(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.postRemoveComment(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostRemoveCommentOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1626,12 +1694,14 @@ ModerationAPI.postRemoveComment(commentId: commentId, sso: sso) { (response, err Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type -[**PostRemoveCommentResponse**](PostRemoveCommentResponse.md) +[**PostRemoveCommentApiResponse**](PostRemoveCommentApiResponse.md) ### Authorization @@ -1646,7 +1716,7 @@ No authorization required # **postRestoreDeletedComment** ```swift - open class func postRestoreDeletedComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func postRestoreDeletedComment(tenantId: String, commentId: String, options: PostRestoreDeletedCommentOptions = .init(), completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1656,10 +1726,12 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postRestoreDeletedComment(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.postRestoreDeletedComment(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostRestoreDeletedCommentOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1675,7 +1747,9 @@ ModerationAPI.postRestoreDeletedComment(commentId: commentId, sso: sso) { (respo Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -1695,7 +1769,7 @@ No authorization required # **postSetCommentApprovalStatus** ```swift - open class func postSetCommentApprovalStatus(commentId: String, approved: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: SetCommentApprovedResponse?, _ error: Error?) -> Void) + open class func postSetCommentApprovalStatus(tenantId: String, commentId: String, options: PostSetCommentApprovalStatusOptions = .init(), completion: @escaping (_ data: SetCommentApprovedResponse?, _ error: Error?) -> Void) ``` @@ -1705,11 +1779,13 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let approved = true // Bool | (optional) +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postSetCommentApprovalStatus(commentId: commentId, approved: approved, sso: sso) { (response, error) in +ModerationAPI.postSetCommentApprovalStatus(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostSetCommentApprovalStatusOptions(approved: approved, broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1725,8 +1801,10 @@ ModerationAPI.postSetCommentApprovalStatus(commentId: commentId, approved: appro Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **approved** | **Bool** | | [optional] + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -1746,7 +1824,7 @@ No authorization required # **postSetCommentReviewStatus** ```swift - open class func postSetCommentReviewStatus(commentId: String, reviewed: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func postSetCommentReviewStatus(tenantId: String, commentId: String, options: PostSetCommentReviewStatusOptions = .init(), completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1756,11 +1834,13 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let reviewed = true // Bool | (optional) +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postSetCommentReviewStatus(commentId: commentId, reviewed: reviewed, sso: sso) { (response, error) in +ModerationAPI.postSetCommentReviewStatus(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostSetCommentReviewStatusOptions(reviewed: reviewed, broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1776,8 +1856,10 @@ ModerationAPI.postSetCommentReviewStatus(commentId: commentId, reviewed: reviewe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **reviewed** | **Bool** | | [optional] + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -1797,7 +1879,7 @@ No authorization required # **postSetCommentSpamStatus** ```swift - open class func postSetCommentSpamStatus(commentId: String, spam: Bool? = nil, permNotSpam: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func postSetCommentSpamStatus(tenantId: String, commentId: String, options: PostSetCommentSpamStatusOptions = .init(), completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1807,12 +1889,14 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let spam = true // Bool | (optional) let permNotSpam = true // Bool | (optional) +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postSetCommentSpamStatus(commentId: commentId, spam: spam, permNotSpam: permNotSpam, sso: sso) { (response, error) in +ModerationAPI.postSetCommentSpamStatus(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostSetCommentSpamStatusOptions(spam: spam, permNotSpam: permNotSpam, broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1828,9 +1912,11 @@ ModerationAPI.postSetCommentSpamStatus(commentId: commentId, spam: spam, permNot Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **spam** | **Bool** | | [optional] **permNotSpam** | **Bool** | | [optional] + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -1850,7 +1936,7 @@ No authorization required # **postSetCommentText** ```swift - open class func postSetCommentText(commentId: String, setCommentTextParams: SetCommentTextParams, sso: String? = nil, completion: @escaping (_ data: SetCommentTextResponse?, _ error: Error?) -> Void) + open class func postSetCommentText(tenantId: String, commentId: String, setCommentTextParams: SetCommentTextParams, options: PostSetCommentTextOptions = .init(), completion: @escaping (_ data: SetCommentTextResponse?, _ error: Error?) -> Void) ``` @@ -1860,11 +1946,13 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let setCommentTextParams = SetCommentTextParams(comment: "comment_example") // SetCommentTextParams | +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postSetCommentText(commentId: commentId, setCommentTextParams: setCommentTextParams, sso: sso) { (response, error) in +ModerationAPI.postSetCommentText(tenantId: tenantId, commentId: commentId, setCommentTextParams: setCommentTextParams, options: ModerationAPI.PostSetCommentTextOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1880,8 +1968,10 @@ ModerationAPI.postSetCommentText(commentId: commentId, setCommentTextParams: set Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **setCommentTextParams** | [**SetCommentTextParams**](SetCommentTextParams.md) | | + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -1901,7 +1991,7 @@ No authorization required # **postUnFlagComment** ```swift - open class func postUnFlagComment(commentId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func postUnFlagComment(tenantId: String, commentId: String, options: PostUnFlagCommentOptions = .init(), completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -1911,10 +2001,12 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postUnFlagComment(commentId: commentId, sso: sso) { (response, error) in +ModerationAPI.postUnFlagComment(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostUnFlagCommentOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1930,7 +2022,9 @@ ModerationAPI.postUnFlagComment(commentId: commentId, sso: sso) { (response, err Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -1950,7 +2044,7 @@ No authorization required # **postVote** ```swift - open class func postVote(commentId: String, direction: String? = nil, sso: String? = nil, completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) + open class func postVote(tenantId: String, commentId: String, options: PostVoteOptions = .init(), completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) ``` @@ -1960,11 +2054,13 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let commentId = "commentId_example" // String | let direction = "direction_example" // String | (optional) +let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.postVote(commentId: commentId, direction: direction, sso: sso) { (response, error) in +ModerationAPI.postVote(tenantId: tenantId, commentId: commentId, options: ModerationAPI.PostVoteOptions(direction: direction, broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1980,8 +2076,10 @@ ModerationAPI.postVote(commentId: commentId, direction: direction, sso: sso) { ( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **commentId** | **String** | | **direction** | **String** | | [optional] + **broadcastId** | **String** | | [optional] **sso** | **String** | | [optional] ### Return type @@ -2001,7 +2099,7 @@ No authorization required # **putAwardBadge** ```swift - open class func putAwardBadge(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: AwardUserBadgeResponse?, _ error: Error?) -> Void) + open class func putAwardBadge(tenantId: String, badgeId: String, options: PutAwardBadgeOptions = .init(), completion: @escaping (_ data: AwardUserBadgeResponse?, _ error: Error?) -> Void) ``` @@ -2011,13 +2109,14 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let badgeId = "badgeId_example" // String | let userId = "userId_example" // String | (optional) let commentId = "commentId_example" // String | (optional) let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.putAwardBadge(badgeId: badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso) { (response, error) in +ModerationAPI.putAwardBadge(tenantId: tenantId, badgeId: badgeId, options: ModerationAPI.PutAwardBadgeOptions(userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -2033,6 +2132,7 @@ ModerationAPI.putAwardBadge(badgeId: badgeId, userId: userId, commentId: comment Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **badgeId** | **String** | | **userId** | **String** | | [optional] **commentId** | **String** | | [optional] @@ -2056,7 +2156,7 @@ No authorization required # **putCloseThread** ```swift - open class func putCloseThread(urlId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func putCloseThread(tenantId: String, urlId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -2066,10 +2166,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let urlId = "urlId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.putCloseThread(urlId: urlId, sso: sso) { (response, error) in +ModerationAPI.putCloseThread(tenantId: tenantId, urlId: urlId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -2085,6 +2186,7 @@ ModerationAPI.putCloseThread(urlId: urlId, sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **urlId** | **String** | | **sso** | **String** | | [optional] @@ -2105,7 +2207,7 @@ No authorization required # **putRemoveBadge** ```swift - open class func putRemoveBadge(badgeId: String, userId: String? = nil, commentId: String? = nil, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: RemoveUserBadgeResponse?, _ error: Error?) -> Void) + open class func putRemoveBadge(tenantId: String, badgeId: String, options: PutRemoveBadgeOptions = .init(), completion: @escaping (_ data: RemoveUserBadgeResponse?, _ error: Error?) -> Void) ``` @@ -2115,13 +2217,14 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let badgeId = "badgeId_example" // String | let userId = "userId_example" // String | (optional) let commentId = "commentId_example" // String | (optional) let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.putRemoveBadge(badgeId: badgeId, userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso) { (response, error) in +ModerationAPI.putRemoveBadge(tenantId: tenantId, badgeId: badgeId, options: ModerationAPI.PutRemoveBadgeOptions(userId: userId, commentId: commentId, broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -2137,6 +2240,7 @@ ModerationAPI.putRemoveBadge(badgeId: badgeId, userId: userId, commentId: commen Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **badgeId** | **String** | | **userId** | **String** | | [optional] **commentId** | **String** | | [optional] @@ -2160,7 +2264,7 @@ No authorization required # **putReopenThread** ```swift - open class func putReopenThread(urlId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) + open class func putReopenThread(tenantId: String, urlId: String, sso: String? = nil, completion: @escaping (_ data: APIEmptyResponse?, _ error: Error?) -> Void) ``` @@ -2170,10 +2274,11 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let urlId = "urlId_example" // String | let sso = "sso_example" // String | (optional) -ModerationAPI.putReopenThread(urlId: urlId, sso: sso) { (response, error) in +ModerationAPI.putReopenThread(tenantId: tenantId, urlId: urlId, sso: sso) { (response, error) in guard error == nil else { print(error) return @@ -2189,6 +2294,7 @@ ModerationAPI.putReopenThread(urlId: urlId, sso: sso) { (response, error) in Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **urlId** | **String** | | **sso** | **String** | | [optional] @@ -2209,7 +2315,7 @@ No authorization required # **setTrustFactor** ```swift - open class func setTrustFactor(userId: String? = nil, trustFactor: String? = nil, sso: String? = nil, completion: @escaping (_ data: SetUserTrustFactorResponse?, _ error: Error?) -> Void) + open class func setTrustFactor(tenantId: String, options: SetTrustFactorOptions = .init(), completion: @escaping (_ data: SetUserTrustFactorResponse?, _ error: Error?) -> Void) ``` @@ -2219,11 +2325,12 @@ No authorization required // The following code samples are still beta. For any issue, please report via http://github.com/OpenAPITools/openapi-generator/issues/new import FastCommentsSwift +let tenantId = "tenantId_example" // String | let userId = "userId_example" // String | (optional) let trustFactor = "trustFactor_example" // String | (optional) let sso = "sso_example" // String | (optional) -ModerationAPI.setTrustFactor(userId: userId, trustFactor: trustFactor, sso: sso) { (response, error) in +ModerationAPI.setTrustFactor(tenantId: tenantId, options: ModerationAPI.SetTrustFactorOptions(userId: userId, trustFactor: trustFactor, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -2239,6 +2346,7 @@ ModerationAPI.setTrustFactor(userId: userId, trustFactor: trustFactor, sso: sso) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **tenantId** | **String** | | **userId** | **String** | | [optional] **trustFactor** | **String** | | [optional] **sso** | **String** | | [optional] diff --git a/client/docs/PostRemoveCommentResponse.md b/client/docs/PostRemoveCommentApiResponse.md similarity index 91% rename from client/docs/PostRemoveCommentResponse.md rename to client/docs/PostRemoveCommentApiResponse.md index 22c6b35..00e9b34 100644 --- a/client/docs/PostRemoveCommentResponse.md +++ b/client/docs/PostRemoveCommentApiResponse.md @@ -1,4 +1,4 @@ -# PostRemoveCommentResponse +# PostRemoveCommentApiResponse ## Properties Name | Type | Description | Notes diff --git a/client/docs/PublicAPI.md b/client/docs/PublicAPI.md index a835d52..93ac69a 100644 --- a/client/docs/PublicAPI.md +++ b/client/docs/PublicAPI.md @@ -164,7 +164,7 @@ No authorization required # **createCommentPublic** ```swift - open class func createCommentPublic(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, sessionId: String? = nil, sso: String? = nil, completion: @escaping (_ data: SaveCommentsResponseWithPresence?, _ error: Error?) -> Void) + open class func createCommentPublic(tenantId: String, urlId: String, broadcastId: String, commentData: CommentData, options: CreateCommentPublicOptions = .init(), completion: @escaping (_ data: SaveCommentsResponseWithPresence?, _ error: Error?) -> Void) ``` @@ -181,7 +181,7 @@ let commentData = CommentData(date: 123, localDateString: "localDateString_examp let sessionId = "sessionId_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.createCommentPublic(tenantId: tenantId, urlId: urlId, broadcastId: broadcastId, commentData: commentData, sessionId: sessionId, sso: sso) { (response, error) in +PublicAPI.createCommentPublic(tenantId: tenantId, urlId: urlId, broadcastId: broadcastId, commentData: commentData, options: PublicAPI.CreateCommentPublicOptions(sessionId: sessionId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -221,7 +221,7 @@ No authorization required # **createFeedPostPublic** ```swift - open class func createFeedPostPublic(tenantId: String, createFeedPostParams: CreateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: CreateFeedPostResponse?, _ error: Error?) -> Void) + open class func createFeedPostPublic(tenantId: String, createFeedPostParams: CreateFeedPostParams, options: CreateFeedPostPublicOptions = .init(), completion: @escaping (_ data: CreateFeedPostResponse?, _ error: Error?) -> Void) ``` @@ -236,7 +236,7 @@ let createFeedPostParams = CreateFeedPostParams(title: "title_example", contentH let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.createFeedPostPublic(tenantId: tenantId, createFeedPostParams: createFeedPostParams, broadcastId: broadcastId, sso: sso) { (response, error) in +PublicAPI.createFeedPostPublic(tenantId: tenantId, createFeedPostParams: createFeedPostParams, options: PublicAPI.CreateFeedPostPublicOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -378,7 +378,7 @@ No authorization required # **deleteCommentPublic** ```swift - open class func deleteCommentPublic(tenantId: String, commentId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: PublicAPIDeleteCommentResponse?, _ error: Error?) -> Void) + open class func deleteCommentPublic(tenantId: String, commentId: String, broadcastId: String, options: DeleteCommentPublicOptions = .init(), completion: @escaping (_ data: PublicAPIDeleteCommentResponse?, _ error: Error?) -> Void) ``` @@ -394,7 +394,7 @@ let broadcastId = "broadcastId_example" // String | let editKey = "editKey_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.deleteCommentPublic(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, editKey: editKey, sso: sso) { (response, error) in +PublicAPI.deleteCommentPublic(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, options: PublicAPI.DeleteCommentPublicOptions(editKey: editKey, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -433,7 +433,7 @@ No authorization required # **deleteCommentVote** ```swift - open class func deleteCommentVote(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: VoteDeleteResponse?, _ error: Error?) -> Void) + open class func deleteCommentVote(tenantId: String, commentId: String, voteId: String, urlId: String, broadcastId: String, options: DeleteCommentVoteOptions = .init(), completion: @escaping (_ data: VoteDeleteResponse?, _ error: Error?) -> Void) ``` @@ -451,7 +451,7 @@ let broadcastId = "broadcastId_example" // String | let editKey = "editKey_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.deleteCommentVote(tenantId: tenantId, commentId: commentId, voteId: voteId, urlId: urlId, broadcastId: broadcastId, editKey: editKey, sso: sso) { (response, error) in +PublicAPI.deleteCommentVote(tenantId: tenantId, commentId: commentId, voteId: voteId, urlId: urlId, broadcastId: broadcastId, options: PublicAPI.DeleteCommentVoteOptions(editKey: editKey, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -492,7 +492,7 @@ No authorization required # **deleteFeedPostPublic** ```swift - open class func deleteFeedPostPublic(tenantId: String, postId: String, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: DeleteFeedPostPublicResponse?, _ error: Error?) -> Void) + open class func deleteFeedPostPublic(tenantId: String, postId: String, options: DeleteFeedPostPublicOptions = .init(), completion: @escaping (_ data: DeleteFeedPostPublicResponse?, _ error: Error?) -> Void) ``` @@ -507,7 +507,7 @@ let postId = "postId_example" // String | let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.deleteFeedPostPublic(tenantId: tenantId, postId: postId, broadcastId: broadcastId, sso: sso) { (response, error) in +PublicAPI.deleteFeedPostPublic(tenantId: tenantId, postId: postId, options: PublicAPI.DeleteFeedPostPublicOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -698,7 +698,7 @@ No authorization required # **getCommentText** ```swift - open class func getCommentText(tenantId: String, commentId: String, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: PublicAPIGetCommentTextResponse?, _ error: Error?) -> Void) + open class func getCommentText(tenantId: String, commentId: String, options: GetCommentTextOptions = .init(), completion: @escaping (_ data: PublicAPIGetCommentTextResponse?, _ error: Error?) -> Void) ``` @@ -713,7 +713,7 @@ let commentId = "commentId_example" // String | let editKey = "editKey_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.getCommentText(tenantId: tenantId, commentId: commentId, editKey: editKey, sso: sso) { (response, error) in +PublicAPI.getCommentText(tenantId: tenantId, commentId: commentId, options: PublicAPI.GetCommentTextOptions(editKey: editKey, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -804,7 +804,7 @@ No authorization required # **getCommentsForUser** ```swift - open class func getCommentsForUser(userId: String? = nil, direction: SortDirections? = nil, repliesToUserId: String? = nil, page: Double? = nil, includei10n: Bool? = nil, locale: String? = nil, isCrawler: Bool? = nil, completion: @escaping (_ data: GetCommentsForUserResponse?, _ error: Error?) -> Void) + open class func getCommentsForUser(options: GetCommentsForUserOptions = .init(), completion: @escaping (_ data: GetCommentsForUserResponse?, _ error: Error?) -> Void) ``` @@ -822,7 +822,7 @@ let includei10n = true // Bool | (optional) let locale = "locale_example" // String | (optional) let isCrawler = true // Bool | (optional) -PublicAPI.getCommentsForUser(userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler) { (response, error) in +PublicAPI.getCommentsForUser(options: PublicAPI.GetCommentsForUserOptions(userId: userId, direction: direction, repliesToUserId: repliesToUserId, page: page, includei10n: includei10n, locale: locale, isCrawler: isCrawler)) { (response, error) in guard error == nil else { print(error) return @@ -863,7 +863,7 @@ No authorization required # **getCommentsPublic** ```swift - open class func getCommentsPublic(tenantId: String, urlId: String, page: Int? = nil, direction: SortDirections? = nil, sso: String? = nil, skip: Int? = nil, skipChildren: Int? = nil, limit: Int? = nil, limitChildren: Int? = nil, countChildren: Bool? = nil, fetchPageForCommentId: String? = nil, includeConfig: Bool? = nil, countAll: Bool? = nil, includei10n: Bool? = nil, locale: String? = nil, modules: String? = nil, isCrawler: Bool? = nil, includeNotificationCount: Bool? = nil, asTree: Bool? = nil, maxTreeDepth: Int? = nil, useFullTranslationIds: Bool? = nil, parentId: String? = nil, searchText: String? = nil, hashTags: [String]? = nil, userId: String? = nil, customConfigStr: String? = nil, afterCommentId: String? = nil, beforeCommentId: String? = nil, completion: @escaping (_ data: GetCommentsResponseWithPresencePublicComment?, _ error: Error?) -> Void) + open class func getCommentsPublic(tenantId: String, urlId: String, options: GetCommentsPublicOptions = .init(), completion: @escaping (_ data: GetCommentsResponseWithPresencePublicComment?, _ error: Error?) -> Void) ``` @@ -904,7 +904,7 @@ let customConfigStr = "customConfigStr_example" // String | (optional) let afterCommentId = "afterCommentId_example" // String | (optional) let beforeCommentId = "beforeCommentId_example" // String | (optional) -PublicAPI.getCommentsPublic(tenantId: tenantId, urlId: urlId, page: page, direction: direction, sso: sso, skip: skip, skipChildren: skipChildren, limit: limit, limitChildren: limitChildren, countChildren: countChildren, fetchPageForCommentId: fetchPageForCommentId, includeConfig: includeConfig, countAll: countAll, includei10n: includei10n, locale: locale, modules: modules, isCrawler: isCrawler, includeNotificationCount: includeNotificationCount, asTree: asTree, maxTreeDepth: maxTreeDepth, useFullTranslationIds: useFullTranslationIds, parentId: parentId, searchText: searchText, hashTags: hashTags, userId: userId, customConfigStr: customConfigStr, afterCommentId: afterCommentId, beforeCommentId: beforeCommentId) { (response, error) in +PublicAPI.getCommentsPublic(tenantId: tenantId, urlId: urlId, options: PublicAPI.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)) { (response, error) in guard error == nil else { print(error) return @@ -1023,7 +1023,7 @@ No authorization required # **getFeedPostsPublic** ```swift - open class func getFeedPostsPublic(tenantId: String, afterId: String? = nil, limit: Int? = nil, tags: [String]? = nil, sso: String? = nil, isCrawler: Bool? = nil, includeUserInfo: Bool? = nil, completion: @escaping (_ data: PublicFeedPostsResponse?, _ error: Error?) -> Void) + open class func getFeedPostsPublic(tenantId: String, options: GetFeedPostsPublicOptions = .init(), completion: @escaping (_ data: PublicFeedPostsResponse?, _ error: Error?) -> Void) ``` @@ -1043,7 +1043,7 @@ let sso = "sso_example" // String | (optional) let isCrawler = true // Bool | (optional) let includeUserInfo = true // Bool | (optional) -PublicAPI.getFeedPostsPublic(tenantId: tenantId, afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo) { (response, error) in +PublicAPI.getFeedPostsPublic(tenantId: tenantId, options: PublicAPI.GetFeedPostsPublicOptions(afterId: afterId, limit: limit, tags: tags, sso: sso, isCrawler: isCrawler, includeUserInfo: includeUserInfo)) { (response, error) in guard error == nil else { print(error) return @@ -1184,7 +1184,7 @@ No authorization required # **getGifsSearch** ```swift - open class func getGifsSearch(tenantId: String, search: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, completion: @escaping (_ data: GetGifsSearchResponse?, _ error: Error?) -> Void) + open class func getGifsSearch(tenantId: String, search: String, options: GetGifsSearchOptions = .init(), completion: @escaping (_ data: GetGifsSearchResponse?, _ error: Error?) -> Void) ``` @@ -1200,7 +1200,7 @@ let locale = "locale_example" // String | (optional) let rating = "rating_example" // String | (optional) let page = 987 // Double | (optional) -PublicAPI.getGifsSearch(tenantId: tenantId, search: search, locale: locale, rating: rating, page: page) { (response, error) in +PublicAPI.getGifsSearch(tenantId: tenantId, search: search, options: PublicAPI.GetGifsSearchOptions(locale: locale, rating: rating, page: page)) { (response, error) in guard error == nil else { print(error) return @@ -1239,7 +1239,7 @@ No authorization required # **getGifsTrending** ```swift - open class func getGifsTrending(tenantId: String, locale: String? = nil, rating: String? = nil, page: Double? = nil, completion: @escaping (_ data: GetGifsTrendingResponse?, _ error: Error?) -> Void) + open class func getGifsTrending(tenantId: String, options: GetGifsTrendingOptions = .init(), completion: @escaping (_ data: GetGifsTrendingResponse?, _ error: Error?) -> Void) ``` @@ -1254,7 +1254,7 @@ let locale = "locale_example" // String | (optional) let rating = "rating_example" // String | (optional) let page = 987 // Double | (optional) -PublicAPI.getGifsTrending(tenantId: tenantId, locale: locale, rating: rating, page: page) { (response, error) in +PublicAPI.getGifsTrending(tenantId: tenantId, options: PublicAPI.GetGifsTrendingOptions(locale: locale, rating: rating, page: page)) { (response, error) in guard error == nil else { print(error) return @@ -1349,7 +1349,7 @@ No authorization required # **getOfflineUsers** ```swift - open class func getOfflineUsers(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, completion: @escaping (_ data: PageUsersOfflineResponse?, _ error: Error?) -> Void) + open class func getOfflineUsers(tenantId: String, urlId: String, options: GetOfflineUsersOptions = .init(), completion: @escaping (_ data: PageUsersOfflineResponse?, _ error: Error?) -> Void) ``` @@ -1366,7 +1366,7 @@ let urlId = "urlId_example" // String | Page URL identifier (cleaned server-side let afterName = "afterName_example" // String | Cursor: pass nextAfterName from the previous response. (optional) let afterUserId = "afterUserId_example" // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) -PublicAPI.getOfflineUsers(tenantId: tenantId, urlId: urlId, afterName: afterName, afterUserId: afterUserId) { (response, error) in +PublicAPI.getOfflineUsers(tenantId: tenantId, urlId: urlId, options: PublicAPI.GetOfflineUsersOptions(afterName: afterName, afterUserId: afterUserId)) { (response, error) in guard error == nil else { print(error) return @@ -1404,7 +1404,7 @@ No authorization required # **getOnlineUsers** ```swift - open class func getOnlineUsers(tenantId: String, urlId: String, afterName: String? = nil, afterUserId: String? = nil, completion: @escaping (_ data: PageUsersOnlineResponse?, _ error: Error?) -> Void) + open class func getOnlineUsers(tenantId: String, urlId: String, options: GetOnlineUsersOptions = .init(), completion: @escaping (_ data: PageUsersOnlineResponse?, _ error: Error?) -> Void) ``` @@ -1421,7 +1421,7 @@ let urlId = "urlId_example" // String | Page URL identifier (cleaned server-side let afterName = "afterName_example" // String | Cursor: pass nextAfterName from the previous response. (optional) let afterUserId = "afterUserId_example" // String | Cursor tiebreaker: pass nextAfterUserId from the previous response. Required when afterName is set so name-ties don't drop entries. (optional) -PublicAPI.getOnlineUsers(tenantId: tenantId, urlId: urlId, afterName: afterName, afterUserId: afterUserId) { (response, error) in +PublicAPI.getOnlineUsers(tenantId: tenantId, urlId: urlId, options: PublicAPI.GetOnlineUsersOptions(afterName: afterName, afterUserId: afterUserId)) { (response, error) in guard error == nil else { print(error) return @@ -1459,7 +1459,7 @@ No authorization required # **getPagesPublic** ```swift - open class func getPagesPublic(tenantId: String, cursor: String? = nil, limit: Int? = nil, q: String? = nil, sortBy: PagesSortBy? = nil, hasComments: Bool? = nil, completion: @escaping (_ data: GetPublicPagesResponse?, _ error: Error?) -> Void) + open class func getPagesPublic(tenantId: String, options: GetPagesPublicOptions = .init(), completion: @escaping (_ data: GetPublicPagesResponse?, _ error: Error?) -> Void) ``` @@ -1478,7 +1478,7 @@ let q = "q_example" // String | Optional case-insensitive title prefix filter. ( let sortBy = PagesSortBy() // PagesSortBy | Sort order. `updatedAt` (default, newest first), `commentCount` (most comments first), or `title` (alphabetical). (optional) let hasComments = true // Bool | If true, only return pages with at least one comment. (optional) -PublicAPI.getPagesPublic(tenantId: tenantId, cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments) { (response, error) in +PublicAPI.getPagesPublic(tenantId: tenantId, options: PublicAPI.GetPagesPublicOptions(cursor: cursor, limit: limit, q: q, sortBy: sortBy, hasComments: hasComments)) { (response, error) in guard error == nil else { print(error) return @@ -1518,7 +1518,7 @@ No authorization required # **getTranslations** ```swift - open class func getTranslations(namespace: String, component: String, locale: String? = nil, useFullTranslationIds: Bool? = nil, completion: @escaping (_ data: GetTranslationsResponse?, _ error: Error?) -> Void) + open class func getTranslations(namespace: String, component: String, options: GetTranslationsOptions = .init(), completion: @escaping (_ data: GetTranslationsResponse?, _ error: Error?) -> Void) ``` @@ -1533,7 +1533,7 @@ let component = "component_example" // String | let locale = "locale_example" // String | (optional) let useFullTranslationIds = true // Bool | (optional) -PublicAPI.getTranslations(namespace: namespace, component: component, locale: locale, useFullTranslationIds: useFullTranslationIds) { (response, error) in +PublicAPI.getTranslations(namespace: namespace, component: component, options: PublicAPI.GetTranslationsOptions(locale: locale, useFullTranslationIds: useFullTranslationIds)) { (response, error) in guard error == nil else { print(error) return @@ -1620,7 +1620,7 @@ No authorization required # **getUserNotifications** ```swift - open class func getUserNotifications(tenantId: String, urlId: String? = nil, pageSize: Int? = nil, afterId: String? = nil, includeContext: Bool? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, includeTranslations: Bool? = nil, includeTenantNotifications: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: GetMyNotificationsResponse?, _ error: Error?) -> Void) + open class func getUserNotifications(tenantId: String, options: GetUserNotificationsOptions = .init(), completion: @escaping (_ data: GetMyNotificationsResponse?, _ error: Error?) -> Void) ``` @@ -1643,7 +1643,7 @@ let includeTranslations = true // Bool | (optional) let includeTenantNotifications = true // Bool | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.getUserNotifications(tenantId: tenantId, urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso) { (response, error) in +PublicAPI.getUserNotifications(tenantId: tenantId, options: PublicAPI.GetUserNotificationsOptions(urlId: urlId, pageSize: pageSize, afterId: afterId, includeContext: includeContext, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, includeTranslations: includeTranslations, includeTenantNotifications: includeTenantNotifications, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -1740,7 +1740,7 @@ No authorization required # **getUserReactsPublic** ```swift - open class func getUserReactsPublic(tenantId: String, postIds: [String]? = nil, sso: String? = nil, completion: @escaping (_ data: UserReactsResponse?, _ error: Error?) -> Void) + open class func getUserReactsPublic(tenantId: String, options: GetUserReactsPublicOptions = .init(), completion: @escaping (_ data: UserReactsResponse?, _ error: Error?) -> Void) ``` @@ -1754,7 +1754,7 @@ let tenantId = "tenantId_example" // String | let postIds = ["inner_example"] // [String] | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.getUserReactsPublic(tenantId: tenantId, postIds: postIds, sso: sso) { (response, error) in +PublicAPI.getUserReactsPublic(tenantId: tenantId, options: PublicAPI.GetUserReactsPublicOptions(postIds: postIds, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -2140,7 +2140,7 @@ No authorization required # **reactFeedPostPublic** ```swift - open class func reactFeedPostPublic(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, isUndo: Bool? = nil, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: ReactFeedPostResponse?, _ error: Error?) -> Void) + open class func reactFeedPostPublic(tenantId: String, postId: String, reactBodyParams: ReactBodyParams, options: ReactFeedPostPublicOptions = .init(), completion: @escaping (_ data: ReactFeedPostResponse?, _ error: Error?) -> Void) ``` @@ -2157,7 +2157,7 @@ let isUndo = true // Bool | (optional) let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.reactFeedPostPublic(tenantId: tenantId, postId: postId, reactBodyParams: reactBodyParams, isUndo: isUndo, broadcastId: broadcastId, sso: sso) { (response, error) in +PublicAPI.reactFeedPostPublic(tenantId: tenantId, postId: postId, reactBodyParams: reactBodyParams, options: PublicAPI.ReactFeedPostPublicOptions(isUndo: isUndo, broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -2246,7 +2246,7 @@ No authorization required # **resetUserNotifications** ```swift - open class func resetUserNotifications(tenantId: String, afterId: String? = nil, afterCreatedAt: Int64? = nil, unreadOnly: Bool? = nil, dmOnly: Bool? = nil, noDm: Bool? = nil, sso: String? = nil, completion: @escaping (_ data: ResetUserNotificationsResponse?, _ error: Error?) -> Void) + open class func resetUserNotifications(tenantId: String, options: ResetUserNotificationsOptions = .init(), completion: @escaping (_ data: ResetUserNotificationsResponse?, _ error: Error?) -> Void) ``` @@ -2264,7 +2264,7 @@ let dmOnly = true // Bool | (optional) let noDm = true // Bool | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.resetUserNotifications(tenantId: tenantId, afterId: afterId, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, sso: sso) { (response, error) in +PublicAPI.resetUserNotifications(tenantId: tenantId, options: PublicAPI.ResetUserNotificationsOptions(afterId: afterId, afterCreatedAt: afterCreatedAt, unreadOnly: unreadOnly, dmOnly: dmOnly, noDm: noDm, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -2305,7 +2305,7 @@ No authorization required # **searchUsers** ```swift - open class func searchUsers(tenantId: String, urlId: String, usernameStartsWith: String? = nil, mentionGroupIds: [String]? = nil, sso: String? = nil, searchSection: SearchSection_searchUsers? = nil, completion: @escaping (_ data: SearchUsersResult?, _ error: Error?) -> Void) + open class func searchUsers(tenantId: String, urlId: String, options: SearchUsersOptions = .init(), completion: @escaping (_ data: SearchUsersResult?, _ error: Error?) -> Void) ``` @@ -2322,7 +2322,7 @@ let mentionGroupIds = ["inner_example"] // [String] | (optional) let sso = "sso_example" // String | (optional) let searchSection = "searchSection_example" // String | (optional) -PublicAPI.searchUsers(tenantId: tenantId, urlId: urlId, usernameStartsWith: usernameStartsWith, mentionGroupIds: mentionGroupIds, sso: sso, searchSection: searchSection) { (response, error) in +PublicAPI.searchUsers(tenantId: tenantId, urlId: urlId, options: PublicAPI.SearchUsersOptions(usernameStartsWith: usernameStartsWith, mentionGroupIds: mentionGroupIds, sso: sso, searchSection: searchSection)) { (response, error) in guard error == nil else { print(error) return @@ -2362,7 +2362,7 @@ No authorization required # **setCommentText** ```swift - open class func setCommentText(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, editKey: String? = nil, sso: String? = nil, completion: @escaping (_ data: PublicAPISetCommentTextResponse?, _ error: Error?) -> Void) + open class func setCommentText(tenantId: String, commentId: String, broadcastId: String, commentTextUpdateRequest: CommentTextUpdateRequest, options: SetCommentTextOptions = .init(), completion: @escaping (_ data: PublicAPISetCommentTextResponse?, _ error: Error?) -> Void) ``` @@ -2379,7 +2379,7 @@ let commentTextUpdateRequest = CommentTextUpdateRequest(comment: "comment_exampl let editKey = "editKey_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.setCommentText(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, commentTextUpdateRequest: commentTextUpdateRequest, editKey: editKey, sso: sso) { (response, error) in +PublicAPI.setCommentText(tenantId: tenantId, commentId: commentId, broadcastId: broadcastId, commentTextUpdateRequest: commentTextUpdateRequest, options: PublicAPI.SetCommentTextOptions(editKey: editKey, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -2578,7 +2578,7 @@ No authorization required # **updateFeedPostPublic** ```swift - open class func updateFeedPostPublic(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, broadcastId: String? = nil, sso: String? = nil, completion: @escaping (_ data: CreateFeedPostResponse?, _ error: Error?) -> Void) + open class func updateFeedPostPublic(tenantId: String, postId: String, updateFeedPostParams: UpdateFeedPostParams, options: UpdateFeedPostPublicOptions = .init(), completion: @escaping (_ data: CreateFeedPostResponse?, _ error: Error?) -> Void) ``` @@ -2594,7 +2594,7 @@ let updateFeedPostParams = UpdateFeedPostParams(title: "title_example", contentH let broadcastId = "broadcastId_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.updateFeedPostPublic(tenantId: tenantId, postId: postId, updateFeedPostParams: updateFeedPostParams, broadcastId: broadcastId, sso: sso) { (response, error) in +PublicAPI.updateFeedPostPublic(tenantId: tenantId, postId: postId, updateFeedPostParams: updateFeedPostParams, options: PublicAPI.UpdateFeedPostPublicOptions(broadcastId: broadcastId, sso: sso)) { (response, error) in guard error == nil else { print(error) return @@ -2802,7 +2802,7 @@ No authorization required # **uploadImage** ```swift - open class func uploadImage(tenantId: String, file: URL, sizePreset: SizePreset? = nil, urlId: String? = nil, completion: @escaping (_ data: UploadImageResponse?, _ error: Error?) -> Void) + open class func uploadImage(tenantId: String, file: URL, options: UploadImageOptions = .init(), completion: @escaping (_ data: UploadImageResponse?, _ error: Error?) -> Void) ``` @@ -2819,7 +2819,7 @@ let file = URL(string: "https://example.com")! // URL | let sizePreset = SizePreset() // SizePreset | Size preset: \"Default\" (1000x1000px) or \"CrossPlatform\" (creates sizes for popular devices) (optional) let urlId = "urlId_example" // String | Page id that upload is happening from, to configure (optional) -PublicAPI.uploadImage(tenantId: tenantId, file: file, sizePreset: sizePreset, urlId: urlId) { (response, error) in +PublicAPI.uploadImage(tenantId: tenantId, file: file, options: PublicAPI.UploadImageOptions(sizePreset: sizePreset, urlId: urlId)) { (response, error) in guard error == nil else { print(error) return @@ -2857,7 +2857,7 @@ No authorization required # **voteComment** ```swift - open class func voteComment(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, sessionId: String? = nil, sso: String? = nil, completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) + open class func voteComment(tenantId: String, commentId: String, urlId: String, broadcastId: String, voteBodyParams: VoteBodyParams, options: VoteCommentOptions = .init(), completion: @escaping (_ data: VoteResponse?, _ error: Error?) -> Void) ``` @@ -2875,7 +2875,7 @@ let voteBodyParams = VoteBodyParams(commenterEmail: "commenterEmail_example", co let sessionId = "sessionId_example" // String | (optional) let sso = "sso_example" // String | (optional) -PublicAPI.voteComment(tenantId: tenantId, commentId: commentId, urlId: urlId, broadcastId: broadcastId, voteBodyParams: voteBodyParams, sessionId: sessionId, sso: sso) { (response, error) in +PublicAPI.voteComment(tenantId: tenantId, commentId: commentId, urlId: urlId, broadcastId: broadcastId, voteBodyParams: voteBodyParams, options: PublicAPI.VoteCommentOptions(sessionId: sessionId, sso: sso)) { (response, error) in guard error == nil else { print(error) return diff --git a/client/project.yml b/client/project.yml index dbc06dc..8d71c6a 100644 --- a/client/project.yml +++ b/client/project.yml @@ -7,7 +7,7 @@ targets: sources: [FastCommentsSwift] info: path: ./Info.plist - version: 1.3.2 + version: 3.0.0 settings: APPLICATION_EXTENSION_API_ONLY: true scheme: {} diff --git a/config.json b/config.json index 63d369f..b2019f0 100644 --- a/config.json +++ b/config.json @@ -4,8 +4,8 @@ "podDescription": "FastComments API Client - A SDK for interacting with the FastComments API", "podHomepage": "https://fastcomments.com", "podLicense": "MIT", - "podSource": "{\"git\":\"https://github.com/fastcomments/fastcomments-swift.git\",\"tag\":\"1.3.2\"}", - "podVersion": "1.3.2", + "podSource": "{\"git\":\"https://github.com/fastcomments/fastcomments-swift.git\",\"tag\":\"3.0.0\"}", + "podVersion": "3.0.0", "swiftPackagePath": "FastCommentsSwift", "hideGenerationTimestamp": true, "useSingleRequestParameter": true, 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/update.sh b/update.sh index 8907119..9a90aa0 100755 --- a/update.sh +++ b/update.sh @@ -32,6 +32,14 @@ else exit 1 fi +# Re-apply hand-patched infrastructure files that the generator overwrites. The +# `rm -rf ./client` + regen above wipes .openapi-generator-ignore and the files it +# protects, so restore them from git here. This keeps the presence-tracking cookie patch +# in URLSessionImplementations.swift (ephemeral config, cookies disabled) from being +# silently reverted on every regen. See client/.openapi-generator-ignore. +echo "Restoring hand-patched infrastructure files..." +git checkout -- ./client/.openapi-generator-ignore ./client/FastCommentsSwift/Infrastructure/URLSessionImplementations.swift + # Remove files that prevent Swift Package from including client directory echo "Cleaning up generated files..." rm -f ./client/.gitignore