Updated the SDK for email agent triggers and email domain management … - #10
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the JavaScript SDK to align with the latest Seclai API surface, adding client methods/types for identity, agent enable/disable, agent email triggers/governance, email domain management, docs search, and model catalog enhancements, along with corresponding tests and documentation.
Changes:
- Add new
Seclaiclient methods for identity (getMe), agent enable/disable, agent email trigger/governance endpoints, email domain management, docs search, and generation tiers. - Sync and extend the bundled OpenAPI types (
src/openapi.ts) and re-export new public types viasrc/types.ts/src/index.ts. - Expand
tests/client.test.tsand README examples to cover the new SDK surface; addCHANGELOG.mdto the published package files.
Reviewed changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/client.test.ts | Adds request/response-shape tests for new endpoints (identity, email triggers/governance, email domains, docs search, generation tiers). |
| src/types.ts | Exposes new type aliases mapping to OpenAPI component schemas for the added endpoints. |
| src/openapi.ts | Updates the generated OpenAPI typings with new paths, operations, and schemas. |
| src/index.ts | Re-exports newly added SDK types from the public entrypoint. |
| src/client.ts | Implements new high-level client methods to call the added API endpoints and extends model filtering. |
| README.md | Documents new SDK features with usage examples (identity, email triggers/governance, email domains, docs search, models). |
| package.json | Ensures CHANGELOG.md is included in the published package artifacts. |
| CHANGELOG.md | Adds release notes for v1.4.0 covering the new SDK/API surface. |
added 2 commits
July 25, 2026 12:43
…kills/seclai-changelog'
git-subtree-dir: .claude/skills/seclai-changelog git-subtree-split: fad366245a851644b3679a1b6fc8948c26d0c631
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 9 out of 11 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
README.md:127
- The org-scoped client example constructs a new
Seclaiinstance without credentials, which will fail unless the environment/SSO profile resolves credentials implicitly. Make the example self-contained by showing passing the same credential (e.g., an OAuth access token).
// Act as an organization
const orgClient = new Seclai({ accountId: me.organizations[0].account_id });
added 3 commits
July 25, 2026 13:53
…92f0 ae892f0 Updated skill to clarify type handling git-subtree-dir: .claude/skills/seclai-changelog git-subtree-split: ae892f07a0c58ce7db4aa0601768f48ff9e49564
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.
…#minor