From f0cda4930160e18c2615936f62cd5e7434f1cc9c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 20 May 2025 18:19:10 +0000 Subject: [PATCH 1/3] feat(api): update via SDK Studio --- .stats.yml | 4 +- api.md | 2 +- src/resources/apps/deployments.ts | 68 +------------------------------ 3 files changed, 4 insertions(+), 70 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2b23ced..e44b3a1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 7 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-c9d64df733f286f09d2203f4e3d820ce57e8d4c629c5e2db4e2bfac91fbc1598.yml -openapi_spec_hash: fa407611fc566d55f403864fbfaa6c23 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-aa34ccb9b2ee8e81ef56881ff7474ea2d69a059d5c1dbb7d0ec94e28a0b68559.yml +openapi_spec_hash: c573fcd85b195ebe809a1039634652d6 config_hash: 4dfa4d870ce0e23e31ce33ab6a53dd21 diff --git a/api.md b/api.md index 93c2c19..3660345 100644 --- a/api.md +++ b/api.md @@ -18,7 +18,7 @@ Types: Methods: - client.apps.deployments.create({ ...params }) -> DeploymentCreateResponse -- client.apps.deployments.follow(id) -> DeploymentFollowResponse +- client.apps.deployments.follow(id) -> unknown ## Invocations diff --git a/src/resources/apps/deployments.ts b/src/resources/apps/deployments.ts index e4b7811..a81aea6 100644 --- a/src/resources/apps/deployments.ts +++ b/src/resources/apps/deployments.ts @@ -92,73 +92,7 @@ export namespace DeploymentCreateResponse { /** * A stream of application events (state updates and logs) in SSE format. */ -export type DeploymentFollowResponse = Array< - | DeploymentFollowResponse.StateEvent - | DeploymentFollowResponse.StateUpdateEvent - | DeploymentFollowResponse.LogEvent ->; - -export namespace DeploymentFollowResponse { - /** - * Initial state of the application, emitted once when subscribing. - */ - export interface StateEvent { - /** - * Event type identifier (always "state"). - */ - event: 'state'; - - /** - * Current application state (e.g., "deploying", "running", "succeeded", "failed"). - */ - state: string; - - /** - * Time the state was reported. - */ - timestamp?: string; - } - - /** - * An update emitted when the application's state changes. - */ - export interface StateUpdateEvent { - /** - * Event type identifier (always "state_update"). - */ - event: 'state_update'; - - /** - * New application state (e.g., "running", "succeeded", "failed"). - */ - state: string; - - /** - * Time the state change occurred. - */ - timestamp?: string; - } - - /** - * A log entry from the application. - */ - export interface LogEvent { - /** - * Event type identifier (always "log"). - */ - event: 'log'; - - /** - * Log message text. - */ - message: string; - - /** - * Time the log entry was produced. - */ - timestamp?: string; - } -} +export type DeploymentFollowResponse = unknown; export interface DeploymentCreateParams { /** From 34ec9b0a5bb7ed3dad7d69e37f9002c47b9e583a Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 20 May 2025 18:20:35 +0000 Subject: [PATCH 2/3] feat(api): update via SDK Studio --- .stats.yml | 4 +- api.md | 2 +- src/resources/apps/deployments.ts | 70 ++++++++++++++++++++++++++++++- 3 files changed, 71 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index e44b3a1..24a77a3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 7 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-aa34ccb9b2ee8e81ef56881ff7474ea2d69a059d5c1dbb7d0ec94e28a0b68559.yml -openapi_spec_hash: c573fcd85b195ebe809a1039634652d6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-39aa058a60035c34a636e7f580b4b9c76b05400ae401ef04a761572b20a5425b.yml +openapi_spec_hash: bb79a204f9edb6b6ccfe783a0a82a423 config_hash: 4dfa4d870ce0e23e31ce33ab6a53dd21 diff --git a/api.md b/api.md index 3660345..93c2c19 100644 --- a/api.md +++ b/api.md @@ -18,7 +18,7 @@ Types: Methods: - client.apps.deployments.create({ ...params }) -> DeploymentCreateResponse -- client.apps.deployments.follow(id) -> unknown +- client.apps.deployments.follow(id) -> DeploymentFollowResponse ## Invocations diff --git a/src/resources/apps/deployments.ts b/src/resources/apps/deployments.ts index a81aea6..30fa7ca 100644 --- a/src/resources/apps/deployments.ts +++ b/src/resources/apps/deployments.ts @@ -90,9 +90,75 @@ export namespace DeploymentCreateResponse { } /** - * A stream of application events (state updates and logs) in SSE format. + * Union type representing any application event. Actual schema is determined by + * the 'event' field. */ -export type DeploymentFollowResponse = unknown; +export type DeploymentFollowResponse = + | DeploymentFollowResponse.StateEvent + | DeploymentFollowResponse.StateUpdateEvent + | DeploymentFollowResponse.LogEvent; + +export namespace DeploymentFollowResponse { + /** + * Initial state of the application, emitted once when subscribing. + */ + export interface StateEvent { + /** + * Event type identifier (always "state"). + */ + event: 'state'; + + /** + * Current application state (e.g., "deploying", "running", "succeeded", "failed"). + */ + state: string; + + /** + * Time the state was reported. + */ + timestamp?: string; + } + + /** + * An update emitted when the application's state changes. + */ + export interface StateUpdateEvent { + /** + * Event type identifier (always "state_update"). + */ + event: 'state_update'; + + /** + * New application state (e.g., "running", "succeeded", "failed"). + */ + state: string; + + /** + * Time the state change occurred. + */ + timestamp?: string; + } + + /** + * A log entry from the application. + */ + export interface LogEvent { + /** + * Event type identifier (always "log"). + */ + event: 'log'; + + /** + * Log message text. + */ + message: string; + + /** + * Time the log entry was produced. + */ + timestamp?: string; + } +} export interface DeploymentCreateParams { /** From 19c6d6cd7b759d1bb9bfd57d0a3c8e99c368e151 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 20 May 2025 18:20:52 +0000 Subject: [PATCH 3/3] release: 0.1.0-alpha.16 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ package.json | 2 +- src/version.ts | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 54cfe49..47736a5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.1.0-alpha.15" + ".": "0.1.0-alpha.16" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bd61a9..223eb65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.1.0-alpha.16 (2025-05-20) + +Full Changelog: [v0.1.0-alpha.15...v0.1.0-alpha.16](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.15...v0.1.0-alpha.16) + +### Features + +* **api:** update via SDK Studio ([34ec9b0](https://github.com/onkernel/kernel-node-sdk/commit/34ec9b0a5bb7ed3dad7d69e37f9002c47b9e583a)) +* **api:** update via SDK Studio ([f0cda49](https://github.com/onkernel/kernel-node-sdk/commit/f0cda4930160e18c2615936f62cd5e7434f1cc9c)) + ## 0.1.0-alpha.15 (2025-05-20) Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.14...v0.1.0-alpha.15) diff --git a/package.json b/package.json index 6eac080..941fb0d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onkernel/sdk", - "version": "0.1.0-alpha.15", + "version": "0.1.0-alpha.16", "description": "The official TypeScript library for the Kernel API", "author": "Kernel <>", "types": "dist/index.d.ts", diff --git a/src/version.ts b/src/version.ts index 9872581..baebd9d 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const VERSION = '0.1.0-alpha.15'; // x-release-please-version +export const VERSION = '0.1.0-alpha.16'; // x-release-please-version