Added /me endpoint and made SSO login tweaks#5
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the SDK’s OpenAPI surface (including a new /me identity endpoint) and adjusts SSO/auth behavior and documentation, alongside a URL-construction fix in the client.
Changes:
- Add
/meplus new schemas to the OpenAPI spec/types, and update many endpoint auth descriptions. - Make SSO profile resolution fall back to built-in defaults and adjust exported auth/SSO utilities.
- Fix
buildURL()sobaseUrlpath components are preserved when constructing request URLs.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
tests/client.test.ts |
Broadens the expected auth error message for “no credentials” case. |
src/auth.ts |
Introduces built-in SSO defaults, changes loadSsoProfile() to always return defaults, and makes the credential chain prefer SSO when config dir resolves. |
src/client.ts |
Updates URL construction to preserve baseUrl path prefix. |
src/index.ts |
Re-exports additional SSO constants and cache helper functions from auth. |
openapi/seclai.openapi.json |
Adds /me, new schemas, adjusts X-Account-Id description, and changes many auth description strings. |
src/openapi.ts |
Regenerated OpenAPI TypeScript types reflecting the updated OpenAPI JSON. |
README.md |
Updates SSO documentation to describe default fallback behavior and configurable SSO env vars. |
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.