Updated the SDK to handle attachments #minor#9
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the JavaScript SDK’s generated OpenAPI types and client surface to reflect new/expanded API capabilities around attachments (agent attachment-reference contracts, multi-upload semantics, and additional run metadata), and adds a couple of new client conveniences/tests.
Changes:
- Added
Seclai.getAgentAttachmentReferences()plus a corresponding unit test and README usage snippet. - Added
Seclai.deleteExperiment()plus a corresponding unit test and README snippet. - Regenerated OpenAPI artifacts and type aliases to include new schemas/fields (e.g., tool call data, insufficient-credits envelope, multi-upload fields).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/client.test.ts | Adds request-shape tests for the new client methods. |
| src/types.ts | Adds/updates exported type aliases for new OpenAPI schemas. |
| src/openapi.ts | Regenerated OpenAPI typings for new endpoints/schemas/fields. |
| src/index.ts | Re-exports newly added public type aliases. |
| src/client.ts | Adds getAgentAttachmentReferences() and deleteExperiment() methods. |
| README.md | Documents usage for attachment references and experiment deletion. |
| openapi/seclai.openapi.json | Updates the OpenAPI source spec with new endpoints/schemas/fields. |
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.