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

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";

export type GetSignedUrlResponse = {
  url: string;
};

/** @internal */
export const GetSignedUrlResponse$inboundSchema: z.ZodType<
  GetSignedUrlResponse,
  unknown
> = z.object({
  url: z.string(),
});

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