From a55f26d3441acdd9a61bc663203fc4884e83df79 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 9 Apr 2025 14:09:19 +0000 Subject: [PATCH] feat(api): api update --- .stats.yml | 4 +-- .../workflows/instances/instances.ts | 29 ++++++++++++++++++- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 5c6f45a88e..c2728d4996 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 1707 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5c35402447e53718289f20efeb2057f3cdecd299425924ad251479d6c4852fc2.yml -openapi_spec_hash: ebb145ffdc717a5cc9391fd37a7eb0e8 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7eea3c236efc6fab1dd096023ddb5ae0ffee3e709a28930364d2f7c357039cdb.yml +openapi_spec_hash: 8e0a407f29c4b356e132d6b01090ff3c config_hash: e30b863eac83985d5919f958f3cd8993 diff --git a/src/resources/workflows/instances/instances.ts b/src/resources/workflows/instances/instances.ts index 587756087f..855ceb9be4 100644 --- a/src/resources/workflows/instances/instances.ts +++ b/src/resources/workflows/instances/instances.ts @@ -174,7 +174,10 @@ export interface InstanceGetResponse { | 'unknown'; steps: Array< - InstanceGetResponse.UnionMember0 | InstanceGetResponse.UnionMember1 | InstanceGetResponse.UnionMember2 + | InstanceGetResponse.UnionMember0 + | InstanceGetResponse.UnionMember1 + | InstanceGetResponse.UnionMember2 + | InstanceGetResponse.UnionMember3 >; success: boolean | null; @@ -279,6 +282,30 @@ export namespace InstanceGetResponse { } } + export interface UnionMember3 { + end: string; + + error: UnionMember3.Error | null; + + finished: boolean; + + name: string; + + output: unknown | string | number | boolean; + + start: string; + + type: 'waitForEvent'; + } + + export namespace UnionMember3 { + export interface Error { + message: string; + + name: string; + } + } + export interface Trigger { source: 'unknown' | 'api' | 'binding' | 'event' | 'cron'; }