UNPKG

@devma/qloo

Version:

TypeScript SDK for the Qloo Insights API - Generate taste-based insights and recommendations

1,366 lines 79.5 kB
"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.FilterExcludeEntitiesQuery$ = exports.FilterExcludeEntitiesQuery$outboundSchema = exports.FilterExcludeEntitiesQuery$inboundSchema = exports.FilterResultsEntitiesQuery$ = exports.FilterResultsEntitiesQuery$outboundSchema = exports.FilterResultsEntitiesQuery$inboundSchema = exports.OperatorFilterReleaseCountry$ = exports.OperatorFilterReleaseCountry$outboundSchema = exports.OperatorFilterReleaseCountry$inboundSchema = exports.FilterExcludeLocationQuery$ = exports.FilterExcludeLocationQuery$outboundSchema = exports.FilterExcludeLocationQuery$inboundSchema = exports.FilterLocationQuery$ = exports.FilterLocationQuery$outboundSchema = exports.FilterLocationQuery$inboundSchema = exports.FilterHours$ = exports.FilterHours$outboundSchema = exports.FilterHours$inboundSchema = exports.OperatorFilterExternalExists$ = exports.OperatorFilterExternalExists$outboundSchema = exports.OperatorFilterExternalExists$inboundSchema = exports.OperatorExcludeTags$ = exports.OperatorExcludeTags$outboundSchema = exports.OperatorExcludeTags$inboundSchema = exports.FilterContentRating$ = exports.FilterContentRating$outboundSchema = exports.FilterContentRating$inboundSchema = exports.BiasTrends$ = exports.BiasTrends$outboundSchema = exports.BiasTrends$inboundSchema = exports.FilterType$ = exports.FilterType$outboundSchema = exports.FilterType$inboundSchema = exports.SortBy = exports.SignalLocationWeightEnum = exports.SignalInterestsTagsWeightEnum = exports.SignalInterestsEntitiesWeightEnum = exports.SignalDemographicsGenderWeightEnum = exports.SignalDemographicsGender = exports.SignalDemographicsAudiencesWeightEnum = exports.SignalDemographicsAgeWeightEnum = exports.SignalDemographicsAge = exports.OperatorFilterTags = exports.OperatorFilterReleaseCountry = exports.FilterHours = exports.OperatorFilterExternalExists = exports.OperatorExcludeTags = exports.FilterContentRating = exports.BiasTrends = exports.FilterType = void 0;
exports.SignalInterestsTagsWeightEnum$outboundSchema = exports.SignalInterestsTagsWeightEnum$inboundSchema = exports.SignalInterestsTagsUnion$ = exports.SignalInterestsTagsUnion$outboundSchema = exports.SignalInterestsTagsUnion$inboundSchema = exports.SignalInterestsTags$ = exports.SignalInterestsTags$outboundSchema = exports.SignalInterestsTags$inboundSchema = exports.SignalInterestsEntitiesWeight$ = exports.SignalInterestsEntitiesWeight$outboundSchema = exports.SignalInterestsEntitiesWeight$inboundSchema = exports.SignalInterestsEntitiesWeightEnum$ = exports.SignalInterestsEntitiesWeightEnum$outboundSchema = exports.SignalInterestsEntitiesWeightEnum$inboundSchema = exports.SignalInterestsEntitiesQueryUnion$ = exports.SignalInterestsEntitiesQueryUnion$outboundSchema = exports.SignalInterestsEntitiesQueryUnion$inboundSchema = exports.SignalInterestsEntitiesQuery$ = exports.SignalInterestsEntitiesQuery$outboundSchema = exports.SignalInterestsEntitiesQuery$inboundSchema = exports.SignalDemographicsGenderWeight$ = exports.SignalDemographicsGenderWeight$outboundSchema = exports.SignalDemographicsGenderWeight$inboundSchema = exports.SignalDemographicsGenderWeightEnum$ = exports.SignalDemographicsGenderWeightEnum$outboundSchema = exports.SignalDemographicsGenderWeightEnum$inboundSchema = exports.SignalDemographicsGender$ = exports.SignalDemographicsGender$outboundSchema = exports.SignalDemographicsGender$inboundSchema = exports.SignalDemographicsAudiencesWeight$ = exports.SignalDemographicsAudiencesWeight$outboundSchema = exports.SignalDemographicsAudiencesWeight$inboundSchema = exports.SignalDemographicsAudiencesWeightEnum$ = exports.SignalDemographicsAudiencesWeightEnum$outboundSchema = exports.SignalDemographicsAudiencesWeightEnum$inboundSchema = exports.SignalDemographicsAgeWeight$ = exports.SignalDemographicsAgeWeight$outboundSchema = exports.SignalDemographicsAgeWeight$inboundSchema = exports.SignalDemographicsAgeWeightEnum$ = exports.SignalDemographicsAgeWeightEnum$outboundSchema = exports.SignalDemographicsAgeWeightEnum$inboundSchema = exports.SignalDemographicsAge$ = exports.SignalDemographicsAge$outboundSchema = exports.SignalDemographicsAge$inboundSchema = exports.OperatorFilterTags$ = exports.OperatorFilterTags$outboundSchema = exports.OperatorFilterTags$inboundSchema = exports.FilterExcludeEntitiesQueryUnion$ = exports.FilterExcludeEntitiesQueryUnion$outboundSchema = exports.FilterExcludeEntitiesQueryUnion$inboundSchema = void 0;
exports.GetInsightsResponse$ = exports.GetInsightsResponse$outboundSchema = exports.GetInsightsResponse$inboundSchema = exports.GetInsightsResults$ = exports.GetInsightsResults$outboundSchema = exports.GetInsightsResults$inboundSchema = exports.GetInsightsRequest$ = exports.GetInsightsRequest$outboundSchema = exports.GetInsightsRequest$inboundSchema = exports.SortBy$ = exports.SortBy$outboundSchema = exports.SortBy$inboundSchema = exports.SignalLocationWeight$ = exports.SignalLocationWeight$outboundSchema = exports.SignalLocationWeight$inboundSchema = exports.SignalLocationWeightEnum$ = exports.SignalLocationWeightEnum$outboundSchema = exports.SignalLocationWeightEnum$inboundSchema = exports.SignalInterestsTagsWeight$ = exports.SignalInterestsTagsWeight$outboundSchema = exports.SignalInterestsTagsWeight$inboundSchema = exports.SignalInterestsTagsWeightEnum$ = void 0;
exports.filterLocationQueryToJSON = filterLocationQueryToJSON;
exports.filterLocationQueryFromJSON = filterLocationQueryFromJSON;
exports.filterExcludeLocationQueryToJSON = filterExcludeLocationQueryToJSON;
exports.filterExcludeLocationQueryFromJSON = filterExcludeLocationQueryFromJSON;
exports.filterResultsEntitiesQueryToJSON = filterResultsEntitiesQueryToJSON;
exports.filterResultsEntitiesQueryFromJSON = filterResultsEntitiesQueryFromJSON;
exports.filterExcludeEntitiesQueryToJSON = filterExcludeEntitiesQueryToJSON;
exports.filterExcludeEntitiesQueryFromJSON = filterExcludeEntitiesQueryFromJSON;
exports.filterExcludeEntitiesQueryUnionToJSON = filterExcludeEntitiesQueryUnionToJSON;
exports.filterExcludeEntitiesQueryUnionFromJSON = filterExcludeEntitiesQueryUnionFromJSON;
exports.signalDemographicsAgeWeightToJSON = signalDemographicsAgeWeightToJSON;
exports.signalDemographicsAgeWeightFromJSON = signalDemographicsAgeWeightFromJSON;
exports.signalDemographicsAudiencesWeightToJSON = signalDemographicsAudiencesWeightToJSON;
exports.signalDemographicsAudiencesWeightFromJSON = signalDemographicsAudiencesWeightFromJSON;
exports.signalDemographicsGenderWeightToJSON = signalDemographicsGenderWeightToJSON;
exports.signalDemographicsGenderWeightFromJSON = signalDemographicsGenderWeightFromJSON;
exports.signalInterestsEntitiesQueryToJSON = signalInterestsEntitiesQueryToJSON;
exports.signalInterestsEntitiesQueryFromJSON = signalInterestsEntitiesQueryFromJSON;
exports.signalInterestsEntitiesQueryUnionToJSON = signalInterestsEntitiesQueryUnionToJSON;
exports.signalInterestsEntitiesQueryUnionFromJSON = signalInterestsEntitiesQueryUnionFromJSON;
exports.signalInterestsEntitiesWeightToJSON = signalInterestsEntitiesWeightToJSON;
exports.signalInterestsEntitiesWeightFromJSON = signalInterestsEntitiesWeightFromJSON;
exports.signalInterestsTagsToJSON = signalInterestsTagsToJSON;
exports.signalInterestsTagsFromJSON = signalInterestsTagsFromJSON;
exports.signalInterestsTagsUnionToJSON = signalInterestsTagsUnionToJSON;
exports.signalInterestsTagsUnionFromJSON = signalInterestsTagsUnionFromJSON;
exports.signalInterestsTagsWeightToJSON = signalInterestsTagsWeightToJSON;
exports.signalInterestsTagsWeightFromJSON = signalInterestsTagsWeightFromJSON;
exports.signalLocationWeightToJSON = signalLocationWeightToJSON;
exports.signalLocationWeightFromJSON = signalLocationWeightFromJSON;
exports.getInsightsRequestToJSON = getInsightsRequestToJSON;
exports.getInsightsRequestFromJSON = getInsightsRequestFromJSON;
exports.getInsightsResultsToJSON = getInsightsResultsToJSON;
exports.getInsightsResultsFromJSON = getInsightsResultsFromJSON;
exports.getInsightsResponseToJSON = getInsightsResponseToJSON;
exports.getInsightsResponseFromJSON = getInsightsResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const rfcdate_js_1 = require("../../types/rfcdate.js");
/**
 * Filter by the category of entity to return (urn:entity:place).
 */
exports.FilterType = {
    UrnEntityArtist: "urn:entity:artist",
    UrnEntityBook: "urn:entity:book",
    UrnEntityBrand: "urn:entity:brand",
    UrnEntityDestination: "urn:entity:destination",
    UrnEntityMovie: "urn:entity:movie",
    UrnEntityPerson: "urn:entity:person",
    UrnEntityPlace: "urn:entity:place",
    UrnEntityPodcast: "urn:entity:podcast",
    UrnEntityTvShow: "urn:entity:tv_show",
    UrnEntityVideogame: "urn:entity:videogame",
    UrnHeatmap: "urn:heatmap",
};
/**
 * The level of impact a trending entity has on the results. Supported by select categories only.
 */
exports.BiasTrends = {
    Off: "off",
    Low: "low",
    Medium: "medium",
    High: "high",
};
/**
 * Filter by a comma-separated list of content ratings based on the MPAA film rating system, which determines suitability for various audiences.
 */
exports.FilterContentRating = {
    G: "G",
    Pg: "PG",
    Pg13: "PG-13",
    R: "R",
    Nc17: "NC-17",
};
/**
 * Specifies how multiple `filter.exclude.tags` values are combined in the query. Use "union" (equivalent to a logical "or") to exclude results that contain at least one of the specified tags, or "intersection" (equivalent to a logical "and") to exclude only results that contain all specified tags. The default is "union".
 */
exports.OperatorExcludeTags = {
    Union: "union",
    Intersection: "intersection",
};
/**
 * Specifies how multiple `filter.external.exists` values are combined in the query. Use "union" (equivalent to a logical "or") to return results that match at least one of the specified external keys (e.g., resy, michelin, or tablet), or "intersection" (equivalent to a logical "and") to return only results that match all specified external keys. The default is "union".
 */
exports.OperatorFilterExternalExists = {
    Union: "union",
    Intersection: "intersection",
};
/**
 * Filter by the day of the week the Point of Interest must be open (Monday, Tuesday, etc.).
 */
exports.FilterHours = {
    Monday: "monday",
    Tuesday: "tuesday",
    Wednesday: "wednesday",
    Thursday: "thursday",
    Friday: "friday",
    Saturday: "saturday",
    Sunday: "sunday",
};
/**
 * Specifies how multiple `filter.release_country`` values are combined in the query. Use "union" (equivalent to a logical "or") to return results that match at least one of the specified countries, or "intersection" (equivalent to a logical "and") to return only results that match all specified countries. The default is "union".
 */
exports.OperatorFilterReleaseCountry = {
    Intersection: "intersection",
    Union: "union",
};
/**
 * Specifies how multiple `filter.tags` values are combined in the query. Use "union" (equivalent to a logical "or") to return results that match at least one of the specified tags, or "intersection" (equivalent to a logical "and") to return only results that match all specified tags. The default is "union".
 */
exports.OperatorFilterTags = {
    Union: "union",
    Intersection: "intersection",
};
/**
 * A comma-separated list of age ranges that influence the affinity score.(35_and_younger\|36_to_55\|55_and_older).
 */
exports.SignalDemographicsAge = {
    ThirtyFiveAndYounger: "35_and_younger",
    ThirtySixTo55: "36_to_55",
    FiftyFiveAndOlder: "55_and_older",
};
exports.SignalDemographicsAgeWeightEnum = {
    VeryLow: "very_low",
    Low: "low",
    Mid: "mid",
    Medium: "medium",
    High: "high",
    VeryHigh: "very_high",
};
exports.SignalDemographicsAudiencesWeightEnum = {
    VeryLow: "very_low",
    Low: "low",
    Mid: "mid",
    Medium: "medium",
    High: "high",
    VeryHigh: "very_high",
};
/**
 * Influence the affinity score based on gender (male\|female).
 */
exports.SignalDemographicsGender = {
    Male: "male",
    Female: "female",
};
exports.SignalDemographicsGenderWeightEnum = {
    VeryLow: "very_low",
    Low: "low",
    Mid: "mid",
    Medium: "medium",
    High: "high",
    VeryHigh: "very_high",
};
exports.SignalInterestsEntitiesWeightEnum = {
    VeryLow: "very_low",
    Low: "low",
    Mid: "mid",
    Medium: "medium",
    High: "high",
    VeryHigh: "very_high",
};
exports.SignalInterestsTagsWeightEnum = {
    VeryLow: "very_low",
    Low: "low",
    Mid: "mid",
    Medium: "medium",
    High: "high",
    VeryHigh: "very_high",
};
exports.SignalLocationWeightEnum = {
    VeryLow: "very_low",
    Low: "low",
    Mid: "mid",
    Medium: "medium",
    High: "high",
    VeryHigh: "very_high",
};
/**
 * This parameter modifies the results sorting algorithm (affinity\|distance). The distance option can only be used when `filter.location`` is supplied.
 */
exports.SortBy = {
    Affinity: "affinity",
    Distance: "distance",
};
/** @internal */
exports.FilterType$inboundSchema = z
    .nativeEnum(exports.FilterType);
/** @internal */
exports.FilterType$outboundSchema = exports.FilterType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var FilterType$;
(function (FilterType$) {
    /** @deprecated use `FilterType$inboundSchema` instead. */
    FilterType$.inboundSchema = exports.FilterType$inboundSchema;
    /** @deprecated use `FilterType$outboundSchema` instead. */
    FilterType$.outboundSchema = exports.FilterType$outboundSchema;
})(FilterType$ || (exports.FilterType$ = FilterType$ = {}));
/** @internal */
exports.BiasTrends$inboundSchema = z
    .nativeEnum(exports.BiasTrends);
/** @internal */
exports.BiasTrends$outboundSchema = exports.BiasTrends$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var BiasTrends$;
(function (BiasTrends$) {
    /** @deprecated use `BiasTrends$inboundSchema` instead. */
    BiasTrends$.inboundSchema = exports.BiasTrends$inboundSchema;
    /** @deprecated use `BiasTrends$outboundSchema` instead. */
    BiasTrends$.outboundSchema = exports.BiasTrends$outboundSchema;
})(BiasTrends$ || (exports.BiasTrends$ = BiasTrends$ = {}));
/** @internal */
exports.FilterContentRating$inboundSchema = z.nativeEnum(exports.FilterContentRating);
/** @internal */
exports.FilterContentRating$outboundSchema = exports.FilterContentRating$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var FilterContentRating$;
(function (FilterContentRating$) {
    /** @deprecated use `FilterContentRating$inboundSchema` instead. */
    FilterContentRating$.inboundSchema = exports.FilterContentRating$inboundSchema;
    /** @deprecated use `FilterContentRating$outboundSchema` instead. */
    FilterContentRating$.outboundSchema = exports.FilterContentRating$outboundSchema;
})(FilterContentRating$ || (exports.FilterContentRating$ = FilterContentRating$ = {}));
/** @internal */
exports.OperatorExcludeTags$inboundSchema = z.nativeEnum(exports.OperatorExcludeTags);
/** @internal */
exports.OperatorExcludeTags$outboundSchema = exports.OperatorExcludeTags$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var OperatorExcludeTags$;
(function (OperatorExcludeTags$) {
    /** @deprecated use `OperatorExcludeTags$inboundSchema` instead. */
    OperatorExcludeTags$.inboundSchema = exports.OperatorExcludeTags$inboundSchema;
    /** @deprecated use `OperatorExcludeTags$outboundSchema` instead. */
    OperatorExcludeTags$.outboundSchema = exports.OperatorExcludeTags$outboundSchema;
})(OperatorExcludeTags$ || (exports.OperatorExcludeTags$ = OperatorExcludeTags$ = {}));
/** @internal */
exports.OperatorFilterExternalExists$inboundSchema = z.nativeEnum(exports.OperatorFilterExternalExists);
/** @internal */
exports.OperatorFilterExternalExists$outboundSchema = exports.OperatorFilterExternalExists$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var OperatorFilterExternalExists$;
(function (OperatorFilterExternalExists$) {
    /** @deprecated use `OperatorFilterExternalExists$inboundSchema` instead. */
    OperatorFilterExternalExists$.inboundSchema = exports.OperatorFilterExternalExists$inboundSchema;
    /** @deprecated use `OperatorFilterExternalExists$outboundSchema` instead. */
    OperatorFilterExternalExists$.outboundSchema = exports.OperatorFilterExternalExists$outboundSchema;
})(OperatorFilterExternalExists$ || (exports.OperatorFilterExternalExists$ = OperatorFilterExternalExists$ = {}));
/** @internal */
exports.FilterHours$inboundSchema = z
    .nativeEnum(exports.FilterHours);
/** @internal */
exports.FilterHours$outboundSchema = exports.FilterHours$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var FilterHours$;
(function (FilterHours$) {
    /** @deprecated use `FilterHours$inboundSchema` instead. */
    FilterHours$.inboundSchema = exports.FilterHours$inboundSchema;
    /** @deprecated use `FilterHours$outboundSchema` instead. */
    FilterHours$.outboundSchema = exports.FilterHours$outboundSchema;
})(FilterHours$ || (exports.FilterHours$ = FilterHours$ = {}));
/** @internal */
exports.FilterLocationQuery$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.FilterLocationQuery$outboundSchema = z.union([z.string(), z.array(z.string())]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var FilterLocationQuery$;
(function (FilterLocationQuery$) {
    /** @deprecated use `FilterLocationQuery$inboundSchema` instead. */
    FilterLocationQuery$.inboundSchema = exports.FilterLocationQuery$inboundSchema;
    /** @deprecated use `FilterLocationQuery$outboundSchema` instead. */
    FilterLocationQuery$.outboundSchema = exports.FilterLocationQuery$outboundSchema;
})(FilterLocationQuery$ || (exports.FilterLocationQuery$ = FilterLocationQuery$ = {}));
function filterLocationQueryToJSON(filterLocationQuery) {
    return JSON.stringify(exports.FilterLocationQuery$outboundSchema.parse(filterLocationQuery));
}
function filterLocationQueryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FilterLocationQuery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterLocationQuery' from JSON`);
}
/** @internal */
exports.FilterExcludeLocationQuery$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.FilterExcludeLocationQuery$outboundSchema = z.union([z.string(), z.array(z.string())]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var FilterExcludeLocationQuery$;
(function (FilterExcludeLocationQuery$) {
    /** @deprecated use `FilterExcludeLocationQuery$inboundSchema` instead. */
    FilterExcludeLocationQuery$.inboundSchema = exports.FilterExcludeLocationQuery$inboundSchema;
    /** @deprecated use `FilterExcludeLocationQuery$outboundSchema` instead. */
    FilterExcludeLocationQuery$.outboundSchema = exports.FilterExcludeLocationQuery$outboundSchema;
})(FilterExcludeLocationQuery$ || (exports.FilterExcludeLocationQuery$ = FilterExcludeLocationQuery$ = {}));
function filterExcludeLocationQueryToJSON(filterExcludeLocationQuery) {
    return JSON.stringify(exports.FilterExcludeLocationQuery$outboundSchema.parse(filterExcludeLocationQuery));
}
function filterExcludeLocationQueryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FilterExcludeLocationQuery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterExcludeLocationQuery' from JSON`);
}
/** @internal */
exports.OperatorFilterReleaseCountry$inboundSchema = z.nativeEnum(exports.OperatorFilterReleaseCountry);
/** @internal */
exports.OperatorFilterReleaseCountry$outboundSchema = exports.OperatorFilterReleaseCountry$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var OperatorFilterReleaseCountry$;
(function (OperatorFilterReleaseCountry$) {
    /** @deprecated use `OperatorFilterReleaseCountry$inboundSchema` instead. */
    OperatorFilterReleaseCountry$.inboundSchema = exports.OperatorFilterReleaseCountry$inboundSchema;
    /** @deprecated use `OperatorFilterReleaseCountry$outboundSchema` instead. */
    OperatorFilterReleaseCountry$.outboundSchema = exports.OperatorFilterReleaseCountry$outboundSchema;
})(OperatorFilterReleaseCountry$ || (exports.OperatorFilterReleaseCountry$ = OperatorFilterReleaseCountry$ = {}));
/** @internal */
exports.FilterResultsEntitiesQuery$inboundSchema = z.union([z.string(), z.array(z.string())]);
/** @internal */
exports.FilterResultsEntitiesQuery$outboundSchema = z.union([z.string(), z.array(z.string())]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var FilterResultsEntitiesQuery$;
(function (FilterResultsEntitiesQuery$) {
    /** @deprecated use `FilterResultsEntitiesQuery$inboundSchema` instead. */
    FilterResultsEntitiesQuery$.inboundSchema = exports.FilterResultsEntitiesQuery$inboundSchema;
    /** @deprecated use `FilterResultsEntitiesQuery$outboundSchema` instead. */
    FilterResultsEntitiesQuery$.outboundSchema = exports.FilterResultsEntitiesQuery$outboundSchema;
})(FilterResultsEntitiesQuery$ || (exports.FilterResultsEntitiesQuery$ = FilterResultsEntitiesQuery$ = {}));
function filterResultsEntitiesQueryToJSON(filterResultsEntitiesQuery) {
    return JSON.stringify(exports.FilterResultsEntitiesQuery$outboundSchema.parse(filterResultsEntitiesQuery));
}
function filterResultsEntitiesQueryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FilterResultsEntitiesQuery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterResultsEntitiesQuery' from JSON`);
}
/** @internal */
exports.FilterExcludeEntitiesQuery$inboundSchema = z.object({
    name: z.string().optional(),
    address: z.string().optional(),
});
/** @internal */
exports.FilterExcludeEntitiesQuery$outboundSchema = z.object({
    name: z.string().optional(),
    address: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var FilterExcludeEntitiesQuery$;
(function (FilterExcludeEntitiesQuery$) {
    /** @deprecated use `FilterExcludeEntitiesQuery$inboundSchema` instead. */
    FilterExcludeEntitiesQuery$.inboundSchema = exports.FilterExcludeEntitiesQuery$inboundSchema;
    /** @deprecated use `FilterExcludeEntitiesQuery$outboundSchema` instead. */
    FilterExcludeEntitiesQuery$.outboundSchema = exports.FilterExcludeEntitiesQuery$outboundSchema;
})(FilterExcludeEntitiesQuery$ || (exports.FilterExcludeEntitiesQuery$ = FilterExcludeEntitiesQuery$ = {}));
function filterExcludeEntitiesQueryToJSON(filterExcludeEntitiesQuery) {
    return JSON.stringify(exports.FilterExcludeEntitiesQuery$outboundSchema.parse(filterExcludeEntitiesQuery));
}
function filterExcludeEntitiesQueryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FilterExcludeEntitiesQuery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterExcludeEntitiesQuery' from JSON`);
}
/** @internal */
exports.FilterExcludeEntitiesQueryUnion$inboundSchema = z.union([
    z.lazy(() => exports.FilterExcludeEntitiesQuery$inboundSchema),
    z.string(),
]);
/** @internal */
exports.FilterExcludeEntitiesQueryUnion$outboundSchema = z.union([
    z.lazy(() => exports.FilterExcludeEntitiesQuery$outboundSchema),
    z.string(),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var FilterExcludeEntitiesQueryUnion$;
(function (FilterExcludeEntitiesQueryUnion$) {
    /** @deprecated use `FilterExcludeEntitiesQueryUnion$inboundSchema` instead. */
    FilterExcludeEntitiesQueryUnion$.inboundSchema = exports.FilterExcludeEntitiesQueryUnion$inboundSchema;
    /** @deprecated use `FilterExcludeEntitiesQueryUnion$outboundSchema` instead. */
    FilterExcludeEntitiesQueryUnion$.outboundSchema = exports.FilterExcludeEntitiesQueryUnion$outboundSchema;
})(FilterExcludeEntitiesQueryUnion$ || (exports.FilterExcludeEntitiesQueryUnion$ = FilterExcludeEntitiesQueryUnion$ = {}));
function filterExcludeEntitiesQueryUnionToJSON(filterExcludeEntitiesQueryUnion) {
    return JSON.stringify(exports.FilterExcludeEntitiesQueryUnion$outboundSchema.parse(filterExcludeEntitiesQueryUnion));
}
function filterExcludeEntitiesQueryUnionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FilterExcludeEntitiesQueryUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FilterExcludeEntitiesQueryUnion' from JSON`);
}
/** @internal */
exports.OperatorFilterTags$inboundSchema = z.nativeEnum(exports.OperatorFilterTags);
/** @internal */
exports.OperatorFilterTags$outboundSchema = exports.OperatorFilterTags$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var OperatorFilterTags$;
(function (OperatorFilterTags$) {
    /** @deprecated use `OperatorFilterTags$inboundSchema` instead. */
    OperatorFilterTags$.inboundSchema = exports.OperatorFilterTags$inboundSchema;
    /** @deprecated use `OperatorFilterTags$outboundSchema` instead. */
    OperatorFilterTags$.outboundSchema = exports.OperatorFilterTags$outboundSchema;
})(OperatorFilterTags$ || (exports.OperatorFilterTags$ = OperatorFilterTags$ = {}));
/** @internal */
exports.SignalDemographicsAge$inboundSchema = z.nativeEnum(exports.SignalDemographicsAge);
/** @internal */
exports.SignalDemographicsAge$outboundSchema = exports.SignalDemographicsAge$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalDemographicsAge$;
(function (SignalDemographicsAge$) {
    /** @deprecated use `SignalDemographicsAge$inboundSchema` instead. */
    SignalDemographicsAge$.inboundSchema = exports.SignalDemographicsAge$inboundSchema;
    /** @deprecated use `SignalDemographicsAge$outboundSchema` instead. */
    SignalDemographicsAge$.outboundSchema = exports.SignalDemographicsAge$outboundSchema;
})(SignalDemographicsAge$ || (exports.SignalDemographicsAge$ = SignalDemographicsAge$ = {}));
/** @internal */
exports.SignalDemographicsAgeWeightEnum$inboundSchema = z.nativeEnum(exports.SignalDemographicsAgeWeightEnum);
/** @internal */
exports.SignalDemographicsAgeWeightEnum$outboundSchema = exports.SignalDemographicsAgeWeightEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalDemographicsAgeWeightEnum$;
(function (SignalDemographicsAgeWeightEnum$) {
    /** @deprecated use `SignalDemographicsAgeWeightEnum$inboundSchema` instead. */
    SignalDemographicsAgeWeightEnum$.inboundSchema = exports.SignalDemographicsAgeWeightEnum$inboundSchema;
    /** @deprecated use `SignalDemographicsAgeWeightEnum$outboundSchema` instead. */
    SignalDemographicsAgeWeightEnum$.outboundSchema = exports.SignalDemographicsAgeWeightEnum$outboundSchema;
})(SignalDemographicsAgeWeightEnum$ || (exports.SignalDemographicsAgeWeightEnum$ = SignalDemographicsAgeWeightEnum$ = {}));
/** @internal */
exports.SignalDemographicsAgeWeight$inboundSchema = z.union([z.number(), exports.SignalDemographicsAgeWeightEnum$inboundSchema]);
/** @internal */
exports.SignalDemographicsAgeWeight$outboundSchema = z.union([z.number(), exports.SignalDemographicsAgeWeightEnum$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalDemographicsAgeWeight$;
(function (SignalDemographicsAgeWeight$) {
    /** @deprecated use `SignalDemographicsAgeWeight$inboundSchema` instead. */
    SignalDemographicsAgeWeight$.inboundSchema = exports.SignalDemographicsAgeWeight$inboundSchema;
    /** @deprecated use `SignalDemographicsAgeWeight$outboundSchema` instead. */
    SignalDemographicsAgeWeight$.outboundSchema = exports.SignalDemographicsAgeWeight$outboundSchema;
})(SignalDemographicsAgeWeight$ || (exports.SignalDemographicsAgeWeight$ = SignalDemographicsAgeWeight$ = {}));
function signalDemographicsAgeWeightToJSON(signalDemographicsAgeWeight) {
    return JSON.stringify(exports.SignalDemographicsAgeWeight$outboundSchema.parse(signalDemographicsAgeWeight));
}
function signalDemographicsAgeWeightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalDemographicsAgeWeight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalDemographicsAgeWeight' from JSON`);
}
/** @internal */
exports.SignalDemographicsAudiencesWeightEnum$inboundSchema = z.nativeEnum(exports.SignalDemographicsAudiencesWeightEnum);
/** @internal */
exports.SignalDemographicsAudiencesWeightEnum$outboundSchema = exports.SignalDemographicsAudiencesWeightEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalDemographicsAudiencesWeightEnum$;
(function (SignalDemographicsAudiencesWeightEnum$) {
    /** @deprecated use `SignalDemographicsAudiencesWeightEnum$inboundSchema` instead. */
    SignalDemographicsAudiencesWeightEnum$.inboundSchema = exports.SignalDemographicsAudiencesWeightEnum$inboundSchema;
    /** @deprecated use `SignalDemographicsAudiencesWeightEnum$outboundSchema` instead. */
    SignalDemographicsAudiencesWeightEnum$.outboundSchema = exports.SignalDemographicsAudiencesWeightEnum$outboundSchema;
})(SignalDemographicsAudiencesWeightEnum$ || (exports.SignalDemographicsAudiencesWeightEnum$ = SignalDemographicsAudiencesWeightEnum$ = {}));
/** @internal */
exports.SignalDemographicsAudiencesWeight$inboundSchema = z.union([z.number(), exports.SignalDemographicsAudiencesWeightEnum$inboundSchema]);
/** @internal */
exports.SignalDemographicsAudiencesWeight$outboundSchema = z.union([z.number(), exports.SignalDemographicsAudiencesWeightEnum$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalDemographicsAudiencesWeight$;
(function (SignalDemographicsAudiencesWeight$) {
    /** @deprecated use `SignalDemographicsAudiencesWeight$inboundSchema` instead. */
    SignalDemographicsAudiencesWeight$.inboundSchema = exports.SignalDemographicsAudiencesWeight$inboundSchema;
    /** @deprecated use `SignalDemographicsAudiencesWeight$outboundSchema` instead. */
    SignalDemographicsAudiencesWeight$.outboundSchema = exports.SignalDemographicsAudiencesWeight$outboundSchema;
})(SignalDemographicsAudiencesWeight$ || (exports.SignalDemographicsAudiencesWeight$ = SignalDemographicsAudiencesWeight$ = {}));
function signalDemographicsAudiencesWeightToJSON(signalDemographicsAudiencesWeight) {
    return JSON.stringify(exports.SignalDemographicsAudiencesWeight$outboundSchema.parse(signalDemographicsAudiencesWeight));
}
function signalDemographicsAudiencesWeightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalDemographicsAudiencesWeight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalDemographicsAudiencesWeight' from JSON`);
}
/** @internal */
exports.SignalDemographicsGender$inboundSchema = z.nativeEnum(exports.SignalDemographicsGender);
/** @internal */
exports.SignalDemographicsGender$outboundSchema = exports.SignalDemographicsGender$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalDemographicsGender$;
(function (SignalDemographicsGender$) {
    /** @deprecated use `SignalDemographicsGender$inboundSchema` instead. */
    SignalDemographicsGender$.inboundSchema = exports.SignalDemographicsGender$inboundSchema;
    /** @deprecated use `SignalDemographicsGender$outboundSchema` instead. */
    SignalDemographicsGender$.outboundSchema = exports.SignalDemographicsGender$outboundSchema;
})(SignalDemographicsGender$ || (exports.SignalDemographicsGender$ = SignalDemographicsGender$ = {}));
/** @internal */
exports.SignalDemographicsGenderWeightEnum$inboundSchema = z.nativeEnum(exports.SignalDemographicsGenderWeightEnum);
/** @internal */
exports.SignalDemographicsGenderWeightEnum$outboundSchema = exports.SignalDemographicsGenderWeightEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalDemographicsGenderWeightEnum$;
(function (SignalDemographicsGenderWeightEnum$) {
    /** @deprecated use `SignalDemographicsGenderWeightEnum$inboundSchema` instead. */
    SignalDemographicsGenderWeightEnum$.inboundSchema = exports.SignalDemographicsGenderWeightEnum$inboundSchema;
    /** @deprecated use `SignalDemographicsGenderWeightEnum$outboundSchema` instead. */
    SignalDemographicsGenderWeightEnum$.outboundSchema = exports.SignalDemographicsGenderWeightEnum$outboundSchema;
})(SignalDemographicsGenderWeightEnum$ || (exports.SignalDemographicsGenderWeightEnum$ = SignalDemographicsGenderWeightEnum$ = {}));
/** @internal */
exports.SignalDemographicsGenderWeight$inboundSchema = z.union([z.number(), exports.SignalDemographicsGenderWeightEnum$inboundSchema]);
/** @internal */
exports.SignalDemographicsGenderWeight$outboundSchema = z.union([z.number(), exports.SignalDemographicsGenderWeightEnum$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalDemographicsGenderWeight$;
(function (SignalDemographicsGenderWeight$) {
    /** @deprecated use `SignalDemographicsGenderWeight$inboundSchema` instead. */
    SignalDemographicsGenderWeight$.inboundSchema = exports.SignalDemographicsGenderWeight$inboundSchema;
    /** @deprecated use `SignalDemographicsGenderWeight$outboundSchema` instead. */
    SignalDemographicsGenderWeight$.outboundSchema = exports.SignalDemographicsGenderWeight$outboundSchema;
})(SignalDemographicsGenderWeight$ || (exports.SignalDemographicsGenderWeight$ = SignalDemographicsGenderWeight$ = {}));
function signalDemographicsGenderWeightToJSON(signalDemographicsGenderWeight) {
    return JSON.stringify(exports.SignalDemographicsGenderWeight$outboundSchema.parse(signalDemographicsGenderWeight));
}
function signalDemographicsGenderWeightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalDemographicsGenderWeight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalDemographicsGenderWeight' from JSON`);
}
/** @internal */
exports.SignalInterestsEntitiesQuery$inboundSchema = z.object({
    name: z.string().optional(),
    address: z.string().optional(),
});
/** @internal */
exports.SignalInterestsEntitiesQuery$outboundSchema = z.object({
    name: z.string().optional(),
    address: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalInterestsEntitiesQuery$;
(function (SignalInterestsEntitiesQuery$) {
    /** @deprecated use `SignalInterestsEntitiesQuery$inboundSchema` instead. */
    SignalInterestsEntitiesQuery$.inboundSchema = exports.SignalInterestsEntitiesQuery$inboundSchema;
    /** @deprecated use `SignalInterestsEntitiesQuery$outboundSchema` instead. */
    SignalInterestsEntitiesQuery$.outboundSchema = exports.SignalInterestsEntitiesQuery$outboundSchema;
})(SignalInterestsEntitiesQuery$ || (exports.SignalInterestsEntitiesQuery$ = SignalInterestsEntitiesQuery$ = {}));
function signalInterestsEntitiesQueryToJSON(signalInterestsEntitiesQuery) {
    return JSON.stringify(exports.SignalInterestsEntitiesQuery$outboundSchema.parse(signalInterestsEntitiesQuery));
}
function signalInterestsEntitiesQueryFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalInterestsEntitiesQuery$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalInterestsEntitiesQuery' from JSON`);
}
/** @internal */
exports.SignalInterestsEntitiesQueryUnion$inboundSchema = z.union([
    z.lazy(() => exports.SignalInterestsEntitiesQuery$inboundSchema),
    z.string(),
]);
/** @internal */
exports.SignalInterestsEntitiesQueryUnion$outboundSchema = z.union([
    z.lazy(() => exports.SignalInterestsEntitiesQuery$outboundSchema),
    z.string(),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalInterestsEntitiesQueryUnion$;
(function (SignalInterestsEntitiesQueryUnion$) {
    /** @deprecated use `SignalInterestsEntitiesQueryUnion$inboundSchema` instead. */
    SignalInterestsEntitiesQueryUnion$.inboundSchema = exports.SignalInterestsEntitiesQueryUnion$inboundSchema;
    /** @deprecated use `SignalInterestsEntitiesQueryUnion$outboundSchema` instead. */
    SignalInterestsEntitiesQueryUnion$.outboundSchema = exports.SignalInterestsEntitiesQueryUnion$outboundSchema;
})(SignalInterestsEntitiesQueryUnion$ || (exports.SignalInterestsEntitiesQueryUnion$ = SignalInterestsEntitiesQueryUnion$ = {}));
function signalInterestsEntitiesQueryUnionToJSON(signalInterestsEntitiesQueryUnion) {
    return JSON.stringify(exports.SignalInterestsEntitiesQueryUnion$outboundSchema.parse(signalInterestsEntitiesQueryUnion));
}
function signalInterestsEntitiesQueryUnionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalInterestsEntitiesQueryUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalInterestsEntitiesQueryUnion' from JSON`);
}
/** @internal */
exports.SignalInterestsEntitiesWeightEnum$inboundSchema = z.nativeEnum(exports.SignalInterestsEntitiesWeightEnum);
/** @internal */
exports.SignalInterestsEntitiesWeightEnum$outboundSchema = exports.SignalInterestsEntitiesWeightEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalInterestsEntitiesWeightEnum$;
(function (SignalInterestsEntitiesWeightEnum$) {
    /** @deprecated use `SignalInterestsEntitiesWeightEnum$inboundSchema` instead. */
    SignalInterestsEntitiesWeightEnum$.inboundSchema = exports.SignalInterestsEntitiesWeightEnum$inboundSchema;
    /** @deprecated use `SignalInterestsEntitiesWeightEnum$outboundSchema` instead. */
    SignalInterestsEntitiesWeightEnum$.outboundSchema = exports.SignalInterestsEntitiesWeightEnum$outboundSchema;
})(SignalInterestsEntitiesWeightEnum$ || (exports.SignalInterestsEntitiesWeightEnum$ = SignalInterestsEntitiesWeightEnum$ = {}));
/** @internal */
exports.SignalInterestsEntitiesWeight$inboundSchema = z.union([z.number(), exports.SignalInterestsEntitiesWeightEnum$inboundSchema]);
/** @internal */
exports.SignalInterestsEntitiesWeight$outboundSchema = z.union([z.number(), exports.SignalInterestsEntitiesWeightEnum$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalInterestsEntitiesWeight$;
(function (SignalInterestsEntitiesWeight$) {
    /** @deprecated use `SignalInterestsEntitiesWeight$inboundSchema` instead. */
    SignalInterestsEntitiesWeight$.inboundSchema = exports.SignalInterestsEntitiesWeight$inboundSchema;
    /** @deprecated use `SignalInterestsEntitiesWeight$outboundSchema` instead. */
    SignalInterestsEntitiesWeight$.outboundSchema = exports.SignalInterestsEntitiesWeight$outboundSchema;
})(SignalInterestsEntitiesWeight$ || (exports.SignalInterestsEntitiesWeight$ = SignalInterestsEntitiesWeight$ = {}));
function signalInterestsEntitiesWeightToJSON(signalInterestsEntitiesWeight) {
    return JSON.stringify(exports.SignalInterestsEntitiesWeight$outboundSchema.parse(signalInterestsEntitiesWeight));
}
function signalInterestsEntitiesWeightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalInterestsEntitiesWeight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalInterestsEntitiesWeight' from JSON`);
}
/** @internal */
exports.SignalInterestsTags$inboundSchema = z.object({
    tag: z.string().optional(),
    weight: z.number().int().optional(),
});
/** @internal */
exports.SignalInterestsTags$outboundSchema = z.object({
    tag: z.string().optional(),
    weight: z.number().int().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalInterestsTags$;
(function (SignalInterestsTags$) {
    /** @deprecated use `SignalInterestsTags$inboundSchema` instead. */
    SignalInterestsTags$.inboundSchema = exports.SignalInterestsTags$inboundSchema;
    /** @deprecated use `SignalInterestsTags$outboundSchema` instead. */
    SignalInterestsTags$.outboundSchema = exports.SignalInterestsTags$outboundSchema;
})(SignalInterestsTags$ || (exports.SignalInterestsTags$ = SignalInterestsTags$ = {}));
function signalInterestsTagsToJSON(signalInterestsTags) {
    return JSON.stringify(exports.SignalInterestsTags$outboundSchema.parse(signalInterestsTags));
}
function signalInterestsTagsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalInterestsTags$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalInterestsTags' from JSON`);
}
/** @internal */
exports.SignalInterestsTagsUnion$inboundSchema = z.union([
    z.array(z.string()),
    z.array(z.lazy(() => exports.SignalInterestsTags$inboundSchema)),
]);
/** @internal */
exports.SignalInterestsTagsUnion$outboundSchema = z.union([
    z.array(z.string()),
    z.array(z.lazy(() => exports.SignalInterestsTags$outboundSchema)),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalInterestsTagsUnion$;
(function (SignalInterestsTagsUnion$) {
    /** @deprecated use `SignalInterestsTagsUnion$inboundSchema` instead. */
    SignalInterestsTagsUnion$.inboundSchema = exports.SignalInterestsTagsUnion$inboundSchema;
    /** @deprecated use `SignalInterestsTagsUnion$outboundSchema` instead. */
    SignalInterestsTagsUnion$.outboundSchema = exports.SignalInterestsTagsUnion$outboundSchema;
})(SignalInterestsTagsUnion$ || (exports.SignalInterestsTagsUnion$ = SignalInterestsTagsUnion$ = {}));
function signalInterestsTagsUnionToJSON(signalInterestsTagsUnion) {
    return JSON.stringify(exports.SignalInterestsTagsUnion$outboundSchema.parse(signalInterestsTagsUnion));
}
function signalInterestsTagsUnionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalInterestsTagsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalInterestsTagsUnion' from JSON`);
}
/** @internal */
exports.SignalInterestsTagsWeightEnum$inboundSchema = z.nativeEnum(exports.SignalInterestsTagsWeightEnum);
/** @internal */
exports.SignalInterestsTagsWeightEnum$outboundSchema = exports.SignalInterestsTagsWeightEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalInterestsTagsWeightEnum$;
(function (SignalInterestsTagsWeightEnum$) {
    /** @deprecated use `SignalInterestsTagsWeightEnum$inboundSchema` instead. */
    SignalInterestsTagsWeightEnum$.inboundSchema = exports.SignalInterestsTagsWeightEnum$inboundSchema;
    /** @deprecated use `SignalInterestsTagsWeightEnum$outboundSchema` instead. */
    SignalInterestsTagsWeightEnum$.outboundSchema = exports.SignalInterestsTagsWeightEnum$outboundSchema;
})(SignalInterestsTagsWeightEnum$ || (exports.SignalInterestsTagsWeightEnum$ = SignalInterestsTagsWeightEnum$ = {}));
/** @internal */
exports.SignalInterestsTagsWeight$inboundSchema = z.union([z.number(), exports.SignalInterestsTagsWeightEnum$inboundSchema]);
/** @internal */
exports.SignalInterestsTagsWeight$outboundSchema = z.union([z.number(), exports.SignalInterestsTagsWeightEnum$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalInterestsTagsWeight$;
(function (SignalInterestsTagsWeight$) {
    /** @deprecated use `SignalInterestsTagsWeight$inboundSchema` instead. */
    SignalInterestsTagsWeight$.inboundSchema = exports.SignalInterestsTagsWeight$inboundSchema;
    /** @deprecated use `SignalInterestsTagsWeight$outboundSchema` instead. */
    SignalInterestsTagsWeight$.outboundSchema = exports.SignalInterestsTagsWeight$outboundSchema;
})(SignalInterestsTagsWeight$ || (exports.SignalInterestsTagsWeight$ = SignalInterestsTagsWeight$ = {}));
function signalInterestsTagsWeightToJSON(signalInterestsTagsWeight) {
    return JSON.stringify(exports.SignalInterestsTagsWeight$outboundSchema.parse(signalInterestsTagsWeight));
}
function signalInterestsTagsWeightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalInterestsTagsWeight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalInterestsTagsWeight' from JSON`);
}
/** @internal */
exports.SignalLocationWeightEnum$inboundSchema = z.nativeEnum(exports.SignalLocationWeightEnum);
/** @internal */
exports.SignalLocationWeightEnum$outboundSchema = exports.SignalLocationWeightEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalLocationWeightEnum$;
(function (SignalLocationWeightEnum$) {
    /** @deprecated use `SignalLocationWeightEnum$inboundSchema` instead. */
    SignalLocationWeightEnum$.inboundSchema = exports.SignalLocationWeightEnum$inboundSchema;
    /** @deprecated use `SignalLocationWeightEnum$outboundSchema` instead. */
    SignalLocationWeightEnum$.outboundSchema = exports.SignalLocationWeightEnum$outboundSchema;
})(SignalLocationWeightEnum$ || (exports.SignalLocationWeightEnum$ = SignalLocationWeightEnum$ = {}));
/** @internal */
exports.SignalLocationWeight$inboundSchema = z.union([z.number(), exports.SignalLocationWeightEnum$inboundSchema]);
/** @internal */
exports.SignalLocationWeight$outboundSchema = z.union([z.number(), exports.SignalLocationWeightEnum$outboundSchema]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SignalLocationWeight$;
(function (SignalLocationWeight$) {
    /** @deprecated use `SignalLocationWeight$inboundSchema` instead. */
    SignalLocationWeight$.inboundSchema = exports.SignalLocationWeight$inboundSchema;
    /** @deprecated use `SignalLocationWeight$outboundSchema` instead. */
    SignalLocationWeight$.outboundSchema = exports.SignalLocationWeight$outboundSchema;
})(SignalLocationWeight$ || (exports.SignalLocationWeight$ = SignalLocationWeight$ = {}));
function signalLocationWeightToJSON(signalLocationWeight) {
    return JSON.stringify(exports.SignalLocationWeight$outboundSchema.parse(signalLocationWeight));
}
function signalLocationWeightFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SignalLocationWeight$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SignalLocationWeight' from JSON`);
}
/** @internal */
exports.SortBy$inboundSchema = z
    .nativeEnum(exports.SortBy);
/** @internal */
exports.SortBy$outboundSchema = exports.SortBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var SortBy$;
(function (SortBy$) {
    /** @deprecated use `SortBy$inboundSchema` instead. */
    SortBy$.inboundSchema = exports.SortBy$inboundSchema;
    /** @deprecated use `SortBy$outboundSchema` instead. */
    SortBy$.outboundSchema = exports.SortBy$outboundSchema;
})(SortBy$ || (exports.SortBy$ = SortBy$ = {}));
/** @internal */
exports.GetInsightsRequest$inboundSchema = z.object({
    "filter.type": exports.FilterType$inboundSchema,
    "bias.trends": exports.BiasTrends$inboundSchema.optional(),
    "diversify.by": z.string().optional(),
    "diversify.take": z.number().int().optional(),
    "feature.explainability": z.boolean().default(false),
    "filter.address": z.string().optional(),
    "filter.content_rating": exports.FilterContentRating$inboundSchema.optional(),
    "filter.date_of_birth.max": z.string().transform(v => new rfcdate_js_1.RFCDate(v))
        .optional(),
    "filter.date_of_birth.min": z.string().transform(v => new rfcdate_js_1.RFCDate(v))
        .optional(),
    "filter.date_of_death.max": z.string().transform(v => new rfcdate_js_1.RFCDate(v))
        .optional(),
    "filter.date_of_death.min": z.string().transform(v => new rfcdate_js_1.RFCDate(v))
        .optional(),
    "filter.exclude.tags": z.string().optional(),
    "operator.exclude.tags": exports.OperatorExcludeTags$inboundSchema.optional(),
    "filter.exists": z.string().optional(),
    "filter.external.exists": z.string().optional(),
    "operator.filter.external.exists": exports.OperatorFilterExternalExists$inboundSchema
        .optional(),
    "filter.external.resy.count.max": z.number().int().optional(),
    "filter.external.resy.count.min": z.number().int().optional(),
    "filter.external.resy.party_size.max": z.number().int().optional(),
    "filter.external.resy.party_size.min": z.number().int().optional(),
    "filter.external.resy.rating.max": z.number().optional(),
    "filter.external.resy.rating.min": z.number().optional(),
    "filter.external.tripadvisor.rating.count.min": z.number().int().optional(),
    "filter.external.tripadvisor.rating.count.max": z.number().int().optional(),
    "filter.external.tripadvisor.rating.max": z.number().optional(),
    "filter.external.tripadvisor.rating.min": z.number().optional(),
    "filter.finale_year.max": z.number().int().optional(),
    "filter.finale_year.min": z.number().int().optional(),
    "filter.gender": z.string().optional(),
    "filter.geocode.admin1_region": z.string().optional(),
    "filter.geocode.admin2_region": z.string().optional(),
    "filter.geocode.country_code": z.string().optional(),
    "filter.geocode.name": z.string().optional(),
    "filter.hotel_class.max": z.number().int().optional(),
    "filter.hotel_class.min": z.number().int().optional(),
    "filter.hours": exports.FilterHours$inboundSchema.optional(),
    "filter.latest_known_year.max": z.number().int().optional(),
    "filter.latest_known_year.min": z.number().int().optional(),
    "filter.location": z.string().optional(),
    "filter.exclude.location": z.string().optional(),
    "filter.location.query": z.union([z.string(), z.array(z.string())])
        .optional(),
    "filter.exclude.location.query": z.union([z.string(), z.array(z.string())])
        .optional(),
    "filter.location.geohash": z.string().optional(),
    "filter.exclude.location.geohash": z.string().optional(),
    "filter.location.radius": z.number().int().default(15000),
    "filter.parents.types": z.array(z.string()).optional(),
    "filter.popularity.max": z.number().optional(),
    "filter.popularity.min": z.number().optional(),
    "filter.price_level.max": z.number().int().optional(),
    "filter.price_level.min": z.number().int().optional(),
    "filter.price_range.from": z.number().int().optional(),
    "filter.price_range.to": z.number().int().optional(),
    "filter.price.max": z.number().optional(),
    "filter.price.min": z.number().optional(),
    "filter.properties.business_rating.max": z.number().optional(),
    "filter.properties.business_rating.min": z.number().optional(),
    "filter.publication_year.max": z.number().optional(),
    "filter.publication_year.min": z.number().optional(),
    "filter.rating.max": z.number().optional(),
    "filter.rating.min": z.number().optional(),
    "filter.references_brand": z.array(z.string()).optional(),
    "filter.release_country": z.array(z.string()).optional(),
    "operator.filter.release_country": exports.OperatorFilterReleaseCountry$inboundSchema
        .optional(),
    "filter.release_date.max": z.string().transform(v => new rfcdate_js_1.RFCDate(v))
        .optional(),
    "filter.release_date.min": z.string().transform(v => new rfcdate_js_1.RFCDate(v))
        .optional(),
    "filter.release_year.max": z.number().int().optional(),
    "filter.release_year.min": z.number().int().optional(),
    "filter.results.entities": z.string().optional(),
    "filter.results.entities.query": z.union([z.string(), z.array(z.string())])
        .optional(),
    "filter.exclude.entities": z.string().optional(),
    "filter.exclude.entities.query": z.array(z.union([
        z.lazy(() => exports.FilterExcludeEntitiesQuery$inboundSchema),
        z.string(),
    ])).optional(),
    "filter.results.tags": z.array(z.string()).optional(),
    "filter.tags": z.string().optional(),
    "operator.filter.tags": exports.OperatorFilterTags$inboundSchema.optional(),
    offset: z.number().int().optional(),
    "output.heatmap.boundary": z.string().optional(),
    page: z.number().int().optional(),
    "signal.demographics.age": exports.SignalDemographicsAge$inboundSchema.optional(),
    "signal.demographics.age.weight": z.union([
        z.number(),
        exports.SignalDemographicsAgeWeightEnum$inboundSchema,
    ]).optional(),
    "signal.demographics.audiences.weight": z.union([
        z.number(),
        exports.SignalDemographicsAudiencesWeightEnum$inboundSchema,
    ]).optional(),
    "signal.demographics.audiences": z.array(z.string()).optional(),
    "signal.demographics.gender": exports.SignalDemographicsGender$inboundSchema
        .optional(),
    "signal.demographics.gender.weight": z.union([
        z.number(),
        exports.SignalDemographicsGenderWeightEnum$inboundSchema,
    ]).optional(),
    "signal.interests.entities": z.array(z.string()).optional(),
    "signal.interests.entities.query": z.array(z.union([
        z.lazy(() => exports.SignalInterestsEntitiesQuery$inboundSchema),
        z.string(),
    ])).optional(),
    "signal.interests.entities.weight": z.union([
        z.number(),
        exports.SignalInterestsEntitiesWeightEnum$inboundSchema,
    ]).optional(),
    "signal.interests.tags": z.union([
        z.array(z.string()),
        z.array(z.lazy(() => exports.SignalInterestsTags$inboundSchema)),
    ]).optional(),
    "signal.interests.tags.weight": z.union([
        z.number(),
        exports.SignalInterestsTagsWeightEnum$inboundSchema,
    ]).optional(),
    "signal.location": z.string().optional(),
    "signal.location.radius": z.number().int().optional(),
    "signal.location.query": z.string().optional(),
    "signal.location.weight": z.union([
        z.number(),
        exports.SignalLocationWeightEnum$inboundSchema,
    ]).optional(),
    sort_by: exports.SortBy$inboundSchema.optional(),
    take: z.number().int().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "filter.type": "filterType",
        "bias.trends": "biasTrends",
        "diversify.by": "diversifyBy",
        "diversify.take": "diversifyTake",
        "feature.explainability": "featureExplainability",
        "filter.address": "filterAddress",
        "filter.content_rating": "filterContentRating",
        "filter.date_of_birth.max": "filterDateOfBirthMax",
        "filter.date_of_birth.min": "filterDateOfBirthMin",
        "filter.date_of_death.max": "filterDateOfDeathMax",
        "filter.date_of_death.min": "filterDateOfDeathMin",
        "filter.exclude.tags": "filterExcludeTags",
        "operator.exclude.tags": "operatorExcludeTags",
        "filter.exists": "filterExists",
        "filter.external.exists": "filterExternalExists",
        "operator.filter.external.exists": "operatorFilterExternalExists",
        "filter.external.resy.count.max": "filterExternalResyCountMax",
        "filter.external.resy.count.min": "filterExternalResyCountMin",
        "filter.external.resy.party_size.max": "filterExternalResyPartySizeMax",
        "filter.external.resy.party_size.min": "filterExternalResyPartySizeMin",
        "filter.external.resy.rating.max": "filterExternalResyRatingMax",
        "filter.external.resy.rating.min": "filterExternalResyRatingMin",
        "filter.external.tripadvisor.rating.count.min": "filterExternalTripadvisorRatingCountMin",
        "filter.external.tripadvisor.rating.count.max": "filterExternalTripadvisorRatingCountMax",
        "filter.external.tripadvisor.rating.max": "filterExternalTripadvisorRatingMax",
        "filter.external.tripadvisor.rating.min": "filterExternalTripadvisorRatingMin",
        "filter.finale_year.max": "filterFinaleYearMax",
        "filter.finale_year.min": "filterFinaleYearMin",
        "filter.gender": "filterGender",
        "filter.geocode.admin1_region": "filterGeocodeAdmin1Region",
        "filter.geocode.admin2_region": "filterGeocodeAdmin2Region",
        "filter.geocode.country_code": "filterGeocodeCountryCode",
        "filter.geocode.name": "filterGeocodeName",
        "filter.hotel_class.max": "filterHotelClassMax",
        "filter.hotel_class.min": "filterHotelClassMin",
        "filter.hours": "filterHours",
        "filter.latest_known_year.max": "filterLatestKnownYearMax",
        "filter.latest_known_year.min": "filterLatestKnownYearMin",
        "filter.location": "filterLocation",
        "filter.exclude.location": "filterExcludeLocation",
        "filter.location.query": "filterLocationQuery",
        "filter.exclude.location.query": "filterExcludeLocationQuery",
        "filter.location.geohash": "filterLocationGeohash",
        "filter.exclude.location.geohash": "filterExcludeLocationGeohash",
        "filter.location.radius": "filterLocationRadius",
        "filter.parents.types": "filterParentsTypes",
        "filter.popularity.max": "filterPopularityMax",
        "filter.popularity.min": "filterPopularityMin",
        "filter.price_level.max": "filterPriceLevelMax",
        "filter.price_level.min": "filterPriceLevelMin",
        "filter.price_range.from": "filterPriceRangeFrom",
        "filter.price_range.to": "filterPriceRangeTo",
        "filter.price.max": "filterPriceMax",
        "filter.price.min": "filterPriceMin",
        "filter.properties.business_rating.max": "filterPropertiesBusinessRatingMax",
        "filter.properties.business_rating.min": "filterPropertiesBusinessRatingMin",
        "filter.publication_year.max": "filterPublicationYearMax",
        "filter.publication_year.min": "filterPublicationYearMin",
        "filter.rating.max": "filterRatingMax",
        "filter.rating.min": "filterRatingMin",
        "filter.references_brand": "filterReferencesBrand",
        "filter.release_country": "filterReleaseCountry",
        "operator.filter.release_country": "operatorFilterReleaseCountry",
        "filter.release_date.max": "filterReleaseDateMax",
        "filter.release_date.min": "filterReleaseDateMin",
        "filter.release_year.max": "filterReleaseYearMax",
        "filter.release_year.min": "filterReleaseYearMin",
        "filter.results.entities": "filterResultsEntities",
        "filter.results.entities.query": "filterResultsEntitiesQuery",
        "filter.exclude.entities": "filterExcludeEntities",
        "filter.exclude.entities.query": "filterExcludeEntitiesQuery",
        "filter.results.tags": "filterResultsTags",
        "filter.tags": "filterTags",
        "operator.filter.tags": "operatorFilterTags",
        "output.heatmap.boundary": "outputHeatmapBoundary",
        "signal.demographics.age": "signalDemographicsAge",
        "signal.demographics.age.weight": "signalDemographicsAgeWeight",
        "signal.demographics.audiences.weight": "signalDemographicsAudiencesWeight",
        "signal.demographics.audiences": "signalDemographicsAudiences",
        "signal.demographics.gender": "signalDemographicsGender",
        "signal.demographics.gender.weight": "signalDemographicsGenderWeight",
        "signal.interests.entities": "signalInterestsEntities",
        "signal.interests.entities.query": "signalInterestsEntitiesQuery",
        "signal.interests.entities.weight": "signalInterestsEntitiesWeight",
        "signal.interests.tags": "signalInterestsTags",
        "signal.interests.tags.weight": "signalInterestsTagsWeight",
        "signal.location": "signalLocation",
        "signal.location.radius": "signalLocationRadius",
        "signal.location.query": "signalLocationQuery",
        "signal.location.weight": "signalLocationWeight",
        "sort_by": "sortBy",
    });
});
/** @internal */
exports.GetInsightsRequest$outboundSchema = z.object({
    filterType: exports.FilterType$outboundSchema,
    biasTrends: exports.BiasTrends$outboundSchema.optional(),
    diversifyBy: z.string().optional(),
    diversifyTake: z.number().int().optional(),
    featureExplainability: z.boolean().default(false),
    filterAddress: z.string().optional(),
    filterContentRating: exports.FilterContentRating$outboundSchema.optional(),
    filterDateOfBirthMax: z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString())
        .optional(),
    filterDateOfBirthMin: z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString())
        .optional(),
    filterDateOfDeathMax: z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString())
        .optional(),
    filterDateOfDeathMin: z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString())
        .optional(),
    filterExcludeTags: z.string().optional(),
    operatorExcludeTags: exports.OperatorExcludeTags$outboundSchema.optional(),
    filterExists: z.string().optional(),
    filterExternalExists: z.string().optional(),
    operatorFilterExternalExists: exports.OperatorFilterExternalExists$outboundSchema
        .optional(),
    filterExternalResyCountMax: z.number().int().optional(),
    filterExternalResyCountMin: z.number().int().optional(),
    filterExternalResyPartySizeMax: z.number().int().optional(),
    filterExternalResyPartySizeMin: z.number().int().optional(),
    filterExternalResyRatingMax: z.number().optional(),
    filterExternalResyRatingMin: z.number().optional(),
    filterExternalTripadvisorRatingCountMin: z.number().int().optional(),
    filterExternalTripadvisorRatingCountMax: z.number().int().optional(),
    filterExternalTripadvisorRatingMax: z.number().optional(),
    filterExternalTripadvisorRatingMin: z.number().optional(),
    filterFinaleYearMax: z.number().int().optional(),
    filterFinaleYearMin: z.number().int().optional(),
    filterGender: z.string().optional(),
    filterGeocodeAdmin1Region: z.string().optional(),
    filterGeocodeAdmin2Region: z.string().optional(),
    filterGeocodeCountryCode: z.string().optional(),
    filterGeocodeName: z.string().optional(),
    filterHotelClassMax: z.number().int().optional(),
    filterHotelClassMin: z.number().int().optional(),
    filterHours: exports.FilterHours$outboundSchema.optional(),
    filterLatestKnownYearMax: z.number().int().optional(),
    filterLatestKnownYearMin: z.number().int().optional(),
    filterLocation: z.string().optional(),
    filterExcludeLocation: z.string().optional(),
    filterLocationQuery: z.union([z.string(), z.array(z.string())]).optional(),
    filterExcludeLocationQuery: z.union([z.string(), z.array(z.string())])
        .optional(),
    filterLocationGeohash: z.string().optional(),
    filterExcludeLocationGeohash: z.string().optional(),
    filterLocationRadius: z.number().int().default(15000),
    filterParentsTypes: z.array(z.string()).optional(),
    filterPopularityMax: z.number().optional(),
    filterPopularityMin: z.number().optional(),
    filterPriceLevelMax: z.number().int().optional(),
    filterPriceLevelMin: z.number().int().optional(),
    filterPriceRangeFrom: z.number().int().optional(),
    filterPriceRangeTo: z.number().int().optional(),
    filterPriceMax: z.number().optional(),
    filterPriceMin: z.number().optional(),
    filterPropertiesBusinessRatingMax: z.number().optional(),
    filterPropertiesBusinessRatingMin: z.number().optional(),
    filterPublicationYearMax: z.number().optional(),
    filterPublicationYearMin: z.number().optional(),
    filterRatingMax: z.number().optional(),
    filterRatingMin: z.number().optional(),
    filterReferencesBrand: z.array(z.string()).optional(),
    filterReleaseCountry: z.array(z.string()).optional(),
    operatorFilterReleaseCountry: exports.OperatorFilterReleaseCountry$outboundSchema
        .optional(),
    filterReleaseDateMax: z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString())
        .optional(),
    filterReleaseDateMin: z.instanceof(rfcdate_js_1.RFCDate).transform(v => v.toString())
        .optional(),
    filterReleaseYearMax: z.number().int().optional(),
    filterReleaseYearMin: z.number().int().optional(),
    filterResultsEntities: z.string().optional(),
    filterResultsEntitiesQuery: z.union([z.string(), z.array(z.string())])
        .optional(),
    filterExcludeEntities: z.string().optional(),
    filterExcludeEntitiesQuery: z.array(z.union([
        z.lazy(() => exports.FilterExcludeEntitiesQuery$outboundSchema),
        z.string(),
    ])).optional(),
    filterResultsTags: z.array(z.string()).optional(),
    filterTags: z.string().optional(),
    operatorFilterTags: exports.OperatorFilterTags$outboundSchema.optional(),
    offset: z.number().int().optional(),
    outputHeatmapBoundary: z.string().optional(),
    page: z.number().int().optional(),
    signalDemographicsAge: exports.SignalDemographicsAge$outboundSchema.optional(),
    signalDemographicsAgeWeight: z.union([
        z.number(),
        exports.SignalDemographicsAgeWeightEnum$outboundSchema,
    ]).optional(),
    signalDemographicsAudiencesWeight: z.union([
        z.number(),
        exports.SignalDemographicsAudiencesWeightEnum$outboundSchema,
    ]).optional(),
    signalDemographicsAudiences: z.array(z.string()).optional(),
    signalDemographicsGender: exports.SignalDemographicsGender$outboundSchema.optional(),
    signalDemographicsGenderWeight: z.union([
        z.number(),
        exports.SignalDemographicsGenderWeightEnum$outboundSchema,
    ]).optional(),
    signalInterestsEntities: z.array(z.string()).optional(),
    signalInterestsEntitiesQuery: z.array(z.union([
        z.lazy(() => exports.SignalInterestsEntitiesQuery$outboundSchema),
        z.string(),
    ])).optional(),
    signalInterestsEntitiesWeight: z.union([
        z.number(),
        exports.SignalInterestsEntitiesWeightEnum$outboundSchema,
    ]).optional(),
    signalInterestsTags: z.union([
        z.array(z.string()),
        z.array(z.lazy(() => exports.SignalInterestsTags$outboundSchema)),
    ]).optional(),
    signalInterestsTagsWeight: z.union([
        z.number(),
        exports.SignalInterestsTagsWeightEnum$outboundSchema,
    ]).optional(),
    signalLocation: z.string().optional(),
    signalLocationRadius: z.number().int().optional(),
    signalLocationQuery: z.string().optional(),
    signalLocationWeight: z.union([
        z.number(),
        exports.SignalLocationWeightEnum$outboundSchema,
    ]).optional(),
    sortBy: exports.SortBy$outboundSchema.optional(),
    take: z.number().int().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        filterType: "filter.type",
        biasTrends: "bias.trends",
        diversifyBy: "diversify.by",
        diversifyTake: "diversify.take",
        featureExplainability: "feature.explainability",
        filterAddress: "filter.address",
        filterContentRating: "filter.content_rating",
        filterDateOfBirthMax: "filter.date_of_birth.max",
        filterDateOfBirthMin: "filter.date_of_birth.min",
        filterDateOfDeathMax: "filter.date_of_death.max",
        filterDateOfDeathMin: "filter.date_of_death.min",
        filterExcludeTags: "filter.exclude.tags",
        operatorExcludeTags: "operator.exclude.tags",
        filterExists: "filter.exists",
        filterExternalExists: "filter.external.exists",
        operatorFilterExternalExists: "operator.filter.external.exists",
        filterExternalResyCountMax: "filter.external.resy.count.max",
        filterExternalResyCountMin: "filter.external.resy.count.min",
        filterExternalResyPartySizeMax: "filter.external.resy.party_size.max",
        filterExternalResyPartySizeMin: "filter.external.resy.party_size.min",
        filterExternalResyRatingMax: "filter.external.resy.rating.max",
        filterExternalResyRatingMin: "filter.external.resy.rating.min",
        filterExternalTripadvisorRatingCountMin: "filter.external.tripadvisor.rating.count.min",
        filterExternalTripadvisorRatingCountMax: "filter.external.tripadvisor.rating.count.max",
        filterExternalTripadvisorRatingMax: "filter.external.tripadvisor.rating.max",
        filterExternalTripadvisorRatingMin: "filter.external.tripadvisor.rating.min",
        filterFinaleYearMax: "filter.finale_year.max",
        filterFinaleYearMin: "filter.finale_year.min",
        filterGender: "filter.gender",
        filterGeocodeAdmin1Region: "filter.geocode.admin1_region",
        filterGeocodeAdmin2Region: "filter.geocode.admin2_region",
        filterGeocodeCountryCode: "filter.geocode.country_code",
        filterGeocodeName: "filter.geocode.name",
        filterHotelClassMax: "filter.hotel_class.max",
        filterHotelClassMin: "filter.hotel_class.min",
        filterHours: "filter.hours",
        filterLatestKnownYearMax: "filter.latest_known_year.max",
        filterLatestKnownYearMin: "filter.latest_known_year.min",
        filterLocation: "filter.location",
        filterExcludeLocation: "filter.exclude.location",
        filterLocationQuery: "filter.location.query",
        filterExcludeLocationQuery: "filter.exclude.location.query",
        filterLocationGeohash: "filter.location.geohash",
        filterExcludeLocationGeohash: "filter.exclude.location.geohash",
        filterLocationRadius: "filter.location.radius",
        filterParentsTypes: "filter.parents.types",
        filterPopularityMax: "filter.popularity.max",
        filterPopularityMin: "filter.popularity.min",
        filterPriceLevelMax: "filter.price_level.max",
        filterPriceLevelMin: "filter.price_level.min",
        filterPriceRangeFrom: "filter.price_range.from",
        filterPriceRangeTo: "filter.price_range.to",
        filterPriceMax: "filter.price.max",
        filterPriceMin: "filter.price.min",
        filterPropertiesBusinessRatingMax: "filter.properties.business_rating.max",
        filterPropertiesBusinessRatingMin: "filter.properties.business_rating.min",
        filterPublicationYearMax: "filter.publication_year.max",
        filterPublicationYearMin: "filter.publication_year.min",
        filterRatingMax: "filter.rating.max",
        filterRatingMin: "filter.rating.min",
        filterReferencesBrand: "filter.references_brand",
        filterReleaseCountry: "filter.release_country",
        operatorFilterReleaseCountry: "operator.filter.release_country",
        filterReleaseDateMax: "filter.release_date.max",
        filterReleaseDateMin: "filter.release_date.min",
        filterReleaseYearMax: "filter.release_year.max",
        filterReleaseYearMin: "filter.release_year.min",
        filterResultsEntities: "filter.results.entities",
        filterResultsEntitiesQuery: "filter.results.entities.query",
        filterExcludeEntities: "filter.exclude.entities",
        filterExcludeEntitiesQuery: "filter.exclude.entities.query",
        filterResultsTags: "filter.results.tags",
        filterTags: "filter.tags",
        operatorFilterTags: "operator.filter.tags",
        outputHeatmapBoundary: "output.heatmap.boundary",
        signalDemographicsAge: "signal.demographics.age",
        signalDemographicsAgeWeight: "signal.demographics.age.weight",
        signalDemographicsAudiencesWeight: "signal.demographics.audiences.weight",
        signalDemographicsAudiences: "signal.demographics.audiences",
        signalDemographicsGender: "signal.demographics.gender",
        signalDemographicsGenderWeight: "signal.demographics.gender.weight",
        signalInterestsEntities: "signal.interests.entities",
        signalInterestsEntitiesQuery: "signal.interests.entities.query",
        signalInterestsEntitiesWeight: "signal.interests.entities.weight",
        signalInterestsTags: "signal.interests.tags",
        signalInterestsTagsWeight: "signal.interests.tags.weight",
        signalLocation: "signal.location",
        signalLocationRadius: "signal.location.radius",
        signalLocationQuery: "signal.location.query",
        signalLocationWeight: "signal.location.weight",
        sortBy: "sort_by",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetInsightsRequest$;
(function (GetInsightsRequest$) {
    /** @deprecated use `GetInsightsRequest$inboundSchema` instead. */
    GetInsightsRequest$.inboundSchema = exports.GetInsightsRequest$inboundSchema;
    /** @deprecated use `GetInsightsRequest$outboundSchema` instead. */
    GetInsightsRequest$.outboundSchema = exports.GetInsightsRequest$outboundSchema;
})(GetInsightsRequest$ || (exports.GetInsightsRequest$ = GetInsightsRequest$ = {}));
function getInsightsRequestToJSON(getInsightsRequest) {
    return JSON.stringify(exports.GetInsightsRequest$outboundSchema.parse(getInsightsRequest));
}
function getInsightsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetInsightsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetInsightsRequest' from JSON`);
}
/** @internal */
exports.GetInsightsResults$inboundSchema = z.object({
    entities: z.array(z.any()).optional(),
    duration: z.number().optional(),
});
/** @internal */
exports.GetInsightsResults$outboundSchema = z.object({
    entities: z.array(z.any()).optional(),
    duration: z.number().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetInsightsResults$;
(function (GetInsightsResults$) {
    /** @deprecated use `GetInsightsResults$inboundSchema` instead. */
    GetInsightsResults$.inboundSchema = exports.GetInsightsResults$inboundSchema;
    /** @deprecated use `GetInsightsResults$outboundSchema` instead. */
    GetInsightsResults$.outboundSchema = exports.GetInsightsResults$outboundSchema;
})(GetInsightsResults$ || (exports.GetInsightsResults$ = GetInsightsResults$ = {}));
function getInsightsResultsToJSON(getInsightsResults) {
    return JSON.stringify(exports.GetInsightsResults$outboundSchema.parse(getInsightsResults));
}
function getInsightsResultsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetInsightsResults$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetInsightsResults' from JSON`);
}
/** @internal */
exports.GetInsightsResponse$inboundSchema = z.object({
    success: z.boolean().optional(),
    results: z.lazy(() => exports.GetInsightsResults$inboundSchema).optional(),
});
/** @internal */
exports.GetInsightsResponse$outboundSchema = z.object({
    success: z.boolean().optional(),
    results: z.lazy(() => exports.GetInsightsResults$outboundSchema).optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetInsightsResponse$;
(function (GetInsightsResponse$) {
    /** @deprecated use `GetInsightsResponse$inboundSchema` instead. */
    GetInsightsResponse$.inboundSchema = exports.GetInsightsResponse$inboundSchema;
    /** @deprecated use `GetInsightsResponse$outboundSchema` instead. */
    GetInsightsResponse$.outboundSchema = exports.GetInsightsResponse$outboundSchema;
})(GetInsightsResponse$ || (exports.GetInsightsResponse$ = GetInsightsResponse$ = {}));
function getInsightsResponseToJSON(getInsightsResponse) {
    return JSON.stringify(exports.GetInsightsResponse$outboundSchema.parse(getInsightsResponse));
}
function getInsightsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetInsightsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetInsightsResponse' from JSON`);
}
//# sourceMappingURL=getinsights.js.map