[fix]: Add bedrock to provider enum in Zod schemas and OpenAPI spec
Merged
SH
9mo ago+18+18+01234567890123456789-3-3-0123456789
Summary
- Adds
"bedrock"to theproviderenum inModelConfigObjectSchemaandAgentConfigSchema(Zod schemas inpackages/core/lib/v3/types/public/api.ts) - Regenerates
packages/server/openapi.v3.yamlviapnpm gen:openapi
Context
Bedrock was added to AISDK_PROVIDERS and LLMProvider in PRs #1604 and #1617, but the Zod schemas that feed the OpenAPI spec (and ultimately the Stainless-generated SDKs) were never updated. This means the Python/Go/etc. SDK type definitions don't include "bedrock" as a valid provider option.
Companion PR in bb/core: https://github.com/browserbase/core/pull/7668
Test plan
-
pnpm gen:openapiproduces updated spec withbedrockin all 4 provider enum locations - Stainless picks up the OpenAPI change and regenerates SDKs with
bedrockin theproviderliteral type
🤖 Generated with Claude Code
Summary by cubic
Add "bedrock" to provider enums in ModelConfigObjectSchema/AgentConfigSchema and regenerate the OpenAPI spec so SDKs accept it and stay in sync with AISDK_PROVIDERS/LLMProvider. Also update AgentType to include "bedrock" to fix a server build type mismatch, and add a patch changeset to publish and unblock Python/Go SDK type generation.