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.13"
".": "0.1.0-alpha.14"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
config_hash: 7f67c5b95af1e4b39525515240b72275
configured_endpoints: 6
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-19b0d17ba368f32827ee322d15a7f4ff7e1f3bbf66606fad227b3465f8ffc5ab.yml
openapi_spec_hash: 4a3cb766898e8a134ef99fe6c4c87736
config_hash: 4dfa4d870ce0e23e31ce33ab6a53dd21
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.1.0-alpha.14 (2025-05-20)

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

### Features

* **api:** update via SDK Studio ([1a48ef2](https://github.com/onkernel/kernel-node-sdk/commit/1a48ef24166848971e3f2f6403cad99c1771f0e9))

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

Full Changelog: [v0.1.0-alpha.12...v0.1.0-alpha.13](https://github.com/onkernel/kernel-node-sdk/compare/v0.1.0-alpha.12...v0.1.0-alpha.13)
Expand Down
8 changes: 0 additions & 8 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
# Apps

Types:

- <code><a href="./src/resources/apps/apps.ts">AppListResponse</a></code>

Methods:

- <code title="get /apps">client.apps.<a href="./src/resources/apps/apps.ts">list</a>({ ...params }) -> AppListResponse</code>

## Deployments

Types:
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.13",
"version": "0.1.0-alpha.14",
"description": "The official TypeScript library for the Kernel API",
"author": "Kernel <>",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { readEnv } from './internal/utils/env';
import { formatRequestDetails, loggerFor } from './internal/utils/log';
import { isEmptyObj } from './internal/utils/values';
import { KernelApp } from './core/app-framework';
import { AppListParams, AppListResponse, Apps } from './resources/apps/apps';
import { Apps } from './resources/apps/apps';

const environments = {
production: 'https://api.onkernel.com/',
Expand Down Expand Up @@ -740,7 +740,7 @@ Kernel.Browsers = Browsers;
export declare namespace Kernel {
export type RequestOptions = Opts.RequestOptions;

export { Apps as Apps, type AppListResponse as AppListResponse, type AppListParams as AppListParams };
export { Apps as Apps };

export {
Browsers as Browsers,
Expand Down
63 changes: 0 additions & 63 deletions src/resources/apps/apps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,79 +15,16 @@ import {
InvocationRetrieveResponse,
Invocations,
} from './invocations';
import { APIPromise } from '../../core/api-promise';
import { RequestOptions } from '../../internal/request-options';

export class Apps extends APIResource {
deployments: DeploymentsAPI.Deployments = new DeploymentsAPI.Deployments(this._client);
invocations: InvocationsAPI.Invocations = new InvocationsAPI.Invocations(this._client);

/**
* List application versions for the authenticated user. Optionally filter by app
* name and/or version label.
*
* @example
* ```ts
* const apps = await client.apps.list();
* ```
*/
list(query: AppListParams | null | undefined = {}, options?: RequestOptions): APIPromise<AppListResponse> {
return this._client.get('/apps', { query, ...options });
}
}

export type AppListResponse = Array<AppListResponse.AppListResponseItem>;

export namespace AppListResponse {
/**
* Summary of an application version.
*/
export interface AppListResponseItem {
/**
* Unique identifier for the app version
*/
id: string;

/**
* Name of the application
*/
app_name: string;

/**
* Deployment region code
*/
region: string;

/**
* Version label for the application
*/
version: string;

/**
* Environment variables configured for this app version
*/
env_vars?: Record<string, string>;
}
}

export interface AppListParams {
/**
* Filter results by application name.
*/
app_name?: string;

/**
* Filter results by version label.
*/
version?: string;
}

Apps.Deployments = Deployments;
Apps.Invocations = Invocations;

export declare namespace Apps {
export { type AppListResponse as AppListResponse, type AppListParams as AppListParams };

export {
Deployments as Deployments,
type DeploymentCreateResponse as DeploymentCreateResponse,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/apps/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export { Apps, type AppListResponse, type AppListParams } from './apps';
export { Apps } from './apps';
export {
Deployments,
type DeploymentCreateResponse,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

export { Apps, type AppListResponse, type AppListParams } from './apps/apps';
export { Apps } from './apps/apps';
export {
Browsers,
type BrowserCreateResponse,
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.13'; // x-release-please-version
export const VERSION = '0.1.0-alpha.14'; // x-release-please-version
30 changes: 0 additions & 30 deletions tests/api-resources/apps/apps.test.ts

This file was deleted.