/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: d388cc26dea5 */ import * as z from "zod/v3"; /** * Describes the request body of the /deletegroup API call */ export type DeleteGroupRequest = { /** * Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. */ version?: number | undefined; /** * The datasource for which the group is removed */ datasource: string; /** * the name of the group to be deleted */ groupName: string; }; /** @internal */ export type DeleteGroupRequest$Outbound = { version?: number | undefined; datasource: string; groupName: string; }; /** @internal */ export const DeleteGroupRequest$outboundSchema: z.ZodType< DeleteGroupRequest$Outbound, z.ZodTypeDef, DeleteGroupRequest > = z.object({ version: z.number().int().optional(), datasource: z.string(), groupName: z.string(), }); export function deleteGroupRequestToJSON( deleteGroupRequest: DeleteGroupRequest, ): string { return JSON.stringify( DeleteGroupRequest$outboundSchema.parse(deleteGroupRequest), ); }