/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */

import * as z from "zod/v4-mini";

export type BenefitDownloadablesCreateProperties = {
  archived?: { [k: string]: boolean } | undefined;
  files: Array<string>;
};

/** @internal */
export type BenefitDownloadablesCreateProperties$Outbound = {
  archived?: { [k: string]: boolean } | undefined;
  files: Array<string>;
};

/** @internal */
export const BenefitDownloadablesCreateProperties$outboundSchema: z.ZodMiniType<
  BenefitDownloadablesCreateProperties$Outbound,
  BenefitDownloadablesCreateProperties
> = z.object({
  archived: z.optional(z.record(z.string(), z.boolean())),
  files: z.array(z.string()),
});

export function benefitDownloadablesCreatePropertiesToJSON(
  benefitDownloadablesCreateProperties: BenefitDownloadablesCreateProperties,
): string {
  return JSON.stringify(
    BenefitDownloadablesCreateProperties$outboundSchema.parse(
      benefitDownloadablesCreateProperties,
    ),
  );
}
