Skip to content

Commit 1a48ef2

Browse files
feat(api): update via SDK Studio
1 parent bc8be74 commit 1a48ef2

File tree

7 files changed

+8
-109
lines changed

7 files changed

+8
-109
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 7
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-c9d64df733f286f09d2203f4e3d820ce57e8d4c629c5e2db4e2bfac91fbc1598.yml
3-
openapi_spec_hash: fa407611fc566d55f403864fbfaa6c23
4-
config_hash: 7f67c5b95af1e4b39525515240b72275
1+
configured_endpoints: 6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-19b0d17ba368f32827ee322d15a7f4ff7e1f3bbf66606fad227b3465f8ffc5ab.yml
3+
openapi_spec_hash: 4a3cb766898e8a134ef99fe6c4c87736
4+
config_hash: 4dfa4d870ce0e23e31ce33ab6a53dd21

api.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# Apps
22

3-
Types:
4-
5-
- <code><a href="./src/resources/apps/apps.ts">AppListResponse</a></code>
6-
7-
Methods:
8-
9-
- <code title="get /apps">client.apps.<a href="./src/resources/apps/apps.ts">list</a>({ ...params }) -> AppListResponse</code>
10-
113
## Deployments
124

135
Types:

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { readEnv } from './internal/utils/env';
3030
import { formatRequestDetails, loggerFor } from './internal/utils/log';
3131
import { isEmptyObj } from './internal/utils/values';
3232
import { KernelApp } from './core/app-framework';
33-
import { AppListParams, AppListResponse, Apps } from './resources/apps/apps';
33+
import { Apps } from './resources/apps/apps';
3434

3535
const environments = {
3636
production: 'https://api.onkernel.com/',
@@ -740,7 +740,7 @@ Kernel.Browsers = Browsers;
740740
export declare namespace Kernel {
741741
export type RequestOptions = Opts.RequestOptions;
742742

743-
export { Apps as Apps, type AppListResponse as AppListResponse, type AppListParams as AppListParams };
743+
export { Apps as Apps };
744744

745745
export {
746746
Browsers as Browsers,

src/resources/apps/apps.ts

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -15,79 +15,16 @@ import {
1515
InvocationRetrieveResponse,
1616
Invocations,
1717
} from './invocations';
18-
import { APIPromise } from '../../core/api-promise';
19-
import { RequestOptions } from '../../internal/request-options';
2018

2119
export class Apps extends APIResource {
2220
deployments: DeploymentsAPI.Deployments = new DeploymentsAPI.Deployments(this._client);
2321
invocations: InvocationsAPI.Invocations = new InvocationsAPI.Invocations(this._client);
24-
25-
/**
26-
* List application versions for the authenticated user. Optionally filter by app
27-
* name and/or version label.
28-
*
29-
* @example
30-
* ```ts
31-
* const apps = await client.apps.list();
32-
* ```
33-
*/
34-
list(query: AppListParams | null | undefined = {}, options?: RequestOptions): APIPromise<AppListResponse> {
35-
return this._client.get('/apps', { query, ...options });
36-
}
37-
}
38-
39-
export type AppListResponse = Array<AppListResponse.AppListResponseItem>;
40-
41-
export namespace AppListResponse {
42-
/**
43-
* Summary of an application version.
44-
*/
45-
export interface AppListResponseItem {
46-
/**
47-
* Unique identifier for the app version
48-
*/
49-
id: string;
50-
51-
/**
52-
* Name of the application
53-
*/
54-
app_name: string;
55-
56-
/**
57-
* Deployment region code
58-
*/
59-
region: string;
60-
61-
/**
62-
* Version label for the application
63-
*/
64-
version: string;
65-
66-
/**
67-
* Environment variables configured for this app version
68-
*/
69-
env_vars?: Record<string, string>;
70-
}
71-
}
72-
73-
export interface AppListParams {
74-
/**
75-
* Filter results by application name.
76-
*/
77-
app_name?: string;
78-
79-
/**
80-
* Filter results by version label.
81-
*/
82-
version?: string;
8322
}
8423

8524
Apps.Deployments = Deployments;
8625
Apps.Invocations = Invocations;
8726

8827
export declare namespace Apps {
89-
export { type AppListResponse as AppListResponse, type AppListParams as AppListParams };
90-
9128
export {
9229
Deployments as Deployments,
9330
type DeploymentCreateResponse as DeploymentCreateResponse,

src/resources/apps/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
export { Apps, type AppListResponse, type AppListParams } from './apps';
3+
export { Apps } from './apps';
44
export {
55
Deployments,
66
type DeploymentCreateResponse,

src/resources/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
export { Apps, type AppListResponse, type AppListParams } from './apps/apps';
3+
export { Apps } from './apps/apps';
44
export {
55
Browsers,
66
type BrowserCreateResponse,

tests/api-resources/apps/apps.test.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)