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>

62 lines (56 loc) 1.99 kB
/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; export type ListConnectorProjectConnectionsRequest = { /** * Stable connector ID or URL-encoded team-scoped UID. Examples: `scl_abc123` or `slack%2Fmy-bot`. */ connector: string; /** * Maximum number of project connections to return. Defaults to 50. */ limit?: number | undefined; /** * Cursor from `pagination.next` on the previous response. */ cursor?: string | undefined; /** * The team ID that scopes the request. Do not send it with slug. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */ teamId?: string | undefined; /** * The team slug that scopes the request. Do not send it with teamId. If both are omitted, Vercel uses the team associated with the token or the authenticated user's default team. The request returns 401 if no team can be selected. */ slug?: string | undefined; }; /** @internal */ export type ListConnectorProjectConnectionsRequest$Outbound = { connector: string; limit?: number | undefined; cursor?: string | undefined; teamId?: string | undefined; slug?: string | undefined; }; /** @internal */ export const ListConnectorProjectConnectionsRequest$outboundSchema: z.ZodType< ListConnectorProjectConnectionsRequest$Outbound, z.ZodTypeDef, ListConnectorProjectConnectionsRequest > = z.object({ connector: z.string(), limit: z.number().int().optional(), cursor: z.string().optional(), teamId: z.string().optional(), slug: z.string().optional(), }); export function listConnectorProjectConnectionsRequestToJSON( listConnectorProjectConnectionsRequest: ListConnectorProjectConnectionsRequest, ): string { return JSON.stringify( ListConnectorProjectConnectionsRequest$outboundSchema.parse( listConnectorProjectConnectionsRequest, ), ); }