/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 36a9d4ea80f0 */ 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 SupportedCloudRegions = { /** * AWS regions supported by this Alien environment. */ aws: Array; /** * GCP regions supported by this Alien environment. */ gcp: Array; /** * Azure locations supported by this Alien environment. */ azure: Array; }; /** @internal */ export const SupportedCloudRegions$inboundSchema: z.ZodType< SupportedCloudRegions, unknown > = z.object({ aws: z.array(z.string()), gcp: z.array(z.string()), azure: z.array(z.string()), }); export function supportedCloudRegionsFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SupportedCloudRegions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SupportedCloudRegions' from JSON`, ); }