"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.AgentsApiV1ConversationsGetResponseV1ConversationsGet$ = exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$outboundSchema = exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$inboundSchema = exports.AgentsApiV1ConversationsGetRequest$ = exports.AgentsApiV1ConversationsGetRequest$outboundSchema = exports.AgentsApiV1ConversationsGetRequest$inboundSchema = void 0;
exports.agentsApiV1ConversationsGetRequestToJSON = agentsApiV1ConversationsGetRequestToJSON;
exports.agentsApiV1ConversationsGetRequestFromJSON = agentsApiV1ConversationsGetRequestFromJSON;
exports.agentsApiV1ConversationsGetResponseV1ConversationsGetToJSON = agentsApiV1ConversationsGetResponseV1ConversationsGetToJSON;
exports.agentsApiV1ConversationsGetResponseV1ConversationsGetFromJSON = agentsApiV1ConversationsGetResponseV1ConversationsGetFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.AgentsApiV1ConversationsGetRequest$inboundSchema = z.object({
    conversation_id: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "conversation_id": "conversationId",
    });
});
/** @internal */
exports.AgentsApiV1ConversationsGetRequest$outboundSchema = z.object({
    conversationId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        conversationId: "conversation_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AgentsApiV1ConversationsGetRequest$;
(function (AgentsApiV1ConversationsGetRequest$) {
    /** @deprecated use `AgentsApiV1ConversationsGetRequest$inboundSchema` instead. */
    AgentsApiV1ConversationsGetRequest$.inboundSchema = exports.AgentsApiV1ConversationsGetRequest$inboundSchema;
    /** @deprecated use `AgentsApiV1ConversationsGetRequest$outboundSchema` instead. */
    AgentsApiV1ConversationsGetRequest$.outboundSchema = exports.AgentsApiV1ConversationsGetRequest$outboundSchema;
})(AgentsApiV1ConversationsGetRequest$ || (exports.AgentsApiV1ConversationsGetRequest$ = AgentsApiV1ConversationsGetRequest$ = {}));
function agentsApiV1ConversationsGetRequestToJSON(agentsApiV1ConversationsGetRequest) {
    return JSON.stringify(exports.AgentsApiV1ConversationsGetRequest$outboundSchema.parse(agentsApiV1ConversationsGetRequest));
}
function agentsApiV1ConversationsGetRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentsApiV1ConversationsGetRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentsApiV1ConversationsGetRequest' from JSON`);
}
/** @internal */
exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$inboundSchema = z.union([
    components.AgentConversation$inboundSchema,
    components.ModelConversation$inboundSchema,
]);
/** @internal */
exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$outboundSchema = z.union([
    components.AgentConversation$outboundSchema,
    components.ModelConversation$outboundSchema,
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AgentsApiV1ConversationsGetResponseV1ConversationsGet$;
(function (AgentsApiV1ConversationsGetResponseV1ConversationsGet$) {
    /** @deprecated use `AgentsApiV1ConversationsGetResponseV1ConversationsGet$inboundSchema` instead. */
    AgentsApiV1ConversationsGetResponseV1ConversationsGet$.inboundSchema = exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$inboundSchema;
    /** @deprecated use `AgentsApiV1ConversationsGetResponseV1ConversationsGet$outboundSchema` instead. */
    AgentsApiV1ConversationsGetResponseV1ConversationsGet$.outboundSchema = exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$outboundSchema;
})(AgentsApiV1ConversationsGetResponseV1ConversationsGet$ || (exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$ = AgentsApiV1ConversationsGetResponseV1ConversationsGet$ = {}));
function agentsApiV1ConversationsGetResponseV1ConversationsGetToJSON(agentsApiV1ConversationsGetResponseV1ConversationsGet) {
    return JSON.stringify(exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$outboundSchema.parse(agentsApiV1ConversationsGetResponseV1ConversationsGet));
}
function agentsApiV1ConversationsGetResponseV1ConversationsGetFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentsApiV1ConversationsGetResponseV1ConversationsGet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentsApiV1ConversationsGetResponseV1ConversationsGet' from JSON`);
}
//# sourceMappingURL=agentsapiv1conversationsget.js.map