diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index fad80ad..332798e 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.1.0-alpha.7"
+ ".": "0.1.0-alpha.8"
}
diff --git a/.stats.yml b/.stats.yml
index 42510a9..6af3fb9 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
-configured_endpoints: 3
+configured_endpoints: 4
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d168b58fcf39dbd0458d132091793d3e2d0930070b7dda2d5f7f1baff20dd31b.yml
openapi_spec_hash: b7e0fd7ee1656d7dbad57209d1584d92
-config_hash: 9139d1eb064baf60fd2265aac382f097
+config_hash: eab40627b734534462ae3b8ccd8b263b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 048c16c..d51ec33 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 0.1.0-alpha.8 (2025-05-11)
+
+Full Changelog: [v0.1.0-alpha.7...v0.1.0-alpha.8](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.7...v0.1.0-alpha.8)
+
+### Features
+
+* **api:** update via SDK Studio ([78d450e](https://github.com/onkernel/kernel-node-sdk/commit/78d450e7f02ea519794247bf6ae1fe341779151f))
+
## 0.1.0-alpha.7 (2025-05-11)
Full Changelog: [v0.1.0-alpha.6...v0.1.0-alpha.7](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.6...v0.1.0-alpha.7)
diff --git a/api.md b/api.md
index ed6594e..02224e6 100644
--- a/api.md
+++ b/api.md
@@ -4,11 +4,13 @@ Types:
- AppDeployResponse
- AppInvokeResponse
+- AppRetrieveInvocationResponse
Methods:
- client.apps.deploy({ ...params }) -> AppDeployResponse
- client.apps.invoke({ ...params }) -> AppInvokeResponse
+- client.apps.retrieveInvocation(id) -> AppRetrieveInvocationResponse
# Browser
diff --git a/package.json b/package.json
index d00cf07..f8ba76e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@onkernel/sdk",
- "version": "0.1.0-alpha.7",
+ "version": "0.1.0-alpha.8",
"description": "The official TypeScript library for the Kernel API",
"author": "Kernel <>",
"types": "dist/index.d.ts",
diff --git a/src/client.ts b/src/client.ts
index 955651c..f2cd38f 100644
--- a/src/client.ts
+++ b/src/client.ts
@@ -25,6 +25,7 @@ import {
AppDeployResponse,
AppInvokeParams,
AppInvokeResponse,
+ AppRetrieveInvocationResponse,
Apps,
} from './resources/apps';
import { Browser, BrowserCreateSessionResponse } from './resources/browser';
@@ -745,6 +746,7 @@ export declare namespace Kernel {
Apps as Apps,
type AppDeployResponse as AppDeployResponse,
type AppInvokeResponse as AppInvokeResponse,
+ type AppRetrieveInvocationResponse as AppRetrieveInvocationResponse,
type AppDeployParams as AppDeployParams,
type AppInvokeParams as AppInvokeParams,
};
diff --git a/src/resources/apps.ts b/src/resources/apps.ts
index fd601e9..e8feb85 100644
--- a/src/resources/apps.ts
+++ b/src/resources/apps.ts
@@ -5,6 +5,7 @@ import { APIPromise } from '../core/api-promise';
import { type Uploadable } from '../core/uploads';
import { RequestOptions } from '../internal/request-options';
import { multipartFormRequestOptions } from '../internal/uploads';
+import { path } from '../internal/utils/path';
export class Apps extends APIResource {
/**
@@ -39,6 +40,20 @@ export class Apps extends APIResource {
invoke(body: AppInvokeParams, options?: RequestOptions): APIPromise {
return this._client.post('/apps/invoke', { body, ...options });
}
+
+ /**
+ * Get an app invocation by id
+ *
+ * @example
+ * ```ts
+ * const response = await client.apps.retrieveInvocation(
+ * 'ckqwer3o20000jb9s7abcdef',
+ * );
+ * ```
+ */
+ retrieveInvocation(id: string, options?: RequestOptions): APIPromise {
+ return this._client.get(path`/apps/invocations/${id}`, options);
+ }
}
export interface AppDeployResponse {
@@ -75,6 +90,22 @@ export interface AppInvokeResponse {
output?: string;
}
+export interface AppRetrieveInvocationResponse {
+ id: string;
+
+ appName: string;
+
+ finishedAt: string | null;
+
+ input: string;
+
+ output: string;
+
+ startedAt: string;
+
+ status: string;
+}
+
export interface AppDeployParams {
/**
* Name of the application
@@ -123,6 +154,7 @@ export declare namespace Apps {
export {
type AppDeployResponse as AppDeployResponse,
type AppInvokeResponse as AppInvokeResponse,
+ type AppRetrieveInvocationResponse as AppRetrieveInvocationResponse,
type AppDeployParams as AppDeployParams,
type AppInvokeParams as AppInvokeParams,
};
diff --git a/src/resources/index.ts b/src/resources/index.ts
index 4880116..b324da1 100644
--- a/src/resources/index.ts
+++ b/src/resources/index.ts
@@ -4,6 +4,7 @@ export {
Apps,
type AppDeployResponse,
type AppInvokeResponse,
+ type AppRetrieveInvocationResponse,
type AppDeployParams,
type AppInvokeParams,
} from './apps';
diff --git a/src/version.ts b/src/version.ts
index 135324a..2cc4fcd 100644
--- a/src/version.ts
+++ b/src/version.ts
@@ -1 +1 @@
-export const VERSION = '0.1.0-alpha.7'; // x-release-please-version
+export const VERSION = '0.1.0-alpha.8'; // x-release-please-version
diff --git a/tests/api-resources/apps.test.ts b/tests/api-resources/apps.test.ts
index 426d768..cec0d2b 100644
--- a/tests/api-resources/apps.test.ts
+++ b/tests/api-resources/apps.test.ts
@@ -60,4 +60,16 @@ describe('resource apps', () => {
version: '1.0.0',
});
});
+
+ // skipped: tests are disabled for the time being
+ test.skip('retrieveInvocation', async () => {
+ const responsePromise = client.apps.retrieveInvocation('ckqwer3o20000jb9s7abcdef');
+ const rawResponse = await responsePromise.asResponse();
+ expect(rawResponse).toBeInstanceOf(Response);
+ const response = await responsePromise;
+ expect(response).not.toBeInstanceOf(Response);
+ const dataAndResponse = await responsePromise.withResponse();
+ expect(dataAndResponse.data).toBe(response);
+ expect(dataAndResponse.response).toBe(rawResponse);
+ });
});