/**
 * This file was auto-generated by Fern from our API Definition.
 */

import * as serializers from "../../index";
import * as Rivet from "../../../api/index";
import * as core from "../../../core";
import { CrashPolicy } from "../../types/CrashPolicy";

export const ActorsGetOrCreateRequest: core.serialization.Schema<
    serializers.ActorsGetOrCreateRequest.Raw,
    Omit<Rivet.ActorsGetOrCreateRequest, "namespace">
> = core.serialization.object({
    crashPolicy: core.serialization.property("crash_policy", CrashPolicy),
    datacenter: core.serialization.string().optional(),
    input: core.serialization.string().optional(),
    key: core.serialization.string(),
    name: core.serialization.string(),
    runnerNameSelector: core.serialization.property("runner_name_selector", core.serialization.string()),
});

export declare namespace ActorsGetOrCreateRequest {
    export interface Raw {
        crash_policy: CrashPolicy.Raw;
        datacenter?: string | null;
        input?: string | null;
        key: string;
        name: string;
        runner_name_selector: string;
    }
}
