Skip to content

feat: SDK update for version 22.3.0 - #76

Merged
ChiragAgg5k merged 1 commit into
mainfrom
release/22.3.0
Oct 12, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
release/22.3.0

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 22.3.0.

What's Changed

  • Added: account passkey methods listPasskeys, createPasskey, getPasskey, updatePasskey, deletePasskey and updatePasskeyVerification
  • Added: account.createPasskeyToken and account.updatePasskeyToken for passkey sign-in
  • Added: users.listPasskeys, users.getPasskey, users.updatePasskey and users.deletePasskey
  • Added: project.updatePasskeyPolicy to configure passkey sign-in
  • Added: Passkey, PasskeyList, PasskeyChallenge and TokenSecret models

Passkeys only, patched onto main: the diff of the SDK generated with and without the passkey methods, three-way merged onto the release. Everything else on the release is unchanged, including its X-Appwrite-Response-Format.

@ghost

ghost commented Oct 12, 2026

Copy link
Copy Markdown

🔵 Tier A · Mergeable after minor fixes

The SDK additions are otherwise consistent with the existing request and model patterns; the only finding is a compile error in a new usage example.

This SDK update adds passkey account, user, and project-policy endpoints, along with the associated response models and usage examples. It also updates the package documentation and client SDK version to 22.3.0.

Verdict New comments Fixed Still open
✅ Approved 1 0 0
Finding Where
🟡 Avoid redeclaring project in this example docs/examples/project/update-passkey-policy.md:11
Fix with agent prompt
### Issue 1
docs/examples/project/update-passkey-policy.md:11
**Avoid redeclaring `project` in this example**

This example already declares `project` above, so the second declaration is rejected by Swift as an invalid redeclaration. Using a different name for the returned project lets readers compile the example as written.

```suggestion
let updatedProject = try await project.updatePasskeyPolicy(
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
📂 Walkthrough · 13
File Change
CHANGELOG.md Documents the passkey endpoints and models added in version 22.3.0.
README.md Updates the Swift package dependency example to version 22.3.0.
Sources/Appwrite/Client.swift Updates the SDK version sent in request headers.
Sources/Appwrite/Services/Account.swift Adds account passkey management, verification, and sign-in token methods.
Sources/Appwrite/Services/Project.swift Adds the passkey relying-party policy update method.
Sources/Appwrite/Services/Users.swift Adds administrative passkey listing, retrieval, update, and deletion methods.
Sources/AppwriteModels/Passkey.swift Adds the Passkey response model.
Sources/AppwriteModels/PasskeyChallenge.swift Adds the PasskeyChallenge response model.
Sources/AppwriteModels/PasskeyList.swift Adds the PasskeyList response model.
Sources/AppwriteModels/TokenSecret.swift Adds the TokenSecret response model.
docs/examples/account/*.md Adds usage examples for account passkey registration, verification, management, and sign-in.
docs/examples/project/update-passkey-policy.md Adds an example for configuring the passkey relying-party policy.
docs/examples/users/*.md Adds usage examples for administrative passkey operations.

Reviewed caeaaea · 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 A · Looks good to merge. Summary


let project = Project(client)

let project = try await project.updatePasskeyPolicy(

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Avoid redeclaring project in this example

This example already declares project above, so the second declaration is rejected by Swift as an invalid redeclaration. Using a different name for the returned project lets readers compile the example as written.

Suggested change
let project = try await project.updatePasskeyPolicy(
let updatedProject = try await project.updatePasskeyPolicy(
Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/examples/project/update-passkey-policy.md
Line: 11

Comment:
**Avoid redeclaring `project` in this example**

This example already declares `project` above, so the second declaration is rejected by Swift as an invalid redeclaration. Using a different name for the returned project lets readers compile the example as written.

```suggestion
let updatedProject = try await project.updatePasskeyPolicy(
```

---

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

🟡 Minor · documentation · Reply if this doesn't apply.

@ChiragAgg5k
ChiragAgg5k merged commit 9f46f48 into main Oct 12, 2026
2 checks 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