"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.GetClassesForUserResponse$ = exports.GetClassesForUserResponse$outboundSchema = exports.GetClassesForUserResponse$inboundSchema = exports.GetClassesForUserResponseBody$ = exports.GetClassesForUserResponseBody$outboundSchema = exports.GetClassesForUserResponseBody$inboundSchema = exports.GetClassesForUserRequest$ = exports.GetClassesForUserRequest$outboundSchema = exports.GetClassesForUserRequest$inboundSchema = exports.GetClassesForUserOrderBy$ = exports.GetClassesForUserOrderBy$outboundSchema = exports.GetClassesForUserOrderBy$inboundSchema = exports.GetClassesForUserOrderBy = void 0;
exports.getClassesForUserRequestToJSON = getClassesForUserRequestToJSON;
exports.getClassesForUserRequestFromJSON = getClassesForUserRequestFromJSON;
exports.getClassesForUserResponseBodyToJSON = getClassesForUserResponseBodyToJSON;
exports.getClassesForUserResponseBodyFromJSON = getClassesForUserResponseBodyFromJSON;
exports.getClassesForUserResponseToJSON = getClassesForUserResponseToJSON;
exports.getClassesForUserResponseFromJSON = getClassesForUserResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/**
 * The order to sort the response by
 */
exports.GetClassesForUserOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetClassesForUserOrderBy$inboundSchema = z.nativeEnum(exports.GetClassesForUserOrderBy);
/** @internal */
exports.GetClassesForUserOrderBy$outboundSchema = exports.GetClassesForUserOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetClassesForUserOrderBy$;
(function (GetClassesForUserOrderBy$) {
    /** @deprecated use `GetClassesForUserOrderBy$inboundSchema` instead. */
    GetClassesForUserOrderBy$.inboundSchema = exports.GetClassesForUserOrderBy$inboundSchema;
    /** @deprecated use `GetClassesForUserOrderBy$outboundSchema` instead. */
    GetClassesForUserOrderBy$.outboundSchema = exports.GetClassesForUserOrderBy$outboundSchema;
})(GetClassesForUserOrderBy$ || (exports.GetClassesForUserOrderBy$ = GetClassesForUserOrderBy$ = {}));
/** @internal */
exports.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: exports.GetClassesForUserOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.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: exports.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.
 */
var GetClassesForUserRequest$;
(function (GetClassesForUserRequest$) {
    /** @deprecated use `GetClassesForUserRequest$inboundSchema` instead. */
    GetClassesForUserRequest$.inboundSchema = exports.GetClassesForUserRequest$inboundSchema;
    /** @deprecated use `GetClassesForUserRequest$outboundSchema` instead. */
    GetClassesForUserRequest$.outboundSchema = exports.GetClassesForUserRequest$outboundSchema;
})(GetClassesForUserRequest$ || (exports.GetClassesForUserRequest$ = GetClassesForUserRequest$ = {}));
function getClassesForUserRequestToJSON(getClassesForUserRequest) {
    return JSON.stringify(exports.GetClassesForUserRequest$outboundSchema.parse(getClassesForUserRequest));
}
function getClassesForUserRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForUserRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForUserRequest' from JSON`);
}
/** @internal */
exports.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 */
exports.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.
 */
var GetClassesForUserResponseBody$;
(function (GetClassesForUserResponseBody$) {
    /** @deprecated use `GetClassesForUserResponseBody$inboundSchema` instead. */
    GetClassesForUserResponseBody$.inboundSchema = exports.GetClassesForUserResponseBody$inboundSchema;
    /** @deprecated use `GetClassesForUserResponseBody$outboundSchema` instead. */
    GetClassesForUserResponseBody$.outboundSchema = exports.GetClassesForUserResponseBody$outboundSchema;
})(GetClassesForUserResponseBody$ || (exports.GetClassesForUserResponseBody$ = GetClassesForUserResponseBody$ = {}));
function getClassesForUserResponseBodyToJSON(getClassesForUserResponseBody) {
    return JSON.stringify(exports.GetClassesForUserResponseBody$outboundSchema.parse(getClassesForUserResponseBody));
}
function getClassesForUserResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForUserResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForUserResponseBody' from JSON`);
}
/** @internal */
exports.GetClassesForUserResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetClassesForUserResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetClassesForUserResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetClassesForUserResponseBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var GetClassesForUserResponse$;
(function (GetClassesForUserResponse$) {
    /** @deprecated use `GetClassesForUserResponse$inboundSchema` instead. */
    GetClassesForUserResponse$.inboundSchema = exports.GetClassesForUserResponse$inboundSchema;
    /** @deprecated use `GetClassesForUserResponse$outboundSchema` instead. */
    GetClassesForUserResponse$.outboundSchema = exports.GetClassesForUserResponse$outboundSchema;
})(GetClassesForUserResponse$ || (exports.GetClassesForUserResponse$ = GetClassesForUserResponse$ = {}));
function getClassesForUserResponseToJSON(getClassesForUserResponse) {
    return JSON.stringify(exports.GetClassesForUserResponse$outboundSchema.parse(getClassesForUserResponse));
}
function getClassesForUserResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetClassesForUserResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetClassesForUserResponse' from JSON`);
}
//# sourceMappingURL=getclassesforuser.js.map