/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ActivityNotificationResponseDto, ActivityNotificationResponseDto$inboundSchema, } from "./activitynotificationresponsedto.js"; export type ActivitiesResponseDto = { /** * Indicates if there are more activities in the result set */ hasMore: boolean; /** * Array of activity notifications */ data: Array; /** * Page size of the activities */ pageSize: number; /** * Current page of the activities */ page: number; }; /** @internal */ export const ActivitiesResponseDto$inboundSchema: z.ZodType< ActivitiesResponseDto, z.ZodTypeDef, unknown > = z.object({ hasMore: z.boolean(), data: z.array(ActivityNotificationResponseDto$inboundSchema), pageSize: z.number(), page: z.number(), }); export function activitiesResponseDtoFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ActivitiesResponseDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ActivitiesResponseDto' from JSON`, ); }