/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 517b07bbe26b */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type DeploymentGroupInfo = { /** * Unique identifier for the deployment group. */ id: string; /** * Deployment group name. */ name: string; /** * Case-sensitive, URL- and header-safe identifier from the integrating application. */ externalId: string | null; }; /** @internal */ export const DeploymentGroupInfo$inboundSchema: z.ZodType< DeploymentGroupInfo, unknown > = z.object({ id: z.string(), name: z.string(), externalId: z.nullable(z.string()), }); export function deploymentGroupInfoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentGroupInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGroupInfo' from JSON`, ); }