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