"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.GetAllUsersResponse$ = exports.GetAllUsersResponse$outboundSchema = exports.GetAllUsersResponse$inboundSchema = exports.GetAllUsersResponseBody$ = exports.GetAllUsersResponseBody$outboundSchema = exports.GetAllUsersResponseBody$inboundSchema = exports.GetAllUsersUser$ = exports.GetAllUsersUser$outboundSchema = exports.GetAllUsersUser$inboundSchema = exports.GetAllUsersPrimaryOrg$ = exports.GetAllUsersPrimaryOrg$outboundSchema = exports.GetAllUsersPrimaryOrg$inboundSchema = exports.GetAllUsersAgent$ = exports.GetAllUsersAgent$outboundSchema = exports.GetAllUsersAgent$inboundSchema = exports.GetAllUsersType$ = exports.GetAllUsersType$outboundSchema = exports.GetAllUsersType$inboundSchema = exports.GetAllUsersRole$ = exports.GetAllUsersRole$outboundSchema = exports.GetAllUsersRole$inboundSchema = exports.GetAllUsersOrg$ = exports.GetAllUsersOrg$outboundSchema = exports.GetAllUsersOrg$inboundSchema = exports.GetAllUsersRoleEnum$ = exports.GetAllUsersRoleEnum$outboundSchema = exports.GetAllUsersRoleEnum$inboundSchema = exports.GetAllUsersRoleType$ = exports.GetAllUsersRoleType$outboundSchema = exports.GetAllUsersRoleType$inboundSchema = exports.GetAllUsersUserId$ = exports.GetAllUsersUserId$outboundSchema = exports.GetAllUsersUserId$inboundSchema = exports.GetAllUsersStatus$ = exports.GetAllUsersStatus$outboundSchema = exports.GetAllUsersStatus$inboundSchema = exports.GetAllUsersRequest$ = exports.GetAllUsersRequest$outboundSchema = exports.GetAllUsersRequest$inboundSchema = exports.GetAllUsersOrderBy$ = exports.GetAllUsersOrderBy$outboundSchema = exports.GetAllUsersOrderBy$inboundSchema = exports.GetAllUsersType = exports.GetAllUsersRoleEnum = exports.GetAllUsersRoleType = exports.GetAllUsersStatus = exports.GetAllUsersOrderBy = void 0;
exports.getAllUsersRequestToJSON = getAllUsersRequestToJSON;
exports.getAllUsersRequestFromJSON = getAllUsersRequestFromJSON;
exports.getAllUsersUserIdToJSON = getAllUsersUserIdToJSON;
exports.getAllUsersUserIdFromJSON = getAllUsersUserIdFromJSON;
exports.getAllUsersOrgToJSON = getAllUsersOrgToJSON;
exports.getAllUsersOrgFromJSON = getAllUsersOrgFromJSON;
exports.getAllUsersRoleToJSON = getAllUsersRoleToJSON;
exports.getAllUsersRoleFromJSON = getAllUsersRoleFromJSON;
exports.getAllUsersAgentToJSON = getAllUsersAgentToJSON;
exports.getAllUsersAgentFromJSON = getAllUsersAgentFromJSON;
exports.getAllUsersPrimaryOrgToJSON = getAllUsersPrimaryOrgToJSON;
exports.getAllUsersPrimaryOrgFromJSON = getAllUsersPrimaryOrgFromJSON;
exports.getAllUsersUserToJSON = getAllUsersUserToJSON;
exports.getAllUsersUserFromJSON = getAllUsersUserFromJSON;
exports.getAllUsersResponseBodyToJSON = getAllUsersResponseBodyToJSON;
exports.getAllUsersResponseBodyFromJSON = getAllUsersResponseBodyFromJSON;
exports.getAllUsersResponseToJSON = getAllUsersResponseToJSON;
exports.getAllUsersResponseFromJSON = getAllUsersResponseFromJSON;
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.GetAllUsersOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
exports.GetAllUsersStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
exports.GetAllUsersRoleType = {
    Primary: "primary",
    Secondary: "secondary",
};
exports.GetAllUsersRoleEnum = {
    Administrator: "administrator",
    Aide: "aide",
    Guardian: "guardian",
    Parent: "parent",
    Proctor: "proctor",
    Relative: "relative",
    Student: "student",
    Teacher: "teacher",
};
exports.GetAllUsersType = {
    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.GetAllUsersOrderBy$inboundSchema = z.nativeEnum(exports.GetAllUsersOrderBy);
/** @internal */
exports.GetAllUsersOrderBy$outboundSchema = exports.GetAllUsersOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllUsersOrderBy$;
(function (GetAllUsersOrderBy$) {
    /** @deprecated use `GetAllUsersOrderBy$inboundSchema` instead. */
    GetAllUsersOrderBy$.inboundSchema = exports.GetAllUsersOrderBy$inboundSchema;
    /** @deprecated use `GetAllUsersOrderBy$outboundSchema` instead. */
    GetAllUsersOrderBy$.outboundSchema = exports.GetAllUsersOrderBy$outboundSchema;
})(GetAllUsersOrderBy$ || (exports.GetAllUsersOrderBy$ = GetAllUsersOrderBy$ = {}));
/** @internal */
exports.GetAllUsersRequest$inboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetAllUsersOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.GetAllUsersRequest$outboundSchema = z.object({
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: exports.GetAllUsersOrderBy$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 GetAllUsersRequest$;
(function (GetAllUsersRequest$) {
    /** @deprecated use `GetAllUsersRequest$inboundSchema` instead. */
    GetAllUsersRequest$.inboundSchema = exports.GetAllUsersRequest$inboundSchema;
    /** @deprecated use `GetAllUsersRequest$outboundSchema` instead. */
    GetAllUsersRequest$.outboundSchema = exports.GetAllUsersRequest$outboundSchema;
})(GetAllUsersRequest$ || (exports.GetAllUsersRequest$ = GetAllUsersRequest$ = {}));
function getAllUsersRequestToJSON(getAllUsersRequest) {
    return JSON.stringify(exports.GetAllUsersRequest$outboundSchema.parse(getAllUsersRequest));
}
function getAllUsersRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersRequest' from JSON`);
}
/** @internal */
exports.GetAllUsersStatus$inboundSchema = z.nativeEnum(exports.GetAllUsersStatus);
/** @internal */
exports.GetAllUsersStatus$outboundSchema = exports.GetAllUsersStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllUsersStatus$;
(function (GetAllUsersStatus$) {
    /** @deprecated use `GetAllUsersStatus$inboundSchema` instead. */
    GetAllUsersStatus$.inboundSchema = exports.GetAllUsersStatus$inboundSchema;
    /** @deprecated use `GetAllUsersStatus$outboundSchema` instead. */
    GetAllUsersStatus$.outboundSchema = exports.GetAllUsersStatus$outboundSchema;
})(GetAllUsersStatus$ || (exports.GetAllUsersStatus$ = GetAllUsersStatus$ = {}));
/** @internal */
exports.GetAllUsersUserId$inboundSchema = z.object({
    type: z.string(),
    identifier: z.string(),
});
/** @internal */
exports.GetAllUsersUserId$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 GetAllUsersUserId$;
(function (GetAllUsersUserId$) {
    /** @deprecated use `GetAllUsersUserId$inboundSchema` instead. */
    GetAllUsersUserId$.inboundSchema = exports.GetAllUsersUserId$inboundSchema;
    /** @deprecated use `GetAllUsersUserId$outboundSchema` instead. */
    GetAllUsersUserId$.outboundSchema = exports.GetAllUsersUserId$outboundSchema;
})(GetAllUsersUserId$ || (exports.GetAllUsersUserId$ = GetAllUsersUserId$ = {}));
function getAllUsersUserIdToJSON(getAllUsersUserId) {
    return JSON.stringify(exports.GetAllUsersUserId$outboundSchema.parse(getAllUsersUserId));
}
function getAllUsersUserIdFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersUserId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersUserId' from JSON`);
}
/** @internal */
exports.GetAllUsersRoleType$inboundSchema = z.nativeEnum(exports.GetAllUsersRoleType);
/** @internal */
exports.GetAllUsersRoleType$outboundSchema = exports.GetAllUsersRoleType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllUsersRoleType$;
(function (GetAllUsersRoleType$) {
    /** @deprecated use `GetAllUsersRoleType$inboundSchema` instead. */
    GetAllUsersRoleType$.inboundSchema = exports.GetAllUsersRoleType$inboundSchema;
    /** @deprecated use `GetAllUsersRoleType$outboundSchema` instead. */
    GetAllUsersRoleType$.outboundSchema = exports.GetAllUsersRoleType$outboundSchema;
})(GetAllUsersRoleType$ || (exports.GetAllUsersRoleType$ = GetAllUsersRoleType$ = {}));
/** @internal */
exports.GetAllUsersRoleEnum$inboundSchema = z.nativeEnum(exports.GetAllUsersRoleEnum);
/** @internal */
exports.GetAllUsersRoleEnum$outboundSchema = exports.GetAllUsersRoleEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllUsersRoleEnum$;
(function (GetAllUsersRoleEnum$) {
    /** @deprecated use `GetAllUsersRoleEnum$inboundSchema` instead. */
    GetAllUsersRoleEnum$.inboundSchema = exports.GetAllUsersRoleEnum$inboundSchema;
    /** @deprecated use `GetAllUsersRoleEnum$outboundSchema` instead. */
    GetAllUsersRoleEnum$.outboundSchema = exports.GetAllUsersRoleEnum$outboundSchema;
})(GetAllUsersRoleEnum$ || (exports.GetAllUsersRoleEnum$ = GetAllUsersRoleEnum$ = {}));
/** @internal */
exports.GetAllUsersOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
exports.GetAllUsersOrg$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 GetAllUsersOrg$;
(function (GetAllUsersOrg$) {
    /** @deprecated use `GetAllUsersOrg$inboundSchema` instead. */
    GetAllUsersOrg$.inboundSchema = exports.GetAllUsersOrg$inboundSchema;
    /** @deprecated use `GetAllUsersOrg$outboundSchema` instead. */
    GetAllUsersOrg$.outboundSchema = exports.GetAllUsersOrg$outboundSchema;
})(GetAllUsersOrg$ || (exports.GetAllUsersOrg$ = GetAllUsersOrg$ = {}));
function getAllUsersOrgToJSON(getAllUsersOrg) {
    return JSON.stringify(exports.GetAllUsersOrg$outboundSchema.parse(getAllUsersOrg));
}
function getAllUsersOrgFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersOrg' from JSON`);
}
/** @internal */
exports.GetAllUsersRole$inboundSchema = z.object({
    roleType: exports.GetAllUsersRoleType$inboundSchema,
    role: exports.GetAllUsersRoleEnum$inboundSchema,
    org: z.lazy(() => exports.GetAllUsersOrg$inboundSchema),
    userProfile: z.string().optional(),
    beginDate: z.nullable(z.string()),
    endDate: z.nullable(z.string()),
});
/** @internal */
exports.GetAllUsersRole$outboundSchema = z.object({
    roleType: exports.GetAllUsersRoleType$outboundSchema,
    role: exports.GetAllUsersRoleEnum$outboundSchema,
    org: z.lazy(() => exports.GetAllUsersOrg$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 GetAllUsersRole$;
(function (GetAllUsersRole$) {
    /** @deprecated use `GetAllUsersRole$inboundSchema` instead. */
    GetAllUsersRole$.inboundSchema = exports.GetAllUsersRole$inboundSchema;
    /** @deprecated use `GetAllUsersRole$outboundSchema` instead. */
    GetAllUsersRole$.outboundSchema = exports.GetAllUsersRole$outboundSchema;
})(GetAllUsersRole$ || (exports.GetAllUsersRole$ = GetAllUsersRole$ = {}));
function getAllUsersRoleToJSON(getAllUsersRole) {
    return JSON.stringify(exports.GetAllUsersRole$outboundSchema.parse(getAllUsersRole));
}
function getAllUsersRoleFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersRole$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersRole' from JSON`);
}
/** @internal */
exports.GetAllUsersType$inboundSchema = z.nativeEnum(exports.GetAllUsersType);
/** @internal */
exports.GetAllUsersType$outboundSchema = exports.GetAllUsersType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllUsersType$;
(function (GetAllUsersType$) {
    /** @deprecated use `GetAllUsersType$inboundSchema` instead. */
    GetAllUsersType$.inboundSchema = exports.GetAllUsersType$inboundSchema;
    /** @deprecated use `GetAllUsersType$outboundSchema` instead. */
    GetAllUsersType$.outboundSchema = exports.GetAllUsersType$outboundSchema;
})(GetAllUsersType$ || (exports.GetAllUsersType$ = GetAllUsersType$ = {}));
/** @internal */
exports.GetAllUsersAgent$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: exports.GetAllUsersType$inboundSchema,
});
/** @internal */
exports.GetAllUsersAgent$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: exports.GetAllUsersType$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetAllUsersAgent$;
(function (GetAllUsersAgent$) {
    /** @deprecated use `GetAllUsersAgent$inboundSchema` instead. */
    GetAllUsersAgent$.inboundSchema = exports.GetAllUsersAgent$inboundSchema;
    /** @deprecated use `GetAllUsersAgent$outboundSchema` instead. */
    GetAllUsersAgent$.outboundSchema = exports.GetAllUsersAgent$outboundSchema;
})(GetAllUsersAgent$ || (exports.GetAllUsersAgent$ = GetAllUsersAgent$ = {}));
function getAllUsersAgentToJSON(getAllUsersAgent) {
    return JSON.stringify(exports.GetAllUsersAgent$outboundSchema.parse(getAllUsersAgent));
}
function getAllUsersAgentFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersAgent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersAgent' from JSON`);
}
/** @internal */
exports.GetAllUsersPrimaryOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
exports.GetAllUsersPrimaryOrg$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 GetAllUsersPrimaryOrg$;
(function (GetAllUsersPrimaryOrg$) {
    /** @deprecated use `GetAllUsersPrimaryOrg$inboundSchema` instead. */
    GetAllUsersPrimaryOrg$.inboundSchema = exports.GetAllUsersPrimaryOrg$inboundSchema;
    /** @deprecated use `GetAllUsersPrimaryOrg$outboundSchema` instead. */
    GetAllUsersPrimaryOrg$.outboundSchema = exports.GetAllUsersPrimaryOrg$outboundSchema;
})(GetAllUsersPrimaryOrg$ || (exports.GetAllUsersPrimaryOrg$ = GetAllUsersPrimaryOrg$ = {}));
function getAllUsersPrimaryOrgToJSON(getAllUsersPrimaryOrg) {
    return JSON.stringify(exports.GetAllUsersPrimaryOrg$outboundSchema.parse(getAllUsersPrimaryOrg));
}
function getAllUsersPrimaryOrgFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersPrimaryOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersPrimaryOrg' from JSON`);
}
/** @internal */
exports.GetAllUsersUser$inboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.GetAllUsersStatus$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.GetAllUsersUserId$inboundSchema)).optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => exports.GetAllUsersRole$inboundSchema)),
    agents: z.array(z.lazy(() => exports.GetAllUsersAgent$inboundSchema)),
    primaryOrg: z.lazy(() => exports.GetAllUsersPrimaryOrg$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.GetAllUsersUser$outboundSchema = z.object({
    sourcedId: z.string(),
    status: exports.GetAllUsersStatus$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.GetAllUsersUserId$outboundSchema)).optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => exports.GetAllUsersRole$outboundSchema)),
    agents: z.array(z.lazy(() => exports.GetAllUsersAgent$outboundSchema)),
    primaryOrg: z.lazy(() => exports.GetAllUsersPrimaryOrg$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 GetAllUsersUser$;
(function (GetAllUsersUser$) {
    /** @deprecated use `GetAllUsersUser$inboundSchema` instead. */
    GetAllUsersUser$.inboundSchema = exports.GetAllUsersUser$inboundSchema;
    /** @deprecated use `GetAllUsersUser$outboundSchema` instead. */
    GetAllUsersUser$.outboundSchema = exports.GetAllUsersUser$outboundSchema;
})(GetAllUsersUser$ || (exports.GetAllUsersUser$ = GetAllUsersUser$ = {}));
function getAllUsersUserToJSON(getAllUsersUser) {
    return JSON.stringify(exports.GetAllUsersUser$outboundSchema.parse(getAllUsersUser));
}
function getAllUsersUserFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersUser' from JSON`);
}
/** @internal */
exports.GetAllUsersResponseBody$inboundSchema = z.object({
    users: z.array(z.lazy(() => exports.GetAllUsersUser$inboundSchema)),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
exports.GetAllUsersResponseBody$outboundSchema = z.object({
    users: z.array(z.lazy(() => exports.GetAllUsersUser$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 GetAllUsersResponseBody$;
(function (GetAllUsersResponseBody$) {
    /** @deprecated use `GetAllUsersResponseBody$inboundSchema` instead. */
    GetAllUsersResponseBody$.inboundSchema = exports.GetAllUsersResponseBody$inboundSchema;
    /** @deprecated use `GetAllUsersResponseBody$outboundSchema` instead. */
    GetAllUsersResponseBody$.outboundSchema = exports.GetAllUsersResponseBody$outboundSchema;
})(GetAllUsersResponseBody$ || (exports.GetAllUsersResponseBody$ = GetAllUsersResponseBody$ = {}));
function getAllUsersResponseBodyToJSON(getAllUsersResponseBody) {
    return JSON.stringify(exports.GetAllUsersResponseBody$outboundSchema.parse(getAllUsersResponseBody));
}
function getAllUsersResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersResponseBody' from JSON`);
}
/** @internal */
exports.GetAllUsersResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetAllUsersResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetAllUsersResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetAllUsersResponseBody$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 GetAllUsersResponse$;
(function (GetAllUsersResponse$) {
    /** @deprecated use `GetAllUsersResponse$inboundSchema` instead. */
    GetAllUsersResponse$.inboundSchema = exports.GetAllUsersResponse$inboundSchema;
    /** @deprecated use `GetAllUsersResponse$outboundSchema` instead. */
    GetAllUsersResponse$.outboundSchema = exports.GetAllUsersResponse$outboundSchema;
})(GetAllUsersResponse$ || (exports.GetAllUsersResponse$ = GetAllUsersResponse$ = {}));
function getAllUsersResponseToJSON(getAllUsersResponse) {
    return JSON.stringify(exports.GetAllUsersResponse$outboundSchema.parse(getAllUsersResponse));
}
function getAllUsersResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllUsersResponse' from JSON`);
}
//# sourceMappingURL=getallusers.js.map