@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>
158 lines • 7.44 kB
TypeScript
import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
export type GetAllChecksRequest = {
/**
* The deployment to get all checks for
*/
deploymentId: string;
/**
* 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 declare const GetAllChecksConclusion: {
readonly Canceled: "canceled";
readonly Failed: "failed";
readonly Neutral: "neutral";
readonly Skipped: "skipped";
readonly Stale: "stale";
readonly Succeeded: "succeeded";
};
export type GetAllChecksConclusion = ClosedEnum<typeof GetAllChecksConclusion>;
export declare const GetAllChecksSource: {
readonly WebVitals: "web-vitals";
};
export type GetAllChecksSource = ClosedEnum<typeof GetAllChecksSource>;
export type GetAllChecksFCP = {
value: number | null;
previousValue?: number | undefined;
source: GetAllChecksSource;
};
export declare const GetAllChecksChecksSource: {
readonly WebVitals: "web-vitals";
};
export type GetAllChecksChecksSource = ClosedEnum<typeof GetAllChecksChecksSource>;
export type GetAllChecksLCP = {
value: number | null;
previousValue?: number | undefined;
source: GetAllChecksChecksSource;
};
export declare const GetAllChecksChecksResponseSource: {
readonly WebVitals: "web-vitals";
};
export type GetAllChecksChecksResponseSource = ClosedEnum<typeof GetAllChecksChecksResponseSource>;
export type GetAllChecksCLS = {
value: number | null;
previousValue?: number | undefined;
source: GetAllChecksChecksResponseSource;
};
export declare const GetAllChecksChecksResponse200Source: {
readonly WebVitals: "web-vitals";
};
export type GetAllChecksChecksResponse200Source = ClosedEnum<typeof GetAllChecksChecksResponse200Source>;
export type GetAllChecksTBT = {
value: number | null;
previousValue?: number | undefined;
source: GetAllChecksChecksResponse200Source;
};
export declare const GetAllChecksChecksResponse200ApplicationJSONSource: {
readonly WebVitals: "web-vitals";
};
export type GetAllChecksChecksResponse200ApplicationJSONSource = ClosedEnum<typeof GetAllChecksChecksResponse200ApplicationJSONSource>;
export type GetAllChecksVirtualExperienceScore = {
value: number | null;
previousValue?: number | undefined;
source: GetAllChecksChecksResponse200ApplicationJSONSource;
};
export type GetAllChecksMetrics = {
fcp: GetAllChecksFCP;
lcp: GetAllChecksLCP;
cls: GetAllChecksCLS;
tbt: GetAllChecksTBT;
virtualExperienceScore?: GetAllChecksVirtualExperienceScore | undefined;
};
export type GetAllChecksOutput = {
metrics?: GetAllChecksMetrics | undefined;
};
export declare const GetAllChecksStatus: {
readonly Completed: "completed";
readonly Registered: "registered";
readonly Running: "running";
};
export type GetAllChecksStatus = ClosedEnum<typeof GetAllChecksStatus>;
export type GetAllChecksChecks = {
completedAt?: number | undefined;
conclusion?: GetAllChecksConclusion | undefined;
createdAt: number;
detailsUrl?: string | undefined;
id: string;
integrationId: string;
name: string;
output?: GetAllChecksOutput | undefined;
path?: string | undefined;
rerequestable: boolean;
blocking: boolean;
startedAt?: number | undefined;
status: GetAllChecksStatus;
updatedAt: number;
};
export type GetAllChecksResponseBody = {
checks: Array<GetAllChecksChecks>;
};
/** @internal */
export type GetAllChecksRequest$Outbound = {
deploymentId: string;
teamId?: string | undefined;
slug?: string | undefined;
};
/** @internal */
export declare const GetAllChecksRequest$outboundSchema: z.ZodType<GetAllChecksRequest$Outbound, z.ZodTypeDef, GetAllChecksRequest>;
export declare function getAllChecksRequestToJSON(getAllChecksRequest: GetAllChecksRequest): string;
/** @internal */
export declare const GetAllChecksConclusion$inboundSchema: z.ZodNativeEnum<typeof GetAllChecksConclusion>;
/** @internal */
export declare const GetAllChecksSource$inboundSchema: z.ZodNativeEnum<typeof GetAllChecksSource>;
/** @internal */
export declare const GetAllChecksFCP$inboundSchema: z.ZodType<GetAllChecksFCP, z.ZodTypeDef, unknown>;
export declare function getAllChecksFCPFromJSON(jsonString: string): SafeParseResult<GetAllChecksFCP, SDKValidationError>;
/** @internal */
export declare const GetAllChecksChecksSource$inboundSchema: z.ZodNativeEnum<typeof GetAllChecksChecksSource>;
/** @internal */
export declare const GetAllChecksLCP$inboundSchema: z.ZodType<GetAllChecksLCP, z.ZodTypeDef, unknown>;
export declare function getAllChecksLCPFromJSON(jsonString: string): SafeParseResult<GetAllChecksLCP, SDKValidationError>;
/** @internal */
export declare const GetAllChecksChecksResponseSource$inboundSchema: z.ZodNativeEnum<typeof GetAllChecksChecksResponseSource>;
/** @internal */
export declare const GetAllChecksCLS$inboundSchema: z.ZodType<GetAllChecksCLS, z.ZodTypeDef, unknown>;
export declare function getAllChecksCLSFromJSON(jsonString: string): SafeParseResult<GetAllChecksCLS, SDKValidationError>;
/** @internal */
export declare const GetAllChecksChecksResponse200Source$inboundSchema: z.ZodNativeEnum<typeof GetAllChecksChecksResponse200Source>;
/** @internal */
export declare const GetAllChecksTBT$inboundSchema: z.ZodType<GetAllChecksTBT, z.ZodTypeDef, unknown>;
export declare function getAllChecksTBTFromJSON(jsonString: string): SafeParseResult<GetAllChecksTBT, SDKValidationError>;
/** @internal */
export declare const GetAllChecksChecksResponse200ApplicationJSONSource$inboundSchema: z.ZodNativeEnum<typeof GetAllChecksChecksResponse200ApplicationJSONSource>;
/** @internal */
export declare const GetAllChecksVirtualExperienceScore$inboundSchema: z.ZodType<GetAllChecksVirtualExperienceScore, z.ZodTypeDef, unknown>;
export declare function getAllChecksVirtualExperienceScoreFromJSON(jsonString: string): SafeParseResult<GetAllChecksVirtualExperienceScore, SDKValidationError>;
/** @internal */
export declare const GetAllChecksMetrics$inboundSchema: z.ZodType<GetAllChecksMetrics, z.ZodTypeDef, unknown>;
export declare function getAllChecksMetricsFromJSON(jsonString: string): SafeParseResult<GetAllChecksMetrics, SDKValidationError>;
/** @internal */
export declare const GetAllChecksOutput$inboundSchema: z.ZodType<GetAllChecksOutput, z.ZodTypeDef, unknown>;
export declare function getAllChecksOutputFromJSON(jsonString: string): SafeParseResult<GetAllChecksOutput, SDKValidationError>;
/** @internal */
export declare const GetAllChecksStatus$inboundSchema: z.ZodNativeEnum<typeof GetAllChecksStatus>;
/** @internal */
export declare const GetAllChecksChecks$inboundSchema: z.ZodType<GetAllChecksChecks, z.ZodTypeDef, unknown>;
export declare function getAllChecksChecksFromJSON(jsonString: string): SafeParseResult<GetAllChecksChecks, SDKValidationError>;
/** @internal */
export declare const GetAllChecksResponseBody$inboundSchema: z.ZodType<GetAllChecksResponseBody, z.ZodTypeDef, unknown>;
export declare function getAllChecksResponseBodyFromJSON(jsonString: string): SafeParseResult<GetAllChecksResponseBody, SDKValidationError>;
//# sourceMappingURL=getallchecksop.d.ts.map