Skip to main content

Vercel/ai Gateway

@swamp/vercel/ai-gatewayv2026.10.29.1· AGPL-3.0-or-later· 2d agoBEHAVIORS
01README

Vercel ai-gateway infrastructure models

02Release Notes
  • Updated: byok_credentials
03Behaviors1
@swamp/vercel/ai-gateway/byok-credentialsv2026.10.29.1byok_credentials.ts

Global Arguments

ArgumentTypeDescription
teamId?stringVercel team ID
slug?stringVercel team slug (alternative to teamId)
name?stringThe developer-entered name for this credential
active?booleanWhether the credential is active and can be used
zeroDataRetention?booleanWhether the customer attested this external credential has a zero data retention policy
userId?stringThe ID of the user performing this action, used for Activity-log attribution.
ownerId?stringThe owner ID for this credential. Ignored for customer tokens, which always create in their own team.
providerSlug?stringThe provider slug this credential is for (e.g., "openai", "anthropic")
mappings?arrayModel mappings to create atomically with the credential (e.g. Azure deployments). One DynamoDB transaction holds the credential plus all mappings, so at most 99 mappings fit.
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 Byok Credentials
fn get(id: string)
Get a Byok Credentials
ArgumentTypeDescription
idstringThe ID of the Byok Credentials
fn adopt(id: string)
Import an existing Byok Credentials by ID into state for management
ArgumentTypeDescription
idstringThe ID of the Byok Credentials to import
fn update(identifier?: string)
Update Byok Credentials attributes
ArgumentTypeDescription
identifier?stringTarget a specific Byok Credentials by credentialId (e.g. one discovered by list)
fn delete(id: string)
Delete the Byok Credentials
ArgumentTypeDescription
idstringThe ID of the Byok Credentials
fn sync(identifier?: string)
Sync Byok Credentials state from Vercel
ArgumentTypeDescription
identifier?stringTarget a specific Byok Credentials by credentialId (e.g. one discovered by list)

Resources

state(infinite)— Byok Credentials resource state
04Previous Versions1
2026.10.28.1AGPL-3.0-or-later
  • Added: byok_credentials
05Stats
A
100 / 100
Downloads
0
Archive size
8.1 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