Skip to content

chore: bump SDK version to 13.1.0#97

Open
TorstenDittmann wants to merge 1 commit into
mainfrom
concurrent-chunk-uploads-version-bump-1-9-x
Open

chore: bump SDK version to 13.1.0#97
TorstenDittmann wants to merge 1 commit into
mainfrom
concurrent-chunk-uploads-version-bump-1-9-x

Conversation

@TorstenDittmann

Copy link
Copy Markdown
Contributor

This PR bumps the SDK package version to 13.1.0 after the concurrent chunk upload update.

@TorstenDittmann

Copy link
Copy Markdown
Contributor Author

Closing this follow-up because the package version is already bumped on main and this generated diff only contains unrelated drift.

@greptile-apps

greptile-apps Bot commented May 21, 2026

Copy link
Copy Markdown

Greptile Summary

This SDK bump to 13.1.0 introduces full presence support (new Presences service, Advisor service, Usage service, realtime upsertPresence with reconnect recovery), renames all Project-scope enums to a Project* prefix, and trims several deprecated fields from the Project model.

  • Three new services (Presences, Advisor, Usage) and corresponding model types (Presence, Insight, Report, UsageEvent, UsageGauge) are added; Channel is extended with presence() / presences() statics and the Actionable union.
  • realtime.ts gains a single-flight socketCreationPromise guard and an appConnected flag that prevents subscribe frames being sent before the server's application-level connected event, plus fire-and-forget upsertPresence with automatic re-broadcast on reconnect.
  • Eight enum exports were removed and replaced with Project*-prefixed names; additionally, project.ts key-management methods now accept ProjectKeyScopes[] instead of Scopes[], which is a compile-time breaking change for any caller that previously passed a Scopes[] array.

Confidence Score: 5/5

Safe to merge; all breaking changes are intentional API surface renames consistent with the version bump, and the realtime presence logic is well-guarded.

The changes are generated SDK output — new services follow established patterns, model additions are additive, and the realtime single-flight + appConnected guards correctly solve the races they target.

src/services/project.ts and src/index.ts contain the enum/parameter-type renames that affect external callers.

Important Files Changed

Filename Overview
src/services/realtime.ts Adds presence support via upsertPresence() and flushPendingPresence(), introduces single-flight socketCreationPromise guard, appConnected flag to defer subscribe frames until after server connected event, and removes no-op TYPE_RESPONSE/handleResponseAction.
src/services/presences.ts New service: REST CRUD for presence logs — list, get, upsert (PUT), updatePresence (PATCH), delete, plus getUsage. Overloads follow the established positional/object-params dual-signature pattern.
src/services/advisor.ts New service: listReports, getReport, deleteReport, listInsights, getInsight — all follow the standard dual-overload pattern and return the correct model types.
src/services/project.ts All enum imports renamed to Project* prefixed variants; adds new get() method; replaces Scopes[] with ProjectKeyScopes[] for createKey/updateKey/createEphemeralKey — a compile-time breaking change for callers who previously passed Scopes[].
src/models.ts Adds Presence, PresenceList, Insight, InsightList, Report, ReportList, UsagePresence, UsageEvent/List, UsageGauge/List models; makes BillingLimits fields optional; fixes BackupDatabase policy/archive types; trims legacy flat Project fields into structured sub-objects.
src/index.ts Exports new services (Presences, Advisor, Usage) and new enums (ProjectAuthMethodId, ProjectKeyScopes, etc.); removes eight old enum exports without backward-compatible re-exports.
src/channel.ts Adds Presence channel type, extends Actionable union and ActionableChannel export, adds Channel.presence(id) and Channel.presences() static helpers.
src/enums/project-key-scopes.ts New enum with 56 project-scoped key permission values, used in project.ts to replace the organisation-level Scopes enum.
src/services/projects.ts create() strips optional legal/branding fields; removes get() (moved to Project service as a no-arg call).
src/services/usage.ts New service exposing listEvents() and listGauges() for raw usage metrics queries.
src/services/console.ts Adds listOrganizationScopes() and getEmailTemplate() endpoints; imports ProjectEmailTemplateId/Locale enums.

Reviews (2): Last reviewed commit: "chore: bump SDK version to 13.1.0" | Re-trigger Greptile

Comment thread src/services/realtime.ts
Comment thread src/enums/o-auth-provider.ts
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