/* * 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 { VantaTestSnapshotExcludedItemGroup, VantaTestSnapshotExcludedItemGroup$inboundSchema, } from "./vantatestsnapshotexcludeditemgroup.js"; import { VantaTestSnapshotFrameworkExclusion, VantaTestSnapshotFrameworkExclusion$inboundSchema, } from "./vantatestsnapshotframeworkexclusion.js"; /** * Resources excluded from the test at snapshot time, grouped by exclusion * * @remarks * reason. `testLevel` contains resources the customer disabled for the * test; `frameworkLevel` contains resources scoped out by the framework's * segment configuration. */ export type VantaTestSnapshotOutOfScopeResources = { testLevel: Array; frameworkLevel: Array; }; /** @internal */ export const VantaTestSnapshotOutOfScopeResources$inboundSchema: z.ZodType< VantaTestSnapshotOutOfScopeResources, z.ZodTypeDef, unknown > = z.object({ testLevel: z.array(VantaTestSnapshotExcludedItemGroup$inboundSchema), frameworkLevel: z.array(VantaTestSnapshotFrameworkExclusion$inboundSchema), }); export function vantaTestSnapshotOutOfScopeResourcesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => VantaTestSnapshotOutOfScopeResources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VantaTestSnapshotOutOfScopeResources' from JSON`, ); }