Skip to content

feat: updated examples to the latest library version - #14

Closed
Natalia Markitantova (markitosha) wants to merge 19 commits into
mainfrom
move-examples
Closed

Natalia Markitantova (markitosha) wants to merge 19 commits into
mainfrom
move-examples

Conversation

@markitosha

Copy link
Copy Markdown
Collaborator

No description provided.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
The TranscribeSocket is now held at module scope and reused on subsequent
startSession() calls — only a new config is sent. Per-session callbacks
are mutable module-level vars updated each call; the message handler is
registered once on first connect.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 27, 2026 10:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the SDK example apps (TypeScript + .NET) to match the latest Corti SDK API surface, including WebSocket “connect-with-config” flows and small API renames.

Changes:

  • Bump @corti/sdk in TypeScript examples and update auth helper call sites (authorizeURL).
  • Add new Express routes + Postman requests for “stream/transcribe with config”.
  • Update .NET minimal API examples to the newer SDK patterns (new endpoints, updated message types/enums, client construction tweaks).

Reviewed changes

Copilot reviewed 16 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
sdk/typescript/next-auth-examples/package-lock.json Bumps @corti/sdk to 1.0.0-alpha.1.
sdk/typescript/next-auth-examples/app/page.tsx Updates auth method call to authorizeURL.
sdk/typescript/next-auth-examples/app/lib/utils.ts Tightens JSON body parsing to only accept objects.
sdk/typescript/express-web-api/src/routes/transcribeWithConfig.ts Adds new transcribe route using connect({ configuration }).
sdk/typescript/express-web-api/src/routes/streamWithConfig.ts Adds new stream route using connect({ id, configuration }).
sdk/typescript/express-web-api/src/routes/index.ts Registers the new “with config” routes.
sdk/typescript/express-web-api/src/routes/codes.ts Updates coding system enum usage to new SDK values.
sdk/typescript/express-web-api/src/routes/token.ts Updates auth URL method name to authorizeURL.
sdk/typescript/express-web-api/package-lock.json Bumps @corti/sdk and ws.
sdk/postman/WebApi.postman_collection.json Adds requests for the new “with config” endpoints.
sdk/dotnet/web-api/Program.cs Maps new .NET endpoints for “with config”.
sdk/dotnet/web-api/Endpoints/TranscribeWithConfigEndpoint.cs New transcribe endpoint using ConnectAsync(config) flow.
sdk/dotnet/web-api/Endpoints/StreamWithConfigEndpoint.cs New stream endpoint using ConnectAsync(config) flow.
sdk/dotnet/web-api/Endpoints/TranscribeEndpoint.cs Adapts to updated SDK message shapes/constructors.
sdk/dotnet/web-api/Endpoints/StreamEndpoint.cs Adapts to updated SDK message shapes/constructors.
sdk/dotnet/web-api/Endpoints/TokenEndpoint.cs Adjusts bearer client construction (auto-derive tenant/env).
sdk/dotnet/web-api/Endpoints/CodesEndpoint.cs Updates coding system enum usage to new SDK values.
sdk/dotnet/web-api/Corti.Sdk.Examples.Api.csproj Attempts to move Corti.Sdk reference to “latest”.
Files not reviewed (2)
  • sdk/typescript/express-web-api/package-lock.json: Language not supported
  • sdk/typescript/next-auth-examples/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sdk/dotnet/web-api/Endpoints/TranscribeWithConfigEndpoint.cs
Comment thread sdk/dotnet/web-api/Endpoints/StreamWithConfigEndpoint.cs
@markitosha Natalia Markitantova (markitosha) changed the title feat: updated dotnet examples to the latest library version feat: updated examples to the latest library version Mar 27, 2026
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.

2 participants