Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.1.0-alpha.11"
".": "0.1.0-alpha.12"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 5
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f40e779e2a48f5e37361f2f4a9879e5c40f2851b8033c23db69ec7b91242bf69.yml
openapi_spec_hash: 2dfa146149e61363f1ec40bf9251eb7c
config_hash: 2ddaa85513b6670889b1a56c905423c7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-1fe396b957ced73281fc0a61a69b630836aa5c89a8dccce2c5a1716bc9775e80.yml
openapi_spec_hash: 9a0d67fb0781be034b77839584109638
config_hash: df889df131f7438197abd59faace3c77
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.1.0-alpha.12 (2025-05-19)

Full Changelog: [v0.1.0-alpha.11...v0.1.0-alpha.12](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.11...v0.1.0-alpha.12)

### Features

* **api:** update via SDK Studio ([d3f5db2](https://github.com/onkernel/kernel-node-sdk/commit/d3f5db20dc45f80ea024807f26c257011aaa3203))
* **api:** update via SDK Studio ([112bfcb](https://github.com/onkernel/kernel-node-sdk/commit/112bfcbd42273aef9dcf8cb3f29083ac4c1d1b59))

## 0.1.0-alpha.11 (2025-05-19)

Full Changelog: [v0.1.0-alpha.10...v0.1.0-alpha.11](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.10...v0.1.0-alpha.11)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async function main() {
const deployment = await client.apps.deployments.create({
entrypoint_rel_path: 'main.ts',
file: fs.createReadStream('path/to/file'),
env_vars: { OPENAI_API_KEY: 'x' },
version: '1.0.0',
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@onkernel/sdk",
"version": "0.1.0-alpha.11",
"version": "0.1.0-alpha.12",
"description": "The official TypeScript library for the Kernel API",
"author": "Kernel <>",
"types": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions src/resources/apps/deployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ export interface DeploymentCreateParams {
*/
file: Uploadable;

/**
* Map of environment variables to set for the deployed application. Each key-value
* pair represents an environment variable.
*/
env_vars?: Record<string, string>;

/**
* Allow overwriting an existing app version
*/
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const VERSION = '0.1.0-alpha.11'; // x-release-please-version
export const VERSION = '0.1.0-alpha.12'; // x-release-please-version
1 change: 1 addition & 0 deletions tests/api-resources/apps/deployments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('resource deployments', () => {
const response = await client.apps.deployments.create({
entrypoint_rel_path: 'src/app.py',
file: await toFile(Buffer.from('# my file contents'), 'README.md'),
env_vars: { foo: 'string' },
force: false,
region: 'aws.us-east-1a',
version: '1.0.0',
Expand Down