[chore]: commit updated spec#2095
Conversation
|
✱ Stainless preview buildsThis PR will update the ✅ stagehand-go studio · code
|
There was a problem hiding this comment.
No issues found across 2 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant Client as API Client
participant V3 as Server v3
participant V4 as Server v4
participant Schema as OpenAPI Spec Schema
participant Variables as Variables Schema
participant Auth as Auth Middleware
participant APIKey as API Key Store
Note over Client,APIKey: OpenAPI Schema Regeneration Flow
Client->>V3: Request with variables parameter
V3->>Schema: Validate against v3 spec
alt variables schema
Schema->>Variables: CHANGED: Description wraps to new line
Variables-->>Schema: Validated
end
Schema-->>V3: Validation result
V3-->>Client: Response
Client->>V4: Request with projectId header
V4->>Auth: Check authentication
Auth->>APIKey: CHANGED: projectId no longer required
Note over Auth,APIKey: API keys are now project-scoped
APIKey-->>Auth: Project context from key
Auth-->>V4: Authenticated
V4->>Schema: Validate against v4 spec
alt projectId in request body
Schema->>Schema: CHANGED: projectId marked deprecated
end
alt projectId in response body
Schema->>Schema: CHANGED: projectId marked deprecated
end
Schema-->>V4: Validation result
V4-->>Client: Response with deprecated projectId fields
Note over V3,V4: Both specs regenerated from updated schema descriptions
why
what changed
Summary by cubic
Regenerated OpenAPI specs for
packages/server-v3andpackages/server-v4to align with schema description updates. In v4, thex-bb-project-idheader and relatedprojectIdfields are now deprecated since API keys are project-scoped.x-bb-project-idheader.projectIdin v4 session payloads and ignore it in responses.Written for commit 8dd382e. Summary will update on new commits.