/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { WistiaError } from "./wistiaerror.js"; /** * Internal server error */ export type PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerErrorData = { error?: string | undefined; }; /** * Internal server error */ export class PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerErrorData; constructor( err: PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerErrorData, httpMeta: { response: Response; request: Request; body: string }, ) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message, httpMeta); this.data$ = err; if (err.error != null) this.error = err.error; this.name = "PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerError"; } } /** * Forbidden, token is valid but account does not have access to feature */ export type PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenErrorData = { error?: string | undefined; }; /** * Forbidden, token is valid but account does not have access to feature */ export class PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenErrorData; constructor( err: PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenErrorData, httpMeta: { response: Response; request: Request; body: string }, ) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message, httpMeta); this.data$ = err; if (err.error != null) this.error = err.error; this.name = "PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenError"; } } /** * Unauthorized, invalid or missing token */ export type PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedErrorData = { error?: string | undefined; }; /** * Unauthorized, invalid or missing token */ export class PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedErrorData; constructor( err: PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedErrorData, httpMeta: { response: Response; request: Request; body: string }, ) { const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`; super(message, httpMeta); this.data$ = err; if (err.error != null) this.error = err.error; this.name = "PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedError"; } } /** @internal */ export const PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerError$inboundSchema: z.ZodType< PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new PutChannelEpisodesChannelEpisodeHashedIdUnpublishInternalServerError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); }); /** @internal */ export const PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenError$inboundSchema: z.ZodType< PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new PutChannelEpisodesChannelEpisodeHashedIdUnpublishForbiddenError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); }); /** @internal */ export const PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedError$inboundSchema: z.ZodType< PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new PutChannelEpisodesChannelEpisodeHashedIdUnpublishUnauthorizedError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); });