/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ActorTypeEnum, ActorTypeEnum$inboundSchema } from "./actortypeenum.js"; export type ActorFeedItemDto = { /** * The data associated with the actor, can be null if not applicable. */ data: string | null; /** * The type of the actor, indicating the role in the notification process. */ type: ActorTypeEnum; }; /** @internal */ export const ActorFeedItemDto$inboundSchema: z.ZodType< ActorFeedItemDto, z.ZodTypeDef, unknown > = z.object({ data: z.nullable(z.string()), type: ActorTypeEnum$inboundSchema, }); export function actorFeedItemDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ActorFeedItemDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ActorFeedItemDto' from JSON`, ); }