Skip to content

chore(console): pin @appwrite.io/console 19.1.0-rc.1 - #14449

Merged
ChiragAgg5k merged 3 commits into
mainfrom
chore/console-sdk-19.1.0-rc.1
Oct 13, 2026
Merged

ChiragAgg5k merged 3 commits into
mainfrom
chore/console-sdk-19.1.0-rc.1

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

What

Pins @appwrite.io/console to 19.1.0-rc.1 (npm next) and adopts the Cloud API changes since 18.4.0-rc.2.

19.1.0-rc.1 is 19.0.0 plus the Videos service. It's the first release the Console can pin that ships spec.json, which the preview SDK flow in #14441 uses as its base. 19.0.0 alone drops Videos, which adds 126 type errors.

API changes adopted

  • WAF: Models.WafRule is now a union of per-action models (WafRuleBypass, WafRuleDeny, WafRuleChallenge, WafRuleRateLimit, WafRuleRedirect). FirewallRule in lib/firewall/types.ts names that union. conditions is string[], so the as unknown as string cast is gone.
  • OAuth2: resource on authorize, createPAR and createToken is string[], so the consent route's cast is gone and the assistant's MCP OAuth wraps its single resource in a list.
  • Passkeys: updatePasskeyVerification no longer takes challengeId; this server's endpoint only reads passkeyId and credential. Sign-in (updatePasskeyToken) still sends it. updatePasskeyPolicy only takes rpId, and both callers only sent rpId.
  • Billing: the self-hosted plan stub sets environments: 0.

Not in this PR

The snippetId errors in analytics (14) are fixed by #14408, which is approved and green.

Verification

  • tsc --noEmit: no new errors compared with main, apart from the 14 snippetId ones covered by fix(console): drop snippetId from the analytics property UI #14408.
  • bun run build passes.
  • eslint and prettier run on the changed files. The extra hunks in Rules.tsx, mcp-oauth.ts and waf.ts are Prettier output; those files weren't formatted on main.

Related: #14443

19.1.0-rc.1 is the first release that ships spec.json, which the preview SDK flow builds on, and it keeps the Videos service rc.2 had. Adopt the Cloud API changes since rc.2: WAF rules are a union of per-action models with string[] conditions, OAuth2 resource is a list, passkey registration no longer takes a challenge ID, the passkey policy only sets rpId, and billing plans carry an environments limit.
@luxor-code-review

luxor-code-review Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Review complete. No issues found.


This PR upgrades the console SDK from 18.4.0 to 19.1.0 and adapts all affected call sites. No blocking issues were found; all scanner candidates were refuted against the actual SDK and server-side source.

Files Change
apps/console/package.json, apps/console/bun.lock Bump @appwrite.io/console SDK to 19.1.0.
apps/console/src/lib/firewall/*, firewall components Retype FirewallRule from the WAF list model, switch conditionsPayload back to string[], and update rule create/update/delete UI accordingly.
apps/console/src/lib/passkeys.ts, auth/organizations hooks Align passkey verification (no challengeId) and RP policy (rpId-only) payloads with the new SDK signatures.
apps/console/src/lib/assistant/mcp-oauth.ts, oauth2.consent.tsx Send OAuth resource indicators as true arrays (serialized as resource[0]=...), matching the server expectation.

Note: two secondary scan lanes (api-data group 1, one OAuth domain pass) failed to publish output; their coverage is duplicated by other lanes and the OAuth agent inline report confirmed no defects.

Reviewed commit: a79a60e

Prettier rewrapped an unrelated sessionStorage write, which CodeQL then reported as a new clear-text storage alert.
@ChiragAgg5k ChiragAgg5k self-assigned this Oct 13, 2026
@ghost

ghost commented Oct 13, 2026

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The updated SDK contracts match the affected call sites, and I found no concrete regression.

Pins the Console SDK to 19.1.0-rc.1 and updates WAF, OAuth2, passkey, and self-hosted billing integrations for its revised API types. Firewall components now share the action-specific rule union, and OAuth resource and passkey requests follow the new signatures.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 9
File Change
apps/console/package.json, apps/console/bun.lock Pins the Console SDK dependency and updates the Bun lockfile.
apps/console/src/components/pages/projects/$projectId/firewall/Rules.tsx, apps/console/src/components/pages/projects/$projectId/firewall/_components/DeleteRule.tsx, apps/console/src/components/pages/projects/$projectId/firewall/_components/RuleContextMenu.tsx, apps/console/src/components/pages/projects/$projectId/firewall/_components/UpdateRule.tsx Switches firewall UI rule props and state to the action-specific WAF rule type.
apps/console/src/lib/assistant/mcp-oauth.ts Sends MCP OAuth resources as arrays to authorize and token requests.
apps/console/src/lib/firewall/actions.ts, apps/console/src/lib/firewall/attack-mode.ts, apps/console/src/lib/firewall/types.ts Defines and applies the shared firewall rule union across action helpers and attack mode.
apps/console/src/lib/passkeys.ts Removes the redundant challenge ID from passkey registration verification.
apps/console/src/lib/react-query/hooks/auth.ts Narrows passkey policy updates to the relying-party ID field.
apps/console/src/lib/react-query/hooks/organizations.ts Adds the environments limit to the self-hosted billing plan stub.
apps/console/src/lib/react-query/hooks/waf.ts Uses array-valued WAF conditions and the new firewall rule response type.
apps/console/src/routes/_auth/oauth2.consent.tsx Passes repeated OAuth resource parameters as an array.

Reviewed a5fb50c · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit 767a1d2 into main Oct 13, 2026
33 of 34 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the chore/console-sdk-19.1.0-rc.1 branch October 13, 2026 15:37
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