/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 08f92ac4594d */ import * as z from "zod/v4"; import { ManagerRole, ManagerRole$outboundSchema } from "./managerrole.js"; /** * Manager-scoped configuration */ export type ManagerScope = { type: "manager"; /** * ID of the manager this is scoped to */ managerId: string; /** * Role for manager-scoped service accounts */ role: ManagerRole; }; /** @internal */ export type ManagerScope$Outbound = { type: "manager"; managerId: string; role: string; }; /** @internal */ export const ManagerScope$outboundSchema: z.ZodType< ManagerScope$Outbound, ManagerScope > = z.object({ type: z.literal("manager"), managerId: z.string(), role: ManagerRole$outboundSchema, }); export function managerScopeToJSON(managerScope: ManagerScope): string { return JSON.stringify(ManagerScope$outboundSchema.parse(managerScope)); }