/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import * as types from "../types/primitives.js"; import { SDKValidationError } from "./errors/sdk-validation-error.js"; import { FeedbackTarget, FeedbackTarget$inboundSchema, } from "./feedback-target.js"; import { FeedbackVerificationKind, FeedbackVerificationKind$inboundSchema, } from "./feedback-verification-kind.js"; export type FeedbackSubmitResponse = { feedbackId: string; target: FeedbackTarget; verification: FeedbackVerificationKind; createdAt: number; }; /** @internal */ export const FeedbackSubmitResponse$inboundSchema: z.ZodMiniType< FeedbackSubmitResponse, unknown > = z.object({ feedbackId: types.string(), target: FeedbackTarget$inboundSchema, verification: FeedbackVerificationKind$inboundSchema, createdAt: types.number(), }); export function feedbackSubmitResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => FeedbackSubmitResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeedbackSubmitResponse' from JSON`, ); }