Skip to content

feat: SDK update for version 15.4.0 - #105

Merged
ChiragAgg5k merged 1 commit into
mainfrom
dev
Jul 22, 2026
Merged

feat: SDK update for version 15.4.0#105
ChiragAgg5k merged 1 commit into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jul 22, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 15.4.0.

Needed before appwrite/sdk-for-cli#342 — the CLI compiles against the published @appwrite.io/console package and requires the new methods added here.

What's Changed

  • Updated: Removed the Health service
  • Updated: Removed usage methods getUsage, listUsage, getCollectionUsage, getTableUsage, and getBucketUsage across services
  • Updated: Removed newSpecification parameter from backups.createRestoration()
  • Added: Account OAuth2 consent methods listConsents, getConsent, deleteConsent, listConsentTokens, getConsentToken, and deleteConsentToken
  • Added: apps.listOAuth2Scopes() and apps.updateLabels() methods
  • Added: oauth2.authorizePost() and oauth2.logoutPost() methods
  • Added: project.updateOAuth2Appwrite() method
  • Added: token parameter to functions.getDeploymentDownload() and sites.getDeploymentDownload()
  • Added: Geolocation, connection, and SDK attribution fields on ActivityEvent
  • Updated: AppSecret.secret is always empty; the secret is returned only on creation

@ChiragAgg5k ChiragAgg5k changed the title feat: Console SDK update for version 15.4.0 feat: SDK update for version 15.4.0 Jul 22, 2026
@greptile-apps

greptile-apps Bot commented Jul 22, 2026

Copy link
Copy Markdown

Greptile Summary

This PR updates the Console SDK for version 15.4.0. The main changes are:

  • Adds OAuth consent, authorization, and logout operations.
  • Adds WAF rule management and related models and enums.
  • Expands database replication, status, and specification APIs.
  • Removes the Health service and legacy per-service usage methods.
  • Updates generated models, examples, exports, and package metadata.

Confidence Score: 4/5

The bearer-token compatibility regression needs to be resolved before merging.

  • Existing callers may already include the standard prefix expected by the previous implementation.
  • The updated method adds a second prefix and causes all authenticated requests from those callers to fail.
  • The other inspected generated service and model changes follow the established SDK request patterns.

src/client.ts

Important Files Changed

Filename Overview
src/client.ts Updates SDK attribution and changes setBearer to add the Bearer prefix, which breaks callers already supplying that prefix.
src/services/oauth-2.ts Adds POST authorization and logout variants and expands OAuth request parameters.
src/services/waf.ts Adds project-scoped WAF rule listing, retrieval, creation, update, and deletion operations.
src/models.ts Regenerates the model surface for database, OAuth, activity, and WAF API changes.
src/index.ts Removes the retired Health exports and exposes the new WAF service and enum.
src/services/migrations.ts Replaces combined migration resource identifiers with explicit database and collection identifiers.
src/services/functions.ts Adds deployment-download token support and removes retired usage methods.
src/services/sites.ts Adds deployment-download token support and removes retired usage methods.

Fix All in Claude Code Fix All in Codex

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
src/client.ts:560
**Prefixed Tokens Break Authentication**

Existing callers that pass `Bearer <token>` to `setBearer()` now send `Authorization: Bearer Bearer <token>`. Those requests previously worked but will now receive an authentication failure after upgrading.

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

Comment thread src/client.ts
@ChiragAgg5k
ChiragAgg5k merged commit 55730de into main Jul 22, 2026
2 checks passed
mperkins0155 pushed a commit to mperkins0155/console-getitforcomm that referenced this pull request Aug 3, 2026
sites.getUsage() is being dropped from the SDK (appwrite/sdk-for-console#105),
along with the other usage endpoints removed in appwrite#3134. This inline
build-metrics card on the site deployments page was the one live
consumer that cleanup missed.
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.

1 participant