/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod"; import { IncidentRoleV1, IncidentRoleV1$inboundSchema, IncidentRoleV1$Outbound, IncidentRoleV1$outboundSchema, } from "./incidentrolev1.js"; import { UserV1, UserV1$inboundSchema, UserV1$Outbound, UserV1$outboundSchema, } from "./userv1.js"; export type IncidentRoleAssignmentV1 = { assignee?: UserV1 | undefined; role: IncidentRoleV1; }; /** @internal */ export const IncidentRoleAssignmentV1$inboundSchema: z.ZodType< IncidentRoleAssignmentV1, z.ZodTypeDef, unknown > = z.object({ assignee: UserV1$inboundSchema.optional(), role: IncidentRoleV1$inboundSchema, }); /** @internal */ export type IncidentRoleAssignmentV1$Outbound = { assignee?: UserV1$Outbound | undefined; role: IncidentRoleV1$Outbound; }; /** @internal */ export const IncidentRoleAssignmentV1$outboundSchema: z.ZodType< IncidentRoleAssignmentV1$Outbound, z.ZodTypeDef, IncidentRoleAssignmentV1 > = z.object({ assignee: UserV1$outboundSchema.optional(), role: IncidentRoleV1$outboundSchema, }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace IncidentRoleAssignmentV1$ { /** @deprecated use `IncidentRoleAssignmentV1$inboundSchema` instead. */ export const inboundSchema = IncidentRoleAssignmentV1$inboundSchema; /** @deprecated use `IncidentRoleAssignmentV1$outboundSchema` instead. */ export const outboundSchema = IncidentRoleAssignmentV1$outboundSchema; /** @deprecated use `IncidentRoleAssignmentV1$Outbound` instead. */ export type Outbound = IncidentRoleAssignmentV1$Outbound; }