/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: d2371081a23d */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; /** * Request body for replacing the workspace roles assigned to a service account. */ export type SetServiceAccountRolesRequest = { roleIds?: Array | undefined; }; /** @internal */ export type SetServiceAccountRolesRequest$Outbound = { role_ids?: Array | undefined; }; /** @internal */ export const SetServiceAccountRolesRequest$outboundSchema: z.ZodType< SetServiceAccountRolesRequest$Outbound, SetServiceAccountRolesRequest > = z.object({ roleIds: z.array(z.string()).optional(), }).transform((v) => { return remap$(v, { roleIds: "role_ids", }); }); export function setServiceAccountRolesRequestToJSON( setServiceAccountRolesRequest: SetServiceAccountRolesRequest, ): string { return JSON.stringify( SetServiceAccountRolesRequest$outboundSchema.parse( setServiceAccountRolesRequest, ), ); }