Skip to content

feat: Updated OpenAPI spec#280

Merged
github-actions[bot] merged 1 commit intomainfrom
bot/update-openapi
Mar 25, 2026
Merged

feat: Updated OpenAPI spec#280
github-actions[bot] merged 1 commit intomainfrom
bot/update-openapi

Conversation

@HavenDV
Copy link
Copy Markdown
Contributor

@HavenDV HavenDV commented Mar 25, 2026

Automated OpenAPI spec update

@github-actions github-actions bot merged commit 4472164 into main Mar 25, 2026
3 checks passed
@github-actions github-actions bot deleted the bot/update-openapi branch March 25, 2026 18:43
HavenDV added a commit that referenced this pull request Apr 17, 2026
- Add src/libs/tryAGI.OpenAI/build-asyncapi.py that synthesizes
  asyncapi.json from openapi.yaml by extracting every
  Realtime{Client,Server}Event* schema plus transitive deps
  (12 client events, 47 server events, ~105 schemas). Picks up
  conversation.item.retrieve, output_audio_buffer.clear, and
  transcription_session.update client events plus ~14 new server
  events (MCP tool lifecycle, DTMF, input-audio timeout, GA-renamed
  conversation.item.added/done, transcription deltas/segments,
  output_audio_buffer.*, transcription_session.updated) that the
  handcrafted spec was missing.
- Wire python3 build-asyncapi.py into generate.sh with a PyYAML
  bootstrap so CI / fresh clones self-install the dep on first run.
- Refresh Generated/ realtime files from the new asyncapi.json.
- Patch hand-written code for the Stainless rename AutoSDK now
  propagates (CreateChatCompletionRequest.Value2 →
  CreateChatCompletionRequestVariant2, StopConfiguration.Value{1,2}
  → StopConfigurationVariant{1,2}) and disambiguate 5 OpenAiClient
  constructor calls that now match both the old 4-param and new
  5-param (AutoSDKClientOptions) overloads — unblocks the build
  after recent autoupdate runs.
- Add Tests.AsyncApiSpecRoundtrip that runs build-asyncapi.py against
  openapi.yaml and fails if the checked-in asyncapi.json drifts —
  forces future openapi.yaml updates to also refresh asyncapi.json.

Related AutoSDK issues filed from evaluating the generated Realtime
WebSocket client vs. the manual OpenAISharp:
- #277 server variables + typed Connect overload
- #278 WebSocket subprotocol auth (browser-compatible)
- #279 ReceiveUpdatesAsync multi-frame assembly + error hook
- #280 base64/binary convenience overloads

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant