2026 05 22 api sync#8
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Syncs the JavaScript SDK with the latest API schema, adding support for agent import preview and updating generated OpenAPI typings/docs accordingly.
Changes:
- Adds
POST /agents/preview-importsupport viaSeclai.previewImportAgent()plus a request-shape test. - Introduces new exported type aliases for import preview + import validation error payloads.
- Updates the generated OpenAPI spec/types and README usage docs to reflect new import/definition behaviors.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/client.test.ts | Adds request-shape coverage for previewImportAgent. |
| src/types.ts | Adds stable aliases for import preview + import-validation error models. |
| src/openapi.ts | Regenerates OpenAPI types/docs with new endpoint and updated schemas. |
| src/index.ts | Re-exports the newly added public types from the package entrypoint. |
| src/client.ts | Adds previewImportAgent() convenience method and related JSDoc. |
| README.md | Documents export → preview-import → create flow for cross-account imports. |
| openapi/seclai.openapi.json | Updates the underlying OpenAPI document with new schemas/endpoint and revised descriptions. |
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.