[fix]: Add bedrock to provider enum in Zod schemas and OpenAPI spec

Merged
SH
9mo ago
+18-3

Summary

  • Adds "bedrock" to the provider enum in ModelConfigObjectSchema and AgentConfigSchema (Zod schemas in packages/core/lib/v3/types/public/api.ts)
  • Regenerates packages/server/openapi.v3.yaml via pnpm 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:openapi produces updated spec with bedrock in all 4 provider enum locations
  • Stainless picks up the OpenAPI change and regenerates SDKs with bedrock in the provider literal 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.