Vercel/drains
@swamp/vercel/drainsv2026.10.23.2
01README
Vercel drains infrastructure models
02Release Notes
- Updated: drains
03Behaviors
@swamp/vercel/drains/drainsv2026.10.23.2drains.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| teamId? | string | Vercel team ID |
| slug? | string | Vercel team slug (alternative to teamId) |
| name? | string | |
| projects? | enum | |
| projectIds? | array | |
| filter? | object | |
| schemas? | record | |
| delivery? | object | |
| sampling? | array | |
| transforms? | array | |
| status? | enum | |
| source? | string | |
| token? | string | Vercel API token; overrides the VERCEL_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault. |
fn create()
Create a Drains
fn get(id: string)
Get a Drains
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Drains |
fn lookup(allowMissing?: boolean)
Look up an existing Drains by matching global argument values and import it into state
| Argument | Type | Description |
|---|---|---|
| allowMissing? | boolean | Succeed and record found: false in lookupResult when nothing matches, instead of failing |
fn adopt(id: string)
Import an existing Drains by ID into state for management
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Drains to import |
fn update(identifier?: string)
Update Drains attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Drains by id (e.g. one discovered by list) |
fn delete(id: string)
Delete the Drains
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Drains |
fn sync(identifier?: string)
Sync Drains state from Vercel
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Drains by id (e.g. one discovered by list) |
Resources
state(infinite)— Drains resource state
lookupResult(infinite)— Outcome of the most recent lookup
04Previous Versions
2026.10.23.1AGPL-3.0-or-later
- Updated: drains
2026.10.20.3AGPL-3.0-or-later
- Updated: drains
2026.10.20.2AGPL-3.0-or-later
- Updated: drains
Modified 1 behaviors
2026.10.20.1AGPL-3.0-or-later
- Updated: drains
2026.10.17.1AGPL-3.0-or-later(was none)
- Updated: drains
2026.10.13.1
- Updated: drains
2026.10.01.1
- Updated: drains
2026.08.03.3
- Updated: drains
2026.08.03.2
- Updated: drains
05Stats
A
100 / 100
Downloads
36
Archive size
12.5 KB
Verified by Swamp
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
06Platforms
07Labels