/* * 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 { SDKValidationError } from "./errors/sdk-validation-error.js"; import { LearnedSkill, LearnedSkill$inboundSchema } from "./learned-skill.js"; export type LearnedSkillResponse = { skill: LearnedSkill; }; /** @internal */ export const LearnedSkillResponse$inboundSchema: z.ZodMiniType< LearnedSkillResponse, unknown > = z.object({ skill: LearnedSkill$inboundSchema, }); export function learnedSkillResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => LearnedSkillResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LearnedSkillResponse' from JSON`, ); }