Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/vercel

src/list-deployments.js

13 lines · 629 B · JavaScript
import { listDeployments } from './vercel.js'

/**
 * List deployments for the authenticated account, team, or project.
 * @param {Object} [input] Optional filters (`projectId`, `limit`, `teamId`, `teamSlug`).
 * @returns {Promise<{ items: Array<{ id: string, name: string | null, url: string | null, state: string | null }>, pagination: object | null }>}
 * @example
 * import listDeployments from 'kody:@kody/vercel/list-deployments'
 * const { items } = await listDeployments({ projectId: 'prj_123', limit: 10 })
 */
export default async function listDeploymentsEntrypoint(input = {}) {
	return await listDeployments(input)
}