Skip to content

Commit aef2da7

Browse files
feat(api): update via SDK Studio
1 parent e435559 commit aef2da7

File tree

6 files changed

+2
-51
lines changed

6 files changed

+2
-51
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 4
1+
configured_endpoints: 3
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d168b58fcf39dbd0458d132091793d3e2d0930070b7dda2d5f7f1baff20dd31b.yml
33
openapi_spec_hash: b7e0fd7ee1656d7dbad57209d1584d92
4-
config_hash: 2d282609080a6011e3f6222451f72237
4+
config_hash: 9139d1eb064baf60fd2265aac382f097

api.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ Types:
44

55
- <code><a href="./src/resources/apps.ts">AppDeployResponse</a></code>
66
- <code><a href="./src/resources/apps.ts">AppInvokeResponse</a></code>
7-
- <code><a href="./src/resources/apps.ts">AppRetrieveInvocationResponse</a></code>
87

98
Methods:
109

1110
- <code title="post /apps/deploy">client.apps.<a href="./src/resources/apps.ts">deploy</a>({ ...params }) -> AppDeployResponse</code>
1211
- <code title="post /apps/invoke">client.apps.<a href="./src/resources/apps.ts">invoke</a>({ ...params }) -> AppInvokeResponse</code>
13-
- <code title="get /apps/invocations/{id}">client.apps.<a href="./src/resources/apps.ts">retrieveInvocation</a>(id) -> AppRetrieveInvocationResponse</code>
1412

1513
# Browser
1614

src/client.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
AppDeployResponse,
2626
AppInvokeParams,
2727
AppInvokeResponse,
28-
AppRetrieveInvocationResponse,
2928
Apps,
3029
} from './resources/apps';
3130
import { Browser, BrowserCreateSessionResponse } from './resources/browser';
@@ -746,7 +745,6 @@ export declare namespace Kernel {
746745
Apps as Apps,
747746
type AppDeployResponse as AppDeployResponse,
748747
type AppInvokeResponse as AppInvokeResponse,
749-
type AppRetrieveInvocationResponse as AppRetrieveInvocationResponse,
750748
type AppDeployParams as AppDeployParams,
751749
type AppInvokeParams as AppInvokeParams,
752750
};

src/resources/apps.ts

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { APIPromise } from '../core/api-promise';
55
import { type Uploadable } from '../core/uploads';
66
import { RequestOptions } from '../internal/request-options';
77
import { multipartFormRequestOptions } from '../internal/uploads';
8-
import { path } from '../internal/utils/path';
98

109
export class Apps extends APIResource {
1110
/**
@@ -40,20 +39,6 @@ export class Apps extends APIResource {
4039
invoke(body: AppInvokeParams, options?: RequestOptions): APIPromise<AppInvokeResponse> {
4140
return this._client.post('/apps/invoke', { body, ...options });
4241
}
43-
44-
/**
45-
* Get an app invocation by id
46-
*
47-
* @example
48-
* ```ts
49-
* const response = await client.apps.retrieveInvocation(
50-
* 'ckqwer3o20000jb9s7abcdef',
51-
* );
52-
* ```
53-
*/
54-
retrieveInvocation(id: string, options?: RequestOptions): APIPromise<AppRetrieveInvocationResponse> {
55-
return this._client.get(path`/apps/invocations/${id}`, options);
56-
}
5742
}
5843

5944
export interface AppDeployResponse {
@@ -90,22 +75,6 @@ export interface AppInvokeResponse {
9075
output?: string;
9176
}
9277

93-
export interface AppRetrieveInvocationResponse {
94-
id: string;
95-
96-
appName: string;
97-
98-
finishedAt: string | null;
99-
100-
input: string;
101-
102-
output: string;
103-
104-
startedAt: string;
105-
106-
status: string;
107-
}
108-
10978
export interface AppDeployParams {
11079
/**
11180
* Name of the application
@@ -154,7 +123,6 @@ export declare namespace Apps {
154123
export {
155124
type AppDeployResponse as AppDeployResponse,
156125
type AppInvokeResponse as AppInvokeResponse,
157-
type AppRetrieveInvocationResponse as AppRetrieveInvocationResponse,
158126
type AppDeployParams as AppDeployParams,
159127
type AppInvokeParams as AppInvokeParams,
160128
};

src/resources/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export {
44
Apps,
55
type AppDeployResponse,
66
type AppInvokeResponse,
7-
type AppRetrieveInvocationResponse,
87
type AppDeployParams,
98
type AppInvokeParams,
109
} from './apps';

tests/api-resources/apps.test.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,4 @@ describe('resource apps', () => {
6060
version: '1.0.0',
6161
});
6262
});
63-
64-
// skipped: tests are disabled for the time being
65-
test.skip('retrieveInvocation', async () => {
66-
const responsePromise = client.apps.retrieveInvocation('ckqwer3o20000jb9s7abcdef');
67-
const rawResponse = await responsePromise.asResponse();
68-
expect(rawResponse).toBeInstanceOf(Response);
69-
const response = await responsePromise;
70-
expect(response).not.toBeInstanceOf(Response);
71-
const dataAndResponse = await responsePromise.withResponse();
72-
expect(dataAndResponse.data).toBe(response);
73-
expect(dataAndResponse.response).toBe(rawResponse);
74-
});
7563
});

0 commit comments

Comments
 (0)