/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { TaskStatus$inboundSchema, TaskStatus$outboundSchema, } from "./taskstatus.js";
/** @internal */
export const GetTaskStatusResponseData$inboundSchema = z.object({
    task_id: z.string().optional(),
    status: TaskStatus$inboundSchema.optional(),
}).transform((v) => {
    return remap$(v, {
        "task_id": "taskId",
    });
});
/** @internal */
export const GetTaskStatusResponseData$outboundSchema = z.object({
    taskId: z.string().optional(),
    status: TaskStatus$outboundSchema.optional(),
}).transform((v) => {
    return remap$(v, {
        taskId: "task_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetTaskStatusResponseData$;
(function (GetTaskStatusResponseData$) {
    /** @deprecated use `GetTaskStatusResponseData$inboundSchema` instead. */
    GetTaskStatusResponseData$.inboundSchema = GetTaskStatusResponseData$inboundSchema;
    /** @deprecated use `GetTaskStatusResponseData$outboundSchema` instead. */
    GetTaskStatusResponseData$.outboundSchema = GetTaskStatusResponseData$outboundSchema;
})(GetTaskStatusResponseData$ || (GetTaskStatusResponseData$ = {}));
export function getTaskStatusResponseDataToJSON(getTaskStatusResponseData) {
    return JSON.stringify(GetTaskStatusResponseData$outboundSchema.parse(getTaskStatusResponseData));
}
export function getTaskStatusResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetTaskStatusResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTaskStatusResponseData' from JSON`);
}
/** @internal */
export const GetTaskStatusResponse$inboundSchema = z.object({
    data: z.lazy(() => GetTaskStatusResponseData$inboundSchema).optional(),
    request_id: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const GetTaskStatusResponse$outboundSchema = z.object({
    data: z.lazy(() => GetTaskStatusResponseData$outboundSchema).optional(),
    requestId: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        requestId: "request_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetTaskStatusResponse$;
(function (GetTaskStatusResponse$) {
    /** @deprecated use `GetTaskStatusResponse$inboundSchema` instead. */
    GetTaskStatusResponse$.inboundSchema = GetTaskStatusResponse$inboundSchema;
    /** @deprecated use `GetTaskStatusResponse$outboundSchema` instead. */
    GetTaskStatusResponse$.outboundSchema = GetTaskStatusResponse$outboundSchema;
})(GetTaskStatusResponse$ || (GetTaskStatusResponse$ = {}));
export function getTaskStatusResponseToJSON(getTaskStatusResponse) {
    return JSON.stringify(GetTaskStatusResponse$outboundSchema.parse(getTaskStatusResponse));
}
export function getTaskStatusResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetTaskStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetTaskStatusResponse' from JSON`);
}
//# sourceMappingURL=gettaskstatusresponse.js.map