"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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.atsListUsersResponseFromJSON = exports.atsListUsersResponseToJSON = exports.AtsListUsersResponse$ = exports.AtsListUsersResponse$outboundSchema = exports.AtsListUsersResponse$inboundSchema = exports.atsListUsersRequestFromJSON = exports.atsListUsersRequestToJSON = exports.AtsListUsersRequest$ = exports.AtsListUsersRequest$outboundSchema = exports.AtsListUsersRequest$inboundSchema = exports.atsListUsersQueryParamFilterFromJSON = exports.atsListUsersQueryParamFilterToJSON = exports.AtsListUsersQueryParamFilter$ = exports.AtsListUsersQueryParamFilter$outboundSchema = exports.AtsListUsersQueryParamFilter$inboundSchema = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const shared = __importStar(require("../shared/index.js"));
/** @internal */
exports.AtsListUsersQueryParamFilter$inboundSchema = z.object({
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.AtsListUsersQueryParamFilter$outboundSchema = z.object({
    updatedAfter: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        updatedAfter: "updated_after",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsListUsersQueryParamFilter$;
(function (AtsListUsersQueryParamFilter$) {
    /** @deprecated use `AtsListUsersQueryParamFilter$inboundSchema` instead. */
    AtsListUsersQueryParamFilter$.inboundSchema = exports.AtsListUsersQueryParamFilter$inboundSchema;
    /** @deprecated use `AtsListUsersQueryParamFilter$outboundSchema` instead. */
    AtsListUsersQueryParamFilter$.outboundSchema = exports.AtsListUsersQueryParamFilter$outboundSchema;
})(AtsListUsersQueryParamFilter$ || (exports.AtsListUsersQueryParamFilter$ = AtsListUsersQueryParamFilter$ = {}));
function atsListUsersQueryParamFilterToJSON(atsListUsersQueryParamFilter) {
    return JSON.stringify(exports.AtsListUsersQueryParamFilter$outboundSchema.parse(atsListUsersQueryParamFilter));
}
exports.atsListUsersQueryParamFilterToJSON = atsListUsersQueryParamFilterToJSON;
function atsListUsersQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsListUsersQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsListUsersQueryParamFilter' from JSON`);
}
exports.atsListUsersQueryParamFilterFromJSON = atsListUsersQueryParamFilterFromJSON;
/** @internal */
exports.AtsListUsersRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.AtsListUsersQueryParamFilter$inboundSchema))
        .optional(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    page_size: z.nullable(z.string().default("25")),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean().default(false)),
    sync_token: z.nullable(z.string()).optional(),
    updated_after: z.nullable(z.string()).optional(),
    "x-account-id": z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "page_size": "pageSize",
        "sync_token": "syncToken",
        "updated_after": "updatedAfter",
        "x-account-id": "xAccountId",
    });
});
/** @internal */
exports.AtsListUsersRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.AtsListUsersQueryParamFilter$outboundSchema))
        .optional(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    pageSize: z.nullable(z.string().default("25")),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean().default(false)),
    syncToken: z.nullable(z.string()).optional(),
    updatedAfter: z.nullable(z.string()).optional(),
    xAccountId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        pageSize: "page_size",
        syncToken: "sync_token",
        updatedAfter: "updated_after",
        xAccountId: "x-account-id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsListUsersRequest$;
(function (AtsListUsersRequest$) {
    /** @deprecated use `AtsListUsersRequest$inboundSchema` instead. */
    AtsListUsersRequest$.inboundSchema = exports.AtsListUsersRequest$inboundSchema;
    /** @deprecated use `AtsListUsersRequest$outboundSchema` instead. */
    AtsListUsersRequest$.outboundSchema = exports.AtsListUsersRequest$outboundSchema;
})(AtsListUsersRequest$ || (exports.AtsListUsersRequest$ = AtsListUsersRequest$ = {}));
function atsListUsersRequestToJSON(atsListUsersRequest) {
    return JSON.stringify(exports.AtsListUsersRequest$outboundSchema.parse(atsListUsersRequest));
}
exports.atsListUsersRequestToJSON = atsListUsersRequestToJSON;
function atsListUsersRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsListUsersRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsListUsersRequest' from JSON`);
}
exports.atsListUsersRequestFromJSON = atsListUsersRequestFromJSON;
/** @internal */
exports.AtsListUsersResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    UsersPaginated: shared.UsersPaginated$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "UsersPaginated": "usersPaginated",
    });
});
/** @internal */
exports.AtsListUsersResponse$outboundSchema = z.object({
    contentType: z.string(),
    headers: z.record(z.array(z.string())),
    statusCode: z.number().int(),
    rawResponse: z.instanceof(Response).transform(() => {
        throw new Error("Response cannot be serialized");
    }),
    usersPaginated: shared.UsersPaginated$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        usersPaginated: "UsersPaginated",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AtsListUsersResponse$;
(function (AtsListUsersResponse$) {
    /** @deprecated use `AtsListUsersResponse$inboundSchema` instead. */
    AtsListUsersResponse$.inboundSchema = exports.AtsListUsersResponse$inboundSchema;
    /** @deprecated use `AtsListUsersResponse$outboundSchema` instead. */
    AtsListUsersResponse$.outboundSchema = exports.AtsListUsersResponse$outboundSchema;
})(AtsListUsersResponse$ || (exports.AtsListUsersResponse$ = AtsListUsersResponse$ = {}));
function atsListUsersResponseToJSON(atsListUsersResponse) {
    return JSON.stringify(exports.AtsListUsersResponse$outboundSchema.parse(atsListUsersResponse));
}
exports.atsListUsersResponseToJSON = atsListUsersResponseToJSON;
function atsListUsersResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AtsListUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AtsListUsersResponse' from JSON`);
}
exports.atsListUsersResponseFromJSON = atsListUsersResponseFromJSON;
//# sourceMappingURL=atslistusers.js.map