@vercel/sdk
Version:
<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>
346 lines • 11.9 kB
TypeScript
import * as z from "zod/v3";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
/**
* Timestamp in milliseconds, or a valid Date string.
*
* @remarks
*
* Selects data from (including) this date and time.
* Will be adjusted according to the desired time granularity.
*/
export type CountPageviewsQueryParamSince = number | string;
/**
* Timestamp in milliseconds, or a valid Date string.
*
* @remarks
*
* Selects data until (including) this date.
* Will be adjusted according to the desired time granularity.
*/
export type CountPageviewsQueryParamUntil = number | string;
export type CountPageviewsRequest = {
/**
* The project identifier or the project name
*/
projectId: string;
/**
* Timestamp in milliseconds, or a valid Date string.
*
* @remarks
*
* Selects data from (including) this date and time.
* Will be adjusted according to the desired time granularity.
*/
since?: number | string | undefined;
/**
* Timestamp in milliseconds, or a valid Date string.
*
* @remarks
*
* Selects data until (including) this date.
* Will be adjusted according to the desired time granularity.
*/
until?: number | string | undefined;
/**
* OData-compliant filter. Encode the value when sending it in a URL.
*
* @remarks
*
* Allows filtering on one or multiple dimensions.
*
* Supported dimensions: country, deviceType, environment, requestPath, referrerHostname, osName, browserName, route, utmSource, utmMedium, utmCampaign, utmContent, utmTerm.
*
* JSON dimensions filtered by key: flags/<name>, for example flags/beta_banner eq 'true'. Wrap keys containing characters other than letters, digits, and underscores in single quotes, for example flags/'my-flag' eq 'true'.
*
* Supported operations include eq, ne, in, and logical operators and, or, not with parentheses. Functions such as startswith are supported by the OData parser.
*/
filter?: string | undefined;
/**
* The Team identifier to perform the request on behalf of.
*/
teamId?: string | undefined;
/**
* The Team slug to perform the request on behalf of.
*/
slug?: string | undefined;
};
export type CountPageviewsQuery = {
since: string;
until: string;
filter?: string | undefined;
};
export type CountPageviewsData2 = {
visitors: number;
pageviews: number;
};
export type CountPageviewsData1 = {
projectId: string;
country: string;
deviceType: string;
environment: string;
requestPath: string;
referrerHostname: string;
osName: string;
browserName: string;
route: string;
utmSource: string;
utmMedium: string;
utmCampaign: string;
utmContent: string;
utmTerm: string;
flags: string;
errorMessage: string;
entryRevalidateSeconds: string;
projectName: string;
deploymentId: string;
pathType: string;
pathTypeVariant: string;
requestHostname: string;
requestResolvedIp: string;
requestMethod: string;
requestExtension: string;
requestId: string;
requestApi: string;
referrerUrl: string;
serverActionName: string;
httpStatus: string;
errorCode: string;
source: string;
edgeType: string;
reason: string;
edgeNetworkRegion: string;
functionRegion: string;
imageTransformationRegion: string;
dataCacheRegion: string;
cause: string;
runtime: string;
provider: string;
isrCacheRegion: string;
isrAction: string;
cacheResult: string;
cacheOperation: string;
cacheHostname: string;
cachePath: string;
cacheHitState: string;
cacheHitLevel: string;
cacheApi: string;
cacheReason: string;
pprState: string;
clientIp: string;
clientIpCountry: string;
clientUserAgent: string;
httpAccept: string;
clientJa4Digest: string;
asnId: string;
asnName: string;
botName: string;
botCategory: string;
botCategoryLegacy: string;
botVerified: string;
botCheckResult: string;
deepAnalysisCheck: string;
wafAction: string;
wafRuleId: string;
ruleCategory: string;
skewProtection: string;
functionStartType: string;
functionDispatcher: string;
isAdditionalRequest: string;
originHostname: string;
originPath: string;
originRoute: string;
fetchType: string;
fetchIndex: string;
imageSource: string;
sourceImage: string;
sourceImagePathname: string;
sourceImageHostname: string;
sourceImageHash: string;
optimizedQuality: string;
optimizedWidthPixels: string;
optimizedFormatMimeType: string;
vdcOperationOrigin: string;
entryName: string;
entryId: string;
entryItemId: string;
tagName: string;
cacheTags: string;
storeId: string;
storeName: string;
blobOperationType: string;
blobOperationLevel: string;
visitorId: string;
eventName: string;
attributionTarget: string;
attributionEventName: string;
metricName: string;
attributes: string;
flagKey: string;
flagVariant: string;
flagEvaluationReason: string;
flagClientName: string;
sdkKeyId: string;
sdkKeyEnvironment: string;
reportingProjectId: string;
reportingProjectName: string;
eventData: string;
middlewareAction: string;
middlewareActionTarget: string;
aiModel: string;
aiGatewayModelId: string;
aiProvider: string;
aiModelType: string;
servedSpeed: string;
virtualModelSlug: string;
virtualModelKind: string;
inferenceEndpointSlug: string;
inferenceScope: string;
inferenceGeoRegion: string;
inferenceProviderRegion: string;
requestedInferenceRegion: string;
costCurrency: string;
marketCostCurrency: string;
cachedInputTokensCurrency: string;
cacheCreationInputTokensCurrency: string;
cacheCreation1hInputTokensCurrency: string;
surchargeCostCurrency: string;
gatewayCostCurrency: string;
keyId: string;
keyName: string;
authMethod: string;
appName: string;
codingAgent: string;
isByok: string;
spendAttribution: string;
isPrivateModel: string;
isStreaming: string;
isRequestZdr: string;
hipaaRequested: string;
quotaRequested: string;
quotaEntityId: string;
quotaEntityType: string;
videoResolution: string;
videoAspectRatio: string;
piiRedactionApplied: string;
moderationApplied: string;
queueName: string;
consumerGroup: string;
messageId: string;
eventType: string;
notificationUrl: string;
queueRegion: string;
sandboxSessionId: string;
sandboxName: string;
workflowRunId: string;
workflowName: string;
workflowStatus: string;
stepRunId: string;
workflowStepName: string;
workflowEventType: string;
region: string;
specVersion: string;
contentType: string;
rewriteDestinationHostname: string;
externalRewriteTargetHost: string;
externalRewriteTargetPath: string;
commitSha: string;
reviewConclusion: string;
pullRequestNumber: string;
repositoryName: string;
repositoryOwner: string;
reviewStatus: string;
pullRequestState: string;
triggeringTag: string;
redirectLocation: string;
microfrontendsResponseReason: string;
microfrontendsMatchedPath: string;
microfrontendsDefaultAppDeploymentId: string;
microfrontendsDefaultAppProjectId: string;
service: string;
isPrefetchRequest: string;
spendReportGroupBy: string;
spendReportDatePart: string;
providerAttemptCanonicalSlug: string;
providerAttemptCredentialType: string;
providerAttemptSuccess: string;
providerAttemptStatusCode: string;
providerAttemptTimeout: string;
providerAttemptIsFinal: string;
providerAttemptNumber: string;
providerAttemptTotalInRequest: string;
generationId: string;
sessionId: string;
contentCaptureStatus: string;
contentCaptureInputs: string;
contentCaptureOutputs: string;
transcriptStatus: string;
transcriptInputs: string;
transcriptOutputs: string;
providerAttemptError: string;
providerAttemptSafetyIdentifier: string;
providerAttemptDevSafetyIdentifier: string;
providerAttemptRegion: string;
providerAttemptModelIndex: string;
toolCallType: string;
toolCallProvider: string;
toolCallSuccess: string;
toolCallErrorType: string;
toolCallStatusCode: string;
environmentId: string;
billableRegion: string;
direction: string;
networkTenancy: string;
trafficSource: string;
networkId: string;
privatelinkEndpointId: string;
privatelinkDnsName: string;
privatelinkIpAddress: string;
additionalProperties?: {
[k: string]: number | null;
} | undefined;
};
export type CountPageviewsData = CountPageviewsData1 | CountPageviewsData2;
export type CountPageviewsResponseBody = {
version: number;
query: CountPageviewsQuery;
data: CountPageviewsData1 | CountPageviewsData2;
};
/** @internal */
export type CountPageviewsQueryParamSince$Outbound = number | string;
/** @internal */
export declare const CountPageviewsQueryParamSince$outboundSchema: z.ZodType<CountPageviewsQueryParamSince$Outbound, z.ZodTypeDef, CountPageviewsQueryParamSince>;
export declare function countPageviewsQueryParamSinceToJSON(countPageviewsQueryParamSince: CountPageviewsQueryParamSince): string;
/** @internal */
export type CountPageviewsQueryParamUntil$Outbound = number | string;
/** @internal */
export declare const CountPageviewsQueryParamUntil$outboundSchema: z.ZodType<CountPageviewsQueryParamUntil$Outbound, z.ZodTypeDef, CountPageviewsQueryParamUntil>;
export declare function countPageviewsQueryParamUntilToJSON(countPageviewsQueryParamUntil: CountPageviewsQueryParamUntil): string;
/** @internal */
export type CountPageviewsRequest$Outbound = {
projectId: string;
since?: number | string | undefined;
until?: number | string | undefined;
filter?: string | undefined;
teamId?: string | undefined;
slug?: string | undefined;
};
/** @internal */
export declare const CountPageviewsRequest$outboundSchema: z.ZodType<CountPageviewsRequest$Outbound, z.ZodTypeDef, CountPageviewsRequest>;
export declare function countPageviewsRequestToJSON(countPageviewsRequest: CountPageviewsRequest): string;
/** @internal */
export declare const CountPageviewsQuery$inboundSchema: z.ZodType<CountPageviewsQuery, z.ZodTypeDef, unknown>;
export declare function countPageviewsQueryFromJSON(jsonString: string): SafeParseResult<CountPageviewsQuery, SDKValidationError>;
/** @internal */
export declare const CountPageviewsData2$inboundSchema: z.ZodType<CountPageviewsData2, z.ZodTypeDef, unknown>;
export declare function countPageviewsData2FromJSON(jsonString: string): SafeParseResult<CountPageviewsData2, SDKValidationError>;
/** @internal */
export declare const CountPageviewsData1$inboundSchema: z.ZodType<CountPageviewsData1, z.ZodTypeDef, unknown>;
export declare function countPageviewsData1FromJSON(jsonString: string): SafeParseResult<CountPageviewsData1, SDKValidationError>;
/** @internal */
export declare const CountPageviewsData$inboundSchema: z.ZodType<CountPageviewsData, z.ZodTypeDef, unknown>;
export declare function countPageviewsDataFromJSON(jsonString: string): SafeParseResult<CountPageviewsData, SDKValidationError>;
/** @internal */
export declare const CountPageviewsResponseBody$inboundSchema: z.ZodType<CountPageviewsResponseBody, z.ZodTypeDef, unknown>;
export declare function countPageviewsResponseBodyFromJSON(jsonString: string): SafeParseResult<CountPageviewsResponseBody, SDKValidationError>;
//# sourceMappingURL=countpageviewsop.d.ts.map