@goperigon/perigon-ts
Version:
Typescript client for Perigon API
1,250 lines (1,247 loc) • 1.16 MB
TypeScript
import { z } from 'zod';
declare const BASE_PATH: string;
interface ConfigurationParameters {
fetchApi?: FetchAPI;
middleware?: Middleware[];
queryParamsStringify?: (params: HTTPQuery) => string;
/** Access token (Bearer) */
apiKey?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
headers?: HTTPHeaders;
credentials?: RequestCredentials;
}
declare class Configuration {
private configuration;
constructor(configuration?: ConfigurationParameters);
set config(configuration: Configuration);
get basePath(): string;
get fetchApi(): ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) | undefined;
get middleware(): Middleware[];
get queryParamsStringify(): typeof querystring;
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
get headers(): HTTPHeaders | undefined;
get credentials(): RequestCredentials | undefined;
}
declare const DefaultConfig: Configuration;
declare class FetchError extends Error {
cause: Error;
name: "FetchError";
constructor(cause: Error, msg?: string);
}
declare class HttpError extends Error {
readonly status: number;
readonly statusText: string;
readonly response: Response;
readonly body?: any;
constructor(response: Response, body?: any);
}
declare class BadRequestError extends HttpError {
constructor(response: Response, body?: any);
}
declare class UnauthorizedError extends HttpError {
constructor(response: Response, body?: any);
}
declare class ForbiddenError extends HttpError {
constructor(response: Response, body?: any);
}
declare class NotFoundError extends HttpError {
constructor(response: Response, body?: any);
}
declare class RateLimitError extends HttpError {
readonly retryAfter?: number;
constructor(response: Response, body?: any);
}
declare class ServerError extends HttpError {
constructor(response: Response, body?: any);
}
declare class NetworkError extends Error {
readonly cause: Error;
constructor(originalError: Error);
}
declare function createHttpError(response: Response, body?: any): HttpError;
/**
* This is the base class for all generated API classes.
*/
declare class BaseAPI {
protected configuration: Configuration;
private static readonly jsonRegex;
private middleware;
constructor(configuration?: Configuration);
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware["pre"]>): T;
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware["post"]>): T;
/**
* Check if the given MIME is a JSON MIME.
* JSON MIME examples:
* application/json
* application/json; charset=UTF8
* APPLICATION/JSON
* application/vnd.company+json
* @param mime - MIME (Multipurpose Internet Mail Extensions)
* @return True if the given MIME is JSON, false otherwise.
*/
protected isJsonMime(mime: string | null | undefined): boolean;
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
private createFetchParams;
private fetchApi;
/**
* Create a shallow clone of `this` by constructing a new instance
* and then shallow cloning data members.
*/
private clone;
}
declare const COLLECTION_FORMATS: {
csv: string;
ssv: string;
tsv: string;
pipes: string;
};
type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
type Json = any;
type HTTPMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
type HTTPHeaders = {
[key: string]: string;
};
type HTTPQuery = {
[key: string]: string | number | Date | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
};
type HTTPBody = Json | FormData | URLSearchParams;
type HTTPRequestInit = {
headers?: HTTPHeaders;
method: HTTPMethod;
credentials?: RequestCredentials;
body?: HTTPBody;
};
type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "original";
type InitOverrideFunction = (requestContext: {
init: HTTPRequestInit;
context: RequestOpts;
}) => Promise<RequestInit>;
interface FetchParams {
url: string;
init: RequestInit;
}
interface RequestOpts {
path: string;
method: HTTPMethod;
headers: HTTPHeaders;
query?: HTTPQuery;
body?: HTTPBody;
}
declare function querystring(params: HTTPQuery, prefix?: string): string;
declare function exists(json: any, key: string): boolean;
interface RequestContext {
fetch: FetchAPI;
url: string;
init: RequestInit;
}
interface ResponseContext {
fetch: FetchAPI;
url: string;
init: RequestInit;
response: Response;
}
interface ErrorContext {
fetch: FetchAPI;
url: string;
init: RequestInit;
error: unknown;
response?: Response;
}
interface Middleware {
pre?(context: RequestContext): Promise<FetchParams | void>;
post?(context: ResponseContext): Promise<Response | void>;
onError?(context: ErrorContext): Promise<Response | void>;
}
/**
* Perigon API
* The Perigon API provides access to comprehensive news and web content data. To use the API, simply sign up for a Perigon Business Solutions account to obtain your API key. Your available features may vary based on your plan. See the Authentication section for details on how to use your API key.
*
* The version of the OpenAPI document: 1.0.0
* Contact: data@perigon.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
declare const SortBySchema: z.ZodEnum<["createdAt", "updatedAt", "relevance", "count", "totalCount"]>;
type SortBy = z.infer<typeof SortBySchema>;
declare const SortBy: {
readonly CreatedAt: "createdAt";
readonly UpdatedAt: "updatedAt";
readonly Relevance: "relevance";
readonly Count: "count";
readonly TotalCount: "totalCount";
};
declare const AllEndpointSortBySchema: z.ZodEnum<["relevance", "date", "reverseDate", "reverseAddDate", "addDate", "pubDate", "refreshDate"]>;
type AllEndpointSortBy = z.infer<typeof AllEndpointSortBySchema>;
declare const AllEndpointSortBy: {
readonly Relevance: "relevance";
readonly Date: "date";
readonly ReverseDate: "reverseDate";
readonly ReverseAddDate: "reverseAddDate";
readonly AddDate: "addDate";
readonly PubDate: "pubDate";
readonly RefreshDate: "refreshDate";
};
declare const CategoryHolderSchema: z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
}, {
name?: string | null | undefined;
}>;
type CategoryHolder = z.infer<typeof CategoryHolderSchema>;
declare const CategoryWithScoreHolderSchema: z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
score: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
score?: number | null | undefined;
}, {
name?: string | null | undefined;
score?: number | null | undefined;
}>;
type CategoryWithScoreHolder = z.infer<typeof CategoryWithScoreHolderSchema>;
declare const CompanyHolderSchema: z.ZodObject<{
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
symbols: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}, {
name?: string | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}>;
type CompanyHolder = z.infer<typeof CompanyHolderSchema>;
declare const EntityHolderSchema: z.ZodObject<{
data: z.ZodNullable<z.ZodOptional<z.ZodString>>;
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
mentions: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
type?: string | null | undefined;
data?: string | null | undefined;
mentions?: number | null | undefined;
}, {
type?: string | null | undefined;
data?: string | null | undefined;
mentions?: number | null | undefined;
}>;
type EntityHolder = z.infer<typeof EntityHolderSchema>;
declare const EventTypeHolderSchema: z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
type?: string | null | undefined;
}, {
name?: string | null | undefined;
type?: string | null | undefined;
}>;
type EventTypeHolder = z.infer<typeof EventTypeHolderSchema>;
declare const IdNameHolderSchema: z.ZodObject<{
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
id?: string | null | undefined;
}, {
name?: string | null | undefined;
id?: string | null | undefined;
}>;
type IdNameHolder = z.infer<typeof IdNameHolderSchema>;
declare const LocationHolderSchema: z.ZodObject<{
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
area: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}>;
type LocationHolder = z.infer<typeof LocationHolderSchema>;
declare const NameCountSchema: z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>;
type NameCount = z.infer<typeof NameCountSchema>;
declare const JournalistSchema: z.ZodObject<{
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
fullName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
headline: z.ZodNullable<z.ZodOptional<z.ZodString>>;
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
locations: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
area: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}>, "many">>>;
updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
topTopics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
topSources: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
topCategories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
topLabels: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
topCountries: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
avgMonthlyPosts: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
twitterHandle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
twitterBio: z.ZodNullable<z.ZodOptional<z.ZodString>>;
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
linkedinUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
linkedinConnections: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
linkedinFollowers: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
facebookUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
instagramUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
websiteUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
blogUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
tumblrUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
youtubeUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
updatedAt?: string | null | undefined;
id?: string | null | undefined;
fullName?: string | null | undefined;
headline?: string | null | undefined;
description?: string | null | undefined;
title?: string | null | undefined;
locations?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}[] | null | undefined;
topTopics?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topSources?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topCategories?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topLabels?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topCountries?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
avgMonthlyPosts?: number | null | undefined;
twitterHandle?: string | null | undefined;
twitterBio?: string | null | undefined;
imageUrl?: string | null | undefined;
linkedinUrl?: string | null | undefined;
linkedinConnections?: number | null | undefined;
linkedinFollowers?: number | null | undefined;
facebookUrl?: string | null | undefined;
instagramUrl?: string | null | undefined;
websiteUrl?: string | null | undefined;
blogUrl?: string | null | undefined;
tumblrUrl?: string | null | undefined;
youtubeUrl?: string | null | undefined;
}, {
name?: string | null | undefined;
updatedAt?: string | null | undefined;
id?: string | null | undefined;
fullName?: string | null | undefined;
headline?: string | null | undefined;
description?: string | null | undefined;
title?: string | null | undefined;
locations?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}[] | null | undefined;
topTopics?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topSources?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topCategories?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topLabels?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topCountries?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
avgMonthlyPosts?: number | null | undefined;
twitterHandle?: string | null | undefined;
twitterBio?: string | null | undefined;
imageUrl?: string | null | undefined;
linkedinUrl?: string | null | undefined;
linkedinConnections?: number | null | undefined;
linkedinFollowers?: number | null | undefined;
facebookUrl?: string | null | undefined;
instagramUrl?: string | null | undefined;
websiteUrl?: string | null | undefined;
blogUrl?: string | null | undefined;
tumblrUrl?: string | null | undefined;
youtubeUrl?: string | null | undefined;
}>;
type Journalist = z.infer<typeof JournalistSchema>;
declare const KeywordHolderSchema: z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
weight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
weight?: number | null | undefined;
}, {
name?: string | null | undefined;
weight?: number | null | undefined;
}>;
type KeywordHolder = z.infer<typeof KeywordHolderSchema>;
declare const LabelHolderSchema: z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
}, {
name?: string | null | undefined;
}>;
type LabelHolder = z.infer<typeof LabelHolderSchema>;
declare const CompanyCountSchema: z.ZodObject<{
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
symbols: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}>;
type CompanyCount = z.infer<typeof CompanyCountSchema>;
declare const KeyPointSchema: z.ZodObject<{
point: z.ZodNullable<z.ZodOptional<z.ZodString>>;
references: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
}, "strip", z.ZodTypeAny, {
point?: string | null | undefined;
references?: string[] | null | undefined;
}, {
point?: string | null | undefined;
references?: string[] | null | undefined;
}>;
type KeyPoint = z.infer<typeof KeyPointSchema>;
declare const LocationCountSchema: z.ZodObject<{
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
area: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
count?: number | null | undefined;
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}, {
count?: number | null | undefined;
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}>;
type LocationCount = z.infer<typeof LocationCountSchema>;
declare const PersonCountSchema: z.ZodObject<{
wikidataId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
wikidataId?: string | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
wikidataId?: string | null | undefined;
}>;
type PersonCount = z.infer<typeof PersonCountSchema>;
declare const PersonHolderSchema: z.ZodObject<{
wikidataId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
wikidataId?: string | null | undefined;
}, {
name?: string | null | undefined;
wikidataId?: string | null | undefined;
}>;
type PersonHolder = z.infer<typeof PersonHolderSchema>;
declare const QuestionSchema: z.ZodObject<{
question: z.ZodNullable<z.ZodOptional<z.ZodString>>;
answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
references: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
}, "strip", z.ZodTypeAny, {
references?: string[] | null | undefined;
question?: string | null | undefined;
answer?: string | null | undefined;
}, {
references?: string[] | null | undefined;
question?: string | null | undefined;
answer?: string | null | undefined;
}>;
type Question = z.infer<typeof QuestionSchema>;
declare const RecordStatHolderSchema: z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>;
type RecordStatHolder = z.infer<typeof RecordStatHolderSchema>;
declare const SentimentHolderSchema: z.ZodObject<{
positive: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
negative: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
neutral: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
positive?: number | null | undefined;
negative?: number | null | undefined;
neutral?: number | null | undefined;
}, {
positive?: number | null | undefined;
negative?: number | null | undefined;
neutral?: number | null | undefined;
}>;
type SentimentHolder = z.infer<typeof SentimentHolderSchema>;
declare const CoordinateSchema: z.ZodObject<{
lat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
lon: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
lat?: number | null | undefined;
lon?: number | null | undefined;
}, {
lat?: number | null | undefined;
lon?: number | null | undefined;
}>;
type Coordinate = z.infer<typeof CoordinateSchema>;
declare const SourceLocationSchema: z.ZodObject<{
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
coordinates: z.ZodNullable<z.ZodOptional<z.ZodObject<{
lat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
lon: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
lat?: number | null | undefined;
lon?: number | null | undefined;
}, {
lat?: number | null | undefined;
lon?: number | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
}, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
}>;
type SourceLocation = z.infer<typeof SourceLocationSchema>;
declare const SourceHolderSchema: z.ZodObject<{
domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
paywall: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
coordinates: z.ZodNullable<z.ZodOptional<z.ZodObject<{
lat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
lon: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
lat?: number | null | undefined;
lon?: number | null | undefined;
}, {
lat?: number | null | undefined;
lon?: number | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
}, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
domain?: string | null | undefined;
paywall?: boolean | null | undefined;
location?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
} | null | undefined;
}, {
domain?: string | null | undefined;
paywall?: boolean | null | undefined;
location?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
} | null | undefined;
}>;
type SourceHolder = z.infer<typeof SourceHolderSchema>;
declare const TopicHolderSchema: z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
}, {
name?: string | null | undefined;
}>;
type TopicHolder = z.infer<typeof TopicHolderSchema>;
declare const NewsClusterSchema: z.ZodObject<{
createdAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
initializedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
duplicateOf: z.ZodNullable<z.ZodOptional<z.ZodString>>;
slug: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
summary: z.ZodNullable<z.ZodOptional<z.ZodString>>;
shortSummary: z.ZodNullable<z.ZodOptional<z.ZodString>>;
summaryReferences: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
imageSource: z.ZodNullable<z.ZodOptional<z.ZodObject<{
domain: z.ZodNullable<z.ZodOptional<z.ZodString>>;
paywall: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
location: z.ZodNullable<z.ZodOptional<z.ZodObject<{
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
coordinates: z.ZodNullable<z.ZodOptional<z.ZodObject<{
lat: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
lon: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
lat?: number | null | undefined;
lon?: number | null | undefined;
}, {
lat?: number | null | undefined;
lon?: number | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
}, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
}>>>;
}, "strip", z.ZodTypeAny, {
domain?: string | null | undefined;
paywall?: boolean | null | undefined;
location?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
} | null | undefined;
}, {
domain?: string | null | undefined;
paywall?: boolean | null | undefined;
location?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
} | null | undefined;
}>>>;
imageUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
keyPoints: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
point: z.ZodNullable<z.ZodOptional<z.ZodString>>;
references: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
}, "strip", z.ZodTypeAny, {
point?: string | null | undefined;
references?: string[] | null | undefined;
}, {
point?: string | null | undefined;
references?: string[] | null | undefined;
}>, "many">>>;
questions: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
question: z.ZodNullable<z.ZodOptional<z.ZodString>>;
answer: z.ZodNullable<z.ZodOptional<z.ZodString>>;
references: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
}, "strip", z.ZodTypeAny, {
references?: string[] | null | undefined;
question?: string | null | undefined;
answer?: string | null | undefined;
}, {
references?: string[] | null | undefined;
question?: string | null | undefined;
answer?: string | null | undefined;
}>, "many">>>;
uniqueSources: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
selectedArticles: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>>;
sentiment: z.ZodNullable<z.ZodOptional<z.ZodObject<{
positive: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
negative: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
neutral: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
positive?: number | null | undefined;
negative?: number | null | undefined;
neutral?: number | null | undefined;
}, {
positive?: number | null | undefined;
negative?: number | null | undefined;
neutral?: number | null | undefined;
}>>>;
uniqueCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
reprintCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
totalCount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
countries: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
topCountries: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
topics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
topTopics: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
}, {
name?: string | null | undefined;
}>, "many">>>;
categories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
topCategories: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
}, {
name?: string | null | undefined;
}>, "many">>>;
taxonomies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
}>, "many">>>;
topTaxonomies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
}, {
name?: string | null | undefined;
}>, "many">>>;
people: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
wikidataId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
wikidataId?: string | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
wikidataId?: string | null | undefined;
}>, "many">>>;
topPeople: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
wikidataId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
wikidataId?: string | null | undefined;
}, {
name?: string | null | undefined;
wikidataId?: string | null | undefined;
}>, "many">>>;
companies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
symbols: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
count?: number | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}, {
name?: string | null | undefined;
count?: number | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}>, "many">>>;
topCompanies: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
domains: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
symbols: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}, {
name?: string | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}>, "many">>>;
locations: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
area: z.ZodNullable<z.ZodOptional<z.ZodString>>;
count: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
count?: number | null | undefined;
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}, {
count?: number | null | undefined;
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}>, "many">>>;
topLocations: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
area: z.ZodNullable<z.ZodOptional<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}, {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}>, "many">>>;
highlights: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
sourceDiversity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
name?: string | null | undefined;
createdAt?: string | null | undefined;
updatedAt?: string | null | undefined;
totalCount?: number | null | undefined;
id?: string | null | undefined;
locations?: {
count?: number | null | undefined;
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}[] | null | undefined;
topTopics?: {
name?: string | null | undefined;
}[] | null | undefined;
topCategories?: {
name?: string | null | undefined;
}[] | null | undefined;
topCountries?: string[] | null | undefined;
imageUrl?: string | null | undefined;
initializedAt?: string | null | undefined;
duplicateOf?: string | null | undefined;
slug?: string | null | undefined;
summary?: string | null | undefined;
shortSummary?: string | null | undefined;
summaryReferences?: string[] | null | undefined;
imageSource?: {
domain?: string | null | undefined;
paywall?: boolean | null | undefined;
location?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
} | null | undefined;
} | null | undefined;
keyPoints?: {
point?: string | null | undefined;
references?: string[] | null | undefined;
}[] | null | undefined;
questions?: {
references?: string[] | null | undefined;
question?: string | null | undefined;
answer?: string | null | undefined;
}[] | null | undefined;
uniqueSources?: string[] | null | undefined;
selectedArticles?: unknown[] | null | undefined;
sentiment?: {
positive?: number | null | undefined;
negative?: number | null | undefined;
neutral?: number | null | undefined;
} | null | undefined;
uniqueCount?: number | null | undefined;
reprintCount?: number | null | undefined;
countries?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topics?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
categories?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
taxonomies?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topTaxonomies?: {
name?: string | null | undefined;
}[] | null | undefined;
people?: {
name?: string | null | undefined;
count?: number | null | undefined;
wikidataId?: string | null | undefined;
}[] | null | undefined;
topPeople?: {
name?: string | null | undefined;
wikidataId?: string | null | undefined;
}[] | null | undefined;
companies?: {
name?: string | null | undefined;
count?: number | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}[] | null | undefined;
topCompanies?: {
name?: string | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}[] | null | undefined;
topLocations?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}[] | null | undefined;
highlights?: Record<string, string[]> | null | undefined;
sourceDiversity?: number | null | undefined;
}, {
name?: string | null | undefined;
createdAt?: string | null | undefined;
updatedAt?: string | null | undefined;
totalCount?: number | null | undefined;
id?: string | null | undefined;
locations?: {
count?: number | null | undefined;
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}[] | null | undefined;
topTopics?: {
name?: string | null | undefined;
}[] | null | undefined;
topCategories?: {
name?: string | null | undefined;
}[] | null | undefined;
topCountries?: string[] | null | undefined;
imageUrl?: string | null | undefined;
initializedAt?: string | null | undefined;
duplicateOf?: string | null | undefined;
slug?: string | null | undefined;
summary?: string | null | undefined;
shortSummary?: string | null | undefined;
summaryReferences?: string[] | null | undefined;
imageSource?: {
domain?: string | null | undefined;
paywall?: boolean | null | undefined;
location?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
coordinates?: {
lat?: number | null | undefined;
lon?: number | null | undefined;
} | null | undefined;
} | null | undefined;
} | null | undefined;
keyPoints?: {
point?: string | null | undefined;
references?: string[] | null | undefined;
}[] | null | undefined;
questions?: {
references?: string[] | null | undefined;
question?: string | null | undefined;
answer?: string | null | undefined;
}[] | null | undefined;
uniqueSources?: string[] | null | undefined;
selectedArticles?: unknown[] | null | undefined;
sentiment?: {
positive?: number | null | undefined;
negative?: number | null | undefined;
neutral?: number | null | undefined;
} | null | undefined;
uniqueCount?: number | null | undefined;
reprintCount?: number | null | undefined;
countries?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topics?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
categories?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
taxonomies?: {
name?: string | null | undefined;
count?: number | null | undefined;
}[] | null | undefined;
topTaxonomies?: {
name?: string | null | undefined;
}[] | null | undefined;
people?: {
name?: string | null | undefined;
count?: number | null | undefined;
wikidataId?: string | null | undefined;
}[] | null | undefined;
topPeople?: {
name?: string | null | undefined;
wikidataId?: string | null | undefined;
}[] | null | undefined;
companies?: {
name?: string | null | undefined;
count?: number | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}[] | null | undefined;
topCompanies?: {
name?: string | null | undefined;
id?: string | null | undefined;
domains?: string[] | null | undefined;
symbols?: string[] | null | undefined;
}[] | null | undefined;
topLocations?: {
country?: string | null | undefined;
state?: string | null | undefined;
county?: string | null | undefined;
city?: string | null | undefined;
area?: string | null | undefined;
}[] | null | undefined;
highlights?: Record<string, string[]> | null | undefined;
sourceDiversity?: number | null | undefined;
}>;
type NewsCluster = z.infer<typeof NewsClusterSchema>;
declare const PlaceSchema: z.ZodObject<{
osmId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
road: z.ZodNullable<z.ZodOptional<z.ZodString>>;
quarter: z.ZodNullable<z.ZodOptional<z.ZodString>>;
suburb: z.ZodNullable<z.ZodOptional<z.ZodString>>;
city: z.ZodNullable<z.ZodOptional<z.ZodString>>;
town: z.ZodNullable<z.ZodOptional<z.ZodString>>;
county: z.ZodNullable<z.ZodOptional<z.ZodString>>;
stateDistrict: z.ZodNullable<z.ZodOptional<z.ZodString>>;
state: z.ZodNullable<z.ZodOptional<z.ZodString>>;
postcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
country: z.ZodNullable<z.ZodOptional<z.ZodString>>;
countryCode: z.ZodNullab