Skip to content

Added /me endpoint and made SSO login tweaks#5

Merged
burgaard merged 3 commits into
mainfrom
me-endpoint-sso-updates
Mar 27, 2026
Merged

Added /me endpoint and made SSO login tweaks#5
burgaard merged 3 commits into
mainfrom
me-endpoint-sso-updates

Conversation

@burgaard

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 27, 2026 06:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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 /me plus 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() so baseUrl path 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.

Comment thread tests/client.test.ts Outdated
Comment thread src/auth.ts
Comment thread src/auth.ts
Comment thread openapi/seclai.openapi.json Outdated
Comment thread openapi/seclai.openapi.json
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread src/index.ts
Comment thread src/client.ts
@burgaard burgaard merged commit 8b57eab into main Mar 27, 2026
1 check passed
@burgaard burgaard deleted the me-endpoint-sso-updates branch March 27, 2026 22:26
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