Skip to content

feat: SDK update for version 6.1.0 - #100

Merged
ChiragAgg5k merged 6 commits into
mainfrom
dev
Jul 24, 2026
Merged

ChiragAgg5k merged 6 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Jul 23, 2026 •

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 6.1.0.

What's Changed

  • Added: Apps service for managing OAuth2 applications, keys, and installations
  • Added: OAuth2 service with authorize, grant, device authorization, and consent flows
  • Added: Account OAuth2 consent methods ListConsents, GetConsent, DeleteConsent, and consent token methods
  • Added: app installation management methods to Organization and Teams services
  • Added: installationAccessTokenDuration parameter to Project.UpdateOAuth2Server
  • Added: token parameter to Sites.GetDeploymentDownload
  • Added: oauth2.introspect and organization installation key scopes

@ChiragAgg5k ChiragAgg5k changed the title feat: .NET SDK update for version 6.1.0 feat: SDK update for version 6.1.0 Jul 23, 2026
@greptile-apps

greptile-apps Bot commented Jul 23, 2026 •

Copy link
Copy Markdown

Greptile Summary

Updates the .NET SDK to version 6.1.0.

  • Adds Apps, OAuth2, installation, backup, and dedicated-database APIs and models.
  • Expands database models, statuses, scopes, and service operations.
  • Updates generated examples, package metadata, dependencies, and publishing actions.

Confidence Score: 4/5

The PR is not yet safe to merge because several OAuth response models still destroy structured authorization details during deserialization.

OAuth consent, consent-token, grant, and token responses deserialize nested authorization details into collections and then replace those values with CLR type-name strings.

Appwrite/Models/Oauth2Consent.cs, Appwrite/Models/Oauth2ConsentToken.cs, Appwrite/Models/Oauth2Grant.cs, Appwrite/Models/Oauth2Token.cs

Important Files Changed

Filename Overview
Appwrite/Models/Oauth2Consent.cs Adds the OAuth consent model, but its response conversion discards structured authorization details.
Appwrite/Models/Oauth2ConsentToken.cs Adds the consent-token model with the same lossy authorization-details conversion.
Appwrite/Models/Oauth2Grant.cs Adds the grant model with the same lossy authorization-details conversion.
Appwrite/Models/Oauth2Token.cs Adds the token model and coerces optional structured authorization details into an unusable string.
Appwrite/Models/AppInstallation.cs Preserves authorizationDetails as structured response data after the earlier review feedback.
docs/examples/oauth2/approve.md Adds an OAuth approval example as part of the generated SDK documentation.
Appwrite/Services/Oauth2.cs Adds OAuth authorization, grant, token, consent, and revocation service methods.

Fix All in Claude Code Fix All in Codex

Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
Appwrite/Models/Oauth2Consent.cs:78
**Authorization details lose structure**

When an OAuth consent, consent-token, grant, or token response contains structured authorization details, response deserialization produces a dictionary or list and these model conversions call `ToString()` on it, causing consumers to receive a CLR collection type name instead of the authorization metadata.

Reviews (2): Last reviewed commit: "chore: update .NET SDK to 6.1.0" | Re-trigger Greptile

Comment thread Appwrite/Models/AppInstallation.cs Outdated
Comment on lines +14 to +15
grant_id: "<GRANT_ID>",
authorization_details: "<AUTHORIZATION_DETAILS>", // optional

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Named arguments do not compile

The example uses grant_id and authorization_details, but the C# method declares grantId and authorizationDetails, so copying this invocation produces compiler errors.

Prompt To Fix With AI
This is a comment left during a code review.
Path: docs/examples/oauth2/approve.md
Line: 14-15

Comment:
**Named arguments do not compile**

The example uses `grant_id` and `authorization_details`, but the C# method declares `grantId` and `authorizationDetails`, so copying this invocation produces compiler errors.

How can I resolve this? If you propose a fix, please make it concise.

Fix in Claude Code Fix in Codex

@ChiragAgg5k ChiragAgg5k changed the title feat: SDK update for version 6.1.0 feat: .NET SDK update for version 6.1.0 Jul 23, 2026
cimdUrl: map["cimdUrl"].ToString(),
scopes: map["scopes"].ConvertToList<string>(),
resources: map["resources"].ConvertToList<string>(),
authorizationDetails: map["authorizationDetails"].ToString(),

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 Authorization details lose structure

When an OAuth consent, consent-token, grant, or token response contains structured authorization details, response deserialization produces a dictionary or list and these model conversions call ToString() on it, causing consumers to receive a CLR collection type name instead of the authorization metadata.

Prompt To Fix With AI
This is a comment left during a code review.
Path: Appwrite/Models/Oauth2Consent.cs
Line: 78

Comment:
**Authorization details lose structure**

When an OAuth consent, consent-token, grant, or token response contains structured authorization details, response deserialization produces a dictionary or list and these model conversions call `ToString()` on it, causing consumers to receive a CLR collection type name instead of the authorization metadata.

How can I resolve this? If you propose a fix, please make it concise.

Fix in Claude Code Fix in Codex

@ChiragAgg5k ChiragAgg5k changed the title feat: .NET SDK update for version 6.1.0 feat: SDK update for version 6.1.0 Jul 23, 2026
@ChiragAgg5k
ChiragAgg5k merged commit 66a3612 into main Jul 24, 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