/* * 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 DeleteFoldersFolderIdSharingsSharingIdInternalServerErrorData = { error?: string | undefined; }; /** * Internal server error */ export class DeleteFoldersFolderIdSharingsSharingIdInternalServerError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: DeleteFoldersFolderIdSharingsSharingIdInternalServerErrorData; constructor( err: DeleteFoldersFolderIdSharingsSharingIdInternalServerErrorData, 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 = "DeleteFoldersFolderIdSharingsSharingIdInternalServerError"; } } /** * Resource not found */ export type DeleteFoldersFolderIdSharingsSharingIdNotFoundErrorData = { error?: string | undefined; }; /** * Resource not found */ export class DeleteFoldersFolderIdSharingsSharingIdNotFoundError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: DeleteFoldersFolderIdSharingsSharingIdNotFoundErrorData; constructor( err: DeleteFoldersFolderIdSharingsSharingIdNotFoundErrorData, 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 = "DeleteFoldersFolderIdSharingsSharingIdNotFoundError"; } } /** * Unauthorized, invalid or missing token */ export type DeleteFoldersFolderIdSharingsSharingIdUnauthorizedErrorData = { error?: string | undefined; }; /** * Unauthorized, invalid or missing token */ export class DeleteFoldersFolderIdSharingsSharingIdUnauthorizedError extends WistiaError { error?: string | undefined; /** The original data that was passed to this error instance. */ data$: DeleteFoldersFolderIdSharingsSharingIdUnauthorizedErrorData; constructor( err: DeleteFoldersFolderIdSharingsSharingIdUnauthorizedErrorData, 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 = "DeleteFoldersFolderIdSharingsSharingIdUnauthorizedError"; } } /** @internal */ export const DeleteFoldersFolderIdSharingsSharingIdInternalServerError$inboundSchema: z.ZodType< DeleteFoldersFolderIdSharingsSharingIdInternalServerError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new DeleteFoldersFolderIdSharingsSharingIdInternalServerError(v, { request: v.request$, response: v.response$, body: v.body$, }); }); /** @internal */ export const DeleteFoldersFolderIdSharingsSharingIdNotFoundError$inboundSchema: z.ZodType< DeleteFoldersFolderIdSharingsSharingIdNotFoundError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new DeleteFoldersFolderIdSharingsSharingIdNotFoundError(v, { request: v.request$, response: v.response$, body: v.body$, }); }); /** @internal */ export const DeleteFoldersFolderIdSharingsSharingIdUnauthorizedError$inboundSchema: z.ZodType< DeleteFoldersFolderIdSharingsSharingIdUnauthorizedError, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), request$: z.instanceof(Request), response$: z.instanceof(Response), body$: z.string(), }) .transform((v) => { return new DeleteFoldersFolderIdSharingsSharingIdUnauthorizedError(v, { request: v.request$, response: v.response$, body: v.body$, }); });