/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { lazySchema as lazySchema$, safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as types from "../../types/primitives.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * When a connector has schema_support, a call can be made to retrieve a json schema that describes a downstream resource. */ export type SchemaSupport = { /** * Can a resource schema be retrieved for this connector? */ supported?: boolean | undefined; }; /** @internal */ export const SchemaSupport$inboundSchema: z.ZodType< SchemaSupport, z.ZodTypeDef, unknown > = /* @__PURE__ */ lazySchema$(() => z.object({ supported: types.optional(types.boolean()), }) ); export function schemaSupportFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SchemaSupport$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SchemaSupport' from JSON`, ); }