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

import Foundation

public struct GenerationActionSpec: Codable, Equatable {
    public var action: String
    public var batchId: String?
    public var clipId: String?
    public var entityId: String
    public var entityType: EntityType

    public struct EntityType: RawRepresentable, Codable, Equatable {
        public let rawValue: String

        public init(rawValue: String) {
            self.rawValue = rawValue
        }

        public static let video = Self(rawValue: "video")
        public static let image = Self(rawValue: "image")
    }

    public init(action: String, batchId: String? = nil, clipId: String? = nil, entityId: String, entityType: EntityType) {
        self.action = action
        self.batchId = batchId
        self.clipId = clipId
        self.entityId = entityId
        self.entityType = entityType
    }
}
