/* * 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"; /** * Response for status 200 */ export type GetProfileResponse = { id: string; name: string; email: string; avatarUrl: string | null; emailVerified: boolean; role: string; isActive: boolean; lastLoginAt: Date | null; createdAt: Date; updatedAt: Date; }; /** @internal */ export const GetProfileResponse$inboundSchema: z.ZodMiniType< GetProfileResponse, unknown > = z.object({ id: types.string(), name: types.string(), email: types.string(), avatarUrl: types.nullable(types.string()), emailVerified: types.boolean(), role: types.string(), isActive: types.boolean(), lastLoginAt: types.nullable(types.date()), createdAt: types.date(), updatedAt: types.date(), }); export function getProfileResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => GetProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetProfileResponse' from JSON`, ); }