/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { IncidentEditPayloadV2, IncidentEditPayloadV2$inboundSchema, IncidentEditPayloadV2$Outbound, IncidentEditPayloadV2$outboundSchema, } from "./incidenteditpayloadv2.js"; export type EditRequestBody = { incident: IncidentEditPayloadV2; /** * Should we send Slack channel notifications to inform responders of this update? Note that this won't work if the Slack channel has already been archived. */ notifyIncidentChannel: boolean; }; /** @internal */ export const EditRequestBody$inboundSchema: z.ZodType< EditRequestBody, z.ZodTypeDef, unknown > = z.object({ incident: IncidentEditPayloadV2$inboundSchema, notify_incident_channel: z.boolean(), }).transform((v) => { return remap$(v, { "notify_incident_channel": "notifyIncidentChannel", }); }); /** @internal */ export type EditRequestBody$Outbound = { incident: IncidentEditPayloadV2$Outbound; notify_incident_channel: boolean; }; /** @internal */ export const EditRequestBody$outboundSchema: z.ZodType< EditRequestBody$Outbound, z.ZodTypeDef, EditRequestBody > = z.object({ incident: IncidentEditPayloadV2$outboundSchema, notifyIncidentChannel: z.boolean(), }).transform((v) => { return remap$(v, { notifyIncidentChannel: "notify_incident_channel", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace EditRequestBody$ { /** @deprecated use `EditRequestBody$inboundSchema` instead. */ export const inboundSchema = EditRequestBody$inboundSchema; /** @deprecated use `EditRequestBody$outboundSchema` instead. */ export const outboundSchema = EditRequestBody$outboundSchema; /** @deprecated use `EditRequestBody$Outbound` instead. */ export type Outbound = EditRequestBody$Outbound; }