/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 8bb0ba0f0cb8 */ import * as z from "zod/v4"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Skill, Skill$inboundSchema } from "./skill.js"; export type ListSkillsResponse = { data?: Array | undefined; nextPageToken?: string | undefined; }; /** @internal */ export const ListSkillsResponse$inboundSchema: z.ZodType< ListSkillsResponse, unknown > = z.object({ data: z.array(Skill$inboundSchema).optional(), nextPageToken: z.string().optional(), }); export function listSkillsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ListSkillsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSkillsResponse' from JSON`, ); }