/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../lib/schemas.js";
/** @internal */
export const GetAliasRequest$inboundSchema = z.object({
    from: z.number().optional(),
    idOrAlias: z.string(),
    projectId: z.string().optional(),
    since: z.number().optional(),
    until: z.number().optional(),
    teamId: z.string().optional(),
    slug: z.string().optional(),
});
/** @internal */
export const GetAliasRequest$outboundSchema = z.object({
    from: z.number().optional(),
    idOrAlias: z.string(),
    projectId: z.string().optional(),
    since: z.number().optional(),
    until: z.number().optional(),
    teamId: z.string().optional(),
    slug: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetAliasRequest$;
(function (GetAliasRequest$) {
    /** @deprecated use `GetAliasRequest$inboundSchema` instead. */
    GetAliasRequest$.inboundSchema = GetAliasRequest$inboundSchema;
    /** @deprecated use `GetAliasRequest$outboundSchema` instead. */
    GetAliasRequest$.outboundSchema = GetAliasRequest$outboundSchema;
})(GetAliasRequest$ || (GetAliasRequest$ = {}));
export function getAliasRequestToJSON(getAliasRequest) {
    return JSON.stringify(GetAliasRequest$outboundSchema.parse(getAliasRequest));
}
export function getAliasRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetAliasRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAliasRequest' from JSON`);
}
//# sourceMappingURL=getaliasop.js.map