/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 998cb4e4fda2 */ 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 AgentSessionSubject = { deploymentName: string | null; deploymentGroupId: string | null; deploymentGroupName: string | null; releaseId: string | null; releaseCommitMessage: string | null; releaseCommitRef: string | null; projectId: string | null; projectName: string | null; }; /** @internal */ export const AgentSessionSubject$inboundSchema: z.ZodType< AgentSessionSubject, unknown > = z.object({ deploymentName: z.nullable(z.string()), deploymentGroupId: z.nullable(z.string()), deploymentGroupName: z.nullable(z.string()), releaseId: z.nullable(z.string()), releaseCommitMessage: z.nullable(z.string()), releaseCommitRef: z.nullable(z.string()), projectId: z.nullable(z.string()), projectName: z.nullable(z.string()), }); export function agentSessionSubjectFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => AgentSessionSubject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentSessionSubject' from JSON`, ); }