/*
 * 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 { AccessTokenInfo$inboundSchema, AccessTokenInfo$outboundSchema, } from "./accesstokeninfo.js";
/** @internal */
export const ListAccessTokensResponse$inboundSchema = z.object({
    access_tokens: z.array(AccessTokenInfo$inboundSchema),
    has_more: z.boolean(),
}).transform((v) => {
    return remap$(v, {
        "access_tokens": "accessTokens",
        "has_more": "hasMore",
    });
});
/** @internal */
export const ListAccessTokensResponse$outboundSchema = z.object({
    accessTokens: z.array(AccessTokenInfo$outboundSchema),
    hasMore: z.boolean(),
}).transform((v) => {
    return remap$(v, {
        accessTokens: "access_tokens",
        hasMore: "has_more",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListAccessTokensResponse$;
(function (ListAccessTokensResponse$) {
    /** @deprecated use `ListAccessTokensResponse$inboundSchema` instead. */
    ListAccessTokensResponse$.inboundSchema = ListAccessTokensResponse$inboundSchema;
    /** @deprecated use `ListAccessTokensResponse$outboundSchema` instead. */
    ListAccessTokensResponse$.outboundSchema = ListAccessTokensResponse$outboundSchema;
})(ListAccessTokensResponse$ || (ListAccessTokensResponse$ = {}));
export function listAccessTokensResponseToJSON(listAccessTokensResponse) {
    return JSON.stringify(ListAccessTokensResponse$outboundSchema.parse(listAccessTokensResponse));
}
export function listAccessTokensResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListAccessTokensResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAccessTokensResponse' from JSON`);
}
//# sourceMappingURL=listaccesstokensresponse.js.map