/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type ChannelCredentialsDto = { /** * The URL for the webhook associated with the channel. */ webhookUrl?: string | undefined; /** * An array of device tokens for push notifications. */ deviceTokens?: Array | undefined; }; /** @internal */ export type ChannelCredentialsDto$Outbound = { webhookUrl?: string | undefined; deviceTokens?: Array | undefined; }; /** @internal */ export const ChannelCredentialsDto$outboundSchema: z.ZodType< ChannelCredentialsDto$Outbound, z.ZodTypeDef, ChannelCredentialsDto > = z.object({ webhookUrl: z.string().optional(), deviceTokens: z.array(z.string()).optional(), }); export function channelCredentialsDtoToJSON( channelCredentialsDto: ChannelCredentialsDto, ): string { return JSON.stringify( ChannelCredentialsDto$outboundSchema.parse(channelCredentialsDto), ); }