/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { ChannelCredentials, ChannelCredentials$Outbound, ChannelCredentials$outboundSchema, } from "./channelcredentials.js"; import { ChatOrPushProviderEnum, ChatOrPushProviderEnum$outboundSchema, } from "./chatorpushproviderenum.js"; export type UpdateSubscriberChannelRequestDto = { /** * The provider identifier for the credentials */ providerId: ChatOrPushProviderEnum; /** * The integration identifier */ integrationIdentifier?: string | undefined; /** * Credentials payload for the specified provider */ credentials: ChannelCredentials; }; /** @internal */ export type UpdateSubscriberChannelRequestDto$Outbound = { providerId: string; integrationIdentifier?: string | undefined; credentials: ChannelCredentials$Outbound; }; /** @internal */ export const UpdateSubscriberChannelRequestDto$outboundSchema: z.ZodType< UpdateSubscriberChannelRequestDto$Outbound, z.ZodTypeDef, UpdateSubscriberChannelRequestDto > = z.object({ providerId: ChatOrPushProviderEnum$outboundSchema, integrationIdentifier: z.string().optional(), credentials: ChannelCredentials$outboundSchema, }); export function updateSubscriberChannelRequestDtoToJSON( updateSubscriberChannelRequestDto: UpdateSubscriberChannelRequestDto, ): string { return JSON.stringify( UpdateSubscriberChannelRequestDto$outboundSchema.parse( updateSubscriberChannelRequestDto, ), ); }