Skip to content

Commit 5df2ee7

Browse files
feat: Add async_timeout_seconds to PostInvocations
1 parent 71d14af commit 5df2ee7

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
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: 74
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-3db06d1628149b5ea8303f1c72250664dfd7cb4a14ceb6102f1ae6e85c92c038.yml
3-
openapi_spec_hash: e5b3da2da328eb26d2a70e2521744c62
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-003e9afa15f0765009d2c7d34e8eb62268d818e628e3c84361b21138e30cc423.yml
3+
openapi_spec_hash: c1b8309f60385bf2b02d245363ca47c1
44
config_hash: a4124701ae0a474e580d7416adbcfb00

src/resources/invocations.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,12 @@ export interface InvocationCreateParams {
416416
*/
417417
async?: boolean;
418418

419+
/**
420+
* Timeout in seconds for async invocations (min 10, max 3600). Only applies when
421+
* async is true.
422+
*/
423+
async_timeout_seconds?: number;
424+
419425
/**
420426
* Input data for the action, sent as a JSON string.
421427
*/

tests/api-resources/invocations.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ describe('resource invocations', () => {
3131
app_name: 'my-app',
3232
version: '1.0.0',
3333
async: true,
34+
async_timeout_seconds: 600,
3435
payload: '{"data":"example input"}',
3536
});
3637
});

0 commit comments

Comments
 (0)