/*
 * 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 IssueAccessTokenResponse$inboundSchema = z.object({
    access_token: z.string(),
}).transform((v) => {
    return remap$(v, {
        "access_token": "accessToken",
    });
});
/** @internal */
export const IssueAccessTokenResponse$outboundSchema = z.object({
    accessToken: z.string(),
}).transform((v) => {
    return remap$(v, {
        accessToken: "access_token",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var IssueAccessTokenResponse$;
(function (IssueAccessTokenResponse$) {
    /** @deprecated use `IssueAccessTokenResponse$inboundSchema` instead. */
    IssueAccessTokenResponse$.inboundSchema = IssueAccessTokenResponse$inboundSchema;
    /** @deprecated use `IssueAccessTokenResponse$outboundSchema` instead. */
    IssueAccessTokenResponse$.outboundSchema = IssueAccessTokenResponse$outboundSchema;
})(IssueAccessTokenResponse$ || (IssueAccessTokenResponse$ = {}));
export function issueAccessTokenResponseToJSON(issueAccessTokenResponse) {
    return JSON.stringify(IssueAccessTokenResponse$outboundSchema.parse(issueAccessTokenResponse));
}
export function issueAccessTokenResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => IssueAccessTokenResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IssueAccessTokenResponse' from JSON`);
}
//# sourceMappingURL=issueaccesstokenresponse.js.map