/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { lazySchema as lazySchema$ } from "../../lib/schemas.js"; import { DataScopesResources, DataScopesResources$Outbound, DataScopesResources$outboundSchema, } from "./datascopesresources.js"; export type ConsentRecordInput = { /** * Whether consent was granted (true) or denied/revoked (false) */ granted: boolean; /** * Data scopes resource configuration that can be either detailed field permissions or a wildcard */ resources: DataScopesResources; }; /** @internal */ export type ConsentRecordInput$Outbound = { granted: boolean; resources: DataScopesResources$Outbound; }; /** @internal */ export const ConsentRecordInput$outboundSchema: z.ZodType< ConsentRecordInput$Outbound, z.ZodTypeDef, ConsentRecordInput > = /* @__PURE__ */ lazySchema$(() => z.object({ granted: z.boolean(), resources: DataScopesResources$outboundSchema, }) ); export function consentRecordInputToJSON( consentRecordInput: ConsentRecordInput, ): string { return JSON.stringify( ConsentRecordInput$outboundSchema.parse(consentRecordInput), ); }