"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.GetStudentsForSchoolResponse$ = exports.GetStudentsForSchoolResponse$outboundSchema = exports.GetStudentsForSchoolResponse$inboundSchema = exports.GetStudentsForSchoolResponseBody$ = exports.GetStudentsForSchoolResponseBody$outboundSchema = exports.GetStudentsForSchoolResponseBody$inboundSchema = exports.GetStudentsForSchoolUser$ = exports.GetStudentsForSchoolUser$outboundSchema = exports.GetStudentsForSchoolUser$inboundSchema = exports.GetStudentsForSchoolPrimaryOrg$ = exports.GetStudentsForSchoolPrimaryOrg$outboundSchema = exports.GetStudentsForSchoolPrimaryOrg$inboundSchema = exports.GetStudentsForSchoolAgent$ = exports.GetStudentsForSchoolAgent$outboundSchema = exports.GetStudentsForSchoolAgent$inboundSchema = exports.GetStudentsForSchoolType$ = exports.GetStudentsForSchoolType$outboundSchema = exports.GetStudentsForSchoolType$inboundSchema = exports.GetStudentsForSchoolRole$ = exports.GetStudentsForSchoolRole$outboundSchema = exports.GetStudentsForSchoolRole$inboundSchema = exports.GetStudentsForSchoolOrg$ = exports.GetStudentsForSchoolOrg$outboundSchema = exports.GetStudentsForSchoolOrg$inboundSchema = exports.GetStudentsForSchoolRoleEnum$ = exports.GetStudentsForSchoolRoleEnum$outboundSchema = exports.GetStudentsForSchoolRoleEnum$inboundSchema = exports.GetStudentsForSchoolRoleType$ = exports.GetStudentsForSchoolRoleType$outboundSchema = exports.GetStudentsForSchoolRoleType$inboundSchema = exports.GetStudentsForSchoolUserId$ = exports.GetStudentsForSchoolUserId$outboundSchema = exports.GetStudentsForSchoolUserId$inboundSchema = exports.GetStudentsForSchoolStatus$ = exports.GetStudentsForSchoolStatus$outboundSchema = exports.GetStudentsForSchoolStatus$inboundSchema = exports.GetStudentsForSchoolRequest$ = exports.GetStudentsForSchoolRequest$outboundSchema = exports.GetStudentsForSchoolRequest$inboundSchema = exports.GetStudentsForSchoolOrderBy$ = exports.GetStudentsForSchoolOrderBy$outboundSchema = exports.GetStudentsForSchoolOrderBy$inboundSchema = exports.GetStudentsForSchoolType = exports.GetStudentsForSchoolRoleEnum = exports.GetStudentsForSchoolRoleType = exports.GetStudentsForSchoolStatus = exports.GetStudentsForSchoolOrderBy = void 0;
exports.getStudentsForSchoolRequestToJSON = getStudentsForSchoolRequestToJSON;
exports.getStudentsForSchoolRequestFromJSON = getStudentsForSchoolRequestFromJSON;
exports.getStudentsForSchoolUserIdToJSON = getStudentsForSchoolUserIdToJSON;
exports.getStudentsForSchoolUserIdFromJSON = getStudentsForSchoolUserIdFromJSON;
exports.getStudentsForSchoolOrgToJSON = getStudentsForSchoolOrgToJSON;
exports.getStudentsForSchoolOrgFromJSON = getStudentsForSchoolOrgFromJSON;
exports.getStudentsForSchoolRoleToJSON = getStudentsForSchoolRoleToJSON;
exports.getStudentsForSchoolRoleFromJSON = getStudentsForSchoolRoleFromJSON;
exports.getStudentsForSchoolAgentToJSON = getStudentsForSchoolAgentToJSON;
exports.getStudentsForSchoolAgentFromJSON = getStudentsForSchoolAgentFromJSON;
exports.getStudentsForSchoolPrimaryOrgToJSON = getStudentsForSchoolPrimaryOrgToJSON;
exports.getStudentsForSchoolPrimaryOrgFromJSON = getStudentsForSchoolPrimaryOrgFromJSON;
exports.getStudentsForSchoolUserToJSON = getStudentsForSchoolUserToJSON;
exports.getStudentsForSchoolUserFromJSON = getStudentsForSchoolUserFromJSON;
exports.getStudentsForSchoolResponseBodyToJSON = getStudentsForSchoolResponseBodyToJSON;
exports.getStudentsForSchoolResponseBodyFromJSON = getStudentsForSchoolResponseBodyFromJSON;
exports.getStudentsForSchoolResponseToJSON = getStudentsForSchoolResponseToJSON;
exports.getStudentsForSchoolResponseFromJSON = getStudentsForSchoolResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The order to sort the response by
 */
exports.GetStudentsForSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
exports.GetStudentsForSchoolStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
exports.GetStudentsForSchoolRoleType = {
    Primary: "primary",
    Secondary: "secondary",
};
exports.GetStudentsForSchoolRoleEnum = {
    Administrator: "administrator",
    Aide: "aide",
    Guardian: "guardian",
    Parent: "parent",
    Proctor: "proctor",
    Relative: "relative",
    Student: "student",
    Teacher: "teacher",
};
exports.GetStudentsForSchoolType = {
    AcademicSession: "academicSession",
    AssessmentLineItem: "assessmentLineItem",
    Category: "category",
    Class: "class",
    Course: "course",
    Demographics: "demographics",
    Enrollment: "enrollment",
    GradingPeriod: "gradingPeriod",
    LineItem: "lineItem",
    Org: "org",
    Resource: "resource",
    Result: "result",
    ScoreScale: "scoreScale",
    Student: "student",
    Teacher: "teacher",
    Term: "term",
    User: "user",
    ComponentResource: "componentResource",
    CourseComponent: "courseComponent",
};
/** @internal */
exports.GetStudentsForSchoolOrderBy$inboundSchema = z.nativeEnum(exports.GetStudentsForSchoolOrderBy);
/** @internal */
exports.GetStudentsForSchoolOrderBy$outboundSchema = exports.GetStudentsForSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolOrderBy$;
(function (GetStudentsForSchoolOrderBy$) {
    /** @deprecated use `GetStudentsForSchoolOrderBy$inboundSchema` instead. */
    GetStudentsForSchoolOrderBy$.inboundSchema = exports.GetStudentsForSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolOrderBy$outboundSchema` instead. */
    GetStudentsForSchoolOrderBy$.outboundSchema = exports.GetStudentsForSchoolOrderBy$outboundSchema;
})(GetStudentsForSchoolOrderBy$ || (exports.GetStudentsForSchoolOrderBy$ = GetStudentsForSchoolOrderBy$ = {}));
/** @internal */
exports.GetStudentsForSchoolRequest$inboundSchema = z.object({
    schoolSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetStudentsForSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetStudentsForSchoolRequest$outboundSchema = z.object({
    schoolSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetStudentsForSchoolOrderBy$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 GetStudentsForSchoolRequest$;
(function (GetStudentsForSchoolRequest$) {
    /** @deprecated use `GetStudentsForSchoolRequest$inboundSchema` instead. */
    GetStudentsForSchoolRequest$.inboundSchema = exports.GetStudentsForSchoolRequest$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolRequest$outboundSchema` instead. */
    GetStudentsForSchoolRequest$.outboundSchema = exports.GetStudentsForSchoolRequest$outboundSchema;
})(GetStudentsForSchoolRequest$ || (exports.GetStudentsForSchoolRequest$ = GetStudentsForSchoolRequest$ = {}));
function getStudentsForSchoolRequestToJSON(getStudentsForSchoolRequest) {
    return JSON.stringify(exports.GetStudentsForSchoolRequest$outboundSchema.parse(getStudentsForSchoolRequest));
}
function getStudentsForSchoolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolRequest' from JSON`);
}
/** @internal */
exports.GetStudentsForSchoolStatus$inboundSchema = z.nativeEnum(exports.GetStudentsForSchoolStatus);
/** @internal */
exports.GetStudentsForSchoolStatus$outboundSchema = exports.GetStudentsForSchoolStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolStatus$;
(function (GetStudentsForSchoolStatus$) {
    /** @deprecated use `GetStudentsForSchoolStatus$inboundSchema` instead. */
    GetStudentsForSchoolStatus$.inboundSchema = exports.GetStudentsForSchoolStatus$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolStatus$outboundSchema` instead. */
    GetStudentsForSchoolStatus$.outboundSchema = exports.GetStudentsForSchoolStatus$outboundSchema;
})(GetStudentsForSchoolStatus$ || (exports.GetStudentsForSchoolStatus$ = GetStudentsForSchoolStatus$ = {}));
/** @internal */
exports.GetStudentsForSchoolUserId$inboundSchema = z.object({
    type: z.string(),
    identifier: z.string(),
});
/** @internal */
exports.GetStudentsForSchoolUserId$outboundSchema = z.object({
    type: z.string(),
    identifier: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolUserId$;
(function (GetStudentsForSchoolUserId$) {
    /** @deprecated use `GetStudentsForSchoolUserId$inboundSchema` instead. */
    GetStudentsForSchoolUserId$.inboundSchema = exports.GetStudentsForSchoolUserId$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolUserId$outboundSchema` instead. */
    GetStudentsForSchoolUserId$.outboundSchema = exports.GetStudentsForSchoolUserId$outboundSchema;
})(GetStudentsForSchoolUserId$ || (exports.GetStudentsForSchoolUserId$ = GetStudentsForSchoolUserId$ = {}));
function getStudentsForSchoolUserIdToJSON(getStudentsForSchoolUserId) {
    return JSON.stringify(exports.GetStudentsForSchoolUserId$outboundSchema.parse(getStudentsForSchoolUserId));
}
function getStudentsForSchoolUserIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolUserId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolUserId' from JSON`);
}
/** @internal */
exports.GetStudentsForSchoolRoleType$inboundSchema = z.nativeEnum(exports.GetStudentsForSchoolRoleType);
/** @internal */
exports.GetStudentsForSchoolRoleType$outboundSchema = exports.GetStudentsForSchoolRoleType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolRoleType$;
(function (GetStudentsForSchoolRoleType$) {
    /** @deprecated use `GetStudentsForSchoolRoleType$inboundSchema` instead. */
    GetStudentsForSchoolRoleType$.inboundSchema = exports.GetStudentsForSchoolRoleType$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolRoleType$outboundSchema` instead. */
    GetStudentsForSchoolRoleType$.outboundSchema = exports.GetStudentsForSchoolRoleType$outboundSchema;
})(GetStudentsForSchoolRoleType$ || (exports.GetStudentsForSchoolRoleType$ = GetStudentsForSchoolRoleType$ = {}));
/** @internal */
exports.GetStudentsForSchoolRoleEnum$inboundSchema = z.nativeEnum(exports.GetStudentsForSchoolRoleEnum);
/** @internal */
exports.GetStudentsForSchoolRoleEnum$outboundSchema = exports.GetStudentsForSchoolRoleEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolRoleEnum$;
(function (GetStudentsForSchoolRoleEnum$) {
    /** @deprecated use `GetStudentsForSchoolRoleEnum$inboundSchema` instead. */
    GetStudentsForSchoolRoleEnum$.inboundSchema = exports.GetStudentsForSchoolRoleEnum$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolRoleEnum$outboundSchema` instead. */
    GetStudentsForSchoolRoleEnum$.outboundSchema = exports.GetStudentsForSchoolRoleEnum$outboundSchema;
})(GetStudentsForSchoolRoleEnum$ || (exports.GetStudentsForSchoolRoleEnum$ = GetStudentsForSchoolRoleEnum$ = {}));
/** @internal */
exports.GetStudentsForSchoolOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
exports.GetStudentsForSchoolOrg$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolOrg$;
(function (GetStudentsForSchoolOrg$) {
    /** @deprecated use `GetStudentsForSchoolOrg$inboundSchema` instead. */
    GetStudentsForSchoolOrg$.inboundSchema = exports.GetStudentsForSchoolOrg$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolOrg$outboundSchema` instead. */
    GetStudentsForSchoolOrg$.outboundSchema = exports.GetStudentsForSchoolOrg$outboundSchema;
})(GetStudentsForSchoolOrg$ || (exports.GetStudentsForSchoolOrg$ = GetStudentsForSchoolOrg$ = {}));
function getStudentsForSchoolOrgToJSON(getStudentsForSchoolOrg) {
    return JSON.stringify(exports.GetStudentsForSchoolOrg$outboundSchema.parse(getStudentsForSchoolOrg));
}
function getStudentsForSchoolOrgFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolOrg' from JSON`);
}
/** @internal */
exports.GetStudentsForSchoolRole$inboundSchema = z.object({
    roleType: exports.GetStudentsForSchoolRoleType$inboundSchema,
    role: exports.GetStudentsForSchoolRoleEnum$inboundSchema,
    org: z.lazy(() => exports.GetStudentsForSchoolOrg$inboundSchema),
    userProfile: z.string().optional(),
    beginDate: z.nullable(z.string()),
    endDate: z.nullable(z.string()),
});
/** @internal */
exports.GetStudentsForSchoolRole$outboundSchema = z.object({
    roleType: exports.GetStudentsForSchoolRoleType$outboundSchema,
    role: exports.GetStudentsForSchoolRoleEnum$outboundSchema,
    org: z.lazy(() => exports.GetStudentsForSchoolOrg$outboundSchema),
    userProfile: z.string().optional(),
    beginDate: z.nullable(z.string()),
    endDate: z.nullable(z.string()),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolRole$;
(function (GetStudentsForSchoolRole$) {
    /** @deprecated use `GetStudentsForSchoolRole$inboundSchema` instead. */
    GetStudentsForSchoolRole$.inboundSchema = exports.GetStudentsForSchoolRole$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolRole$outboundSchema` instead. */
    GetStudentsForSchoolRole$.outboundSchema = exports.GetStudentsForSchoolRole$outboundSchema;
})(GetStudentsForSchoolRole$ || (exports.GetStudentsForSchoolRole$ = GetStudentsForSchoolRole$ = {}));
function getStudentsForSchoolRoleToJSON(getStudentsForSchoolRole) {
    return JSON.stringify(exports.GetStudentsForSchoolRole$outboundSchema.parse(getStudentsForSchoolRole));
}
function getStudentsForSchoolRoleFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolRole$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolRole' from JSON`);
}
/** @internal */
exports.GetStudentsForSchoolType$inboundSchema = z.nativeEnum(exports.GetStudentsForSchoolType);
/** @internal */
exports.GetStudentsForSchoolType$outboundSchema = exports.GetStudentsForSchoolType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolType$;
(function (GetStudentsForSchoolType$) {
    /** @deprecated use `GetStudentsForSchoolType$inboundSchema` instead. */
    GetStudentsForSchoolType$.inboundSchema = exports.GetStudentsForSchoolType$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolType$outboundSchema` instead. */
    GetStudentsForSchoolType$.outboundSchema = exports.GetStudentsForSchoolType$outboundSchema;
})(GetStudentsForSchoolType$ || (exports.GetStudentsForSchoolType$ = GetStudentsForSchoolType$ = {}));
/** @internal */
exports.GetStudentsForSchoolAgent$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: exports.GetStudentsForSchoolType$inboundSchema,
});
/** @internal */
exports.GetStudentsForSchoolAgent$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: exports.GetStudentsForSchoolType$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolAgent$;
(function (GetStudentsForSchoolAgent$) {
    /** @deprecated use `GetStudentsForSchoolAgent$inboundSchema` instead. */
    GetStudentsForSchoolAgent$.inboundSchema = exports.GetStudentsForSchoolAgent$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolAgent$outboundSchema` instead. */
    GetStudentsForSchoolAgent$.outboundSchema = exports.GetStudentsForSchoolAgent$outboundSchema;
})(GetStudentsForSchoolAgent$ || (exports.GetStudentsForSchoolAgent$ = GetStudentsForSchoolAgent$ = {}));
function getStudentsForSchoolAgentToJSON(getStudentsForSchoolAgent) {
    return JSON.stringify(exports.GetStudentsForSchoolAgent$outboundSchema.parse(getStudentsForSchoolAgent));
}
function getStudentsForSchoolAgentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolAgent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolAgent' from JSON`);
}
/** @internal */
exports.GetStudentsForSchoolPrimaryOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
exports.GetStudentsForSchoolPrimaryOrg$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetStudentsForSchoolPrimaryOrg$;
(function (GetStudentsForSchoolPrimaryOrg$) {
    /** @deprecated use `GetStudentsForSchoolPrimaryOrg$inboundSchema` instead. */
    GetStudentsForSchoolPrimaryOrg$.inboundSchema = exports.GetStudentsForSchoolPrimaryOrg$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolPrimaryOrg$outboundSchema` instead. */
    GetStudentsForSchoolPrimaryOrg$.outboundSchema = exports.GetStudentsForSchoolPrimaryOrg$outboundSchema;
})(GetStudentsForSchoolPrimaryOrg$ || (exports.GetStudentsForSchoolPrimaryOrg$ = GetStudentsForSchoolPrimaryOrg$ = {}));
function getStudentsForSchoolPrimaryOrgToJSON(getStudentsForSchoolPrimaryOrg) {
    return JSON.stringify(exports.GetStudentsForSchoolPrimaryOrg$outboundSchema.parse(getStudentsForSchoolPrimaryOrg));
}
function getStudentsForSchoolPrimaryOrgFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolPrimaryOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolPrimaryOrg' from JSON`);
}
/** @internal */
exports.GetStudentsForSchoolUser$inboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.GetStudentsForSchoolStatus$inboundSchema,
    dateLastModified: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    userMasterIdentifier: z.nullable(z.string()).optional(),
    username: z.nullable(z.string()).optional(),
    userIds: z.array(z.lazy(() => exports.GetStudentsForSchoolUserId$inboundSchema))
        .optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => exports.GetStudentsForSchoolRole$inboundSchema)),
    agents: z.array(z.lazy(() => exports.GetStudentsForSchoolAgent$inboundSchema)),
    primaryOrg: z.lazy(() => exports.GetStudentsForSchoolPrimaryOrg$inboundSchema)
        .optional(),
    email: z.nullable(z.string()).optional(),
    preferredFirstName: z.nullable(z.string()).optional(),
    preferredMiddleName: z.nullable(z.string()).optional(),
    preferredLastName: z.nullable(z.string()).optional(),
    pronouns: z.nullable(z.string()).optional(),
    grades: z.array(z.string()).optional(),
    password: z.nullable(z.string()).optional(),
    sms: z.nullable(z.string()).optional(),
    phone: z.nullable(z.string()).optional(),
});
/** @internal */
exports.GetStudentsForSchoolUser$outboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.GetStudentsForSchoolStatus$outboundSchema,
    dateLastModified: z.date().transform(v => v.toISOString()).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    userMasterIdentifier: z.nullable(z.string()).optional(),
    username: z.nullable(z.string()).optional(),
    userIds: z.array(z.lazy(() => exports.GetStudentsForSchoolUserId$outboundSchema))
        .optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => exports.GetStudentsForSchoolRole$outboundSchema)),
    agents: z.array(z.lazy(() => exports.GetStudentsForSchoolAgent$outboundSchema)),
    primaryOrg: z.lazy(() => exports.GetStudentsForSchoolPrimaryOrg$outboundSchema)
        .optional(),
    email: z.nullable(z.string()).optional(),
    preferredFirstName: z.nullable(z.string()).optional(),
    preferredMiddleName: z.nullable(z.string()).optional(),
    preferredLastName: z.nullable(z.string()).optional(),
    pronouns: z.nullable(z.string()).optional(),
    grades: z.array(z.string()).optional(),
    password: z.nullable(z.string()).optional(),
    sms: z.nullable(z.string()).optional(),
    phone: z.nullable(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 GetStudentsForSchoolUser$;
(function (GetStudentsForSchoolUser$) {
    /** @deprecated use `GetStudentsForSchoolUser$inboundSchema` instead. */
    GetStudentsForSchoolUser$.inboundSchema = exports.GetStudentsForSchoolUser$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolUser$outboundSchema` instead. */
    GetStudentsForSchoolUser$.outboundSchema = exports.GetStudentsForSchoolUser$outboundSchema;
})(GetStudentsForSchoolUser$ || (exports.GetStudentsForSchoolUser$ = GetStudentsForSchoolUser$ = {}));
function getStudentsForSchoolUserToJSON(getStudentsForSchoolUser) {
    return JSON.stringify(exports.GetStudentsForSchoolUser$outboundSchema.parse(getStudentsForSchoolUser));
}
function getStudentsForSchoolUserFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolUser' from JSON`);
}
/** @internal */
exports.GetStudentsForSchoolResponseBody$inboundSchema = z.object({
    users: z.array(z.lazy(() => exports.GetStudentsForSchoolUser$inboundSchema)),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetStudentsForSchoolResponseBody$outboundSchema = z.object({
    users: z.array(z.lazy(() => exports.GetStudentsForSchoolUser$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 GetStudentsForSchoolResponseBody$;
(function (GetStudentsForSchoolResponseBody$) {
    /** @deprecated use `GetStudentsForSchoolResponseBody$inboundSchema` instead. */
    GetStudentsForSchoolResponseBody$.inboundSchema = exports.GetStudentsForSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolResponseBody$outboundSchema` instead. */
    GetStudentsForSchoolResponseBody$.outboundSchema = exports.GetStudentsForSchoolResponseBody$outboundSchema;
})(GetStudentsForSchoolResponseBody$ || (exports.GetStudentsForSchoolResponseBody$ = GetStudentsForSchoolResponseBody$ = {}));
function getStudentsForSchoolResponseBodyToJSON(getStudentsForSchoolResponseBody) {
    return JSON.stringify(exports.GetStudentsForSchoolResponseBody$outboundSchema.parse(getStudentsForSchoolResponseBody));
}
function getStudentsForSchoolResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolResponseBody' from JSON`);
}
/** @internal */
exports.GetStudentsForSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetStudentsForSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetStudentsForSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetStudentsForSchoolResponseBody$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 GetStudentsForSchoolResponse$;
(function (GetStudentsForSchoolResponse$) {
    /** @deprecated use `GetStudentsForSchoolResponse$inboundSchema` instead. */
    GetStudentsForSchoolResponse$.inboundSchema = exports.GetStudentsForSchoolResponse$inboundSchema;
    /** @deprecated use `GetStudentsForSchoolResponse$outboundSchema` instead. */
    GetStudentsForSchoolResponse$.outboundSchema = exports.GetStudentsForSchoolResponse$outboundSchema;
})(GetStudentsForSchoolResponse$ || (exports.GetStudentsForSchoolResponse$ = GetStudentsForSchoolResponse$ = {}));
function getStudentsForSchoolResponseToJSON(getStudentsForSchoolResponse) {
    return JSON.stringify(exports.GetStudentsForSchoolResponse$outboundSchema.parse(getStudentsForSchoolResponse));
}
function getStudentsForSchoolResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetStudentsForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForSchoolResponse' from JSON`);
}
//# sourceMappingURL=getstudentsforschool.js.map