/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; export type RetrospectiveIncidentOptionsV2 = { /** * If the incident mode is 'retrospective', pass the URL of the postmortem to attach it to the incident */ postmortemDocumentUrl?: string | undefined; /** * If the incident mode is 'retrospective', pass the ID of a Slack channel in your workspace to attach the incident to an existing channel, rather than creating a new one */ slackChannelId?: string | undefined; }; /** @internal */ export const RetrospectiveIncidentOptionsV2$inboundSchema: z.ZodType< RetrospectiveIncidentOptionsV2, z.ZodTypeDef, unknown > = z.object({ postmortem_document_url: z.string().optional(), slack_channel_id: z.string().optional(), }).transform((v) => { return remap$(v, { "postmortem_document_url": "postmortemDocumentUrl", "slack_channel_id": "slackChannelId", }); }); /** @internal */ export type RetrospectiveIncidentOptionsV2$Outbound = { postmortem_document_url?: string | undefined; slack_channel_id?: string | undefined; }; /** @internal */ export const RetrospectiveIncidentOptionsV2$outboundSchema: z.ZodType< RetrospectiveIncidentOptionsV2$Outbound, z.ZodTypeDef, RetrospectiveIncidentOptionsV2 > = z.object({ postmortemDocumentUrl: z.string().optional(), slackChannelId: z.string().optional(), }).transform((v) => { return remap$(v, { postmortemDocumentUrl: "postmortem_document_url", slackChannelId: "slack_channel_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace RetrospectiveIncidentOptionsV2$ { /** @deprecated use `RetrospectiveIncidentOptionsV2$inboundSchema` instead. */ export const inboundSchema = RetrospectiveIncidentOptionsV2$inboundSchema; /** @deprecated use `RetrospectiveIncidentOptionsV2$outboundSchema` instead. */ export const outboundSchema = RetrospectiveIncidentOptionsV2$outboundSchema; /** @deprecated use `RetrospectiveIncidentOptionsV2$Outbound` instead. */ export type Outbound = RetrospectiveIncidentOptionsV2$Outbound; }