"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.ticketingListUsersResponseFromJSON = exports.ticketingListUsersResponseToJSON = exports.TicketingListUsersResponse$ = exports.TicketingListUsersResponse$outboundSchema = exports.TicketingListUsersResponse$inboundSchema = exports.ticketingListUsersRequestFromJSON = exports.ticketingListUsersRequestToJSON = exports.TicketingListUsersRequest$ = exports.TicketingListUsersRequest$outboundSchema = exports.TicketingListUsersRequest$inboundSchema = exports.ticketingListUsersQueryParamFilterFromJSON = exports.ticketingListUsersQueryParamFilterToJSON = exports.TicketingListUsersQueryParamFilter$ = exports.TicketingListUsersQueryParamFilter$outboundSchema = exports.TicketingListUsersQueryParamFilter$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.TicketingListUsersQueryParamFilter$inboundSchema = z.object({
    updated_after: z.nullable(z.string()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "updated_after": "updatedAfter",
    });
});
/** @internal */
exports.TicketingListUsersQueryParamFilter$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 TicketingListUsersQueryParamFilter$;
(function (TicketingListUsersQueryParamFilter$) {
    /** @deprecated use `TicketingListUsersQueryParamFilter$inboundSchema` instead. */
    TicketingListUsersQueryParamFilter$.inboundSchema = exports.TicketingListUsersQueryParamFilter$inboundSchema;
    /** @deprecated use `TicketingListUsersQueryParamFilter$outboundSchema` instead. */
    TicketingListUsersQueryParamFilter$.outboundSchema = exports.TicketingListUsersQueryParamFilter$outboundSchema;
})(TicketingListUsersQueryParamFilter$ || (exports.TicketingListUsersQueryParamFilter$ = TicketingListUsersQueryParamFilter$ = {}));
function ticketingListUsersQueryParamFilterToJSON(ticketingListUsersQueryParamFilter) {
    return JSON.stringify(exports.TicketingListUsersQueryParamFilter$outboundSchema.parse(ticketingListUsersQueryParamFilter));
}
exports.ticketingListUsersQueryParamFilterToJSON = ticketingListUsersQueryParamFilterToJSON;
function ticketingListUsersQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListUsersQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListUsersQueryParamFilter' from JSON`);
}
exports.ticketingListUsersQueryParamFilterFromJSON = ticketingListUsersQueryParamFilterFromJSON;
/** @internal */
exports.TicketingListUsersRequest$inboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.TicketingListUsersQueryParamFilter$inboundSchema)).optional(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    page_size: z.nullable(z.string()).optional(),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean()).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",
        "updated_after": "updatedAfter",
        "x-account-id": "xAccountId",
    });
});
/** @internal */
exports.TicketingListUsersRequest$outboundSchema = z.object({
    fields: z.nullable(z.string()).optional(),
    filter: z.nullable(z.lazy(() => exports.TicketingListUsersQueryParamFilter$outboundSchema)).optional(),
    next: z.nullable(z.string()).optional(),
    page: z.nullable(z.string()).optional(),
    pageSize: z.nullable(z.string()).optional(),
    proxy: z.nullable(z.record(z.any())).optional(),
    raw: z.nullable(z.boolean()).optional(),
    updatedAfter: z.nullable(z.string()).optional(),
    xAccountId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        pageSize: "page_size",
        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 TicketingListUsersRequest$;
(function (TicketingListUsersRequest$) {
    /** @deprecated use `TicketingListUsersRequest$inboundSchema` instead. */
    TicketingListUsersRequest$.inboundSchema = exports.TicketingListUsersRequest$inboundSchema;
    /** @deprecated use `TicketingListUsersRequest$outboundSchema` instead. */
    TicketingListUsersRequest$.outboundSchema = exports.TicketingListUsersRequest$outboundSchema;
})(TicketingListUsersRequest$ || (exports.TicketingListUsersRequest$ = TicketingListUsersRequest$ = {}));
function ticketingListUsersRequestToJSON(ticketingListUsersRequest) {
    return JSON.stringify(exports.TicketingListUsersRequest$outboundSchema.parse(ticketingListUsersRequest));
}
exports.ticketingListUsersRequestToJSON = ticketingListUsersRequestToJSON;
function ticketingListUsersRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListUsersRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListUsersRequest' from JSON`);
}
exports.ticketingListUsersRequestFromJSON = ticketingListUsersRequestFromJSON;
/** @internal */
exports.TicketingListUsersResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    TicketingUsersPaginated: shared.TicketingUsersPaginated$inboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "TicketingUsersPaginated": "ticketingUsersPaginated",
    });
});
/** @internal */
exports.TicketingListUsersResponse$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");
    }),
    ticketingUsersPaginated: shared.TicketingUsersPaginated$outboundSchema
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        ticketingUsersPaginated: "TicketingUsersPaginated",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingListUsersResponse$;
(function (TicketingListUsersResponse$) {
    /** @deprecated use `TicketingListUsersResponse$inboundSchema` instead. */
    TicketingListUsersResponse$.inboundSchema = exports.TicketingListUsersResponse$inboundSchema;
    /** @deprecated use `TicketingListUsersResponse$outboundSchema` instead. */
    TicketingListUsersResponse$.outboundSchema = exports.TicketingListUsersResponse$outboundSchema;
})(TicketingListUsersResponse$ || (exports.TicketingListUsersResponse$ = TicketingListUsersResponse$ = {}));
function ticketingListUsersResponseToJSON(ticketingListUsersResponse) {
    return JSON.stringify(exports.TicketingListUsersResponse$outboundSchema.parse(ticketingListUsersResponse));
}
exports.ticketingListUsersResponseToJSON = ticketingListUsersResponseToJSON;
function ticketingListUsersResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingListUsersResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingListUsersResponse' from JSON`);
}
exports.ticketingListUsersResponseFromJSON = ticketingListUsersResponseFromJSON;
//# sourceMappingURL=ticketinglistusers.js.map