/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 4bc6ca074187
 */

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 {
  FeedResultGetLog,
  FeedResultGetLog$inboundSchema,
} from "./feedresultgetlog.js";

export type GetLogs = {
  logs: FeedResultGetLog;
};

/** @internal */
export const GetLogs$inboundSchema: z.ZodType<GetLogs, unknown> = z.object({
  logs: FeedResultGetLog$inboundSchema,
});

export function getLogsFromJSON(
  jsonString: string,
): SafeParseResult<GetLogs, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => GetLogs$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'GetLogs' from JSON`,
  );
}
