/* * 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 LearnedSkillListResponse = { skills: Array; }; /** @internal */ export const LearnedSkillListResponse$inboundSchema: z.ZodMiniType< LearnedSkillListResponse, unknown > = z.object({ skills: z.array(LearnedSkill$inboundSchema), }); export function learnedSkillListResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => LearnedSkillListResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LearnedSkillListResponse' from JSON`, ); }