/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: fb02ba9f1a2b */ 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"; import { SlackChannel, SlackChannel$inboundSchema } from "./slackchannel.js"; export type SlackChannelsResponse = { channels: Array; }; /** @internal */ export const SlackChannelsResponse$inboundSchema: z.ZodType< SlackChannelsResponse, unknown > = z.object({ channels: z.array(SlackChannel$inboundSchema), }); export function slackChannelsResponseFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => SlackChannelsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SlackChannelsResponse' from JSON`, ); }