/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/**
 * The order to sort the response by
 */
export const GetClassesForUserOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetClassesForUserOrderBy$inboundSchema = z.nativeEnum(GetClassesForUserOrderBy);
/** @internal */
export const GetClassesForUserOrderBy$outboundSchema = GetClassesForUserOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetClassesForUserOrderBy$;
(function (GetClassesForUserOrderBy$) {
    /** @deprecated use `GetClassesForUserOrderBy$inboundSchema` instead. */
    GetClassesForUserOrderBy$.inboundSchema = GetClassesForUserOrderBy$inboundSchema;
    /** @deprecated use `GetClassesForUserOrderBy$outboundSchema` instead. */
    GetClassesForUserOrderBy$.outboundSchema = GetClassesForUserOrderBy$outboundSchema;
})(GetClassesForUserOrderBy$ || (GetClassesForUserOrderBy$ = {}));
/** @internal */
export const GetClassesForUserRequest$inboundSchema = z.object({
    userSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForUserOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetClassesForUserRequest$outboundSchema = z.object({
    userSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetClassesForUserOrderBy$outboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetClassesForUserRequest$;
(function (GetClassesForUserRequest$) {
    /** @deprecated use `GetClassesForUserRequest$inboundSchema` instead. */
    GetClassesForUserRequest$.inboundSchema = GetClassesForUserRequest$inboundSchema;
    /** @deprecated use `GetClassesForUserRequest$outboundSchema` instead. */
    GetClassesForUserRequest$.outboundSchema = GetClassesForUserRequest$outboundSchema;
})(GetClassesForUserRequest$ || (GetClassesForUserRequest$ = {}));
export function getClassesForUserRequestToJSON(getClassesForUserRequest) {
    return JSON.stringify(GetClassesForUserRequest$outboundSchema.parse(getClassesForUserRequest));
}
export function getClassesForUserRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForUserRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForUserRequest' from JSON`);
}
/** @internal */
export const GetClassesForUserResponseBody$inboundSchema = z.object({
    classes: z.array(components.Class$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetClassesForUserResponseBody$outboundSchema = z.object({
    classes: z.array(components.Class$outboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetClassesForUserResponseBody$;
(function (GetClassesForUserResponseBody$) {
    /** @deprecated use `GetClassesForUserResponseBody$inboundSchema` instead. */
    GetClassesForUserResponseBody$.inboundSchema = GetClassesForUserResponseBody$inboundSchema;
    /** @deprecated use `GetClassesForUserResponseBody$outboundSchema` instead. */
    GetClassesForUserResponseBody$.outboundSchema = GetClassesForUserResponseBody$outboundSchema;
})(GetClassesForUserResponseBody$ || (GetClassesForUserResponseBody$ = {}));
export function getClassesForUserResponseBodyToJSON(getClassesForUserResponseBody) {
    return JSON.stringify(GetClassesForUserResponseBody$outboundSchema.parse(getClassesForUserResponseBody));
}
export function getClassesForUserResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForUserResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForUserResponseBody' from JSON`);
}
/** @internal */
export const GetClassesForUserResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetClassesForUserResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetClassesForUserResponse$outboundSchema = z.object({
    result: z.lazy(() => GetClassesForUserResponseBody$outboundSchema),
}).transform((v) => {
    return remap$(v, {
        result: "Result",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetClassesForUserResponse$;
(function (GetClassesForUserResponse$) {
    /** @deprecated use `GetClassesForUserResponse$inboundSchema` instead. */
    GetClassesForUserResponse$.inboundSchema = GetClassesForUserResponse$inboundSchema;
    /** @deprecated use `GetClassesForUserResponse$outboundSchema` instead. */
    GetClassesForUserResponse$.outboundSchema = GetClassesForUserResponse$outboundSchema;
})(GetClassesForUserResponse$ || (GetClassesForUserResponse$ = {}));
export function getClassesForUserResponseToJSON(getClassesForUserResponse) {
    return JSON.stringify(GetClassesForUserResponse$outboundSchema.parse(getClassesForUserResponse));
}
export function getClassesForUserResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetClassesForUserResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForUserResponse' from JSON`);
}
//# sourceMappingURL=getclassesforuser.js.map