feat: updated examples to the latest library version - #14
Closed
Natalia Markitantova (markitosha) wants to merge 19 commits into
Closed
Natalia Markitantova (markitosha) wants to merge 19 commits into
Natalia Markitantova (markitosha) wants to merge 19 commits into
Conversation
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>
…letionSource initialization
…mples into move-examples
Copilot started reviewing on behalf of
Natalia Markitantova (markitosha)
March 27, 2026 10:41
View session
Contributor
There was a problem hiding this comment.
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/sdkin 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.
…form components to use proper types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.