/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: bd5974a6bfeb */ import * as z from "zod/v4"; import { ProjectRole, ProjectRole$outboundSchema } from "./projectrole.js"; /** * Project-scoped configuration */ export type ProjectScope = { type: "project"; /** * ID of the project this is scoped to */ projectId: string; /** * Role for project-scoped service accounts */ role: ProjectRole; }; /** @internal */ export type ProjectScope$Outbound = { type: "project"; projectId: string; role: string; }; /** @internal */ export const ProjectScope$outboundSchema: z.ZodType< ProjectScope$Outbound, ProjectScope > = z.object({ type: z.literal("project"), projectId: z.string(), role: ProjectRole$outboundSchema, }); export function projectScopeToJSON(projectScope: ProjectScope): string { return JSON.stringify(ProjectScope$outboundSchema.parse(projectScope)); }