Skip to content

feat: SDK update for version 16.0.0 - #111

Merged
ChiragAgg5k merged 7 commits into
mainfrom
dev
Aug 5, 2026
Merged

feat: SDK update for version 16.0.0#111
ChiragAgg5k merged 7 commits into
mainfrom
dev

Conversation

@ChiragAgg5k

@ChiragAgg5k ChiragAgg5k commented Aug 5, 2026

Copy link
Copy Markdown
Member

This PR contains updates to the SDK for version 16.0.0.

What's Changed

  • Breaking: Moved vectorsDB.createTextEmbeddings() to the new Embeddings service
  • Breaking: usage.listEvents() interval, dimensions, orderBy, and orderDir now take enums
  • Breaking: usage.listGauges() interval, dimensions, orderBy, and orderDir now take enums
  • Added: Affiliates service for referral links, referrals, and rewards
  • Added: Embeddings service with createTextEmbeddings()
  • Added: proxy.createInvalidation() with the ProxyInvalidation model and InvalidationType enum
  • Added: Client.setOrganization() for organization-scoped requests
  • Added: UsageInterval, UsageEventDimension, UsageGaugeDimension, UsageOrderBy, UsageOrderDirection enums
  • Added: affiliate resources to the QuerySuggestionResource enum
  • Added: proxy.invalidations.write to the ProjectKeyScopes enum
  • Added: affiliates.clicks as a usage.listEvents() metric

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.
@ChiragAgg5k ChiragAgg5k changed the title feat: Console SDK update for version 16.0.0 feat: SDK update for version 16.0.0 Aug 5, 2026
@greptile-apps

greptile-apps Bot commented Aug 5, 2026

Copy link
Copy Markdown

Greptile Summary

The PR updates the Console SDK to version 16.0.0 and introduces new services, models, enums, and organization-scoped client configuration.

  • Adds Affiliates and Embeddings services plus proxy cache invalidation.
  • Converts usage aggregation options to exported enums.
  • Moves text embedding creation out of VectorsDB and updates generated models and documentation.
  • Updates package metadata and build dependencies.

Confidence Score: 4/5

The dependency override must be fixed before merging because clean installs can fail on the package's advertised Node 18 runtime.

The SDK additions are internally consistent, but brace-expansion 5.0.9 requires Node 20 or newer while the package promises Node 18 compatibility, causing engine-strict installations to fail.

Files Needing Attention: package.json and package-lock.json

Important Files Changed

Filename Overview
src/client.ts Adds persistent organization configuration and the X-Appwrite-Organization request header using the existing client-header mechanism.
src/services/affiliates.ts Adds generated request methods for affiliate links, referrals, and rewards with consistent request construction.
src/services/embeddings.ts Adds the relocated text-embedding endpoint and preserves the existing embedding request and response types.
src/services/proxy.ts Adds cache invalidation request support with typed invalidation modes and an optional reference.
src/services/usage.ts Replaces free-form usage option types with enums while preserving their serialized values.
src/models.ts Corrects embedding usage metric shapes and adds affiliate and proxy invalidation response models.
package.json Updates the package and build-tool versions, but the brace-expansion override conflicts with the declared Node 18 support.
package-lock.json Resolves brace-expansion 5.0.9, whose engine requirement excludes an advertised runtime.

Fix All in Claude Code Fix All in Codex

Prompt To Fix All With AI
### Issue 1
package.json:49
**Override excludes supported Node 18**

When dependencies are installed on the advertised Node 18 runtime with engine checks enabled, the override selects `brace-expansion@5.0.9`, which requires Node 20 or later, causing `npm install` to fail with an engine error.

---

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

Reviews (1): Last reviewed commit: "chore: merge main into dev for the 16.0...." | Re-trigger Greptile

Comment thread package.json
},
"overrides": {
"brace-expansion": "5.0.8"
"brace-expansion": "5.0.9"

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 Override excludes supported Node 18

When dependencies are installed on the advertised Node 18 runtime with engine checks enabled, the override selects brace-expansion@5.0.9, which requires Node 20 or later, causing npm install to fail with an engine error.

Prompt To Fix With AI
This is a comment left during a code review.
Path: package.json
Line: 49

Comment:
**Override excludes supported Node 18**

When dependencies are installed on the advertised Node 18 runtime with engine checks enabled, the override selects `brace-expansion@5.0.9`, which requires Node 20 or later, causing `npm install` to fail with an engine error.

---

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

@ChiragAgg5k
ChiragAgg5k merged commit 90f7124 into main Aug 5, 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