// Generated by Create API
// https://github.com/CreateAPI/CreateAPI

import Foundation
import Get
import URLQueryEncoder

extension Paths.Clips.WithClipId {
    public var commercialRightsEligible: CommercialRightsEligible {
        CommercialRightsEligible(path: path + "/commercial_rights_eligible")
    }

    public struct CommercialRightsEligible {
        /// Path: `/api/clips/{clip_id}/commercial_rights_eligible`
        public let path: String

        /// Check Commercial Rights Eligibility
        ///
        /// Check if a clip is eligible for commercial rights purchase.
        /// 
        /// Returns whether the clip can have commercial rights purchased for it.
        /// Commercial rights are only available for clips that are not remixes
        /// of someone else's work.
        /// 
        /// Args:
        ///     request: The HTTP request.
        ///     clip_id: The ID of the clip to check.
        /// 
        /// Returns:
        ///     dict: {"eligible": bool} indicating if commercial rights can be purchased
        public var get: Request<GenAPI.CommercialRightsEligibilityResponse> {
            Request(path: path, method: "GET", id: "studio_api_clips_api_check_commercial_rights_eligibility")
        }
    }
}
