/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 2b9fc5542011
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { DeploymentResponse$inboundSchema, } from "./deploymentresponse.js";
/** @internal */
export const DeploymentListResponse$inboundSchema = z.object({
    deployments: z.array(DeploymentResponse$inboundSchema),
    next_cursor: z.nullable(z.string()),
    workspace_id: z.string(),
}).transform((v) => {
    return remap$(v, {
        "next_cursor": "nextCursor",
        "workspace_id": "workspaceId",
    });
});
export function deploymentListResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DeploymentListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentListResponse' from JSON`);
}
//# sourceMappingURL=deploymentlistresponse.js.map