"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.ticketingTicketUpdateRequestDtoFromJSON = exports.ticketingTicketUpdateRequestDtoToJSON = exports.TicketingTicketUpdateRequestDto$ = exports.TicketingTicketUpdateRequestDto$outboundSchema = exports.TicketingTicketUpdateRequestDto$inboundSchema = exports.ticketingTicketUpdateRequestDtoStatusFromJSON = exports.ticketingTicketUpdateRequestDtoStatusToJSON = exports.TicketingTicketUpdateRequestDtoStatus$ = exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema = exports.TicketingTicketUpdateRequestDtoStatus$inboundSchema = exports.ticketingTicketUpdateRequestDtoTypeFromJSON = exports.ticketingTicketUpdateRequestDtoTypeToJSON = exports.TicketingTicketUpdateRequestDtoType$ = exports.TicketingTicketUpdateRequestDtoType$outboundSchema = exports.TicketingTicketUpdateRequestDtoType$inboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasValue$ = exports.TicketingTicketUpdateRequestDtoSchemasValue$outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasValue$inboundSchema = exports.ticketingTicketUpdateRequestDtoSchemasSourceValueFromJSON = exports.ticketingTicketUpdateRequestDtoSchemasSourceValueToJSON = exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$ = exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$inboundSchema = exports.ticketingTicketUpdateRequestDtoSchemas4FromJSON = exports.ticketingTicketUpdateRequestDtoSchemas4ToJSON = exports.TicketingTicketUpdateRequestDtoSchemas4$ = exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemas4$inboundSchema = exports.ticketingTicketUpdateRequestDtoPriorityFromJSON = exports.ticketingTicketUpdateRequestDtoPriorityToJSON = exports.TicketingTicketUpdateRequestDtoPriority$ = exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema = exports.TicketingTicketUpdateRequestDtoPriority$inboundSchema = exports.TicketingTicketUpdateRequestDtoValue$ = exports.TicketingTicketUpdateRequestDtoValue$outboundSchema = exports.TicketingTicketUpdateRequestDtoValue$inboundSchema = exports.ticketingTicketUpdateRequestDtoSourceValueFromJSON = exports.ticketingTicketUpdateRequestDtoSourceValueToJSON = exports.TicketingTicketUpdateRequestDtoSourceValue$ = exports.TicketingTicketUpdateRequestDtoSourceValue$outboundSchema = exports.TicketingTicketUpdateRequestDtoSourceValue$inboundSchema = exports.ticketingTicketUpdateRequestDto4FromJSON = exports.ticketingTicketUpdateRequestDto4ToJSON = exports.TicketingTicketUpdateRequestDto4$ = exports.TicketingTicketUpdateRequestDto4$outboundSchema = exports.TicketingTicketUpdateRequestDto4$inboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasValue = exports.TicketingTicketUpdateRequestDtoValue = void 0;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
const ticketingcontent_js_1 = require("./ticketingcontent.js");
/**
 * The priority of the ticket.
 */
var TicketingTicketUpdateRequestDtoValue;
(function (TicketingTicketUpdateRequestDtoValue) {
    TicketingTicketUpdateRequestDtoValue["Lowest"] = "lowest";
    TicketingTicketUpdateRequestDtoValue["Low"] = "low";
    TicketingTicketUpdateRequestDtoValue["Medium"] = "medium";
    TicketingTicketUpdateRequestDtoValue["High"] = "high";
    TicketingTicketUpdateRequestDtoValue["Highest"] = "highest";
    TicketingTicketUpdateRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(TicketingTicketUpdateRequestDtoValue || (exports.TicketingTicketUpdateRequestDtoValue = TicketingTicketUpdateRequestDtoValue = {}));
/**
 * The type of this status
 */
var TicketingTicketUpdateRequestDtoSchemasValue;
(function (TicketingTicketUpdateRequestDtoSchemasValue) {
    TicketingTicketUpdateRequestDtoSchemasValue["ToDo"] = "to-do";
    TicketingTicketUpdateRequestDtoSchemasValue["InProgress"] = "in-progress";
    TicketingTicketUpdateRequestDtoSchemasValue["Closed"] = "closed";
    TicketingTicketUpdateRequestDtoSchemasValue["UnmappedValue"] = "unmapped_value";
})(TicketingTicketUpdateRequestDtoSchemasValue || (exports.TicketingTicketUpdateRequestDtoSchemasValue = TicketingTicketUpdateRequestDtoSchemasValue = {}));
/** @internal */
exports.TicketingTicketUpdateRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.TicketingTicketUpdateRequestDto4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDto4$;
(function (TicketingTicketUpdateRequestDto4$) {
    /** @deprecated use `TicketingTicketUpdateRequestDto4$inboundSchema` instead. */
    TicketingTicketUpdateRequestDto4$.inboundSchema = exports.TicketingTicketUpdateRequestDto4$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDto4$outboundSchema` instead. */
    TicketingTicketUpdateRequestDto4$.outboundSchema = exports.TicketingTicketUpdateRequestDto4$outboundSchema;
})(TicketingTicketUpdateRequestDto4$ || (exports.TicketingTicketUpdateRequestDto4$ = TicketingTicketUpdateRequestDto4$ = {}));
function ticketingTicketUpdateRequestDto4ToJSON(ticketingTicketUpdateRequestDto4) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDto4$outboundSchema.parse(ticketingTicketUpdateRequestDto4));
}
exports.ticketingTicketUpdateRequestDto4ToJSON = ticketingTicketUpdateRequestDto4ToJSON;
function ticketingTicketUpdateRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingTicketUpdateRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingTicketUpdateRequestDto4' from JSON`);
}
exports.ticketingTicketUpdateRequestDto4FromJSON = ticketingTicketUpdateRequestDto4FromJSON;
/** @internal */
exports.TicketingTicketUpdateRequestDtoSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.TicketingTicketUpdateRequestDto4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.TicketingTicketUpdateRequestDtoSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.TicketingTicketUpdateRequestDto4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDtoSourceValue$;
(function (TicketingTicketUpdateRequestDtoSourceValue$) {
    /** @deprecated use `TicketingTicketUpdateRequestDtoSourceValue$inboundSchema` instead. */
    TicketingTicketUpdateRequestDtoSourceValue$.inboundSchema = exports.TicketingTicketUpdateRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDtoSourceValue$outboundSchema` instead. */
    TicketingTicketUpdateRequestDtoSourceValue$.outboundSchema = exports.TicketingTicketUpdateRequestDtoSourceValue$outboundSchema;
})(TicketingTicketUpdateRequestDtoSourceValue$ || (exports.TicketingTicketUpdateRequestDtoSourceValue$ = TicketingTicketUpdateRequestDtoSourceValue$ = {}));
function ticketingTicketUpdateRequestDtoSourceValueToJSON(ticketingTicketUpdateRequestDtoSourceValue) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoSourceValue$outboundSchema.parse(ticketingTicketUpdateRequestDtoSourceValue));
}
exports.ticketingTicketUpdateRequestDtoSourceValueToJSON = ticketingTicketUpdateRequestDtoSourceValueToJSON;
function ticketingTicketUpdateRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingTicketUpdateRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingTicketUpdateRequestDtoSourceValue' from JSON`);
}
exports.ticketingTicketUpdateRequestDtoSourceValueFromJSON = ticketingTicketUpdateRequestDtoSourceValueFromJSON;
/** @internal */
exports.TicketingTicketUpdateRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(TicketingTicketUpdateRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.TicketingTicketUpdateRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(TicketingTicketUpdateRequestDtoValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDtoValue$;
(function (TicketingTicketUpdateRequestDtoValue$) {
    /** @deprecated use `TicketingTicketUpdateRequestDtoValue$inboundSchema` instead. */
    TicketingTicketUpdateRequestDtoValue$.inboundSchema = exports.TicketingTicketUpdateRequestDtoValue$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDtoValue$outboundSchema` instead. */
    TicketingTicketUpdateRequestDtoValue$.outboundSchema = exports.TicketingTicketUpdateRequestDtoValue$outboundSchema;
})(TicketingTicketUpdateRequestDtoValue$ || (exports.TicketingTicketUpdateRequestDtoValue$ = TicketingTicketUpdateRequestDtoValue$ = {}));
/** @internal */
exports.TicketingTicketUpdateRequestDtoPriority$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    source_value: z.nullable(z.union([
        z.lazy(() => exports.TicketingTicketUpdateRequestDto4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.TicketingTicketUpdateRequestDtoValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.TicketingTicketUpdateRequestDto4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.TicketingTicketUpdateRequestDtoValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDtoPriority$;
(function (TicketingTicketUpdateRequestDtoPriority$) {
    /** @deprecated use `TicketingTicketUpdateRequestDtoPriority$inboundSchema` instead. */
    TicketingTicketUpdateRequestDtoPriority$.inboundSchema = exports.TicketingTicketUpdateRequestDtoPriority$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDtoPriority$outboundSchema` instead. */
    TicketingTicketUpdateRequestDtoPriority$.outboundSchema = exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema;
})(TicketingTicketUpdateRequestDtoPriority$ || (exports.TicketingTicketUpdateRequestDtoPriority$ = TicketingTicketUpdateRequestDtoPriority$ = {}));
function ticketingTicketUpdateRequestDtoPriorityToJSON(ticketingTicketUpdateRequestDtoPriority) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema.parse(ticketingTicketUpdateRequestDtoPriority));
}
exports.ticketingTicketUpdateRequestDtoPriorityToJSON = ticketingTicketUpdateRequestDtoPriorityToJSON;
function ticketingTicketUpdateRequestDtoPriorityFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingTicketUpdateRequestDtoPriority$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingTicketUpdateRequestDtoPriority' from JSON`);
}
exports.ticketingTicketUpdateRequestDtoPriorityFromJSON = ticketingTicketUpdateRequestDtoPriorityFromJSON;
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemas4$inboundSchema = z.object({});
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDtoSchemas4$;
(function (TicketingTicketUpdateRequestDtoSchemas4$) {
    /** @deprecated use `TicketingTicketUpdateRequestDtoSchemas4$inboundSchema` instead. */
    TicketingTicketUpdateRequestDtoSchemas4$.inboundSchema = exports.TicketingTicketUpdateRequestDtoSchemas4$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDtoSchemas4$outboundSchema` instead. */
    TicketingTicketUpdateRequestDtoSchemas4$.outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema;
})(TicketingTicketUpdateRequestDtoSchemas4$ || (exports.TicketingTicketUpdateRequestDtoSchemas4$ = TicketingTicketUpdateRequestDtoSchemas4$ = {}));
function ticketingTicketUpdateRequestDtoSchemas4ToJSON(ticketingTicketUpdateRequestDtoSchemas4) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema.parse(ticketingTicketUpdateRequestDtoSchemas4));
}
exports.ticketingTicketUpdateRequestDtoSchemas4ToJSON = ticketingTicketUpdateRequestDtoSchemas4ToJSON;
function ticketingTicketUpdateRequestDtoSchemas4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingTicketUpdateRequestDtoSchemas4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingTicketUpdateRequestDtoSchemas4' from JSON`);
}
exports.ticketingTicketUpdateRequestDtoSchemas4FromJSON = ticketingTicketUpdateRequestDtoSchemas4FromJSON;
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$inboundSchema = z.union([
    z.lazy(() => exports.TicketingTicketUpdateRequestDtoSchemas4$inboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$outboundSchema = z.union([
    z.lazy(() => exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema),
    z.string(),
    z.number(),
    z.boolean(),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDtoSchemasSourceValue$;
(function (TicketingTicketUpdateRequestDtoSchemasSourceValue$) {
    /** @deprecated use `TicketingTicketUpdateRequestDtoSchemasSourceValue$inboundSchema` instead. */
    TicketingTicketUpdateRequestDtoSchemasSourceValue$.inboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDtoSchemasSourceValue$outboundSchema` instead. */
    TicketingTicketUpdateRequestDtoSchemasSourceValue$.outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$outboundSchema;
})(TicketingTicketUpdateRequestDtoSchemasSourceValue$ || (exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$ = TicketingTicketUpdateRequestDtoSchemasSourceValue$ = {}));
function ticketingTicketUpdateRequestDtoSchemasSourceValueToJSON(ticketingTicketUpdateRequestDtoSchemasSourceValue) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$outboundSchema.parse(ticketingTicketUpdateRequestDtoSchemasSourceValue));
}
exports.ticketingTicketUpdateRequestDtoSchemasSourceValueToJSON = ticketingTicketUpdateRequestDtoSchemasSourceValueToJSON;
function ticketingTicketUpdateRequestDtoSchemasSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingTicketUpdateRequestDtoSchemasSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingTicketUpdateRequestDtoSchemasSourceValue' from JSON`);
}
exports.ticketingTicketUpdateRequestDtoSchemasSourceValueFromJSON = ticketingTicketUpdateRequestDtoSchemasSourceValueFromJSON;
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemasValue$inboundSchema = z
    .union([
    z.nativeEnum(TicketingTicketUpdateRequestDtoSchemasValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.TicketingTicketUpdateRequestDtoSchemasValue$outboundSchema = z.union([
    z.nativeEnum(TicketingTicketUpdateRequestDtoSchemasValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDtoSchemasValue$;
(function (TicketingTicketUpdateRequestDtoSchemasValue$) {
    /** @deprecated use `TicketingTicketUpdateRequestDtoSchemasValue$inboundSchema` instead. */
    TicketingTicketUpdateRequestDtoSchemasValue$.inboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasValue$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDtoSchemasValue$outboundSchema` instead. */
    TicketingTicketUpdateRequestDtoSchemasValue$.outboundSchema = exports.TicketingTicketUpdateRequestDtoSchemasValue$outboundSchema;
})(TicketingTicketUpdateRequestDtoSchemasValue$ || (exports.TicketingTicketUpdateRequestDtoSchemasValue$ = TicketingTicketUpdateRequestDtoSchemasValue$ = {}));
/** @internal */
exports.TicketingTicketUpdateRequestDtoType$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.lazy(() => exports.TicketingTicketUpdateRequestDtoSchemas4$inboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.TicketingTicketUpdateRequestDtoSchemasValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.TicketingTicketUpdateRequestDtoType$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.lazy(() => exports.TicketingTicketUpdateRequestDtoSchemas4$outboundSchema),
        z.string(),
        z.number(),
        z.boolean(),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.TicketingTicketUpdateRequestDtoSchemasValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDtoType$;
(function (TicketingTicketUpdateRequestDtoType$) {
    /** @deprecated use `TicketingTicketUpdateRequestDtoType$inboundSchema` instead. */
    TicketingTicketUpdateRequestDtoType$.inboundSchema = exports.TicketingTicketUpdateRequestDtoType$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDtoType$outboundSchema` instead. */
    TicketingTicketUpdateRequestDtoType$.outboundSchema = exports.TicketingTicketUpdateRequestDtoType$outboundSchema;
})(TicketingTicketUpdateRequestDtoType$ || (exports.TicketingTicketUpdateRequestDtoType$ = TicketingTicketUpdateRequestDtoType$ = {}));
function ticketingTicketUpdateRequestDtoTypeToJSON(ticketingTicketUpdateRequestDtoType) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoType$outboundSchema.parse(ticketingTicketUpdateRequestDtoType));
}
exports.ticketingTicketUpdateRequestDtoTypeToJSON = ticketingTicketUpdateRequestDtoTypeToJSON;
function ticketingTicketUpdateRequestDtoTypeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingTicketUpdateRequestDtoType$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingTicketUpdateRequestDtoType' from JSON`);
}
exports.ticketingTicketUpdateRequestDtoTypeFromJSON = ticketingTicketUpdateRequestDtoTypeFromJSON;
/** @internal */
exports.TicketingTicketUpdateRequestDtoStatus$inboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoType$inboundSchema)).optional(),
});
/** @internal */
exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema = z.object({
    id: z.nullable(z.string()).optional(),
    name: z.nullable(z.string()).optional(),
    type: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoType$outboundSchema)).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDtoStatus$;
(function (TicketingTicketUpdateRequestDtoStatus$) {
    /** @deprecated use `TicketingTicketUpdateRequestDtoStatus$inboundSchema` instead. */
    TicketingTicketUpdateRequestDtoStatus$.inboundSchema = exports.TicketingTicketUpdateRequestDtoStatus$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDtoStatus$outboundSchema` instead. */
    TicketingTicketUpdateRequestDtoStatus$.outboundSchema = exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema;
})(TicketingTicketUpdateRequestDtoStatus$ || (exports.TicketingTicketUpdateRequestDtoStatus$ = TicketingTicketUpdateRequestDtoStatus$ = {}));
function ticketingTicketUpdateRequestDtoStatusToJSON(ticketingTicketUpdateRequestDtoStatus) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema.parse(ticketingTicketUpdateRequestDtoStatus));
}
exports.ticketingTicketUpdateRequestDtoStatusToJSON = ticketingTicketUpdateRequestDtoStatusToJSON;
function ticketingTicketUpdateRequestDtoStatusFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingTicketUpdateRequestDtoStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingTicketUpdateRequestDtoStatus' from JSON`);
}
exports.ticketingTicketUpdateRequestDtoStatusFromJSON = ticketingTicketUpdateRequestDtoStatusFromJSON;
/** @internal */
exports.TicketingTicketUpdateRequestDto$inboundSchema = z.object({
    assignees: z.nullable(z.array(z.string())).optional(),
    collections: z.nullable(z.array(z.string())).optional(),
    content: z.nullable(z.array(ticketingcontent_js_1.TicketingContent$inboundSchema)).optional(),
    parent_id: z.nullable(z.string()).optional(),
    priority: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoPriority$inboundSchema)).optional(),
    reporters: z.nullable(z.array(z.string())).optional(),
    status: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoStatus$inboundSchema)).optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    title: z.nullable(z.string()).optional(),
    unified_custom_fields: z.nullable(z.record(z.any())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "parent_id": "parentId",
        "unified_custom_fields": "unifiedCustomFields",
    });
});
/** @internal */
exports.TicketingTicketUpdateRequestDto$outboundSchema = z.object({
    assignees: z.nullable(z.array(z.string())).optional(),
    collections: z.nullable(z.array(z.string())).optional(),
    content: z.nullable(z.array(ticketingcontent_js_1.TicketingContent$outboundSchema)).optional(),
    parentId: z.nullable(z.string()).optional(),
    priority: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoPriority$outboundSchema)).optional(),
    reporters: z.nullable(z.array(z.string())).optional(),
    status: z.nullable(z.lazy(() => exports.TicketingTicketUpdateRequestDtoStatus$outboundSchema)).optional(),
    tags: z.nullable(z.array(z.string())).optional(),
    title: z.nullable(z.string()).optional(),
    unifiedCustomFields: z.nullable(z.record(z.any())).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        parentId: "parent_id",
        unifiedCustomFields: "unified_custom_fields",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var TicketingTicketUpdateRequestDto$;
(function (TicketingTicketUpdateRequestDto$) {
    /** @deprecated use `TicketingTicketUpdateRequestDto$inboundSchema` instead. */
    TicketingTicketUpdateRequestDto$.inboundSchema = exports.TicketingTicketUpdateRequestDto$inboundSchema;
    /** @deprecated use `TicketingTicketUpdateRequestDto$outboundSchema` instead. */
    TicketingTicketUpdateRequestDto$.outboundSchema = exports.TicketingTicketUpdateRequestDto$outboundSchema;
})(TicketingTicketUpdateRequestDto$ || (exports.TicketingTicketUpdateRequestDto$ = TicketingTicketUpdateRequestDto$ = {}));
function ticketingTicketUpdateRequestDtoToJSON(ticketingTicketUpdateRequestDto) {
    return JSON.stringify(exports.TicketingTicketUpdateRequestDto$outboundSchema.parse(ticketingTicketUpdateRequestDto));
}
exports.ticketingTicketUpdateRequestDtoToJSON = ticketingTicketUpdateRequestDtoToJSON;
function ticketingTicketUpdateRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TicketingTicketUpdateRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TicketingTicketUpdateRequestDto' from JSON`);
}
exports.ticketingTicketUpdateRequestDtoFromJSON = ticketingTicketUpdateRequestDtoFromJSON;
//# sourceMappingURL=ticketingticketupdaterequestdto.js.map