/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: ddcf1766ad74
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { DeploymentLocation$inboundSchema, } from "./deploymentlocation.js";
import { DeploymentWorkerResponse$inboundSchema, } from "./deploymentworkerresponse.js";
/** @internal */
export const DeploymentDetailResponse$inboundSchema = z.object({
    id: z.string(),
    name: z.string(),
    is_active: z.boolean(),
    created_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
    updated_at: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
    location: z.nullable(DeploymentLocation$inboundSchema).optional(),
    workers: z.array(DeploymentWorkerResponse$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "is_active": "isActive",
        "created_at": "createdAt",
        "updated_at": "updatedAt",
    });
});
export function deploymentDetailResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeploymentDetailResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentDetailResponse' from JSON`);
}
//# sourceMappingURL=deploymentdetailresponse.js.map