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