Vercel/feature Flags
@swamp/vercel/feature-flagsv2026.09.15.1
01README
Vercel feature-flags infrastructure models
02Release Notes
- Updated: flags
03Models
@swamp/vercel/feature-flags/flagsv2026.09.15.1flags.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| teamId? | string | Vercel team ID |
| slug? | string | Vercel team slug (alternative to teamId) |
| projectIdOrName | string | The project id or name |
| createdBy? | string | The user who created this patch |
| message? | string | Additional message for this version |
| variants? | array | The variants of the flag |
| environments | record | The configuration for the flag in different environments |
| seed? | number | A random seed to prevent split points in different flags from having the same targets |
| description? | string | A description of the flag |
| state? | enum | |
| maintainerIds? | array | The user ids of the maintainers of the flag |
| permanent? | boolean | Whether this flag is marked as permanent, indicating it should not be removed |
| tags? | array | Tags for categorizing the flag |
| kind | enum | The kind of flag |
| 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 Flags
fn get(id: string)
Get a Flags
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Flags |
fn lookup()
Look up an existing Flags by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Flags by ID into state for management
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Flags to import |
fn update(identifier?: string)
Update Flags attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Flags by id (e.g. one discovered by list) |
fn delete(id: string)
Delete the Flags
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Flags |
fn sync(identifier?: string)
Sync Flags state from Vercel
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Flags by id (e.g. one discovered by list) |
Resources
state(infinite)— Flags resource state
@swamp/vercel/feature-flags/sdk-keysv2026.08.03.2sdk_keys.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| teamId? | string | Vercel team ID |
| slug? | string | Vercel team slug (alternative to teamId) |
| projectIdOrName | string | The project id or name |
| sdkKeyType | enum | |
| environment | string | |
| label? | 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 Sdk Keys
fn lookup()
Look up an existing Sdk Keys by matching global argument values and import it into state
fn delete(id: string)
Delete the Sdk Keys
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Sdk Keys |
Resources
state(infinite)— Sdk Keys resource state
@swamp/vercel/feature-flags/segmentsv2026.08.03.4segments.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| teamId? | string | Vercel team ID |
| slug? | string | Vercel team slug (alternative to teamId) |
| projectIdOrName | string | The project id or name |
| operations? | array | |
| label | string | |
| description? | string | |
| data | object | The data of the segment |
| hint | string | |
| createdBy? | string | The entity who created the segment |
| 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 Segments
fn get(id: string)
Get a Segments
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Segments |
fn lookup()
Look up an existing Segments by matching global argument values and import it into state
fn adopt(id: string)
Import an existing Segments by ID into state for management
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Segments to import |
fn update(identifier?: string)
Update Segments attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Segments by id (e.g. one discovered by list) |
fn delete(id: string)
Delete the Segments
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Segments |
fn sync(identifier?: string)
Sync Segments state from Vercel
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Segments by id (e.g. one discovered by list) |
Resources
state(infinite)— Segments resource state
04Previous Versions
2026.08.19.1
- Updated: flags
2026.08.18.1
- Updated: flags
2026.08.03.4
- Updated: flags
- Updated: segments
2026.08.03.3
- Updated: flags
- Updated: segments
05Stats
A
100 / 100
Downloads
0
Archive size
18.8 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
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
06Platforms
07Labels