/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { FrameworkId, FrameworkId$outboundSchema } from "./frameworkid.js"; /** * The framework's id, such as `soc2` or the id of a custom framework. The `FrameworkId` enum values are deprecated aliases that are still accepted. */ export type FrameworkSectionFrameworkId = FrameworkId | string; export type FrameworkSection = { /** * The framework's id, such as `soc2` or the id of a custom framework. The `FrameworkId` enum values are deprecated aliases that are still accepted. */ frameworkId: FrameworkId | string; sectionId: string; }; /** @internal */ export type FrameworkSectionFrameworkId$Outbound = string | string; /** @internal */ export const FrameworkSectionFrameworkId$outboundSchema: z.ZodType< FrameworkSectionFrameworkId$Outbound, z.ZodTypeDef, FrameworkSectionFrameworkId > = z.union([FrameworkId$outboundSchema, z.string()]); export function frameworkSectionFrameworkIdToJSON( frameworkSectionFrameworkId: FrameworkSectionFrameworkId, ): string { return JSON.stringify( FrameworkSectionFrameworkId$outboundSchema.parse( frameworkSectionFrameworkId, ), ); } /** @internal */ export type FrameworkSection$Outbound = { frameworkId: string | string; sectionId: string; }; /** @internal */ export const FrameworkSection$outboundSchema: z.ZodType< FrameworkSection$Outbound, z.ZodTypeDef, FrameworkSection > = z.object({ frameworkId: z.union([FrameworkId$outboundSchema, z.string()]), sectionId: z.string(), }); export function frameworkSectionToJSON( frameworkSection: FrameworkSection, ): string { return JSON.stringify( FrameworkSection$outboundSchema.parse(frameworkSection), ); }