/*
 * 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 ListStreamsServerList = [
    /**
     * Endpoint for the basin
     */
    "https://{basin}.b.aws.s2.dev/v1",
];
/** @internal */
export const ListStreamsRequest$inboundSchema = z.object({
    prefix: z.string().default(""),
    start_after: z.string().default(""),
    limit: z.number().int().default(1000),
    "s2-basin": z.string(),
}).transform((v) => {
    return remap$(v, {
        "start_after": "startAfter",
        "s2-basin": "s2Basin",
    });
});
/** @internal */
export const ListStreamsRequest$outboundSchema = z.object({
    prefix: z.string().default(""),
    startAfter: z.string().default(""),
    limit: z.number().int().default(1000),
    s2Basin: z.string(),
}).transform((v) => {
    return remap$(v, {
        startAfter: "start_after",
        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 ListStreamsRequest$;
(function (ListStreamsRequest$) {
    /** @deprecated use `ListStreamsRequest$inboundSchema` instead. */
    ListStreamsRequest$.inboundSchema = ListStreamsRequest$inboundSchema;
    /** @deprecated use `ListStreamsRequest$outboundSchema` instead. */
    ListStreamsRequest$.outboundSchema = ListStreamsRequest$outboundSchema;
})(ListStreamsRequest$ || (ListStreamsRequest$ = {}));
export function listStreamsRequestToJSON(listStreamsRequest) {
    return JSON.stringify(ListStreamsRequest$outboundSchema.parse(listStreamsRequest));
}
export function listStreamsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListStreamsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListStreamsRequest' from JSON`);
}
/** @internal */
export const ListStreamsResponse$inboundSchema = z.object({
    Result: components.ListStreamsResponse$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const ListStreamsResponse$outboundSchema = z.object({
    result: components.ListStreamsResponse$outboundSchema,
}).transform((v) => {
    return remap$(v, {
        result: "Result",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListStreamsResponse$;
(function (ListStreamsResponse$) {
    /** @deprecated use `ListStreamsResponse$inboundSchema` instead. */
    ListStreamsResponse$.inboundSchema = ListStreamsResponse$inboundSchema;
    /** @deprecated use `ListStreamsResponse$outboundSchema` instead. */
    ListStreamsResponse$.outboundSchema = ListStreamsResponse$outboundSchema;
})(ListStreamsResponse$ || (ListStreamsResponse$ = {}));
export function listStreamsResponseToJSON(listStreamsResponse) {
    return JSON.stringify(ListStreamsResponse$outboundSchema.parse(listStreamsResponse));
}
export function listStreamsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListStreamsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListStreamsResponse' from JSON`);
}
//# sourceMappingURL=liststreams.js.map