Skip to content

feat: SDK update for version v7.6.0 - #81

Merged
ChiragAgg5k merged 10 commits into
mainfrom
dev
Oct 5, 2026
Merged

ChiragAgg5k merged 10 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version v7.6.0.

What's Changed

  • Breaking: Domains.GetZone returns the zone file as *string
  • Breaking: BackupArchive.Size and StartedAt are pointers, nil until set
  • Breaking: BackupRestoration.StartedAt is *string and Options is interface{}
  • Added: Analytics service with property CRUD, CreateEvent and ListMetrics
  • Added: Avatars.UpdatePhoto and Avatars.DeletePhoto with the Account model
  • Added: Project.UpdateOAuth2Webflow and the OAuth2Webflow model
  • Added: WithCreatePushChannelId and WithUpdatePushChannelId on Messaging
  • Added: WithCreateEmailPasswordSessionDuration and WithDeleteSessionsCurrent on Account
  • Added: Optional Total on list methods in Account, Locale, Functions, Sites and transactions
  • Fixed: Uploads send the endpoint's HTTP method instead of always POST
  • Fixed: Decode() works on models returned by uploads

Generated from appwrite/sdk-generator#1964, which carries the upload method and Decode() fixes.

@ChiragAgg5k ChiragAgg5k changed the title feat: Go SDK update for version v7.6.0 feat: SDK update for version v7.6.0 Oct 5, 2026
@hansi-codes

hansi-codes Bot commented Oct 5, 2026

Copy link
Copy Markdown

🔵 Tier A · Mergeable after minor fixes

A configurable-chunk-size edge case, an invalid metrics example, and missing regression coverage need minor fixes.

Updates the SDK to v7.6.0 with Analytics endpoints, profile-photo management, Webflow OAuth2 configuration, and additional request options. It also updates response models, preserves raw data for decoding upload responses, and allows uploads to use their endpoint's HTTP method.

Verdict New comments Fixed Still open
💬 Commented 2 0 0

Note

Part of the diff was too large to review, so Hansi did not approve.

Finding Where
🟡 Use the single-request upload helper for profile photos avatars/avatars.go:918
🟡 Do not combine dimensions and interval in the metrics example docs/examples/analytics/list-metrics.md:23
Fix with agent prompt
### Issue 1
avatars/avatars.go:918
**Use the single-request upload helper for profile photos**

With a smaller `appwrite.WithChunkSize`, a valid photo larger than that chunk size is split into multiple PUT requests, although this endpoint expects the entire image in one request. Please use `SingleUpload` so photo uploads remain independent of the client's chunk configuration.

```suggestion
	resp, err := srv.client.SingleUpload(path, headers, params, paramName, "PUT")
```

### Issue 2
docs/examples/analytics/list-metrics.md:23-24
**Do not combine dimensions and interval in the metrics example**

This example supplies both `interval` and `dimensions`, but `ListMetrics` explicitly documents that this combination is unsupported. Even after replacing the placeholders with valid values, the example still makes an invalid request; show a time series or a dimension breakdown separately.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.
📂 Walkthrough · 19
File Change
CHANGELOG.md Documents the v7.6.0 additions and breaking changes.
account/account.go Adds session duration, current-session deletion control, and session-list totals.
analytics/analytics.go, analytics/analytics_test.go Adds property CRUD, event tracking, metrics retrieval, and service tests.
appwrite/appwrite.go Exposes the Analytics service constructor.
avatars/avatars.go, avatars/avatars_test.go Adds photo upload and deletion endpoints with tests.
client/client.go Updates version headers and adds method-aware upload helpers.
databases/databases.go, documentsdb/documents_db.go, tablesdb/tables_db.go, vectorsdb/vectors_db.go Adds optional totals to transaction lists.
functions/functions.go, sites/sites.go, storage/storage.go Updates upload response initialization and HTTP methods; extends runtime and specification listing options.
locale/locale.go Adds optional totals to locale lists.
messaging/messaging.go Adds push channel IDs and reorders existing update options.
project/project.go, project/project_test.go Adds Webflow OAuth2 configuration and endpoint tests.
models/account*.go, models/analytics*.go, models/oAuth2Webflow*.go Adds response models and serialization tests.
models/backupArchive*.go, models/backupRestoration*.go, backups/backups_test.go Updates nullable backup fields and restoration options with corresponding fixtures.
models/billingPlan*.go, models/databaseStatus*.go, models/proxyRule.go, models/webhook.go Refreshes model documentation and fixtures for current API responses.
proxy/proxy.go Documents cache invalidation restrictions for function domains.
documentsdb/documents_db_test.go, mongo/mongo_test.go, mysql/mysql_test.go, postgresql/postgresql_test.go, tablesdb/tables_db_test.go, vectorsdb/vectors_db_test.go Refreshes database status response fixtures.
domains/domains.go, domains/domains_test.go Returns zone files as text and verifies exact response content.
organization/organization_test.go, models/organization_test.go Refreshes organization response fixtures.
docs/examples Adds examples for new endpoints and updates examples for new request options.
🔇 Filtered out · 1

Findings Hansi considered but did not post.

Finding Why
Add a regression assertion for decoding an upload response Verifier: The test does not assert Decode(), but there are no Decode() assertions in the repository's tests, so this is a missing-test request without comparable test coverage. The implementation does initialize the response model with models.Account{}.New(bytes).

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

@hansi-codes hansi-codes Bot 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 · See the inline comments. Summary

Comment thread avatars/avatars.go
Comment thread docs/examples/analytics/list-metrics.md
@ChiragAgg5k
ChiragAgg5k merged commit c675700 into main Oct 5, 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.

2 participants