File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 11configured_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
44config_hash : 75c0b894355904e2a91b70445072d4b4
Original file line number Diff line number Diff 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
8793export interface AppRetrieveInvocationResponse {
@@ -123,6 +129,11 @@ export interface AppDeployParams {
123129}
124130
125131export interface AppInvokeParams {
132+ /**
133+ * Name of the action to invoke
134+ */
135+ actionName : string ;
136+
126137 /**
127138 * Name of the application
128139 */
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments