Skip to main content

Vercel/feature Flags

@swamp/vercel/feature-flagsv2026.10.23.1· AGPL-3.0-or-later· 8d agoBEHAVIORS
01README

Vercel feature-flags infrastructure models

02Release Notes
  • Updated: flags
  • Updated: sdk_keys
  • Updated: segments
03Behaviors3
@swamp/vercel/feature-flags/flagsv2026.10.23.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
environments?recordThe 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
resourceSlug?stringA unique (per project) key for the flag, composed of letters, numbers, dashes, and underscores
kind?enumThe 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(allowMissing?: boolean)
Look up an existing Flags by matching global argument values and import it into state
ArgumentTypeDescription
allowMissing?booleanSucceed and record found: false in lookupResult when nothing matches, instead of failing
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
lookupResult(infinite)— Outcome of the most recent lookup
@swamp/vercel/feature-flags/sdk-keysv2026.10.23.1sdk_keys.ts

Global Arguments

ArgumentTypeDescription
teamId?stringVercel team ID
slug?stringVercel team slug (alternative to teamId)
projectIdOrNamestringThe project id or name
sdkKeyType?enum
environment?string
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(allowMissing?: boolean)
Look up an existing Sdk Keys by matching global argument values and import it into state
ArgumentTypeDescription
allowMissing?booleanSucceed and record found: false in lookupResult when nothing matches, instead of failing
fn delete(id: string)
Delete the Sdk Keys
ArgumentTypeDescription
idstringThe ID of the Sdk Keys

Resources

state(infinite)— Sdk Keys resource state
lookupResult(infinite)— Outcome of the most recent lookup
@swamp/vercel/feature-flags/segmentsv2026.10.23.1segments.ts

Global Arguments

ArgumentTypeDescription
teamId?stringVercel team ID
slug?stringVercel team slug (alternative to teamId)
projectIdOrNamestringThe project id or name
operations?array
label?string
description?string
data?objectThe data of the segment
hint?string
resourceSlug?string
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(allowMissing?: boolean)
Look up an existing Segments by matching global argument values and import it into state
ArgumentTypeDescription
allowMissing?booleanSucceed and record found: false in lookupResult when nothing matches, instead of failing
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
lookupResult(infinite)— Outcome of the most recent lookup
04Previous Versions13
2026.10.20.4AGPL-3.0-or-later
  • Updated: sdk_keys
2026.10.20.3AGPL-3.0-or-later
  • Updated: flags
  • Updated: sdk_keys
  • Updated: segments

Modified 3 behaviors

2026.10.20.2AGPL-3.0-or-later
  • Updated: sdk_keys
2026.10.17.1AGPL-3.0-or-later(was none)
  • Updated: flags
  • Updated: segments
2026.10.13.1
  • Updated: flags
  • Updated: sdk_keys
  • Updated: segments
2026.10.02.1
  • Updated: flags
  • Updated: sdk_keys
2026.10.01.1
  • Updated: flags
  • Updated: sdk_keys
  • Updated: segments
2026.09.16.1
  • Updated: flags
  • Updated: sdk_keys
  • Updated: segments
2026.09.15.1
  • Updated: flags
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
33
Archive size
17.6 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