Skip to content

Commit deed3f6

Browse files
fix(api): Adjust webhook configuration
1 parent e0c0e9b commit deed3f6

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 97
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-9f858907356014087c51d59846cd158425826fc558a1683e6ebf49483503cd5e.yml
3-
openapi_spec_hash: 87cd38428be2fb157f6d79b50c00f573
4-
config_hash: 0ed9b1770bb175fa6bdc1e4d41afb180
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic/anthropic-0df2c793ea4c3ad955e8e488be39d7041a0a95e2fe144dd69ae4d9fb72835190.yml
3+
openapi_spec_hash: b169b786bdf1f07d7f77f18f7b94abfa
4+
config_hash: ed43b84afda7441f472a59dda6badb05

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,8 +916,8 @@ Types:
916916
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionRequiresActionEventData</a></code>
917917
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionRunningEventData</a></code>
918918
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionStatusIdledEventData</a></code>
919+
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionStatusRescheduledEventData</a></code>
919920
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionStatusRunStartedEventData</a></code>
920-
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionStatusScheduledEventData</a></code>
921921
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionStatusTerminatedEventData</a></code>
922922
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionThreadCreatedEventData</a></code>
923923
- <code><a href="./src/resources/beta/webhooks.ts">BetaWebhookSessionThreadIdledEventData</a></code>

src/resources/beta/beta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ import {
7474
BetaWebhookSessionRequiresActionEventData,
7575
BetaWebhookSessionRunningEventData,
7676
BetaWebhookSessionStatusIdledEventData,
77+
BetaWebhookSessionStatusRescheduledEventData,
7778
BetaWebhookSessionStatusRunStartedEventData,
78-
BetaWebhookSessionStatusScheduledEventData,
7979
BetaWebhookSessionStatusTerminatedEventData,
8080
BetaWebhookSessionThreadCreatedEventData,
8181
BetaWebhookSessionThreadIdledEventData,
@@ -929,8 +929,8 @@ export declare namespace Beta {
929929
type BetaWebhookSessionRequiresActionEventData as BetaWebhookSessionRequiresActionEventData,
930930
type BetaWebhookSessionRunningEventData as BetaWebhookSessionRunningEventData,
931931
type BetaWebhookSessionStatusIdledEventData as BetaWebhookSessionStatusIdledEventData,
932+
type BetaWebhookSessionStatusRescheduledEventData as BetaWebhookSessionStatusRescheduledEventData,
932933
type BetaWebhookSessionStatusRunStartedEventData as BetaWebhookSessionStatusRunStartedEventData,
933-
type BetaWebhookSessionStatusScheduledEventData as BetaWebhookSessionStatusScheduledEventData,
934934
type BetaWebhookSessionStatusTerminatedEventData as BetaWebhookSessionStatusTerminatedEventData,
935935
type BetaWebhookSessionThreadCreatedEventData as BetaWebhookSessionThreadCreatedEventData,
936936
type BetaWebhookSessionThreadIdledEventData as BetaWebhookSessionThreadIdledEventData,

src/resources/beta/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,8 @@ export {
406406
type BetaWebhookSessionRequiresActionEventData,
407407
type BetaWebhookSessionRunningEventData,
408408
type BetaWebhookSessionStatusIdledEventData,
409+
type BetaWebhookSessionStatusRescheduledEventData,
409410
type BetaWebhookSessionStatusRunStartedEventData,
410-
type BetaWebhookSessionStatusScheduledEventData,
411411
type BetaWebhookSessionStatusTerminatedEventData,
412412
type BetaWebhookSessionThreadCreatedEventData,
413413
type BetaWebhookSessionThreadIdledEventData,

src/resources/beta/webhooks.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export type BetaWebhookEventData =
4545
| BetaWebhookSessionRequiresActionEventData
4646
| BetaWebhookSessionArchivedEventData
4747
| BetaWebhookSessionDeletedEventData
48-
| BetaWebhookSessionStatusScheduledEventData
48+
| BetaWebhookSessionStatusRescheduledEventData
4949
| BetaWebhookSessionStatusRunStartedEventData
5050
| BetaWebhookSessionStatusIdledEventData
5151
| BetaWebhookSessionStatusTerminatedEventData
@@ -178,28 +178,28 @@ export interface BetaWebhookSessionStatusIdledEventData {
178178
workspace_id: string;
179179
}
180180

181-
export interface BetaWebhookSessionStatusRunStartedEventData {
181+
export interface BetaWebhookSessionStatusRescheduledEventData {
182182
/**
183183
* ID of the resource that triggered the event.
184184
*/
185185
id: string;
186186

187187
organization_id: string;
188188

189-
type: 'session.status_run_started';
189+
type: 'session.status_rescheduled';
190190

191191
workspace_id: string;
192192
}
193193

194-
export interface BetaWebhookSessionStatusScheduledEventData {
194+
export interface BetaWebhookSessionStatusRunStartedEventData {
195195
/**
196196
* ID of the resource that triggered the event.
197197
*/
198198
id: string;
199199

200200
organization_id: string;
201201

202-
type: 'session.status_scheduled';
202+
type: 'session.status_run_started';
203203

204204
workspace_id: string;
205205
}
@@ -399,8 +399,8 @@ export declare namespace Webhooks {
399399
type BetaWebhookSessionRequiresActionEventData as BetaWebhookSessionRequiresActionEventData,
400400
type BetaWebhookSessionRunningEventData as BetaWebhookSessionRunningEventData,
401401
type BetaWebhookSessionStatusIdledEventData as BetaWebhookSessionStatusIdledEventData,
402+
type BetaWebhookSessionStatusRescheduledEventData as BetaWebhookSessionStatusRescheduledEventData,
402403
type BetaWebhookSessionStatusRunStartedEventData as BetaWebhookSessionStatusRunStartedEventData,
403-
type BetaWebhookSessionStatusScheduledEventData as BetaWebhookSessionStatusScheduledEventData,
404404
type BetaWebhookSessionStatusTerminatedEventData as BetaWebhookSessionStatusTerminatedEventData,
405405
type BetaWebhookSessionThreadCreatedEventData as BetaWebhookSessionThreadCreatedEventData,
406406
type BetaWebhookSessionThreadIdledEventData as BetaWebhookSessionThreadIdledEventData,

0 commit comments

Comments
 (0)