/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 481209fd218a */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type OperatorScope = { datasource?: string | undefined; docType?: string | undefined; }; /** @internal */ export const OperatorScope$inboundSchema: z.ZodType< OperatorScope, z.ZodTypeDef, unknown > = z.object({ datasource: z.string().optional(), docType: z.string().optional(), }); export function operatorScopeFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => OperatorScope$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OperatorScope' from JSON`, ); }