/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 6ad13af22bc5 */ import * as z from "zod/v3"; import { DlpConfig, DlpConfig$Outbound, DlpConfig$outboundSchema, } from "./dlpconfig.js"; import { DlpFrequency, DlpFrequency$outboundSchema } from "./dlpfrequency.js"; export type CreateDlpReportRequest = { /** * Name of the policy being created. */ name?: string | undefined; /** * Detailed configuration of what documents and sensitive content will be scanned. */ config?: DlpConfig | undefined; /** * Interval between scans. DAILY is deprecated. */ frequency?: DlpFrequency | undefined; /** * Controls whether the policy should hide documents with violations. */ autoHideDocs?: boolean | undefined; }; /** @internal */ export type CreateDlpReportRequest$Outbound = { name?: string | undefined; config?: DlpConfig$Outbound | undefined; frequency?: string | undefined; autoHideDocs?: boolean | undefined; }; /** @internal */ export const CreateDlpReportRequest$outboundSchema: z.ZodType< CreateDlpReportRequest$Outbound, z.ZodTypeDef, CreateDlpReportRequest > = z.object({ name: z.string().optional(), config: DlpConfig$outboundSchema.optional(), frequency: DlpFrequency$outboundSchema.optional(), autoHideDocs: z.boolean().optional(), }); export function createDlpReportRequestToJSON( createDlpReportRequest: CreateDlpReportRequest, ): string { return JSON.stringify( CreateDlpReportRequest$outboundSchema.parse(createDlpReportRequest), ); }