/* * 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 UserReferencePayloadV1 = { /** * The user's email address, matching the email on their Slack account */ email?: string | undefined; /** * The incident.io ID of a user */ id?: string | undefined; /** * The ID of the user's Slack account. */ slackUserId?: string | undefined; }; /** @internal */ export const UserReferencePayloadV1$inboundSchema: z.ZodType< UserReferencePayloadV1, z.ZodTypeDef, unknown > = z.object({ email: z.string().optional(), id: z.string().optional(), slack_user_id: z.string().optional(), }).transform((v) => { return remap$(v, { "slack_user_id": "slackUserId", }); }); /** @internal */ export type UserReferencePayloadV1$Outbound = { email?: string | undefined; id?: string | undefined; slack_user_id?: string | undefined; }; /** @internal */ export const UserReferencePayloadV1$outboundSchema: z.ZodType< UserReferencePayloadV1$Outbound, z.ZodTypeDef, UserReferencePayloadV1 > = z.object({ email: z.string().optional(), id: z.string().optional(), slackUserId: z.string().optional(), }).transform((v) => { return remap$(v, { slackUserId: "slack_user_id", }); }); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export namespace UserReferencePayloadV1$ { /** @deprecated use `UserReferencePayloadV1$inboundSchema` instead. */ export const inboundSchema = UserReferencePayloadV1$inboundSchema; /** @deprecated use `UserReferencePayloadV1$outboundSchema` instead. */ export const outboundSchema = UserReferencePayloadV1$outboundSchema; /** @deprecated use `UserReferencePayloadV1$Outbound` instead. */ export type Outbound = UserReferencePayloadV1$Outbound; }