/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 25df1e17cacb */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type SlackNotificationChannelResponse = { notificationChannelId: string | null; warning: string | null; }; /** @internal */ export const SlackNotificationChannelResponse$inboundSchema: z.ZodType< SlackNotificationChannelResponse, unknown > = z.object({ notificationChannelId: z.nullable(z.string()), warning: z.nullable(z.string()), }); export function slackNotificationChannelResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SlackNotificationChannelResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SlackNotificationChannelResponse' from JSON`, ); }