/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: be2fd0fe921d */ import * as z from "zod/v3"; export type ListCollectionsRequest = { /** * Whether to include the audience filters with the listed Collections. */ includeAudience?: boolean | undefined; /** * Whether to include the editor roles with the listed Collections. */ includeRoles?: boolean | undefined; /** * The datasource type this Collection can hold. * * @remarks * ANSWERS - for Collections representing answer boards */ allowedDatasource?: string | undefined; }; /** @internal */ export type ListCollectionsRequest$Outbound = { includeAudience?: boolean | undefined; includeRoles?: boolean | undefined; allowedDatasource?: string | undefined; }; /** @internal */ export const ListCollectionsRequest$outboundSchema: z.ZodType< ListCollectionsRequest$Outbound, z.ZodTypeDef, ListCollectionsRequest > = z.object({ includeAudience: z.boolean().optional(), includeRoles: z.boolean().optional(), allowedDatasource: z.string().optional(), }); export function listCollectionsRequestToJSON( listCollectionsRequest: ListCollectionsRequest, ): string { return JSON.stringify( ListCollectionsRequest$outboundSchema.parse(listCollectionsRequest), ); }