feat(api): update API spec from langfuse/langfuse 99ffc45 #720
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Make
retentionfield optional inUpdateProjectRequest, retaining existing setting if omitted.retentionfield inUpdateProjectRequestis now optional, retaining existing setting if omitted.update()method inClient.tsto reflect optionalretention.UpdateProjectRequestinterface inUpdateProjectRequest.tsto makeretentionoptional.This description was created by
for 753f4f0. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Overview
Greptile Overview
Greptile Summary
This PR updates the auto-generated API client to make the
retentionfield optional inUpdateProjectRequest. Previously,retentionwas a required field, which meant every project update had to specify a retention value even when the intent was to leave it unchanged.Key Changes:
UpdateProjectRequest.retentionchanged fromretention: numbertoretention?: numberretention: 1toretention: undefinedto reflect the optional natureBehavior:
The change enables partial updates where callers can update project name/metadata without affecting retention settings. When
retentionis omitted or undefined, the server preserves the existing retention configuration. This is a backward-compatible change - existing code that provides retention values will continue to work unchanged.Files Auto-Generated:
Both modified files contain the header "This file was auto-generated by Fern from our API Definition", indicating these changes were mechanically generated from the upstream API specification at langfuse/langfuse commit 99ffc45.
Confidence Score: 5/5
Important Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant Client participant Projects participant API Note over Client,API: Update Project Request Flow Client->>Projects: update(projectId, request) Note over Projects: request.retention is optional alt retention provided Projects->>API: PUT /api/public/projects/{projectId} Note over API: Update retention to new value API-->>Projects: Project with updated retention else retention omitted Projects->>API: PUT /api/public/projects/{projectId} Note over API: Retain existing retention setting API-->>Projects: Project with unchanged retention end Projects-->>Client: HttpResponsePromiseImportant Files Changed
File Analysis
Sequence Diagram
sequenceDiagram participant Client participant Projects participant API Note over Client,API: Update Project Request Flow Client->>Projects: update(projectId, request) Note over Projects: request.retention is optional alt retention provided Projects->>API: PUT /api/public/projects/{projectId} Note over API: Update retention to new value API-->>Projects: Project with updated retention else retention omitted Projects->>API: PUT /api/public/projects/{projectId} Note over API: Retain existing retention setting API-->>Projects: Project with unchanged retention end Projects-->>Client: HttpResponsePromise