/* * 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 GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerErrorData = { error?: string | undefined; }; /** * Internal server error */ export class GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerErrorData; constructor( err: GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerErrorData, 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 = "GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerError"; } } /** * Resource not found */ export type GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundErrorData = { error?: string | undefined; }; /** * Resource not found */ export class GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundErrorData; constructor( err: GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundErrorData, 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 = "GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundError"; } } /** * Forbidden, token is valid but account does not have access to feature */ export type GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenErrorData = { error?: string | undefined; }; /** * Forbidden, token is valid but account does not have access to feature */ export class GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenErrorData; constructor( err: GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenErrorData, 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 = "GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenError"; } } /** * Unauthorized, invalid or missing token */ export type GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedErrorData = { error?: string | undefined; }; /** * Unauthorized, invalid or missing token */ export class GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedErrorData; constructor( err: GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedErrorData, 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 = "GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedError"; } } /** @internal */ export const GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerError$inboundSchema: z.ZodType< GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new GetMediaExtendedAudioDescriptionsOrderStatusIdInternalServerError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); }); /** @internal */ export const GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundError$inboundSchema: z.ZodType< GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new GetMediaExtendedAudioDescriptionsOrderStatusIdNotFoundError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); }); /** @internal */ export const GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenError$inboundSchema: z.ZodType< GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new GetMediaExtendedAudioDescriptionsOrderStatusIdForbiddenError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); }); /** @internal */ export const GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedError$inboundSchema: z.ZodType< GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new GetMediaExtendedAudioDescriptionsOrderStatusIdUnauthorizedError( v, { request: v.request$, response: v.response$, body: v.body$ }, ); });