/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 67dba1e8b0de */ import * as z from "zod/v4"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * A single workspace-role binding held by a service account. */ export type ServiceAccountRole = { roleId: string; }; /** @internal */ export const ServiceAccountRole$inboundSchema: z.ZodType< ServiceAccountRole, unknown > = z.object({ role_id: z.string(), }).transform((v) => { return remap$(v, { "role_id": "roleId", }); }); export function serviceAccountRoleFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => ServiceAccountRole$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ServiceAccountRole' from JSON`, ); }