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
This PR contains updates to the SDK for version 19.0.0.
What's Changed
Breaking: removed the Assistant service (assistant.chat) and _APP_ASSISTANT_ENABLED from ConsoleVariables
Breaking: waf.getRule and waf.listRules return the action-specific rule models (WafRuleBypass, WafRuleChallenge, WafRuleDeny, WafRuleRateLimit, WafRuleRedirect); WafRule is removed
Breaking: removed the deno-1.21, deno-1.24 and deno-1.35 runtimes from Runtime and BuildRuntime
Updated: X-Appwrite-Response-Format is now 2.4.0
Updated: missing fields in API responses are filled with their documented defaults
Added: Analytics service: listProperties, createProperty, getProperty, updateProperty, deleteProperty, createEvent and listMetrics, with AnalyticsDimension and AnalyticsInterval enums
Added: Tracking helper that auto-tracks pageviews, outbound links, downloads, scroll depth and engagement time
Added: admin threat methods listThreats, createThreat, getThreat, deleteThreat and updateThreatStatus
Added: admin cache methods deletePlatformCache, deletePlatformResourceCache, deleteProjectCache and deleteProjectResourceCache
Added: project.updatePasswordRotationPolicy and the PolicyPasswordRotation model
Added: optional state on account.createOAuth2Session and account.createOAuth2Token
Added: optional fingerprints on project.createAndroidPlatform and project.updateAndroidPlatform, and on PlatformAndroid
Added: optional membershipId on teams.createMembership
Added: project.listEnvironments, createEnvironment, getEnvironment, updateEnvironment and deleteEnvironment, with parentId on Project and environments on BillingPlan
Added: trigram in DatabasesIndexType and TablesDBIndexType, and supportForTrigramIndex on ConsoleVariables
Added: the package ships the spec it was generated from as spec.json, exported as @appwrite.io/console/spec.json
Added: analytics.read and analytics.write key scopes, analytics usage metrics, and avatarsStorageTotal on UsageOrganization
Updates the Console SDK to version 19.0.0 for Appwrite API 2.4.0, refreshing service APIs, models, enums, and documentation. The update adds Admin threat/cache operations, Analytics and tracking APIs, project environment operations, and trigram index metadata, alongside the generated spec and package updates.
8 of 42 changed files were too large to include in full.
Latest changes: The newest commits add missing array defaults across service response models, preserve the JSON toString helper when applying defaults, and refine background push notifications to skip data-only envelopes.
Verdict
New comments
Fixed
Still open
💬 Commented
0
2
0
Note
Part of the diff was too large to review, so Hansi did not approve.
📂 Walkthrough · 6
File
Change
src/client.ts
Applies response defaults and preserves the JSON serialization helper on cloned model responses.
src/services/*
Refreshes generated service operations and response models, including new APIs and missing collection defaults.
src/models.ts, src/enums/*, src/index.ts
Updates model and enum definitions and exports the refreshed public API.
spec.json, package.json, package-lock.json
Publishes the updated API specification and package metadata and dependencies.
docs/examples/*, README.md, CHANGELOG.md
Updates SDK documentation and examples for the 19.0.0 API surface.
src/services/project.ts
Adds project environment list, create, get, update, and delete operations.
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.
This PR contains updates to the SDK for version 19.0.0.
What's Changed
Assistantservice (assistant.chat) and_APP_ASSISTANT_ENABLEDfromConsoleVariableswaf.getRuleandwaf.listRulesreturn the action-specific rule models (WafRuleBypass,WafRuleChallenge,WafRuleDeny,WafRuleRateLimit,WafRuleRedirect);WafRuleis removeddeno-1.21,deno-1.24anddeno-1.35runtimes fromRuntimeandBuildRuntimeX-Appwrite-Response-Formatis now2.4.0Analyticsservice:listProperties,createProperty,getProperty,updateProperty,deleteProperty,createEventandlistMetrics, withAnalyticsDimensionandAnalyticsIntervalenumsTrackinghelper that auto-tracks pageviews, outbound links, downloads, scroll depth and engagement timeadminthreat methodslistThreats,createThreat,getThreat,deleteThreatandupdateThreatStatusadmincache methodsdeletePlatformCache,deletePlatformResourceCache,deleteProjectCacheanddeleteProjectResourceCacheproject.updatePasswordRotationPolicyand thePolicyPasswordRotationmodelstateonaccount.createOAuth2Sessionandaccount.createOAuth2Tokenfingerprintsonproject.createAndroidPlatformandproject.updateAndroidPlatform, and onPlatformAndroidmembershipIdonteams.createMembershipproject.listEnvironments,createEnvironment,getEnvironment,updateEnvironmentanddeleteEnvironment, withparentIdonProjectandenvironmentsonBillingPlantrigraminDatabasesIndexTypeandTablesDBIndexType, andsupportForTrigramIndexonConsoleVariablesspec.json, exported as@appwrite.io/console/spec.jsonanalytics.readandanalytics.writekey scopes, analytics usage metrics, andavatarsStorageTotalonUsageOrganization