You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaScript callers cannot use API v0 response modes or request synthetic not-found artifacts through SocketPurlClient because the SDK rejects these options. This adds typed, validated support and documents each option.
Low Risk
Adds optional query parameters and stricter validation only; no changes to auth, defaults, or response parsing logic.
Overview
Exposes two new SocketPurlClient proxy query options aligned with API v0 PURL: mode and notFoundAlerts.
mode is typed as PurlResponseMode (default, compact, firewall-check, registry-firewall) and selects the response shape. notFoundAlerts is a boolean that requests synthetic not-found artifacts when used with alerts=true and purlErrors=true.
Both fields are added to PublicPurlQuery, validated in assertPublicPurlQueryValue (mode against an allowlist, notFoundAlerts with the other boolean keys), and documented in docs/api.md and docs/api/api-clients.md. Existing validatePublicPurlQuery usage in the public PURL client passes these through without further client changes.
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
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.
JavaScript callers cannot use API v0 response modes or request synthetic not-found artifacts through
SocketPurlClientbecause the SDK rejects these options. This adds typed, validated support and documents each option.