Vercel/ai Gateway
@swamp/vercel/ai-gatewayv2026.10.29.1
01README
Vercel ai-gateway infrastructure models
02Release Notes
- Updated: byok_credentials
03Behaviors
@swamp/vercel/ai-gateway/byok-credentialsv2026.10.29.1byok_credentials.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| teamId? | string | Vercel team ID |
| slug? | string | Vercel team slug (alternative to teamId) |
| name? | string | The developer-entered name for this credential |
| active? | boolean | Whether the credential is active and can be used |
| zeroDataRetention? | boolean | Whether the customer attested this external credential has a zero data retention policy |
| userId? | string | The ID of the user performing this action, used for Activity-log attribution. |
| ownerId? | string | The owner ID for this credential. Ignored for customer tokens, which always create in their own team. |
| providerSlug? | string | The provider slug this credential is for (e.g., "openai", "anthropic") |
| mappings? | array | Model 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? | 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 Byok Credentials
fn get(id: string)
Get a Byok Credentials
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Byok Credentials |
fn adopt(id: string)
Import an existing Byok Credentials by ID into state for management
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Byok Credentials to import |
fn update(identifier?: string)
Update Byok Credentials attributes
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Byok Credentials by credentialId (e.g. one discovered by list) |
fn delete(id: string)
Delete the Byok Credentials
| Argument | Type | Description |
|---|---|---|
| id | string | The ID of the Byok Credentials |
fn sync(identifier?: string)
Sync Byok Credentials state from Vercel
| Argument | Type | Description |
|---|---|---|
| identifier? | string | Target a specific Byok Credentials by credentialId (e.g. one discovered by list) |
Resources
state(infinite)— Byok Credentials resource state
04Previous Versions
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