Skip to content

feat: Console SDK update for version 15.8.0 - #109

Merged
ChiragAgg5k merged 4 commits into
mainfrom
dev
Jul 30, 2026
Merged

feat: Console SDK update for version 15.8.0#109
ChiragAgg5k merged 4 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jul 30, 2026

Copy link
Copy Markdown
Member

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

What's Changed

  • Breaking: create() on mysql, postgresql, and mongo no longer accepts api
  • Breaking: project.updateSessionLimitPolicy() now requires total
  • Added: syncMode parameter to create() and update() on tablesDB, documentsDB, and vectorsDB
  • Added: difficulty and ttl parameters to waf.createChallengeRule() and waf.updateChallengeRule()
  • Added: key parameter to waf.createRateLimitRule() and waf.updateRateLimitRule()
  • Added: replication sync state fields to DatabaseStatus and DedicatedDatabaseReplicas
  • Added: syncMode to the DedicatedDatabase model
  • Added: difficulty and ttl to WafRuleChallenge, and key to WafRuleRateLimit
  • Added: requestedType and fallbackReason to DedicatedDatabaseBackup
  • Added: attempt and lastError to DatabaseMigration
  • Added: node-26 to the Runtime and BuildRuntime enums
  • Updated: DatabaseStatusReplica.role documents the unknown role during topology transitions
  • Updated: Project policy limits for password history, session duration, session count, and users

@ChiragAgg5k ChiragAgg5k changed the title feat: Console SDK update for version 15.8.0 feat: SDK update for version 15.8.0 Jul 30, 2026
main received 15.7.0 as a squash merge (#108), so the same change exists
under a different commit on each branch. main's tree is identical to dev's
15.7.0 commit, so dev's generated 15.8.0 tree is kept as-is.
Comment thread src/services/waf.ts
Comment thread src/models.ts
Comment on lines 9715 to 9718
/**
* Branch port.
* Branch port. Null until the backing reports one.
*/
port: number;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Branch port nullability is incorrect

When a branch is returned before its backing reports a port, the response contains null while the model declares port as an unconditional number, allowing consumers to perform numeric operations or construct invalid connection settings without handling the provisioning state.

Suggested change
/**
* Branch port.
* Branch port. Null until the backing reports one.
*/
port: number;
/**
* Branch port. Null until the backing reports one.
*/
port: number | null;
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/models.ts
Line: 9715-9718

Comment:
**Branch port nullability is incorrect**

When a branch is returned before its backing reports a port, the response contains `null` while the model declares `port` as an unconditional number, allowing consumers to perform numeric operations or construct invalid connection settings without handling the provisioning state.

```suggestion
        /**
         * Branch port. Null until the backing reports one.
         */
        port: number | null;
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Claude Code Fix in Codex

Comment thread src/services/project.ts
Comment on lines +6072 to +6080
* @param {number} params.total - Set the maximum number of users allowed in the project. Value can be between 0 and 10000. Use 0 or null to disable the limit.
* @throws {AppwriteException}
* @returns {Promise<Models.Project>}
*/
updateUserLimitPolicy(params: { total?: number }): Promise<Models.Project>;
/**
* Update the maximum number of users in the project. When the limit is hit or amount of existing users already exceeded the limit, all users remain active, but new user sign up will be prohibited.
*
* @param {number} total - Set the maximum number of users allowed in the project. Value can be between 1 and 5000, or null to disable the limit.
* @param {number} total - Set the maximum number of users allowed in the project. Value can be between 0 and 10000. Use 0 or null to disable the limit.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Documented null value is rejected

When a TypeScript consumer follows the updated documentation and passes null to disable the user limit, both overloads reject the call because total only accepts number | undefined, making the documented operation unavailable through the public type contract.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/services/project.ts
Line: 6072-6080

Comment:
**Documented null value is rejected**

When a TypeScript consumer follows the updated documentation and passes `null` to disable the user limit, both overloads reject the call because `total` only accepts `number | undefined`, making the documented operation unavailable through the public type contract.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Claude Code Fix in Codex

@greptile-apps

greptile-apps Bot commented Jul 30, 2026

Copy link
Copy Markdown

Greptile Summary

Updates the Console SDK for version 15.8.0.

  • Adds database replication configuration and status fields, WAF rule options, Node 26 runtimes, and migration and backup metadata.
  • Updates database and project service contracts, generated examples, package metadata, and the Rollup patch dependency.
  • Removes the database api creation option and refreshes model documentation.

Confidence Score: 3/5

The PR does not appear safe to merge until the positional WAF compatibility break and the two public type-contract mismatches are corrected.

Existing WAF positional calls can send shifted rule fields, branch responses can expose null through a number-only type, and the documented null user-limit value remains unavailable through the declared TypeScript overloads.

Files Needing Attention: src/services/waf.ts, src/models.ts, src/services/project.ts

Important Files Changed

Filename Overview
src/services/waf.ts Adds challenge and rate-limit rule parameters across object and deprecated positional overloads.
src/models.ts Expands database, migration, backup, replication, and WAF response models and documentation.
src/services/project.ts Updates project policy limits and corresponding public method documentation and signatures.
src/services/documents-db.ts Adds consistently mapped syncMode support to database create and update requests.
package.json Bumps the SDK to 15.8.0 and Rollup to 4.62.3.

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

@ChiragAgg5k ChiragAgg5k changed the title feat: SDK update for version 15.8.0 feat: Console SDK update for version 15.8.0 Jul 30, 2026
@ChiragAgg5k
ChiragAgg5k merged commit af3c724 into main Jul 30, 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.

1 participant