/*
 * 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 { GoogleTaggingAnalysisData$inboundSchema, GoogleTaggingAnalysisData$outboundSchema, } from "./googletagginganalysisdata.js";
import { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
/** @internal */
export const AnalyzeGoogleTaggingResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: GoogleTaggingAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeGoogleTaggingResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: GoogleTaggingAnalysisData$outboundSchema.optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeGoogleTaggingResponseData$;
(function (AnalyzeGoogleTaggingResponseData$) {
    /** @deprecated use `AnalyzeGoogleTaggingResponseData$inboundSchema` instead. */
    AnalyzeGoogleTaggingResponseData$.inboundSchema = AnalyzeGoogleTaggingResponseData$inboundSchema;
    /** @deprecated use `AnalyzeGoogleTaggingResponseData$outboundSchema` instead. */
    AnalyzeGoogleTaggingResponseData$.outboundSchema = AnalyzeGoogleTaggingResponseData$outboundSchema;
})(AnalyzeGoogleTaggingResponseData$ || (AnalyzeGoogleTaggingResponseData$ = {}));
export function analyzeGoogleTaggingResponseDataToJSON(analyzeGoogleTaggingResponseData) {
    return JSON.stringify(AnalyzeGoogleTaggingResponseData$outboundSchema.parse(analyzeGoogleTaggingResponseData));
}
export function analyzeGoogleTaggingResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeGoogleTaggingResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeGoogleTaggingResponseData' from JSON`);
}
/** @internal */
export const AnalyzeGoogleTaggingResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeGoogleTaggingResponseData$inboundSchema).optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeGoogleTaggingResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeGoogleTaggingResponseData$outboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        requestId: "request_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeGoogleTaggingResponse$;
(function (AnalyzeGoogleTaggingResponse$) {
    /** @deprecated use `AnalyzeGoogleTaggingResponse$inboundSchema` instead. */
    AnalyzeGoogleTaggingResponse$.inboundSchema = AnalyzeGoogleTaggingResponse$inboundSchema;
    /** @deprecated use `AnalyzeGoogleTaggingResponse$outboundSchema` instead. */
    AnalyzeGoogleTaggingResponse$.outboundSchema = AnalyzeGoogleTaggingResponse$outboundSchema;
})(AnalyzeGoogleTaggingResponse$ || (AnalyzeGoogleTaggingResponse$ = {}));
export function analyzeGoogleTaggingResponseToJSON(analyzeGoogleTaggingResponse) {
    return JSON.stringify(AnalyzeGoogleTaggingResponse$outboundSchema.parse(analyzeGoogleTaggingResponse));
}
export function analyzeGoogleTaggingResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeGoogleTaggingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeGoogleTaggingResponse' from JSON`);
}
//# sourceMappingURL=analyzegoogletaggingresponse.js.map