/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { remap as remap$ } from "../../lib/primitives.js"; import { UserReferencePayloadV1, UserReferencePayloadV1$inboundSchema, UserReferencePayloadV1$Outbound, UserReferencePayloadV1$outboundSchema, } from "./userreferencepayloadv1.js"; export type IncidentRoleAssignmentPayloadV1 = { assignee: UserReferencePayloadV1; /** * Unique ID of an incident role. Note that the 'reporter' role can only be assigned when creating an incident. */ incidentRoleId: string; }; /** @internal */ export const IncidentRoleAssignmentPayloadV1$inboundSchema: z.ZodType< IncidentRoleAssignmentPayloadV1, z.ZodTypeDef, unknown > = z.object({ assignee: UserReferencePayloadV1$inboundSchema, incident_role_id: z.string(), }).transform((v) => { return remap$(v, { "incident_role_id": "incidentRoleId", }); }); /** @internal */ export type IncidentRoleAssignmentPayloadV1$Outbound = { assignee: UserReferencePayloadV1$Outbound; incident_role_id: string; }; /** @internal */ export const IncidentRoleAssignmentPayloadV1$outboundSchema: z.ZodType< IncidentRoleAssignmentPayloadV1$Outbound, z.ZodTypeDef, IncidentRoleAssignmentPayloadV1 > = z.object({ assignee: UserReferencePayloadV1$outboundSchema, incidentRoleId: z.string(), }).transform((v) => { return remap$(v, { incidentRoleId: "incident_role_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace IncidentRoleAssignmentPayloadV1$ { /** @deprecated use `IncidentRoleAssignmentPayloadV1$inboundSchema` instead. */ export const inboundSchema = IncidentRoleAssignmentPayloadV1$inboundSchema; /** @deprecated use `IncidentRoleAssignmentPayloadV1$outboundSchema` instead. */ export const outboundSchema = IncidentRoleAssignmentPayloadV1$outboundSchema; /** @deprecated use `IncidentRoleAssignmentPayloadV1$Outbound` instead. */ export type Outbound = IncidentRoleAssignmentPayloadV1$Outbound; }