Skip to content

feat: Console SDK update for version 15.0.0#100

Merged
ChiragAgg5k merged 3 commits into
mainfrom
dev
Jun 19, 2026
Merged

feat: Console SDK update for version 15.0.0#100
ChiragAgg5k merged 3 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jun 18, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the Console SDK for version 15.0.0.

@ChiragAgg5k ChiragAgg5k changed the title feat: Console SDK update for version 15.0.0 feat: SDK update for version 15.0.0 Jun 18, 2026
@greptile-apps

greptile-apps Bot commented Jun 18, 2026

Copy link
Copy Markdown

Greptile Summary

This PR updates the Console SDK from version 14.0.0 to 15.0.0, introducing a new Oauth2 service and several API additions and improvements.

  • New Oauth2 service (src/services/oauth-2.ts) with nine methods covering the full OAuth2/OIDC lifecycle: authorization, device flow, token exchange, grant management, revocation, and RP-initiated logout.
  • setCredentials(RequestCredentials) on Client allows callers to control fetch credential mode; the new shouldUseFallbackCredentials helper correctly gates X-Fallback-Cookies and realtime session injection behind the configured mode, including proper same-origin origin comparison.
  • Breaking changes to Usage.listEvents/listGauges: metric is now a required parameter, replacing the old queries/total pair in favor of explicit aggregation controls (interval, dimensions, ordering, pagination).
  • Path parameter URL-encoding (encodeURIComponent(String(...))) applied broadly across functions, organizations, sites, storage, project, and apps services.
  • New updateDenyCorporateEmailPolicy method and corresponding deny-corporate-email policy/service enum values added to the project service.

Confidence Score: 5/5

Safe to merge; all previously flagged issues are addressed and the new Oauth2 service is correctly implemented.

The new Oauth2 service correctly URL-encodes path parameters and follows existing SDK patterns. Credential mode gating in shouldUseFallbackCredentials matches the documented semantics. Breaking changes to Usage and Apps are intentional for v15. The only new finding is a JSDoc typo.

No files require special attention beyond the minor JSDoc typo in src/services/oauth-2.ts.

Important Files Changed

Filename Overview
src/client.ts Adds setCredentials(RequestCredentials) and shouldUseFallbackCredentials(url) which correctly gates X-Fallback-Cookies header and realtime session injection behind the new credential mode, including proper same-origin origin comparison.
src/services/oauth-2.ts New Oauth2 service with 9 methods covering the full OAuth2/OIDC lifecycle. Path params are URL-encoded; JSDoc has one "paraleter" typo in the authorize.maxAge doc.
src/services/apps.ts Adds six new optional fields to both create and update; positional deprecated overload shifts enabled/type/deviceFlow — expected breaking change for v15.
src/services/usage.ts Breaking API redesign for listEvents and listGauges: metric is now required, replacing queries/total with explicit aggregation controls.
src/services/project.ts Adds updateDenyCorporateEmailPolicy method and deny-corporate-email policy enum value; boolean dispatch is handled correctly.
src/services/functions.ts Mechanical change: all path parameters now use encodeURIComponent(String(...)) for URL safety.
src/services/organizations.ts Same mechanical URL-encoding applied to all organizationId and sub-resource path parameters.
src/services/sites.ts URL-encoding applied to all siteId/deploymentId/variableId/logId path parameters.
src/services/storage.ts bucketId and fileId path parameters now use encodeURIComponent; no logic changes.
src/index.ts Exports the new Oauth2 service from ./services/oauth-2.

Reviews (3): Last reviewed commit: "chore: update Console SDK to 15.0.0" | Re-trigger Greptile

Comment thread docs/examples/oauth2/approve.md Outdated
Comment thread src/services/oauth-2.ts Outdated
Comment thread src/services/oauth-2.ts Outdated
@ChiragAgg5k ChiragAgg5k changed the title feat: SDK update for version 15.0.0 feat: Console SDK update for version 15.0.0 Jun 18, 2026
Comment thread src/services/apps.ts
Comment thread src/client.ts Outdated
@ChiragAgg5k ChiragAgg5k merged commit 16b3d0e into main Jun 19, 2026
1 check passed
@ChiragAgg5k ChiragAgg5k deleted the dev branch June 19, 2026 02:48
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