-
Notifications
You must be signed in to change notification settings - Fork 2
release: 0.82.0 #146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
release: 0.82.0 #146
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| ".": "0.81.0" | ||
| ".": "0.82.0" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| configured_endpoints: 127 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-1dffe057847b596dd311ce4b6e0e8036126dce3e97d390636c9c8e6d2f4823e1.yml | ||
| openapi_spec_hash: c06336c199ee64c222ba3122deae9463 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-5163e8941e42f7fb84e10f572f538202b31722c84bb980db74ccd44a960eb87f.yml | ||
| openapi_spec_hash: 8aa974cf7843681d6ae3e6dcf099596d | ||
| config_hash: 77ee715aa17061166f9a02b264a21b8d |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -98,7 +98,10 @@ export class Profiles extends APIResource { | |
| } | ||
|
|
||
| /** | ||
| * Returns a zstd-compressed tar file of the full user-data directory. | ||
| * Downloads the profile in its stored format by default. Current profiles are | ||
| * returned as zstd-compressed tar archives, while legacy profiles remain JSON. Set | ||
| * `format=tar` to decompress current profiles during download; legacy profiles | ||
| * remain JSON. | ||
| * | ||
| * @example | ||
| * ```ts | ||
|
|
@@ -110,10 +113,15 @@ export class Profiles extends APIResource { | |
| * console.log(content); | ||
| * ``` | ||
| */ | ||
| download(idOrName: string, options?: RequestOptions): APIPromise<Response> { | ||
| download( | ||
| idOrName: string, | ||
| query: ProfileDownloadParams | null | undefined = {}, | ||
| options?: RequestOptions, | ||
| ): APIPromise<Response> { | ||
| return this._client.get(path`/profiles/${idOrName}/download`, { | ||
| query, | ||
| ...options, | ||
| headers: buildHeaders([{ Accept: 'application/octet-stream' }, options?.headers]), | ||
| headers: buildHeaders([{ Accept: 'application/zstd' }, options?.headers]), | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Download options silently misroutedHigh Severity
Reviewed by Cursor Bugbot for commit f3e2a1f. Configure here. |
||
| __binaryResponse: true, | ||
| }); | ||
| } | ||
|
|
@@ -152,11 +160,20 @@ export interface ProfileListParams extends OffsetPaginationParams { | |
| query?: string; | ||
| } | ||
|
|
||
| export interface ProfileDownloadParams { | ||
| /** | ||
| * Response format for current profile archives. Legacy profiles are always | ||
| * returned as JSON. | ||
| */ | ||
| format?: 'tar.zst' | 'tar'; | ||
| } | ||
|
|
||
| export declare namespace Profiles { | ||
| export { | ||
| type ProfileCreateParams as ProfileCreateParams, | ||
| type ProfileUpdateParams as ProfileUpdateParams, | ||
| type ProfileListParams as ProfileListParams, | ||
| type ProfileDownloadParams as ProfileDownloadParams, | ||
| }; | ||
| } | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| export const VERSION = '0.81.0'; // x-release-please-version | ||
| export const VERSION = '0.82.0'; // x-release-please-version |


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong Accept for multi-format downloads
Medium Severity
The
profiles.downloadmethod hardcodes theAccept: application/zstdheader, but the API and its documentation indicate support for other formats, such as uncompressed tar (whenformat=tar) and JSON for legacy profiles. This mismatch can lead to content negotiation failures or unexpected response payloads.Reviewed by Cursor Bugbot for commit f3e2a1f. Configure here.