/*
 * 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";
export const CheckTailServerList = [
    /**
     * Endpoint for the basin
     */
    "https://{basin}.b.aws.s2.dev/v1",
];
/** @internal */
export const CheckTailRequest$inboundSchema = z.object({
    stream: z.string(),
    "s2-basin": z.string(),
}).transform((v) => {
    return remap$(v, {
        "s2-basin": "s2Basin",
    });
});
/** @internal */
export const CheckTailRequest$outboundSchema = z.object({
    stream: z.string(),
    s2Basin: z.string(),
}).transform((v) => {
    return remap$(v, {
        s2Basin: "s2-basin",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CheckTailRequest$;
(function (CheckTailRequest$) {
    /** @deprecated use `CheckTailRequest$inboundSchema` instead. */
    CheckTailRequest$.inboundSchema = CheckTailRequest$inboundSchema;
    /** @deprecated use `CheckTailRequest$outboundSchema` instead. */
    CheckTailRequest$.outboundSchema = CheckTailRequest$outboundSchema;
})(CheckTailRequest$ || (CheckTailRequest$ = {}));
export function checkTailRequestToJSON(checkTailRequest) {
    return JSON.stringify(CheckTailRequest$outboundSchema.parse(checkTailRequest));
}
export function checkTailRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CheckTailRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CheckTailRequest' from JSON`);
}
//# sourceMappingURL=checktail.js.map