Skip to main content

Vercel/feature Flags

@swamp/vercel/feature-flagsv2026.09.15.1· 1d agoMODELS
01README

Vercel feature-flags infrastructure models

02Release Notes
  • Updated: flags
03Models3
@swamp/vercel/feature-flags/flagsv2026.09.15.1flags.ts

Global Arguments

ArgumentTypeDescription
teamId?stringVercel team ID
slug?stringVercel team slug (alternative to teamId)
projectIdOrNamestringThe project id or name
createdBy?stringThe user who created this patch
message?stringAdditional message for this version
variants?arrayThe variants of the flag
environmentsrecordThe configuration for the flag in different environments
seed?numberA random seed to prevent split points in different flags from having the same targets
description?stringA description of the flag
state?enum
maintainerIds?arrayThe user ids of the maintainers of the flag
permanent?booleanWhether this flag is marked as permanent, indicating it should not be removed
tags?arrayTags for categorizing the flag
kindenumThe kind of flag
token?stringVercel 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
ArgumentTypeDescription
idstringThe 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
ArgumentTypeDescription
idstringThe ID of the Flags to import
fn update(identifier?: string)
Update Flags attributes
ArgumentTypeDescription
identifier?stringTarget a specific Flags by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Flags
ArgumentTypeDescription
idstringThe ID of the Flags
fn sync(identifier?: string)
Sync Flags state from Vercel
ArgumentTypeDescription
identifier?stringTarget 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

ArgumentTypeDescription
teamId?stringVercel team ID
slug?stringVercel team slug (alternative to teamId)
projectIdOrNamestringThe project id or name
sdkKeyTypeenum
environmentstring
label?string
token?stringVercel 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
ArgumentTypeDescription
idstringThe ID of the Sdk Keys

Resources

state(infinite)— Sdk Keys resource state
@swamp/vercel/feature-flags/segmentsv2026.08.03.4segments.ts

Global Arguments

ArgumentTypeDescription
teamId?stringVercel team ID
slug?stringVercel team slug (alternative to teamId)
projectIdOrNamestringThe project id or name
operations?array
labelstring
description?string
dataobjectThe data of the segment
hintstring
createdBy?stringThe entity who created the segment
token?stringVercel 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
ArgumentTypeDescription
idstringThe 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
ArgumentTypeDescription
idstringThe ID of the Segments to import
fn update(identifier?: string)
Update Segments attributes
ArgumentTypeDescription
identifier?stringTarget a specific Segments by id (e.g. one discovered by list)
fn delete(id: string)
Delete the Segments
ArgumentTypeDescription
idstringThe ID of the Segments
fn sync(identifier?: string)
Sync Segments state from Vercel
ArgumentTypeDescription
identifier?stringTarget a specific Segments by id (e.g. one discovered by list)

Resources

state(infinite)— Segments resource state
04Previous Versions4
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