"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.RetrieveResponseResponseBody$inboundSchema = exports.RetrieveResponseTruncation$inboundSchema = exports.RetrieveResponseStatus$inboundSchema = exports.RetrieveResponseServiceTier$inboundSchema = exports.RetrieveResponseRequest$outboundSchema = exports.RetrieveResponseTruncation = exports.RetrieveResponseStatus = exports.RetrieveResponseServiceTier = void 0;
exports.retrieveResponseRequestToJSON = retrieveResponseRequestToJSON;
exports.retrieveResponseResponseBodyFromJSON = retrieveResponseResponseBodyFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
exports.RetrieveResponseServiceTier = {
    Auto: "auto",
    Default: "default",
    Flex: "flex",
    Priority: "priority",
};
exports.RetrieveResponseStatus = {
    Queued: "queued",
    InProgress: "in_progress",
    Completed: "completed",
    Failed: "failed",
    Incomplete: "incomplete",
    RequiresAction: "requires_action",
};
exports.RetrieveResponseTruncation = {
    Disabled: "disabled",
    Auto: "auto",
};
/** @internal */
exports.RetrieveResponseRequest$outboundSchema = z.object({
    responseId: z.string(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        responseId: "response_id",
    });
});
function retrieveResponseRequestToJSON(retrieveResponseRequest) {
    return JSON.stringify(exports.RetrieveResponseRequest$outboundSchema.parse(retrieveResponseRequest));
}
/** @internal */
exports.RetrieveResponseServiceTier$inboundSchema = z.nativeEnum(exports.RetrieveResponseServiceTier);
/** @internal */
exports.RetrieveResponseStatus$inboundSchema = z.nativeEnum(exports.RetrieveResponseStatus);
/** @internal */
exports.RetrieveResponseTruncation$inboundSchema = z.nativeEnum(exports.RetrieveResponseTruncation);
/** @internal */
exports.RetrieveResponseResponseBody$inboundSchema = z.object({
    background: z.boolean(),
    completed_at: z.nullable(z.number().int()),
    conversation: components.ConversationParam$inboundSchema.optional(),
    created_at: z.number().int(),
    error: components.ResponseError$inboundSchema,
    frequency_penalty: z.number(),
    id: z.string(),
    incomplete_details: components.IncompleteDetails$inboundSchema,
    input: z.nullable(z.array(z.any())),
    instructions: z.nullable(z.string()),
    max_output_tokens: z.nullable(z.number().int()),
    max_tool_calls: z.nullable(z.number().int()),
    memory: components.MemoryParam$inboundSchema.optional(),
    metadata: z.record(z.string()),
    model: z.string(),
    object: z.string(),
    output: z.nullable(z.array(z.any())),
    parallel_tool_calls: z.boolean(),
    presence_penalty: z.number(),
    previous_response_id: z.nullable(z.string()),
    prompt_cache_key: z.nullable(z.string()),
    prompt_cache_retention: z.nullable(z.string()),
    reasoning: components.Reasoning$inboundSchema,
    safety_identifier: z.nullable(z.string()),
    service_tier: exports.RetrieveResponseServiceTier$inboundSchema,
    status: exports.RetrieveResponseStatus$inboundSchema,
    store: z.boolean(),
    temperature: z.number(),
    text: z.any().optional(),
    tool_choice: z.any().optional(),
    tools: z.nullable(z.array(z.any())),
    top_logprobs: z.number().int(),
    top_p: z.number(),
    truncation: exports.RetrieveResponseTruncation$inboundSchema,
    usage: components.PublicUsage$inboundSchema,
    user: z.nullable(z.string()),
    variables: z.record(z.any()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "completed_at": "completedAt",
        "created_at": "createdAt",
        "frequency_penalty": "frequencyPenalty",
        "incomplete_details": "incompleteDetails",
        "max_output_tokens": "maxOutputTokens",
        "max_tool_calls": "maxToolCalls",
        "parallel_tool_calls": "parallelToolCalls",
        "presence_penalty": "presencePenalty",
        "previous_response_id": "previousResponseId",
        "prompt_cache_key": "promptCacheKey",
        "prompt_cache_retention": "promptCacheRetention",
        "safety_identifier": "safetyIdentifier",
        "service_tier": "serviceTier",
        "tool_choice": "toolChoice",
        "top_logprobs": "topLogprobs",
        "top_p": "topP",
    });
});
function retrieveResponseResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveResponseResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveResponseResponseBody' from JSON`);
}
//# sourceMappingURL=retrieveresponse.js.map