Skip to content

Commit 7d31661

Browse files
feat(api): update via SDK Studio
1 parent 2ea4722 commit 7d31661

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 4
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-e642528081bcfbb78b52900cb9b8b1407a9c7a8653c57ab021a79d4d52585695.yml
3-
openapi_spec_hash: 8d91d1ac100906977531a93b9f4ae380
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-d168b58fcf39dbd0458d132091793d3e2d0930070b7dda2d5f7f1baff20dd31b.yml
3+
openapi_spec_hash: b7e0fd7ee1656d7dbad57209d1584d92
44
config_hash: 75c0b894355904e2a91b70445072d4b4

src/resources/apps.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export class Apps extends APIResource {
3030
* @example
3131
* ```ts
3232
* const response = await client.apps.invoke({
33+
* actionName: 'analyze',
3334
* appName: 'my-awesome-app',
3435
* payload: '{ "data": "example input" }',
3536
* version: '1.0.0',
@@ -81,7 +82,12 @@ export interface AppInvokeResponse {
8182
/**
8283
* Status of the invocation
8384
*/
84-
status: string;
85+
status: 'QUEUED' | 'RUNNING' | 'SUCCEEDED' | 'FAILED';
86+
87+
/**
88+
* Output from the invocation (if available)
89+
*/
90+
output?: string;
8591
}
8692

8793
export interface AppRetrieveInvocationResponse {
@@ -123,6 +129,11 @@ export interface AppDeployParams {
123129
}
124130

125131
export interface AppInvokeParams {
132+
/**
133+
* Name of the action to invoke
134+
*/
135+
actionName: string;
136+
126137
/**
127138
* Name of the application
128139
*/

tests/api-resources/apps.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ describe('resource apps', () => {
3737
// skipped: tests are disabled for the time being
3838
test.skip('invoke: only required params', async () => {
3939
const responsePromise = client.apps.invoke({
40+
actionName: 'analyze',
4041
appName: 'my-awesome-app',
4142
payload: '{ "data": "example input" }',
4243
version: '1.0.0',
@@ -53,6 +54,7 @@ describe('resource apps', () => {
5354
// skipped: tests are disabled for the time being
5455
test.skip('invoke: required and optional params', async () => {
5556
const response = await client.apps.invoke({
57+
actionName: 'analyze',
5658
appName: 'my-awesome-app',
5759
payload: '{ "data": "example input" }',
5860
version: '1.0.0',

0 commit comments

Comments
 (0)