/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 655d26bc7e78 */ import * as z from "zod/v4"; import { DeploymentGroupRole, DeploymentGroupRole$outboundSchema, } from "./deploymentgrouprole.js"; /** * Deployment group-scoped configuration */ export type DeploymentGroupScope = { type: "deployment-group"; /** * ID of the deployment group this is scoped to */ deploymentGroupId: string; /** * ID of the project this deployment group belongs to */ projectId: string; /** * Role for deployment group-scoped service accounts */ role: DeploymentGroupRole; }; /** @internal */ export type DeploymentGroupScope$Outbound = { type: "deployment-group"; deploymentGroupId: string; projectId: string; role: string; }; /** @internal */ export const DeploymentGroupScope$outboundSchema: z.ZodType< DeploymentGroupScope$Outbound, DeploymentGroupScope > = z.object({ type: z.literal("deployment-group"), deploymentGroupId: z.string(), projectId: z.string(), role: DeploymentGroupRole$outboundSchema, }); export function deploymentGroupScopeToJSON( deploymentGroupScope: DeploymentGroupScope, ): string { return JSON.stringify( DeploymentGroupScope$outboundSchema.parse(deploymentGroupScope), ); }