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>

28 lines 1.33 kB
import * as z from "zod/v3"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * Destinations that incoming triggers should be forwarded to. Limited to 3 entries. Set the initial destination with `triggerDestination` during creation. Replace the complete set with `PATCH /v1/connect/connectors/{connector}/trigger-destinations`. */ export type ConnectTriggerDestination = { /** * Vercel project that receives matching trigger requests. */ projectId: string; /** * Stable custom-environment ID to route this destination to. Mutually exclusive with `branch`; omitted destinations keep the legacy production behavior. */ customEnvironmentId?: string | undefined; /** * Git branch used to select a preview deployment. */ branch?: string | undefined; /** * Route path that receives the forwarded trigger request. */ path?: string | undefined; }; /** @internal */ export declare const ConnectTriggerDestination$inboundSchema: z.ZodType<ConnectTriggerDestination, z.ZodTypeDef, unknown>; export declare function connectTriggerDestinationFromJSON(jsonString: string): SafeParseResult<ConnectTriggerDestination, SDKValidationError>; //# sourceMappingURL=connecttriggerdestination.d.ts.map