/*
 * 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";
/** @internal */
export const ListAccessTokensRequest$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 ListAccessTokensRequest$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 ListAccessTokensRequest$;
(function (ListAccessTokensRequest$) {
    /** @deprecated use `ListAccessTokensRequest$inboundSchema` instead. */
    ListAccessTokensRequest$.inboundSchema = ListAccessTokensRequest$inboundSchema;
    /** @deprecated use `ListAccessTokensRequest$outboundSchema` instead. */
    ListAccessTokensRequest$.outboundSchema = ListAccessTokensRequest$outboundSchema;
})(ListAccessTokensRequest$ || (ListAccessTokensRequest$ = {}));
export function listAccessTokensRequestToJSON(listAccessTokensRequest) {
    return JSON.stringify(ListAccessTokensRequest$outboundSchema.parse(listAccessTokensRequest));
}
export function listAccessTokensRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListAccessTokensRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAccessTokensRequest' from JSON`);
}
//# sourceMappingURL=listaccesstokens.js.map