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