UNPKG

@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>

127 lines 6.02 kB
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 declare const QueryParamBlocks: { readonly BuildStart: "build-start"; readonly DeploymentStart: "deployment-start"; readonly DeploymentAlias: "deployment-alias"; readonly DeploymentPromotion: "deployment-promotion"; readonly None: "none"; }; export type QueryParamBlocks = ClosedEnum<typeof QueryParamBlocks>; export type ListProjectChecksRequest = { projectIdOrName: string; blocks?: QueryParamBlocks | 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 declare const ListProjectChecksRequires: { readonly BuildReady: "build-ready"; readonly DeploymentUrl: "deployment-url"; readonly None: "none"; }; export type ListProjectChecksRequires = ClosedEnum<typeof ListProjectChecksRequires>; export declare const ListProjectChecksSourceProvider: { readonly Bitbucket: "bitbucket"; readonly Github: "github"; readonly Gitlab: "gitlab"; }; export type ListProjectChecksSourceProvider = ClosedEnum<typeof ListProjectChecksSourceProvider>; export type ListProjectChecksSource3 = { kind: "git-provider"; provider: ListProjectChecksSourceProvider; externalCheckName: string; }; export type ListProjectChecksSource2 = { kind: "webhook"; webhookId?: string | undefined; }; export type ListProjectChecksSource1 = { kind: "integration"; integrationId: string; integrationConfigurationId: string; resourceId?: string | undefined; externalResourceId?: string | undefined; }; export type ListProjectChecksSource = ListProjectChecksSource1 | ListProjectChecksSource2 | ListProjectChecksSource3; export declare const ListProjectChecksBlocks: { readonly BuildStart: "build-start"; readonly DeploymentAlias: "deployment-alias"; readonly DeploymentPromotion: "deployment-promotion"; readonly DeploymentStart: "deployment-start"; readonly None: "none"; }; export type ListProjectChecksBlocks = ClosedEnum<typeof ListProjectChecksBlocks>; export declare const ListProjectChecksSourceKind: { readonly GitProvider: "git-provider"; readonly Integration: "integration"; readonly Vercel: "vercel"; readonly Webhook: "webhook"; }; export type ListProjectChecksSourceKind = ClosedEnum<typeof ListProjectChecksSourceKind>; export type Checks = { id: string; name: string; ownerId: string; projectId: string; isRerequestable: boolean; requires: ListProjectChecksRequires; source: ListProjectChecksSource1 | ListProjectChecksSource2 | ListProjectChecksSource3; blocks: ListProjectChecksBlocks; targets: Array<string>; sourceKind: ListProjectChecksSourceKind; sourceIntegrationConfigurationId?: string | undefined; timeout: number; createdAt: number; updatedAt: number; deletedAt?: number | undefined; }; export type ListProjectChecksResponseBody = { checks: Array<Checks>; }; /** @internal */ export declare const QueryParamBlocks$outboundSchema: z.ZodNativeEnum<typeof QueryParamBlocks>; /** @internal */ export type ListProjectChecksRequest$Outbound = { projectIdOrName: string; blocks?: string | undefined; teamId?: string | undefined; slug?: string | undefined; }; /** @internal */ export declare const ListProjectChecksRequest$outboundSchema: z.ZodType<ListProjectChecksRequest$Outbound, z.ZodTypeDef, ListProjectChecksRequest>; export declare function listProjectChecksRequestToJSON(listProjectChecksRequest: ListProjectChecksRequest): string; /** @internal */ export declare const ListProjectChecksRequires$inboundSchema: z.ZodNativeEnum<typeof ListProjectChecksRequires>; /** @internal */ export declare const ListProjectChecksSourceProvider$inboundSchema: z.ZodNativeEnum<typeof ListProjectChecksSourceProvider>; /** @internal */ export declare const ListProjectChecksSource3$inboundSchema: z.ZodType<ListProjectChecksSource3, z.ZodTypeDef, unknown>; export declare function listProjectChecksSource3FromJSON(jsonString: string): SafeParseResult<ListProjectChecksSource3, SDKValidationError>; /** @internal */ export declare const ListProjectChecksSource2$inboundSchema: z.ZodType<ListProjectChecksSource2, z.ZodTypeDef, unknown>; export declare function listProjectChecksSource2FromJSON(jsonString: string): SafeParseResult<ListProjectChecksSource2, SDKValidationError>; /** @internal */ export declare const ListProjectChecksSource1$inboundSchema: z.ZodType<ListProjectChecksSource1, z.ZodTypeDef, unknown>; export declare function listProjectChecksSource1FromJSON(jsonString: string): SafeParseResult<ListProjectChecksSource1, SDKValidationError>; /** @internal */ export declare const ListProjectChecksSource$inboundSchema: z.ZodType<ListProjectChecksSource, z.ZodTypeDef, unknown>; export declare function listProjectChecksSourceFromJSON(jsonString: string): SafeParseResult<ListProjectChecksSource, SDKValidationError>; /** @internal */ export declare const ListProjectChecksBlocks$inboundSchema: z.ZodNativeEnum<typeof ListProjectChecksBlocks>; /** @internal */ export declare const ListProjectChecksSourceKind$inboundSchema: z.ZodNativeEnum<typeof ListProjectChecksSourceKind>; /** @internal */ export declare const Checks$inboundSchema: z.ZodType<Checks, z.ZodTypeDef, unknown>; export declare function checksFromJSON(jsonString: string): SafeParseResult<Checks, SDKValidationError>; /** @internal */ export declare const ListProjectChecksResponseBody$inboundSchema: z.ZodType<ListProjectChecksResponseBody, z.ZodTypeDef, unknown>; export declare function listProjectChecksResponseBodyFromJSON(jsonString: string): SafeParseResult<ListProjectChecksResponseBody, SDKValidationError>; //# sourceMappingURL=listprojectchecksop.d.ts.map