/*
 * 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 AsyncOperationAcceptedResponseData$inboundSchema = z.object({
    task_id: z.string(),
    status: TaskStatus$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "task_id": "taskId",
    });
});
/** @internal */
export const AsyncOperationAcceptedResponseData$outboundSchema = z.object({
    taskId: z.string(),
    status: TaskStatus$outboundSchema,
}).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 AsyncOperationAcceptedResponseData$;
(function (AsyncOperationAcceptedResponseData$) {
    /** @deprecated use `AsyncOperationAcceptedResponseData$inboundSchema` instead. */
    AsyncOperationAcceptedResponseData$.inboundSchema = AsyncOperationAcceptedResponseData$inboundSchema;
    /** @deprecated use `AsyncOperationAcceptedResponseData$outboundSchema` instead. */
    AsyncOperationAcceptedResponseData$.outboundSchema = AsyncOperationAcceptedResponseData$outboundSchema;
})(AsyncOperationAcceptedResponseData$ || (AsyncOperationAcceptedResponseData$ = {}));
export function asyncOperationAcceptedResponseDataToJSON(asyncOperationAcceptedResponseData) {
    return JSON.stringify(AsyncOperationAcceptedResponseData$outboundSchema.parse(asyncOperationAcceptedResponseData));
}
export function asyncOperationAcceptedResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AsyncOperationAcceptedResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AsyncOperationAcceptedResponseData' from JSON`);
}
/** @internal */
export const AsyncOperationAcceptedResponse$inboundSchema = z.object({
    data: z.lazy(() => AsyncOperationAcceptedResponseData$inboundSchema)
        .optional(),
    request_id: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AsyncOperationAcceptedResponse$outboundSchema = z.object({
    data: z.lazy(() => AsyncOperationAcceptedResponseData$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 AsyncOperationAcceptedResponse$;
(function (AsyncOperationAcceptedResponse$) {
    /** @deprecated use `AsyncOperationAcceptedResponse$inboundSchema` instead. */
    AsyncOperationAcceptedResponse$.inboundSchema = AsyncOperationAcceptedResponse$inboundSchema;
    /** @deprecated use `AsyncOperationAcceptedResponse$outboundSchema` instead. */
    AsyncOperationAcceptedResponse$.outboundSchema = AsyncOperationAcceptedResponse$outboundSchema;
})(AsyncOperationAcceptedResponse$ || (AsyncOperationAcceptedResponse$ = {}));
export function asyncOperationAcceptedResponseToJSON(asyncOperationAcceptedResponse) {
    return JSON.stringify(AsyncOperationAcceptedResponse$outboundSchema.parse(asyncOperationAcceptedResponse));
}
export function asyncOperationAcceptedResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AsyncOperationAcceptedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AsyncOperationAcceptedResponse' from JSON`);
}
//# sourceMappingURL=asyncoperationacceptedresponse.js.map