/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { IncidentAttachmentV1, IncidentAttachmentV1$inboundSchema, IncidentAttachmentV1$Outbound, IncidentAttachmentV1$outboundSchema, } from "./incidentattachmentv1.js"; export type CreateResponseBody2 = { incidentAttachment: IncidentAttachmentV1; }; /** @internal */ export const CreateResponseBody2$inboundSchema: z.ZodType< CreateResponseBody2, z.ZodTypeDef, unknown > = z.object({ incident_attachment: IncidentAttachmentV1$inboundSchema, }).transform((v) => { return remap$(v, { "incident_attachment": "incidentAttachment", }); }); /** @internal */ export type CreateResponseBody2$Outbound = { incident_attachment: IncidentAttachmentV1$Outbound; }; /** @internal */ export const CreateResponseBody2$outboundSchema: z.ZodType< CreateResponseBody2$Outbound, z.ZodTypeDef, CreateResponseBody2 > = z.object({ incidentAttachment: IncidentAttachmentV1$outboundSchema, }).transform((v) => { return remap$(v, { incidentAttachment: "incident_attachment", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace CreateResponseBody2$ { /** @deprecated use `CreateResponseBody2$inboundSchema` instead. */ export const inboundSchema = CreateResponseBody2$inboundSchema; /** @deprecated use `CreateResponseBody2$outboundSchema` instead. */ export const outboundSchema = CreateResponseBody2$outboundSchema; /** @deprecated use `CreateResponseBody2$Outbound` instead. */ export type Outbound = CreateResponseBody2$Outbound; }