/*
 * 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";
/** @internal */
export const ListBasinsRequest$inboundSchema = z.object({
    prefix: z.string().default(""),
    start_after: z.string().default(""),
    limit: z.number().int().default(1000),
}).transform((v) => {
    return remap$(v, {
        "start_after": "startAfter",
    });
});
/** @internal */
export const ListBasinsRequest$outboundSchema = z.object({
    prefix: z.string().default(""),
    startAfter: z.string().default(""),
    limit: z.number().int().default(1000),
}).transform((v) => {
    return remap$(v, {
        startAfter: "start_after",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListBasinsRequest$;
(function (ListBasinsRequest$) {
    /** @deprecated use `ListBasinsRequest$inboundSchema` instead. */
    ListBasinsRequest$.inboundSchema = ListBasinsRequest$inboundSchema;
    /** @deprecated use `ListBasinsRequest$outboundSchema` instead. */
    ListBasinsRequest$.outboundSchema = ListBasinsRequest$outboundSchema;
})(ListBasinsRequest$ || (ListBasinsRequest$ = {}));
export function listBasinsRequestToJSON(listBasinsRequest) {
    return JSON.stringify(ListBasinsRequest$outboundSchema.parse(listBasinsRequest));
}
export function listBasinsRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListBasinsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListBasinsRequest' from JSON`);
}
/** @internal */
export const ListBasinsResponse$inboundSchema = z.object({
    Result: components.ListBasinsResponse$inboundSchema,
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const ListBasinsResponse$outboundSchema = z.object({
    result: components.ListBasinsResponse$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 ListBasinsResponse$;
(function (ListBasinsResponse$) {
    /** @deprecated use `ListBasinsResponse$inboundSchema` instead. */
    ListBasinsResponse$.inboundSchema = ListBasinsResponse$inboundSchema;
    /** @deprecated use `ListBasinsResponse$outboundSchema` instead. */
    ListBasinsResponse$.outboundSchema = ListBasinsResponse$outboundSchema;
})(ListBasinsResponse$ || (ListBasinsResponse$ = {}));
export function listBasinsResponseToJSON(listBasinsResponse) {
    return JSON.stringify(ListBasinsResponse$outboundSchema.parse(listBasinsResponse));
}
export function listBasinsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListBasinsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListBasinsResponse' from JSON`);
}
//# sourceMappingURL=listbasins.js.map