diff --git a/.changeset/sdk-uploads-and-full-surface.md b/.changeset/sdk-uploads-and-full-surface.md deleted file mode 100644 index 72d7b20f..00000000 --- a/.changeset/sdk-uploads-and-full-surface.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -'@gigadrive/sdk': minor ---- - -Production-grade file uploads and a complete, corrected API surface. - -**File uploads (storage):** new high-level `client.applications.storage.upload()` that auto-computes the required SHA-256, infers content type, and uploads with progress, `AbortSignal` cancellation, and resumable retries. Supports browser `File`/`Blob`, Node `Buffer`/`Uint8Array`/`ArrayBuffer`, a Node file `path`, and Node readable `stream`s. Adds `uploadBatch()` (concurrent, per-file error isolation), `waitForCompletion()`, and `uploadSessions.uploadToUrl()`/`resumeFromUrl()`. - -**Correctness fixes (breaking, pre-1.0):** - -- AI Gateway endpoints now use the correct `/ai/v1` base path (were `/v1`). -- Storage objects are addressed by object ID; `getAccessUrl()` now takes a `bucketId` and supports `expiresInSeconds`. Object listing supports `prefix`/`delimiter`/`cursor`/`limit` and returns `commonPrefixes`/`nextCursor`; added `getByKey()`. -- Upload-session creation now sends the required SHA-256 checksum. -- Bucket creation requires `environmentId` and accepts an optional `slug`. -- Removed non-public provider fields from `StorageBucket`/`StorageObject`. -- Corrected the `DeploymentStatus` union. - -**New surface:** streamed chat completions (`chatCompletionsStream`), Responses, audio (speech/transcriptions), video generation, and richer model metadata; organization-scoped AI Gateway governance (`organizations.aiGateway` usage/budgets/policies); application & deployment hostnames; application request logs; list pagination (`page`/`perPage`/`cursor`) with a `paginate()` helper; and a README with a full upload guide. diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 3d6887f0..2be564d3 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,12 @@ # gigadrive +## 2.1.4 + +### Patch Changes + +- Updated dependencies [[`e5da96a`](https://github.com/Gigadrive/sdk/commit/e5da96a0e288fa1319a6503db003a36bb0ee79b7)]: + - @gigadrive/sdk@0.2.0 + ## 2.1.3 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 058be988..29603119 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "gigadrive", - "version": "2.1.3", + "version": "2.1.4", "repository": { "type": "git", "url": "https://github.com/Gigadrive/sdk.git", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index dd5fc5ed..7f8fb622 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,23 @@ # @gigadrive/sdk +## 0.2.0 + +### Minor Changes + +- Production-grade file uploads and a complete, corrected API surface. ([#302](https://github.com/Gigadrive/sdk/pull/302)) + + **File uploads (storage):** new high-level `client.applications.storage.upload()` that auto-computes the required SHA-256, infers content type, and uploads with progress, `AbortSignal` cancellation, and resumable retries. Supports browser `File`/`Blob`, Node `Buffer`/`Uint8Array`/`ArrayBuffer`, a Node file `path`, and Node readable `stream`s. Adds `uploadBatch()` (concurrent, per-file error isolation), `waitForCompletion()`, and `uploadSessions.uploadToUrl()`/`resumeFromUrl()`. + + **Correctness fixes (breaking, pre-1.0):** + - AI Gateway endpoints now use the correct `/ai/v1` base path (were `/v1`). + - Storage objects are addressed by object ID; `getAccessUrl()` now takes a `bucketId` and supports `expiresInSeconds`. Object listing supports `prefix`/`delimiter`/`cursor`/`limit` and returns `commonPrefixes`/`nextCursor`; added `getByKey()`. + - Upload-session creation now sends the required SHA-256 checksum. + - Bucket creation requires `environmentId` and accepts an optional `slug`. + - Removed non-public provider fields from `StorageBucket`/`StorageObject`. + - Corrected the `DeploymentStatus` union. + + **New surface:** streamed chat completions (`chatCompletionsStream`), Responses, audio (speech/transcriptions), video generation, and richer model metadata; organization-scoped AI Gateway governance (`organizations.aiGateway` usage/budgets/policies); application & deployment hostnames; application request logs; list pagination (`page`/`perPage`/`cursor`) with a `paginate()` helper; and a README with a full upload guide. + ## 0.1.2 ### Patch Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index e9b2a035..06622424 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@gigadrive/sdk", - "version": "0.1.2", + "version": "0.2.0", "repository": { "type": "git", "url": "https://github.com/Gigadrive/sdk.git",