Skip to content

feat: Node.js SDK update for version 27.0.0#160

Merged
ChiragAgg5k merged 5 commits into
mainfrom
dev
Jul 13, 2026
Merged

feat: Node.js SDK update for version 27.0.0#160
ChiragAgg5k merged 5 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jul 13, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 27.0.0.

What's Changed

  • Breaking: removed Health service, health enums, and health response models
  • Breaking: removed Usage service and UsageEvent/UsageGauge models
  • Breaking: removed messaging listMessageLogs, listProviderLogs, listSubscriberLogs, listTopicLogs methods
  • Added: Organization get, update, delete, and membership CRUD methods
  • Added: Query.vectorCosine, Query.vectorDot, Query.vectorEuclidean vector filters
  • Added: Client.setBearer for OAuth access token authentication
  • Added: updateOAuth2Appwrite and updateDenyCorporateEmailPolicy project methods
  • Added: prompt and maxAge params to updateOAuth2Oidc, defaultScopes to updateOAuth2Server
  • Added: token param to getDeploymentDownload, type to listSpecifications
  • Added: newSpecification param to createRestoration, specification to tablesDB.create
  • Added: BillingPlanGroup, DatabaseStatus, OAuth2OidcPrompt, ProjectOAuth2OidcPrompt enums
  • Added: Appwrite OAuth provider, stages and project.oauth2 key scopes
  • Added: Organization, BillingPlan, OAuth2Appwrite, PolicyDenyCorporateEmail models
  • Fixed: URL-encoded path parameters in organization key/project endpoints
  • Updated: spatial attribute/column xdefault types narrowed to number[]/any[][]

@greptile-apps

greptile-apps Bot commented Jul 13, 2026

Copy link
Copy Markdown

Greptile Summary

This PR updates the Node.js SDK to Appwrite v27.0.0, introducing several breaking changes alongside new features. It removes the Health and Usage services, their models, and related enums, while adding new Organization CRUD and membership methods, vector similarity query filters, Client.setBearer, and various new parameters across existing services.

  • Breaking removals: Health, Usage services and their associated models/enums are deleted; messaging log methods (listMessageLogs, listProviderLogs, listSubscriberLogs, listTopicLogs) are removed.
  • New additions: Organization get/update/delete/membership CRUD, Query.vectorDot/vectorCosine/vectorEuclidean, Client.setBearer, updateOAuth2Appwrite, updateDenyCorporateEmailPolicy, new params on updateOAuth2Oidc/updateOAuth2Server/getDeploymentDownload/listSpecifications, and new models (Organization, BillingPlan, OAuth2Appwrite, PolicyDenyCorporateEmail).
  • Correctness fix: encodeURIComponent is now applied uniformly to all path parameters across account, backups, functions, messaging, organization, project, and tables-db services.

Confidence Score: 5/5

This PR is safe to merge; the changes are a well-structured SDK update with consistent patterns.

All new service methods follow established SDK overload patterns. The setBearer fix correctly prepends Bearer to the Authorization header. The encodeURIComponent changes are applied uniformly. Breaking removals are intentional v27 changes and clearly documented in the PR description.

No files require special attention.

Important Files Changed

Filename Overview
src/client.ts Version bump to 27.0.0, added setBearer() method (correctly prefixes "Bearer "), and added accept header to ping(). Clean changes.
src/query.ts Added vectorDot, vectorCosine, vectorEuclidean static methods — consistent with existing spatial query patterns.
src/models.ts Removed Health/Usage models, added Organization, BillingPlan, PolicyDenyCorporateEmail, OAuth2Appwrite, and new fields. Spatial xdefault narrowed to number[]/number[][].
src/index.ts Removed Health/Usage service exports and their enums; added new enums (DatabaseStatus, OAuth2OidcPrompt, BillingPlanGroup, ProjectOAuth2OidcPrompt). Breaking changes align with PR description.
src/services/organization.ts Added get, update, delete, and full membership CRUD methods. URL encoding applied to all path params. New methods follow established SDK overload patterns.
src/services/project.ts Added updateOAuth2Appwrite and updateDenyCorporateEmailPolicy methods; added prompt/maxAge to updateOAuth2Oidc and defaultScopes to updateOAuth2Server. URL encoding applied to all path params.
src/services/functions.ts Added token param to getDeploymentDownload and type param to listSpecifications. Consistent with SDK patterns.
src/services/messaging.ts Removed listMessageLogs, listProviderLogs, listSubscriberLogs, listTopicLogs methods. URL encoding added to message path params.
src/services/backups.ts Added newSpecification param to createRestoration. URL encoding applied to all archive/policy/restoration path params.
src/services/tables-db.ts Added specification param to create(). URL encoding applied to all path params (databaseId, transactionId, tableId).

Reviews (4): Last reviewed commit: "(fix): remove duplicate Project model pr..." | Re-trigger Greptile

Comment thread src/client.ts
@ChiragAgg5k ChiragAgg5k merged commit a8edc0b into main Jul 13, 2026
1 check passed
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